/* ═══════════════════════════════════════════════════════════════════
   AstroPractice practice ledger.

   Palette is brand-mandated (assets/brand/LOGO_OPTIONS.md): indigo on
   paper, gold as a single accent that is never a background and never a
   CTA. Structure follows the two real category comps, HoneyBook and
   GlossGenius, which both run a light canvas, a serif display over a
   sans body, exactly one accent reserved for the CTA, no shadows at all,
   and section rhythm built from full-bleed surface changes rather than
   borders.

   Deliberate divergence from those two: they use soft 8–20px radii. We
   keep square corners and hairline rules, because the distinctive asset
   here is a *document*, the kundli the engine renders, and the page
   should look like it belongs to that document rather than to another
   rounded SaaS template.

   No build step, no runtime dependency.
   ═══════════════════════════════════════════════════════════════════ */

:root {
  --paper:  #FDFBF4;   /* canvas */
  --ink:    #221C4D;   /* indigo: body text, headings, primary CTA fill */
  --gold:   #B8912F;   /* data marks and meta labels ONLY */

  --muted:  #6B6588;   /* secondary text: indigo, desaturated */
  --rule:   #E0DACB;   /* hairline on paper */
  --tint:   #F5F1E4;   /* second surface, one step down from paper */
  --deep:   #1B1638;   /* the dark band: indigo, further down */
  --deep-rule: rgba(253,251,244,.16);
  --deep-muted: #A7A1C4;

  --serif: 'Instrument Serif', 'Tiro Devanagari Hindi', Georgia, serif;
  --sans:  'Inter', ui-sans-serif, system-ui, 'Segoe UI', sans-serif;
  --mono:  'IBM Plex Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --wrap: 1120px;
  --gap:  clamp(56px, 9vw, 96px);   /* section rhythm, per both comps */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px; line-height: 1.6; letter-spacing: .1px;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: var(--serif); font-weight: 400; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; }
img, svg { max-width: 100%; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 22px; }

/* ── Section scaffolding ─────────────────────────────────────────── */

.row { border-top: 1px solid var(--rule); }
.row-inner { padding: var(--gap) 0; }

/* Mono index label in the left margin: the register motif. */
.idx {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
  display: block; margin-bottom: 22px;
}
.idx b { color: var(--gold); font-weight: 400; }

@media (min-width: 900px) {
  /* 176px is the width at which the longest label, "05 / FOUNDING OFFER",
     sits on one line. Narrower and the labels wrap mid-phrase. */
  .row-inner { display: grid; grid-template-columns: 176px 1fr; gap: 40px; }
  .idx { margin-bottom: 0; padding-top: 8px; letter-spacing: .14em; }
}

.sec-head { max-width: 34ch; margin-bottom: 34px; }
.sec-head h2 { font-size: clamp(26px, 4vw, 38px); line-height: 1.12; }
.sec-head p  { margin-top: 12px; color: var(--muted); font-size: 15px; }

/* ── Header ──────────────────────────────────────────────────────── */

.masthead {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--rule);
}
.mark { font-family: var(--serif); font-size: 20px; letter-spacing: -.02em;
  display: inline-flex; align-items: center; gap: 9px; text-decoration: none; }
.mark img { display: block; flex: none; }
.mark span { display: none; font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted); }
@media (min-width: 560px) { .mark span { display: inline; } }

/* ── Buttons. Indigo filled is the primary action. Gold is never a CTA. ── */

.cta-set { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 30px; }

.btn {
  display: inline-block; font-family: var(--sans); font-size: 15px; font-weight: 500;
  padding: 14px 26px; border-radius: 0; border: 1px solid var(--ink);
  background: var(--ink); color: var(--paper); text-decoration: none;
  cursor: pointer; transition: opacity .15s ease;
}
.btn:hover { opacity: .88; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--rule); }
.btn-ghost:hover { border-color: var(--ink); opacity: 1; }

/* Inverted for the dark band: paper fill, indigo text. */
.on-deep .btn { background: var(--paper); color: var(--ink); border-color: var(--paper); }
.on-deep .btn-ghost { background: transparent; color: var(--paper); border-color: var(--deep-rule); }
.on-deep .btn-ghost:hover { border-color: var(--paper); }

.fineprint { font-size: 13px; color: var(--muted); margin-top: 14px; }
.on-deep .fineprint { color: var(--deep-muted); }

/* ── Hero ────────────────────────────────────────────────────────── */

.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--rule); }
.hero::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right,  var(--rule) 1px, transparent 1px),
    linear-gradient(to bottom, var(--rule) 1px, transparent 1px);
  background-size: 44px 44px; opacity: .3;
  -webkit-mask-image: radial-gradient(ellipse 120% 34% at 50% 0%, #000 10%, transparent 80%);
          mask-image: radial-gradient(ellipse 120% 34% at 50% 0%, #000 10%, transparent 80%);
}
@media (min-width: 900px) {
  .hero::before { background-size: 56px 56px; opacity: .5;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%);
            mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 75%); }
}
.hero > .wrap { position: relative; }

