/* =========================================================
   Canton Direct — shared styles
   Palette taken from Jay: oatmeal hoodie, warm charcoal hair,
   peach skin, rosy blush, navy trousers.
   ========================================================= */
:root {
  --cream: #fbf7f1;
  --paper: #ffffff;
  --sand-50: #f8f2ea;
  --sand-100: #f3eadf;
  --sand-200: #e9ddcf;
  --sand-300: #d8c6b1;
  --ink: #29242e;
  --ink-soft: #5d5560;
  --ink-faint: #8d8590;
  --navy: #243049;
  --navy-soft: #3a4866;
  --coral: #c4523b;
  --coral-dark: #a8432f;
  --blush: #f6d5c7;
  --peach: #f2c6aa;
  --line: #e7ddd1;
  --whatsapp: #25d366;
  --wechat: #07c160;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 1px 2px rgba(41, 36, 46, .06), 0 2px 8px rgba(41, 36, 46, .04);
  --shadow: 0 2px 4px rgba(41, 36, 46, .04), 0 12px 32px rgba(41, 36, 46, .08);
  --shadow-lg: 0 24px 60px rgba(41, 36, 46, .14);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
section[id], .faq-item { scroll-margin-top: 88px; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3 { line-height: 1.12; letter-spacing: -0.025em; margin: 0; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.9rem, 3.8vw, 2.8rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.01em; font-weight: 700; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 560px) { .wrap { padding: 0 16px; } }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--coral);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.lede { font-size: 1.15rem; color: var(--ink-soft); max-width: 36em; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-head { max-width: 680px; margin-bottom: 56px; }
.section-head h2 { margin: 14px 0 16px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow::after { content: ""; width: 18px; height: 2px; background: currentColor; border-radius: 2px; }
.accent { color: var(--coral); }
.squiggle { position: relative; white-space: nowrap; }
.squiggle svg { position: absolute; left: 0; right: 0; bottom: -0.18em; width: 100%; height: .32em; overflow: visible; }
.squiggle path { stroke: var(--coral); stroke-width: 3; fill: none; stroke-linecap: round;
  stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw 1.2s .6s var(--ease-out) forwards; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 247, 241, .82);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand small { display: block; font-size: .64rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-faint); margin-top: -2px; }
.nav-links { display: flex; align-items: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .94rem; padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); background: var(--sand-100); }
@media (max-width: 760px) { .nav-links .hide-sm { display: none; } }
.nav-links .btn { white-space: nowrap; }
@media (max-width: 480px) {
  .brand small { display: none; }
  .brand { font-size: 1.02rem; }
  .nav-links a { padding: 8px 10px; }
  .nav-links .btn { padding: 0 14px; }
}

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--ink); --fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border: 0; border-radius: 999px;
  background: var(--bg); color: var(--fg);
  font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  box-shadow: var(--shadow-sm);
  transition: transform .25s var(--ease-spring), box-shadow .25s, background .2s;
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.btn:active { transform: translateY(0) scale(.98); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn-sm { min-height: 42px; padding: 0 18px; font-size: .92rem; }
.btn-coral { --bg: var(--coral); }
.btn-coral:hover { --bg: var(--coral-dark); }
.btn-light { --bg: var(--paper); --fg: var(--ink); border: 1px solid var(--line); }
.btn-whatsapp .ico { color: var(--whatsapp); }
.btn-wechat .ico { color: var(--wechat); }
.btn-email .ico { color: var(--coral); }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; }
.btn-group.center { justify-content: center; }
@media (max-width: 560px) { .btn-group .btn { flex: 1 1 100%; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: clamp(40px, 6vw, 80px) 0 clamp(56px, 8vw, 100px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero .lede { margin-bottom: 34px; }
.hero-note { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: .95rem; color: var(--ink-soft); }
.hero-note .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--blush); color: var(--coral); display: grid; place-items: center; flex: none; }
.hero-note .tick svg { width: 13px; height: 13px; }

.hero-stage { position: relative; aspect-ratio: 1 / 1.08; max-width: 520px; margin-left: auto; width: 100%; }
.hero-blob { position: absolute; inset: 8% 4% 6% 4%; border-radius: 50%; background: radial-gradient(circle at 40% 35%, var(--sand-100), var(--sand-200) 70%); }
.hero-blob::after { content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 2px dashed var(--sand-300); animation: spin 60s linear infinite; }
.hero-jay { position: absolute; left: 50%; bottom: 2%; height: 92%; transform: translateX(-50%); }
.hero-jay img { height: 100%; width: auto; max-width: none; aspect-ratio: 900 / 1100; animation: bob 4.5s ease-in-out infinite; transform-origin: 50% 100%; }
.hero-shadow { position: absolute; left: 50%; bottom: 1.5%; width: 34%; height: 4%; transform: translateX(-50%); border-radius: 50%; background: rgba(41, 36, 46, .12); filter: blur(4px); animation: shadow 4.5s ease-in-out infinite; }
.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--paper); border-radius: 999px; padding: 8px 14px 8px 8px;
  box-shadow: var(--shadow); font-size: .85rem; font-weight: 700; white-space: nowrap;
  animation: float 6s ease-in-out infinite;
}
.chip .ci { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sand-100); color: var(--ink); }
.chip .ci svg { width: 18px; height: 18px; }
.chip-1 { top: 12%; left: -2%; animation-delay: -1s; }
.chip-2 { top: 34%; right: -4%; animation-delay: -3s; }
.chip-3 { bottom: 22%; left: -6%; animation-delay: -2s; }
.chip-4 { bottom: 8%; right: 2%; animation-delay: -4.5s; }
.chip-4 .ci { background: var(--blush); color: var(--coral); }
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-stage { margin: 8px auto 0; max-width: 400px; }
}
@media (max-width: 420px) { .chip { font-size: .76rem; } .chip-3 { left: 0; } .chip-2 { right: 0; } }

