/* ───────────────────────────────────────────────
   Shared styles for Hisaab surface pages
   (brief / plays / you / lab / portfolio)
   Tokens mirror landing/index.html — royal-blue accent,
   logo stays amber. Never hard-code hex; use the vars.
─────────────────────────────────────────────── */
:root {
  --bg: #FFFFFF; --paper: #FAFAF8; --card: #ffffff; --ink: #0E1012;
  --gray100: #EEF0F2; --gray150: #E4E7EA; --gray200: #D6DADE;
  --gray300: #B5B8BD; --gray400: #7C8389; --gray500: #4A5056;
  --amber: #1E3CCB; --amber-ink: #15246B; --amber-soft: #E7ECFB; --amber-border: #C7D2F5;
  --green: #22c55e; --green-soft: #DCFCE7; --green-dark: #166534;
  --red: #EF4444; --red-soft: #FEE2E2; --red-dark: #991B1B;
  --blue: #3B82F6; --blue-soft: #EFF6FF;
  --shadow-sm: 0 1px 2px rgba(14,16,18,0.04), 0 2px 6px rgba(14,16,18,0.04);
  --shadow-md: 0 6px 16px rgba(14,16,18,0.06), 0 20px 40px rgba(14,16,18,0.05);
  --shadow-lg: 0 24px 60px rgba(14,16,18,0.08), 0 48px 120px rgba(14,16,18,0.06);
  --radius: 20px;
  --display: 'Space Grotesk', 'DM Sans', system-ui, -apple-system, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--body); color: var(--ink); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: hidden; }
a { color: var(--ink); text-decoration: none; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.02em; margin: 0; }
p { margin: 0; line-height: 1.6; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }
em { font-style: italic; }

/* ── Nav ── */
nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,0.88);
  backdrop-filter: saturate(180%) blur(14px); -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color 0.2s ease; }
nav.scrolled { border-bottom-color: var(--gray100); }
.nav-inner { display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; max-width: 1160px; margin: 0 auto; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); }
.logo svg { display: block; width: 30px; height: 26px; }
.logo .wordmark { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 24px;
  letter-spacing: -0.8px; color: var(--ink); line-height: 1; }
.nav-links { display: flex; gap: 14px; align-items: center; }
.nav-tabs { display: flex; align-items: center; gap: 3px; background: #f9fafb;
  padding: 4px; border-radius: 14px; border: 1.5px solid #f3f4f6; }
.nav-tab { display: inline-flex; align-items: center; padding: 7px 14px; border-radius: 11px;
  font-family: var(--display); font-size: 13px; font-weight: 500; color: var(--gray400);
  background: transparent; white-space: nowrap; transition: color 0.2s, background 0.2s, box-shadow 0.2s; }
.nav-tab:hover { color: var(--ink); }
.nav-tab.active { color: var(--ink); background: #fff; font-weight: 600;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08), 0 0 0 1px rgba(0,0,0,0.04); }
.nav-about { font-family: var(--body); font-size: 14px; font-weight: 500; color: var(--gray400); transition: color 0.15s; }
.nav-about:hover { color: var(--ink); }
@media (max-width: 860px) { .nav-tabs { display: none; } }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 20px; border-radius: 12px;
  font-family: var(--display); font-weight: 700; font-size: 15px; cursor: pointer; border: none;
  white-space: nowrap; transition: transform 0.35s cubic-bezier(0.32,0.72,0,1), box-shadow 0.25s, background 0.2s; }
.btn-primary { background: var(--ink); color: #fff;
  box-shadow: 0 2px 6px rgba(26,25,23,0.18), inset 0 1px 0 rgba(255,255,255,0.08); }
.btn-primary:hover { background: #000; box-shadow: 0 10px 22px rgba(26,25,23,0.22); }
.btn-white { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--gray200); }
.btn-ghost:hover { background: var(--paper); border-color: var(--gray300); }

/* ── Hero ── */
.surface-hero { padding: 72px 0 40px; text-align: center; }
.surface-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 100px;
  background: var(--amber-soft); border: 1px solid var(--amber-border); font-family: var(--display);
  font-size: 12px; font-weight: 600; color: var(--amber-ink); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 24px; }
.surface-hero h1 { font-size: clamp(40px, 6vw, 72px); font-weight: 700; line-height: 1.04;
  letter-spacing: -0.035em; max-width: 880px; margin: 0 auto; }
.surface-hero h1 .soft-muted { color: var(--gray400); font-weight: 300; }
.surface-hero .sub { margin: 24px auto 0; font-size: clamp(17px, 1.6vw, 20px); line-height: 1.55;
  color: var(--gray500); max-width: 640px; }
.surface-hero .cta { margin-top: 34px; }
.surface-hero .cta .btn { padding: 14px 26px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--gray400); }

/* ── Sections ── */
section { padding: 80px 0; position: relative; }
.section-eyebrow { font-family: var(--display); font-size: 12px; font-weight: 600; color: var(--amber-ink);
  text-transform: uppercase; letter-spacing: 0.12em; margin-bottom: 14px; }
