/* 313bits — site styles. Plain CSS, no build step. */

:root {
  --bg: #f6f7f5;
  --bg-alt: #eef1ee;
  --surface: #ffffff;
  --surface-2: #f8faf9;
  --ink: #0f172a;
  --text: #334155;
  --muted: #5b6678;
  --border: #e2e7e4;
  --border-strong: #cfd7d3;
  --accent: #0f766e;
  --accent-hover: #0c625b;
  --accent-soft: #e3f2ef;
  --accent-ink: #0b5f58;
  --gold: #d4a017;
  --gold-soft: #fbf1d3;
  --gold-ink: #8a6508;
  --on-accent: #ffffff;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -6px rgba(15, 23, 42, .10);
  --shadow-lg: 0 2px 4px rgba(15, 23, 42, .04), 0 24px 56px -12px rgba(15, 23, 42, .18);
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --container: 1180px;
  --header-h: 68px;
  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1120;
    --bg-alt: #0e1628;
    --surface: #121b2e;
    --surface-2: #162036;
    --ink: #f1f5f9;
    --text: #cbd5e1;
    --muted: #94a3b8;
    --border: #223049;
    --border-strong: #2e3d59;
    --accent: #2dd4bf;
    --accent-hover: #5eead4;
    --accent-soft: rgba(45, 212, 191, .12);
    --accent-ink: #5eead4;
    --gold: #e9b93a;
    --gold-soft: rgba(233, 185, 58, .14);
    --gold-ink: #f3cd66;
    --on-accent: #042f2c;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, .3), 0 28px 60px -14px rgba(0, 0, 0, .65);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.025em; font-weight: 750; }
p { margin: 0 0 1em; }
a { color: var(--accent-ink); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--accent); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold-soft); color: var(--ink); }

.i { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; display: inline-block; }
.i-sm { width: 16px; height: 16px; }
.i-lg { width: 24px; height: 24px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .container { padding: 0 18px; } }

.skip-link {
  position: absolute; left: 12px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--bg); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Buttons & badges ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 46px; padding: 0 20px; border-radius: 12px;
  font: 600 15px/1 var(--font); letter-spacing: -.005em;
  text-decoration: none; border: 1px solid transparent; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 2px rgba(15, 118, 110, .25), inset 0 1px 0 rgba(255, 255, 255, .12); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--border-strong); box-shadow: var(--shadow-sm); }
.btn-secondary:hover { border-color: var(--accent); color: var(--accent-ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--accent-soft); color: var(--accent-ink); }
.btn-light { background: #fff; color: #0b3f3b; }
.btn-light:hover { background: #f0fdfa; color: #0b3f3b; }
.btn-outline-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .35); }
.btn-outline-light:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .6); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 10px; }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 650; letter-spacing: .01em; line-height: 1.4; white-space: nowrap;
}
.badge-live { background: var(--accent-soft); color: var(--accent-ink); }
.badge-live::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; box-shadow: 0 0 0 3px color-mix(in srgb, currentColor 22%, transparent); }
.badge-soon { background: var(--gold-soft); color: var(--gold-ink); }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--gold); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--border); }
.header-inner { display: flex; align-items: center; gap: 24px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); margin-right: auto; border-radius: 10px; }
.brand img { width: 34px; height: 34px; }
.wordmark { font-size: 21px; font-weight: 800; letter-spacing: -.035em; color: var(--ink); line-height: 1; }
.wordmark span { color: var(--accent-ink); }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a:not(.btn) {
  color: var(--text); text-decoration: none; font-size: 15px; font-weight: 550;
  padding: 8px 12px; border-radius: 9px;
}
.site-nav a:not(.btn):hover { color: var(--ink); background: var(--accent-soft); }
.site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .btn { margin-left: 10px; }
.menu-toggle {
  display: none; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 11px;
  background: var(--surface); border: 1px solid var(--border); color: var(--ink); cursor: pointer;
}
.menu-toggle .i-close { display: none; }
.menu-toggle[aria-expanded="true"] .i-open { display: none; }
.menu-toggle[aria-expanded="true"] .i-close { display: inline-block; }