/* ---------- Stats strip ---------- */
.stats { background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { padding: 30px 24px; text-align: center; border-left: 1px solid var(--line); }
.stat:first-child { border-left: 0; }
.stat b { display: block; font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.stat span { font-size: .9rem; color: var(--ink-soft); }
@media (max-width: 760px) {
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stat { padding: 22px 12px; }
  .stat b { font-size: 1.45rem; }
  .stat span { font-size: .84rem; line-height: 1.4; display: block; }
}

/* ---------- How it works (route infographic) ---------- */
.route { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.route-line { position: absolute; top: 46px; left: 12%; right: 12%; height: 4px; pointer-events: none; }
.route-line svg { width: 100%; height: 12px; overflow: visible; }
.route-line .track { stroke: var(--sand-300); stroke-width: 2.5; stroke-dasharray: 2 9; stroke-linecap: round; fill: none; }
.route-line .progress { stroke: var(--coral); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-dasharray: 1000; stroke-dashoffset: 1000; }
.route.in .route-line .progress { animation: draw 2.4s .3s var(--ease-out) forwards; }
.step { position: relative; text-align: center; padding: 0 6px; }
.step-icon {
  position: relative; width: 96px; height: 96px; margin: 0 auto 22px; border-radius: 28px;
  background: var(--paper); box-shadow: var(--shadow); display: grid; place-items: center; color: var(--ink);
  transform: scale(.6); opacity: 0; transition: transform .7s var(--ease-spring), opacity .5s;
}
.step-icon svg { width: 50px; height: 50px; }
.step-num { position: absolute; top: -8px; right: -8px; width: 30px; height: 30px; border-radius: 50%; background: var(--coral); color: #fff; font-weight: 800; font-size: .85rem; display: grid; place-items: center; border: 3px solid var(--cream); }
.route.in .step-icon { transform: scale(1); opacity: 1; }
.route.in .step:nth-child(2) .step-icon { transition-delay: .1s; }
.route.in .step:nth-child(3) .step-icon { transition-delay: .7s; }
.route.in .step:nth-child(4) .step-icon { transition-delay: 1.3s; }
.route.in .step:nth-child(5) .step-icon { transition-delay: 1.9s; }
.step h3 { margin-bottom: 8px; }
.step p { font-size: .96rem; color: var(--ink-soft); }
@media (max-width: 860px) {
  .route { grid-template-columns: 1fr; gap: 36px; max-width: 440px; margin: 0 auto; }
  .route-line { display: none; }
  .step { display: grid; grid-template-columns: 80px 1fr; gap: 20px; text-align: left; align-items: start; }
  .step-icon { width: 76px; height: 76px; border-radius: 22px; margin: 0; }
  .step-icon svg { width: 40px; height: 40px; }
}

/* Draw-on line icons */
.draw path, .draw line, .draw circle, .draw rect, .draw polyline, .draw ellipse {
  stroke-dasharray: 160; stroke-dashoffset: 160;
}
.in .draw path, .in .draw line, .in .draw circle, .in .draw rect, .in .draw polyline, .in .draw ellipse {
  animation: draw 1.4s var(--ease-out) forwards;
}

/* ---------- What you can buy ---------- */
.buy-bg { background: var(--paper); }
.buy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.buy-card {
  position: relative; padding: 30px 28px 28px; border-radius: var(--radius);
  background: var(--cream); border: 1px solid var(--line); overflow: hidden;
  transition: transform .35s var(--ease-out), box-shadow .35s, border-color .35s;
}
.buy-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.buy-card .bi { width: 60px; height: 60px; border-radius: 18px; background: var(--paper); display: grid; place-items: center; margin-bottom: 20px; box-shadow: var(--shadow-sm); color: var(--ink); transition: transform .4s var(--ease-spring), background .3s, color .3s; }
.buy-card .bi svg { width: 34px; height: 34px; }
.buy-card:hover .bi { transform: rotate(-6deg) scale(1.08); background: var(--coral); color: #fff; }
.buy-card h3 { margin-bottom: 8px; }
.buy-card p { color: var(--ink-soft); font-size: .96rem; }
.buy-card .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.buy-card .tags span { font-size: .78rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--sand-100); color: var(--ink-soft); }
@media (max-width: 900px) { .buy-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .buy-grid { grid-template-columns: 1fr; } }

/* ---------- Consolidation infographic ---------- */
.consol { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.consol-copy .section-head { margin-bottom: 28px; }
.consol-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
.consol-list li { display: grid; grid-template-columns: 28px 1fr; gap: 14px; color: var(--ink-soft); }
.consol-list b { color: var(--ink); }
.consol-list .dot { width: 28px; height: 28px; border-radius: 50%; background: var(--blush); color: var(--coral); display: grid; place-items: center; font-size: .8rem; font-weight: 800; }
.scene { background: var(--paper); border-radius: 28px; box-shadow: var(--shadow); padding: 18px; }
.scene svg { width: 100%; height: auto; }
.scene .lbl { font: 700 13px "Plus Jakarta Sans", sans-serif; fill: var(--ink-soft); }
.scene .lbl-strong { font: 800 14px "Plus Jakarta Sans", sans-serif; fill: var(--ink); }
.scene .crate { animation: crate 7s ease-in-out infinite; opacity: 0; }
.scene .crate.c2 { animation-delay: .8s; }
.scene .crate.c3 { animation-delay: 1.6s; }
.scene .crate.c4 { animation-delay: 2.4s; }
.scene .fill-row { transform-box: fill-box; transform-origin: 0 50%; transform: scaleX(0); animation: fill1 7s var(--ease-out) infinite; }
.scene .fill-row.r2 { animation-name: fill2; }
.scene .fill-row.r3 { animation-name: fill3; }
.scene .fill-row.r4 { animation-name: fill4; }
.scene .ship { animation: sail 7s ease-in-out infinite; }
.scene .wave { animation: wave 3s linear infinite; }
.scene .smoke { animation: smoke 3s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.scene .smoke.s2 { animation-delay: 1.5s; }
@media (max-width: 900px) { .consol { grid-template-columns: 1fr; gap: 32px; } }

/* ---------- Costs ---------- */
.costs-bg { background: var(--sand-50); }
.costs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.cost-card { background: var(--paper); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow-sm); }
.cost-card.highlight { background: var(--navy); color: #fff; }
.cost-card.highlight p, .cost-card.highlight li { color: rgba(255, 255, 255, .78); }
.cost-card .big { font-size: clamp(2.6rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin: 18px 0 10px; }
.cost-card .big small { font-size: 1rem; font-weight: 600; letter-spacing: 0; opacity: .7; margin-left: 6px; }
.cost-card .tagline { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--coral); }
.cost-card.highlight .tagline { color: var(--peach); }
.cost-list { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.cost-list li { display: flex; gap: 12px; align-items: flex-start; color: var(--ink-soft); }
.cost-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--coral); }
.cost-card.highlight .cost-list svg { color: var(--peach); }
.ride-options { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.ride { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; }
.ride .ri { width: 42px; height: 42px; border-radius: 12px; background: var(--sand-100); display: grid; place-items: center; margin-bottom: 12px; }
.ride .ri svg { width: 26px; height: 26px; }
.ride b { display: block; font-size: 1rem; }
.ride .price { font-size: 1.5rem; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0 2px; }
.ride span { font-size: .88rem; color: var(--ink-soft); }
@media (max-width: 860px) { .costs { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .ride-options { grid-template-columns: 1fr; } }

/* ---------- Team / Jay ---------- */
.team { display: grid; grid-template-columns: 360px 1fr; gap: 64px; align-items: center; }
.team-jay { position: relative; aspect-ratio: 4 / 5; border-radius: 32px; background: linear-gradient(160deg, var(--sand-100), var(--sand-200)); overflow: hidden; }
.team-jay img { position: absolute; left: 50%; bottom: -2%; height: 96%; width: auto; max-width: none; transform: translateX(-50%); }
.team-jay .hi { position: absolute; top: 22px; left: 22px; background: var(--paper); border-radius: 16px 16px 16px 4px; padding: 10px 14px; font-weight: 700; font-size: .92rem; box-shadow: var(--shadow); }
.team-jay .hi small { display: block; font-weight: 600; color: var(--ink-faint); font-size: .76rem; }
.team-points { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.team-point { padding: 22px; border-radius: var(--radius-sm); background: var(--paper); border: 1px solid var(--line); }
.team-point b { display: block; margin-bottom: 4px; }
.team-point span { color: var(--ink-soft); font-size: .95rem; }
.flags { display: inline-flex; gap: 6px; margin-bottom: 10px; }
.flags span { font-size: .72rem; font-weight: 800; letter-spacing: .08em; padding: 3px 8px; border-radius: 6px; background: var(--sand-100); color: var(--ink-soft); }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; gap: 36px; } .team-jay { max-width: 360px; width: 100%; margin: 0 auto; } }
@media (max-width: 520px) { .team-points { grid-template-columns: 1fr; } }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: var(--ink); color: #fff; border-radius: 36px; padding: clamp(40px, 6vw, 72px); overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: end; }
.cta-band h2 { color: #fff; margin-bottom: 14px; }
.cta-band p { color: rgba(255, 255, 255, .72); max-width: 32em; }
.cta-band .btn-group { margin-top: 30px; }
.cta-band .btn-light { border-color: transparent; }
.cta-band .cta-jay { width: 220px; margin-bottom: calc(clamp(40px, 6vw, 72px) * -1); }
.cta-band .cta-jay img { animation: bob 4s ease-in-out infinite; transform-origin: 50% 100%; }
.cta-band::before { content: ""; position: absolute; width: 420px; height: 420px; right: -80px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(196, 82, 59, .35), transparent 65%); }
@media (max-width: 760px) { .cta-band { grid-template-columns: 1fr; } .cta-band .cta-jay { width: 170px; margin: 0 auto calc(clamp(40px, 6vw, 72px) * -1); } }

/* ---------- Footer ---------- */
.site-footer { padding: 56px 0 40px; color: var(--ink-soft); font-size: .92rem; }
.footer-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 24px; align-items: center; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a { text-decoration: none; font-weight: 600; }
.footer-links a:hover { color: var(--ink); }
.footer-small { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .84rem; color: var(--ink-faint); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; } .reveal.d5 { transition-delay: .4s; }

/* ---------- WeChat modal & toast ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(41, 36, 46, .45); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.modal.open { opacity: 1; pointer-events: auto; }
.modal-card { position: relative; width: 100%; max-width: 380px; background: var(--paper); border-radius: 28px; padding: 32px 28px 28px; text-align: center; box-shadow: var(--shadow-lg); transform: translateY(16px) scale(.97); transition: transform .35s var(--ease-spring); }
.modal.open .modal-card { transform: none; }
.modal-card .wc-ico { width: 56px; height: 56px; margin: 0 auto 14px; border-radius: 18px; background: var(--wechat); color: #fff; display: grid; place-items: center; }
.modal-card .wc-ico svg { width: 32px; height: 32px; }
.modal-card h3 { font-size: 1.35rem; margin-bottom: 6px; }
.modal-card p { color: var(--ink-soft); font-size: .95rem; }
.modal-card .qr { width: 200px; margin: 18px auto 0; border-radius: 14px; border: 1px solid var(--line); }
.wc-id { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 20px 0 0; padding: 8px 8px 8px 18px; border-radius: 14px; background: var(--sand-50); border: 1px solid var(--line); font-weight: 800; font-size: 1.05rem; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--sand-100); cursor: pointer; display: grid; place-items: center; }
.modal-close svg { width: 18px; height: 18px; }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 120; transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 600; font-size: .92rem; box-shadow: var(--shadow-lg); opacity: 0; pointer-events: none; transition: opacity .25s, transform .35s var(--ease-spring); max-width: calc(100vw - 32px); text-align: center; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* =========================================================
   FAQ page
   ========================================================= */
.faq-hero { padding: clamp(40px, 6vw, 72px) 0 24px; }
.faq-hero h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); margin: 16px 0 16px; }
.faq-layout { display: grid; grid-template-columns: 380px 1fr; gap: 56px; align-items: start; padding-bottom: 96px; }

/* Jay stage */
.jay-stage { position: sticky; top: 96px; }
.jay-card { position: relative; aspect-ratio: 4 / 5; border-radius: 32px; background: linear-gradient(170deg, var(--sand-50), var(--sand-200)); overflow: hidden; box-shadow: var(--shadow); }
.jay-card::before { content: ""; position: absolute; left: 50%; top: 52%; width: 82%; aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%; background: rgba(255, 255, 255, .55); }
.jay-floor { position: absolute; left: 50%; bottom: 5%; width: 46%; height: 5%; transform: translateX(-50%); border-radius: 50%; background: rgba(41, 36, 46, .13); filter: blur(5px); }
.jay-figure { position: absolute; left: 0; right: 0; bottom: 5.5%; height: 74%; display: flex; justify-content: center; transform-origin: 50% 100%; }
.jay-figure .breath { height: 100%; transform-origin: 50% 100%; animation: breathe 3.6s ease-in-out infinite; }
.jay-figure img { height: 100%; width: auto; max-width: none; user-select: none; -webkit-user-drag: none; }
.jay-figure img.leaving { position: absolute; }

.bubble {
  position: absolute; z-index: 3; top: 18px; left: 18px; right: 18px;
  background: var(--paper); border-radius: 20px 20px 20px 6px; padding: 14px 16px;
  box-shadow: var(--shadow); font-weight: 700; font-size: .98rem; line-height: 1.35;
  display: flex; gap: 12px; align-items: center;
  transform-origin: 10% 100%;
}
.bubble .b-ico { flex: none; width: 38px; height: 38px; border-radius: 12px; background: var(--blush); color: var(--coral); display: grid; place-items: center; }
.bubble .b-ico svg { width: 22px; height: 22px; }
.bubble.pop { animation: bubble .55s var(--ease-spring); }
.jay-name { display: flex; align-items: center; gap: 12px; margin-top: 18px; }
.jay-name .avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--sand-100); overflow: hidden; flex: none; position: relative; }
.jay-name .avatar img { position: absolute; width: 230%; max-width: none; left: -65%; top: -6%; }
.jay-name b { display: block; line-height: 1.2; }
.jay-name span { font-size: .88rem; color: var(--ink-soft); }
.fx { position: absolute; inset: 0; pointer-events: none; z-index: 2; }

/* Accordion */
.faq-list { display: grid; gap: 14px; }
.faq-item { background: var(--paper); border-radius: var(--radius); border: 1px solid var(--line); transition: box-shadow .35s, border-color .35s, transform .35s var(--ease-out); }
.faq-item:hover { border-color: var(--sand-300); }
.faq-item.open { box-shadow: var(--shadow); border-color: transparent; }
.faq-q { width: 100%; display: grid; grid-template-columns: 44px 1fr 36px; gap: 16px; align-items: center; text-align: left; background: none; border: 0; padding: 20px 22px; cursor: pointer; border-radius: var(--radius); }
.faq-q .n { width: 44px; height: 44px; border-radius: 14px; background: var(--sand-100); display: grid; place-items: center; font-weight: 800; font-size: .92rem; color: var(--ink-soft); transition: background .3s, color .3s, transform .45s var(--ease-spring); }
.faq-item.open .faq-q .n { background: var(--coral); color: #fff; transform: rotate(-8deg); }
.faq-q .t { font-weight: 700; font-size: 1.08rem; letter-spacing: -0.01em; line-height: 1.35; }
.faq-q .pm { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); display: grid; place-items: center; transition: transform .45s var(--ease-spring), background .3s, border-color .3s; }
.faq-q .pm svg { width: 16px; height: 16px; }
.faq-item.open .faq-q .pm { transform: rotate(45deg); background: var(--ink); border-color: var(--ink); color: #fff; }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease-out); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a .inner { padding: 0 24px 26px 82px; color: var(--ink-soft); opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .45s var(--ease-out); }
.faq-item.open .faq-a .inner { opacity: 1; transform: none; transition-delay: .12s; }
.faq-a p + p, .faq-a p + ul, .faq-a ul + p { margin-top: 12px; }
.faq-a ul { margin: 12px 0 0; padding-left: 0; list-style: none; display: grid; gap: 8px; }
.faq-a li { position: relative; padding-left: 22px; }
.faq-a li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 50%; background: var(--peach); }
.faq-a strong { color: var(--ink); }
.faq-a .fine { font-size: .86rem; color: var(--ink-faint); }
.timeline { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; }
.timeline div { background: var(--sand-50); border-radius: 12px; padding: 12px; font-size: .84rem; line-height: 1.35; }
.timeline b { display: block; color: var(--ink); font-size: 1rem; }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr 1fr; } }