.hero-grid { padding: 30px 0 52px; }
@media (min-width: 900px) {
  /* Top-aligned, not centred. The chart column is markedly taller than the
     copy, so centring pushed the headline and CTA a long way down the page and
     opened a dead band under the masthead. Aligning the two columns at the top
     also reads as more document-like, which is the whole point of the design. */
  .hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px;
    align-items: start; padding: 52px 0 88px; }
}

h1 { font-size: clamp(34px, 7vw, 60px); line-height: 1.04; }
.lede { margin-top: 20px; font-size: 17px; color: var(--muted); max-width: 46ch; }

.eyebrow {
  font-family: var(--mono); font-size: 11px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--muted);
  display: inline-block; border: 1px solid var(--rule); padding: 6px 11px; margin-bottom: 24px;
}

/* ── The document: real engine output, never a mockup ───────────── */

.doc { background: #fff; border: 1px solid var(--rule); padding: 18px; }
.doc-head {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  border-bottom: 1px solid var(--rule); padding-bottom: 10px; margin-bottom: 16px;
}
.doc-title { font-family: var(--serif); font-size: 17px; }
.doc-meta  { font-family: var(--mono); font-size: 10px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--gold); }
.doc svg { display: block; width: 100%; height: auto; }

.doc-table { width: 100%; border-collapse: collapse; margin-top: 16px;
  font-family: var(--mono); font-size: 11px; }
.doc-table th { text-align: left; font-weight: 400; letter-spacing: .14em; text-transform: uppercase;
  font-size: 9px; color: var(--gold); padding-bottom: 6px; border-bottom: 1px solid var(--rule); }
.doc-table td { padding: 5px 0; border-bottom: 1px solid var(--rule); }
.doc-table td:last-child, .doc-table th:last-child { text-align: right; }

.doc-caption { font-family: var(--mono); font-size: 10px; letter-spacing: .1em;
  color: var(--muted); margin-top: 12px; text-transform: uppercase; }

/* ── The dark band: the commission argument ──────────────────────── */

.deep { background: var(--deep); color: var(--paper); }
.deep .idx { color: var(--deep-muted); }
.deep .sec-head h2 { color: var(--paper); }
.deep .sec-head p  { color: var(--deep-muted); }

.money { display: grid; gap: 26px; }
@media (min-width: 860px) { .money { grid-template-columns: 1fr 1fr; gap: 44px; align-items: start; } }

.dial { border-top: 1px solid var(--deep-rule); }
.dial label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 15px 0 8px; font-size: 14px; }
.dial label b { font-family: var(--mono); font-weight: 400; color: var(--gold); font-size: 15px; }
.dial input[type=range] { width: 100%; accent-color: var(--gold); margin: 0 0 14px;
  border-bottom: 1px solid var(--deep-rule); padding-bottom: 14px; }

.ledger-card { background: rgba(253,251,244,.05); border: 1px solid var(--deep-rule); padding: 24px 22px; }
.ledger-card .big-label { font-family: var(--mono); font-size: 10px; letter-spacing: .18em;
  text-transform: uppercase; color: var(--gold); display: block; margin-bottom: 10px; }
.ledger-card .big { font-family: var(--serif); font-size: clamp(40px, 8vw, 62px);
  line-height: 1; letter-spacing: -.03em; }

.ledger { width: 100%; border-collapse: collapse; margin-top: 22px; font-size: 14px; }
.ledger td { padding: 11px 0; border-bottom: 1px solid var(--deep-rule); }
.ledger td:last-child { text-align: right; font-family: var(--mono); }
.ledger tr:last-child td { border-bottom: 0; padding-top: 15px; }
.ledger tr:last-child td:last-child { color: var(--gold); font-size: 16px; }

/* ── Cards / steps / features ────────────────────────────────────── */

