/* Public site layout on top of tokens.css + base.css (docs/ux). No JS, no web fonts, no images in the critical path.
   Look: light pages with a soft indigo wash; deep "ink" navy for the home hero, the call-to-action card and the footer;
   marigold only for the main call to action and small highlights on ink. */

body { background: radial-gradient(1200px 420px at 50% -120px, var(--ds-primary-soft), transparent 70%) no-repeat, var(--ds-bg); }
h1, h2, h3 { letter-spacing: -0.015em; }
:lang(hi) h1, :lang(hi) h2, :lang(hi) h3 { letter-spacing: 0; } /* tracking hurts Devanagari */
h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem); }

/* Buttons (additions to base.css) */
.btn { transition: background-color .15s, border-color .15s, transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { box-shadow: 0 1px 2px rgb(16 24 40 / .12), inset 0 1px 0 rgb(255 255 255 / .12); }
.btn-primary:hover { box-shadow: 0 6px 16px -4px rgb(47 62 158 / .45); }
.btn-secondary:hover { background: var(--ds-primary-soft); }
.btn-accent { background: var(--ds-accent); color: var(--ds-on-accent); box-shadow: 0 6px 20px -6px rgb(232 163 23 / .6); }
.btn-accent:hover { background: var(--ds-accent-hover); color: var(--ds-on-accent); }
.btn-on-dark { color: var(--ds-on-ink); border-color: rgb(255 255 255 / .35); background: rgb(255 255 255 / .06); }
.btn-on-dark:hover { color: var(--ds-on-ink); background: rgb(255 255 255 / .14); }
.hero-band :focus-visible, .cta-band :focus-visible, .site-footer :focus-visible { outline-color: var(--ds-on-ink-accent); }

/* Header: logo · nav (≥ 900 px) · actions; below 900 px the nav moves into a <details> menu */
.site-header { position: sticky; top: 0; z-index: 5; background: var(--ds-surface);
  background: color-mix(in srgb, var(--ds-surface) 88%, transparent); backdrop-filter: saturate(180%) blur(12px); }
.site-header .container { min-height: 68px; }
.logo { display: inline-flex; align-items: center; gap: var(--ds-space-2); letter-spacing: -0.02em; }
.logo .logo-text { color: var(--ds-text); }
.logo-mark { width: 30px; height: 30px; flex: none; color: var(--ds-primary); }
.site-nav { gap: var(--ds-space-1); }
.site-nav a { padding: var(--ds-space-2) var(--ds-space-3); border-radius: var(--ds-radius-pill); color: var(--ds-text-muted); }
.site-nav a:hover { color: var(--ds-text); background: var(--ds-surface-2); }
.site-nav a[aria-current=page] { color: var(--ds-primary); background: var(--ds-primary-soft); }
.header-actions { display: flex; align-items: center; gap: var(--ds-space-3); white-space: nowrap; }
.header-actions > a:not(.btn) { min-height: var(--ds-target-min); display: inline-flex; align-items: center; }
.signin { display: none; }
@media (min-width: 900px) { .signin { display: inline-flex; } }

.mobile-nav { position: relative; }
.mobile-nav summary { list-style: none; cursor: pointer; min-height: var(--ds-target-min); display: inline-flex; align-items: center; gap: var(--ds-space-2);
  padding: 0 var(--ds-space-3); border: 1px solid var(--ds-border-strong); border-radius: var(--ds-radius-md); font-weight: var(--ds-weight-semibold); }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav summary::before { content: "☰"; font-size: 1.1em; }
.mobile-nav[open] summary::before { content: "✕"; }
.mobile-nav nav { position: absolute; right: 0; top: calc(100% + var(--ds-space-2)); min-width: 14rem; display: grid; background: var(--ds-surface);
  border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); box-shadow: var(--ds-shadow-3); padding: var(--ds-space-2); }
.mobile-nav nav a { min-height: var(--ds-target-min); display: flex; align-items: center; padding: 0 var(--ds-space-3); color: var(--ds-text);
  text-decoration: none; border-radius: var(--ds-radius-md); }
.mobile-nav nav a:hover { background: var(--ds-primary-soft); }
@media (min-width: 900px) { .mobile-nav { display: none; } }