.faq-cta { margin-top: 36px; padding: 28px; border-radius: var(--radius); background: var(--sand-100); display: flex; flex-wrap: wrap; gap: 20px; align-items: center; justify-content: space-between; }
.faq-cta b { font-size: 1.15rem; display: block; }
.faq-cta span { color: var(--ink-soft); }

@media (max-width: 960px) {
  .faq-layout { grid-template-columns: 1fr; gap: 0; }
  /* On small screens Jay rides along in the corner */
  .jay-stage { position: fixed; top: auto; bottom: 12px; right: 12px; z-index: 40; width: 112px; }
  .jay-card { border-radius: 24px; box-shadow: var(--shadow-lg); border: 3px solid var(--paper); }
  .jay-card::before { display: none; }
  .jay-figure { height: 88%; bottom: 4%; }
  .jay-name { display: none; }
  .bubble { position: fixed; top: auto; left: 12px; right: 136px; bottom: 24px; font-size: .86rem; padding: 10px 12px; max-width: 320px; margin-left: auto; opacity: 0; transform: scale(.8); transition: opacity .3s, transform .35s var(--ease-spring); pointer-events: none; }
  .bubble.show-sm { opacity: 1; transform: none; }
  .bubble .b-ico { width: 30px; height: 30px; border-radius: 10px; }
  .bubble .b-ico svg { width: 18px; height: 18px; }
  .faq-a .inner { padding: 0 20px 22px 20px; }
  .faq-q { grid-template-columns: 40px 1fr 32px; gap: 12px; padding: 16px 16px; }
  .faq-q .n { width: 40px; height: 40px; }
  .faq-q .pm { width: 32px; height: 32px; }
  .faq-q .t { font-size: 1rem; }
  .site-footer { padding-bottom: 180px; }
}

