/* Kaagaz home page. Tokens mirror the app's theme (ui/theme/Color.kt):
   cobalt as the one accent, cool greys, and the soft per-category tints.
   Shape rule: cards and tiles 24px, rows and inputs 14px, buttons and chips full pill. */

:root {
  --ground: #F2F3F5;
  --card: #FCFCFD;
  --raised: #FFFFFF;
  --ink: #0E1014;
  --muted: #4A505C;
  --faint: #5B606B;
  --hair: #E1E3E8;
  --outline: #C9CDD5;
  --accent: #2B44E0;
  --accent-deep: #1C2FB0;
  --accent-wash: #DDE3FF;
  --on-accent: #FFFFFF;
  --amber: #8A5200;

  --wash-blue: #E8F1FF;   --ink-blue: #2F5BD8;
  --wash-pink: #FDE8F0;   --ink-pink: #A3245A;
  --wash-green: #E2F6EE;  --ink-green: #0E7354;
  --wash-purple: #EFEAFF; --ink-purple: #5A3CC9;
  --wash-amber: #FFF2DC;  --ink-amber: #8A5200;

  --shadow: 0 1px 2px rgb(14 16 20 / .04), 0 12px 32px -12px rgb(28 47 176 / .14);
  --phone-shadow: 0 40px 80px -30px rgb(28 47 176 / .35), 0 18px 36px -18px rgb(14 16 20 / .25);

  --font: "Anek Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --base: 18px;
  --ease: cubic-bezier(.16, 1, .3, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ground: #0E1014;
    --card: #1A1D23;
    --raised: #252932;
    --ink: #ECEEF2;
    --muted: #A9AFBB;
    --faint: #9AA0AC;
    --hair: #2C313B;
    --outline: #5B606B;
    --accent: #8C9BFF;
    --accent-deep: #B3BDFF;
    --accent-wash: #252C55;
    --on-accent: #0E1014;
    --amber: #FFC56B;
    --wash-blue: #1E2A44;   --ink-blue: #ACBDEF;
    --wash-pink: #3A1F2C;   --ink-pink: #DAA7BD;
    --wash-green: #17332B;  --ink-green: #9FC7BB;
    --wash-purple: #2A2443; --ink-purple: #BDB1E9;
    --wash-amber: #3A2C17;  --ink-amber: #D0BA99;
    --shadow: 0 1px 2px rgb(0 0 0 / .3), 0 12px 32px -12px rgb(0 0 0 / .5);
    --phone-shadow: 0 40px 80px -30px rgb(0 0 0 / .7), 0 0 0 1px rgb(255 255 255 / .06);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html { font-size: var(--base); scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
html.large-text { --base: 21px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.55;
  color: var(--ink);
  background: var(--ground);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }
h1, h2, h3 { margin: 0; line-height: 1.1; letter-spacing: -0.02em; }
p { margin: 0; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -0.01em; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 768px) { .wrap { padding: 0 32px; } }

.skip { position: absolute; left: 16px; top: -60px; background: var(--ink); color: var(--ground); padding: 10px 16px; border-radius: 999px; z-index: 30; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 56px; padding: 0 28px; border-radius: 999px;
  font-weight: 600; font-size: 1rem; text-decoration: none; white-space: nowrap;
  border: 1.5px solid transparent;
  transition: transform .25s var(--ease), background-color .2s, border-color .2s, box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 10px 24px -12px var(--accent); }
.btn-primary:hover { background: var(--accent-deep); }
.btn-ghost { border-color: var(--outline); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: .9rem; }
.btn-onaccent { background: var(--card); color: var(--accent-deep); }
.btn-onaccent:hover { transform: translateY(-2px); }

.icon-btn {
  display: inline-grid; place-items: center; width: 44px; height: 44px;
  border-radius: 999px; border: 1.5px solid var(--hair); background: var(--card);
  font-weight: 700; font-size: .85rem;
}
.icon-btn[aria-pressed="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.icon-btn i { font-size: 1.3rem; }

.seg { display: inline-flex; padding: 4px; gap: 2px; background: var(--card); border: 1.5px solid var(--hair); border-radius: 999px; }
.seg button { border: 0; background: transparent; min-height: 34px; min-width: 40px; padding: 0 10px; border-radius: 999px; font-weight: 600; font-size: .85rem; color: var(--muted); }
.seg button[aria-pressed="true"], .seg button[aria-selected="true"] { background: var(--ink); color: var(--ground); }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--ground) 82%, transparent);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s;
}
.nav.scrolled { border-bottom-color: var(--hair); }
.nav-row { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 1.2rem; letter-spacing: -0.02em; }
.brand img { border-radius: 10px; }
.nav nav { margin-left: auto; }
.nav-links { list-style: none; display: flex; gap: 4px; margin: 0; padding: 0; }
.nav-links a { display: block; padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; font-size: .92rem; }
.nav-links a:hover { color: var(--ink); background: var(--card); }
.nav-tools { display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; }

@media (max-width: 1023px) {
  .nav nav { margin-left: 0; }
  .nav-tools { margin-left: auto; }
  .menu-btn { display: inline-grid; }
  .nav-links {
    position: absolute; left: 0; right: 0; top: 68px;
    flex-direction: column; gap: 0; padding: 8px 16px 16px;
    background: var(--ground); border-bottom: 1px solid var(--hair);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 14px 8px; font-size: 1.05rem; color: var(--ink); border-radius: 14px; }
}
@media (max-width: 560px) { .nav-cta { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 56px; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 56px 0 80px; min-height: min(calc(100dvh - 68px), 900px); display: flex; align-items: center; }
  .hero-grid { grid-template-columns: 1.15fr .85fr; gap: 64px; }
}
.eyebrow { font-size: .78rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin-bottom: 20px; }
.hero h1 { font-size: clamp(2.6rem, 6.4vw, 5rem); font-weight: 700; letter-spacing: -0.035em; line-height: 1.02; }
.hero h1 span { display: inline; }
@media (min-width: 960px) { .hero h1 span { display: block; } }
.accent { color: var(--accent); }
.lead { margin-top: 24px; font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 30ch; line-height: 1.5; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 36px; }

.hero-copy > * { animation: rise .9s var(--ease) both; }
.hero-copy > *:nth-child(2) { animation-delay: .06s; }
.hero-copy > *:nth-child(3) { animation-delay: .12s; }
.hero-copy > *:nth-child(4) { animation-delay: .18s; }
.hero-visual { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; animation: rise 1.1s .15s var(--ease) both; }
.hero-visual figcaption { font-size: .85rem; color: var(--faint); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }

/* ---------- Phone (a live mini-version of the app's Home) ---------- */
.phone {
  width: min(360px, 100%);
  padding: 10px; border-radius: 48px;
  background: #0E1014;
  box-shadow: var(--phone-shadow);
}
.phone-screen {
  --p-ground: #F2F3F5; --p-card: #FCFCFD; --p-ink: #0E1014; --p-muted: #4A505C; --p-hair: #E1E3E8;
  position: relative; overflow: hidden;
  border-radius: 38px; background: var(--p-ground); color: var(--p-ink);
  padding: 14px 16px 92px; font-size: 14px; line-height: 1.35;
  min-height: 660px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .phone-screen { --p-ground: #0E1014; --p-card: #1A1D23; --p-ink: #ECEEF2; --p-muted: #A9AFBB; --p-hair: #2C313B; }
  :root:not([data-theme="light"]) .phone { background: #252932; }
}
.p-status { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; padding: 2px 8px 10px; }
.p-head { display: flex; justify-content: space-between; align-items: flex-start; }
.p-hello { color: var(--p-muted); font-size: 14px; }
.p-count { font-size: 30px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; }
.p-count .mono { font-weight: 600; }
.p-avatar { width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; background: var(--wash-blue); color: var(--ink-blue); font-weight: 700; }
.p-search {
  display: flex; align-items: center; gap: 10px; margin: 14px 0 18px;
  background: var(--p-card); border-radius: 999px; padding: 12px 16px; color: var(--p-muted);
}
.p-search span { flex: 1; }
.p-search i { font-size: 18px; }
.p-label { font-weight: 600; font-size: 13px; color: var(--p-muted); margin: 14px 2px 8px; display: flex; align-items: center; gap: 8px; }
.p-badge { background: var(--amber); color: var(--ground); border-radius: 999px; padding: 0 7px; font-size: 11px; line-height: 18px; }

.due-stack { position: relative; height: 148px; }
.due {
  position: absolute; inset: 0 0 auto 0;
  background: var(--p-card); border-radius: 20px; padding: 14px;
  box-shadow: 0 1px 2px rgb(14 16 20 / .06), 0 8px 20px -10px rgb(14 16 20 / .2);
  transition: transform .5s var(--ease), opacity .4s var(--ease);
  transform-origin: top center;
}
.due[data-depth="1"] { transform: translateY(12px) scale(.95); opacity: .7; }
.due[data-depth="2"] { transform: translateY(22px) scale(.9); opacity: .4; }
.due[data-depth="1"] .due-actions, .due[data-depth="2"] .due-actions { visibility: hidden; }
.due.out { transform: translateX(110%) rotate(6deg); opacity: 0; }
.due-top { display: flex; gap: 12px; align-items: center; }
.due-ic { width: 40px; height: 40px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 20px; }
.due-title { font-weight: 600; font-size: 15px; }
.due-meta { color: var(--amber); font-size: 13px; font-weight: 500; }
.due-meta .mono { font-weight: 600; }
.due-actions { display: flex; gap: 8px; margin-top: 12px; }
.due-actions button { border: 0; border-radius: 999px; min-height: 36px; padding: 0 14px; font-size: 13px; font-weight: 600; }
.due-actions .go { background: var(--accent); color: var(--on-accent); }
.due-actions .later { background: transparent; color: var(--p-muted); border: 1px solid var(--p-hair); }
.due-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; background: var(--p-card); border-radius: 20px; padding: 14px; animation: rise .5s var(--ease) both; }
.due-empty i { font-size: 28px; color: var(--ink-green); }
.due-empty b { display: block; font-size: 15px; }
.due-empty button { margin-top: 6px; border: 0; background: none; color: var(--accent); font-weight: 600; font-size: 13px; text-decoration: underline; text-underline-offset: 3px; }

.num-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.num-chip {
  display: grid; grid-template-columns: 1fr auto; align-items: center; text-align: left;
  gap: 0 6px; padding: 10px 12px; border: 0; border-radius: 14px; background: var(--p-card); color: var(--p-ink);
  transition: transform .2s var(--ease);
}
.num-chip:active { transform: scale(.97); }
.num-k { grid-column: 1; font-size: 11px; color: var(--p-muted); }
.num-chip .mono { grid-column: 1; font-size: 13px; font-weight: 600; }
.num-chip i { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); font-size: 18px; }

.people { display: flex; gap: 14px; }
.person { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; color: var(--p-muted); }
.pa { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; font-weight: 700; font-size: 16px; }
.t-amber { background: var(--wash-amber); color: var(--ink-amber); }
.t-pink { background: var(--wash-pink); color: var(--ink-pink); }
.t-blue { background: var(--wash-blue); color: var(--ink-blue); }
.t-green { background: var(--wash-green); color: var(--ink-green); }
.t-purple { background: var(--wash-purple); color: var(--ink-purple); }

.p-dock {
  position: absolute; left: 12px; right: 12px; bottom: 12px;
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--p-card); border-radius: 24px; padding: 8px 4px;
  box-shadow: 0 8px 24px -10px rgb(14 16 20 / .25);
}
.p-dock span { display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--p-muted); }
.p-dock i { font-size: 20px; }
.p-dock b { font-size: 11px; font-weight: 600; }
.p-dock .on { color: var(--accent); }
.p-dock .add i { background: var(--accent); color: var(--on-accent); border-radius: 999px; width: 30px; height: 30px; display: grid; place-items: center; font-size: 18px; }

