/* ──────────────────────────────────────────────────────────────────────────
   Lekhpal Pro: marketing site (index.html, features.html)
   The policy pages keep their own quieter sheet (styles.css), because the app
   opens them inside its WebView.

   Palette: the app's navy, the gold from its Home banner, and a warm paper
   background that nods to the khasra register. The faint plot-line motif in
   the dark sections is drawn from a village map.
   ────────────────────────────────────────────────────────────────────────── */

:root {
  --ink: #0A1A2F;
  --ink-2: #102641;
  --navy: #16365C;
  --navy-2: #24507F;
  --navy-soft: #E9EEF5;
  --gold: #E2A847;
  --gold-deep: #B87F1E;
  --gold-soft: #FBF2DF;
  --paper: #FAF8F3;
  --white: #FFFFFF;
  --text: #0E1726;
  --text-2: #4A5568;
  --muted: #6B7280;
  --line: #E8E3D8;
  --line-2: #DCD5C6;
  --green: #1E8A4F;
  --green-soft: #E6F4EC;
  --red: #C02626;
  --wa: #1FAF5A;

  --on-dark: #F4F6FA;
  --on-dark-2: rgba(244, 246, 250, 0.72);
  --on-dark-line: rgba(255, 255, 255, 0.12);

  --radius: 22px;
  --radius-sm: 14px;
  --wrap: 1180px;
  --shadow-sm: 0 1px 2px rgba(10, 26, 47, 0.06), 0 2px 8px rgba(10, 26, 47, 0.05);
  --shadow: 0 2px 6px rgba(10, 26, 47, 0.06), 0 18px 40px -12px rgba(10, 26, 47, 0.18);
  --shadow-phone: 0 40px 80px -24px rgba(4, 12, 24, 0.55), 0 12px 28px -8px rgba(4, 12, 24, 0.35);

  --font-display: "Poppins", "Mukta", system-ui, sans-serif;
  --font-body: "Mukta", "Poppins", system-ui, sans-serif;
  color-scheme: light;
}

/* ── Base ─────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.6;
  color: var(--text);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--navy); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy-2); }
:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); margin: 0; line-height: 1.22; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 4.6vw, 3.9rem); font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.2vw, 2.75rem); font-weight: 700; }
h3 { font-size: 1.28rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }
p { margin: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.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(--gold); color: var(--ink); padding: 10px 16px; border-radius: 10px; font-weight: 600; }
.skip:focus { top: 12px; }

.i { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 18px; height: 18px; }
.i-lg { width: 28px; height: 28px; }

/* ── Buttons ──────────────────────────────────────────────────────────────── */

.btn {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 52px; padding: 0 22px;
  border-radius: 999px; border: 1px solid transparent;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease, color .18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: var(--ink); box-shadow: 0 10px 24px -10px rgba(226, 168, 71, 0.8); }
