/*
  Trophacom Book landing page styles.
  ---------------------------------------------------------------------------
  COLOURS: change them only in the two blocks below (light, then dark).
  The brand colours were sampled from the logo (public/brand/trophacom-logo.jpg):
    deep blue  #0B308A  (the word "TROPHACOM" and the "T")
    bright blue #0052D9 (the light edge of the "T")
    green      #12A02E  (the "B" and the word "BOOK")
  Text colours are darker or lighter versions so every text passes WCAG AA.
*/

/* FONTS: stored on this site (no Google Fonts). The same two families as the app:
   Lexend for headings, the name and text; IBM Plex Sans for numbers, so they line up. Licences in /fonts. */
@font-face { font-family: 'Lexend'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/lexend-latin-ext-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Lexend'; font-style: normal; font-display: swap; font-weight: 100 900; src: url(/fonts/lexend-latin-wght-normal.woff2) format('woff2-variations'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-sans-latin-ext-400-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 400; src: url(/fonts/ibm-plex-sans-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/ibm-plex-sans-latin-ext-500-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 500; src: url(/fonts/ibm-plex-sans-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/ibm-plex-sans-latin-ext-600-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 600; src: url(/fonts/ibm-plex-sans-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/ibm-plex-sans-latin-ext-700-normal.woff2) format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-display: swap; font-weight: 700; src: url(/fonts/ibm-plex-sans-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }


:root {
  /* Brand (from the logo) */
  --brand-blue: #0B308A;
  --brand-blue-bright: #0052D9;
  --brand-green: #12A02E;
  --brand-green-deep: #0B7A2B;

  /* Light theme */
  --bg: #F6F8FC;
  --bg-alt: #EDF2FA;
  --surface: #FFFFFF;
  --surface-2: #F8FAFD;
  --ink: #0D1626;
  --ink-2: #3E4A5E;
  --ink-3: #5A6577;
  --line: #DCE3EE;
  --line-soft: #E9EEF5;
  --accent: #0B308A;
  --accent-ink: #FFFFFF;
  --link: #0B4BC2;
  --green-ink: #0B7A2B;
  --wa: #0B7A2B;
  --wa-hover: #096524;
  --wa-ink: #FFFFFF;
  --focus: #0052D9;
  --error: #B42318;
  --glass: rgba(246, 248, 252, 0.72);
  --glass-line: rgba(13, 22, 38, 0.08);
  --shadow-sm: 0 1px 2px rgba(13, 22, 38, 0.06), 0 2px 8px rgba(13, 22, 38, 0.05);
  --shadow-lg: 0 2px 6px rgba(13, 22, 38, 0.06), 0 24px 60px -18px rgba(11, 48, 138, 0.28);
  --glow-blue: rgba(0, 82, 217, 0.12);
  --glow-green: rgba(18, 160, 46, 0.10);
  --ph-bg: rgba(0, 82, 217, 0.07);
  --ph-line: rgba(0, 82, 217, 0.45);
  /* Tanzanite: the app's third brand colour (the main figure on Home) */
  --tanzanite: #2B1F6E;
  --tanzanite-soft: #CBC2F2;
  --tanzanite-bar: #9D8DF0;

  /* The route band is dark in both themes */
  --route-bg: #071027;
  --route-bg-2: #0B1735;
  --route-ink: #EEF3FB;
  --route-ink-2: #A9B6CC;
  --route-line-base: rgba(238, 243, 251, 0.14);
  --route-line: #4C8DFF;
  --route-done: #2FC25B;
  --route-card: #FFFFFF;
  --route-card-ink: #0D1626;

  /* Type and sizes */
  --font-head: "Lexend", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --font-body: "Lexend", ui-sans-serif, system-ui, "Segoe UI", Roboto, Arial, sans-serif;
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 68px;
  --gutter: 20px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070D1C;
    --bg-alt: #0B1428;
    --surface: #0F1A31;
    --surface-2: #13203B;
    --ink: #EAF0F9;
    --ink-2: #C0CBDC;
    --ink-3: #9AA8BE;
    --line: #22314F;
    --line-soft: #1A2742;
    --accent: #7FA8FF;
    --accent-ink: #071027;
    --link: #8DB3FF;
    --green-ink: #5FD47F;
    --glass: rgba(7, 13, 28, 0.70);
    --glass-line: rgba(234, 240, 249, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px -18px rgba(0, 0, 0, 0.7);
    --glow-blue: rgba(76, 141, 255, 0.16);
    --glow-green: rgba(47, 194, 91, 0.10);
    --ph-bg: rgba(127, 168, 255, 0.10);
    --ph-line: rgba(127, 168, 255, 0.5);
    --focus: #8DB3FF;
    --error: #FF8A80;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070D1C;
  --bg-alt: #0B1428;
  --surface: #0F1A31;
  --surface-2: #13203B;
  --ink: #EAF0F9;
  --ink-2: #C0CBDC;
  --ink-3: #9AA8BE;
  --line: #22314F;
  --line-soft: #1A2742;
  --accent: #7FA8FF;
  --accent-ink: #071027;
  --link: #8DB3FF;
  --green-ink: #5FD47F;
  --glass: rgba(7, 13, 28, 0.70);
  --glass-line: rgba(234, 240, 249, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, 0.4), 0 24px 60px -18px rgba(0, 0, 0, 0.7);
  --glow-blue: rgba(76, 141, 255, 0.16);
  --glow-green: rgba(47, 194, 91, 0.10);
  --ph-bg: rgba(127, 168, 255, 0.10);
  --ph-line: rgba(127, 168, 255, 0.5);
  --focus: #8DB3FF;
  --error: #FF8A80;
  color-scheme: dark;
}

/* ------------------------------------------------------------------------ */
/* Base                                                                     */
/* ------------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); overflow-x: clip; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3 { font-family: var(--font-head); color: var(--ink); line-height: 1.08; letter-spacing: -0.025em; margin: 0; font-weight: 700; }
p { margin: 0; }
a { color: var(--link); }
button, input, select, textarea { font: inherit; color: inherit; }
.num { font-family: "IBM Plex Sans", ui-sans-serif, system-ui, sans-serif; font-variant-numeric: tabular-nums; }
.select { user-select: all; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.wrap { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter); }

:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--surface); color: var(--ink); padding: 10px 14px; border-radius: 10px;
  box-shadow: var(--shadow-lg); text-decoration: none; font-weight: 600;
}
.skip:focus { top: 12px; }

/* Placeholder text: visible on purpose until the approved copy is added. */
.ph {
  background: var(--ph-bg);
  outline: 1px dashed var(--ph-line);
  outline-offset: 2px;
  border-radius: 6px;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}


/* ------------------------------------------------------------------------ */
/* Buttons                                                                  */
/* ------------------------------------------------------------------------ */
.btn {
  position: relative; overflow: hidden; isolation: isolate;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 650; font-size: 16px; text-decoration: none; cursor: pointer; white-space: nowrap;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 17px; }
.btn-wa { background: var(--wa); color: var(--wa-ink); box-shadow: 0 8px 24px -10px rgba(11, 122, 43, 0.6); }
.btn-wa:hover { background: var(--wa-hover); }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink-3); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-ghost-light { background: transparent; color: #FFFFFF; border-color: rgba(255, 255, 255, 0.55); }
.btn-ghost-light:hover { background: rgba(255, 255, 255, 0.10); }
.cta .btn-ghost-light::after { background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.18) 50%, transparent 70%); }
.wa-icon { width: 20px; height: 20px; fill: currentColor; flex: none; }
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 255, 255, 0.28) 50%, transparent 70%);
  transform: translateX(-120%);
}

