/* Thi bằng lái website (gplx.ichitech.com): house layout (nav, store badges, sections, tables, privacy / support pages,
   phone rules) in the GPLX colours (docs/DESIGN.md: ButtonFill #2C6593 / #227072 carry white text, Brand #3B87C5 /
   #3ABBBF only as graphics). Home page: the approved canvas "Biển số" (.impeccable/surfaces/web-public-index-html.md),
   components under "App-specific". */
@import url(fonts.css?v=6c0f2a6a01);

:root {
  --bg: #F2F4F7;
  --surface: #FFFFFF;
  --ink: #14202B;
  --ink-2: #33414F;
  --muted: #4A5866;
  --line: #D5DBE2;
  --brand: #2C6593;
  --brand-tint: #E3EEF7;
  --header: #2C6593;
  --header-deep: #1F4C70;
  --header-a12: #227072;
  --header-a12-deep: #185456;
  --night: #14202B;
  --on-header: #E1ECF5;
  --on-header-2: #CFDFEC;
  --on-night: #AEB8C2;
  --gold: #1F4C70;
  --gold-soft: #E3EEF7;
  --coin: #FFE2B0;
  --frame: #0D1116;
  --plate: #F7F8F9;
  --plate-ink: #121519;
  --star: #B25000;
  --correct: #178038;
  --pad-x: clamp(20px, 4.4vw, 64px);
  --section-y: clamp(64px, 8vw, 112px);
  --shadow-1: 0 10px 30px rgba(20, 32, 43, 0.08);
  --shadow-2: 0 24px 60px rgba(20, 32, 43, 0.14), 0 2px 6px rgba(20, 32, 43, 0.06);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --plate-face: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scrollbar-color: #9AA9B8 var(--bg); }
body {
  margin: 0;
  font-family: 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
::selection { background: #BCD6EC; color: var(--ink); }
a { color: var(--brand); text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { color: var(--header); }
:focus-visible { outline: 3px solid var(--coin); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
/* Be Vietnam Pro has Latin and Vietnamese only: these languages use the system font on the whole page. */
:lang(ja) body, body:lang(ja) { font-family: system-ui, -apple-system, "Hiragino Sans", "Hiragino Kaku Gothic ProN", "Yu Gothic", "Noto Sans JP", sans-serif; }
:lang(ko) body, body:lang(ko) { font-family: system-ui, -apple-system, "Apple SD Gothic Neo", "Malgun Gothic", "Noto Sans KR", sans-serif; }
:lang(ru) body, body:lang(ru) { font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif; }
:lang(th) body, body:lang(th) { font-family: system-ui, -apple-system, "Sukhumvit Set", Thonburi, "Leelawadee UI", "Noto Sans Thai", sans-serif; line-height: 1.75; }
:lang(ja) h1, :lang(ja) h2 { letter-spacing: -0.01em; word-break: auto-phrase; line-break: strict; }
:lang(ko) h1, :lang(ko) h2 { letter-spacing: -0.01em; word-break: keep-all; overflow-wrap: anywhere; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }
.wrap { max-width: 1200px; margin: 0 auto; padding-inline: var(--pad-x); }
.skip { position: absolute; left: 12px; top: -48px; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Header and navigation */
.top { background: var(--header); color: #FFFFFF; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; padding-block: 18px; }
.brand { display: flex; align-items: center; gap: 12px; color: #FFFFFF; text-decoration: none; margin-right: auto; font-weight: 700; font-size: 19px; letter-spacing: -0.01em; }
.brand:hover { color: #FFFFFF; }
.brand img { width: 40px; height: 40px; border-radius: 10px; box-shadow: 0 2px 6px rgba(10, 30, 50, 0.35); }
.nav-links { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 15px; font-weight: 500; }
.nav-links a { color: #E8EDF5; text-decoration: none; display: inline-block; padding: 10px 0; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #FFFFFF; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--coin); text-decoration-thickness: 2px; }
/* Language menu (tools/languages.py writes it after .nav-links, never inside: on phones it sits beside the logo) */
.langs { position: relative; align-self: center; }
.langs summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border: 1px solid rgba(255, 255, 255, 0.35); border-radius: 999px; color: #E8EDF5; }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { border-color: #FFFFFF; color: #FFFFFF; }
.langs summary svg { width: 18px; height: 18px; }
.langs ul { position: absolute; right: 0; top: calc(100% + 8px); z-index: 20; margin: 0; padding: 6px; list-style: none; min-width: 180px; background: var(--surface); border-radius: 14px; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3); }
.langs ul a { display: block; padding: 10px 14px; border-radius: 10px; color: var(--ink) !important; text-decoration: none !important; }
.langs ul a:hover { background: var(--bg); }
.langs ul a[aria-current] { color: var(--brand) !important; font-weight: 600; }

/* App Store badge (drawn from Apple's black badge; swap for the official SVG from developer.apple.com/app-store/marketing/guidelines) */
.store { display: inline-flex; align-items: center; gap: 10px; background: #000000; color: #FFFFFF; text-decoration: none; border: 1px solid #A6A6A6; border-radius: 12px; padding: 8px 20px 8px 14px; min-height: 52px; transition: transform 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out); }
.store:hover { color: #FFFFFF; transform: translateY(-1px); box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3); }
.store svg { width: 28px; height: 28px; fill: currentColor; }
.store span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store small { font-size: 11px; font-weight: 500; }
.store strong { font-size: 21px; font-weight: 600; letter-spacing: -0.01em; }

/* Hero */
.hero { overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 56px; align-items: end; padding-top: clamp(40px, 6vw, 88px); }
.hero-copy { padding-bottom: clamp(48px, 7vw, 120px); }
.hero h1 { font-size: clamp(40px, 5.6vw, 78px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; }
.hero .lede { margin-top: 24px; max-width: 34em; font-size: clamp(17px, 1.5vw, 20px); color: var(--on-header); }
.cta-row { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.cta-row .meta { font-size: 15px; color: var(--on-header-2); }
.hero-phone { display: flex; justify-content: center; }
.hero-phone img { width: 100%; max-width: 340px; border-radius: 46px 46px 0 0; border: 9px solid #0B1A45; border-bottom: 0; box-shadow: 0 -10px 60px rgba(0, 0, 0, 0.45); margin-bottom: -2px; animation: rise 0.9s var(--ease-out) both; }
@keyframes rise { from { transform: translateY(48px); } to { transform: none; } }

/* Sections */
.section { padding-block: var(--section-y); }
.section.white { background: var(--surface); border-block: 1px solid var(--line); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.8fr); gap: 64px; align-items: center; }
h2 { font-size: clamp(32px, 3.8vw, 54px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.sub { margin-top: 20px; max-width: 34em; color: var(--muted); font-size: 18px; }

.ticks { list-style: none; margin: 32px 0 0; padding: 0; max-width: 34em; border-top: 1px solid var(--line); }
.ticks li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-bottom: 1px solid var(--line); }
.ticks svg { flex: none; width: 24px; height: 24px; stroke: var(--brand); }

/* Screens */
.shots { margin-top: 56px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 32px; }
.shots figure, .shot { margin: 0; }
.device { width: 100%; max-width: 330px; margin: 0 auto; border-radius: 36px; border: 7px solid var(--frame); box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16); background: var(--frame); }
.shots figcaption { margin: 20px auto 0; max-width: 330px; }
.shots figcaption strong { display: block; font-weight: 700; }
.shots figcaption span { color: var(--muted); }

/* Private-by-default band */
.night { background: var(--header-deep); color: #FFFFFF; }
.facts { margin-top: 56px; display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 40px 48px; }
.facts div { border-top: 2px solid var(--coin); padding-top: 20px; }
.facts strong { display: block; font-size: 19px; font-weight: 700; }
.facts p { margin-top: 8px; color: #C3CEE8; }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 48px; min-height: 44px; color: #FFFFFF; font-weight: 600; text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--coin); text-decoration-thickness: 2px; }
.arrow-link:hover { color: #FFFFFF; }
.arrow-link svg { width: 18px; height: 18px; transition: transform 0.2s var(--ease-out); }
.arrow-link:hover svg { transform: translateX(4px); }

/* Pro */
.pro { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 56px; }
.table-box { overflow-x: auto; }
.compare { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow-1); font-size: 16px; }
.compare th, .compare td { padding: 14px 20px; text-align: left; vertical-align: top; }
.compare thead th { padding-block: 18px; font-weight: 700; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody th { font-weight: 500; }
.compare td { color: var(--muted); }
.compare .p { background: var(--gold-soft); color: var(--ink); font-weight: 600; }
.compare thead .p { color: var(--gold); }

/* Closing call to action */
.closing { text-align: center; max-width: 760px; }
.closing img { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto; box-shadow: 0 12px 30px rgba(30, 58, 138, 0.3); }
.closing h2 { margin-top: 28px; font-size: clamp(30px, 3.4vw, 48px); }
.closing p { margin-top: 16px; color: var(--muted); }
.closing .store { margin-top: 32px; }

/* App-specific (components of this app's home page) */
/* Field: the app colour behind the number plate; A1 / A / B1 switch it to the motorbike app (home.js). */
.field { background: var(--header); color: #FFFFFF; transition: background-color 0.5s var(--ease-out); }
.home[data-kind="moto"] .field { background: var(--header-a12); }
.plate-hero { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; padding-top: clamp(20px, 4vw, 48px); }
.plate-hero h1 { font-size: clamp(38px, 5vw, 66px); line-height: 1.04; letter-spacing: -0.035em; font-weight: 800; max-width: 16ch; }
.plate-hero .lede { margin-top: 18px; max-width: 46ch; font-size: clamp(16px, 1.5vw, 19px); color: var(--on-header); text-wrap: balance; }

.plate { position: relative; display: flex; align-items: center; justify-content: center; gap: 0.18em; background: var(--plate); color: var(--plate-ink); border-radius: 14px; font-family: var(--plate-face); font-weight: 700; letter-spacing: 0.015em; line-height: 1; user-select: none; text-shadow: 0 1px 0 #FFFFFF, 0 -1px 0 rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 0 0 5px var(--plate-ink), inset 0 0 0 9px var(--plate), inset 0 0 0 10px rgba(18, 21, 25, 0.18), 0 24px 40px -18px rgba(0, 0, 0, 0.55), 0 2px 0 rgba(255, 255, 255, 0.35); }
.plate::before, .plate::after { content: ""; position: absolute; top: 50%; width: 12px; height: 12px; margin-top: -6px; border-radius: 50%; background: radial-gradient(circle at 40% 35%, #FFFFFF 0 20%, #9AA3AD 45%, #5D6670 100%); }
.plate::before { left: 22px; }
.plate::after { right: 22px; }
.plate .sep { width: 0.12em; height: 0.09em; background: currentColor; border-radius: 2px; transform: translateY(0.04em); }
.plate .num { font-variant-numeric: tabular-nums; }
.plate.car { width: min(760px, 100%); aspect-ratio: 4.63; font-size: clamp(64px, 11vw, 132px); }
.plate.moto { width: min(330px, 70%); aspect-ratio: 1.36; flex-direction: column; gap: 0; font-size: clamp(64px, 8vw, 100px); line-height: 0.94; }
.plate.moto::before, .plate.moto::after { top: 22px; margin-top: 0; }
.plate.moto .cls { font-size: 0.82em; }
.plate.car .cls { font-size: 0.86em; }
.plate.stamp { animation: stamp 0.55s cubic-bezier(0.2, 0.9, 0.2, 1); }
@keyframes stamp { 0% { transform: scale(1.035) translateY(-6px); filter: blur(1.5px); } 55% { transform: scale(0.992) translateY(1px); filter: blur(0); } 100% { transform: none; } }
.plate-hero > .plate { margin-top: clamp(28px, 4vw, 44px); }
.rule { margin-top: 20px; max-width: 62ch; font-size: 16px; color: var(--on-header); text-wrap: balance; }
.rule b { color: #FFFFFF; }
.rule .star { display: inline-flex; align-items: center; gap: 4px; color: var(--coin); font-weight: 700; }
.rule .star svg { width: 14px; height: 14px; fill: currentColor; }
.picker { display: none; margin-top: 18px; max-width: 760px; }
.js .picker { display: grid; gap: 6px; justify-items: center; }
.picker .gl { font-size: 13px; font-weight: 600; color: var(--on-header-2); margin-top: 6px; }
.picker .grp { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.chip { min-width: 44px; height: 40px; padding: 0 10px; border: 1.5px solid rgba(255, 255, 255, 0.45); border-radius: 8px; background: transparent; color: #FFFFFF; font-family: var(--plate-face); font-weight: 700; font-size: 19px; letter-spacing: 0.02em; cursor: pointer; transition: border-color 0.2s var(--ease-out); }
.chip:hover { border-color: #FFFFFF; }
.chip[aria-pressed="true"] { background: var(--plate); border-color: var(--plate); color: var(--plate-ink); }
.plate-hero .cta-row { justify-content: center; margin-top: 26px; }
.other { margin-top: 14px; font-size: 15px; color: var(--on-header); }
.other a { color: #FFFFFF; font-weight: 600; text-decoration-color: var(--coin); text-decoration-thickness: 2px; }
.store.play svg { width: 26px; height: 26px; }
.phones { display: flex; justify-content: center; gap: clamp(10px, 2.4vw, 28px); margin: clamp(36px, 5vw, 56px) auto clamp(-170px, -12vw, -110px); position: relative; z-index: 1; width: min(810px, 100%); }
.phones img { width: 31%; max-width: 250px; border-radius: clamp(18px, 3vw, 34px); border: clamp(4px, 0.7vw, 9px) solid var(--frame); background: var(--frame); box-shadow: 0 30px 60px -24px rgba(10, 20, 30, 0.55); }
.phones img:nth-child(2) { transform: translateY(clamp(-36px, -3vw, -18px)); }
.after { padding-top: clamp(140px, 14vw, 200px); }

.flow { margin-top: 40px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 22px; }
.flow figure { margin: 0; display: grid; gap: 14px; align-content: start; }
.flow .device { max-width: none; border-radius: 26px; border-width: 6px; }
.flow figcaption strong { display: block; font-size: 16px; line-height: 1.35; }
.flow figcaption span { display: block; margin-top: 4px; color: var(--muted); font-size: 15px; line-height: 1.5; }
.tab { display: inline-block; margin-bottom: 8px; padding: 2px 8px; border-radius: 6px; background: var(--brand-tint); color: var(--header-deep); font-size: 12.5px; font-weight: 700; }

.liet { background: var(--night); color: #FFFFFF; }
.liet .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); gap: 56px; align-items: center; }
.liet h2 { max-width: 18ch; }
.liet p.sub { color: var(--on-night); }
.figs { display: flex; flex-wrap: wrap; gap: 20px 36px; margin-top: 32px; }
.figs div { font-family: var(--plate-face); font-size: 58px; font-weight: 700; line-height: 1; }
.figs small { display: block; margin-top: 6px; font-family: 'Be Vietnam Pro', system-ui, sans-serif; font-size: 14px; font-weight: 400; color: var(--on-night); }
.q { display: grid; gap: 10px; padding: 24px; border-radius: 18px; background: var(--surface); color: var(--ink); }
.q .badge { display: inline-flex; align-items: center; gap: 6px; color: var(--star); font-weight: 700; font-size: 14px; }
.q .badge svg { width: 15px; height: 15px; fill: currentColor; }
.q .qt { font-weight: 600; font-size: 17px; line-height: 1.45; }
.q ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: a; }
.q li { counter-increment: a; display: flex; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 15px; line-height: 1.45; }
.q li::before { content: counter(a); min-width: 1.2em; font-weight: 700; color: var(--muted); }
.q li.ok { border-color: var(--correct); background: #EDF7F0; }
.q li.ok::before { color: var(--correct); }
.q .src { font-size: 13px; color: var(--muted); }

.apps { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 28px; }
.app { min-width: 0; display: grid; gap: 18px; align-content: start; padding: clamp(20px, 2.6vw, 32px); border-radius: 22px; background: var(--header); color: #FFFFFF; }
.app.moto { background: var(--header-a12); }
.app h3 { font-size: 24px; line-height: 1.2; letter-spacing: -0.02em; }
.app p { color: var(--on-header); }
.app .plate.car { width: 100%; font-size: clamp(48px, 7vw, 92px); }
.app .plate.moto { width: min(220px, 100%); font-size: 62px; }
.cls-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; }
.cls-list li { padding: 1px 8px; border: 1.5px solid rgba(255, 255, 255, 0.5); border-radius: 7px; font-family: var(--plate-face); font-weight: 700; font-size: 17px; }
.app .badges { display: flex; flex-wrap: wrap; gap: 10px; }
.lane { height: 6px; border-radius: 3px; background: repeating-linear-gradient(90deg, var(--ink) 0 48px, transparent 48px 80px); opacity: 0.14; }

@media (max-width: 900px) {
  .flow { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad-x)); padding: 0 var(--pad-x) 12px; scrollbar-width: none; }
  .flow::-webkit-scrollbar { display: none; }
  .flow figure { flex: 0 0 62%; max-width: 280px; scroll-snap-align: start; }
  .liet .wrap, .apps { grid-template-columns: minmax(0, 1fr); gap: 28px; }
}
@media (max-width: 560px) {
  .plate::before { left: 12px; } .plate::after { right: 12px; }
  .plate::before, .plate::after { width: 8px; height: 8px; margin-top: -4px; }
  .plate.moto::before, .plate.moto::after { top: 14px; margin-top: 0; }
  .plate.car { font-size: 17vw; }
  .plate.moto { width: 220px; font-size: 66px; }
  .app .plate.car { font-size: 14vw; }
  .chip { height: 38px; min-width: 40px; font-size: 17px; padding: 0 8px; }
  .figs div { font-size: 44px; }
  .store { padding-right: 16px; }
  .store strong { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) { .field { transition: none; } }

main.after > .section.first { padding-top: 0; }

/* Free / Remove Ads table: one block per row on phones */
@media (max-width: 560px) {
  .compare thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .compare, .compare tbody, .compare tr, .compare th, .compare td { display: block; }
  .compare tbody tr { padding: 16px 18px; }
  .compare th, .compare td { padding: 0; background: none !important; }
  .compare tbody th { font-weight: 700; margin-bottom: 8px; }
  .compare td { display: grid; grid-template-columns: 7.5em minmax(0, 1fr); gap: 8px; padding-block: 3px; }
  .compare td::before { content: attr(data-h); font-size: 13px; font-weight: 600; color: var(--muted); }
}

/* Privacy table: one block per service on phones (no narrow columns) */
@media (max-width: 720px) {
  .data thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .data, .data tbody, .data tr, .data th, .data td { display: block; }
  .data tbody tr { padding: 14px 0; }
  .data th, .data td { padding: 0 !important; }
  .data tbody th { font-size: 16px; margin-bottom: 6px; }
  .data td + td { margin-top: 8px; }
  .data td::before { content: attr(data-h); display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
}

/* Footer */
.foot { background: var(--night); color: var(--on-night); font-size: 15px; }
.foot .wrap { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 32px; padding-block: 32px; }
.foot .wrap > span { margin-right: auto; }
.foot a { color: #E8EDF5; display: inline-block; padding: 10px 0; }
.foot a:hover { color: #FFFFFF; }

/* Document pages (privacy, support) */
.doc-head { padding-block: clamp(32px, 5vw, 64px) clamp(40px, 5vw, 72px); }
.doc-head h1 { font-size: clamp(34px, 4.4vw, 56px); line-height: 1.08; letter-spacing: -0.03em; font-weight: 800; }
.doc-head p { margin-top: 16px; max-width: 40em; color: var(--on-header); }
.doc-head .mail { display: inline-flex; align-items: center; gap: 10px; margin-top: 28px; min-height: 48px; padding: 0 24px; border-radius: 12px; background: var(--surface); color: var(--header); font-weight: 700; text-decoration: none; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3); }
.doc-head .mail svg { width: 20px; height: 20px; }
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 48px; align-items: start; padding-block: clamp(40px, 5vw, 72px) 96px; line-height: 1.65; }
.toc { position: sticky; top: 24px; font-size: 15px; }
.toc p { font-weight: 700; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 20px; color: var(--muted); display: grid; gap: 6px; }
.toc a { text-decoration: none; }
.toc a:hover { text-decoration: underline; }
.paper { max-width: 72ch; background: var(--surface); border-radius: 20px; padding: clamp(24px, 4vw, 56px); box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); }
.paper h2 { font-size: 26px; line-height: 1.25; letter-spacing: -0.02em; margin-top: 48px; scroll-margin-top: 24px; }
.paper h2:first-child { margin-top: 0; }
.paper p, .paper ul { margin-top: 14px; }
.paper ul { padding-left: 22px; display: grid; gap: 8px; }
.paper .small { color: var(--muted); font-size: 15px; }
.data { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; margin-top: 18px; }
.data th, .data td { padding: 12px; text-align: left; vertical-align: top; }
.data th:first-child, .data td:first-child { padding-left: 0; }
.data thead tr { border-bottom: 2px solid var(--line); }
.data tbody tr { border-bottom: 1px solid var(--line); }
.data tbody tr:last-child { border-bottom: 0; }
.data tbody th { font-weight: 600; }
.faq { max-width: 760px; margin-top: 24px; background: var(--surface); border-radius: 20px; box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06); overflow: hidden; }
.faq details { border-bottom: 1px solid var(--line); padding: 0 24px; }
.faq details:last-child { border-bottom: 0; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 10px; height: 10px; margin-top: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform 0.2s var(--ease-out); }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding-bottom: 18px; color: var(--ink-2); }
.doc-section { padding-block: clamp(40px, 5vw, 72px) 96px; }
.doc-section h2 { font-size: 28px; letter-spacing: -0.02em; }

@media (max-width: 900px) {
  .hero-grid, .split, .pro { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 8px; }
  .hero-phone img { max-width: 300px; }
  .shots { display: flex; gap: 20px; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--pad-x)); padding: 0 var(--pad-x) 12px; scrollbar-width: none; }
  .shots::-webkit-scrollbar { display: none; }
  .shots figure { flex: 0 0 72%; max-width: 300px; scroll-snap-align: center; }
  .doc { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toc { position: static; }
}
/* Phones: language menu beside the logo, links on their own row (scrolls sideways when long) */
@media (max-width: 720px) {
  .nav { gap: 4px 12px; }
  .brand { min-width: 0; }
  .langs { order: 2; }
  .nav-links { order: 3; flex: 1 0 100%; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 0 20px; margin-inline: calc(-1 * var(--pad-x)); padding-inline: var(--pad-x); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a { white-space: nowrap; }
  .langs ul { max-width: calc(100vw - 32px); }
}
@media (max-width: 400px) {
  .langs summary { padding: 0 11px; }
  .langs summary span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