main:focus { outline: none; }
/* Footer sits at the bottom on short pages (404, thin pages) */
body { min-height: 100vh; display: flex; flex-direction: column; }
body > main { flex: 1 0 auto; }

/* Page sections */
.section { padding-top: var(--ds-space-8); } /* top only: keep .container side gutters */
.hero { padding-top: var(--ds-space-7); padding-bottom: var(--ds-space-6); }
.hero .lead { font-size: var(--ds-text-xl); color: var(--ds-text-muted); max-width: 40rem; }
.hero .row { margin-top: var(--ds-space-5); }
.kicker { font-size: var(--ds-text-sm); font-weight: var(--ds-weight-bold); letter-spacing: .08em; text-transform: uppercase; color: var(--ds-primary); margin-bottom: var(--ds-space-2); }
.section-lead { color: var(--ds-text-muted); font-size: var(--ds-text-lg); max-width: 40rem; margin-bottom: var(--ds-space-6); }
.prose { line-height: 1.7; }
.prose h2 { margin-top: var(--ds-space-6); }
.prose li + li { margin-top: var(--ds-space-2); }

/* Home hero on ink */
.hero-band { background: radial-gradient(900px 500px at 85% 10%, rgb(130 145 255 / .22), transparent 60%),
  radial-gradient(800px 600px at 0% 100%, rgb(95 115 255 / .28), transparent 60%), linear-gradient(160deg, var(--ds-ink), var(--ds-ink-2));
  color: var(--ds-on-ink); }
.hero-band .hero { padding-top: var(--ds-space-8); padding-bottom: var(--ds-space-8); }
.hero-band h1 { font-size: clamp(2rem, 1.3rem + 2.8vw, 3.25rem); letter-spacing: -0.025em; line-height: 1.1; }
.hero-band .h1-sub { color: var(--ds-on-ink-accent); letter-spacing: 0; }
.hero-band .lead { color: var(--ds-on-ink-muted); }
.trust { display: flex; flex-wrap: wrap; gap: var(--ds-space-2) var(--ds-space-5); list-style: none; padding: 0; margin: var(--ds-space-5) 0 0;
  color: var(--ds-on-ink-muted); font-size: var(--ds-text-sm); }
.trust li::before { content: "✓"; color: var(--ds-on-ink-accent); font-weight: 700; margin-right: var(--ds-space-2); }

/* Call to action card (end of every page) */
.cta-band { padding: var(--ds-space-8) 0 0; }
.cta-band > .container { position: relative; overflow: hidden; color: var(--ds-on-ink-muted); border-radius: 20px; padding: var(--ds-space-7) var(--ds-space-6);
  background: radial-gradient(600px 300px at 100% 0%, rgb(130 145 255 / .28), transparent 60%), linear-gradient(135deg, var(--ds-ink-2), var(--ds-ink));
  box-shadow: var(--ds-shadow-3); width: calc(100% - 2 * var(--ds-space-4)); max-width: calc(var(--ds-content-max) - 2 * var(--ds-space-4)); }
@media (max-width: 640px) { .cta-band > .container { padding: var(--ds-space-6) var(--ds-space-5); } }
.cta-band h2 { max-width: 40rem; color: var(--ds-on-ink); }
.cta-band p { max-width: 40rem; }
.cta-band .btn { margin-top: var(--ds-space-2); }

/* Footer on ink */
.site-footer { margin-top: var(--ds-space-8); padding: var(--ds-space-7) 0 var(--ds-space-5); background: var(--ds-ink); color: var(--ds-on-ink-muted); border-top: 0; }
.footer-groups { display: grid; gap: var(--ds-space-5); grid-template-columns: repeat(auto-fit, minmax(11rem, 1fr)); margin-bottom: var(--ds-space-6); }
.footer-h { font-size: var(--ds-text-sm); text-transform: uppercase; letter-spacing: .08em; color: var(--ds-on-ink); margin: 0 0 var(--ds-space-3); }
.site-footer a { color: var(--ds-on-ink-muted); text-decoration: none; }
.site-footer a:hover { color: var(--ds-on-ink); text-decoration: underline; }
.site-footer li a { display: inline-block; padding: var(--ds-space-1) 0; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--ds-space-3);
  border-top: 1px solid rgb(255 255 255 / .12); padding-top: var(--ds-space-4); margin: 0; }