.cards { display: grid; border: 1px solid var(--rule); background: #fff; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card { padding: 26px 22px; border-top: 1px solid var(--rule); }
.card:first-child { border-top: 0; }
@media (min-width: 760px) {
  .card { border-top: 0; border-left: 1px solid var(--rule); }
  .card:first-child { border-left: 0; }
}
.card h3 { font-size: 19px; margin-bottom: 10px; }
.card p { font-size: 14px; color: var(--muted); }

.steps { border-top: 1px solid var(--rule); }
.step { display: grid; grid-template-columns: 40px 1fr; gap: 16px;
  padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: start; }
.step-n { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; color: var(--gold); padding-top: 5px; }
.step h3 { font-size: 19px; margin-bottom: 4px; }
.step p { font-size: 14px; color: var(--muted); }

/* What you get: capabilities, not plan limits */
.feats { display: grid; gap: 0; border-top: 1px solid var(--rule); }
@media (min-width: 720px) { .feats { grid-template-columns: 1fr 1fr; column-gap: 40px; } }
.feat { padding: 20px 0; border-bottom: 1px solid var(--rule); }
.feat h3 { font-size: 17px; margin-bottom: 5px; display: flex; align-items: baseline; gap: 10px; }
.feat h3::before { content: attr(data-n); font-family: var(--mono); font-size: 10px;
  letter-spacing: .16em; color: var(--gold); flex: none; }
.feat p { font-size: 14px; color: var(--muted); }

/* ── Pricing ─────────────────────────────────────────────────────── */

.price-box { border: 1px solid var(--rule); background: #fff; padding: 28px 24px; }
@media (min-width: 760px) { .price-box { padding: 38px 34px; } }
.price-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.price { font-family: var(--serif); font-size: clamp(40px, 8vw, 60px); line-height: 1; }
.price-per { font-family: var(--mono); font-size: 12px; letter-spacing: .14em;
  text-transform: uppercase; color: var(--muted); }
.price-was { font-family: var(--mono); font-size: 13px; color: var(--muted); text-decoration: line-through; }

.callout { background: var(--tint); border: 1px solid var(--rule); padding: 20px 22px; margin-top: 24px; }
.callout p { font-size: 14px; }
.callout strong { font-weight: 600; }

/* ── FAQ ─────────────────────────────────────────────────────────── */

.faq { border-top: 1px solid var(--rule); }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { padding: 18px 0; cursor: pointer; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-family: var(--mono); color: var(--gold); flex: none; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; font-size: 14px; color: var(--muted); max-width: 62ch; }

/* ── Closing CTA ─────────────────────────────────────────────────── */

.close-cta { text-align: center; padding: var(--gap) 0; }
.close-cta h2 { font-size: clamp(28px, 5vw, 44px); line-height: 1.08; max-width: 20ch; margin: 0 auto; }
.close-cta p { margin: 16px auto 0; color: var(--muted); max-width: 46ch; font-size: 15px; }
.close-cta .cta-set { justify-content: center; }

/* ── Footer ──────────────────────────────────────────────────────── */

.foot { border-top: 1px solid var(--rule); padding: 30px 0 46px; font-size: 13px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 12px 28px; justify-content: space-between; }
.foot a { text-decoration: underline; text-underline-offset: 3px; }

/* ── Accessibility ───────────────────────────────────────────────── */

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }
.on-deep :focus-visible, .deep :focus-visible { outline-color: var(--paper); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

/* ── Legal & contact pages ────────────────────────────────────────
   Razorpay's activation review reads these, and so does anyone deciding
   whether a ₹499 deposit to a stranger is safe. Same document logic as
   the rest of the site: square corners, hairline rules, gold on the mono
   labels only. Measure is capped at 70ch, because these are read, not scanned. */

.legal-head { border-bottom: 1px solid var(--rule); padding: 48px 0 40px; }
.legal-head h1 { font-size: clamp(32px, 5vw, 46px); max-width: 22ch; }
.legal-head .lede { margin-top: 18px; }

.stamp {
  font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); margin-top: 22px; display: block;
}

.legal { padding: 8px 0 8px; max-width: 70ch; }
.legal section { border-top: 1px solid var(--rule); padding: 34px 0; }
.legal section:first-child { border-top: 0; padding-top: 34px; }
.legal h2 { font-size: 24px; margin-bottom: 14px; }
.legal h3 { font-family: var(--sans); font-size: 15px; font-weight: 600; margin: 24px 0 8px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 14px; }
.legal ul { margin: 14px 0 0; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { text-decoration: underline; text-underline-offset: 3px; }
.legal strong { color: var(--ink); font-weight: 600; }

/* Contact details read as a register, not a paragraph. */
.reg { border-top: 1px solid var(--rule); margin-top: 26px; }
.reg div { border-bottom: 1px solid var(--rule); padding: 14px 0; display: grid; gap: 4px; }
@media (min-width: 620px) { .reg div { grid-template-columns: 190px 1fr; gap: 24px; align-items: baseline; } }
.reg dt { font-family: var(--mono); font-size: 10px; letter-spacing: .16em;
  text-transform: uppercase; color: var(--gold); }
.reg dd { margin: 0; color: var(--ink); }
.reg dd .note { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }

/* Unfilled values must be impossible to miss in review or in a screenshot. */
.todo { background: #FFF3D6; border-bottom: 2px solid var(--gold);
  font-family: var(--mono); font-size: 12px; color: #6B4E00; padding: 1px 5px; }

.legal-nav { border-top: 1px solid var(--rule); padding: 28px 0 0; margin-top: 8px;
  display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; }
.legal-nav a { text-decoration: underline; text-underline-offset: 3px; color: var(--muted); }
.legal-nav a[aria-current] { color: var(--ink); text-decoration: none; font-weight: 500; }
