/* Two Quarters: shared styles. Mobile-first; light by default, dark via
   prefers-color-scheme. `.dark` forces the dark palette (Nandini page and band). */

:root {
  --purple: #7F77DD;
  --teal: #1D9E75;
  --on-brand: #16151C;

  --bg: #FBFAF8;
  --bg-alt: #F3F2EE;
  --surface: #FFFFFF;
  --ink: #16151C;
  --ink-2: #2C2B33;
  --muted: #4A4853;
  --line: #E6E4DE;
  --line-alt: #DDDAD3;
  --field: #86838F;          /* 3:1+ against every light surface */
  --tag: #8C8A95;
  --link: #4F46B0;
  --link-hover: #3A3290;
  --accent-teal: #0F6E51;
  --tint-a: #E4E1F7;
  --tint-b: #DCEFE7;
  --ok: #0F6E51;
  --err: #A3262E;
  --header-bg: rgba(251, 250, 248, .92);

  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  --sans: Manrope, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --gutter: 20px;
  --max: 1280px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #111016;
    --bg-alt: #17161D;
    --surface: #17161D;
    --ink: #EEEDF3;
    --ink-2: #D6D4DE;
    --muted: #B0AEBA;
    --line: #2C2B34;
    --line-alt: #2C2B34;
    --field: #7E7C88;
    --tag: #7E7C88;
    --link: #ABA5F0;
    --link-hover: #C9C5F7;
    --accent-teal: #5FD0A6;
    --tint-a: #2E2A55;
    --tint-b: #173D31;
    --ok: #5FD0A6;
    --err: #FF8A8F;
    --header-bg: rgba(17, 16, 22, .92);
    color-scheme: dark;
  }
}

