/* ==========================================================================
   GyanGram, Marketing site design system
   Mirrors the app theme (lib/theme.dart): indigo primary, amber accent,
   cyan info, navy ink ramp, Inter / Inter Tight typography.
   ========================================================================== */

:root {
  /* Brand */
  --primary: #F5A524;
  --primary-dark: #D98E1A;
  --primary-container: #2A2113;
  --accent: #F5A524;
  --accent-light: #FCD34D;
  --cyan: #3BC6F0;
  --success: #34D39A;
  --pink: #EC4899;
  --violet: #B8A4E8;

  /* Ink ramp (dark surfaces) */
  --ink-abyss: #0A0E14;
  --ink-canvas: #11161F;
  --ink-surface: #161C27;
  --ink-raised: #1E2532;
  --ink-elevated: #262E3D;
  --ink-peak: #313A4B;

  /* Borders */
  --hairline: #232A38;
  --border: #2D3544;
  --border-strong: #3D4859;

  /* Text */
  --text: #F3F5F9;
  --text-body: #CED4E0;
  --text-muted: #8A93A6;
  --text-faint: #5A6272;

  /* Effects */
  --grad-primary: linear-gradient(135deg, #F5C24A 0%, #E0A92E 50%, #C8881F 100%);
  --grad-warm: linear-gradient(135deg, #F5A524 0%, #EC4899 100%);
  --grad-hero: radial-gradient(60% 60% at 50% 0%, rgba(245,165,36,0.18) 0%, rgba(245,165,36,0) 70%);
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.25);
  --shadow-md: 0 10px 30px rgba(0,0,0,0.35);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.45);
  --shadow-glow: 0 0 60px rgba(245,165,36,0.25);

  /* Shape */
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 20px;
  --r-xl: 28px;
  --r-full: 999px;

  /* Layout */
  --maxw: 1180px;
  --nav-h: 68px;

  --font-display: "Inter Tight", system-ui, -apple-system, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, sans-serif;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--ink-canvas);
  color: var(--text-body);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
section { position: relative; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--text); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2.4rem, 6vw, 4rem); }
h2 { font-size: clamp(1.9rem, 4vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2.5vw, 1.6rem); }
p { color: var(--text-body); }
.eyebrow {
  font-family: var(--font-body);
  font-weight: 700; font-size: 0.78rem; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--primary);
  display: inline-flex; align-items: center; gap: 8px;
}
.gradient-text { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.warm-text { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.08rem; color: var(--text-muted); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-body); font-weight: 700; font-size: 0.98rem;
  padding: 14px 26px; border-radius: 14px; border: 1px solid transparent;
  cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad-primary); color: #11161F; box-shadow: 0 8px 24px rgba(216,142,26,0.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(216,142,26,0.45); }
.btn-ghost { background: rgba(255,255,255,0.04); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); background: rgba(245,165,36,0.08); }
.btn-lg { padding: 17px 32px; font-size: 1.05rem; }
.btn svg { width: 20px; height: 20px; }

/* (Store badges styles moved and improved below the cta-band section for the official black badge look) */

/* ---------- Navbar ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100; height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(10,14,20,0.65); backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--hairline); background: rgba(10,14,20,0.88); }
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 1.22rem; color: var(--text); }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a { padding: 8px 14px; border-radius: 10px; font-size: 0.94rem; font-weight: 500; color: var(--text-muted); transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a.active { color: var(--text); background: rgba(255,255,255,0.05); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle { display: none; background: none; border: 0; color: var(--text); cursor: pointer; padding: 8px; }
.nav-toggle svg { width: 26px; height: 26px; }

@media (max-width: 880px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 4px;
    position: absolute; top: var(--nav-h); left: 0; right: 0;
    background: var(--ink-surface); border-bottom: 1px solid var(--border);
    padding: 14px 22px 22px;
  }
  .nav-links.open a { padding: 12px 14px; font-size: 1rem; }
}

/* ---------- Hero ---------- */
.hero { padding-top: calc(var(--nav-h) + 56px); padding-bottom: 40px; background: var(--grad-hero); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 9px; padding: 7px 15px;
  background: rgba(245,165,36,0.1); border: 1px solid rgba(245,165,36,0.3);
  border-radius: var(--r-full); font-size: 0.82rem; font-weight: 600; color: var(--text);
  margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 4px rgba(52,211,154,0.18); }
