/* what-fish.com v2 landing. Hand-written, no build step.
   Shape system: buttons, chips and pills are full-pill; cards 28px (outer shell) / 22px (inner core);
   tiles inside cards 16px. One accent: Seabook lime, used as a fill. Emphasis text uses navy. */

/* Geist, one file per script; the browser fetches only the ranges a page uses. Other scripts fall back to the system font. */
@font-face { font-family: "Geist"; src: url("fonts/geist-latin.woff2") format("woff2"); font-weight: 400 700; 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+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: "Geist"; src: url("fonts/geist-latin-ext.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, 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: "Geist"; src: url("fonts/geist-cyrillic.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116; }
@font-face { font-family: "Geist"; src: url("fonts/geist-vietnamese.woff2") format("woff2"); font-weight: 400 700; font-style: normal; font-display: swap; unicode-range: U+0102-0103, U+0110-0111, U+0128-0129, U+0168-0169, U+01A0-01A1, U+01AF-01B0, U+0300-0301, U+0303-0304, U+0308-0309, U+0323, U+0329, U+1EA0-1EF9, U+20AB; }

:root {
  --bg: #ffffff;
  --soft: #f3f6fa;
  --ink: #0a1726;
  --text: #1c2a38;
  --muted: #566474;
  --faint: #8391a1;
  --rule: rgba(3, 32, 90, 0.1);

  /* Seabook brand, sampled from the app */
  --navy: #03205a;
  --navy-2: #0b3380;
  --navy-ink: #c5d3ee;
  --lime: #eaff3b;
  --good: #0f7a55;
  --bad: #c2472d;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --wrap: 1280px;
  --gutter: clamp(16px, 4vw, 48px);
  --shadow: 0 1px 2px rgba(3, 32, 90, 0.04), 0 24px 48px -28px rgba(3, 32, 90, 0.28);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-soft: cubic-bezier(0.32, 0.72, 0, 1);
  --ease-snap: cubic-bezier(0.34, 1.4, 0.64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
p { margin: 0 0 1em; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; color: var(--ink); text-wrap: balance; }
p { text-wrap: pretty; }
::selection { background: var(--lime); color: var(--ink); }
:focus-visible { outline: 2px solid var(--navy); outline-offset: 3px; border-radius: 8px; }
.dark :focus-visible, .hero :focus-visible, .final :focus-visible { outline-color: var(--lime); }
.i { width: 1em; height: 1em; flex: none; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; text-decoration: none; }
.skip:focus { top: 12px; }

.dark { background: var(--navy); color: var(--navy-ink); }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }

/* Eyebrow: used on 3 sections only */
.eyebrow { display: inline-block; margin: 0; padding: 7px 12px; border-radius: 999px; background: var(--lime); color: #06122a; font: 600 13px/1 var(--sans); letter-spacing: 0.01em; }

/* Headline scale: one family, weight + tracking do the work */
.h-display { font-size: clamp(40px, 5.6vw, 76px); line-height: 1.02; letter-spacing: -0.045em; }
.h-display .soft { color: var(--faint); display: inline-block; }
.dark .h-display .soft, .final .h-display .soft { color: #7f95c4; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 52px; padding: 0 8px 0 24px;
  border-radius: 999px;
  font: 600 15px/1 var(--sans); letter-spacing: -0.005em;
  text-decoration: none; white-space: nowrap;
  transition: background-color 200ms var(--ease-out), color 200ms var(--ease-out), transform 160ms var(--ease-out);
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.97); }
.btn .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 17px; transition: transform 320ms var(--ease-soft); }
@media (hover: hover) { .btn:hover .ic { transform: translate(2px, -1px) scale(1.06); } .btn:hover .ic.down { transform: translateY(2px) scale(1.06); } }
.btn-lime { background: var(--lime); color: #06122a; }
.btn-lime .ic { background: rgba(6, 18, 42, 0.1); }
@media (hover: hover) { .btn-lime:hover { background: #f2ff7a; } }
.btn-glass { background: rgba(255,255,255,0.14); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.28); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.btn-glass .ic { background: rgba(255,255,255,0.16); }
@media (hover: hover) { .btn-glass:hover { background: rgba(255,255,255,0.22); } }
.btn-sm { min-height: 42px; padding: 0 6px 0 18px; font-size: 14px; gap: 10px; }
.btn-sm .ic { width: 30px; height: 30px; font-size: 15px; }

.store { display: inline-flex; align-items: center; gap: 10px; min-height: 54px; padding: 0 18px 0 14px; border-radius: 16px; background: #0a0f1a; color: #fff; text-decoration: none; box-shadow: inset 0 0 0 1px rgba(255,255,255,0.18); transition: transform 160ms var(--ease-out), box-shadow 200ms ease; }
.store:active { transform: scale(0.97); }
@media (hover: hover) { .store:hover { box-shadow: inset 0 0 0 1px rgba(255,255,255,0.5); } }
.store small { display: block; font: 400 11px/1.1 var(--sans); opacity: 0.85; }
.store b { display: block; font: 600 17px/1.15 var(--sans); letter-spacing: -0.01em; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* ---------- Header: floating pill ---------- */
.site-header { position: fixed; top: 12px; left: 0; right: 0; z-index: 50; pointer-events: none; }
.site-header .bar {
  pointer-events: auto;
  width: min(100% - 24px, 1120px); margin: 0 auto; height: 60px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 8px 0 20px; border-radius: 999px;
  color: #fff;
  background: rgba(6, 22, 52, 0.28);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.16);
  -webkit-backdrop-filter: saturate(1.4) blur(16px); backdrop-filter: saturate(1.4) blur(16px);
  transition: background-color 320ms var(--ease-soft), color 320ms var(--ease-soft), box-shadow 320ms var(--ease-soft);
}
.site-header.is-scrolled .bar { background: rgba(255,255,255,0.86); color: var(--ink); box-shadow: inset 0 0 0 1px var(--rule), 0 12px 32px -18px rgba(3,32,90,0.35); }
.brand { display: inline-flex; align-items: center; gap: 10px; white-space: nowrap; text-decoration: none; font: 600 17px/1 var(--sans); letter-spacing: -0.02em; }
.brand svg { width: 26px; height: 26px; }
.nav { display: none; gap: 28px; font-size: 15px; font-weight: 500; }
.nav a { text-decoration: none; opacity: 0.8; transition: opacity 200ms ease; }
@media (hover: hover) { .nav a:hover { opacity: 1; } }
@media (min-width: 900px) { .nav { display: flex; } }
html:not(.js) .site-header { position: absolute; }
.bar-end { display: flex; align-items: center; gap: 6px; }
.lang { position: relative; }
.lang summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; height: 42px; padding: 0 12px; border-radius: 999px; cursor: pointer; font: 600 13px/1 var(--sans); letter-spacing: 0.02em; transition: background-color 200ms ease; }
.lang summary::-webkit-details-marker { display: none; }
.lang summary .i { width: 20px; height: 20px; }
@media (hover: hover) { .lang summary:hover { background: rgba(127,149,196,0.22); } }
.lang[open] summary { background: rgba(127,149,196,0.22); }
.lang ul { position: absolute; right: 0; top: calc(100% + 10px); margin: 0; padding: 8px; list-style: none; width: 232px; max-height: min(70vh, 460px); overflow-y: auto; border-radius: 20px; background: #fff; color: var(--ink); box-shadow: 0 0 0 1px var(--rule), 0 24px 48px -20px rgba(3,32,90,0.45); }
.lang li a { display: block; padding: 10px 12px; border-radius: 12px; text-decoration: none; font-size: 15px; }
@media (hover: hover) { .lang li a:hover { background: var(--soft); } }
.lang li a[aria-current] { background: var(--soft); font-weight: 600; }
@media (max-width: 420px) { .site-header .bar { padding-left: 14px; gap: 8px; } .lang summary { padding: 0 8px; } .lang summary span { display: none; } .site-header .btn-sm { padding: 0 16px; } .site-header .btn-sm .ic { display: none; } }

/* ---------- Hero ---------- */
.hero {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: min(100dvh, 900px);
  display: flex; align-items: flex-end;
  padding: 96px 0 clamp(40px, 7vw, 88px);
  color: #fff; background: #06254f;
}
.hero-bg { position: absolute; inset: 0; z-index: -2; }
.hero-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 40%; }
@media (max-width: 700px) { .hero-bg img { object-position: 68% 40%; } }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    linear-gradient(180deg, rgba(3,20,48,0.5) 0%, rgba(3,20,48,0.05) 35%, rgba(3,20,48,0.9) 100%),
    linear-gradient(90deg, rgba(3,20,48,0.55) 0%, rgba(3,20,48,0) 70%);
}
.hero h1 {
  color: #fff;
  font-size: calc(min(17vw, 148px) * var(--fit, 1));
  line-height: 0.95;
  letter-spacing: -0.055em;
  margin: 22px 0 26px;
}
.hero h1 .line { display: block; overflow: hidden; padding: 0.14em 0.08em 0.12em 0; margin: -0.14em 0 -0.12em; }
.hero h1 .line > span { display: inline-block; }
.hero h1 .soft { color: rgba(255,255,255,0.62); }
.lede { font-size: clamp(18px, 1.8vw, 22px); line-height: 1.45; color: rgba(255,255,255,0.9); max-width: 30ch; margin-bottom: 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* Scanner bracket: Seabook's lock-on frame */
.target { position: relative; display: inline-block; padding: 0 0.08em; }
.target i { position: absolute; width: 0.2em; height: 0.2em; border: 0 solid var(--lime); pointer-events: none; }
.target i:nth-child(1) { top: 0.08em; left: -0.05em; border-top-width: 4px; border-left-width: 4px; border-top-left-radius: 0.08em; }
.target i:nth-child(2) { top: 0.08em; right: -0.05em; border-top-width: 4px; border-right-width: 4px; border-top-right-radius: 0.08em; }
.target i:nth-child(3) { bottom: 0.02em; left: -0.05em; border-bottom-width: 4px; border-left-width: 4px; border-bottom-left-radius: 0.08em; }
.target i:nth-child(4) { bottom: 0.02em; right: -0.05em; border-bottom-width: 4px; border-right-width: 4px; border-bottom-right-radius: 0.08em; }

/* ---------- Sections ---------- */
.section { padding: clamp(88px, 11vw, 152px) 0; }
.soft-bg { background: var(--soft); }
.head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.head .eyebrow { margin-bottom: 22px; }
.head p:not(.eyebrow) { font-size: 19px; color: var(--muted); margin: 18px 0 0; max-width: 56ch; }
.dark .head p:not(.eyebrow) { color: var(--navy-ink); }

/* Double-bezel card: outer shell + inner core */
.shell { padding: 6px; border-radius: 28px; background: rgba(3,32,90,0.04); box-shadow: inset 0 0 0 1px rgba(3,32,90,0.06); }
.core { height: 100%; border-radius: 22px; background: #fff; overflow: hidden; box-shadow: var(--shadow); }
.dark .shell { background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.1); }

/* ---------- Which method: bento ---------- */
.bento, .lab-grid, .nums { list-style: none; padding: 0; }
.bento { display: grid; gap: 16px; margin: 0; }
@media (min-width: 960px) {
  .bento { grid-template-columns: 1.25fr 1fr; grid-template-rows: repeat(3, auto); }
  .bento > :first-child { grid-row: 1 / span 3; }
}
.pick { display: block; height: 100%; text-decoration: none; }
.pick .core { transition: transform 420ms var(--ease-soft), box-shadow 420ms var(--ease-soft); }
@media (hover: hover) { .pick:hover .core { transform: translateY(-3px); box-shadow: 0 1px 2px rgba(3,32,90,0.05), 0 32px 60px -30px rgba(3,32,90,0.45); } }
.pick-hero .core { display: flex; flex-direction: column; color: #fff; background: #05080d; }
/* The photo is cropped to 16:10 with the fish centred (tools/images.py), so the brackets can sit on fixed insets. */
.pick-hero .scan { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.pick-hero .scan img { width: 100%; height: 100%; object-fit: cover; transition: transform 700ms var(--ease-soft); }
@media (hover: hover) { .pick-hero:hover .scan img { transform: scale(1.03); } }
.pick-hero .scan::after { content: ""; position: absolute; inset: auto 0 0; height: 14%; background: linear-gradient(180deg, rgba(5,8,13,0), #05080d); }
.pick-hero .scan .target { position: absolute; z-index: 1; inset: 6% 13% 12%; padding: 0; font-size: clamp(110px, 16vw, 190px); }
.pick-hero .scan .target i:nth-child(1), .pick-hero .scan .target i:nth-child(2) { top: 0; }
.pick-hero .scan .target i:nth-child(3), .pick-hero .scan .target i:nth-child(4) { bottom: 0; }
.pick-hero .scan .target i:nth-child(1), .pick-hero .scan .target i:nth-child(3) { left: 0; }
.pick-hero .scan .target i:nth-child(2), .pick-hero .scan .target i:nth-child(4) { right: 0; }
.pick-hero .match { position: absolute; z-index: 1; left: 50%; bottom: 0; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 10px; border-radius: 999px; background: rgba(255,255,255,0.14); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.22); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); font-size: 14px; white-space: nowrap; }
.pick-hero .match .i { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--lime); color: #06122a; }
.pick-hero .txt { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; }
.pick-hero .txt { padding: 28px; }
.pick-hero .tag { align-self: flex-start; margin-bottom: 14px; padding: 7px 12px; border-radius: 999px; background: var(--lime); color: #06122a; font: 600 13px/1 var(--sans); }
.pick-hero .when { display: block; color: rgba(255,255,255,0.78); font-size: 15px; }
.pick-hero .use { display: block; color: #fff; font: 600 clamp(24px, 2.4vw, 32px)/1.12 var(--sans); letter-spacing: -0.03em; margin-top: 6px; max-width: 22ch; }
.pick-row .core { display: grid; grid-template-columns: 132px minmax(0, 1fr); align-items: stretch; }
@media (min-width: 480px) { .pick-row .core { grid-template-columns: 180px minmax(0, 1fr); } }
.pick-row .thumb { position: relative; overflow: hidden; min-height: 140px; }
.pick-row .thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pick-row .thumb.books { background: #ece7dc; display: flex; align-items: center; justify-content: center; }
.pick-row .thumb.books img { position: relative; width: 42%; height: auto; border-radius: 3px; box-shadow: 0 10px 18px -8px rgba(3,32,90,0.5); }
.pick-row .thumb.books img + img { margin-left: -18%; transform: rotate(6deg) translateY(6px); }
.pick-row .thumb.chat img { object-position: center 45%; }
.pick-row .thumb.lab { background: var(--navy); display: grid; place-items: center; }
.pick-row .thumb.lab b { color: var(--lime); font: 600 clamp(24px, 2.4vw, 30px)/1 var(--sans); letter-spacing: -0.03em; }
.pick-row .txt { padding: 20px 22px; display: flex; flex-direction: column; justify-content: center; gap: 4px; }
.pick-row .when { font-size: 14px; color: var(--muted); }
.pick-row .use { font: 600 19px/1.25 var(--sans); color: var(--ink); letter-spacing: -0.02em; }
.pick .go { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--navy); }
.pick-hero .go { color: var(--lime); }
.pick .go .i { transition: transform 320ms var(--ease-soft); }
@media (hover: hover) { .pick:hover .go .i { transform: translateX(3px); } }

/* ---------- How-to: 1 + 2 bento ---------- */
.howto { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .howto { grid-template-columns: 1.2fr 1fr; } .howto > :first-child { grid-row: span 2; } }
.howto .core { display: flex; flex-direction: column; }
.howto .shot { position: relative; overflow: hidden; background: var(--navy); aspect-ratio: 4 / 3; }
.howto > :first-child .shot { flex: 1; aspect-ratio: auto; min-height: 240px; }
.howto .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
@media (min-width: 900px) { .howto > :not(:first-child) .core { display: grid; grid-template-columns: 1fr 1fr; } .howto > :not(:first-child) .shot { aspect-ratio: auto; min-height: 250px; } }
.howto .shot.screen { background: radial-gradient(120% 90% at 50% 0%, var(--navy-2), var(--navy) 70%); }
.howto .shot.screen img { inset: 26px auto auto 50%; transform: translateX(-50%); width: min(60%, 210px); height: auto; object-fit: fill; border-radius: 26px 26px 0 0; box-shadow: 0 0 0 5px #050b16, 0 0 0 6px rgba(255,255,255,0.16), 0 30px 50px -20px rgba(0,0,0,0.7); }
.howto .body { padding: 24px 26px 28px; }
.howto .n { display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 14px; border-radius: 50%; background: var(--navy); color: var(--lime); font: 600 14px/1 var(--sans); }
.howto h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.03em; margin: 0 0 8px; }
.howto p { color: var(--muted); margin: 0; }

/* ---------- Methods ---------- */
.method { padding: clamp(80px, 9vw, 128px) 0; }
.method + .method:not(.dark):not(.soft-bg) { border-top: 1px solid var(--rule); }
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 1024px) { .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 80px; } .split.flip > :first-child { order: 2; } }
.method h3 { font-size: clamp(36px, 4.4vw, 60px); line-height: 1.02; letter-spacing: -0.045em; }
.verdict { margin: 18px 0 0; font: 500 clamp(19px, 1.8vw, 23px)/1.4 var(--sans); color: var(--navy); letter-spacing: -0.015em; max-width: 34ch; }
.dark .verdict { color: var(--lime); }
.prose { max-width: 62ch; margin-top: 20px; }
.prose p { color: var(--text); }
.dark .prose p { color: var(--navy-ink); }

.pc { display: grid; gap: 22px; margin: 28px 0 24px; }
@media (min-width: 560px) { .pc { grid-template-columns: 1fr 1fr; } }
.pc h4 { font: 600 14px/1 var(--sans); color: var(--muted); margin: 0 0 14px; }
.pc ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pc li { display: flex; gap: 10px; align-items: flex-start; font-size: 16px; line-height: 1.45; color: var(--ink); }
.pc li .i { width: 22px; height: 22px; padding: 4px; border-radius: 50%; margin-top: 0; }
.pc .pros .i { background: #d8f2e6; color: var(--good); }
.pc .cons .i { background: #fbe4dd; color: var(--bad); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 10px 16px; border-radius: 999px; background: var(--soft); font-size: 14px; color: var(--muted); }
.chip b { color: var(--ink); font-weight: 600; }
.soft-bg .chip { background: #fff; }

/* Bookshelf */
.shelf .core { background: #ece7dc; padding: clamp(36px, 5vw, 64px) clamp(20px, 4vw, 48px) 0; box-shadow: none; }
.shelf-row { display: flex; justify-content: center; align-items: flex-end; }
.shelf-row figure { margin: 0 -2%; flex: 0 0 26%; }
.shelf-row img { width: 100%; border-radius: 3px 6px 6px 3px; box-shadow: 0 1px 0 rgba(3,32,90,0.1), 0 18px 30px -14px rgba(3,32,90,0.55); transition: transform 420ms var(--ease-soft); }
.shelf-row figure:nth-child(1) img { transform: rotate(-7deg) translateY(10px); }
.shelf-row figure:nth-child(2) img { transform: rotate(-2deg); position: relative; z-index: 1; }
.shelf-row figure:nth-child(3) img { transform: rotate(3deg) translateY(-6px); position: relative; z-index: 2; }
.shelf-row figure:nth-child(4) img { transform: rotate(8deg) translateY(8px); position: relative; z-index: 1; }
@media (hover: hover) { .shelf-row figure:hover img { transform: translateY(-14px) rotate(0); } }
.shelf-base { height: 16px; margin: 18px -48px 0; background: #d6cab4; }
.shelf .cap { margin: 0; text-align: center; font-size: 14px; color: #6a5f4f; padding: 16px 0 22px; }

/* Seabook band */
.dark.method { position: relative; overflow: hidden; isolation: isolate; }
.dark.method::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(70% 50% at 100% 0%, var(--navy-2), transparent 65%), radial-gradient(60% 40% at 0% 60%, #062b6e, transparent 70%); }
.sb-top { display: grid; gap: 32px; align-items: end; }
@media (min-width: 1024px) { .sb-top { grid-template-columns: 1.1fr 1fr; gap: 80px; } }
.app-id { display: flex; align-items: center; gap: 14px; }
.app-id img { width: 60px; height: 60px; border-radius: 16px; flex: none; }
.app-id h4 { font-size: 28px; line-height: 1.1; letter-spacing: -0.03em; }
.app-id h4 a { text-decoration: none; }
.app-id p { margin: 4px 0 0; font-size: 14px; color: var(--muted); }
.dark .app-id p { color: var(--navy-ink); }
.pick-badge { display: inline-block; margin-bottom: 18px; padding: 7px 12px; border-radius: 999px; background: var(--lime); color: #06122a; font: 600 13px/1 var(--sans); }

.nums { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 900px) { .nums { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.nums li { padding: 22px 22px 20px; border-radius: 22px; background: rgba(255,255,255,0.06); box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 0 0 1px rgba(255,255,255,0.08); }
.nums b { display: block; color: #fff; font: 600 clamp(34px, 4vw, 52px)/1 var(--sans); letter-spacing: -0.045em; }
.nums b em { color: var(--lime); font-style: normal; }
.nums span { display: block; margin-top: 8px; font-size: 14px; color: var(--navy-ink); }

.sb-body { display: grid; gap: 48px; margin-top: 56px; align-items: center; }
@media (min-width: 1024px) { .sb-body { grid-template-columns: 1fr 1.05fr; gap: 72px; } }
.feats { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 10px; }
@media (min-width: 560px) { .feats { grid-template-columns: 1fr 1fr; } }
.feats li { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 18px; background: rgba(255,255,255,0.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.08); }
.feats .i { width: 26px; height: 26px; color: var(--lime); }
.feats b { display: block; color: #fff; font-weight: 600; font-size: 16px; }
.feats span { display: block; font-size: 14px; color: var(--navy-ink); line-height: 1.4; margin-top: 2px; }
.price { font-size: 15px; color: var(--navy-ink); margin: 18px 0 0; }
.price b { color: #fff; }
.text-link { font-weight: 600; text-underline-offset: 4px; }
.dark .text-link { color: #fff; text-decoration-color: rgba(255,255,255,0.4); }

.phones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(10px, 2vw, 20px); align-items: start; }
.phone { margin: 0; }
.phone .frame { border-radius: clamp(18px, 3vw, 32px); padding: clamp(3px, 0.5vw, 6px); background: #050b16; box-shadow: 0 0 0 1px rgba(255,255,255,0.16), 0 40px 70px -30px rgba(0,0,0,0.8); }
.phone img { border-radius: clamp(15px, 2.6vw, 27px); width: 100%; }
.phone figcaption { font-size: 13px; color: var(--navy-ink); margin-top: 12px; text-align: center; }
.phones .phone:nth-child(2) { margin-top: clamp(24px, 5vw, 56px); }
.phones .phone:nth-child(3) { margin-top: clamp(48px, 10vw, 112px); }

.inat { margin-top: clamp(64px, 8vw, 104px); display: grid; gap: 24px; align-items: center; }
@media (min-width: 1024px) { .inat { grid-template-columns: 0.85fr 1.15fr; gap: 72px; } }
.inat-intro h4 { font-size: clamp(28px, 3vw, 40px); line-height: 1.08; letter-spacing: -0.04em; margin-bottom: 12px; }
.inat-intro p { color: var(--navy-ink); margin: 0; }
.inat .core { padding: clamp(22px, 3vw, 34px); }
.inat .app-id h4 { font-size: 22px; color: var(--ink); }
.inat .app-id p { color: var(--muted); }
.inat .app-id img { width: 48px; height: 48px; border-radius: 13px; }
.links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-size: 14px; }
.links a { color: var(--muted); text-underline-offset: 4px; text-decoration-color: rgba(3,32,90,0.2); transition: color 200ms ease; }
@media (hover: hover) { .links a:hover { color: var(--ink); text-decoration-color: currentColor; } }

/* AI chatbots */
.bots { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.bots > :nth-child(2) { margin-top: 48px; }
.bot .core { padding: 12px 12px 18px; display: flex; flex-direction: column; gap: 14px; }
.bot .shot { border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; background: #0d0e10; }
/* The chat is longer than the card: fade it out instead of cutting a line in half. */
.bot .shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; -webkit-mask-image: linear-gradient(#000 74%, transparent 98%); mask-image: linear-gradient(#000 74%, transparent 98%); }
.bot .app-id { gap: 10px; padding: 0 6px; }
.bot .app-id img { width: 36px; height: 36px; border-radius: 10px; }
.bot .app-id h4 { font-size: 17px; }
.bot .app-id p { font-size: 13px; margin-top: 2px; }
.bot .links { font-size: 13px; gap: 6px 12px; padding: 0 6px; }
@media (max-width: 480px) { .bot .links { display: none; } .bots > :nth-child(2) { margin-top: 24px; } }

/* Lab: bento */
.lab-grid { display: grid; gap: 16px; margin: 44px 0 0; }
@media (min-width: 900px) { .lab-grid { grid-template-columns: 1.1fr 1fr 1fr; grid-template-rows: auto auto; } .lab-grid > :first-child { grid-row: span 2; } }
.lab-stat .core { background: var(--navy); color: #fff; padding: clamp(28px, 4vw, 44px); display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; position: relative; isolation: isolate; }
.lab-stat .core::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(80% 70% at 100% 0%, var(--navy-2), transparent 70%); }
.lab-stat b { white-space: nowrap; color: var(--lime); font: 600 clamp(56px, 6.4vw, 96px)/0.95 var(--sans); letter-spacing: -0.06em; }
.lab-stat span { margin-top: 12px; font-size: 18px; color: var(--navy-ink); max-width: 24ch; }
.tech .core { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.tech .i { width: 30px; height: 30px; color: var(--navy); }
.tech h4 { font-size: 19px; letter-spacing: -0.02em; }
.tech p { margin: 0; font-size: 15px; color: var(--muted); }

/* ---------- Comparison table ---------- */
.table-wrap .core { box-shadow: var(--shadow); }
table.cmp { width: 100%; border-collapse: collapse; font-size: 15px; }
.cmp caption { text-align: left; padding: 18px 24px; font-size: 14px; color: var(--muted); caption-side: top; }
.cmp th, .cmp td { padding: 15px 22px; text-align: left; vertical-align: top; }
.cmp tbody tr + tr > * { border-top: 1px solid var(--rule); }
.cmp thead th { font: 600 13px/1.3 var(--sans); color: var(--muted); vertical-align: bottom; padding-top: 22px; background: var(--soft); }
.cmp thead th .who { display: flex; align-items: center; gap: 8px; color: var(--ink); font: 600 16px/1.2 var(--sans); letter-spacing: -0.01em; margin-top: 8px; }
.cmp thead th .who img { width: 24px; height: 24px; border-radius: 7px; }
.cmp thead th .who img + img { margin-left: -12px; box-shadow: 0 0 0 2px var(--soft); }
.cmp tbody th { font-weight: 600; color: var(--ink); width: 18%; }
.cmp td { color: var(--text); }
.cmp .sb { background: #eef3fc; color: var(--ink); font-weight: 500; }
.cmp thead .sb { background: var(--navy); color: var(--lime); position: relative; }
.cmp thead .sb .who { color: #fff; }
.cmp thead .sb::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--lime); transform-origin: left; transform: scaleX(var(--drawn, 1)); transition: transform 800ms var(--ease-soft) 200ms; }
.yes, .no { display: inline-flex; align-items: center; gap: 8px; }
.yes::before, .no::before { flex: none; display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font: 700 11px/1 var(--sans); }
.yes::before { content: "\2713"; background: #d8f2e6; color: var(--good); }
.no::before { content: "\2715"; background: #fbe4dd; color: var(--bad); font-size: 9px; }
.cmp .sb .yes::before { background: var(--navy); color: var(--lime); }
@media (hover: hover) { .cmp tbody tr:hover > * { background-color: #f7f9fc; } .cmp tbody tr:hover > .sb { background-color: #e3ebfa; } }
.cmp-note { font-size: 14px; color: var(--muted); margin-top: 18px; max-width: 70ch; }

@media (max-width: 859px) {
  .cmp thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .cmp, .cmp tbody, .cmp tr, .cmp th, .cmp td { display: block; width: auto; }
  .cmp caption { display: block; }
  .cmp tbody tr { padding: 18px 20px; }
  .cmp tbody tr + tr > * { border-top: 0; }
  .cmp tbody tr + tr { border-top: 1px solid var(--rule); }
  .cmp tbody th { padding: 0 0 10px; font: 600 18px/1.3 var(--sans); width: auto; }
  .cmp td { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 9px 0; font-size: 15px; }
  .cmp td::before { content: attr(data-label); font: 600 13px/1.5 var(--sans); color: var(--muted); }
  .cmp td.sb { margin: 2px -10px; padding: 9px 10px; border-radius: 12px; }
  .cmp td.sb::before { color: var(--navy); }
}

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 8px; }
@media (min-width: 1024px) { .faq-grid { grid-template-columns: 1fr 1.6fr; gap: 72px; } .faq-grid .head { position: sticky; top: 110px; align-self: start; } }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border-radius: 22px; background: #fff; box-shadow: inset 0 0 0 1px var(--rule); transition: box-shadow 320ms var(--ease-soft); }
.faq-list details[open] { box-shadow: inset 0 0 0 1px transparent, var(--shadow); }
.faq-list summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; align-items: center; padding: 20px 20px 20px 24px; }
.faq-list summary h3 { font-size: clamp(17px, 1.6vw, 19px); line-height: 1.35; letter-spacing: -0.015em; margin: 0; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list .pm { position: relative; flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--soft); transition: background-color 240ms var(--ease-soft); }
.faq-list .pm::before, .faq-list .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; border-radius: 1px; background: var(--navy); translate: -50% -50%; }
.faq-list .pm::after { rotate: 90deg; transition: rotate 320ms var(--ease-soft); }
.faq-list details[open] .pm { background: var(--lime); }
.faq-list details[open] .pm::after { rotate: 0deg; }
.faq-list .a { padding: 0 24px 24px; color: var(--text); }
.faq-list .a p { margin: 0; }
@supports (interpolate-size: allow-keywords) {
  @media (prefers-reduced-motion: no-preference) {
    .faq-list { interpolate-size: allow-keywords; }
    .faq-list details::details-content { height: 0; overflow: clip; transition: height 360ms var(--ease-soft), content-visibility 360ms allow-discrete; }
    .faq-list details[open]::details-content { height: auto; }
  }
}

/* ---------- Final CTA ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; color: #fff; background: var(--navy); }
.final-bg { position: absolute; inset: 0; z-index: -2; }
.final-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; }
.final::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(3,32,90,0.96) 0%, rgba(3,32,90,0.8) 50%, rgba(3,32,90,0.35) 100%); }
@media (max-width: 1023px) { .final::before { background: linear-gradient(180deg, rgba(3,32,90,0.94) 0%, rgba(3,32,90,0.82) 60%, rgba(3,32,90,0.6) 100%); } }
.final-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1024px) { .final-grid { grid-template-columns: 1.3fr 1fr; gap: 72px; } }
.final h2 { color: #fff; margin-bottom: 22px; }
.final p.lead { color: rgba(255,255,255,0.88); font-size: 19px; max-width: 40ch; margin-bottom: 28px; }
.final .fine { font-size: 14px; color: var(--navy-ink); margin: 18px 0 0; }
.final .phone { max-width: min(58vw, 280px); margin: 0 auto; position: relative; }
.final .phone .target { position: absolute; inset: -18px; padding: 0; font-size: 150px; }
.final .phone .target i:nth-child(1), .final .phone .target i:nth-child(2) { top: 0; }
.final .phone .target i:nth-child(3), .final .phone .target i:nth-child(4) { bottom: 0; }
.final .phone .target i:nth-child(1), .final .phone .target i:nth-child(3) { left: 0; }
.final .phone .target i:nth-child(2), .final .phone .target i:nth-child(4) { right: 0; }

.methods-head { padding-bottom: 0; }
.methods-head .head { margin-bottom: 0; }
.methods-head + .method { padding-top: clamp(56px, 6vw, 88px); }
.feats { margin-top: 24px; }
.final-bg img { object-position: center 45%; }

/* ---------- Footer ---------- */
.foot-langs { margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,0.1); }
.site-footer .foot-langs ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot-langs a { text-decoration: none; }
.foot-langs a[aria-current] { color: #fff; }

/* Scripts without a Geist subset: system fonts need looser tracking and taller lines. */
:lang(ja) :is(h1, h2, h3, h4, .btn, .use), :lang(ko) :is(h1, h2, h3, h4, .btn, .use), :lang(zh) :is(h1, h2, h3, h4, .btn, .use), :lang(th) :is(h1, h2, h3, h4, .btn, .use) { letter-spacing: 0; }
:lang(ja) :is(.h-display, .method h3), :lang(ko) :is(.h-display, .method h3), :lang(zh) :is(.h-display, .method h3) { line-height: 1.18; font-size: clamp(34px, 4.6vw, 62px); }
:lang(ko) :is(h1, h2, h3, h4, p, li, span) { word-break: keep-all; }
:lang(ko) :is(h1, h2, h3, h4, .use, .btn) { font-weight: 700; }
:lang(ja) .h-display, :lang(zh) .h-display { word-break: keep-all; }
:lang(th) :is(.h-display, .method h3) { line-height: 1.3; font-size: clamp(34px, 4.6vw, 62px); }
:lang(th) .hero h1, :lang(vi) .hero h1 { line-height: 1.12; }
:lang(th) .hero h1 .line, :lang(vi) .hero h1 .line { padding-top: 0.3em; margin-top: -0.3em; }
:lang(ja) .hero h1, :lang(ko) .hero h1, :lang(zh) .hero h1 { line-height: 1.08; }

.site-footer { background: var(--ink); color: #b4c0cc; padding: 64px 0 40px; font-size: 15px; }
.site-footer .brand { color: #fff; }
.foot-grid { display: grid; gap: 36px; }
@media (min-width: 860px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.site-footer h2 { font-size: 14px; color: #fff; margin: 0 0 14px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; transition: color 200ms ease; }
@media (hover: hover) { .site-footer a:hover { color: #fff; } }
.foot-blurb { margin-top: 16px; max-width: 40ch; }
.site-footer .legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,0.12); display: grid; gap: 8px; font-size: 13px; color: #8795a4; }
.site-footer .legal p { margin: 0; }

/* ======================================================================
   Motion. Progressive: without JS (.js absent) or with reduced motion,
   everything is visible and still.
   ====================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .hero-bg img { animation: settle 1800ms var(--ease-soft) both; }
  @keyframes settle { from { transform: scale(1.08); } }

  .hero h1 .line > span { animation: rise 1000ms var(--ease-soft) both; animation-delay: 150ms; }
  .hero h1 .line:nth-child(2) > span { animation-delay: 250ms; }
  @keyframes rise { from { transform: translateY(105%); } }

  .hero .fade { animation: fadeUp 800ms var(--ease-soft) both; animation-delay: calc(420ms + var(--d, 0) * 90ms); }
  @keyframes fadeUp { from { opacity: 0; transform: translateY(14px); } }

  .hero .target i { animation: lock 560ms var(--ease-snap) both; animation-delay: 1000ms; }
  .target i:nth-child(1) { --x: -14px; --y: -14px; }
  .target i:nth-child(2) { --x: 14px; --y: -14px; }
  .target i:nth-child(3) { --x: -14px; --y: 14px; }
  .target i:nth-child(4) { --x: 14px; --y: 14px; }
  @keyframes lock { from { opacity: 0; transform: translate(var(--x), var(--y)); } }

  .js [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity 900ms var(--ease-soft), transform 900ms var(--ease-soft); transition-delay: calc(var(--d, 0) * 90ms); }
  .js [data-reveal].in { opacity: 1; transform: none; }
  .js .table-wrap:not(.in) .cmp thead .sb::after { --drawn: 0; }

  .js .final .phone:not(.in) .target i { opacity: 0; }
  .final .phone.in .target i { animation: lock 600ms var(--ease-snap) both 350ms; }

  @supports (animation-timeline: view()) {
    .phones .phone { animation: drift linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .phones .phone:nth-child(1) { --dy: 24px; }
    .phones .phone:nth-child(2) { --dy: -8px; }
    .phones .phone:nth-child(3) { --dy: -40px; }
    @keyframes drift { from { transform: translateY(var(--dy)); } to { transform: translateY(calc(var(--dy) * -1)); } }
  }
}