/* ------------------------------------------------------------------------ */
/* Navigation                                                               */
/* ------------------------------------------------------------------------ */
.progress { position: fixed; inset: 0 0 auto 0; height: 3px; z-index: 70; pointer-events: none; }
.progress-bar {
  display: block; height: 100%; transform-origin: 0 50%; transform: scaleX(0);
  background: linear-gradient(90deg, var(--brand-blue-bright), var(--brand-green));
}
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 60;
  background: var(--glass);
  -webkit-backdrop-filter: saturate(170%) blur(16px);
  backdrop-filter: saturate(170%) blur(16px);
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled { border-bottom-color: var(--glass-line); }
.nav-inner {
  max-width: 1180px; margin-inline: auto; padding-inline: var(--gutter);
  height: var(--nav-h); display: flex; align-items: center; gap: 20px;
}
.nav.is-scrolled .nav-inner { height: 58px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; flex: none; }
.brand-mark { width: 40px; height: auto; }
.wordmark { font-family: var(--font-head); font-weight: 750; font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.wm-a { color: var(--brand-blue); }
.wm-b { color: var(--brand-green-deep); }
:root[data-theme="dark"] .wm-a { color: #8DB3FF; }
:root[data-theme="dark"] .wm-b { color: #5FD47F; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .wm-a { color: #8DB3FF; }
  :root:not([data-theme="light"]) .wm-b { color: #5FD47F; }
}
.nav-links { display: flex; gap: 0; margin-left: auto; }
.nav-links a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: 15px; border-radius: 999px;
  white-space: nowrap;
}
.nav-links a:hover { color: var(--ink); }
.nav-links a[aria-current="true"] { color: var(--ink); background: var(--surface); box-shadow: var(--shadow-sm); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.chip, .icon-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 4px;
  min-width: 44px; min-height: 44px; padding: 0 12px; border-radius: 999px;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer;
  font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
}
.icon-btn { padding: 0; width: 44px; }
.icon-btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.chip:hover, .icon-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.lang-toggle [data-lang-option] { opacity: 0.55; }
.lang-toggle [data-lang-option].is-on { opacity: 1; color: var(--ink); }
.lang-toggle .sep { opacity: 0.35; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}
.menu-btn { display: none; }

.menu {
  position: fixed; inset: 0; z-index: 80; background: var(--bg);
  display: flex; flex-direction: column; justify-content: center; gap: 28px;
  padding: 88px 28px calc(28px + env(safe-area-inset-bottom));
  clip-path: circle(0 at var(--mx, 100%) var(--my, 0));
}
.menu.is-open { clip-path: circle(150vmax at var(--mx, 100%) var(--my, 0)); }
.menu[hidden] { display: none; }
.menu-close { position: absolute; top: 12px; right: 16px; }
.menu-links { display: flex; flex-direction: column; gap: 4px; }
.menu-links a {
  font-family: var(--font-head); font-size: 34px; font-weight: 700; letter-spacing: -0.02em;
  color: var(--ink); text-decoration: none; min-height: 52px; display: flex; align-items: center;
}
.menu-links a[aria-current="true"] { color: var(--green-ink); }
.menu-is-open, .menu-is-open body { overflow: hidden; }


/* Over the dark route band the nav turns dark too. */
.nav.on-dark { background: rgba(7, 16, 39, 0.72); border-bottom-color: rgba(238, 243, 251, 0.08); }
.nav.on-dark .nav-links a { color: #C3CEE0; }
.nav.on-dark .nav-links a:hover { color: #FFFFFF; }
.nav.on-dark .nav-links a[aria-current="true"] { color: #FFFFFF; background: rgba(238, 243, 251, 0.10); box-shadow: none; }
.nav.on-dark .chip, .nav.on-dark .icon-btn { background: rgba(238, 243, 251, 0.06); border-color: rgba(238, 243, 251, 0.18); color: #DCE4F2; }
.nav.on-dark .lang-toggle [data-lang-option].is-on { color: #FFFFFF; }
.nav.on-dark .wm-a { color: #8DB3FF; }
.nav.on-dark .btn-ghost { background: rgba(238, 243, 251, 0.06); border-color: rgba(238, 243, 251, 0.25); color: #FFFFFF; }
.nav.on-dark .btn-primary { background: #7FA8FF; color: #071027; }
.nav.on-dark .wm-b { color: #5FD47F; }

.menu-tools { display: flex; gap: 10px; }
.menu-auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.menu-wa { align-self: stretch; }

/* ------------------------------------------------------------------------ */
/* Hero                                                                     */
/* ------------------------------------------------------------------------ */
.hero {
  position: relative; padding: calc(var(--nav-h) + 72px) 0 96px; overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 10%, var(--glow-blue), transparent 60%),
    radial-gradient(700px 420px at 10% 90%, var(--glow-green), transparent 60%);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
.hero h1 { font-size: clamp(40px, 5.6vw, 72px); font-weight: 800; letter-spacing: -0.035em; }
.lead { margin-top: 22px; font-size: clamp(18px, 1.6vw, 21px); color: var(--ink-2); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.proof { list-style: none; padding: 0; margin: 38px 0 0; display: grid; gap: 12px; }
.proof li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink-2); font-weight: 550; }
.proof-dot {
  flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--brand-green-deep);
  box-shadow: inset 0 0 0 6px var(--surface);
  border: 2px solid var(--brand-green-deep);
}
.hero-visual { display: flex; justify-content: center; }
.tilt { transform-style: preserve-3d; will-change: transform; width: min(100%, 470px); }

/* The hero: a small copy of the app's Home screen (every number is an example) */
.shot {
  margin: 0; background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden;
}
.shot-bar { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line-soft); }
.shot-name { font-size: 15px; }
.shot-bar .tag-example { margin-inline-start: auto; }
.shot-body { display: grid; gap: 12px; padding: 16px; background: var(--surface-2); }
.shot-title { margin: 0; font-family: var(--font-head); font-weight: 600; font-size: 19px; letter-spacing: -0.02em; }
.shot-hero { padding: 16px; border-radius: 12px; background: var(--tanzanite); color: #FFFFFF; }
.shot-label, .shot-split span { margin: 0; font-size: 13px; color: var(--tanzanite-soft); }
.shot-amount { margin: 4px 0 0; font-size: 30px; font-weight: 600; line-height: 1.1; }
.shot-split { display: flex; gap: 24px; margin-top: 12px; }
.shot-split span, .shot-split strong { display: block; }
.shot-split strong { font-size: 17px; font-weight: 600; }
.shot-bars { display: flex; align-items: flex-end; gap: 5px; height: 44px; margin-top: 14px; }
.shot-bars i { flex: 1; min-height: 3px; border-radius: 2px 2px 0 0; background: var(--tanzanite-bar); }
.shot-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.shot-card { min-width: 0; padding: 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); }
.shot-card span { display: block; font-size: 13px; color: var(--ink-3); }
.shot-card strong { display: block; margin-top: 2px; font-size: 17px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.shot-pill { display: inline-block; margin-top: 6px; padding: 1px 8px; border-radius: 999px; font-size: 12px; font-style: normal; font-weight: 600; color: var(--green-ink); background: color-mix(in srgb, var(--brand-green) 12%, transparent); }
.shot-live { list-style: none; margin: 0; padding: 0 12px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line-soft); }
.shot-live li { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; gap: 10px; align-items: baseline; padding: 10px 0; font-size: 14px; }
.shot-live li + li { border-top: 1px solid var(--line-soft); }
.shot-live li span:first-child { color: var(--ink-3); }
.shot-note { text-align: center; }

/* Document cards (all numbers are examples) */
.doc {
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px;
}
.doc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.doc-type { font-family: var(--font-head); font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.tag-example {
  font-size: 12px; font-weight: 600;
  color: var(--green-ink); background: color-mix(in srgb, var(--brand-green) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--brand-green) 35%, transparent);
  padding: 4px 10px; border-radius: 999px;
}
.doc-note { margin-top: 10px; font-size: 13px; color: var(--ink-3); }

/* ------------------------------------------------------------------------ */
/* The route (dark band)                                                    */
/* ------------------------------------------------------------------------ */
.route { background: radial-gradient(1200px 600px at 50% 0%, var(--route-bg-2), var(--route-bg) 70%); color: var(--route-ink); }
.route h2, .route h3 { color: var(--route-ink); }
.route-stage { padding: 96px 0; }
.route-head h2 { font-size: clamp(30px, 3.6vw, 48px); max-width: 22ch; }
.route-body { margin-top: 36px; display: grid; gap: 28px; }
.route-map { position: relative; width: min(100%, 980px); margin-inline: auto; }
.route-svg { width: 100%; height: auto; overflow: visible; }
.route-svg-v { display: none; }
.route-base, .route-line { fill: none; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.route-base { stroke: var(--route-line-base); stroke-width: 3; stroke-dasharray: 2 10; }
.route-line { stroke: var(--route-line); stroke-width: 4; filter: drop-shadow(0 0 10px rgba(76, 141, 255, 0.45)); }

.route-stops { list-style: none; margin: 18px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.route-stops button {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px;
  border-radius: 999px; border: 1px solid rgba(238, 243, 251, 0.16); background: transparent;
  color: var(--route-ink-2); font-weight: 600; font-size: 14px; cursor: pointer;
}
.stop-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--route-bg); border: 2px solid rgba(238, 243, 251, 0.35); flex: none; }
.route-stops button.is-passed .stop-dot { border-color: var(--route-done); background: var(--route-done); }
.route-stops button.is-active { color: var(--route-ink); }
.route-stops button.is-active .stop-dot { border-color: var(--route-line); background: var(--route-line); box-shadow: 0 0 0 6px rgba(76, 141, 255, 0.22); }

/* With JavaScript, stops sit on the line. */
.js .route-stops { position: absolute; inset: 0; margin: 0; display: block; pointer-events: none; }
.js .route-stops li { position: absolute; width: 0; height: 0; }
.js .route-stops button {
  pointer-events: auto; position: absolute; left: 0; top: 0; transform: translate(-50%, -50%);
  width: 44px; height: 44px; padding: 0; border: 0; justify-content: center; border-radius: 50%;
}
.js .route-stops button > span:last-child {
  position: absolute; white-space: nowrap; font-size: 14px; font-weight: 650;
  padding: 4px 10px; border-radius: 999px;
}
.js .route-stops li[data-side="below"] button > span:last-child { top: calc(100% + 2px); left: 50%; transform: translateX(-50%); }
.js .route-stops li[data-side="above"] button > span:last-child { bottom: calc(100% + 2px); left: 50%; transform: translateX(-50%); }
.js .route-stops li[data-side="right"] button > span:last-child { left: calc(100% - 2px); top: 50%; transform: translateY(-50%); font-size: 13px; }
.js .route-stops button.is-active > span:last-child { background: rgba(76, 141, 255, 0.16); color: var(--route-ink); }

.coin { display: none; }
.js .coin {
  display: grid; place-items: center; position: absolute; left: 0; top: 0; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; pointer-events: none; will-change: transform;
  background: radial-gradient(circle at 32% 28%, #3FD46B, var(--brand-green) 55%, #0A6F26);
  box-shadow: 0 0 0 3px rgba(238, 243, 251, 0.9), 0 0 0 9px rgba(47, 194, 91, 0.22), 0 10px 26px rgba(0, 0, 0, 0.45);
  font-family: var(--font-head); font-weight: 800; color: #FFFFFF; font-size: 19px; line-height: 1;
}

.route-detail { display: none; }
.js .route-detail { display: grid; grid-template-columns: 360px 1fr; gap: 40px; align-items: center; width: min(100%, 980px); margin-inline: auto; }
.route-cards { display: grid; }
.route-cards .doc { grid-area: 1 / 1; background: var(--route-card); color: var(--route-card-ink); border-color: transparent; opacity: 0; transform: translateY(10px) scale(0.98); }
.route-cards .doc.is-active { opacity: 1; transform: none; }
.route-cards .doc .doc-type { color: var(--route-card-ink); }
.route-cards .tag-example { color: #0B7A2B; background: #E7F6EB; border-color: #B8E3C3; }
.doc-sm { padding: 18px 20px; }
.doc-row { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid #E9EEF5; font-size: 14px; }
.doc-row > span:first-child { color: #5A6577; }
.doc-row > span:last-child { font-weight: 650; text-align: right; }
.doc-row-total { border-bottom: 0; padding-top: 12px; font-size: 16px; }
.doc-row-total > span:last-child { font-family: var(--font-head); font-size: 19px; }
.route-text { min-height: 150px; }
.route-step-no { font-size: 13px; letter-spacing: 0.08em; font-weight: 700; color: var(--route-ink-2); }
.route-text h3 { font-size: clamp(26px, 2.6vw, 34px); margin-top: 8px; }
.route-text p:last-child { margin-top: 12px; color: var(--route-ink-2); font-size: 18px; max-width: 32em; }
.route .ph { background: rgba(127, 168, 255, 0.12); outline-color: rgba(127, 168, 255, 0.55); }

.route-all { list-style: none; margin: 48px auto 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: stop; }
.route-all li { border: 1px solid rgba(238, 243, 251, 0.14); border-radius: var(--radius); padding: 20px; background: rgba(255, 255, 255, 0.03); counter-increment: stop; }
.route-all li::before { content: counter(stop); display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--route-line); color: var(--route-bg); font-weight: 800; font-size: 14px; margin-bottom: 12px; }
.route-all h3 { font-size: 20px; }
.route-all p { margin-top: 8px; color: var(--route-ink-2); }

/* Motion version: a tall track with a pinned stage that the scroll position drives. */
.route-motion .route-track { height: 560vh; }
.route-motion .route-stage {
  position: sticky; top: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column; justify-content: center;
  padding: calc(var(--nav-h) + 16px) 0 32px;
}
.route-motion .route-all { display: none; }
.route-motion .route-head h2 { font-size: clamp(26px, 2.8vw, 40px); max-width: 30ch; }
.route-motion .route-body { margin-top: clamp(12px, 3vh, 32px); gap: clamp(10px, 2.4vh, 28px); }
.route-motion .route-map { width: min(100%, 880px, calc((100vh - 500px) * 4)); }

/* ------------------------------------------------------------------------ */
/* Sections                                                                 */
/* ------------------------------------------------------------------------ */
.section { padding: 120px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head h2 { font-size: clamp(32px, 4vw, 52px); }
.section-lead { margin-top: 16px; color: var(--ink-2); font-size: 19px; }
.cols3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 22px; margin-top: 18px; }
.card p { margin-top: 10px; color: var(--ink-2); }

.compare { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.compare-col { border-radius: var(--radius); padding: 32px; border: 1px solid var(--line); }
.compare-old { background: var(--surface-2); }
.compare-new { background: var(--surface); box-shadow: var(--shadow-lg); border-color: color-mix(in srgb, var(--brand-green) 40%, var(--line)); }
.compare-col h3 { font-size: 24px; }
.compare-col ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 14px; }
.compare-col li { position: relative; padding-left: 34px; color: var(--ink-2); }
.compare-col li::before { content: ""; position: absolute; left: 0; top: 3px; width: 22px; height: 22px; border-radius: 50%; }
.compare-old li::before { border: 2px solid var(--ink-3); background: linear-gradient(45deg, transparent 45%, var(--ink-3) 45%, var(--ink-3) 55%, transparent 55%); }
.compare-new li::before { background: var(--brand-green-deep); }
.compare-new li::after { content: ""; position: absolute; left: 7px; top: 9px; width: 8px; height: 5px; border: solid #FFFFFF; border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.facts { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.facts li { display: flex; gap: 16px; align-items: flex-start; padding: 22px 0; border-top: 1px solid var(--line); font-size: 18px; color: var(--ink-2); }
.fact-tick { flex: none; width: 26px; height: 26px; margin-top: 1px; border-radius: 8px; background: color-mix(in srgb, var(--brand-blue-bright) 14%, transparent); position: relative; }
.fact-tick::after { content: ""; position: absolute; left: 8px; top: 9px; width: 9px; height: 5px; border: solid var(--accent); border-width: 0 0 2px 2px; transform: rotate(-45deg); }

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; padding: 34px; max-width: 860px; }
.field { display: grid; gap: 8px; align-content: start; }
.field-wide { grid-column: 1 / -1; }
.field label { font-weight: 650; font-size: 15px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font-size: 16px;
}
.field textarea { resize: vertical; min-height: 110px; }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline-offset: 0; border-color: var(--focus); }
.field [aria-invalid="true"] { border-color: var(--error); }
.field-error { color: var(--error); font-size: 14px; font-weight: 600; min-height: 0; }
.field-error:empty { display: none; }
.form-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.form-status { color: var(--ink-2); font-size: 15px; }

.cta { padding: 110px 0; background: linear-gradient(135deg, #0B308A 0%, #0A2569 55%, #0B4A2E 100%); color: #FFFFFF; }
.cta-inner { display: grid; justify-items: center; text-align: center; gap: 26px; }
.cta h2 { color: #FFFFFF; font-size: clamp(32px, 4.4vw, 56px); max-width: 18ch; }
.cta .ph { background: rgba(255, 255, 255, 0.12); outline-color: rgba(255, 255, 255, 0.55); }
.cta .btn-wa { background: #FFFFFF; color: #0B5D22; box-shadow: 0 14px 34px -14px rgba(0, 0, 0, 0.6); }
.cta .btn-wa:hover { background: #EAF7EE; }
.cta .btn::after { background: linear-gradient(110deg, transparent 30%, rgba(11, 122, 43, 0.14) 50%, transparent 70%); }
.cta-number { font-size: 18px; color: #DCE6FA; }
.cta-number .num { color: #FFFFFF; font-weight: 700; }
.cta-email a { color: #FFFFFF; }

.footer { padding: 40px 0 calc(40px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; color: var(--ink-3); font-size: 15px; }
.footer .wordmark { font-size: 18px; }

.fab-wa, .to-top {
  position: fixed; z-index: 50; display: grid; place-items: center; border-radius: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom));
}
.fab-wa { right: 18px; width: 58px; height: 58px; background: var(--wa); color: #FFFFFF; box-shadow: 0 14px 30px -10px rgba(11, 122, 43, 0.7); }
.fab-wa:hover { background: var(--wa-hover); }
.fab-wa svg { width: 28px; height: 28px; fill: currentColor; }
.to-top {
  right: 88px; width: 46px; height: 46px; background: var(--surface); color: var(--ink);
  border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden;
}
.to-top.is-shown { opacity: 1; visibility: visible; }
.to-top svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ------------------------------------------------------------------------ */
/* Motion (only when the device allows it)                                  */
/* ------------------------------------------------------------------------ */
@media (prefers-reduced-motion: no-preference) {
  .nav, .nav-inner { transition: height 0.3s var(--ease), border-color 0.3s, background 0.3s; }
  .btn { transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease); }
  .btn:active { transform: scale(0.98); }
  .btn:hover::after { transform: translateX(120%); transition: transform 0.85s var(--ease); }
  .menu { transition: clip-path 0.45s var(--ease); }
  .tilt { transition: transform 0.25s var(--ease); }
  .route-cards .doc { transition: opacity 0.4s var(--ease), transform 0.5s var(--ease); }
  .stop-dot { transition: background 0.3s, border-color 0.3s, box-shadow 0.3s; }
  .route-stops button { transition: color 0.3s; }
  .to-top { transition: opacity 0.3s, visibility 0.3s; }
  .reveal-on [data-reveal]:not(.is-in) { opacity: 0; transform: translateY(22px); }
  .reveal-on [data-reveal] { transition: opacity 0.7s var(--ease), transform 0.8s var(--ease); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ------------------------------------------------------------------------ */
/* Layout for smaller screens                                               */
/* ------------------------------------------------------------------------ */
@media (max-width: 1320px) {
  .nav-wa { display: none; }
}
/* Below 1024px the section links move into the menu, so the bar never runs over. */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-tools { margin-left: auto; }
}
@media (max-width: 1080px) {
  .nav-links a { padding: 0 9px; }
}
@media (max-width: 899px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-flex; }
  .nav-tools { margin-left: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .cols3 { grid-template-columns: 1fr; }
  .compare { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr; }
  .js .route-detail { grid-template-columns: 300px 1fr; gap: 28px; }
}
@media (max-width: 759px) {
  :root { --gutter: 16px; --nav-h: 60px; }
  body { font-size: 16px; }
  .nav.is-scrolled .nav-inner { height: 54px; }
  .nav-inner { gap: 10px; }
  .brand-mark { width: 34px; }
  .wordmark { font-size: 17px; }
  .nav-wa, .nav-auth, .nav-tools .theme-toggle { display: none; }
  .lang-toggle { padding: 0 10px; }
  .hero { padding: calc(var(--nav-h) + 40px) 0 72px; }
  .hero-actions .btn { width: 100%; }
  .doc { padding: 18px; }
  .doc-meta { grid-template-columns: 1fr 1fr; }
  .doc-meta div:last-child { grid-column: 1 / -1; }
  .section { padding: 84px 0; }
  .section-head { margin-bottom: 36px; }
  .card, .compare-col { padding: 24px; }
  .form { grid-template-columns: 1fr; padding: 22px; }
  .form-foot .btn { width: 100%; }
  .cta { padding: 84px 0; }
  .cta .btn { width: 100%; }

  /* The route on phones: vertical line on the left, text beside it, the card below. */
  .route-svg-h { display: none; }
  .route-svg-v { display: block; width: auto; height: min(34vh, 300px); }
  .route-stage { padding: 72px 0; }
  .route-motion .route-stage { padding: calc(var(--nav-h) + 8px) 0 16px; justify-content: flex-start; }
  .route-head h2 { font-size: 26px; }
  .route-motion .route-head h2 { font-size: 22px; }
  .route-body { margin-top: 18px; gap: 14px; }
  .js .route-body { grid-template-columns: 136px 1fr; align-items: start; }
  .js .route-map { width: auto; margin: 0; justify-self: start; padding-left: 8px; }
  .js .route-detail { display: contents; }
  .js .route-text { grid-column: 2; grid-row: 1; min-height: 0; align-self: center; }
  .js .route-cards { grid-column: 1 / -1; grid-row: 2; }
  .route-text h3 { font-size: 24px; }
  .route-text p:last-child { font-size: 16px; }
  .doc-sm { padding: 14px 16px; }
  .doc-row { padding: 7px 0; font-size: 13px; }
  .js .coin { width: 32px; height: 32px; font-size: 16px; }
  .js .route-stops li[data-side="right"] button > span:last-child { padding: 2px 6px; font-size: 12px; }
  .fab-wa { right: 14px; width: 54px; height: 54px; }
  .to-top { right: 78px; }
}

@media (max-width: 759px) and (max-height: 720px) {
}