.p-toast {
  position: absolute; left: 50%; bottom: 92px; transform: translate(-50%, 16px);
  background: var(--p-ink); color: var(--p-ground); border-radius: 999px; padding: 8px 16px;
  font-size: 13px; font-weight: 600; white-space: nowrap; opacity: 0; pointer-events: none;
  transition: opacity .25s, transform .35s var(--ease);
}
.p-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Kinds + marquee ---------- */
.kinds { padding: 72px 0 80px; border-top: 1px solid var(--hair); }
.kinds h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); font-weight: 700; max-width: 22ch; }
.sub { margin-top: 14px; color: var(--muted); font-size: 1.1rem; max-width: 56ch; }
.marquee { margin-top: 40px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; gap: 10px; width: max-content; animation: slide 60s linear infinite; }
.marquee-track span { flex: none; padding: 10px 20px; border-radius: 999px; background: var(--card); border: 1px solid var(--hair); font-weight: 500; font-size: 1rem; }
.marquee-track span:nth-child(5n+1) { background: var(--wash-blue); color: var(--ink-blue); border-color: transparent; }
.marquee-track span:nth-child(5n+3) { background: var(--wash-amber); color: var(--ink-amber); border-color: transparent; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
@media (min-width: 960px) { .section { padding: 120px 0; } }
.h-sec { font-size: clamp(2rem, 4.2vw, 3.3rem); font-weight: 700; letter-spacing: -0.03em; max-width: 20ch; }

/* ---------- Bento ---------- */
.bento { display: grid; gap: 16px; margin-top: 48px; }
@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, 1fr); }
  .tile-ask { grid-column: span 4; grid-row: span 2; }
  .tile-copy { grid-column: span 2; grid-row: span 2; }
  .tile-remind { grid-column: span 2; }
  .tile-pack { grid-column: span 4; }
  .tile-src { grid-column: span 3; }
  .tile-join { grid-column: span 3; }
}
.tile {
  background: var(--card); border-radius: 24px; padding: 28px;
  display: flex; flex-direction: column; gap: 10px;
  box-shadow: var(--shadow);
}
.tile h3 { font-size: 1.45rem; font-weight: 700; max-width: 22ch; }
.tile p { color: var(--muted); max-width: 46ch; }
.tile-ic { font-size: 28px; color: var(--accent); margin-bottom: 6px; }
.t-wash-blue { background: var(--wash-blue); } .t-wash-blue .tile-ic { color: var(--ink-blue); }
.t-wash-amber { background: var(--wash-amber); } .t-wash-amber .tile-ic { color: var(--ink-amber); }
.t-wash-purple { background: var(--wash-purple); } .t-wash-purple .tile-ic { color: var(--ink-purple); }
.t-wash-pink { background: var(--wash-pink); } .t-wash-pink .tile-ic { color: var(--ink-pink); }
.t-wash-blue p, .t-wash-amber p, .t-wash-purple p, .t-wash-pink p { color: var(--ink); opacity: .78; }
@media (min-width: 900px) {
  .tile-ask, .tile-pack { display: grid; grid-template-columns: 1fr 1.15fr; gap: 28px; align-items: start; }
  .tile-pack { grid-template-columns: 1.15fr 1fr; }
  .tile-pack .tile-head { order: 2; }
}
.tile-head { display: flex; flex-direction: column; gap: 10px; }

