/* ============================================================
   TRT Thailand — INSTRUMENT (v3)
   Attio-grade precision site set in the app's own design system.
   Palette = the app's palette. Hairline #E4ECF4 is load-bearing.
   ============================================================ */

/* ---- Fonts (self-hosted) ---- */
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2212;
}
@font-face {
  font-family: "Inter";
  src: url("/assets/fonts/inter-var-latin-ext.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0100-024F, U+0259, U+1E00-1EFF, U+2020, U+20A0-20AB, U+20AD-20BF, U+2C60-2C7F, U+A720-A7FF;
}
@font-face { font-family: "Nunito"; src: url("/assets/fonts/nunito-900-latin.woff2") format("woff2"); font-weight: 900; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("/assets/fonts/kanit-400-latin.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("/assets/fonts/kanit-500-latin.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("/assets/fonts/kanit-600-latin.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Kanit"; src: url("/assets/fonts/kanit-700-latin.woff2") format("woff2"); font-weight: 700; font-display: swap; }

/* ---- Tokens ---- */
:root {
  --bg: #FFFFFF;
  --bg-tint: #F0F5FA;
  --card: #FFFFFF;
  --line: #E4ECF4;
  --line-strong: #D7E3F2;
  --navy: #1D335B;
  --body: #2A3A55;
  --muted: #7C8CA5;
  --accent: #3E6EA5;
  --sky: #8DBFE2;
  --green: #1FA971;
  --amber: #E0A100;
  --wa: #25D366;
  --d-bg: #0F1B30;
  --d-card: #18263F;
  --d-card2: #1F2F4C;
  --d-line: #27395A;
  --d-heading: #EAF2FA;
  --d-body: #D7E3F2;
  --d-muted: #8CA0BC;
  --d-green: #34C08B;
  --shadow-1: 0 1px 2px rgba(29,51,91,.05);
  --shadow-2: 0 12px 32px -12px rgba(29,51,91,.12);
  --ink: #1D335B;          /* legacy alias (subpages) */
  --shadow-md: 0 12px 32px -12px rgba(29,51,91,.12);
  --shadow-lg: 0 12px 32px -12px rgba(29,51,91,.12);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --kanit: "Kanit", "Inter", -apple-system, sans-serif;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-optical-sizing: auto;
  background: var(--bg);
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
::selection { background: var(--sky); color: var(--d-bg); }
img { max-width: 100%; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

h1, h2, h3 { color: var(--navy); font-weight: 650; }
h1 { font-size: clamp(2.75rem, 1.95rem + 4vw, 5.25rem); line-height: 1.02; letter-spacing: -.045em; }
h2 { font-size: clamp(1.875rem, 1.35rem + 2.4vw, 3.25rem); line-height: 1.08; letter-spacing: -.035em; font-weight: 640; max-width: 24ch; }
h3 { font-size: 1.1875rem; line-height: 1.3; letter-spacing: -.02em; font-weight: 620; }
.lede { font-size: clamp(1.0625rem, .98rem + .45vw, 1.1875rem); line-height: 1.6; color: var(--body); max-width: 56ch; }
.lede strong, .lede b { color: var(--navy); font-weight: 600; }
.num { font-variant-numeric: tabular-nums lining-nums; }

/* Micro-label — the Attio signature */
.mlabel {
  font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); display: block; margin-bottom: 18px;
}
.dark .mlabel, .mlabel.on-dark { color: var(--d-muted); }

/* Specimen box (icon container) */
.spec-box {
  width: 36px; height: 36px; flex: none; display: grid; place-items: center;
  background: var(--card); border: 1px solid var(--line); border-radius: 8px;
  color: var(--accent);
}
.dark .spec-box { background: var(--d-card); border-color: var(--d-line); color: var(--sky); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 600; letter-spacing: -.006em;
  padding: 11px 18px; border-radius: 8px; border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, border-color .15s ease;
  cursor: pointer; text-decoration: none !important;
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { transform: translateY(-1px); background: #24406f; }
.wa-cta {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 18px; font-size: 14px; font-weight: 600; color: var(--navy);
  text-decoration: none !important; transition: border-color .15s ease, transform .15s ease;
}
.wa-cta svg { color: var(--wa); }
.wa-cta:hover { border-color: var(--sky); transform: translateY(-1px); }
.dark .wa-cta { background: var(--d-card); border-color: var(--d-line); color: var(--d-heading); }
.store-badge { display: inline-block; line-height: 0; border-radius: 8px; opacity: .92; transition: opacity .15s ease, transform .15s ease; }
.store-badge:hover { opacity: 1; transform: translateY(-1px); }
.store-badge svg { height: 44px; width: auto; }

/* ---- Reveal safety (triple belt: no-JS = visible; IO adds .in; CSS 4s failsafe) ---- */
.rv { opacity: 1; transform: none; }
html.js .rv { opacity: 0; transform: translateY(12px); transition: opacity .5s cubic-bezier(.22,.61,.27,1), transform .5s cubic-bezier(.22,.61,.27,1); animation: rvFallback 1ms 4s forwards; }
html.js .rv.in { opacity: 1; transform: none; animation: none; }
html.js .rv:nth-child(2) { transition-delay: .06s; }
html.js .rv:nth-child(3) { transition-delay: .12s; }
html.js .rv:nth-child(4) { transition-delay: .18s; }
@keyframes rvFallback { to { opacity: 1; transform: none; } }

/* ============ NAV ============ */
.nav {
  position: sticky; top: 0; z-index: 50; background: var(--bg);
  border-bottom: 1px solid var(--line); height: 60px;
}
.nav.scrolled { border-bottom-color: var(--line-strong); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none !important; }
.lockup-icon { height: 30px; width: 30px; display: block; }
.lockup-text { font-family: "Nunito", var(--font); font-size: 19.5px; font-weight: 900; letter-spacing: -.25px; color: var(--navy); line-height: 1; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--body); letter-spacing: -.006em; text-decoration: none !important; }
.nav-links a:hover { color: var(--accent); }
.nav-links a.btn-navy, .nav-links a.btn-navy:hover { color: #fff; }
.nav-links .btn { padding: 9px 16px; }
@media (max-width: 760px) { .nav-links a:not(.btn):not([lang]) { display: none; } }

/* ============ HERO ============ */
.hero { padding: 88px 0 0; text-align: center; }
.hero h1 { margin: 0 auto; max-width: 720px; }
.hero .lede { margin: 26px auto 0; }
.cta-row { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 36px; }
.cta-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.cta-note a { color: var(--accent); }
.wa-note { font-size: 12px; color: var(--muted); margin-top: 8px; }
.proof-line { font-size: 13px; color: var(--muted); margin-top: 30px; text-align: center; line-height: 2; }
.proof-line .star { color: var(--amber); }
.proof-line b { color: var(--body); font-weight: 600; }
.proof-logo { display: inline-block; height: 22px; width: auto; vertical-align: -6px; margin-right: 10px; }
.gi-logo { height: 34px; width: auto; align-self: center; margin-right: 6px; }

/* Product composition */
.hero-stage {
  position: relative; margin: 64px auto -140px; max-width: 1080px;
  background: var(--bg-tint);
  background-image: radial-gradient(circle, var(--line-strong) 1px, transparent 1px);
  background-size: 24px 24px;
  border: 1px solid var(--line); border-radius: 16px;
  padding: 56px 24px 0; overflow: hidden;
  display: flex; justify-content: center; align-items: flex-end; gap: 32px;
}
.hero-after { height: 180px; background: var(--bg); }
.frag-card {
  font-family: var(--kanit); background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--shadow-2); padding: 18px; width: 250px;
  text-align: left; flex: none; margin-bottom: 48px;
}
.frag-hero-l { transform: translateX(24px); }
.frag-hero-r { transform: translateX(-24px); }
@media (max-width: 1023px) { .hero-stage .frag-card { display: none; } .hero-stage { padding: 40px 16px 0; } }
.frag-k { font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: .02em; text-transform: uppercase; }
.frag-v { font-size: 24px; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.frag-v small { font-size: 12px; font-weight: 500; color: var(--muted); }
.frag-row { display: flex; align-items: center; justify-content: space-between; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--body); }
.frag-row:last-child { border-bottom: 0; }
.frag-row .ok { color: var(--green); font-weight: 500; font-size: 12px; }
.frag-tag { display: inline-block; font-size: 11px; font-weight: 500; color: var(--green); background: rgba(31,169,113,.09); border-radius: 6px; padding: 2px 8px; }

/* ============ DEVICE ============ */
.device {
  position: relative; width: min(340px, 86vw); aspect-ratio: 393 / 852; flex: none;
  border-radius: 54px; padding: 10px;
  background: linear-gradient(145deg, #3E4248 0%, #17191C 30%, #101215 70%, #2A2D31 100%);
  box-shadow:
    inset 0 0 0 1.25px rgba(255,255,255,.18),
    inset 0 0 0 3px #0A0B0C,
    0 2px 6px rgba(29,51,91,.22),
    0 24px 48px -20px rgba(29,51,91,.28);
}
html.js .device { animation: deviceSettle .7s cubic-bezier(.22,.61,.27,1) both; }
@keyframes deviceSettle { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.device::before, .device::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px; background: #26292D;
  box-shadow: inset 0 .5px 0 rgba(255,255,255,.25);
}
.device::before { left: -2px; top: 18%; height: 38px; }
.device::after { left: -2px; top: 26%; height: 38px; }
.device-btn-power { position: absolute; right: -2px; top: 22%; width: 3px; height: 74px; border-radius: 2px; background: #26292D; box-shadow: inset 0 .5px 0 rgba(255,255,255,.25); }
.device-screen {
  position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden;
  background: #F0F5FA;
}
.device-shadow {
  position: absolute; left: 50%; bottom: -14px; transform: translateX(-50%);
  width: 70%; height: 24px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(29,51,91,.30), transparent 70%);
  filter: blur(8px);
}

/* --- App poster: faithful recreation of the app's marker screen (Kanit + app tokens) --- */
.app-poster {
  position: absolute; inset: 0; font-family: var(--kanit); background: #F0F5FA;
  display: flex; flex-direction: column; padding: 12px 14px 0; transition: opacity .3s ease;
  container-type: inline-size;
}
.app-poster.gone { opacity: 0; pointer-events: none; }
.app-status { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 8px; }
.app-time { font-size: 13px; font-weight: 600; color: #1D335B; font-variant-numeric: tabular-nums; }
.app-island { width: 84px; height: 24px; background: #000; border-radius: 14px; position: relative; }
.app-island::after { content: ""; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); width: 8px; height: 8px; border-radius: 50%; background: #1a1a1c; box-shadow: inset 0 0 2px 1px #2e3138; }
.app-nav { display: flex; align-items: center; gap: 10px; padding: 6px 2px; }
.app-nav-title { font-size: 15px; font-weight: 600; color: #1D335B; flex: 1; }
.app-demo-chip { font-size: 9.5px; font-weight: 600; letter-spacing: .06em; color: #7C8CA5; background: #EAF1F9; border-radius: 6px; padding: 2px 7px; }
.app-value-row { display: flex; align-items: flex-start; justify-content: space-between; padding: 6px 2px 2px; }
.app-value { font-size: 34px; font-weight: 700; color: #1D335B; line-height: 1.05; font-variant-numeric: tabular-nums; }
.app-value small { font-size: 13px; font-weight: 500; color: #7C8CA5; }
.app-trend { font-size: 12px; font-weight: 500; color: #1FA971; margin-top: 2px; }
.app-dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; margin-top: 8px; }
.app-dot-ok { background: #1FA971; }
.app-dot-borderline { background: #E0A100; }
.app-chips { display: flex; gap: 6px; padding: 10px 2px 8px; }
.app-chips span { font-size: 12px; font-weight: 500; color: #7C8CA5; background: #fff; border: 1px solid #E4ECF4; border-radius: 8px; padding: 3px 12px; }
.app-chips .on { color: #fff; background: #1D335B; border-color: #1D335B; }
.app-chart-card { background: #fff; border: 1px solid #E4ECF4; border-radius: 14px; padding: 10px 8px 6px; }
.app-chart { width: 100%; height: auto; }
.app-axis { font-family: var(--kanit); font-size: 9.5px; font-weight: 500; fill: #7C8CA5; }
.app-axis-faint { opacity: .55; }
.app-range-note { display: flex; align-items: center; gap: 6px; font-size: 10.5px; color: #7C8CA5; padding: 6px 6px 4px; }
.app-range-note .app-dot { width: 7px; height: 7px; margin: 0; }
.app-note-card { background: #fff; border: 1px solid #E4ECF4; border-left: 3px solid #3E6EA5; border-radius: 12px; padding: 10px 12px; margin-top: 10px; }
.app-note-label { font-size: 9px; font-weight: 600; letter-spacing: .08em; color: #7C8CA5; }
.app-note-text { font-size: 12px; color: #2A3A55; line-height: 1.45; margin-top: 3px; font-style: italic; }
.app-tabbar { margin-top: auto; display: flex; justify-content: space-around; border-top: 1px solid #E4ECF4; background: #fff; margin-left: -14px; margin-right: -14px; padding: 8px 6px 18px; }
.app-tabbar span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 9.5px; font-weight: 500; color: #7C8CA5; }
.app-tabbar .on { color: #1D335B; }
.live-ping { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: livePulse 2s ease-in-out infinite; }
@keyframes livePulse { 0%,100% { box-shadow: 0 0 0 0 rgba(31,169,113,.45); } 50% { box-shadow: 0 0 0 6px rgba(31,169,113,0); } }

/* ============ PROOF STRIP ============ */
.proof-strip { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 160px; }
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-cell { padding: 34px 28px; border-left: 1px solid var(--line); }
.proof-cell:first-child { border-left: 0; }
.proof-cell b { display: block; font-size: 28px; font-weight: 650; color: var(--navy); letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.proof-cell b .star { color: var(--amber); font-size: 22px; }
.proof-cell > span { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
.proof-cell b span { display: inline; font-size: inherit; color: inherit; letter-spacing: inherit; margin: 0; text-transform: none; }
.proof-cell a { color: inherit; }
@media (max-width: 760px) {
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-cell { border-top: 1px solid var(--line); }
  .proof-cell:nth-child(-n+2) { border-top: 0; }
  .proof-cell:nth-child(odd) { border-left: 0; }
}

/* ============ SECTIONS ============ */
section { padding: 96px 0; }
.band-tint { background: var(--bg-tint); }
.dark { background: var(--d-bg); border-top: 1px solid var(--d-line); }
.dark h2 { color: var(--d-heading); }
.dark .lede { color: var(--d-body); }
.dark .lede strong, .dark .lede b { color: var(--d-heading); }
.sec-head { text-align: center; margin-bottom: 56px; }
.sec-head h2, .sec-head .lede { margin-left: auto; margin-right: auto; }
.sec-head .lede { margin-top: 18px; }

/* ============ BENTO ============ */
.bento { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.cell {
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: var(--shadow-1); padding: 26px 26px 0; overflow: hidden;
  display: flex; flex-direction: column;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.cell:hover { border-color: var(--sky); box-shadow: var(--shadow-2); }
.cell-7 { grid-column: span 7; }
.cell-5 { grid-column: span 5; }
.cell-4 { grid-column: span 4; }
.cell .mlabel { margin-bottom: 10px; }
.cell h3 { margin-bottom: 8px; }
.cell p { font-size: 15.5px; color: var(--body); max-width: 52ch; }
.cell-frag { font-family: var(--kanit); margin: 22px -1px -1px; background: #F0F5FA; border: 1px solid var(--line); border-bottom: 0; border-radius: 12px 12px 0 0; padding: 14px 14px 18px; flex: 1; }
.cell-frag-inner { background: #fff; border: 1px solid #E4ECF4; border-radius: 10px; padding: 12px; }
.bento-foot { text-align: center; margin-top: 28px; }
@media (max-width: 900px) {
  .cell-7, .cell-5, .cell-4 { grid-column: span 12; }
}
.chat-bub { font-family: var(--kanit); font-size: 12.5px; line-height: 1.45; border-radius: 12px; padding: 9px 12px; max-width: 88%; }
.chat-in { background: #fff; border: 1px solid #E4ECF4; color: #2A3A55; border-bottom-left-radius: 4px; }
.chat-out { background: #d9fdd3; color: #1a3326; margin-left: auto; margin-top: 8px; border-bottom-right-radius: 4px; }
.chat-time { font-size: 9.5px; color: #7C8CA5; text-align: right; margin-top: 2px; }

/* ============ COVERAGE (dark) ============ */
.coverage { padding: 112px 0 128px; }
.delivery-head { max-width: 720px; margin: 0 auto 96px; text-align: center; }
.cov-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 40px; align-items: center; }
.cov-copy { grid-column: span 5; }
.cov-map { grid-column: span 7; }
.th-map { width: 100%; height: auto; max-height: 800px; }
.cov-ledger { list-style: none; margin-top: 36px; }
.cov-ledger li { display: flex; gap: 16px; align-items: flex-start; padding: 18px 0; border-top: 1px solid var(--d-line); font-size: 15.5px; color: var(--d-body); }
.cov-ledger li:last-child { border-bottom: 1px solid var(--d-line); }
.cov-ledger b { color: var(--d-heading); font-weight: 600; }
.map-caption { font-size: 12.5px; color: var(--d-muted); margin-top: 14px; text-align: right; }
html.js .map-armed .map-dot { opacity: 0; transform: scale(0); transform-origin: center; transform-box: fill-box; animation: dotIn .45s ease 4s forwards; }
html.js .map-armed.map-go .map-dot { animation: dotIn .45s cubic-bezier(.22,.61,.27,1) forwards; animation-delay: calc(var(--i) * 18ms); }
@keyframes dotIn { to { opacity: 1; transform: scale(1); } }
.map-ping { animation: sonar 3s ease-out infinite; transform-origin: center; transform-box: fill-box; }
@keyframes sonar { 0% { transform: scale(1); opacity: .8; } 70% { transform: scale(2.6); opacity: 0; } 100% { opacity: 0; } }
@media (max-width: 900px) {
  .cov-copy, .cov-map { grid-column: span 12; }
  .cov-map { order: -1; }
}

/* ============ TRUST ============ */
.sign-figure { margin: 56px 0 0; }
.sign-figure img { width: 100%; aspect-ratio: 2.35 / 1; object-fit: cover; object-position: 50% 32%; border: 1px solid var(--line); border-radius: 12px; }
.fig-cap { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); margin-top: 10px; }
.fig-cap .mlabel { margin: 0; }
.trust-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px; margin-top: 96px; }
.trust-copy { grid-column: span 7; }
.trust-photo { grid-column: span 5; }
.trust-photo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 18%; border: 1px solid var(--line); border-radius: 12px; }
.trust-ledger { list-style: none; margin-top: 32px; }
.trust-ledger li { display: flex; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); font-size: 15.5px; }
.trust-ledger li:last-child { border-bottom: 1px solid var(--line); }
.trust-ledger b { color: var(--navy); font-weight: 600; }
.check { flex: none; margin-top: 4px; }
.google-inline { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-top: 36px; }
.google-inline .score { font-size: 44px; font-weight: 650; color: var(--navy); letter-spacing: -.02em; }
.google-inline .stars { color: var(--amber); font-size: 16px; letter-spacing: 2px; }
.google-inline .rev { font-size: 14px; color: var(--muted); }
.trust-close { margin-top: 36px; font-size: 15.5px; color: var(--body); max-width: 60ch; }
@media (max-width: 900px) { .trust-copy, .trust-photo { grid-column: span 12; } }

/* ============ CLINIC PHOTOS ============ */
.photo-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px; }
.photo-grid figure { margin: 0; }
.photo-grid img { width: 100%; object-fit: cover; border: 1px solid var(--line); border-radius: 12px; background: var(--bg-tint); }
.photo-grid figcaption { font-size: 13px; color: var(--muted); margin-top: 9px; }
.ph-a { grid-column: span 7; } .ph-a img { aspect-ratio: 16 / 10; object-position: 50% 38%; }
.ph-b { grid-column: span 5; margin-top: 40px !important; } .ph-b img { aspect-ratio: 4 / 5; object-position: 55% 50%; }
.ph-c { grid-column: span 8; } .ph-c img { aspect-ratio: 21 / 10; object-position: 50% 40%; }
.ph-d { grid-column: span 4; } .ph-d img { aspect-ratio: 4 / 5; }
@media (max-width: 900px) {
  .ph-a, .ph-b, .ph-c, .ph-d { grid-column: span 12; margin-top: 0 !important; }
  .ph-b img, .ph-d img { aspect-ratio: 16 / 10; }
}

/* ============ COMPARE ============ */
.compare-wrap { max-width: 880px; margin: 0 auto; }
.compare { overflow-x: auto; margin-top: 48px; }
.compare table { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 0; background: var(--card); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.compare th, .compare td { padding: 18px 22px; text-align: left; border-bottom: 1px solid var(--line); font-size: 15px; vertical-align: top; }
.compare tr:last-child td { border-bottom: 0; }
.compare th { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.compare th:last-child { color: var(--navy); box-shadow: inset 0 2px 0 var(--green); }
.compare td:first-child { color: var(--muted); }
.compare td:last-child { color: var(--navy); font-weight: 550; }
.compare td .check { display: inline-block; margin: 0 8px 0 0; vertical-align: -2px; }

/* ============ FAQ ============ */
.faq-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 48px; }
.faq-main { grid-column: span 8; }
.faq-side { grid-column: span 4; }
@media (max-width: 1100px) { .faq-main, .faq-side { grid-column: span 12; } }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-of-type { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  font-size: 16.5px; font-weight: 600; color: var(--navy); padding: 18px 2px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; color: var(--muted); transition: transform .2s ease; font-weight: 400; font-size: 20px; line-height: 1; }
.faq details[open] .plus { transform: rotate(45deg); }
.faq details p { font-size: 15px; color: var(--body); max-width: 62ch; padding: 0 2px 20px; }
.faq-side img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; object-position: 40% 50%; border: 1px solid var(--line); border-radius: 12px; }
.wa-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 22px; margin-top: 16px; }
.wa-card p { font-size: 15px; color: var(--navy); font-weight: 600; margin-bottom: 14px; }
.wa-card .wa-note { margin-top: 10px; }

/* ============ FINAL CTA + FOOTER (dark) ============ */
.cta-final { padding: 120px 0 96px; text-align: center; }
.cta-final .inner { max-width: 640px; margin: 0 auto; }
.cta-final .lede { color: var(--d-muted); margin: 18px auto 0; }
.cta-final .cta-row { margin-top: 36px; }
.cta-final .cta-note { color: var(--sky); }
.cta-final .cta-note a { color: var(--sky); }
.demo-link { display: inline-block; margin-top: 26px; font-size: 14px; color: var(--d-muted); }
.dark .store-badge rect:first-of-type { stroke: #444; }

footer { background: var(--d-bg); padding: 72px 0 48px; border-top: 1px solid var(--d-line); }
.foot-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-grid img { height: 32px; width: auto; margin-bottom: 16px; }
.foot-grid p { font-size: 14px; color: var(--d-muted); max-width: 40ch; line-height: 1.7; }
.foot-links { list-style: none; }
.foot-links li { margin-bottom: 10px; }
.foot-links a { font-size: 14px; color: var(--d-muted); }
.foot-links a:hover { color: var(--d-body); }
@media (max-width: 760px) { .foot-grid { grid-template-columns: 1fr; gap: 24px; } }
.licence-plate {
  margin-top: 48px; border: 1px solid var(--d-line); border-radius: 2px; padding: 24px;
  position: relative; box-shadow: 0 0 0 1px transparent, inset 0 0 0 0 transparent;
  outline: 1px solid var(--d-line); outline-offset: 3px;
}
.licence-plate .plate-lead { font-size: 22px; font-weight: 650; color: var(--d-heading); letter-spacing: -.01em; font-variant-numeric: tabular-nums; margin-bottom: 12px; }
.licence-plate p { font-size: 12.5px; line-height: 1.8; color: var(--d-muted); }
.licence-plate a { color: var(--d-muted); text-decoration: underline; text-underline-offset: 3px; }

/* ---- v2 subpage compatibility (nav/eyebrow/footer of legal & support pages) ---- */
.brand-mark { display: none; }
.nav-cta { background: var(--navy); color: #fff !important; border-radius: 8px; padding: 9px 16px; font-size: 14px; font-weight: 600; text-decoration: none !important; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 14px; }
.powered { font-size: 12.5px; line-height: 1.8; color: var(--d-muted); border-top: 1px solid var(--d-line); padding-top: 24px; }
.powered a { color: var(--d-muted); text-decoration: underline; text-underline-offset: 3px; }
.legal h2 { margin-bottom: 6px; }
.legal h3 { color: var(--navy); margin-top: 34px; }
.legal p, .legal li { color: var(--body); font-size: 15.5px; margin-top: 10px; }
.legal ul { margin-left: 20px; }
.legal b { color: var(--navy); }
.mt-40 { margin-top: 40px; }

/* ---- Reduced motion ---- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; }
  html.js .rv { opacity: 1; transform: none; }
  html.js .device { animation: none; }
  html.js .map-armed .map-dot { opacity: 1; transform: none; }
  .map-ping { display: none; }
}

/* ============ LEAD BAR ============ */
.leadbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  background: var(--card); border-top: 1px solid var(--line);
  box-shadow: 0 -12px 32px -16px rgba(29,51,91,.18);
  transform: translateY(110%); transition: transform .35s cubic-bezier(.22,.61,.27,1);
}
.leadbar.show { transform: none; }
.leadbar-inner { display: flex; align-items: center; gap: 18px; padding-top: 12px; padding-bottom: 12px; }
.leadbar-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.leadbar-txt b { font-size: 14.5px; color: var(--navy); letter-spacing: -.01em; }
.leadbar-txt span { font-size: 12.5px; color: var(--muted); }
.leadbar .wa-cta { flex: none; padding: 10px 16px; }
.leadbar-close {
  flex: none; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 8px;
  background: none; color: var(--muted); font-size: 18px; line-height: 1; cursor: pointer;
}
.leadbar-close:hover { color: var(--navy); border-color: var(--line-strong); }
@media (max-width: 560px) {
  .leadbar-txt span { display: none; }
  .leadbar-inner { gap: 10px; }
}
@media (prefers-reduced-motion: reduce) { .leadbar { transition: none; } }

/* Phone poster: documents card */
.app-docs { background: #fff; border: 1px solid #E4ECF4; border-radius: 12px; padding: 4px 12px; margin-top: 8px; font-family: var(--kanit); }
.app-docs-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; border-bottom: 1px solid #EAF1F9; font-size: 12px; color: #2A3A55; }
.app-docs-row:last-child { border-bottom: 0; }
.app-docs-row .ok { color: #1FA971; font-weight: 600; font-size: 11px; }
/* H1 brand kicker (SEO: brand inside the h1, styled like a micro-label) */
.h1-kicker { display: block; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; line-height: 1.6; }
