/* =========================================================
   scrripta — design system (shared)
   Pure white paper · cream cards · ink black · stamp walnut
   Newsreader serif + Geist sans + JetBrains Mono
   ========================================================= */

/* ---------- Reset & base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: #ffffff;
  color: #0e0b08;
  font-family: 'Geist', system-ui, -apple-system, sans-serif;
  font-size: 17px;
  line-height: 1.55;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; }

/* ---------- Tokens ---------- */
:root {
  --paper:        #ffffff;
  --cream:        #f7f3ea;
  --cream-deep:   #f1ecdf;
  --hair:         #e6e1d5;
  --hair-paper:   #e8e8e8;
  --ink:          #0e0b08;
  --ink-soft:     #2a2520;
  --muted:        #6b665e;
  --stamp:        #6b2520;
  --wa:           #25d366;
  --wa-deep:      #128c4f;
  --serif:        'Newsreader', 'Times New Roman', serif;
  --serif-hi:     'Tiro Devanagari Hindi', 'Newsreader', serif;
  --sans:         'Geist', system-ui, -apple-system, sans-serif;
  --sans-hi:      'Hind', system-ui, -apple-system, sans-serif;
  --mono:         'JetBrains Mono', ui-monospace, monospace;
  --gutter:       22px;
  --section:      72px;
  --max:          1140px;
  --card-r:       14px;
}

/* ---------- Layout ---------- */
.wrap {
  width: 100%; max-width: var(--max);
  margin: 0 auto;
  padding-left: var(--gutter); padding-right: var(--gutter);
}
.hair { height: 1px; background: var(--hair-paper); border: 0; margin: 0; }

/* ---------- Typography ---------- */
.mono   { font-family: var(--mono); font-feature-settings: "tnum" 1; }
.serif  { font-family: var(--serif); font-feature-settings: "ss01" 1, "liga" 1; }
.italic { font-style: italic; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; }

.eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  display: inline-flex; align-items: center; gap: 10px;
}
.eyebrow::before {
  content: ""; width: 18px; height: 1px; background: var(--ink); opacity: 0.55;
}

.h-display {
  font-family: var(--serif);
  font-size: clamp(44px, 12vw, 88px);
  line-height: 0.98;
  letter-spacing: -0.028em;
  font-weight: 400;
  color: var(--ink);
}
.h-display em { font-style: italic; font-weight: 400; }

.h-page {
  font-family: var(--serif);
  font-size: clamp(38px, 9vw, 64px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  font-weight: 400;
  color: var(--ink);
}
.h-page em { font-style: italic; }

.h-section {
  font-family: var(--serif);
  font-size: clamp(30px, 6.8vw, 48px);
  line-height: 1.04;
  letter-spacing: -0.018em;
  font-weight: 400;
}
.h-section em { font-style: italic; }

.lede { font-size: 17px; line-height: 1.6; color: var(--ink-soft); }
.small { font-size: 13px; color: var(--muted); line-height: 1.55; }

/* ---------- Top bar / Nav ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,0.94);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--hair-paper);
}
.topbar-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 60px; gap: 16px;
}
.wordmark {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 28px; letter-spacing: -0.02em; line-height: 1; color: var(--ink);
  display: inline-flex; align-items: baseline;
  flex-shrink: 0;
}
.top-right { display: flex; align-items: center; gap: 14px; }

.nav-desktop { display: none; }
.nav-desktop a {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  padding: 8px 0;
  position: relative;
  transition: color 160ms ease;
}
.nav-desktop a:hover { color: var(--ink); }
.nav-desktop a.active { color: var(--ink); }
.nav-desktop a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 2px;
  height: 1px; background: var(--ink);
}

.lang {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--muted);
}
.lang a { color: var(--muted); padding: 4px 2px; }
.lang a.active { color: var(--ink); border-bottom: 1px solid var(--ink); }
.lang .sep { opacity: 0.4; }

.top-cta {
  display: none;
  align-items: center; justify-content: center; gap: 8px;
  height: 38px; padding: 0 16px;
  background: var(--ink); color: #fff;
  border-radius: 999px;
  font-family: var(--sans); font-size: 13px; font-weight: 500; letter-spacing: 0.01em;
  white-space: nowrap;
}
.top-cta:hover { background: #000; }

/* mobile hamburger */
.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px;
  background: transparent; border: 0;
  margin-right: -8px;
}
.hamburger span {
  display: block; width: 20px; height: 1.5px; background: var(--ink); position: relative;
}
.hamburger span::before,
.hamburger span::after {
  content: ""; position: absolute; left: 0; width: 20px; height: 1.5px; background: var(--ink);
}
.hamburger span::before { top: -6px; }
.hamburger span::after { top: 6px; }