/* Ask demo */
.ask { background: var(--ground); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 14px; min-height: 300px; }
.ask-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1.5px solid var(--hair); background: var(--card); border-radius: 999px; padding: 8px 14px; font-size: .88rem; font-weight: 500; text-align: left; transition: border-color .2s, background .2s; }
.chip:hover { border-color: var(--outline); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-wash); color: var(--ink); }
.ask-out { display: flex; flex-direction: column; gap: 10px; }
.tile .ask-q { align-self: flex-end; background: var(--accent); color: var(--on-accent); padding: 10px 14px; border-radius: 18px 18px 4px 18px; max-width: 85%; font-weight: 500; }
.tile .ask-a { color: var(--ink); background: var(--card); padding: 12px 14px; border-radius: 18px 18px 18px 4px; max-width: 92%; min-height: 3.2em; }
.ask-a .mono { font-weight: 600; }
.ask-a.typing::after { content: ""; display: inline-block; width: 8px; height: 1em; margin-left: 2px; vertical-align: -2px; background: var(--accent); animation: blink 1s steps(2) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ask-cite { display: flex; align-items: center; gap: 10px; background: var(--card); border: 1px solid var(--hair); border-radius: 14px; padding: 10px 12px; max-width: 92%; opacity: 0; transform: translateY(6px); transition: opacity .35s, transform .45s var(--ease); }
.ask-cite.show { opacity: 1; transform: none; }
.ask-cite .doc { width: 34px; height: 42px; border-radius: 6px; display: grid; place-items: center; font-size: 18px; flex: none; }
.ask-cite b { display: block; font-size: .9rem; }
.ask-cite small { color: var(--muted); font-size: .8rem; }

/* Copy list */
.copy-list { list-style: none; padding: 0; margin: auto 0 0; display: flex; flex-direction: column; gap: 8px; padding-top: 12px; }
.copy-row {
  width: 100%; display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; gap: 0 10px; align-items: center; text-align: left;
  border: 0; border-radius: 14px; background: var(--card); padding: 12px 14px; transition: transform .2s var(--ease), box-shadow .2s;
}
.copy-row:hover { box-shadow: var(--shadow); }
.copy-row:active { transform: scale(.98); }
.copy-row span:first-child { font-size: .78rem; color: var(--muted); }
.copy-row .mono { font-weight: 600; font-size: 1rem; }
.copy-row i { grid-column: 2; grid-row: 1 / span 2; color: var(--accent); font-size: 1.25rem; }

/* Reminder timeline */
.timeline { list-style: none; margin: 10px 0 0; padding: 0 0 0 16px; border-left: 2px dashed color-mix(in srgb, var(--ink-amber) 40%, transparent); display: flex; flex-direction: column; gap: 12px; }
.timeline li { position: relative; display: flex; flex-direction: column; font-size: .92rem; }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 999px; background: var(--wash-amber); border: 2px solid var(--ink-amber); }
.timeline li.now::before { background: var(--ink-amber); }
.timeline .mono { font-size: .78rem; color: var(--ink-amber); font-weight: 600; }

