/* Rama — sanatansphere.com. Night-sky theme with saffron/gold, matching the Rama app. */
:root {
  --bg: #0E0B14;
  --bg-alt: #130F1B;
  --card: #1A1424;
  --card-hi: #221A2F;
  --ink: #F6EEDF;
  --body: #CFC3AE;
  --muted: #9C8F7E;
  --line: rgba(242, 196, 120, .14);
  --line-hi: rgba(242, 196, 120, .32);
  --gold: #E8B25A;
  --gold-hi: #F2C47A;
  --saffron: #F2A33A;
  --gold-soft: rgba(242, 163, 58, .12);
  --radius: 18px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 14px 34px -16px rgba(0, 0, 0, .7);
  --serif: 'Fraunces', Georgia, 'Times New Roman', serif;
  --sans: 'Mukta', system-ui, -apple-system, 'Segoe UI', sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--body); font: 400 17px/1.65 var(--sans);
  background-image: radial-gradient(1200px 600px at 80% -10%, rgba(242, 163, 58, .10), transparent 60%), radial-gradient(900px 500px at -10% 40%, rgba(120, 60, 160, .10), transparent 60%); background-attachment: fixed; }
img, svg { max-width: 100%; display: block; }
a { color: var(--gold-hi); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--saffron); }
h1, h2, h3, h4 { font-family: var(--serif); color: var(--ink); line-height: 1.15; margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.narrow { width: min(760px, 100% - 32px); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--gold); color: var(--bg); padding: 8px 14px; border-radius: 8px; z-index: 50; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--saffron); outline-offset: 3px; border-radius: 6px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 24px; border-radius: 999px; font: 600 16px/1 var(--sans); text-decoration: none; transition: transform .15s, background .15s, color .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-solid { background: linear-gradient(135deg, var(--gold-hi), var(--saffron)); color: #1A1016; box-shadow: 0 10px 26px -10px rgba(242, 163, 58, .6); }
.btn-solid:hover { color: #1A1016; box-shadow: 0 14px 30px -10px rgba(242, 163, 58, .8); }
.btn-line { border: 1.5px solid var(--line-hi); color: var(--ink); }
.btn-line:hover { border-color: var(--gold); color: var(--gold-hi); }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 15px; }

/* Header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(14, 11, 20, .82); backdrop-filter: saturate(1.3) blur(12px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; justify-content: space-between; min-height: 68px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.logo img { border-radius: 10px; }
.logo span { font: 700 22px/1 var(--serif); display: flex; flex-direction: column; }
.logo small { font: 500 11px/1.4 var(--sans); color: var(--muted); letter-spacing: .06em; text-transform: uppercase; margin-top: 3px; }
.logo:hover { color: var(--ink); }
.menu { display: none; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.nav-main { display: flex; align-items: center; gap: 6px; }
.nav-main a:not(.btn), .menu nav a:not(.btn) { padding: 8px 12px; border-radius: 10px; color: var(--body); font-weight: 500; text-decoration: none; }
.nav-main a:not(.btn):hover, .menu nav a:not(.btn):hover { background: var(--card); color: var(--gold-hi); }
.nav-main .btn { margin-left: 8px; }

/* Shared section bits */
.kicker { display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px; color: var(--gold); font: 600 13px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; }
.kicker .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--saffron); box-shadow: 0 0 0 4px rgba(242, 163, 58, .2); }
.band { padding: 88px 0; }
.band-alt { background: rgba(26, 20, 36, .55); border-block: 1px solid var(--line); }
.band-head { max-width: 640px; margin-bottom: 44px; }
.band-head h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 12px; }
.band-head p:last-child { color: var(--muted); margin: 0; }

