/* The home page: the owner's mockup (docs/design/home-desktop/Main.dc.html) on the brand tokens. Loaded only on /.
   Sizes that are data use pct.css; nothing here is inline (CSP). */

/* page frame: the dawn gradient behind the header and hero; the header sits on it, transparent */
body.home { position: relative; }
body.home::before { content: ""; position: absolute; z-index: -1; left: 0; right: 0; top: 0; height: 934px; background: var(--grad-dawn); pointer-events: none; }
body.home.with-announce::before { top: 44px; }
.home .site-header { position: relative; background: transparent; }
main.wide { display: block; }
.home h1 { margin: 0; font: 500 clamp(40px, 5.2vw, 64px)/1.094 var(--font-display); letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.home h1 .accent { color: var(--saffron-ink); }
.home main h2 { margin: 0; font: 500 clamp(32px, 4vw, 48px)/1.167 var(--font-display); letter-spacing: -.015em; color: var(--ink); text-wrap: balance; }
.home main h3 { margin: 0; font: 600 24px/30px var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.home :not(pre) > code { font-size: 13.5px; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.sec-head > div { max-width: 760px; }
.sec-head > div p { margin: 14px 0 0; font-size: 18px; line-height: 28px; color: var(--ink-2); text-wrap: pretty; }
.sec-links { display: flex; flex-wrap: wrap; gap: 24px; margin: 0; padding-bottom: 4px; font-size: 15px; line-height: 22px; font-weight: 700; }

/* buttons of the mockup */
.btn-lg { height: 52px; padding: 0 24px; font-size: 16px; font-weight: 800; }
.btn-primary.btn-lg { padding: 0 26px; }
.btn-block { width: 100%; height: 48px; justify-content: center; font-weight: 800; }
.btn-soon, .btn-soon:hover { border: 1px dashed #D9C4A8; background: var(--bg); color: var(--ink-3); cursor: not-allowed; }
.btn-dark { background: transparent; border-color: rgba(255,217,168,.35); color: #FFF3E2; }
.btn-dark:hover { border-color: #FFD9A8; color: #FFF3E2; }
.verb { display: inline-flex; align-items: center; flex-shrink: 0; height: 20px; padding: 0 7px; border-radius: 6px; color: #FFFFFF; font: 800 12px/1 var(--font-body); letter-spacing: .03em; }
.verb-post { background: var(--saffron-ink); }
.verb-get { background: var(--tulsi-deep); }
.ok { flex-shrink: 0; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: rgba(143,217,176,.14); color: #8FD9B0; font: 700 12px/24px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-pill); background: var(--card); }
.seg button { height: 44px; padding: 0 16px; border: 0; border-radius: var(--r-pill); background: transparent; color: var(--ink-2); font: 700 14px/1 var(--font-body); cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button[aria-pressed="true"] { background: var(--saffron); color: var(--ink); }
.seg button[lang="hi"] { font: 400 16px/1 var(--font-deva); }
.chip { display: inline-flex; align-items: center; flex-shrink: 0; height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: var(--bg-2); border: 1px solid var(--line); font: 12px/22px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }
.chip-bad { background: #F9E4DE; border-color: #F9E4DE; color: var(--maroon); font: 800 12px/22px var(--font-body); }

/* hero */
.home-hero { position: relative; overflow-x: clip; padding: 48px 0 96px; }
.hero-ring { position: absolute; left: calc(50% - 40px); top: -23px; width: 760px; height: 760px; pointer-events: none; }
.hero-grid { position: relative; display: flex; align-items: center; gap: 60px; min-height: 714px; }
.hero-text { flex: 0 1 620px; min-width: 0; }
.hero-lede { margin: 24px 0 0; max-width: 560px; font-size: 20px; line-height: 32px; color: var(--ink-2); text-wrap: pretty; }
.hero-ctas { margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero-note { margin: 16px 0 0; font-size: 14px; line-height: 22px; color: var(--ink-3); }
.hero-stats { list-style: none; margin: 40px 0 0; padding: 28px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.hero-stats b { display: block; font: 500 32px/36px var(--font-display); letter-spacing: -.01em; color: var(--ink); }
.hero-stats span { display: block; margin-top: 4px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.hero-card { flex: 0 0 520px; min-width: 0; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-lg); overflow: hidden; }
.hc-head { height: 60px; padding: 0 20px; display: flex; align-items: center; gap: 10px; background: var(--ink-panel); }
.hc-head code { font-size: 15px; color: #FBEBD6; background: none; border: 0; padding: 0; }
.hc-head .ok { margin-left: auto; }
.hc-credits { font-size: 13px; line-height: 20px; color: #D9C4A8; white-space: nowrap; }
.hc-switches { min-height: 76px; padding: 12px 20px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; background: var(--card-tint); border-bottom: 1px solid var(--line-2); }
.hc-chart { flex: 1; display: flex; align-items: center; justify-content: center; padding: 29px 20px; background: var(--card); }
.hc-chart svg { display: block; max-width: 100%; height: auto; }
.hc-foot { min-height: 80px; padding: 12px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-top: 1px solid var(--line-2); }
.hc-caption { min-width: 0; }
.hc-caption b { display: block; font: 600 19px/24px var(--font-display); color: var(--ink); }
.hc-caption[lang="hi"] b { font-family: var(--font-deva); font-weight: 400; }
.hc-caption span { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.hc-foot a { flex-shrink: 0; font-size: 15px; line-height: 22px; font-weight: 700; }

/* the kundli drawing (portal/src/home/chart.js) */
.ck text { font-family: var(--font-body); text-anchor: middle; }
.ck-hi text { font-family: var(--font-deva); }
.ck-bg { fill: var(--card-tint); }
.ck-lagna { fill: #FFE7C2; }
.ck-line { fill: none; stroke: var(--gold); stroke-width: 1.25; }
.ck-frame { fill: none; stroke: var(--gold); stroke-width: 2; }
.ck-mark { fill: none; stroke: var(--saffron-ink); stroke-width: 1.5; }
.ck .ck-num { fill: var(--gold-ink); font: 600 14px var(--font-display); }
.ck-g { fill: var(--ink); font-size: 13px; font-weight: 700; }
.ck-asc { fill: var(--saffron-ink); font-size: 13px; font-weight: 800; }
.ck-south .ck-g, .ck-south .ck-asc { font-size: 12px; }
.ck .ck-sign { fill: var(--ink-3); font-size: 11px; font-weight: 700; text-anchor: start; }
.ck .ck-title { fill: var(--ink); font: 600 19px var(--font-display); }
.ck-hi .ck-title { font-family: var(--font-deva); font-weight: 400; }
.ck-d1 { fill: var(--ink-3); font-size: 12px; font-weight: 700; }
.ck-lname { fill: var(--saffron-ink); font-size: 13px; font-weight: 800; }

/* your first call */
.home-call { padding: 96px 0; background: var(--bg); }
.call-panel { margin-top: 44px; display: flex; min-height: 640px; border-radius: var(--r-lg); overflow: hidden; background: var(--ink-panel); box-shadow: var(--sh-lg); }
.call-panel :focus-visible { outline-color: #FFD9A8; }
.call-req { flex: 0 0 640px; min-width: 0; display: flex; flex-direction: column; }
.call-res { flex: 1; min-width: 0; display: flex; flex-direction: column; background: #1E120B; border-left: 1px solid rgba(255,217,168,.10); }
.call-bar { min-height: 64px; padding: 0 16px 0 18px; display: flex; align-items: center; gap: 4px; border-bottom: 1px solid rgba(255,217,168,.12); }
.call-res .call-bar { padding: 0 24px; gap: 12px; border-bottom-color: rgba(255,217,168,.10); }
.code-tabs { display: flex; gap: 4px; flex-wrap: wrap; margin-right: auto; }
.code-tabs button { height: 44px; padding: 0 14px; border: 0; border-radius: 10px; background: transparent; color: #D9C4A8; font: 700 14px/1 var(--font-body); cursor: pointer; }
.code-tabs button:hover { color: #FFFFFF; }
.code-tabs button[aria-pressed="true"] { background: rgba(255,179,71,.16); color: var(--marigold); }
.copy { height: 44px; padding: 0 14px; display: inline-flex; align-items: center; gap: 8px; border: 1px solid rgba(255,217,168,.22); border-radius: 10px; background: transparent; color: #F3E3CC; font: 700 14px/1 var(--font-body); cursor: pointer; }
.copy:hover { border-color: rgba(255,217,168,.5); }
.call-code { flex: 1; margin: 0; padding: 22px 28px; background: transparent; border-radius: 0; color: #FBEBD6; font-size: 14px; line-height: 22px; overflow: auto; }
.call-code code { font-size: inherit; }
.call-json { padding: 18px 24px; font-size: 13px; line-height: 20px; }
.call-title { font-size: 14px; line-height: 20px; font-weight: 700; color: #F3E3CC; }
.call-trim { margin-left: auto; font-size: 13px; line-height: 20px; color: #A99079; }
.call-note { margin: 0; padding: 14px 28px; border-top: 1px solid rgba(255,217,168,.12); font-size: 13px; line-height: 20px; color: #D9C4A8; }
.home .call-note code { background: none; border: 0; padding: 0; color: #FFD9A8; }
.t-kw { color: #F5A3C0; } .t-fn { color: #FFD9A8; } .t-str { color: #9FDDB9; } .t-key { color: #FFE3BD; }
.t-num { color: #FFB347; } .t-punc { color: #D9C4A8; } .t-dim { color: #A99079; }
.call-parts { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.home .call-parts code { background: none; border: 0; padding: 0; font-size: 15px; line-height: 24px; font-weight: 700; color: var(--saffron-ink); }
.call-parts p { margin: 8px 0 0; font-size: 15px; line-height: 24px; color: var(--ink-2); }

/* what you can build: the tiles (portal/src/home/tiles.js) */
.home-build { padding: 96px 0; background: var(--bg-2); }
.tiles { margin-top: 44px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.tile { min-width: 0; padding: 28px; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-xs); }
.tile:hover { border-color: var(--gold-soft); }
.span-9 { grid-column: span 9; } .span-3 { grid-column: span 3; } .span-4 { grid-column: span 4; } .span-5 { grid-column: span 5; } .span-6 { grid-column: span 6; } .span-7 { grid-column: span 7; }
.tile-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.home .tile-small h3 { font-size: 22px; line-height: 28px; }
.tile h3 a { color: var(--ink); text-decoration: none; }
.tile h3 a:hover { text-decoration: underline; color: var(--ink); }
.tile-count { flex-shrink: 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-3); }
.tile-blurb { margin: 6px 0 0; font-size: 15px; line-height: 23px; color: var(--ink-2); }
.tile-small .tile-blurb { font-size: 14px; line-height: 21px; }
.tile-body { margin: 16px 0 14px; }
.tile-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line-2); }
.tile-op { margin: 0; display: flex; align-items: center; gap: 10px; }
.tile-small .tile-op { gap: 8px; }
.tile-op .verb { font-size: 11px; }
.home .tile-op code { background: none; border: 0; padding: 0; font-size: 13px; line-height: 20px; color: var(--ink); overflow-wrap: break-word; }
.home .tile-small .tile-op code { font-size: 12px; }
.tile-credits { margin-left: auto; font-size: 13px; line-height: 20px; font-weight: 700; color: var(--ink-3); text-align: right; }
.tile-note { margin: 4px 0 0; font-size: 12px; line-height: 18px; font-weight: 700; color: var(--ink-3); }
.tile-when { margin: 0 0 8px; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-3); }
.tile-line { margin: 10px 0 0; font-size: 12px; line-height: 18px; color: var(--ink-2); }
.bar { position: relative; flex-grow: 1; height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.bar-thin { height: 6px; border-radius: 3px; }
.bar-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: inherit; background: var(--saffron); }
.pg-date { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-3); }
.pg-limbs { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.pg-limbs li { min-width: 0; padding: 8px 12px; background: var(--card-tint); border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.pg-limbs span, .pg-limbs b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pg-k { font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-3); }
.pg-limbs b { margin-top: 2px; font-size: 15px; line-height: 20px; font-weight: 800; color: var(--ink); }
.pg-s { margin-top: 2px; font-size: 12px; line-height: 16px; color: var(--ink-2); }
.pg-day { position: relative; margin-top: 14px; }
.pg-ends { position: relative; display: flex; justify-content: space-between; font-size: 12px; line-height: 18px; color: var(--ink-3); }
.pg-noon { position: absolute; top: 0; transform: translateX(-50%); }
.pg-bar { position: relative; margin-top: 6px; height: 30px; border-radius: 8px; background: var(--line-2); }
.pg-bar-good { margin-top: 8px; }
.pg-bad { position: absolute; top: 0; bottom: 0; border-radius: 4px; background: var(--maroon); color: #FFFFFF; font-size: 12px; line-height: 30px; font-weight: 700; text-align: center; white-space: nowrap; overflow: hidden; }
.pg-times { position: relative; height: 16px; margin-top: 4px; font: 11px/16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-3); }
.pg-times span { position: absolute; text-align: center; white-space: nowrap; }
.pg-good { position: absolute; top: 0; bottom: 0; border-radius: 6px; background: var(--tulsi-deep); }
.pg-good-label { position: absolute; top: 0; margin-left: 10px; font-size: 12px; line-height: 30px; font-weight: 800; color: var(--tulsi-deep); white-space: nowrap; }
.pg-list { display: none; list-style: none; margin: 12px 0 0; padding: 0; font-size: 13px; line-height: 20px; color: var(--ink-2); }
.mm-top { display: flex; align-items: center; gap: 20px; }
.mm-score { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-shrink: 0; }
.mm-score b { font: 500 64px/64px var(--font-display); letter-spacing: -.02em; color: var(--ink); }
.mm-score span { font: 22px/28px var(--font-display); color: var(--ink-3); }
.mm-verdict { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; min-width: 0; }
.mm-verdict p { margin: 0; font-size: 15px; line-height: 22px; font-weight: 800; color: var(--ink); }
.mm-kootas { list-style: none; margin: 18px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(4, 20px); grid-auto-flow: column; column-gap: 24px; row-gap: 10px; }
.mm-kootas li, .hs-scores li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.mm-name { width: 92px; flex-shrink: 0; font-size: 13px; line-height: 20px; font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.mm-val { width: 36px; flex-shrink: 0; text-align: right; font: 12px/20px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }
.op-list { list-style: none; margin: -4px 0 0; padding: 0; }
.op-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 30px; border-bottom: 1px solid var(--line-2); }
.op-list li span:first-child { font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
.op-cr { flex-shrink: 0; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-3); }
.hs-sign { margin: 0; display: flex; align-items: center; gap: 12px; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-3); }
.hs-word { font: 400 30px/36px var(--font-deva); color: var(--ink); }
.hs-reading { margin: 8px 0 0; max-height: 52px; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font: 16px/26px var(--font-deva); color: var(--ink); }
.hs-scores { list-style: none; margin: 16px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.hs-name { width: 52px; flex-shrink: 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-2); }
.hs-val { width: 22px; flex-shrink: 0; text-align: right; font: 12px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink); }
.hs-note { width: 72px; flex-shrink: 0; font-size: 12px; line-height: 18px; color: var(--ink-3); }
.mg-label { margin: 0; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-3); }
.mg-sev { margin: 2px 0 0; font: 600 22px/28px var(--font-display); color: var(--ink); }
.mg-houses { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.mg-houses li { padding: 8px 10px; background: var(--card-tint); border: 1px solid var(--line-2); border-radius: var(--r-sm); }
.mg-houses b { display: block; font: 600 22px/26px var(--font-display); color: var(--ink); }
.mg-houses span { font-size: 12px; line-height: 16px; color: var(--ink-3); }
.mg-cancel { list-style: none; margin: 12px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.mg-cancel li { display: flex; gap: 8px; font-size: 13px; line-height: 19px; color: var(--ink-2); }
.mg-cancel svg { flex-shrink: 0; margin-top: 2px; color: var(--tulsi-deep); }
.ds-bar { position: relative; height: 36px; }
.ds-seg { position: absolute; top: 0; bottom: 0; border: 0 solid transparent; border-width: 0 1px; background-clip: padding-box; border-radius: 6px; background-color: var(--line-2); color: var(--ink-2); font-size: 12px; line-height: 36px; font-weight: 800; text-align: center; overflow: hidden; }
.ds-seg.ds-now { background-color: var(--saffron); color: var(--ink); }
.ds-years { position: relative; height: 18px; margin-top: 6px; font: 12px/18px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-3); }
.ds-y0 { position: absolute; left: 0; } .ds-y1 { position: absolute; right: 0; } .ds-ym { position: absolute; transform: translateX(-50%); }
.ds-when { margin: 14px 0 0; font-size: 12px; line-height: 16px; font-weight: 700; color: var(--ink-3); }
.ds-rows { list-style: none; margin: 4px 0 0; padding: 0; }
.ds-rows li { display: flex; align-items: center; gap: 8px; min-height: 28px; border-bottom: 1px solid var(--line-2); }
.ds-k { width: 150px; flex-shrink: 0; font-size: 14px; line-height: 20px; color: var(--ink-2); }
.ds-rows b { font-size: 14px; line-height: 20px; font-weight: 800; color: var(--ink); }
.ds-rows b.ds-md { color: var(--saffron-ink); }
.ds-dates { margin-left: auto; font: 12px/20px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-3); white-space: nowrap; }
.pl-label { margin: 0; font-size: 13px; line-height: 18px; font-weight: 700; color: var(--ink-2); }
.pl-query { position: relative; margin: 6px 0 0; height: 44px; padding: 0 14px 0 40px; display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--card); font-size: 15px; font-weight: 600; color: var(--ink); }
.pl-query svg { position: absolute; left: 14px; top: 13px; color: var(--ink-3); }
.pl-results { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.pl-results li { display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border: 1px solid transparent; border-radius: var(--r-sm); }
.pl-results li.pl-on { background: var(--card-tint); border-color: var(--line); }
.pl-name { min-width: 0; margin-right: auto; }
.pl-name b { display: block; font-size: 15px; line-height: 20px; font-weight: 800; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pl-name span { display: block; font-size: 12px; line-height: 16px; color: var(--ink-3); }
.home .pl-results code { width: 78px; flex-shrink: 0; text-align: right; background: none; border: 0; padding: 0; font-size: 12px; line-height: 20px; color: var(--ink-3); }
.ls-grid { width: 138px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.ls-grid span { height: 42px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.ls-on { background: #FFE7C2; border: 1px solid var(--gold-soft); font-size: 16px; font-weight: 800; color: var(--ink); }
.ls-off { border: 1px dashed #D9C4A8; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.ls-missing { margin: 10px 0 0; font-size: 12px; line-height: 18px; color: var(--ink-2); }
.ci-thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.ci-thumbs figure { margin: 0; }
.ci-thumbs svg { display: block; }
.ci-north rect { fill: var(--card-tint); stroke: var(--gold); stroke-width: 1.5; }
.ci-south rect { fill: var(--ink-panel); stroke: var(--gold-soft); stroke-width: 1.5; }
.ci-north path { fill: none; stroke: var(--gold); stroke-width: 1; }
.ci-south path { fill: none; stroke: var(--gold-soft); stroke-width: 1; }
.ci-thumbs figcaption { margin-top: 6px; font: 12px/16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-3); }
.tr-list, .fe-list, .lk-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.tr-list li { display: flex; gap: 10px; }
.tr-dot { flex-shrink: 0; width: 8px; height: 8px; margin-top: 5px; border-radius: var(--r-pill); background: var(--saffron); }
.tr-date { display: block; font: 12px/16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--ink-3); }
.tr-list b, .fe-list b, .lk-list b { display: block; margin-top: 2px; font-size: 14px; line-height: 20px; font-weight: 700; color: var(--ink); }
.fe-hi { display: block; font: 15px/20px var(--font-deva); color: var(--ink-2); }
.lk-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.kv { margin: 0; }
.kv div { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 24px; border-bottom: 1px solid var(--line-2); font: 12px/16px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.kv dt { color: var(--ink-3); }
.kv dd { margin: 0; font-weight: 700; color: var(--ink); text-align: right; }
.kv-wide dd { font: 700 13px/18px var(--font-body); }

/* the API never guesses (dark band) */
.home-never { padding: 96px 0; background: var(--ink-panel); }
.home-never :focus-visible { outline-color: #FFD9A8; }
.home .home-never h2 { color: #FFF3E2; }
.never-lede { margin: 14px 0 0; max-width: 720px; font-size: 18px; line-height: 28px; color: #E9D6BD; }
.home-never p code, .home-never li code { background: none; border: 0; padding: 0; color: #FFD9A8; }
.ng-cards { margin-top: 48px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.ng-card { min-width: 0; padding: 28px; display: flex; flex-direction: column; border-radius: var(--r-md); background: rgba(255,248,238,.04); border: 1px solid rgba(255,217,168,.14); }
.home .ng-card h3 { color: #FFF3E2; text-wrap: balance; }
.ng-card > p { margin: 12px 0 20px; font-size: 15px; line-height: 24px; color: #E9D6BD; }
.ng-box { margin-top: auto; padding: 14px 16px; border-radius: var(--r-sm); background: #1E120B; border: 1px solid rgba(255,217,168,.10); color: #FBEBD6; }
.ng-box pre { margin: 0; padding: 0; background: none; border-radius: 0; color: inherit; font-size: 12.5px; line-height: 20px; overflow-x: auto; }
.ng-status { margin: 6px 0; display: flex; align-items: center; gap: 8px; white-space: nowrap; font: 12.5px/20px ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.st { height: 20px; padding: 0 6px; border-radius: 4px; font-weight: 700; line-height: 20px; }
.st-bad { background: rgba(245,163,192,.16); color: #F5A3C0; }
.st-ok { background: rgba(143,217,176,.14); color: #8FD9B0; }
.ng-features { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; }
.ng-features svg { display: block; color: var(--gold-soft); }
.ng-features b { display: block; margin-top: 14px; font-size: 16px; line-height: 24px; font-weight: 800; color: #FFF3E2; }
.ng-features p { margin: 6px 0 0; font-size: 14px; line-height: 22px; color: #D9C4A8; }

/* numbers you can check */
.home-numbers { padding: 96px 0; background: var(--bg); }
.num-head { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: end; }
.num-intro { grid-column: span 5; }
.num-intro p { margin: 14px 0 0; font-size: 18px; line-height: 28px; color: var(--ink-2); text-wrap: pretty; }
.num-figs { grid-column: span 7; list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.num-figs li { padding-top: 16px; border-top: 1px solid var(--line); }
.num-figs b { display: block; font: 500 56px/60px var(--font-display); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.num-figs p { margin: 8px 0 0; font-size: 14px; line-height: 21px; color: var(--ink-2); }
.num-cards { margin-top: 48px; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; }
.num-card { min-width: 0; padding: 32px; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-xs); }
.num-ruler { grid-column: span 7; } .num-conv { grid-column: span 5; }
.home .num-card h3 { font-size: 22px; line-height: 28px; }
.num-sub { margin: 4px 0 0; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.ruler-scroll { margin-top: 22px; overflow-x: auto; }
.ruler { display: block; }
.ruler text { font-family: var(--font-body); }
.ru-axis { stroke: var(--line); stroke-width: 1; }
.ru-bar { fill: var(--saffron); }
.ru-label { fill: var(--ink); font-size: 13px; font-weight: 700; }
.ru-line, .ru-tick { stroke: var(--gold); stroke-width: 1; }
.ru-big { stroke: var(--gold-ink); stroke-width: 1.25; }
.ru-num { fill: var(--ink-3); font-size: 12px; font-weight: 600; text-anchor: middle; }
.ru-num.ru-first { text-anchor: start; }
.num-card > p:last-child { margin: 16px 0 0; font-size: 14px; line-height: 22px; color: var(--ink-2); }
.num-conv dl { margin: 14px 0 0; }
.num-conv dl div { display: flex; align-items: center; gap: 8px; min-height: 34px; border-bottom: 1px solid var(--line-2); }
.num-conv dt { width: 130px; flex-shrink: 0; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.num-conv dd { margin: 0; font-size: 15px; line-height: 20px; font-weight: 700; color: var(--ink); }

/* every operation, on every plan */
.home-plans { padding: 96px 0; background: var(--bg-2); }
.plan-grid { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.plan { min-width: 0; padding: 28px; display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--sh-xs); }
.plan-free { border-color: var(--saffron); box-shadow: 0 0 0 3px rgba(255,122,26,.12), var(--sh-md); }
.plan-head { min-height: 30px; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.badge-open { height: 24px; padding: 0 10px; border-radius: var(--r-pill); background: #E3F4EA; color: var(--tulsi-deep); font-size: 12px; line-height: 24px; font-weight: 800; white-space: nowrap; }
.plan-price { margin: 16px 0 0; font: 500 44px/48px var(--font-display); letter-spacing: -.02em; color: var(--ink); white-space: nowrap; }
.plan-per { margin: 4px 0 0; min-height: 20px; font-size: 14px; line-height: 20px; color: var(--ink-3); }
.plan-cta { margin-top: 20px; }
.plan-feats { list-style: none; margin: 22px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 10px; }
.plan-feats li { display: flex; gap: 10px; font-size: 14px; line-height: 22px; color: var(--ink-2); }
.plan-feats li::before { content: ""; flex-shrink: 0; width: 16px; height: 16px; margin-top: 3px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23C9A227' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") no-repeat center / 16px 16px; }
.plans-foot { margin-top: 32px; display: flex; align-items: flex-start; gap: 60px; }
.plans-foot > p:first-child { margin: 0; max-width: 800px; font-size: 15px; line-height: 24px; color: var(--ink-2); }
.plans-links { margin: 0 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; flex-shrink: 0; font-size: 15px; line-height: 22px; font-weight: 700; }

/* the closing call to action, at the top of the footer */
.footer-lead { padding-top: 40px; }
.cta-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: start; padding-bottom: 64px; margin-bottom: 56px; border-bottom: 1px solid rgba(255,217,168,.14); }
.cta-text { grid-column: span 6; }
.cta-text h2 { margin: 0; font: 500 clamp(32px, 3.6vw, 44px)/1.18 var(--font-display); letter-spacing: -.015em; color: #FFF3E2; }
.cta-text p { margin: 14px 0 0; max-width: 520px; font-size: 18px; line-height: 28px; color: #E9D6BD; }
.cta-text .cta-btns { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.cta-steps { grid-column: 8 / span 5; list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; counter-reset: step; }
.cta-steps li { display: flex; gap: 16px; counter-increment: step; }
.cta-steps li::before { content: counter(step); flex-shrink: 0; width: 32px; height: 32px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--gold); border-radius: var(--r-pill); font: 600 15px/1 var(--font-display); color: var(--gold-soft); }
.cta-steps b { display: block; font-size: 16px; line-height: 24px; font-weight: 800; color: #FFF3E2; }
.cta-steps span { display: block; margin-top: 2px; font-size: 14px; line-height: 22px; color: #D9C4A8; }
.cta-steps code { background: none; border: 0; padding: 0; color: #FFD9A8; }

/* narrower screens (no mobile mockup: the desktop design, stacked) */
@media (max-width: 1180px) {
  .hero-grid { gap: 40px; min-height: 0; }
  .hero-text { flex: 1 1 0; }
  .hero-card { flex: 0 1 460px; }
  .hero-stats b { font-size: 26px; line-height: 32px; white-space: nowrap; }
  .num-intro, .num-figs, .num-ruler, .num-conv { grid-column: 1 / -1; }
  .call-req { flex-basis: 55%; }
}
@media (max-width: 1000px) {
  .span-3, .span-4 { grid-column: span 6; }
  .span-5, .span-6, .span-7, .span-9 { grid-column: 1 / -1; }
  .plan-grid, .call-parts, .ng-features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ng-cards { grid-template-columns: 1fr; }
  .plans-foot { flex-direction: column; gap: 16px; }
  .plans-links { margin: 0; align-items: flex-start; }
  .cta-text, .cta-steps { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .hero-grid { flex-direction: column; align-items: stretch; gap: 48px; }
  .hero-text, .hero-card { flex: none; }
  .hero-card { width: 100%; max-width: 560px; margin: 0 auto; }
  .sec-head { flex-direction: column; align-items: flex-start; gap: 16px; }
  .call-panel { flex-direction: column; min-height: 0; }
  .call-req { flex: none; }
  .call-res { border-left: 0; border-top: 1px solid rgba(255,217,168,.10); }
}
@media (max-width: 640px) {
  .hero-ring { display: none; }
  .home-hero { padding: 32px 0 64px; }
  .home-call, .home-build, .home-never, .home-numbers, .home-plans { padding: 64px 0; }
  .hero-stats, .num-figs, .plan-grid, .call-parts, .ng-features { grid-template-columns: 1fr; }
  .hero-stats { gap: 12px; }
  .num-figs b { font-size: 44px; line-height: 48px; }
  .span-3, .span-4, .span-5, .span-6, .span-7, .span-9 { grid-column: 1 / -1; }
  .tile, .num-card, .ng-card { padding: 20px; }
  .hc-switches { justify-content: flex-start; }
  .hc-foot { flex-direction: column; align-items: flex-start; }
  .pg-limbs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tile-op { flex-wrap: wrap; }
  .tile-credits { flex-basis: 100%; margin-left: 0; text-align: left; }
  .pg-day { display: none; }
  .pg-list { display: block; }
  .mm-top { flex-direction: column; align-items: flex-start; }
  .mm-kootas { grid-template-columns: 1fr; grid-template-rows: none; grid-auto-flow: row; }
  .ds-rows li { flex-wrap: wrap; padding: 4px 0; }
  .ds-k { width: 120px; }
  .pl-results li { flex-wrap: wrap; padding: 6px 12px; }
  .call-code { padding: 18px 20px; }
  .call-bar { flex-wrap: wrap; padding: 10px 14px; }
}

.home-nocode { margin-top: 40px; padding: 24px; background: var(--bg); border-radius: 12px; }
.home-nocode h3 { margin: 0 0 6px; }
.home-nocode p { margin: 0 0 12px; }
.home-nocode ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px 24px; margin: 0; padding: 0; list-style: none; }

/* building with it: SDKs, MCP, tutorials, widgets */
.home-tools { padding: 64px 0; }
.tools-grid { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.tools-grid a { display: block; height: 100%; padding: 20px; border: 1px solid var(--line); border-radius: 12px; color: var(--ink); text-decoration: none; }
.tools-grid a:hover { border-color: var(--saffron-deep); }
.tools-grid b { display: block; font-size: 17px; line-height: 24px; }
.tools-grid span { display: block; margin-top: 6px; font-size: 15px; line-height: 22px; color: var(--ink-2, inherit); }
@media (max-width: 960px) { .tools-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .tools-grid { grid-template-columns: 1fr; } }