/* Packs */
.pack { background: var(--ground); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.pack-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.pack-tabs button { border: 1.5px solid var(--hair); background: var(--card); border-radius: 999px; padding: 6px 14px; font-size: .88rem; font-weight: 500; }
.pack-tabs button[aria-selected="true"] { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.pack-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.pack-list li { display: flex; align-items: center; gap: 10px; background: var(--card); border-radius: 14px; padding: 10px 12px; font-size: .95rem; animation: rise .4s var(--ease) both; }
.pack-list li i { font-size: 1.2rem; }
.pack-list li.have i { color: var(--ink-green); }
.pack-list li.miss { background: transparent; border: 1.5px dashed var(--outline); }
.pack-list li.miss i { color: var(--amber); }
.pack-list li small { margin-left: auto; color: var(--muted); font-size: .78rem; }
.pack-foot { font-size: .88rem; color: var(--muted); }

.src-list { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.src-list li { display: flex; align-items: center; gap: 10px; font-weight: 500; }
.src-list i { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 12px; background: var(--card); color: var(--ink-purple); font-size: 1.2rem; }

/* ---------- How it works ---------- */
.how-grid { display: grid; gap: 40px; }
@media (min-width: 960px) {
  .how-grid { grid-template-columns: 1fr 1.1fr; gap: 80px; align-items: start; }
  .how-side { position: sticky; top: 120px; }
}
.how-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.how-list li { display: grid; grid-template-columns: 64px 1fr; gap: 20px; padding: 32px 0; border-top: 1px solid var(--hair); }
.how-list li:first-child { border-top: 0; padding-top: 0; }
.how-ic { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; font-size: 30px; background: var(--accent-wash); color: var(--accent); }
.how-list h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 700; }
.how-list p { color: var(--muted); margin-top: 8px; font-size: 1.08rem; max-width: 44ch; }

/* ---------- Personas ---------- */
.seg-lg { margin-top: 32px; }
.seg-lg button { min-height: 48px; padding: 0 22px; font-size: 1rem; }
.per-panel { margin-top: 32px; animation: rise .5s var(--ease) both; }
.per-grid { display: grid; gap: 24px; }
@media (min-width: 960px) { .per-grid { grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: stretch; } }
.per-points { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 28px; }
.per-points li { display: grid; grid-template-columns: 48px 1fr; gap: 16px; }
.per-points i { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--card); color: var(--accent); box-shadow: var(--shadow); }
.per-points h3 { font-size: 1.3rem; font-weight: 700; }
.per-points p { color: var(--muted); margin-top: 4px; }
.per-quote { margin: 0; border-radius: 24px; padding: 32px; display: flex; flex-direction: column; justify-content: space-between; gap: 24px; }
.per-quote p { font-size: clamp(1.35rem, 2.2vw, 1.75rem); font-weight: 600; line-height: 1.3; letter-spacing: -0.015em; }
.per-quote footer { display: flex; flex-direction: column; font-size: .95rem; }
.per-quote footer span { opacity: .75; }
.note { margin-top: 28px; font-size: .85rem; color: var(--faint); max-width: 70ch; }

/* ---------- Security ---------- */
.sec-card { background: var(--card); border-radius: 32px; padding: 32px 20px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .sec-card { padding: 56px; } }
.sec-grid { display: grid; gap: 24px; margin-top: 40px; }
@media (min-width: 960px) { .sec-grid { grid-template-columns: .9fr 1.4fr; gap: 48px; } }
.key-card { background: var(--accent); color: var(--on-accent); border-radius: 24px; padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.key-card p { opacity: .88; }
.key-ic { font-size: 32px; }
.key-card h3 { font-size: 1.45rem; font-weight: 700; }
.key-words { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 20px; }
.key-words span { background: color-mix(in srgb, var(--on-accent) 16%, transparent); border: 1px solid color-mix(in srgb, var(--on-accent) 30%, transparent); padding: 6px 12px; border-radius: 999px; font-size: .95rem; font-weight: 500; }
.sec-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px 32px; }
@media (min-width: 640px) { .sec-list { grid-template-columns: 1fr 1fr; } }
.sec-list li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; }
.sec-list i { font-size: 26px; color: var(--accent); }
.sec-list h3 { font-size: 1.12rem; font-weight: 700; }
.sec-list p { color: var(--muted); font-size: .95rem; margin-top: 2px; }
.text-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 40px; color: var(--accent); font-weight: 600; text-decoration: none; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; } }
.faq details { border-bottom: 1px solid var(--hair); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; font-weight: 600; font-size: 1.12rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 32px; height: 32px; border-radius: 999px; display: grid; place-items: center; background: var(--card); font-size: 1.2rem; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 48px 24px 0; color: var(--muted); max-width: 64ch; }
.faq details p a { color: var(--accent); }