.site-footer .logo, .site-footer .logo:hover, .site-footer .logo .logo-text { color: var(--ds-on-ink); text-decoration: none; }
.site-footer .logo-text span { color: var(--ds-on-ink-accent); }
.site-footer .logo-mark { color: #4a5bd6; width: 24px; height: 24px; }
.logo-sm { font-size: var(--ds-text-md); }
.footer-bottom > span:first-child { display: inline-flex; flex-wrap: wrap; align-items: center; gap: var(--ds-space-2); }

@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } .btn:hover, .card:hover { transform: none; } }

/* Page building blocks */
.eyebrow { display: block; font-size: var(--ds-text-md); font-weight: var(--ds-weight-semibold); color: var(--ds-primary); margin-bottom: var(--ds-space-2); }
.hero-grid { display: grid; gap: var(--ds-space-7); align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } }

/* Product preview drawn in HTML/CSS: an app window */
.preview { margin: 0; color: var(--ds-text); background: var(--ds-surface); border: 1px solid rgb(255 255 255 / .2); border-radius: 16px;
  box-shadow: var(--ds-shadow-3), 0 0 0 8px rgb(255 255 255 / .06); font-size: var(--ds-text-sm); overflow: hidden; }
.preview-bar { display: flex; align-items: center; gap: var(--ds-space-3); padding: var(--ds-space-3) var(--ds-space-4); margin: 0;
  background: var(--ds-surface-2); border-bottom: 1px solid var(--ds-border); color: var(--ds-text-muted); font-weight: var(--ds-weight-semibold); }
.dots { display: inline-flex; gap: 6px; }
.dots::before, .dots::after, .dots i { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ds-border); }
.preview-body { padding: var(--ds-space-4); }
.preview-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ds-space-3); margin-bottom: var(--ds-space-3); }
.preview-stats div { background: var(--ds-surface-2); border-radius: var(--ds-radius-md); padding: var(--ds-space-3); }
.preview-stats b { display: block; font-size: var(--ds-text-2xl); line-height: 1.1; font-variant-numeric: tabular-nums; }
.preview-stats .over b { color: var(--ds-danger); }
.preview-stats span { color: var(--ds-text-muted); font-size: var(--ds-text-xs); }
.preview ul { list-style: none; margin: 0; padding: 0; }
.preview li { display: flex; justify-content: space-between; align-items: center; gap: var(--ds-space-3); padding: var(--ds-space-3) 0; border-bottom: 1px solid var(--ds-border); }
.preview li:last-child { border-bottom: 0; padding-bottom: 0; }
.preview .chip { white-space: normal; text-align: right; flex: 0 1 auto; }

/* Cards */
.cards { display: grid; gap: var(--ds-space-5); }
@media (min-width: 720px) { .cards { grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr)); } }
.card { transition: transform .15s, box-shadow .15s, border-color .15s; }
.cards .card:hover { transform: translateY(-2px); box-shadow: var(--ds-shadow-2); border-color: var(--ds-border-strong); }
.cards .card h2, .cards .card h3 { margin-top: 0; font-size: var(--ds-text-xl); }
.cards .card h2 a { text-decoration: none; }
.cards .card > a:last-child { font-weight: var(--ds-weight-semibold); text-decoration: none; }
.cards .card > a:last-child::after { content: " →" / ""; }
.cards .card > a:last-child:hover { text-decoration: underline; }
.icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; margin-bottom: var(--ds-space-4);
  background: var(--ds-primary-soft); color: var(--ds-primary); }
.icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon-wa { background: var(--ds-success-bg); color: var(--ds-whatsapp); }
.icon-gold { background: var(--ds-warning-bg); color: var(--ds-warning); }