/* Hero */
.hero { padding: 72px 0 88px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(42px, 6.2vw, 72px); font-weight: 700; letter-spacing: -.02em; margin-bottom: 22px; }
.hero h1 em { font-style: italic; font-weight: 600; background: linear-gradient(90deg, var(--gold-hi), var(--saffron)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lede { font-size: 19px; max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 32px; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 10px 28px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 15px; }
.hero-facts strong { color: var(--gold-hi); font-family: var(--serif); font-size: 18px; margin-right: 4px; }
.hero-chart { margin: 0; color: var(--gold); text-align: center; }
.hero-chart svg { width: min(380px, 100%); margin: 0 auto; }
.hero-chart rect, .hero-chart path { stroke: var(--line-hi); }
.hero-chart rect { fill: rgba(26, 20, 36, .7); }
.chart-num { fill: var(--muted); font-family: var(--sans); }
.chart-planet { fill: var(--gold-hi); font-family: var(--sans); }
.hero-chart figcaption { margin-top: 10px; font-size: 14px; color: var(--muted); }

/* Features */
.features { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.features li { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 22px; box-shadow: var(--shadow); transition: border-color .15s; }
.features li:hover { border-color: var(--line-hi); }
.glyph { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--gold-soft); color: var(--gold-hi); font-size: 22px; margin-bottom: 16px; }
.features h3 { font-size: 20px; margin-bottom: 8px; }
.features p { font-size: 15.5px; margin: 0; color: var(--muted); }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step { position: relative; padding-top: 62px; }
.step-n { position: absolute; top: 0; left: 0; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold-hi), var(--saffron)); color: #1A1016; font: 700 20px/1 var(--serif); }
.step:not(:last-child)::after { content: ''; position: absolute; top: 23px; left: 58px; right: -16px; border-top: 1.5px dashed var(--line-hi); }
.step h3 { font-size: 21px; margin-bottom: 6px; }
.step p { margin: 0; color: var(--muted); }

/* Pricing */
.pricing { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: center; }
.pricing h2 { font-size: clamp(30px, 4vw, 42px); margin-bottom: 14px; }
.pricing .fine { font-size: 15px; color: var(--muted); }
.price-tag { background: linear-gradient(160deg, var(--card-hi), var(--card)); border: 1px solid var(--line-hi); border-radius: 26px; padding: 34px 30px; text-align: center; box-shadow: 0 24px 60px -24px rgba(242, 163, 58, .35); position: relative; overflow: hidden; }
.price-tag::before { content: ''; position: absolute; inset: -40% -40% auto auto; width: 240px; height: 240px; border-radius: 50%; background: radial-gradient(circle, rgba(242, 163, 58, .25), transparent 70%); }
.price-big { font: 700 76px/1 var(--serif); color: var(--gold-hi); margin: 0; }
.price-sub { margin: 6px 0 0; color: var(--muted); }
.price-tag hr { border: 0; border-top: 1px solid var(--line); margin: 22px 0; }
.price-then { font-weight: 600; color: var(--ink); }
.price-tag .btn { width: 100%; position: relative; }

/* Policy rows */
.policy-rows { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; border-top: 1px solid var(--line); }
.policy-row { display: flex; flex-direction: column; gap: 2px; padding: 18px 40px 18px 0; border-bottom: 1px solid var(--line); text-decoration: none; position: relative; }
.policy-row strong { font: 600 19px/1.3 var(--serif); color: var(--ink); }
.policy-row span { color: var(--muted); font-size: 15px; }
.policy-row::after { content: '›'; position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font-size: 26px; color: var(--gold); transition: transform .15s; }
.policy-row:hover strong { color: var(--gold-hi); }
.policy-row:hover::after { transform: translate(4px, -50%); }

/* FAQ */
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; position: relative; font: 600 19px/1.35 var(--serif); color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 14px; font: 400 26px/1 var(--sans); color: var(--gold); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--muted); }