/* ---------- Final CTA ---------- */
.cta-card {
  background: var(--accent); color: var(--on-accent); border-radius: 32px; padding: 40px 24px;
  display: grid; gap: 28px; align-items: center;
}
@media (min-width: 900px) { .cta-card { grid-template-columns: 1.5fr auto; padding: 64px; } }
.cta-card h2 { font-size: clamp(2rem, 4vw, 3.1rem); font-weight: 700; letter-spacing: -0.03em; max-width: 18ch; }
.cta-card p { margin-top: 14px; opacity: .88; font-size: 1.1rem; max-width: 46ch; }
.cta-side { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.cta-meta { font-size: .88rem; opacity: .85; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--hair); padding: 56px 0 32px; }
.foot-grid { display: grid; gap: 32px; }
@media (min-width: 768px) { .foot-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; } }
.foot-brand p { color: var(--muted); margin-top: 12px; max-width: 34ch; }
.foot-small { font-size: .82rem; }
.foot-col { display: flex; flex-direction: column; gap: 10px; }
.foot-col h3 { font-size: .95rem; font-weight: 700; margin-bottom: 4px; }
.foot-col a { color: var(--muted); text-decoration: none; font-size: .95rem; }
.foot-col a:hover { color: var(--ink); }
.foot-bottom { margin-top: 48px; font-size: .85rem; color: var(--faint); }

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.in { opacity: 1; transform: none; }

/* Hindi reads better a touch looser. */
html[lang="hi"] body { line-height: 1.65; }
html[lang="hi"] h1, html[lang="hi"] h2, html[lang="hi"] h3 { line-height: 1.25; letter-spacing: 0; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; }
  .marquee-track span:nth-child(n+25) { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}