.btn-gold:hover { background: #EBB75C; color: var(--ink); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-ghost { background: transparent; color: var(--on-dark); border-color: var(--on-dark-line); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn-line { background: var(--white); color: var(--navy); border-color: var(--line-2); }
.btn-line:hover { border-color: var(--navy); color: var(--navy); }

.play-btn { min-height: 58px; padding: 0 22px 0 18px; border-radius: 16px; gap: 12px; }
.play-btn .play-mark { width: 26px; height: 26px; }
.play-btn span { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.play-btn small { font-family: var(--font-body); font-weight: 500; font-size: .78rem; opacity: .8; }
.play-btn strong { font-size: 1.08rem; }

/* ── Top bar ──────────────────────────────────────────────────────────────── */

.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 26, 47, 0.86);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--on-dark-line);
}
.nav .wrap { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.18rem; }
.brand:hover { color: #fff; }
.brand .mark { width: 36px; height: 36px; border-radius: 10px; background: #fff; display: grid; place-items: center; }
.brand .mark svg { width: 22px; height: 22px; color: var(--navy); }
.nav-links { display: flex; gap: 4px; margin-left: auto; list-style: none; padding: 0; margin-top: 0; margin-bottom: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 10px; color: var(--on-dark-2); text-decoration: none; font-weight: 500; font-size: 1rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, 0.07); }
.nav .btn { min-height: 42px; padding: 0 16px; font-size: .92rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1px solid var(--on-dark-line); color: #fff; width: 44px; height: 44px; border-radius: 12px; cursor: pointer; align-items: center; justify-content: center; }

@media (max-width: 960px) {
  .nav-toggle { display: inline-flex; }
  .nav .nav-cta { display: none; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--ink); border-bottom: 1px solid var(--on-dark-line);
    display: none;
  }
  .nav.open .nav-links { display: flex; }
  .nav-links a { padding: 14px 12px; font-size: 1.05rem; }
}

/* ── Dark sections and the plot-line motif ────────────────────────────────── */

.dark { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; isolation: isolate; }
.dark h1, .dark h2, .dark h3, .dark h4 { color: #fff; }
.dark p { color: var(--on-dark-2); }
.dark a:not(.btn) { color: var(--gold); }

.plots {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: url("plots.svg");
  background-size: 820px auto;
  background-repeat: repeat;
  opacity: .5;
  mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, rgba(0,0,0,.6) 45%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at 70% 40%, #000 0%, rgba(0,0,0,.6) 45%, transparent 80%);
}
.glow { position: absolute; z-index: -1; border-radius: 50%; filter: blur(90px); pointer-events: none; }
.glow.gold { background: rgba(226, 168, 71, 0.26); }
.glow.blue { background: rgba(56, 116, 196, 0.32); }

/* ── Hero ─────────────────────────────────────────────────────────────────── */

.hero { padding: 72px 0 0; }
.hero .glow.gold { width: 520px; height: 520px; right: -120px; top: 40px; }
.hero .glow.blue { width: 620px; height: 620px; left: -260px; bottom: -260px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { padding-bottom: 72px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: 999px;
  background: rgba(226, 168, 71, 0.12); border: 1px solid rgba(226, 168, 71, 0.35);
  color: var(--gold); font-weight: 600; font-size: .95rem;
}
.pill b { background: var(--gold); color: var(--ink); border-radius: 999px; padding: 1px 9px; font-size: .78rem; font-family: var(--font-display); }
.hero h1 { margin: 20px 0 18px; }
.hero h1 em { font-style: normal; color: var(--gold); }
.hero .lede { font-size: 1.22rem; max-width: 34em; }
.hero .lede-en { margin-top: 10px; font-size: 1rem; color: rgba(244, 246, 250, 0.55); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 32px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; font-size: .98rem; color: var(--on-dark-2); }
.hero-trust .i { color: var(--gold); width: 18px; height: 18px; }

.hero-art { position: relative; height: 640px; align-self: end; }
.hero-art .phone { position: absolute; }
.hero-art .phone.p1 { width: 290px; left: 4%; bottom: -60px; transform: rotate(-5deg); z-index: 1; }
.hero-art .phone.p2 { width: 300px; right: 4%; bottom: 10px; transform: rotate(4deg); z-index: 2; }
.float-card {
  position: absolute; z-index: 3;
  display: flex; align-items: center; gap: 12px;
  background: #fff; color: var(--text); border-radius: 16px;
  padding: 12px 16px 12px 12px; box-shadow: var(--shadow);
  font-size: .95rem; line-height: 1.3; max-width: 250px;
}
.float-card .badge { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float-card p { color: var(--text); }
.float-card strong { display: block; font-family: var(--font-display); font-size: .95rem; }
.float-card span { color: var(--muted); font-size: .86rem; }
.float-card.f1 { left: -10px; top: 70px; }
.float-card.f1 .badge { background: var(--green-soft); color: var(--green); }
.float-card.f2 { right: -16px; top: 210px; }
.float-card.f2 .badge { background: var(--gold-soft); color: var(--gold-deep); }

@media (max-width: 1060px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 32px; text-align: left; }
  .hero-art { height: 520px; max-width: 560px; width: 100%; margin: 0 auto; }
  .hero-art .phone.p1 { width: 240px; }
  .hero-art .phone.p2 { width: 250px; }
}
@media (max-width: 560px) {
  .hero { padding-top: 44px; }
  .hero-art { height: 440px; }
  .hero-art .phone.p1 { width: 196px; left: 0; }
  .hero-art .phone.p2 { width: 206px; right: 0; }
  .float-card { max-width: 210px; padding: 10px 12px 10px 10px; font-size: .86rem; }
  .float-card.f1 { left: 0; top: 24px; }
  .float-card.f2 { right: 0; top: 150px; }
  .float-card .badge { width: 34px; height: 34px; }
}

/* ── Phone frame ──────────────────────────────────────────────────────────── */

.phone {
  position: relative;
  border-radius: 40px; padding: 9px;
  background: linear-gradient(145deg, #2A3445, #0B121D 60%);
  box-shadow: var(--shadow-phone), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.phone img { width: 100%; height: auto; aspect-ratio: 1220 / 2712; object-fit: cover; object-position: top; border-radius: 32px; background: #fff; }
.phone::after { /* camera */
  content: ""; position: absolute; top: 19px; left: 50%; width: 10px; height: 10px; margin-left: -5px;
  border-radius: 50%; background: #05080D; box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.05);
}
.phone.flat { box-shadow: var(--shadow); }

/* ── Stats strip ──────────────────────────────────────────────────────────── */

.stats { position: relative; z-index: 4; margin-top: -1px; background: var(--white); border-bottom: 1px solid var(--line); }
.stats ul { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); }
.stats li { padding: 28px 24px; border-left: 1px solid var(--line); }
.stats li:first-child { border-left: 0; }
.stats strong { display: block; font-family: var(--font-display); font-size: clamp(1.6rem, 2.6vw, 2.1rem); color: var(--navy); line-height: 1.1; }
.stats span { color: var(--text-2); font-size: 1rem; }
@media (max-width: 820px) {
  .stats ul { grid-template-columns: 1fr 1fr; }
  .stats li:nth-child(3) { border-left: 0; }
  .stats li:nth-child(n+3) { border-top: 1px solid var(--line); }
  .stats li { padding: 20px 16px; }
  .stats strong { font-size: 1.45rem; }
  .stats span { font-size: .92rem; }
}

/* ── Sections ─────────────────────────────────────────────────────────────── */

.section { padding: 104px 0; }
.section.tight { padding: 80px 0; }
.section.white { background: var(--white); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-display); font-weight: 600; font-size: .86rem;
  letter-spacing: 0; color: var(--gold-deep);
  margin-bottom: 14px;
}
.dark .eyebrow { color: var(--gold); }
.eyebrow::before { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head.center .eyebrow::after { content: ""; width: 22px; height: 2px; background: currentColor; border-radius: 2px; }
.section-head p { margin-top: 16px; font-size: 1.15rem; color: var(--text-2); }
.dark .section-head p { color: var(--on-dark-2); }
.en { display: block; margin-top: 6px; font-size: .95rem; color: var(--muted); }
.dark .en { color: rgba(244, 246, 250, 0.5); }

@media (max-width: 720px) {
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 40px; }
  body { font-size: 17px; }
}

/* ── Feature overview cards ───────────────────────────────────────────────── */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; text-decoration: none; color: var(--text);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
a.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); color: var(--text); }
.card .ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; margin-bottom: 6px; }
.card p { color: var(--text-2); font-size: 1rem; }
.card .more { margin-top: auto; padding-top: 8px; display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--navy); font-size: .98rem; }
.card .tag { position: absolute; top: 22px; right: 22px; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.tag.paid { background: var(--navy-soft); color: var(--navy); }
.tag.open { background: var(--green-soft); color: var(--green); }
.tag.soon { background: var(--gold-soft); color: var(--gold-deep); }
.ico.navy { background: var(--navy-soft); color: var(--navy); }
.ico.gold { background: var(--gold-soft); color: var(--gold-deep); }
.ico.green { background: var(--green-soft); color: var(--green); }
.ico.rose { background: #FCEDEE; color: #B4323E; }
.ico.violet { background: #F0ECFB; color: #5B45B0; }
.ico.teal { background: #E3F4F4; color: #17807E; }
.card.hero-card { grid-column: span 2; background: linear-gradient(135deg, var(--navy) 0%, var(--ink) 100%); border-color: transparent; color: #fff; overflow: hidden; }
.card.hero-card h3 { color: #fff; font-size: 1.5rem; }
.card.hero-card p { color: var(--on-dark-2); max-width: 30em; }
.card.hero-card .more { color: var(--gold); }
.card.hero-card .ico { background: rgba(226, 168, 71, 0.16); color: var(--gold); }
.card.hero-card .tag.paid { background: rgba(255,255,255,.12); color: #fff; }
.card.hero-card:hover { color: #fff; }
@media (max-width: 980px) { .cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .cards { grid-template-columns: 1fr; } .card.hero-card { grid-column: auto; } }

/* ── Split feature blocks ─────────────────────────────────────────────────── */

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.rev .split-art { order: -1; }
.split-copy h2 { margin-bottom: 18px; }
.split-copy > p { font-size: 1.12rem; color: var(--text-2); }
.dark .split-copy > p { color: var(--on-dark-2); }
.split-art { position: relative; display: flex; justify-content: center; align-items: flex-start; gap: 22px; }
.split-art .phone { width: 280px; }
.split-art .phone.offset { margin-top: 72px; }
@media (max-width: 980px) {
  .split { grid-template-columns: 1fr; gap: 48px; }
  .split.rev .split-art { order: 0; }
}
@media (max-width: 620px) {
  .split-art .phone { width: 46%; }
  .split-art .phone.offset { margin-top: 40px; }
  .split-art .phone:only-child { width: 72%; }
}

.checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 14px; }
.checks li { display: flex; gap: 14px; align-items: flex-start; }
.checks .tick { flex: none; width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); margin-top: 2px; }
.dark .checks .tick { background: rgba(226, 168, 71, 0.14); color: var(--gold); }
.checks strong { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; color: var(--text); }
.dark .checks strong { color: #fff; }
.checks span { color: var(--text-2); font-size: 1rem; }
.dark .checks span { color: var(--on-dark-2); }

/* numbered flow */
.flow { list-style: none; counter-reset: step; padding: 0; margin: 28px 0 0; display: grid; gap: 4px; }
.flow li { counter-increment: step; position: relative; padding: 0 0 22px 60px; }
.flow li::before {
  content: counter(step); position: absolute; left: 0; top: 0;
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; font-size: 1rem;
  background: var(--gold); color: var(--ink);
}
.flow li::after { content: ""; position: absolute; left: 19px; top: 46px; bottom: 4px; width: 2px; background: var(--on-dark-line); }
.flow li:last-child::after { display: none; }
.flow strong { display: block; font-family: var(--font-display); color: #fff; font-weight: 600; font-size: 1.06rem; }
.flow span { color: var(--on-dark-2); font-size: 1rem; }
.section:not(.dark) .flow strong { color: var(--text); }
.section:not(.dark) .flow span { color: var(--text-2); }
.section:not(.dark) .flow li::before { background: var(--navy); color: #fff; }
.section:not(.dark) .flow li::after { background: var(--line); }

/* sub-option tiles (Fast / Master / Manual / Reports) */
.modes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 64px; }
.mode { border: 1px solid var(--on-dark-line); background: rgba(255, 255, 255, 0.03); border-radius: 18px; padding: 22px; }
.mode .i { color: var(--gold); margin-bottom: 12px; }
.mode h4 { color: #fff; margin-bottom: 6px; }
.mode p { font-size: .96rem; }
@media (max-width: 980px) { .modes { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .modes { grid-template-columns: 1fr; } }

.note {
  display: flex; gap: 12px; align-items: flex-start;
  margin-top: 26px; padding: 14px 18px; border-radius: 14px;
  background: var(--gold-soft); color: #6B4A10; font-size: .98rem;
}
.note .i { color: var(--gold-deep); margin-top: 3px; }
.dark .note { background: rgba(226, 168, 71, 0.1); color: #F3D9A8; }
.dark .note .i { color: var(--gold); }

/* ── Mock UI panels (screens we have no capture of yet) ───────────────────── */

.mock {
  width: 100%; max-width: 420px; background: var(--white); color: var(--text);
  border-radius: 26px; box-shadow: var(--shadow-phone); overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.mock-bar { display: flex; align-items: center; gap: 12px; padding: 16px 18px; background: var(--navy); color: #fff; }
.mock-bar strong { font-family: var(--font-display); font-size: 1rem; }
.mock-bar small { display: block; color: rgba(255,255,255,.7); font-size: .8rem; }
.mock-body { padding: 18px; display: grid; gap: 12px; background: #F6F7F9; }
.mock-row { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: flex; gap: 12px; align-items: center; }
.mock-row .lvl { width: 6px; align-self: stretch; border-radius: 6px; flex: none; }
.mock-row .t { flex: 1; min-width: 0; }
.mock-row .t b { display: block; font-size: .96rem; font-weight: 600; }
.mock-row .t span { display: block; color: var(--muted); font-size: .84rem; }
.mock-row .chip { font-size: .76rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.chip.g { background: var(--green-soft); color: var(--green); }
.chip.y { background: var(--gold-soft); color: var(--gold-deep); }
.chip.r { background: #FCEDEE; color: #B4323E; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.mock-stats div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; text-align: center; }
.mock-stats b { display: block; font-family: var(--font-display); font-size: 1.2rem; color: var(--navy); }
.mock-stats span { font-size: .78rem; color: var(--muted); }
.mock-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; padding: 12px; background: #fff; border-top: 1px solid var(--line); }
.mock-actions span { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px; border-radius: 12px; font-size: .8rem; font-weight: 600; color: var(--navy); background: var(--navy-soft); text-align: center; line-height: 1.2; }
.mock-actions span.on { background: var(--navy); color: #fff; }
.mock-caption { margin-top: 14px; text-align: center; font-size: .86rem; color: var(--muted); }
.dark .mock-caption { color: rgba(244, 246, 250, 0.45); }

/* Mitra chat */
.chat { display: grid; gap: 10px; }
.bubble { max-width: 86%; padding: 10px 14px; border-radius: 16px; font-size: .94rem; line-height: 1.4; }
.bubble.me { justify-self: end; background: var(--navy); color: #fff; border-bottom-right-radius: 4px; }
.bubble.bot { background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.result { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.result-h { display: flex; align-items: center; gap: 10px; padding: 10px 12px; font-weight: 600; font-size: .92rem; }
.result-h .dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; }
.result-h .chip { margin-left: auto; }
.mock-bar.orange { background: linear-gradient(120deg, #E8742A, #F29A3E); }

/* ── Records showcase (tabs) ──────────────────────────────────────────────── */

.tabs { display: inline-flex; gap: 6px; padding: 6px; background: var(--white); border: 1px solid var(--line); border-radius: 16px; margin-bottom: 40px; flex-wrap: wrap; }
.tab {
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; background: transparent; cursor: pointer;
  padding: 10px 18px; border-radius: 11px;
  font-family: var(--font-display); font-weight: 600; font-size: .98rem; color: var(--text-2);
}
.tab:hover { color: var(--navy); background: var(--navy-soft); }
.tab[aria-selected="true"] { background: var(--navy); color: #fff; }
.panel[hidden] { display: none; }
.panel .split { align-items: start; }
.panel .split-art { padding-top: 8px; }
.how {
  margin-top: 26px; padding: 20px 22px; border-radius: 18px;
  background: var(--white); border: 1px solid var(--line);
}
.how h4 { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; color: var(--navy); }
.how ol { margin: 0; padding-left: 22px; color: var(--text-2); }
.how li { margin: 4px 0; }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.choice div { padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--white); }
.choice div:first-child { border-color: var(--navy); box-shadow: inset 0 0 0 1px var(--navy); }
.choice b { display: block; font-family: var(--font-display); font-size: .98rem; margin-bottom: 4px; }
.choice span { color: var(--text-2); font-size: .94rem; line-height: 1.45; display: block; }
@media (max-width: 520px) { .choice { grid-template-columns: 1fr; } .tab { padding: 9px 12px; font-size: .92rem; } }

/* ── Tools grid ───────────────────────────────────────────────────────────── */

.tool-groups { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.tool-group { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.tool-group h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; margin-bottom: 16px; }
.tool-group h3 .ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin: 0; }
.tool-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.tool-list li { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px dashed var(--line); }
.tool-list li:first-child { border-top: 0; }
.tool-list b { font-weight: 600; }
.tool-list span { color: var(--muted); font-size: .95rem; text-align: right; }
@media (max-width: 860px) { .tool-groups { grid-template-columns: 1fr; } }

/* ── Links strip ──────────────────────────────────────────────────────────── */

.portal-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.portal-chips span { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: .96rem; font-weight: 500; }
.portal-chips .i { width: 16px; height: 16px; color: var(--navy); }

/* ── Security ─────────────────────────────────────────────────────────────── */

.sec-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.sec { padding: 26px; border-radius: var(--radius); border: 1px solid var(--on-dark-line); background: rgba(255, 255, 255, 0.03); }
.sec .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(226, 168, 71, 0.12); color: var(--gold); margin-bottom: 16px; }
.sec h3 { font-size: 1.12rem; margin-bottom: 8px; }
.sec p { font-size: .98rem; }
@media (max-width: 900px) { .sec-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .sec-grid { grid-template-columns: 1fr; } }

/* ── Coming soon ──────────────────────────────────────────────────────────── */

.soon-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
.soon { padding: 22px 18px; border-radius: 18px; border: 1px dashed var(--line-2); background: var(--white); }
.soon .ico { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; margin-bottom: 14px; }
.soon h4 { margin-bottom: 4px; }
.soon p { color: var(--text-2); font-size: .93rem; line-height: 1.45; }
@media (max-width: 1000px) { .soon-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .soon-grid { grid-template-columns: 1fr 1fr; } }

/* ── Access table ─────────────────────────────────────────────────────────── */

.access { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.access-col { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: var(--white); }
.access-col.paid { background: linear-gradient(160deg, var(--navy) 0%, var(--ink) 100%); border-color: transparent; color: var(--on-dark); }
.access-col h3 { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.access-col.paid h3 { color: #fff; }
.access-col > p { color: var(--text-2); font-size: 1rem; margin-bottom: 14px; }
.access-col.paid > p { color: var(--on-dark-2); }
.access-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.access-col li { display: flex; gap: 10px; align-items: flex-start; font-size: 1rem; }
.access-col li .i { color: var(--green); margin-top: 3px; width: 18px; height: 18px; }
.access-col.paid li .i { color: var(--gold); }
@media (max-width: 760px) { .access { grid-template-columns: 1fr; } }

/* ── Steps (get started) ──────────────────────────────────────────────────── */

.start { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; counter-reset: s; }
.start li { list-style: none; counter-increment: s; position: relative; padding: 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--line); }
.start li::before { content: "0" counter(s); display: block; font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1; color: var(--gold); margin-bottom: 14px; }
.start h3 { font-size: 1.12rem; margin-bottom: 6px; }
.start p { color: var(--text-2); font-size: 1rem; }
.start { padding: 0; margin: 0; }
@media (max-width: 820px) { .start { grid-template-columns: 1fr; } }

/* ── FAQ ──────────────────────────────────────────────────────────────────── */

.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 0 22px; transition: border-color .2s ease; }
.faq details[open] { border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 0; font-family: var(--font-display); font-weight: 600; font-size: 1.06rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--navy); transition: transform .2s ease; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 0 20px; color: var(--text-2); font-size: 1.02rem; }

/* ── CTA band ─────────────────────────────────────────────────────────────── */

.cta { padding: 88px 0; text-align: center; }
.cta .glow.gold { width: 460px; height: 460px; left: 50%; top: -180px; margin-left: -230px; }
.cta h2 { max-width: 18em; margin: 0 auto 14px; }
.cta p { max-width: 36em; margin: 0 auto; font-size: 1.12rem; }
.cta .hero-ctas { justify-content: center; }

.help { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.help a { display: flex; gap: 14px; align-items: center; padding: 20px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .2s ease, transform .2s ease; }
.help a:hover { border-color: var(--navy); transform: translateY(-2px); color: var(--text); }
.help .ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; flex: none; }
.help b { display: block; font-family: var(--font-display); font-size: 1rem; }
.help span { color: var(--muted); font-size: .92rem; }
.ico.wa { background: #E3F6EA; color: var(--wa); }
@media (max-width: 820px) { .help { grid-template-columns: 1fr; } }

/* ── Footer ───────────────────────────────────────────────────────────────── */

.footer { background: var(--ink); color: var(--on-dark-2); padding: 64px 0 32px; font-size: .98rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; }
.footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer a { color: var(--on-dark-2); text-decoration: none; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .brand { margin-bottom: 14px; }
.footer .about { max-width: 26em; }
.disclaim { margin-top: 48px; padding: 18px 20px; border-radius: 16px; border: 1px solid var(--on-dark-line); background: rgba(255,255,255,.03); display: flex; gap: 14px; align-items: flex-start; font-size: .94rem; }
.disclaim .i { color: var(--gold); margin-top: 3px; }
.footer-base { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--on-dark-line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; font-size: .9rem; color: rgba(244,246,250,.5); }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ── Guide page (features.html) ───────────────────────────────────────────── */

.page-hero { padding: 72px 0 80px; }
.page-hero .glow.gold { width: 420px; height: 420px; right: -100px; top: -120px; }
.page-hero h1 { font-size: clamp(2.1rem, 4vw, 3.2rem); margin: 14px 0 14px; }
.page-hero p { font-size: 1.15rem; max-width: 40em; }
.crumbs { font-size: .95rem; color: var(--on-dark-2); }
.crumbs a { color: var(--on-dark-2); text-decoration: none; }
.crumbs a:hover { color: #fff; }

.guide { display: grid; grid-template-columns: 260px 1fr; gap: 56px; padding: 64px 0 104px; }
.toc { position: sticky; top: 92px; align-self: start; }
.toc h4 { font-size: .9rem; color: var(--muted); margin-bottom: 12px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; border-left: 2px solid var(--line); }
.toc a { display: block; padding: 7px 14px; margin-left: -2px; border-left: 2px solid transparent; color: var(--text-2); text-decoration: none; font-size: .98rem; line-height: 1.35; }
.toc a:hover { color: var(--navy); }
.toc a.active { color: var(--navy); border-left-color: var(--gold); font-weight: 600; }
@media (max-width: 960px) {
  .guide { grid-template-columns: 1fr; gap: 24px; padding-top: 32px; }
  .toc { position: static; }
  .toc ol { display: flex; flex-wrap: wrap; gap: 8px; border: 0; }
  .toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; margin: 0; background: var(--white); font-size: .92rem; }
}

.g-sec { padding: 0 0 72px; margin-bottom: 72px; border-bottom: 1px solid var(--line); scroll-margin-top: 92px; }
.g-sec:last-child { border-bottom: 0; margin-bottom: 0; }
.g-head { display: flex; gap: 18px; align-items: flex-start; margin-bottom: 22px; }
.g-head .ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.g-head h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); }
.g-head .tag { display: inline-block; margin-top: 8px; font-size: .8rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.g-body { display: grid; grid-template-columns: 1fr 240px; gap: 40px; align-items: start; }
.g-body.noart { grid-template-columns: 1fr; }
.g-body .phone { width: 240px; }
.g-text > p { color: var(--text-2); font-size: 1.06rem; margin-bottom: 14px; }
.g-text h3 { font-size: 1.12rem; margin: 26px 0 10px; color: var(--navy); }
.g-text ol, .g-text ul { margin: 0; padding-left: 22px; color: var(--text-2); }
.g-text li { margin: 6px 0; }
.g-text li b { color: var(--text); }
.g-text table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: .98rem; background: var(--white); border-radius: 14px; overflow: hidden; border: 1px solid var(--line); }
.g-text th, .g-text td { text-align: left; padding: 11px 14px; border-top: 1px solid var(--line); vertical-align: top; }
.g-text th { background: #F3F0E8; font-family: var(--font-display); font-weight: 600; font-size: .92rem; border-top: 0; }
.g-text td:first-child { font-weight: 600; white-space: nowrap; }
@media (max-width: 760px) {
  .g-body { grid-template-columns: 1fr; }
  .g-body .phone { width: 220px; margin: 0 auto; }
  .g-text td:first-child { white-space: normal; }
}

/* ── Reveal on scroll ─────────────────────────────────────────────────────── */

.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn, .card, .help a { transition: none; }
}

/* ── 404 ──────────────────────────────────────────────────────────────────── */

.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound strong { display: block; font-family: var(--font-display); font-size: 6rem; line-height: 1; color: var(--gold); }
.notfound h1 { font-size: 2rem; margin: 12px 0; }
.notfound .hero-ctas { justify-content: center; }