.dark {
  --bg: #111016;
  --bg-alt: #17161D;
  --surface: #17161D;
  --ink: #EEEDF3;
  --ink-2: #D6D4DE;
  --muted: #B0AEBA;
  --line: #2C2B34;
  --line-alt: #2C2B34;
  --field: #7E7C88;
  --tag: #7E7C88;
  --link: #ABA5F0;
  --link-hover: #C9C5F7;
  --accent-teal: #5FD0A6;
  --tint-a: #2E2A55;
  --tint-b: #173D31;
  --header-bg: rgba(17, 16, 22, .92);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, p, ol, ul { margin: 0; }
ol, ul { padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
input, textarea, button { font: inherit; color: inherit; }

a { color: var(--link); text-decoration: none; }
a:hover { color: var(--link-hover); text-decoration: underline; }
:focus-visible { outline: 2px solid var(--link); outline-offset: 3px; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--bg); padding: 10px 14px; border-radius: 8px; font-weight: 600;
}
.skip:focus { top: 12px; color: var(--bg); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.wrap { max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
@media (min-width: 720px) { :root { --gutter: 40px; } }
@media (min-width: 1100px) { :root { --gutter: 56px; } }

.label {
  font-family: var(--mono); font-size: 12px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--muted); font-weight: 500;
}
.swatch { display: inline-flex; align-items: center; gap: 10px; }
.swatch::before { content: ""; width: 10px; height: 10px; background: var(--sw, var(--purple)); flex: none; }
.swatch--teal { --sw: var(--teal); }
.lede { font-size: 17px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.section-title { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.15; }
@media (min-width: 900px) { .section-title { font-size: 34px; letter-spacing: -.025em; } .lede { font-size: 19px; } }

/* ---------- Brand mark (inline, for header/footer) ---------- */
.mark {
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 20px; height: 20px; flex: none;
}
.mark i { display: block; }
.mark i:nth-child(1) { background: var(--purple); }
.mark i:nth-child(2), .mark i:nth-child(3) { border: 1.5px solid var(--ink); }
.mark i:nth-child(4) { background: var(--teal); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px; padding: 13px 22px; border-radius: 8px;
  font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center;
  border: 1.5px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s, border-color .15s, color .15s;
}
.btn:hover { text-decoration: none; }
.btn--primary { background: var(--purple); color: var(--on-brand); }
.btn--primary:hover { background: #948DE6; color: var(--on-brand); }
.btn--secondary { border-color: var(--field); color: var(--ink); background: transparent; font-weight: 600; }
.btn--secondary:hover { border-color: var(--ink); color: var(--ink); }
.btn--outline { border-color: var(--ink); color: var(--ink); }
.btn--outline:hover { background: var(--ink); color: var(--bg); }
.btn[disabled] { opacity: .6; cursor: progress; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(8px);
  -webkit-backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.brand {
  display: inline-flex; align-items: center; gap: 10px; min-height: 44px;
  color: var(--ink); font-weight: 700; font-size: 16px; letter-spacing: -.01em;
}
.brand:hover { color: var(--ink); text-decoration: none; }
.menu-btn {
  width: 44px; height: 44px; margin-right: -10px; border: 0; background: none; padding: 0; cursor: pointer;
  display: none; flex-direction: column; justify-content: center; align-items: center; gap: 6px;
}
.menu-btn span { width: 22px; height: 2px; background: var(--ink); transition: transform .2s; }
.menu-btn[aria-expanded="true"] span:first-child { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:last-child { transform: translateY(-4px) rotate(-45deg); }

.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; font-size: 15px; font-weight: 500; }
.nav a { color: var(--ink-2); min-height: 44px; display: inline-flex; align-items: center; }
.nav a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav .nav-cta {
  padding: 0 16px; min-height: 42px; border: 1.5px solid var(--ink); border-radius: 8px;
  font-weight: 600; color: var(--ink);
}
.nav .nav-cta:hover { background: var(--ink); color: var(--bg); text-decoration: none; }

/* Phone menu (only collapses when JS is available) */
@media (max-width: 819px) {
  .js .menu-btn { display: flex; }
  .js .nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg); border-bottom: 1px solid var(--line);
    padding: 8px var(--gutter) 20px;
    box-shadow: 0 16px 30px rgba(0, 0, 0, .08);
  }
  .js .nav.is-open { display: flex; }
  .js .nav a { min-height: 52px; font-size: 18px; font-weight: 600; border-bottom: 1px solid var(--line); }
  .js .nav .nav-cta { margin-top: 16px; justify-content: center; border-bottom: 1.5px solid var(--ink); }
}
@media (min-width: 820px) {
  .site-header .wrap { min-height: 72px; }
  .brand { font-size: 17px; }
  .brand .mark { width: 22px; height: 22px; }
  .nav { gap: 36px; }
}

/* ---------- Home: hero ---------- */
.hero { padding-block: 32px 24px; display: grid; gap: 16px; }
.hero h1 { font-size: 30px; line-height: 1.12; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.hero p { font-size: 16px; color: var(--muted); }
.hero-side { display: grid; gap: 20px; }
.hero-actions { display: grid; gap: 10px; }
@media (min-width: 560px) { .hero-actions { display: flex; flex-wrap: wrap; gap: 12px; } }
@media (min-width: 900px) {
  .hero { padding-block: 72px 40px; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: end; }
  .hero h1 { font-size: 46px; line-height: 1.08; }
  .hero p { font-size: 19px; }
  .hero-side { gap: 22px; padding-bottom: 6px; }
}

/* ---------- Home: quadrant navigation ---------- */
.quads { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.quad {
  --q-bg: var(--bg); --q-bd: var(--ink); --q-fg: var(--ink);
  background: var(--q-bg); border: 2px solid var(--q-bd); color: var(--q-fg);
  border-radius: 2px; padding: 14px 14px 16px; min-height: 150px;
  display: flex; flex-direction: column; justify-content: space-between; gap: 10px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.quad:hover { color: var(--q-fg); text-decoration: none; transform: translateY(-2px); box-shadow: 0 6px 0 -2px var(--q-bd); }
.quad--purple { --q-bg: var(--purple); --q-bd: var(--purple); --q-fg: var(--on-brand); }
.quad--teal { --q-bg: var(--teal); --q-bd: var(--teal); --q-fg: var(--on-brand); }
.quad-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.quad-tag { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; font-weight: 500; }
.quad-arrow { font-size: 16px; line-height: 1; }
.quad-title { font-size: 19px; font-weight: 800; letter-spacing: -.01em; line-height: 1.15; }
.quad-title, .quad-desc { display: block; }
.quad-desc { font-size: 14px; line-height: 1.4; font-weight: 500; margin-top: 6px; }
@media (min-width: 720px) {
  .quads { gap: 14px; }
  .quad { padding: 30px 34px; min-height: 220px; }
  .quad-tag { font-size: 13px; letter-spacing: .08em; }
  .quad-arrow { font-size: 22px; }
  .quad-title { font-size: 32px; letter-spacing: -.02em; }
  .quad-desc { font-size: 17px; line-height: 1.45; max-width: 38ch; margin-top: 10px; }
}
@media (prefers-reduced-motion: reduce) { .quad, .quad:hover { transition: none; transform: none; } }

/* ---------- App icons ---------- */
.app-icon {
  width: 44px; height: 44px; flex: none; border-radius: 50%;
  background: var(--tint-a); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 500; overflow: hidden;
}
.app-icon--b { background: var(--tint-b); }
.app-icon img { width: 100%; height: 100%; object-fit: cover; }
.app-icon:has(img) { border-radius: 22%; background: transparent; box-shadow: 0 0 0 1px var(--line); }

/* ---------- Home: live-now strip ---------- */
.live { padding-block: 28px 40px; display: grid; gap: 14px; }
.live-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px 8px; }
.live-list a {
  display: flex; flex-direction: column; align-items: center; gap: 8px; min-height: 44px;
  color: var(--ink); font-size: 12px; font-weight: 600; line-height: 1.25; text-align: center;
  overflow-wrap: break-word;
}
.live-list a:hover { text-decoration: none; color: var(--link); }
.live-list .app-icon { width: 48px; height: 48px; transition: transform .15s; }
.live-list a:hover .app-icon { transform: scale(1.06); }
@media (min-width: 720px) {
  .live { padding-block: 40px 64px; }
  .live-list { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 16px; }
  .live-list a { font-size: 13px; }
  .live-list .app-icon { width: 56px; height: 56px; }
}

/* ---------- Home: products ---------- */
.products { border-top: 1px solid var(--line); padding-block: 40px 16px; }
.products-head { display: grid; gap: 6px; margin-bottom: 8px; }
.group { padding-block: 24px 4px; }
.group-title { padding-bottom: 8px; }
.product {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 12px;
  padding: 14px 0; border-top: 1px solid var(--line);
}
.product-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.product-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.product-name { font-size: 17px; font-weight: 700; }
.product-desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.product-link { font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
.tag {
  font-family: var(--mono); font-size: 11px; letter-spacing: .05em; line-height: 1.4;
  padding: 2px 7px; border: 1px solid var(--tag); border-radius: 4px; color: var(--ink-2); white-space: nowrap;
}
.product-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.product:target .product-name { text-decoration: underline; text-decoration-color: var(--purple); text-decoration-thickness: 3px; text-underline-offset: 4px; }
.privacy-note { padding-block: 16px 40px; font-size: 14px; color: var(--muted); max-width: 65ch; }

@media (min-width: 900px) {
  .products { padding-block: 80px 24px; }
  .products-head { margin-bottom: 24px; }
  .group { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; padding: 32px 0; border-top: 1px solid var(--line); }
  .group-title { padding-top: 10px; font-size: 13px; letter-spacing: .06em; }
  .group-items { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 36px; }
  .product { grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto 1fr; gap: 12px; padding: 0; border: 0; }
  .product-body { display: contents; }
  .product-head { flex-wrap: nowrap; gap: 12px; align-self: center; }
  .product-desc, .product-foot { grid-column: 1 / -1; }
  .product-foot { align-self: end; flex-direction: column; align-items: flex-start; gap: 6px; }
  .product-link { min-height: 36px; }
  .product-name { font-size: 18px; }
  .product .product-head .product-tags { display: none; }
  .privacy-note { padding-block: 24px 80px; font-size: 15px; }
}
.product-foot .product-tags { display: none; }
@media (min-width: 900px) { .product-foot .product-tags { display: flex; } }

/* ---------- Stage tracker (Nandini) ---------- */
.stage-box {
  width: 16px; height: 16px; flex: none; border: 2px solid var(--st);
  background: var(--st-fill, transparent);
}
.st-done { --st: #5FD0A6; --st-fill: #5FD0A6; --st-line: #5FD0A6; --st-text: #5FD0A6; }
.st-prog { --st: #ABA5F0; --st-fill: linear-gradient(90deg, #ABA5F0 50%, transparent 50%); --st-line: #2C2B34; --st-text: #ABA5F0; }
.st-next { --st: #77757F; --st-fill: transparent; --st-line: #2C2B34; --st-text: #B0AEBA; }
.stage-status { font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--st-text); }
.stage-name { font-size: 16px; font-weight: 700; line-height: 1.3; }
.stage-num { font-family: var(--mono); font-size: 12px; color: var(--muted); }

/* vertical (phone) */
.stages { display: flex; flex-direction: column; }
.stage { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 16px; }
.stage-rail { display: flex; flex-direction: column; align-items: center; }
.stage-rail .stage-box { margin-top: 3px; }
.stage-rail::after { content: ""; flex: 1; width: 2px; min-height: 24px; background: var(--st-line); }
.stage:last-child .stage-rail::after { visibility: hidden; }
.stage-text { display: flex; flex-direction: column; gap: 4px; padding-bottom: 22px; }

/* horizontal (desktop) */
@media (min-width: 900px) {
  .stages { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .stage { display: block; position: relative; border-top: 2px solid var(--st-line); padding: 28px 20px 0 0; }
  .stage-rail { position: absolute; top: -12px; left: 0; padding-right: 10px; background: var(--bg); display: flex; }
  .stage-rail::after { display: none; }
  .stage-rail .stage-box { margin: 0; width: 18px; height: 18px; }
  .stage-text { gap: 8px; padding: 0; }
  .stage-name { font-size: 17px; }
}

/* compact variant on the home band */
.stages--compact .stage-num { display: none; }
@media (max-width: 899px) {
  .stages--compact .stage { grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .stages--compact .stage-rail::after { display: none; }
  .stages--compact .stage-rail .stage-box { margin: 0; width: 14px; height: 14px; }
  .stages--compact .stage-text { display: contents; }
  .stages--compact .stage-name { font-size: 15px; font-weight: 600; }
  .stages--compact .stage-status { font-size: 11px; grid-column: 3; grid-row: 1; }
}
@media (min-width: 900px) {
  .stages--compact .stage { padding: 22px 16px 0 0; }
  .stages--compact .stage-rail { top: -10px; padding-right: 8px; }
  .stages--compact .stage-rail .stage-box { width: 14px; height: 14px; }
  .stages--compact .stage-text { gap: 6px; flex-direction: column-reverse; justify-content: flex-end; }
  .stages--compact .stage-name { font-size: 15px; font-weight: 600; line-height: 1.35; }
}

.legend { display: flex; flex-wrap: wrap; gap: 10px 24px; }
.legend span { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; letter-spacing: .06em; color: var(--muted); }
.legend .stage-box { width: 12px; height: 12px; }

/* ---------- Home: Nandini band ---------- */
.band { background: var(--bg); color: var(--ink); padding-block: 40px; }
@media (prefers-color-scheme: dark) {
  .band { --bg: #0B0A0F; border-block: 1px solid #2C2B34; }
}
.band .wrap { display: grid; gap: 24px; }
.band-head { display: grid; gap: 10px; }
.band-head .label { color: var(--link); }
.band-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.band-link { font-size: 16px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) {
  .band { padding-block: 64px; }
  .band .wrap { gap: 40px; }
  .band-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; }
  .band-title { font-size: 30px; }
  .band-link { white-space: nowrap; }
}

/* ---------- Home: work-with-us cards ---------- */
.work { padding-block: 40px; display: grid; gap: 16px; }
.work-cards { display: grid; gap: 16px; }
.card {
  display: flex; flex-direction: column; gap: 10px; padding: 22px 20px;
  border: 1.5px solid var(--line-alt); border-radius: 12px; background: var(--surface); color: var(--ink);
  transition: border-color .15s;
}
.card:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.card-title { font-size: 21px; font-weight: 800; letter-spacing: -.02em; }
.card-desc { font-size: 15px; line-height: 1.5; color: var(--muted); }
.card-more { font-size: 15px; font-weight: 600; color: var(--link); }
@media (min-width: 900px) {
  .work { padding-block: 80px; gap: 28px; }
  .work-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
  .card { padding: 32px; gap: 14px; }
  .card-title { font-size: 26px; }
  .card-desc { font-size: 16px; }
}

/* ---------- Home: about + contact ---------- */
.about-contact { background: var(--bg-alt); padding-block: 40px; }
.about-contact .wrap { display: grid; gap: 32px; }
.about { display: grid; gap: 12px; }
.about-text { font-size: 17px; line-height: 1.5; font-weight: 500; max-width: 34ch; text-wrap: pretty; }
.facts { font-family: var(--mono); font-size: 13px; line-height: 1.6; color: var(--ink-2); display: grid; gap: 2px; }
.facts-reg { margin-top: 8px; }
.contact-head { display: grid; gap: 6px; }
.contact-head p { color: var(--muted); font-size: 15px; }
.contact-head a { font-weight: 600; }
@media (min-width: 900px) {
  .about-contact { padding-block: 72px 80px; }
  .about-contact .wrap { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 72px; }
  .about-col { display: flex; flex-direction: column; gap: 40px; }
  .about-text { font-size: 20px; }
  .contact-head p { font-size: 16px; }
}

/* ---------- Form ---------- */
.form { display: grid; gap: 16px; }
.field { display: grid; gap: 8px; font-size: 14px; font-weight: 600; }
.field input, .field textarea {
  width: 100%; border: 1.5px solid var(--field); border-radius: 8px; background: var(--surface);
  font-size: 16px; font-weight: 400; color: var(--ink);
}
.field input { height: 48px; padding: 0 14px; }
.field textarea { padding: 12px 14px; resize: vertical; min-height: 132px; }
.field input:focus-visible, .field textarea:focus-visible { outline-offset: 1px; border-color: var(--link); }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--err); }
.field-error { color: var(--err); font-size: 13px; font-weight: 600; }
.field-error:empty { display: none; }
fieldset.field { border: 0; padding: 0; margin: 0; min-width: 0; }
fieldset.field legend { padding: 0; margin-bottom: 10px; }
.choices { display: grid; gap: 8px; }
.choice {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; min-height: 48px;
  border: 1.5px solid var(--field); border-radius: 8px; background: var(--surface);
  font-size: 15px; font-weight: 500; cursor: pointer;
}
.choice input { accent-color: var(--link); width: 18px; height: 18px; margin: 0; }
.choice:has(input:checked) { border-color: var(--link); box-shadow: inset 0 0 0 1px var(--link); }
.choice:has(input:focus-visible) { outline: 2px solid var(--link); outline-offset: 2px; }
.choice input:focus-visible { outline: none; }
.form-note { font-size: 13px; line-height: 1.5; color: var(--muted); }
.form-status { font-size: 15px; font-weight: 600; padding: 12px 14px; border-radius: 8px; border: 1.5px solid; }
.form-status:empty { display: none; }
.form-col { display: grid; gap: 16px; align-content: start; }
.form-flag { display: none; margin: 0; }
.form-flag:target { display: block; }
.form-flag a { color: inherit; text-decoration: underline; }
.form-status[data-state="ok"] { color: var(--ok); border-color: var(--ok); }
.form-status[data-state="error"] { color: var(--err); border-color: var(--err); }
.form .btn { width: 100%; }
@media (min-width: 600px) {
  .form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .choices { display: flex; flex-wrap: wrap; }
  .choice { min-height: 44px; font-size: 15px; }
  .form .btn { width: auto; justify-self: start; }
}
@media (max-width: 599px) { .form-row { display: grid; gap: 16px; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 28px 36px; font-size: 14px; }
.site-footer .wrap { display: grid; gap: 18px; }
.foot-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.foot-nav a { color: var(--ink-2); min-height: 44px; display: flex; align-items: center; }
.foot-legal { display: flex; align-items: center; gap: 10px; color: var(--ink-2); font-size: 13px; }
.foot-legal .mark { width: 18px; height: 18px; }
.foot-credit { font-family: var(--mono); font-size: 12px; line-height: 1.6; color: var(--muted); }
@media (min-width: 900px) {
  .site-footer { padding-block: 36px; }
  .site-footer .wrap { grid-template-columns: auto 1fr; align-items: center; gap: 16px 24px; }
  .foot-nav { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 0 24px; }
  .foot-nav a { min-height: 36px; }
  .foot-legal { font-size: 14px; }
  .foot-credit { grid-column: 1 / -1; }
}

/* ---------- Page header (inner pages) ---------- */
.page-head { padding-block: 40px 28px; display: grid; gap: 14px; }
.page-head h1 { font-size: 44px; font-weight: 800; letter-spacing: -.035em; line-height: 1; }
.page-head p { font-size: 18px; line-height: 1.4; color: var(--ink-2); }
.page-head .label { color: var(--link); }
.jump { display: flex; flex-wrap: wrap; gap: 0 24px; font-size: 15px; font-weight: 600; }
.jump a { min-height: 44px; display: inline-flex; align-items: center; }
@media (min-width: 900px) {
  .page-head { padding-block: 80px 48px; gap: 20px; }
  .page-head h1 { font-size: 64px; letter-spacing: -.04em; }
  .page-head p { font-size: 22px; }
  .jump { font-size: 16px; gap: 28px; }
}

/* ---------- Nandini page ---------- */
.nandini-head h1 { font-size: 48px; }
@media (min-width: 900px) { .nandini-head { padding-top: 88px; } .nandini-head h1 { font-size: 76px; } .nandini-head p { font-size: 24px; } }
.versions { display: grid; gap: 12px; padding-bottom: 36px; }
.version {
  border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--surface);
  display: flex; flex-direction: column; gap: 10px;
}
.version-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.version-name { font-family: var(--mono); font-size: 17px; font-weight: 500; }
.version p { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.pill { font-family: var(--mono); font-size: 11px; letter-spacing: .06em; padding: 2px 7px; border: 1px solid; border-radius: 4px; text-align: center; }
.pill--teal { color: var(--accent-teal); }
.pill--purple { color: var(--link); }
@media (min-width: 900px) {
  .versions { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; padding-bottom: 72px; }
  .version { padding: 28px 30px; gap: 12px; }
  .version-name { font-size: 20px; }
  .version p { font-size: 17px; }
  .pill { font-size: 12px; padding: 3px 8px; }
}

.block { border-top: 1px solid var(--line); padding-block: 32px; display: grid; gap: 20px; }
.block-title { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.small-note { font-family: var(--mono); font-size: 11px; color: var(--muted); }
@media (min-width: 900px) {
  .block { padding-block: 56px 72px; gap: 40px; }
  .block-title { font-size: 30px; }
  .block-top { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
  .small-note { font-size: 12px; }
}
@media (max-width: 899px) { .block-top { display: grid; gap: 14px; } }

.updated { font-family: var(--mono); font-size: 12px; color: var(--accent-teal); }
.updates { display: flex; flex-direction: column; }
.update { display: flex; flex-direction: column; gap: 8px; padding: 20px 0; border-top: 1px solid var(--line); }
.update time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.update h3 { font-size: 17px; font-weight: 700; }
.update p { font-size: 15px; line-height: 1.6; color: var(--ink-2); max-width: 65ch; }
@media (min-width: 900px) {
  .updates-block { grid-template-columns: 260px minmax(0, 1fr); gap: 48px; }
  .updates-side { display: flex; flex-direction: column; gap: 12px; }
  .updates { max-width: 760px; }
  .update { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 4px 28px; padding: 26px 0; border-top: 0; border-bottom: 1px solid var(--line); }
  .update:first-child { padding-top: 6px; }
  .update time { grid-row: 1 / span 2; font-size: 13px; padding-top: 3px; }
  .update h3 { font-size: 18px; }
  .update p { font-size: 16px; }
}
@media (max-width: 899px) { .updates-side { display: grid; gap: 8px; } }

/* ---------- Services page ---------- */
.svc { border-top: 1px solid var(--line); padding-block: 32px 40px; }
.svc .wrap { display: grid; gap: 20px; }
.svc--alt { background: var(--bg-alt); border-top: 0; padding-block: 40px 44px; }
.svc-intro { display: grid; gap: 16px; align-content: start; }
.svc h2 { font-size: 32px; font-weight: 800; letter-spacing: -.025em; line-height: 1.1; }
.svc-lead { font-size: 17px; line-height: 1.5; color: var(--ink-2); max-width: 40ch; text-wrap: pretty; }
.svc-tagline { font-size: 21px; line-height: 1.3; font-weight: 600; color: var(--accent-teal); }
.list { display: flex; flex-direction: column; }
.list .label { padding: 8px 0 10px; }
.proof { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); }
.proof-name { font-size: 16px; font-weight: 700; }
.proof p { font-size: 15px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.proof-name a { color: var(--ink); }
.cover { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--line-alt); align-items: baseline; font-size: 15px; line-height: 1.5; }
.cover::before { content: ""; width: 8px; height: 8px; background: var(--teal); }
.steps { display: flex; flex-direction: column; }
.step { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 14px; }
.step-rail { display: flex; flex-direction: column; align-items: center; }
.step-rail::before { content: ""; width: 12px; height: 12px; background: var(--ink); margin-top: 6px; flex: none; }
.step-rail::after { content: ""; flex: 1; width: 2px; background: var(--ink); min-height: 18px; }
.step:last-child .step-rail::after { visibility: hidden; }
.step-text { display: flex; flex-direction: column; gap: 2px; padding-bottom: 18px; }
.step-n { font-family: var(--mono); font-size: 12px; color: var(--accent-teal); }
.step-name { font-size: 18px; font-weight: 700; }
.svc .btn { width: 100%; }
@media (min-width: 900px) {
  .svc { padding-block: 56px 80px; }
  .svc .wrap { gap: 56px; }
  .svc--alt { padding-block: 72px 88px; }
  .svc-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 72px; }
  .svc-intro { gap: 18px; }
  .svc h2 { font-size: 44px; letter-spacing: -.03em; }
  .svc-lead { font-size: 20px; max-width: 36ch; }
  .svc-tagline { font-size: 28px; }
  .proof { padding: 18px 0; gap: 16px; }
  .proof-name { font-size: 17px; }
  .proof p { font-size: 16px; }
  .cover { grid-template-columns: 16px minmax(0, 1fr); gap: 16px; padding: 16px 0; font-size: 17px; }
  .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .step { display: block; border-top: 2px solid var(--ink); padding: 20px 24px 0 0; }
  .step-rail { display: none; }
  .step-text { gap: 6px; padding: 0; }
  .step-n { font-size: 13px; }
  .step-name { font-size: 22px; }
  .svc .btn { width: auto; justify-self: start; }
  .svc-intro .btn { margin-top: 16px; }
}
@media (max-width: 899px) { .svc-grid { display: grid; gap: 20px; } .svc-intro .btn { display: none; } }
@media (min-width: 900px) { .svc-cta-mobile { display: none; } }

/* ---------- Prose (legal pages) ---------- */
.prose { padding-block: 8px 64px; max-width: 70ch; }
.prose h2 { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin: 32px 0 8px; }
.prose p, .prose li { font-size: 16px; line-height: 1.65; color: var(--ink-2); }
.prose p + p { margin-top: 12px; }
.prose ul { list-style: disc; padding-left: 22px; margin-top: 8px; display: grid; gap: 6px; }

/* ---------- Blog ---------- */
.blog-list { padding-bottom: 64px; }
.posts { border-top: 1px solid var(--line); }
.post-item { display: grid; gap: 6px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.post-item time { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.post-item-body { display: grid; gap: 8px; }
.post-item h2 { font-size: 21px; font-weight: 800; letter-spacing: -.015em; line-height: 1.25; }
.post-item h2 a { color: var(--ink); }
.post-item h2 a:hover { color: var(--link); }
.post-item p { font-size: 15px; line-height: 1.55; color: var(--muted); max-width: 65ch; }
@media (min-width: 900px) {
  .blog-list { padding-bottom: 96px; }
  .post-item { grid-template-columns: 160px minmax(0, 1fr); gap: 32px; padding: 32px 0; }
  .post-item time { font-size: 13px; padding-top: 2px; }
  .post-item h2 { font-size: 26px; }
  .post-item p { font-size: 16px; }
}

.post { max-width: calc(720px + 2 * var(--gutter)); padding-bottom: 64px; }
.post-head { display: grid; gap: 14px; padding-block: 32px 28px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.post-back { font-size: 15px; font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; justify-self: start; }
.post-head h1 { font-size: 32px; line-height: 1.12; font-weight: 800; letter-spacing: -.03em; text-wrap: balance; }
.post-summary { font-size: 18px; line-height: 1.5; color: var(--ink-2); }
.post-meta { font-family: var(--mono); font-size: 12px; color: var(--muted); }
.post-body { padding-bottom: 8px; max-width: none; }
.post-body h2 { font-size: 22px; margin-top: 36px; }
.post-body h3 { font-size: 18px; font-weight: 700; margin: 28px 0 8px; }
.post-body p, .post-body li { font-size: 17px; line-height: 1.7; }
.post-body p + p { margin-top: 16px; }
.post-body ul, .post-body ol { margin: 14px 0; padding-left: 22px; display: grid; gap: 8px; }
.post-body ol { list-style: decimal; }
.post-body ul { list-style: disc; }
.post-body li::marker { color: var(--muted); }
.post-body strong { color: var(--ink); }
.post-body a { text-decoration: underline; text-underline-offset: 3px; }
.post-body blockquote { margin: 24px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--purple); }
.post-body blockquote p { color: var(--ink); font-weight: 500; }
.post-body code { font-family: var(--mono); font-size: .9em; background: var(--bg-alt); padding: 1px 5px; border-radius: 4px; }
.post-body pre { background: var(--bg-alt); border: 1px solid var(--line); border-radius: 8px; padding: 16px; overflow-x: auto; }
.post-body pre code { background: none; padding: 0; }
.post-body hr { border: 0; border-top: 1px solid var(--line); margin: 32px 0; }
.post-body img { border-radius: 8px; margin: 24px 0; }
.post-body h2 + p, .post-body h3 + p { margin-top: 0; }
.post-cta {
  margin-top: 40px; padding: 24px; border: 1.5px solid var(--line-alt); border-radius: 12px; background: var(--surface);
  display: grid; gap: 8px; justify-items: start;
}
.post-cta-title { font-size: 20px; font-weight: 800; letter-spacing: -.01em; }
.post-cta p:not(.post-cta-title) { color: var(--muted); font-size: 15px; margin-bottom: 8px; }
@media (min-width: 900px) {
  .post-head { padding-block: 56px 36px; gap: 16px; }
  .post-head h1 { font-size: 46px; line-height: 1.08; }
  .post-summary { font-size: 20px; }
  .post-body h2 { font-size: 26px; margin-top: 44px; }
  .post-body p, .post-body li { font-size: 18px; }
  .post-cta { padding: 32px; margin-top: 56px; }
}

/* ---------- 404 ---------- */
.notfound { padding-block: 80px 120px; display: grid; gap: 20px; justify-items: start; }
.notfound .mark { width: 64px; height: 64px; gap: 6px; }
.notfound .mark i:nth-child(2), .notfound .mark i:nth-child(3) { border-width: 4px; }

/* ---------- Load animation: quadrants scatter and snap back ---------- */
@media (prefers-reduced-motion: no-preference) {
  .anim .quad { animation: scatter 1.1s cubic-bezier(.6, 0, .2, 1); animation-delay: calc(.2s + var(--i) * 50ms); }
  .quad:nth-child(1) { --i: 0; --sx: -1; --sy: -1; }
  .quad:nth-child(2) { --i: 1; --sx: 1; --sy: -1; }
  .quad:nth-child(3) { --i: 2; --sx: -1; --sy: 1; }
  .quad:nth-child(4) { --i: 3; --sx: 1; --sy: 1; }
  @keyframes scatter {
    0% { transform: none; }
    35% { transform: translate(calc(var(--sx) * var(--d, 12px)), calc(var(--sy) * var(--d, 12px))); }
    70% { transform: scale(1.012); }
    100% { transform: none; }
  }
  @media (min-width: 720px) { .quads { --d: 26px; } }
}