.hero h1 { margin-bottom: 20px; }
.hero p.lead { font-size: 1.18rem; color: var(--text-body); max-width: 540px; margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-stats { display: flex; gap: 36px; margin-top: 40px; flex-wrap: wrap; }
.hero-stats .stat .num { font-family: var(--font-display); font-weight: 700; font-size: 1.8rem; color: var(--text); }
.hero-stats .stat .lbl { font-size: 0.85rem; color: var(--text-muted); }

/* Phone mockup */
.phone-wrap { display: flex; justify-content: center; position: relative; }
.phone-wrap::before {
  content: ""; position: absolute; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(245,165,36,0.16), transparent 70%);
  filter: blur(20px); z-index: 0;
}
.phone {
  position: relative; z-index: 1; width: 280px; border-radius: 38px; padding: 11px;
  background: linear-gradient(160deg, #2A3240, #11161F); border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg), var(--shadow-glow);
}
.phone img { border-radius: 28px; width: 100%; }
.phone-float {
  position: absolute; z-index: 2; background: var(--ink-raised); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 16px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 11px; font-size: 0.86rem; color: var(--text);
}
.phone-float .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; font-size: 1.1rem; }
.phone-float.f1 { top: 18%; left: -6%; animation: floaty 5s ease-in-out infinite; }
.phone-float.f2 { bottom: 16%; right: -8%; animation: floaty 6s ease-in-out infinite 1s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero p.lead { margin-inline: auto; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-badge { margin-inline: auto; }
}

/* ---------- Trust bar ---------- */
.trust { border-block: 1px solid var(--hairline); padding: 26px 0; }
.trust .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px 38px; }
.trust span { color: var(--text-muted); font-size: 0.92rem; display: inline-flex; align-items: center; gap: 9px; }
.trust svg { width: 18px; height: 18px; color: var(--success); }