.section-title { font-family: var(--display); font-size: clamp(28px, 4vw, 44px); font-weight: 700;
  line-height: 1.08; letter-spacing: -0.03em; color: var(--ink); max-width: 680px; margin-bottom: 18px; }
.section-title .soft-muted { color: var(--gray400); font-weight: 300; }
.section-sub { font-size: 17px; line-height: 1.6; color: var(--gray500); max-width: 620px; }
.center { text-align: center; }
.center .section-eyebrow, .center .section-title, .center .section-sub { margin-left: auto; margin-right: auto; }
.center .section-eyebrow { display: inline-flex; justify-content: center; }

/* ── Feature grid (what it does) ── */
.fgrid { margin-top: 52px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .fgrid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .fgrid { grid-template-columns: 1fr; } }
.fcard { background: var(--card); border: 1px solid var(--gray100); border-radius: 18px; padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform 0.4s cubic-bezier(0.16,1,0.3,1), box-shadow 0.3s; }
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.fcard .ic { width: 38px; height: 38px; border-radius: 10px; background: var(--amber-soft);
  display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 16px; }
.fcard h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; letter-spacing: -0.01em; }
.fcard p { font-size: 14px; color: var(--gray500); line-height: 1.55; }

/* ── Split row (copy + preview) ── */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .split-copy { order: 2; }
@media (max-width: 880px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip .split-copy { order: 0; } }
.split-copy h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; letter-spacing: -0.025em; line-height: 1.1; margin-bottom: 14px; }
.split-copy p { font-size: 16px; color: var(--gray500); line-height: 1.65; }
.split-tag { font-family: var(--display); font-size: 12px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 12px; }

/* ── Preview card (representative product mock) ── */
.pcard { background: var(--card); border: 1px solid var(--gray100); border-radius: 18px;
  box-shadow: var(--shadow-lg); overflow: hidden; }
.pcard-head { padding: 14px 18px; border-bottom: 1px solid var(--gray100); display: flex;
  align-items: center; justify-content: space-between; background: var(--paper); }
.pcard-title { font-family: var(--display); font-size: 12px; font-weight: 600; color: var(--gray400);
  text-transform: uppercase; letter-spacing: 0.08em; }
.pcard-body { padding: 22px; }
.pcard-lead { font-family: var(--display); font-size: 15px; font-weight: 300; color: var(--gray500);
  letter-spacing: -0.01em; margin-bottom: 16px; }
.pcard-lead b { color: var(--ink); font-weight: 700; }
.prow { display: flex; align-items: center; gap: 10px; padding: 11px 13px; background: var(--paper);
  border: 1px solid var(--gray100); border-radius: 12px; margin-bottom: 8px; font-size: 13px; color: var(--gray500); }
.prow:last-child { margin-bottom: 0; }
.ptk { font-family: var(--display); font-weight: 700; font-size: 13px; min-width: 48px; color: var(--ink); }
.pchip { padding: 2px 9px; border-radius: 100px; font-family: var(--display); font-size: 10px; font-weight: 700; white-space: nowrap; }
.c-add { background: var(--green-soft); color: var(--green-dark); }
.c-hold { background: var(--gray100); color: var(--gray500); }
.c-trim { background: var(--amber-soft); color: var(--amber-ink); }
.c-blue { background: var(--blue-soft); color: #1D4ED8; }
.c-amber { background: var(--amber-soft); color: var(--amber-ink); }
.c-green { background: var(--green-soft); color: var(--green-dark); }
.c-red { background: var(--red-soft); color: var(--red-dark); }
.ptext { flex: 1; line-height: 1.4; }
.pkpis { display: flex; gap: 10px; margin-bottom: 14px; }
.pkpi { flex: 1; background: var(--paper); border-radius: 10px; padding: 11px 13px; }
.pkpi-l { font-family: var(--display); font-size: 9px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gray400); margin-bottom: 4px; }
.pkpi-v { font-family: var(--display); font-size: 19px; font-weight: 700; letter-spacing: -0.02em; }
.psig { display: flex; align-items: center; justify-content: space-between; padding: 9px 0;
  border-bottom: 1px solid var(--gray100); font-size: 13.5px; }
.psig:last-child { border: none; }
.psig .l { color: var(--gray500); }
.psig .v { font-weight: 600; }
.pverdict { background: var(--amber-soft); border: 1px solid var(--amber-border); border-radius: 12px;
  padding: 14px 16px; margin-top: 14px; }
.pverdict-e { font-family: var(--display); font-size: 11px; font-weight: 700; color: var(--amber-ink);
  text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 5px; }
.pverdict-t { font-size: 13.5px; color: var(--ink); line-height: 1.55; }
.preckon { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0;
  border-bottom: 1px solid var(--gray100); }
.preckon-claim { font-size: 14px; color: var(--gray500); font-style: italic; }
.preckon-obs { font-size: 13px; color: var(--ink); font-family: var(--display); font-weight: 600; }
.pstep { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--gray100); align-items: flex-start; }
.pstep:last-child { border: none; }
.pstep-n { width: 22px; height: 22px; border-radius: 50%; background: var(--blue-soft); color: #1D4ED8;
  font-family: var(--display); font-size: 11px; font-weight: 700; display: flex; align-items: center;
  justify-content: center; flex-shrink: 0; margin-top: 1px; }