.nav-mobile {
  display: none;
  border-top: 1px solid var(--hair-paper);
  background: #fff;
  padding: 14px 0 18px;
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0;
  font-family: var(--serif); font-size: 22px; letter-spacing: -0.012em;
  color: var(--ink);
  border-bottom: 1px solid var(--hair-paper);
}
.nav-mobile a:last-child { border-bottom: 0; }
.nav-mobile a .n {
  font-family: var(--mono); font-size: 10.5px;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted);
}
.nav-mobile a.active .n { color: var(--ink); }
.nav-mobile .nav-mobile-cta {
  margin-top: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  width: 100%; height: 52px;
  background: var(--ink); color: #fff; border-radius: 999px;
  font-family: var(--sans); font-size: 14px; font-weight: 500; letter-spacing: 0.02em;
  border: 0;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 24px;
  font-family: var(--sans); font-size: 14.5px;
  letter-spacing: 0.02em; font-weight: 500;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: transform 120ms ease, background 160ms ease, color 160ms ease, border-color 160ms ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #000; }
.btn-secondary { background: #fff; color: var(--ink); border-color: var(--ink); }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-wa { background: var(--wa); color: #fff; border-color: var(--wa); }
.btn-wa:hover { background: var(--wa-deep); border-color: var(--wa-deep); }
.btn-ghost-ink { background: transparent; color: #f1ece2; border-color: rgba(241,236,226,0.4); }
.btn-ghost-ink:hover { border-color: rgba(241,236,226,0.7); background: rgba(255,255,255,0.06); }
.btn .arrow {
  font-family: var(--serif); font-style: italic;
  font-size: 18px; line-height: 1; transform: translateY(-1px);
}
.btn svg { width: 18px; height: 18px; }

/* ---------- Cards ---------- */
.card {
  position: relative;
  background: var(--cream);
  border: 1px solid var(--hair);
  border-radius: var(--card-r);
  padding: 26px;
}
.card.deep  { background: var(--cream-deep); }
.card.paper { background: #fff; border-color: var(--hair-paper); }
.card.ink   { background: var(--ink); color: #f1ece2; border-color: var(--ink); }

/* tab on top of a card */
.card-tab, .tab {
  position: absolute; top: 0; left: 24px;
  padding: 6px 12px 7px;
  background: var(--ink); color: #fff;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  border-bottom-left-radius: 6px; border-bottom-right-radius: 6px;
  white-space: nowrap;
}
.tab.stamp-tab { background: var(--stamp); }

/* ---------- Seals ---------- */
.seal {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--stamp); color: var(--stamp);
  border-radius: 999px; padding: 5px 12px 5px 9px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 500;
  background: rgba(107, 37, 32, 0.04);
}
.seal .swatch { width: 6px; height: 6px; background: var(--stamp); border-radius: 50%; }

.seal-round {
  width: 64px; height: 64px;
  border-radius: 50%;
  border: 1.5px dashed var(--stamp);
  color: var(--stamp);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 9.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  line-height: 1.05; text-align: center;
  flex-shrink: 0;
  background: rgba(107, 37, 32, 0.025);
}
.seal-round span { display: block; }
.seal-round strong {
  display: block;
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: 17px; letter-spacing: 0; text-transform: none;
}

/* rotated rubber stamp */
.stamp-mark {
  display: inline-block;
  transform: rotate(-6deg);
  border: 1.5px solid var(--stamp); color: var(--stamp);
  padding: 6px 12px; border-radius: 4px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.18em;
  text-transform: uppercase; font-weight: 500;
  background: rgba(107, 37, 32, 0.04);
  white-space: nowrap;
}

/* ---------- Section ---------- */
section { padding-top: var(--section); padding-bottom: var(--section); }
.sec-head { max-width: 36ch; }
.sec-head .eyebrow { margin-bottom: 18px; }
.sec-head p { margin-top: 22px; color: var(--ink-soft); font-size: 17px; line-height: 1.6; }

/* ---------- Page intro (used on inner pages) ---------- */
.page-intro {
  padding-top: 48px;
  padding-bottom: 24px;
}
.page-intro .crumb {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted);
  margin-bottom: 22px;
  display: inline-flex; align-items: center; gap: 8px;
}
.page-intro .crumb a { color: var(--muted); }
.page-intro .crumb a:hover { color: var(--ink); }
.page-intro .crumb .sep { opacity: 0.5; }
.page-intro h1 { margin: 0; max-width: 18ch; }
.page-intro .lede { margin-top: 26px; max-width: 44ch; font-size: 19px; line-height: 1.5; }
.page-intro .cta-row { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.page-intro .footnote { margin-top: 24px; max-width: 42ch; }

/* ---------- Black inverted card ---------- */
.black-quote {
  background: var(--ink);
  border-radius: 18px;
  padding: 36px 26px;
  color: #f1ece2;
  position: relative; overflow: hidden;
  margin-top: 28px;
}
.black-quote .corner-stamp { position: absolute; top: 18px; right: 18px; transform: rotate(8deg); }
.black-quote .q {
  font-family: var(--serif); font-style: italic; font-weight: 400;
  font-size: clamp(28px, 7vw, 44px); line-height: 1.12; letter-spacing: -0.014em;
  color: #f1ece2; max-width: 22ch;
}
.black-quote .q .accent { color: #fff; font-style: italic; }
.black-quote .after {
  margin-top: 24px; font-size: 15.5px; line-height: 1.7;
  color: rgba(241, 236, 226, 0.78); max-width: 50ch;
}
.black-quote .footer-row {
  margin-top: 28px; padding-top: 20px;
  border-top: 1px solid rgba(241, 236, 226, 0.12);
  display: flex; flex-wrap: wrap; gap: 16px; align-items: center;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(241, 236, 226, 0.56);
}
.black-quote .footer-row .dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(241,236,226,0.4); display: inline-block;
}

/* ---------- Spec list (inside cards) ---------- */
.spec-list { list-style: none; padding: 0; margin: 0; }
.spec-list li {
  display: grid; grid-template-columns: 18px 1fr;
  gap: 10px; padding: 8px 0;
  font-size: 14.5px; line-height: 1.6; color: var(--ink-soft);
}
.spec-list li + li { border-top: 1px dashed var(--hair-paper); }
.spec-list li .mark {
  font-family: var(--serif); font-style: italic;
  color: var(--stamp); font-size: 14px; line-height: 1.5;
}

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hair-paper);
  padding: 56px 0 48px;
  background: #fff;
}
.foot-top { display: grid; grid-template-columns: 1fr; gap: 36px; }
.foot-block h5 {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--muted); font-weight: 500;
  margin: 0 0 14px;
}
.foot-block a {
  display: block; padding: 5px 0;
  font-size: 14.5px; color: var(--ink);
}
.foot-block a:hover { text-decoration: underline; text-underline-offset: 4px; }
.foot-bottom {
  margin-top: 40px; padding-top: 24px;
  border-top: 1px solid var(--hair-paper);
  display: flex; flex-direction: column; gap: 18px;
}
.foot-bottom .legal {
  display: flex; flex-wrap: wrap; gap: 18px;
  font-size: 13px; color: var(--muted);
}
.foot-bottom .meta {
  font-family: var(--mono); font-size: 11px;
  letter-spacing: 0.12em; color: var(--muted); text-transform: uppercase;
}

/* ---------- Floating WA ---------- */
.float-wa {
  position: fixed; right: 16px; bottom: 16px; z-index: 60;
  display: inline-flex; align-items: center; gap: 10px;
  height: 54px; padding: 0 20px;
  background: var(--wa); color: #fff; border-radius: 999px;
  box-shadow: 0 14px 36px rgba(18, 140, 79, 0.34), 0 0 0 1px rgba(0,0,0,0.04);
  font-size: 14px; font-weight: 500; letter-spacing: 0.01em;
}
.float-wa svg { width: 20px; height: 20px; }

/* ---------- Final CTA card (used on every page) ---------- */
.final-wrap { padding-top: var(--section); padding-bottom: var(--section); }
.final {
  background: var(--ink); color: #f1ece2;
  border-radius: 22px; padding: 40px 26px 36px;
  position: relative; overflow: hidden;
}
.final h2 {
  font-family: var(--serif); font-weight: 400;
  font-size: clamp(34px, 8vw, 56px);
  line-height: 1.0; letter-spacing: -0.024em;
  max-width: 16ch; color: #fff;
}
.final h2 em { font-style: italic; }
.final p {
  margin-top: 22px; font-size: 16px; line-height: 1.65;
  max-width: 38ch; color: rgba(241,236,226,0.78);
}
.final .cta-row { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.final .timeline {
  margin-top: 32px; padding-top: 22px;
  border-top: 1px solid rgba(241,236,226,0.12);
  display: grid; grid-template-columns: 1fr; gap: 14px;
}
.final .step { display: grid; grid-template-columns: 36px 1fr; gap: 14px; align-items: baseline; }
.final .step .n {
  font-family: var(--serif); font-style: italic;
  font-size: 22px; line-height: 1; color: var(--stamp);
  text-shadow: 0 0 1px rgba(0,0,0,0.5);
}
.final .step .l {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(241,236,226,0.6);
}
.final .step .d { color: #f1ece2; font-size: 14.5px; line-height: 1.5; margin-top: 4px; }

/* ---------- Responsive ---------- */
@media (min-width: 760px) {
  .foot-top { grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 48px; }
}
@media (min-width: 960px) {
  :root { --gutter: 48px; --section: 112px; }
  body { font-size: 18px; }
  .topbar-inner { height: 76px; }
  .wordmark { font-size: 32px; }
  .nav-desktop { display: flex; gap: 28px; }
  .top-cta { display: inline-flex; }
  .hamburger { display: none; }
  .foot-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
  .float-wa { right: 28px; bottom: 28px; }
  .final {
    padding: 56px 48px 48px;
    display: grid; grid-template-columns: 1.2fr 1fr;
    gap: 56px; align-items: start;
  }
  .final .timeline { margin-top: 0; padding-top: 0; border-top: 0; }
  .page-intro { padding-top: 80px; padding-bottom: 48px; }
  .page-intro .cta-row { flex-direction: row; }
}

/* ---------- A11y ---------- */
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