/* ---------- Cards / grids ---------- */
.card {
  background: var(--ink-raised); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 28px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  margin-bottom: 18px; font-size: 1.5rem;
}
.card h3 { font-size: 1.2rem; margin-bottom: 9px; }
.card p { font-size: 0.96rem; color: var(--text-muted); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
@media (max-width: 860px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

/* icon tints */
.t-indigo { background: rgba(245,165,36,0.14); color: var(--primary); }
.t-amber  { background: rgba(245,165,36,0.14); color: var(--accent); }
.t-cyan   { background: rgba(59,198,240,0.14); color: var(--cyan); }
.t-green  { background: rgba(52,211,154,0.14); color: var(--success); }
.t-pink   { background: rgba(236,72,153,0.14); color: var(--pink); }
.t-violet { background: rgba(184,164,232,0.16); color: var(--violet); }

/* ---------- Feature wheel ---------- */
.wheel-wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.wheel { position: relative; aspect-ratio: 1; max-width: 460px; margin-inline: auto; width: 100%; }
.wheel-core {
  position: absolute; inset: 50% auto auto 50%; transform: translate(-50%,-50%);
  width: 130px; height: 130px; border-radius: 50%; display: grid; place-items: center; text-align: center;
  background: var(--grad-primary); box-shadow: var(--shadow-glow); z-index: 3;
}
.wheel-core img { width: 56px; height: 56px; border-radius: 14px; }
.wheel-core span { position: absolute; bottom: 20px; font-size: 0.7rem; font-weight: 700; color: rgba(255,255,255,0.9); letter-spacing: 0.05em; }
.wheel-ring { position: absolute; inset: 0; border: 1px dashed var(--border); border-radius: 50%; animation: spin 60s linear infinite; }
.wheel-ring.inner { inset: 22%; border-color: var(--hairline); animation-direction: reverse; animation-duration: 45s; }
@keyframes spin { to { transform: rotate(360deg); } }
.wheel-node {
  position: absolute; width: 64px; height: 64px; border-radius: 18px;
  background: var(--ink-elevated); border: 1px solid var(--border); display: grid; place-items: center;
  font-size: 1.5rem; box-shadow: var(--shadow-sm); z-index: 2;
  transition: transform .2s, border-color .2s;
}
.wheel-node:hover { transform: scale(1.12); border-color: var(--primary); }
.wheel-list { display: flex; flex-direction: column; gap: 16px; }
.wheel-item { display: flex; gap: 16px; align-items: flex-start; padding: 14px; border-radius: var(--r-md); transition: background .15s; }
.wheel-item:hover { background: var(--ink-surface); }
.wheel-item .ic { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; flex-shrink: 0; }
.wheel-item h4 { font-family: var(--font-display); color: var(--text); font-size: 1.05rem; margin-bottom: 3px; }
.wheel-item p { font-size: 0.9rem; color: var(--text-muted); }
@media (max-width: 860px) { .wheel-wrap { grid-template-columns: 1fr; gap: 40px; } .wheel { max-width: 320px; } }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; }
.step { position: relative; padding: 30px 26px; background: var(--ink-raised); border: 1px solid var(--border); border-radius: var(--r-lg); }
.step::before {
  counter-increment: step; content: counter(step);
  font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: var(--grad-primary); color: #11161F; margin-bottom: 18px;
}
.step h3 { font-size: 1.15rem; margin-bottom: 8px; }
.step p { font-size: 0.95rem; color: var(--text-muted); }
@media (max-width: 760px) { .steps { grid-template-columns: 1fr; } }

/* ---------- Screenshots strip ---------- */
.shots { display: flex; gap: 22px; overflow-x: auto; padding: 10px 4px 28px; scroll-snap-type: x mandatory; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--border); border-radius: 99px; }
.shot { flex: 0 0 auto; width: 230px; scroll-snap-align: center; border-radius: 26px; padding: 9px; background: linear-gradient(160deg,#2A3240,#11161F); border: 1px solid var(--border); box-shadow: var(--shadow-md); }
.shot img { border-radius: 20px; }

/* ---------- Split feature rows ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.rev .split-media { order: 2; }
.split-media { display: flex; justify-content: center; }
.split ul.checks { margin-top: 22px; display: flex; flex-direction: column; gap: 13px; }
.split ul.checks li { display: flex; gap: 12px; align-items: flex-start; color: var(--text-body); }
.split ul.checks svg { width: 22px; height: 22px; color: var(--success); flex-shrink: 0; margin-top: 1px; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: 36px; } .split.rev .split-media { order: 0; } }

/* ---------- CTA band (yellow GyanGram banner) - premium responsive design ---------- */
.cta-band {
  background: var(--grad-primary);
  border-radius: var(--r-lg);
  padding: 48px 32px;
  text-align: center;
  position: relative;
  overflow: hidden;
  max-width: 720px;
  margin: 0 auto;
  width: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: var(--shadow-md);
}
.cta-band::after { content: ""; position: absolute; inset: 0; background: radial-gradient(60% 100% at 50% 0%, rgba(255,255,255,0.18), transparent 70%); }
.cta-band > * { position: relative; z-index: 1; }

.cta-band h2 {
  color: #11161F;
  font-size: 2rem;
  margin: 0 0 12px;
  line-height: 1.2;
  font-weight: 800;
}
.cta-band p {
  color: rgba(17,22,31,0.85);
  max-width: 520px;
  margin: 0 auto 24px;
  font-size: 1.05rem;
  line-height: 1.55;
}

/* Badges: landscape flex row centered, allowing wrap on extra narrow devices */
.cta-band .badges {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  width: 100%;
  margin: 0 auto;
}
.cta-band .badges > * {
  display: inline-flex;
  justify-content: center;
  align-items: center;
}
.cta-band .badges img {
  height: 100px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  display: block;
  border-radius: 6px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.cta-band .badges a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.cta-band .badges span { opacity: 0.55; }

/* Mobile styling */
@media (max-width: 640px) {
  .cta-band {
    padding: 32px 20px;
    max-width: 100%;
    border-radius: var(--r-md);
  }
  .cta-band h2 {
    font-size: 1.45rem;
    margin-bottom: 10px;
  }
  .cta-band p {
    font-size: 0.92rem;
    margin-bottom: 20px;
  }
  .cta-band .badges {
    gap: 10px;
  }
  .cta-band .badges img {
    height: 70px;
  }
}

/* Section padding for better breathing room */
.section:has(.cta-band) {
  padding-top: 24px !important;
  padding-bottom: 24px !important;
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin-inline: auto; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q { width: 100%; background: none; border: 0; cursor: pointer; text-align: left; padding: 22px 0; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; color: var(--text); }
.faq-q .chev { transition: transform .2s; flex-shrink: 0; color: var(--primary); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding-bottom: 22px; color: var(--text-muted); }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--hairline); padding: 64px 0 32px; background: var(--ink-abyss); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 40px; margin-bottom: 48px; }
.footer .brand { margin-bottom: 16px; }
.footer-about p { font-size: 0.94rem; color: var(--text-muted); max-width: 320px; margin-bottom: 18px; }
.footer h5 { font-family: var(--font-display); color: var(--text); font-size: 0.95rem; margin-bottom: 16px; letter-spacing: 0.02em; }
.footer-col a { display: block; color: var(--text-muted); font-size: 0.92rem; padding: 6px 0; transition: color .15s; }
.footer-col a:hover { color: var(--primary); }
.socials { display: flex; gap: 12px; }
.socials a { width: 40px; height: 40px; border-radius: 11px; background: var(--ink-surface); border: 1px solid var(--border); display: grid; place-items: center; color: var(--text-muted); transition: all .18s; }
.socials a:hover { color: var(--primary); border-color: var(--primary); transform: translateY(-2px); }
.socials svg { width: 19px; height: 19px; }
.footer-bottom { border-top: 1px solid var(--hairline); padding-top: 26px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; font-size: 0.86rem; color: var(--text-faint); }
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--primary); }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; } .footer-about { grid-column: 1 / -1; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: calc(var(--nav-h) + 64px) 0 48px; text-align: center; background: var(--grad-hero); }
.page-head .eyebrow { margin-bottom: 14px; }
.page-head p { max-width: 620px; margin: 16px auto 0; color: var(--text-muted); font-size: 1.08rem; }