/* =========================================================
   Jay's moves — one per question
   ========================================================= */
.mv-hello    { animation: mv-hello 1.6s var(--ease-out); }
.mv-explain  { animation: mv-explain 1.5s var(--ease-out); }
.mv-thumbs   { animation: mv-thumbs 1s var(--ease-spring); }
.mv-balance  { animation: mv-balance 1.8s ease-in-out; }
.mv-stretch  { animation: mv-stretch 1.2s var(--ease-spring); }
.mv-walk     { animation: mv-walk 1.4s var(--ease-out); }
.mv-haggle   { animation: mv-haggle 1.3s ease-in-out; }
.mv-inspect  { animation: mv-inspect 1.8s var(--ease-out); }
.mv-nod      { animation: mv-nod 1.4s ease-in-out; }
.mv-sail     { animation: mv-sail 2.2s ease-in-out; }
.mv-stamp    { animation: mv-stamp .9s cubic-bezier(.5, 0, .3, 1); }
.mv-out      { animation: mv-out .28s ease-in forwards; }

@keyframes mv-out { to { opacity: 0; transform: translateY(8px) scale(.94); } }
@keyframes mv-hello {
  0% { opacity: 0; transform: translateY(30px) scale(.9); }
  40% { opacity: 1; transform: translateY(-6px) scale(1.02); }
  55% { transform: rotate(-3deg); } 70% { transform: rotate(3deg); } 85% { transform: rotate(-1.5deg); }
  100% { transform: none; }
}
@keyframes mv-explain {
  0% { opacity: 0; transform: translateX(40px); }
  30% { opacity: 1; transform: translateX(-4px); }
  45% { transform: scaleY(1.02) rotate(-1.5deg); } 60% { transform: scaleY(.99) rotate(1deg); }
  75% { transform: scaleY(1.015) rotate(-.8deg); } 100% { transform: none; }
}
@keyframes mv-thumbs {
  0% { opacity: 0; transform: scale(.7) translateY(20px); }
  50% { opacity: 1; transform: scale(1.08) translateY(-10px) rotate(-2deg); }
  75% { transform: scale(.98) rotate(1deg); }
  100% { transform: none; }
}
@keyframes mv-balance {
  0% { opacity: 0; transform: translateY(24px); }
  20% { opacity: 1; transform: none; }
  35% { transform: rotate(-4deg); } 50% { transform: rotate(3.5deg); }
  65% { transform: rotate(-2deg); } 80% { transform: rotate(1deg); } 100% { transform: none; }
}
@keyframes mv-stretch {
  0% { opacity: 0; transform: scaleX(.7); }
  45% { opacity: 1; transform: scaleX(1.08) scaleY(.97); }
  70% { transform: scaleX(.98) scaleY(1.01); }
  100% { transform: none; }
}
@keyframes mv-walk {
  0% { opacity: 0; transform: translateX(-70px); }
  15% { opacity: 1; transform: translateX(-55px) translateY(-6px); }
  30% { transform: translateX(-40px) translateY(0); }
  45% { transform: translateX(-24px) translateY(-6px); }
  60% { transform: translateX(-10px) translateY(0); }
  75% { transform: translateX(0) translateY(-4px); }
  100% { transform: none; }
}
@keyframes mv-haggle {
  0% { opacity: 0; transform: translateY(16px); }
  25% { opacity: 1; transform: none; }
  35% { transform: translateY(-5px); } 45% { transform: none; }
  55% { transform: translateY(-5px); } 65% { transform: none; }
  80% { transform: rotate(-2deg) scale(1.03); } 100% { transform: none; }
}
@keyframes mv-inspect {
  0% { opacity: 0; transform: scale(.95); }
  25% { opacity: 1; }
  45% { transform: rotate(4deg) scale(1.06) translateX(-8px); }
  70% { transform: rotate(3deg) scale(1.06) translateX(-8px); }
  100% { transform: none; }
}
@keyframes mv-nod {
  0% { opacity: 0; transform: translateY(14px); }
  25% { opacity: 1; transform: none; }
  40% { transform: rotate(1.5deg) translateY(3px); } 55% { transform: none; }
  70% { transform: rotate(1.5deg) translateY(3px); } 100% { transform: none; }
}
@keyframes mv-sail {
  0% { opacity: 0; transform: translateY(20px); }
  15% { opacity: 1; }
  30% { transform: translateY(-8px) rotate(-2deg); } 50% { transform: translateY(0) rotate(2deg); }
  70% { transform: translateY(-6px) rotate(-1.5deg); } 85% { transform: translateY(0) rotate(1deg); }
  100% { transform: none; }
}
@keyframes mv-stamp {
  0% { opacity: 0; transform: translateY(-60px); }
  45% { opacity: 1; transform: translateY(0) scaleY(1); }
  58% { transform: translateY(0) scaleY(.92) scaleX(1.05); }
  75% { transform: translateY(-8px) scaleY(1.02); }
  100% { transform: none; }
}