.pstep-l { font-size: 13px; color: var(--ink); font-weight: 500; }
.pstep-n2 { font-size: 12px; color: var(--gray400); line-height: 1.4; margin-top: 2px; }
.pbar { display: flex; align-items: center; gap: 12px; padding: 9px 0; }
.pbar-name { min-width: 92px; font-size: 13px; font-weight: 500; }
.pbar-track { flex: 1; height: 8px; background: var(--gray100); border-radius: 4px; overflow: hidden; }
.pbar-fill { height: 100%; border-radius: 4px; }
.pbar-pct { font-family: var(--display); font-size: 12px; font-weight: 700; color: var(--gray500); min-width: 34px; text-align: right; }

/* ── Honest note ── */
.honest { background: var(--paper); border: 1px solid var(--gray100); border-radius: 16px; padding: 22px 24px; max-width: 720px; }
.honest-e { font-family: var(--display); font-size: 11px; font-weight: 700; color: var(--amber-ink);
  text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 8px; }
.honest p { font-size: 14.5px; color: var(--gray500); line-height: 1.6; }

/* ── Other surfaces strip ── */
.others { border-top: 1px solid var(--gray100); background: var(--paper); }
.others-grid { margin-top: 32px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 760px) { .others-grid { grid-template-columns: repeat(2, 1fr); } }
.ocard { background: var(--card); border: 1px solid var(--gray100); border-radius: 14px; padding: 18px 20px; transition: transform 0.3s, box-shadow 0.3s; }
.ocard:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.ocard .t { font-family: var(--display); font-size: 11px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 6px; }
.ocard .h { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--ink); margin-bottom: 4px; }
.ocard .d { font-size: 13px; color: var(--gray500); line-height: 1.45; }

/* ── Final CTA ── */
.final-cta { padding: 100px 0 110px; text-align: center; }
.final-cta h2 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; line-height: 1.05; letter-spacing: -0.03em; max-width: 680px; margin: 0 auto; }
.final-cta p { margin-top: 16px; font-size: 16px; color: var(--gray500); }
.final-cta .cta-btn { margin-top: 28px; padding: 16px 30px; font-size: 16px; }

/* ── Footer ── */
footer { border-top: 1px solid var(--gray100); padding: 48px 0 40px; font-size: 13px; color: var(--gray400); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 40px 64px; margin-bottom: 36px; }
.footer-col-h { font-family: var(--display); font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--gray400); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: var(--gray500); margin-bottom: 9px; transition: color 0.15s; }
.footer-col a:hover { color: var(--ink); }
.footer-inner { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px;
  padding-top: 24px; border-top: 1px solid var(--gray100); }
.footer-links { display: flex; gap: 24px; }
.footer-inner a { color: var(--gray500); }
.footer-inner a:hover { color: var(--ink); }

/* ── Reveal ── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.45s cubic-bezier(0.16,1,0.3,1), transform 0.45s cubic-bezier(0.16,1,0.3,1); }
.reveal.in { opacity: 1; transform: translateY(0); }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } .reveal { opacity: 1; transform: none; } }

/* ── Waitlist modal ── */
.wl-overlay { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center;
  background: rgba(14,16,18,0.5); backdrop-filter: blur(4px); padding: 24px; }
.wl-overlay.open { display: flex; }
.wl-modal { background: #fff; border-radius: 22px; padding: 36px; max-width: 420px; width: 100%;
  box-shadow: 0 30px 80px rgba(0,0,0,0.25); position: relative; text-align: center; }
.wl-close { position: absolute; top: 16px; right: 16px; width: 30px; height: 30px; border-radius: 50%;
  border: none; background: var(--gray100); color: var(--gray500); font-size: 17px; cursor: pointer; }
.wl-modal .wl-logo { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.wl-modal .wl-logo .wordmark { font-family: 'Nunito', sans-serif; font-weight: 800; font-size: 20px; }
.wl-modal h2 { font-size: 24px; font-weight: 700; margin-bottom: 8px; }
.wl-modal p { font-size: 14px; color: var(--gray500); margin-bottom: 18px; }
.wl-input { width: 100%; padding: 13px 16px; border-radius: 12px; border: 1px solid var(--gray200);
  font-family: var(--body); font-size: 15px; margin-bottom: 10px; }
.wl-input:focus { outline: none; border-color: var(--amber); }
.wl-error { color: var(--red-dark); font-size: 13px; margin-bottom: 10px; display: none; }
.wl-submit { width: 100%; padding: 13px; border-radius: 12px; border: none; background: var(--ink); color: #fff;
  font-family: var(--display); font-weight: 700; font-size: 15px; cursor: pointer; }
.wl-submit:hover { background: #000; }
.wl-success { display: none; }
.wl-success-icon { width: 56px; height: 56px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark);
  font-size: 26px; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.wl-success h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; }