/* ---------- Blog ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; }
@media (max-width: 880px){ .post-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px){ .post-grid { grid-template-columns: 1fr; } }
.post-card {
  display: flex; flex-direction: column; background: var(--ink-raised);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.post-card:hover { transform: translateY(-4px); border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--grad-primary); display: grid; place-items: center; font-size: 2.6rem; overflow: hidden; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-card .body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.post-tag { align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--primary); background: rgba(245,165,36,0.12); padding: 4px 10px; border-radius: 99px; margin-bottom: 12px; }
.post-card h3 { font-size: 1.15rem; margin-bottom: 9px; }
.post-card p { font-size: 0.92rem; color: var(--text-muted); flex: 1; }
.post-meta { margin-top: 16px; font-size: 0.82rem; color: var(--text-faint); display: flex; gap: 10px; align-items: center; }

/* ---------- Article (prose) ---------- */
.prose { max-width: 740px; margin-inline: auto; }
.prose > * { margin-bottom: 1.15rem; }
.prose h2 { font-size: 1.7rem; margin-top: 2.4rem; margin-bottom: 1rem; }
.prose h3 { font-size: 1.3rem; margin-top: 1.8rem; margin-bottom: 0.7rem; }
.prose p, .prose li { color: var(--text-body); font-size: 1.06rem; line-height: 1.78; }
.prose ul, .prose ol { padding-left: 1.4rem; display: flex; flex-direction: column; gap: 0.6rem; }
.prose ul li { list-style: disc; }
.prose ol li { list-style: decimal; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose blockquote { border-left: 3px solid var(--primary); padding: 6px 0 6px 20px; color: var(--text-muted); font-style: italic; }
.prose img { border-radius: var(--r-md); border: 1px solid var(--border); }
.prose code { background: var(--ink-surface); border: 1px solid var(--border); border-radius: 6px; padding: 2px 7px; font-size: 0.9em; color: var(--cyan); }
.article-hero { text-align: center; max-width: 760px; margin: 0 auto 40px; }
.article-hero h1 { font-size: clamp(2rem, 4.5vw, 3rem); margin: 16px 0; }
.article-hero .post-meta { justify-content: center; }

.article-cover { max-width: 820px; margin: 0 auto 32px; border-radius: 16px; overflow: hidden; border: 1px solid var(--border); background: var(--ink-surface); }
.article-cover img { width: 100%; height: auto; display: block; }

/* legal doc */
.legal { max-width: 820px; margin-inline: auto; }
.legal h2 { font-size: 1.5rem; margin: 2.2rem 0 0.9rem; }
.legal h3 { font-size: 1.15rem; margin: 1.4rem 0 0.5rem; }
.legal p, .legal li { color: var(--text-body); margin-bottom: 0.9rem; }
.legal ul { padding-left: 1.4rem; }
.legal ul li { list-style: disc; margin-bottom: 0.4rem; }
.legal .updated { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 2rem; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; }
@media (max-width: 760px){ .contact-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--text); margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; background: var(--ink-surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 13px 15px; color: var(--text); font-family: var(--font-body); font-size: 0.96rem;
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--primary); }