/* Policy pages */
.doc-hero { padding: 48px 0 40px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, rgba(26, 20, 36, .7), transparent); }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--gold-hi); }
.crumbs span { color: var(--line-hi); }
.doc-hero h1 { font-size: clamp(34px, 5vw, 52px); font-weight: 700; margin-bottom: 10px; }
.doc-meta { margin: 0; color: var(--muted); font-size: 15px; }
.doc-layout { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 48px; padding: 44px 0 88px; align-items: start; }
.doc-list { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 2px; }
.doc-list p { margin: 0 0 8px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.doc-list a { padding: 9px 12px; border-radius: 10px; color: var(--body); text-decoration: none; font-size: 15.5px; }
.doc-list a:hover { background: var(--card); color: var(--gold-hi); }
.doc-list a[aria-current] { background: var(--gold-soft); color: var(--gold-hi); font-weight: 600; }
.doc { background: var(--card); border: 1px solid var(--line); border-radius: 22px; padding: 40px 48px 32px; box-shadow: var(--shadow); max-width: 820px; }
.toc { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 14px; padding: 4px 20px; margin-bottom: 34px; }
.toc summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); }
.toc ol { margin: 0 0 14px; padding-left: 22px; columns: 2; column-gap: 32px; font-size: 15.5px; }
.toc li { break-inside: avoid; padding: 3px 0; }
.toc li::marker { color: var(--muted); }
.toc a { text-decoration: none; color: var(--body); }
.toc a:hover { color: var(--gold-hi); }
.doc h2 { font-size: 26px; margin: 40px 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.doc > h2:first-of-type, .toc + h2 { margin-top: 0; }
.doc h3 { font-size: 19px; margin: 24px 0 8px; }
.doc ul, .doc > ol { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--gold); }
.doc strong { color: var(--ink); }
.doc code { background: var(--bg-alt); padding: 1px 6px; border-radius: 6px; font-size: .92em; }
.doc .callout { border-left: 3px solid var(--saffron); background: var(--gold-soft); padding: 16px 20px; border-radius: 0 12px 12px 0; margin: 20px 0; color: var(--ink); }
.doc .contact-block { background: var(--bg-alt); border: 1px solid var(--line-hi); border-radius: 14px; padding: 18px 22px; margin: 16px 0 20px; color: var(--body); }
.doc .contact-block p { margin: 0 0 6px; }
.doc .contact-block p:last-child { margin: 0; }
.doc .table-wrap { overflow-x: auto; margin: 16px 0 22px; border: 1px solid var(--line); border-radius: 12px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.doc th, .doc td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.doc th { background: var(--bg-alt); color: var(--ink); font-weight: 600; }
.doc tr:last-child td { border-bottom: 0; }

/* 404 */
.nf { padding: 110px 0 120px; text-align: center; }
.nf h1 { font-size: clamp(40px, 6vw, 64px); margin-bottom: 14px; }
.nf p { color: var(--muted); }
.nf .btn { margin-top: 10px; }

/* Footer */
.foot { background: #09070D; border-top: 1px solid var(--line); color: var(--muted); padding: 60px 0 0; font-size: 15.5px; }
.foot a { color: var(--body); text-decoration: none; }
.foot a:hover { color: var(--gold-hi); }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 44px; }
.foot-logo { font: 700 28px/1 var(--serif); color: var(--gold-hi); margin-bottom: 14px; }
.foot-grid > div:first-child p { max-width: 30em; }
.foot h4 { font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: 14px; }
.foot-grid > div:not(:first-child) { display: flex; flex-direction: column; gap: 9px; }
.foot-base { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 20px 0 26px; border-top: 1px solid var(--line); font-size: 14px; }

/* Responsive */
@media (max-width: 980px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .doc-layout { grid-template-columns: 1fr; gap: 24px; }
  .doc-list { position: static; flex-direction: row; overflow-x: auto; gap: 6px; padding-bottom: 6px; scrollbar-width: none; }
  .doc-list p { display: none; }
  .doc-list a { white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 14.5px; }
  .doc-list a[aria-current] { border-color: var(--gold); }
}
@media (max-width: 860px) {
  .nav-main { display: none; }
  .menu { display: block; }
  .menu summary { display: flex; flex-direction: column; justify-content: center; gap: 5px; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line-hi); align-items: center; }
  .menu summary span { width: 18px; height: 2px; background: var(--ink); border-radius: 2px; }
  .menu[open] nav { display: flex; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 18px 30px -20px rgba(0, 0, 0, .8); }
  .menu nav a:not(.btn) { padding: 12px; }
  .menu nav .btn { margin: 8px 0 0; }
  .hero { padding: 44px 0 64px; }
  .hero-grid, .pricing { grid-template-columns: 1fr; gap: 36px; }
  .hero-chart svg { width: min(280px, 80%); }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step { padding: 0 0 0 64px; min-height: 46px; }
  .step:not(:last-child)::after { top: 52px; left: 22px; right: auto; bottom: -18px; border-top: 0; border-left: 1.5px dashed var(--line-hi); }
  .band { padding: 64px 0; }
  .policy-rows { grid-template-columns: 1fr; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > div:first-child { grid-column: 1 / -1; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features { grid-template-columns: 1fr; }
  .doc { padding: 26px 20px 18px; border-radius: 16px; }
  .toc ol { columns: 1; }
  .doc h2 { font-size: 22px; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn, .policy-row::after { transition: none; } }