/* Numbered steps */
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; display: grid; gap: var(--ds-space-4); }
@media (min-width: 720px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); } }
.steps li { counter-increment: s; background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg);
  padding: var(--ds-space-5); box-shadow: var(--ds-shadow-1); }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px;
  background: linear-gradient(135deg, var(--ds-primary), #4a5bd6); color: var(--ds-on-primary); font-weight: 700; margin-bottom: var(--ds-space-4); }
.steps h3 { font-size: var(--ds-text-lg); }
.steps p { margin: 0; color: var(--ds-text-muted); }

.checks { list-style: none; padding: 0; }
.checks li { padding-left: 2rem; position: relative; }
.checks li + li { margin-top: var(--ds-space-3); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: .1em; display: grid; place-items: center; width: 1.35rem; height: 1.35rem;
  border-radius: 50%; background: var(--ds-success-bg); color: var(--ds-success); font-size: .8em; font-weight: 700; }

/* FAQ */
.faq-list { display: grid; gap: var(--ds-space-4); }
@media (min-width: 840px) { .faq-list { grid-template-columns: repeat(2, 1fr); } }
.faq-item { background: var(--ds-surface); border: 1px solid var(--ds-border); border-radius: var(--ds-radius-lg); padding: var(--ds-space-5); }
.faq h3 { font-size: var(--ds-text-lg); margin: 0 0 var(--ds-space-2); }
.faq-item p { margin: 0; color: var(--ds-text-muted); }

.note { border-left: 4px solid var(--ds-warning); background: var(--ds-warning-bg); padding: var(--ds-space-3) var(--ds-space-4); border-radius: var(--ds-radius-md); }
.contact-form { max-width: 36rem; }
.contact-form .field + .field { margin-top: var(--ds-space-4); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.h1-sub { margin: var(--ds-space-3) 0 0; font-size: var(--ds-text-xl); }
.ok { background: var(--ds-success-bg); color: var(--ds-success); padding: var(--ds-space-3) var(--ds-space-4); border-radius: var(--ds-radius-md); }
.alert { background: var(--ds-danger-bg); color: var(--ds-danger); padding: var(--ds-space-3) var(--ds-space-4); border-radius: var(--ds-radius-md); }
.company { display: grid; grid-template-columns: max-content 1fr; gap: var(--ds-space-2) var(--ds-space-4); }
.company dt { font-weight: var(--ds-weight-semibold); }
.company dd { margin: 0; }

/* Tables: a rounded, bordered panel */
.table { border: 1px solid var(--ds-border); border-collapse: separate; border-spacing: 0; border-radius: var(--ds-radius-lg); overflow: hidden; box-shadow: var(--ds-shadow-1); }
.table th, .table td { padding: var(--ds-space-3) var(--ds-space-4); }
.table tbody tr:last-child td { border-bottom: 0; }
.due-table tr.past td { color: var(--ds-text-muted); }
.due-table time { font-variant-numeric: tabular-nums; white-space: nowrap; font-weight: var(--ds-weight-semibold); }
.due-table tr.past time { font-weight: var(--ds-weight-regular); }
.verified { display: flex; flex-wrap: wrap; gap: var(--ds-space-2) var(--ds-space-4); align-items: baseline; }
.month-h { margin-top: var(--ds-space-6); }
.related { columns: 2 14rem; padding-left: 1.25rem; }
.related li { break-inside: avoid; }

/* Calculators */
.calc { max-width: 44rem; margin-top: var(--ds-space-4); }
.calc select, .calc input { max-width: 100%; }
.calc { display: grid; gap: var(--ds-space-4); }
.calc .field + .field, .grid > .field + .field { margin-top: 0; }
.calc .btn { justify-self: start; margin-top: var(--ds-space-2); }
input:focus, select:focus, textarea:focus { border-color: var(--ds-primary); box-shadow: 0 0 0 3px var(--ds-primary-soft); outline: none; }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--ds-focus); outline-offset: 1px; }
.result { margin-top: var(--ds-space-4); }
.result .big { font-size: var(--ds-text-2xl); font-weight: var(--ds-weight-bold); margin-bottom: var(--ds-space-2); }
.result:empty { display: none; }

/* Blog */
.post-list { display: grid; gap: var(--ds-space-5); }
.post-card h2 { font-size: var(--ds-text-xl); margin-bottom: var(--ds-space-1); }
.post-card p { margin-bottom: var(--ds-space-2); }
.article { max-width: var(--ds-prose-max); }
.article-body { line-height: 1.75; font-size: 1.0625rem; }
.article-body img { max-width: 100%; height: auto; border-radius: var(--ds-radius-lg); }
.article-body pre { overflow-x: auto; }
.article-body table { display: block; overflow-x: auto; }