/* reveal animation */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* utility */
.mt-s { margin-top: 14px; } .mt-m { margin-top: 28px; } .mt-l { margin-top: 48px; }
.muted { color: var(--text-muted); }
.qr { width: 180px; height: 180px; background: #fff; border-radius: 16px; padding: 10px; }

/* ===== App showcase (fanned phones) ===== */
.showcase{
  position:relative;
  padding:96px 0 88px;
  background:radial-gradient(70% 60% at 50% 0%, rgba(245,165,36,0.10) 0%, rgba(245,165,36,0) 70%), var(--ink-abyss);
  border-top:1px solid var(--hairline);
  border-bottom:1px solid var(--hairline);
  overflow:hidden;
}
.showcase-stage{
  margin:14px auto 0;
  max-width:1180px;
}
.showcase-stage img{
  width:100%;
  height:auto;
  display:block;
  border-radius:20px;
  filter:drop-shadow(0 30px 70px rgba(0,0,0,0.5));
}
.showcase-cta{
  display:flex;
  gap:14px;
  justify-content:center;
  flex-wrap:wrap;
  margin-top:34px;
}
@media (max-width:640px){
  .showcase{padding:64px 0 56px;}
  .showcase-stage img{border-radius:14px;}
}

/* ---------- Data journalism: figures, charts, tables ---------- */
.figure {
  background: var(--ink-surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: 22px 22px 14px;
  margin: 1.6rem 0;
}
.figure svg { width: 100%; height: auto; display: block; }
.figure figcaption {
  margin-top: 10px; font-size: 0.84rem; color: var(--text-faint);
  line-height: 1.5;
}
.prose .data-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.prose .data-table th {
  text-align: left; color: var(--text); font-weight: 700;
  padding: 10px 12px; border-bottom: 2px solid var(--border-strong);
  font-size: 0.82rem; letter-spacing: 0.04em; text-transform: uppercase;
}
.prose .data-table td { padding: 10px 12px; border-bottom: 1px solid var(--hairline); color: var(--text-body); }
.prose .data-table tr:last-child td { border-bottom: none; }
.prose .data-table td.num { text-align: right; font-variant-numeric: tabular-nums; color: var(--text); font-weight: 600; }
.table-scroll { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-md); margin: 1.6rem 0; }
.table-scroll .data-table { min-width: 560px; }
.stat-callout {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px; margin: 1.6rem 0;
}
.stat-callout .sc {
  background: var(--ink-surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: 16px 18px;
}
.stat-callout .sc .n { font-family: var(--font-display); font-size: 1.7rem; font-weight: 700; color: var(--primary); }
.stat-callout .sc .l { font-size: 0.82rem; color: var(--text-muted); margin-top: 2px; line-height: 1.4; }
.sig { font-weight: 700; white-space: nowrap; }
.sig.core { color: var(--primary); }
.sig.high { color: var(--accent-light); }
.sig.med { color: var(--cyan); }