@media (max-width: 820px) {
  .menu-toggle { display: inline-flex; }
  .site-nav {
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    padding: 12px 18px 20px;
    background: var(--bg); border-bottom: 1px solid var(--border); box-shadow: var(--shadow);
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a:not(.btn) { padding: 12px 12px; font-size: 16px; }
  .site-nav .btn { margin: 10px 0 0; min-height: 48px; }
  .js .site-header { background: var(--bg); }
}

/* ---------- Sections ---------- */
.section { padding: 104px 0; }
.section-sm { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-title { font-size: clamp(30px, 4vw, 44px); font-weight: 800; letter-spacing: -.035em; margin-bottom: 14px; }
.section-lead { font-size: 18px; color: var(--muted); margin: 0; }
@media (max-width: 600px) { .section { padding: 72px 0; } .section-sm { padding: 56px 0; } .section-head { margin-bottom: 36px; } .section-lead { font-size: 17px; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 64px 0 80px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(600px 380px at 82% 30%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%),
    radial-gradient(420px 300px at 62% 88%, color-mix(in srgb, var(--gold) 12%, transparent), transparent 70%);
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image: radial-gradient(color-mix(in srgb, var(--ink) 13%, transparent) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 70% at 70% 40%, #000 20%, transparent 75%);
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1.08fr; gap: 56px; align-items: center; }
.hero-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px 6px 6px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  font-size: 14px; font-weight: 550; color: var(--text); text-decoration: none; margin-bottom: 26px;
}
.hero-pill:hover { border-color: var(--accent); color: var(--ink); }
.hero-pill .badge { padding: 3px 9px; }
.hero h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; letter-spacing: -.045em; line-height: 1.02; margin-bottom: 22px; }
.hero h1 .hl { color: var(--accent-ink); position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 4px;
  background: var(--gold); opacity: .55; z-index: -1;
}
.hero-lead { font-size: 19px; line-height: 1.6; color: var(--muted); max-width: 540px; margin-bottom: 32px; }
.hero-lead strong { color: var(--ink); font-weight: 600; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 36px; }
.hero-points { display: flex; flex-wrap: wrap; gap: 10px 22px; padding: 0; margin: 0; list-style: none; font-size: 14.5px; font-weight: 550; color: var(--text); }
.hero-points li { display: inline-flex; align-items: center; gap: 8px; }
.hero-points .i { width: 18px; height: 18px; color: var(--accent); padding: 2px; border-radius: 50%; background: var(--accent-soft); stroke-width: 3; }
.hero-art { position: relative; }
.hero-art svg { width: 100%; height: auto; overflow: visible; }

@media (max-width: 960px) {
  .hero { padding: 48px 0 72px; }
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-art { max-width: 560px; margin: 0 auto; width: 100%; }
}
@media (max-width: 600px) {
  .hero h1 { font-size: 40px; }
  .hero h1 .hl { white-space: normal; }
  .hero-lead { font-size: 17px; }
  .hero-actions .btn { flex: 1 1 auto; }
}

/* SVG art colour classes (shared by hero + mockups) */
.a-surface { fill: var(--surface); }
.a-surface2 { fill: var(--surface-2); }
.a-bgalt { fill: var(--bg-alt); }
.a-border { stroke: var(--border); }
.a-line { stroke: var(--border-strong); }
.a-ink { fill: var(--ink); }
.a-muted { fill: var(--muted); }
.a-accent { fill: var(--accent); }
.a-accent-soft { fill: var(--accent-soft); }
.a-accent-stroke { stroke: var(--accent); }
.a-gold { fill: var(--gold); }
.a-gold-soft { fill: var(--gold-soft); }
.a-gold-ink { fill: var(--gold-ink); }
.a-accent-ink { fill: var(--accent-ink); }
.a-shadow { filter: drop-shadow(0 18px 30px rgba(15, 23, 42, .14)) drop-shadow(0 2px 4px rgba(15, 23, 42, .06)); }
@media (prefers-color-scheme: dark) { .a-shadow { filter: none; } }
.a-icon { fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.a-text { font-family: var(--font); }

/* ---------- Apps ---------- */
.feature-card {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: var(--shadow); overflow: hidden; margin-bottom: 24px;
}
.feature-body { padding: 44px 44px 40px; }
.app-head { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.app-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 14px; flex: none;
  background: var(--accent-soft); color: var(--accent-ink);
}
.app-icon .i { width: 24px; height: 24px; }
.app-icon.shajra { background: linear-gradient(145deg, #14998c, #0b5f58); color: #fff; box-shadow: 0 6px 14px -4px rgba(15, 118, 110, .5); }
.app-icon.gold { background: var(--gold-soft); color: var(--gold-ink); }
.feature-body h3 { font-size: 32px; font-weight: 800; letter-spacing: -.035em; margin: 0; }
.app-tagline { font-size: 18px; color: var(--ink); font-weight: 550; margin-bottom: 10px; letter-spacing: -.01em; }
.app-desc { color: var(--muted); margin-bottom: 24px; }
.feature-list { list-style: none; padding: 0; margin: 0 0 30px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 22px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--text); }
.feature-list .i { width: 18px; height: 18px; margin-top: 2px; color: var(--accent); }
.feature-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.feature-meta { margin-top: 22px; padding-top: 20px; border-top: 1px dashed var(--border-strong); font-size: 14px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.feature-meta strong { color: var(--ink); font-weight: 600; }
.feature-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
  padding: 40px 32px; border-left: 1px solid var(--border);
  background:
    radial-gradient(circle at 50% 30%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 65%),
    var(--surface-2);
}
.feature-visual::before {
  content: ""; position: absolute; inset: 0; opacity: .6; pointer-events: none;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse at center, #000 30%, transparent 75%);
}
.feature-visual svg { position: relative; width: 100%; max-width: 470px; height: auto; }

@media (max-width: 960px) {
  .feature-card { grid-template-columns: 1fr; }
  .feature-visual { border-left: 0; border-top: 1px solid var(--border); order: -1; padding: 28px 20px; }
}
@media (max-width: 600px) {
  .feature-body { padding: 28px 22px 26px; }
  .feature-body h3 { font-size: 28px; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-actions .btn { flex: 1 1 auto; }
}

.app-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.app-card {
  position: relative; display: flex; flex-direction: column;
  padding: 26px 24px 22px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow-sm);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.app-card:hover { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.app-card .top { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; margin-bottom: 18px; }
.app-card h3 { font-size: 19px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.02em; }
.app-card p { font-size: 15px; color: var(--muted); margin-bottom: 20px; flex: 1; }
.app-address {
  display: flex; align-items: center; gap: 8px; margin-top: auto;
  padding-top: 14px; border-top: 1px solid var(--border);
  font: 500 13px/1.4 var(--mono); color: var(--muted);
  overflow-wrap: anywhere;
}
.app-address .i { width: 15px; height: 15px; color: var(--gold-ink); }
@media (max-width: 1080px) { .app-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .app-grid { grid-template-columns: 1fr; gap: 14px; } }

/* ---------- Principles ---------- */
.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.principle {
  padding: 28px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border);
}
.principle .app-icon { width: 44px; height: 44px; border-radius: 12px; margin-bottom: 18px; }
.principle .app-icon .i { width: 22px; height: 22px; }
.principle h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.015em; }
.principle p { font-size: 15px; color: var(--muted); margin: 0; }
.principle.cta-tile {
  background: linear-gradient(150deg, #0f766e, #0b4f4a); border-color: transparent; color: #d7f3ee;
  display: flex; flex-direction: column;
}
.principle.cta-tile h3 { color: #fff; }
.principle.cta-tile p { color: #c9ebe5; margin-bottom: 18px; }
.principle.cta-tile .app-icon { background: rgba(255, 255, 255, .14); color: #fff; }
.principle.cta-tile a { margin-top: auto; color: #fff; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; }
.principle.cta-tile a:hover { text-decoration: underline; }
@media (max-width: 960px) { .principles { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .principles { grid-template-columns: 1fr; gap: 14px; } .principle { padding: 24px 22px; } }

/* ---------- Relation guide teaser ---------- */
.guide-panel {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 28px;
  background: #0f172a; color: #cbd5e1;
  box-shadow: var(--shadow-lg);
}
@media (prefers-color-scheme: dark) { .guide-panel { background: #121b2e; border: 1px solid var(--border); } }
.guide-panel::before {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(45, 212, 191, .22), transparent 65%); pointer-events: none;
}
.guide-panel::after {
  content: ""; position: absolute; width: 380px; height: 380px; left: -140px; bottom: -220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(233, 185, 58, .16), transparent 65%); pointer-events: none;
}
.guide-panel > * { position: relative; z-index: 1; }
.guide-panel .eyebrow { color: #5eead4; }
.guide-panel h2 { color: #fff; font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -.035em; }
.guide-panel p { color: #aab6c8; font-size: 17px; }
.guide-panel .btn { margin-top: 10px; }
.word-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.word {
  padding: 20px 20px 18px; border-radius: 16px;
  background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .09);
}
.word .term { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; }
.word .term b { color: #fff; font-size: 22px; font-weight: 750; letter-spacing: -.02em; }
.word .term span { font-size: 22px; color: #f3cd66; font-family: "Noto Nastaliq Urdu", "Jameel Noori Nastaleeq", "Urdu Typesetting", serif; line-height: 1.2; }
.word .meaning { font-size: 14.5px; color: #aab6c8; margin: 0; line-height: 1.5; }
@media (max-width: 960px) { .guide-panel { grid-template-columns: 1fr; padding: 44px 32px; gap: 32px; } }
@media (max-width: 600px) { .guide-panel { padding: 34px 20px; border-radius: 22px; } .word-grid { gap: 10px; } .word { padding: 16px 14px; } .word .term b { font-size: 19px; } .word .term span { font-size: 18px; } }
@media (max-width: 360px) { .word-grid { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq-wrap .section-head { margin-bottom: 0; position: sticky; top: calc(var(--header-h) + 32px); }
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 4px; font-size: 17.5px; font-weight: 650; color: var(--ink); letter-spacing: -.01em;
  border-radius: 8px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .chev {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%; background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: transform .2s, background-color .2s, color .2s;
}
.faq summary:hover .chev { color: var(--accent-ink); border-color: var(--accent); }
.faq details[open] summary .chev { transform: rotate(180deg); background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.faq .answer { padding: 0 52px 24px 4px; color: var(--muted); }
.faq .answer p:last-child { margin-bottom: 0; }
@media (max-width: 960px) { .faq-wrap { grid-template-columns: 1fr; gap: 32px; } .faq-wrap .section-head { position: static; } }
@media (max-width: 600px) { .faq summary { font-size: 16.5px; padding: 18px 2px; } .faq .answer { padding-right: 8px; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; text-align: center;
  padding: 72px 32px; border-radius: 28px;
  background: linear-gradient(135deg, #0f766e 0%, #0b5f58 55%, #0a4743 100%);
  color: #d7f3ee; box-shadow: var(--shadow-lg);
}
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255, 255, 255, .35) 1px, transparent 1px); background-size: 20px 20px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
  mask-image: radial-gradient(ellipse at center, #000 10%, transparent 70%);
}
.cta > * { position: relative; }
.cta-mark { width: 56px; height: 56px; margin: 0 auto 22px; border-radius: 15px; box-shadow: 0 10px 24px -6px rgba(0, 0, 0, .35); }
.cta h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -.035em; max-width: 720px; margin: 0 auto 14px; }
.cta p { font-size: 18px; color: #c9ebe5; max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 600px) { .cta { padding: 52px 20px; border-radius: 22px; } .cta p { font-size: 16.5px; } .cta-actions .btn { flex: 1 1 100%; } }

/* ---------- Footer ---------- */
.site-footer { margin-top: 104px; padding: 64px 0 36px; border-top: 1px solid var(--border); background: var(--bg-alt); font-size: 15px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.footer-brand p { color: var(--muted); max-width: 320px; margin-top: 16px; }
.footer-col h2 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink); font-weight: 700; margin-bottom: 14px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { color: var(--text); text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footer-col a:hover { color: var(--accent-ink); text-decoration: underline; }
.footer-col .soon { color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.footer-col .soon small { font-size: 11px; font-weight: 650; color: var(--gold-ink); background: var(--gold-soft); padding: 1px 7px; border-radius: 99px; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 52px; padding-top: 24px; border-top: 1px solid var(--border); color: var(--muted); font-size: 14px; }
.footer-bottom a { color: var(--muted); }
.footer-bottom a:hover { color: var(--accent-ink); }
.page-404 .site-footer, .page-doc .site-footer { margin-top: 0; }
@media (max-width: 960px) { .footer-grid { grid-template-columns: 1fr 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 600px) { .site-footer { margin-top: 72px; padding-top: 48px; } .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px 20px; } }

/* ---------- Inner pages ---------- */
.page-hero { position: relative; padding: 72px 0 56px; overflow: hidden; }
.page-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(560px 300px at 85% 0%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.page-hero .container { position: relative; }
.page-hero h1 { font-size: clamp(36px, 5.2vw, 56px); font-weight: 800; letter-spacing: -.04em; max-width: 820px; margin-bottom: 18px; }
.page-hero .lead { font-size: 19px; color: var(--muted); max-width: 680px; margin: 0; }
.page-hero .meta { margin-top: 18px; font-size: 14px; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
@media (max-width: 600px) { .page-hero { padding: 48px 0 36px; } .page-hero .lead { font-size: 17px; } }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 960px) { .split { grid-template-columns: 1fr; gap: 36px; } }
.prose-lg p { font-size: 17.5px; line-height: 1.75; }
.prose-lg h2 { font-size: 28px; font-weight: 800; letter-spacing: -.03em; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 32px; }
.mini-apps { list-style: none; margin: 0; padding: 0; }
.mini-apps li { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--border); }
.mini-apps li:first-child { padding-top: 0; }
.mini-apps li:last-child { border-bottom: 0; padding-bottom: 0; }
.mini-apps .app-icon { width: 42px; height: 42px; border-radius: 12px; }
.mini-apps .app-icon .i { width: 20px; height: 20px; }
.mini-apps .info { flex: 1; min-width: 0; }
.mini-apps .info b { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; color: var(--ink); font-weight: 650; }
.mini-apps .info b .badge { font-size: 11px; padding: 2px 8px; }
.mini-apps .info > span { font: 500 13px/1.4 var(--mono); color: var(--muted); overflow-wrap: anywhere; }
.mini-apps .info a { font: 500 13px/1.4 var(--mono); }

.contact-card {
  display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
  padding: 44px; border-radius: var(--radius-lg);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
}
.contact-card h2 { font-size: clamp(28px, 3.6vw, 38px); font-weight: 800; letter-spacing: -.035em; }
.contact-card p { color: var(--muted); margin-bottom: 0; }
.contact-email { display: inline-flex; align-items: center; gap: 10px; margin-top: 18px; font-size: 19px; font-weight: 650; color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.contact-email .i { color: var(--accent); }
.contact-email:hover { color: var(--accent-ink); text-decoration: underline; }
.contact-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.contact-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text); font-size: 15px; }
.contact-list .i { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
@media (max-width: 760px) { .contact-card { grid-template-columns: 1fr; padding: 30px 22px; } .contact-card .btn { width: 100%; } .contact-email { font-size: 16px; } }

/* Legal documents */
.doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: 104px; }
.toc { position: sticky; top: calc(var(--header-h) + 28px); font-size: 14px; }
.toc h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 12px; font-weight: 700; }
.toc ol { list-style: none; margin: 0; padding: 0; border-left: 1px solid var(--border); }
.toc a { display: block; padding: 6px 0 6px 16px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.toc a:hover { color: var(--ink); border-left-color: var(--accent); }
.prose { max-width: 720px; font-size: 16.5px; line-height: 1.75; }
.prose h2 { font-size: 24px; font-weight: 750; letter-spacing: -.025em; margin: 48px 0 14px; padding-top: 8px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 18px; font-weight: 700; margin: 28px 0 10px; }
.prose ul { padding-left: 1.25em; margin: 0 0 1.1em; }
.prose li { margin-bottom: .5em; }
.prose li::marker { color: var(--accent); }
.prose strong { color: var(--ink); font-weight: 650; }
.prose a { overflow-wrap: anywhere; }
.callout {
  display: flex; gap: 14px; padding: 18px 20px; margin: 0 0 1.4em; border-radius: 14px;
  background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); color: var(--text); font-size: 15.5px; line-height: 1.6;
}
.callout .i { color: var(--accent-ink); margin-top: 3px; }
.callout p { margin: 0; }
@media (max-width: 960px) { .doc-layout { grid-template-columns: 1fr; gap: 28px; padding-bottom: 72px; } .toc { position: static; background: var(--surface); border: 1px solid var(--border); border-radius: 16px; padding: 20px 20px 14px; } }
@media (max-width: 600px) { .prose { font-size: 16px; } .prose h2 { font-size: 21px; margin-top: 40px; } }

/* 404 */
.nf { min-height: calc(100vh - var(--header-h) - 1px); display: flex; align-items: center; padding: 72px 0 96px; position: relative; overflow: hidden; }
.nf::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(520px 360px at 50% 30%, color-mix(in srgb, var(--accent) 12%, transparent), transparent 70%);
}
.nf .container { position: relative; text-align: center; }
.nf-code { display: flex; justify-content: center; gap: 14px; margin-bottom: 30px; }
.nf-code { align-items: center; }
.nf-code span { font-size: 132px; font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--ink); }
.nf-code img { width: 104px; height: 104px; border-radius: 26px; box-shadow: var(--shadow-lg); }
.nf h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 800; letter-spacing: -.035em; }
.nf p { color: var(--muted); font-size: 18px; max-width: 520px; margin: 0 auto 30px; }
.nf .actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
@media (max-width: 600px) { .nf-code span { font-size: 96px; } .nf-code img { width: 76px; height: 76px; border-radius: 19px; } .nf .actions .btn { flex: 1 1 100%; } }
.st-accent { stroke: var(--accent-ink); }
.st-gold { stroke: var(--gold-ink); }
.st-white { stroke: #fff; }
.feature-visual svg { filter: drop-shadow(0 18px 28px rgba(15, 23, 42, .12)) drop-shadow(0 2px 4px rgba(15, 23, 42, .05)); }
@media (prefers-color-scheme: dark) { .feature-visual svg { filter: none; } }

/* live app address (a link instead of a planned address) */
a.app-address { color: var(--accent-ink); text-decoration: none; font-weight: 600; }
a.app-address:hover { text-decoration: underline; }
a.app-address .i { color: var(--accent); }