/* Little effects layered over Jay */
.fx-item { position: absolute; color: var(--coral); }
.fx-item svg { width: 100%; height: 100%; }
.fx-spark { width: 28px; height: 28px; animation: spark 1s var(--ease-out) forwards; }
.fx-coin { width: 26px; height: 26px; animation: coin 1.6s var(--ease-out) forwards; color: #d9a441; }
.fx-ring { width: 120px; height: 30px; border-radius: 50%; border: 3px solid var(--coral); animation: ring .8s ease-out forwards; }
.fx-tag { padding: 4px 10px; border-radius: 8px; background: var(--coral); color: #fff; font-weight: 800; font-size: .9rem; animation: tag 1.8s var(--ease-spring) forwards; }
.fx-wave { width: 70%; height: 18px; animation: fxwave 2.2s ease-in-out forwards; color: #8fb3c9; }
.fx-dash { width: 40px; height: 4px; border-radius: 4px; background: var(--sand-300); animation: dash .9s ease-out forwards; }
@keyframes spark { 0% { opacity: 0; transform: scale(0) rotate(0); } 40% { opacity: 1; transform: scale(1.2) rotate(40deg); } 100% { opacity: 0; transform: scale(.6) rotate(90deg) translateY(-20px); } }
@keyframes coin { 0% { opacity: 0; transform: translateY(20px) scale(.6); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateY(-90px) scale(1) rotate(200deg); } }
@keyframes ring { 0% { opacity: .9; transform: translateX(-50%) scale(.3); } 100% { opacity: 0; transform: translateX(-50%) scale(1.6); } }
@keyframes tag { 0% { opacity: 0; transform: scale(0) rotate(-20deg); } 30% { opacity: 1; transform: scale(1.1) rotate(-8deg); } 75% { opacity: 1; transform: scale(1) rotate(-8deg); } 100% { opacity: 0; transform: translateY(-14px) rotate(-8deg); } }
@keyframes fxwave { 0% { opacity: 0; transform: translateX(-50%) translateY(10px); } 25%, 75% { opacity: 1; transform: translateX(-50%); } 100% { opacity: 0; transform: translateX(-50%); } }
@keyframes dash { 0% { opacity: 0; transform: translateX(30px); } 30% { opacity: 1; } 100% { opacity: 0; transform: translateX(-30px); } }

/* ---------- Shared keyframes ---------- */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes shadow { 0%, 100% { transform: translateX(-50%) scale(1); opacity: 1; } 50% { transform: translateX(-50%) scale(.86); opacity: .7; } }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(1.5deg); } }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.012, 1.008); } }
@keyframes bubble { 0% { transform: scale(.6); opacity: 0; } 100% { transform: none; opacity: 1; } }
@keyframes crate {
  0% { opacity: 0; transform: translate(0, 0); }
  4% { opacity: 1; transform: translate(0, 0); }
  25% { transform: translate(var(--dx1), var(--dy1)); opacity: 1; }
  30% { transform: translate(var(--dx1), var(--dy1)); opacity: 1; }
  45% { transform: translate(var(--dx2), var(--dy2)); opacity: 1; }
  48%, 100% { transform: translate(var(--dx2), var(--dy2)); opacity: 0; }
}
@keyframes fill1 { 0%, 45% { transform: scaleX(0); } 49%, 93% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes fill2 { 0%, 56% { transform: scaleX(0); } 60%, 93% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes fill3 { 0%, 68% { transform: scaleX(0); } 72%, 93% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes fill4 { 0%, 79% { transform: scaleX(0); } 83%, 93% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes sail { 0%, 100% { transform: translate(0, 0) rotate(0); } 25% { transform: translate(6px, -2px) rotate(-1deg); } 50% { transform: translate(12px, 0) rotate(0); } 75% { transform: translate(6px, -2px) rotate(1deg); } }
@keyframes wave { from { transform: translateX(0); } to { transform: translateX(-40px); } }
@keyframes smoke { 0% { opacity: .6; transform: translate(0, 0) scale(.6); } 100% { opacity: 0; transform: translate(-14px, -22px) scale(1.4); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal, .step-icon { opacity: 1; transform: none; }
  .draw path, .draw line, .draw circle, .draw rect, .draw polyline, .draw ellipse { stroke-dashoffset: 0; }
  .scene .crate { opacity: 0; }
  .scene .fill-row { transform: scaleX(1); }
}
