/* =================================================================
   TimeCalculator.ai — "The Time Instrument" design system
   Warm pearl canvas · mineral indigo authority · apricot destination.
   Time calculation, built like an instrument.
   ================================================================= */

:root {
  /* Canvas & surfaces */
  --paper: #FBFAF7;
  --cloud: #F2EFE9;
  --cloud-2: #ECE8DF;
  --line: #E3DED3;
  --line-2: #D8D2C5;

  /* Ink */
  --ink: #23242B;
  --ink-2: #585A66;
  --ink-3: #8B8D98;

  /* Mineral indigo — authority */
  --indigo: #3D4276;
  --indigo-2: #5A5F95;
  --indigo-soft: #9A9CC6;
  --indigo-wash: #EEEEF5;

  /* Apricot — destination / result */
  --apricot: #DC9258;
  --apricot-2: #F0CFAE;
  --apricot-wash: #FBEFE2;
  --apricot-ink: #9A5A28;

  /* Type */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
    "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Shape & depth */
  --r: 14px;
  --r-lg: 22px;
  --r-xl: 30px;
  --shadow-sm: 0 1px 2px rgba(34,35,42,.05), 0 2px 8px rgba(34,35,42,.04);
  --shadow: 0 2px 6px rgba(34,35,42,.06), 0 14px 40px rgba(45,46,80,.08);
  --shadow-lg: 0 2px 6px rgba(34,35,42,.05), 0 30px 70px -30px rgba(45,46,80,.30);

  --maxw: 1080px;
  --gutter: 22px;
  --nav-h: 62px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

*,*::before,*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
body {
  margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper);
  font-size: 17px; line-height: 1.62; letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  font-feature-settings: "ss01","cv11";
}
h1,h2,h3,h4 { margin: 0; font-weight: 600; line-height: 1.07; letter-spacing: -.03em; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2px solid var(--indigo); outline-offset: 3px; border-radius: 6px; }

/* Layout */
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(54px, 7vw, 90px); border-top: 1px solid var(--line); }
.section--plain { border-top: 0; }
.section-head { max-width: 660px; margin-bottom: 40px; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head h2 { font-size: clamp(27px, 3.6vw, 40px); }
.section-head p { margin-top: 14px; color: var(--ink-2); font-size: 18px; }

/* Mono microlabel / eyebrow */
.eyebrow {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; color: var(--apricot-ink); margin-bottom: 14px;
}
.eyebrow--indigo { color: var(--indigo-2); }

/* ============================ NAV ============================ */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(251,250,247,.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, box-shadow .25s;
}
.nav.is-stuck { border-bottom-color: var(--line); box-shadow: 0 10px 30px -24px rgba(34,35,42,.3); }
.nav__inner { display: flex; align-items: center; gap: 18px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; letter-spacing: -.02em; font-size: 17px; }
.brand__mark {
  width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none;
  background: linear-gradient(160deg, var(--indigo-2), var(--indigo));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 1px 2px rgba(34,35,42,.12);
}
.brand__mark svg { width: 17px; height: 17px; display: block; }
.brand__name span { color: var(--indigo); }
.nav__links { display: flex; align-items: center; gap: 2px; margin-left: auto; }
.nav__links a {
  position: relative; font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 8px 11px; border-radius: 9px; white-space: nowrap; transition: color .2s, background .2s;
}
.nav__links a:hover { color: var(--ink); }
.nav__links a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 4px; height: 1.5px;
  background: var(--apricot); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav__links a:hover::after { transform: scaleX(1); }
.nav__cta {
  font-size: 14px; font-weight: 600; color: #fff !important; white-space: nowrap; margin-left: 6px;
  background: var(--indigo); padding: 9px 16px !important; border-radius: 10px;
  box-shadow: 0 6px 16px -8px rgba(61,66,118,.5); transition: background .2s, transform .15s;
}
.nav__cta::after { display: none; }
.nav__cta:hover { background: #34386a; transform: translateY(-1px); }
.nav__toggle { display: none; align-items: center; justify-content: center; width: 40px; height: 40px; border: 1px solid var(--line); border-radius: 10px; background: var(--paper); }

/* ============================ HERO ============================ */
.hero { padding-block: clamp(40px, 6vw, 72px) clamp(40px, 6vw, 60px); }
.hero__grid { display: grid; grid-template-columns: 0.86fr 1.14fr; gap: clamp(28px, 4vw, 56px); align-items: center; }
.hero h1 { font-size: clamp(42px, 7vw, 72px); letter-spacing: -.035em; line-height: .98; }
.hero__brandline { margin-top: 16px; font-size: clamp(18px, 2.3vw, 23px); font-weight: 500; color: var(--indigo); letter-spacing: -.02em; }
.hero__lede { margin-top: 18px; font-size: clamp(16.5px, 1.8vw, 19px); color: var(--ink-2); max-width: 38ch; line-height: 1.55; }
.hero__trust { margin-top: 24px; display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--ink-3); max-width: 40ch; }
.hero__trust svg { flex: none; margin-top: 2px; color: var(--indigo-2); }
.hero__powered { margin-top: 22px; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--ink-3); }
.hero__powered b { color: var(--ink-2); font-weight: 600; }

/* ===================== CALCULATOR INSTRUMENT ===================== */
.calc {
  background: #fff; border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.calc__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 15px 20px; background: var(--cloud); border-bottom: 1px solid var(--line);
}
.calc__title { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); display: flex; align-items: center; gap: 9px; }
.calc__title .led { width: 7px; height: 7px; border-radius: 50%; background: var(--apricot); box-shadow: 0 0 0 3px var(--apricot-wash); }
.calc__local { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 6px; }

/* Segmented mode control */
.seg { display: flex; gap: 3px; padding: 14px 16px 0; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg__btn {
  flex: none; border: 0; background: transparent; color: var(--ink-2);
  font-size: 14px; font-weight: 500; padding: 9px 13px; border-radius: 10px;
  white-space: nowrap; transition: background .18s var(--ease), color .18s var(--ease), box-shadow .18s var(--ease);
}
.seg__btn:hover { color: var(--ink); }
.seg__btn[aria-selected="true"] { background: var(--cloud-2); color: var(--indigo); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line); }

.calc__body { padding: 22px 22px 24px; }
.panel { display: none; }
.panel.is-active { display: block; animation: fade .35s var(--ease); }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* Inputs (calibrated fields) */
.fields { display: grid; gap: 15px; }
.row { display: grid; gap: 13px; }
.row--2 { grid-template-columns: 1fr 1fr; }
.row--3 { grid-template-columns: 1fr 1fr 1fr; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.control {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 11px; padding: 12px 13px; min-height: 48px;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease); -webkit-appearance: none; appearance: none;
}
.control:hover { border-color: var(--ink-3); }
.control:focus { outline: none; border-color: var(--indigo-2); box-shadow: 0 0 0 3px rgba(90,95,149,.16); }
input[type="number"].control { font-variant-numeric: tabular-nums; }
select.control { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%238B8D98' stroke-width='1.8'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; padding-right: 34px; }
.seg-toggle { display: inline-flex; background: var(--cloud-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 3px; }
.seg-toggle button {
  border: 0; background: transparent; font: inherit; font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 9px 15px; border-radius: 9px; min-height: 40px; transition: all .18s var(--ease);
}
.seg-toggle button[aria-pressed="true"] { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(34,35,42,.12); }

/* ===================== CALIBRATED RESULT READOUT ===================== */
.result {
  margin-top: 20px; border: 1px solid var(--line); border-radius: var(--r-lg);
  background: var(--cloud); overflow: hidden;
}
.result__head {
  padding: 20px 22px 18px; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  background:
    radial-gradient(120% 160% at 0% 0%, var(--apricot-wash), transparent 52%),
    #fff;
  border-bottom: 1px solid var(--line);
}
.result__label { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.result__answer { font-size: clamp(26px, 4vw, 35px); font-weight: 600; letter-spacing: -.035em; color: var(--ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.result__answer .unit { font-size: .5em; font-weight: 600; color: var(--ink-2); letter-spacing: 0; margin-left: 4px; }
.result__badge {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 6px 12px; border-radius: 999px; background: var(--indigo-wash); color: var(--indigo); white-space: nowrap; align-self: center;
}
.result__badge--apricot { background: var(--apricot-wash); color: var(--apricot-ink); }
.result__english { padding: 14px 22px; font-size: 15px; color: var(--ink-2); background: #fff; border-bottom: 1px solid var(--line); }
.result__readouts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); background: #fff; }
.ro { position: relative; background: #fff; padding: 15px 16px 14px; overflow: hidden; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.ro__i { position: absolute; top: 12px; right: 13px; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; color: var(--line-2); }
.ro__k { display: flex; align-items: center; gap: 7px; font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.ro__k::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--indigo-soft); flex: none; }
.ro:nth-child(3n+1) .ro__k::before { background: var(--indigo-soft); }
.ro:nth-child(3n+2) .ro__k::before { background: var(--apricot-2); }
.ro:nth-child(3n+3) .ro__k::before { background: var(--indigo-2); }
.ro__v { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.result__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px 12px 22px; background: #fff; flex-wrap: wrap; }
.share-text { font-family: var(--mono); font-size: 12px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.btn-copy {
  display: inline-flex; align-items: center; gap: 7px; flex: none; font-size: 13px; font-weight: 600; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line-2); border-radius: 10px; padding: 8px 13px; transition: all .18s;
}
.btn-copy:hover { border-color: var(--indigo-2); color: var(--indigo); }
.btn-copy.copied { color: var(--apricot-ink); border-color: var(--apricot); }

/* Error state */
.result.is-error { background: #fff; border-color: #E7C9BE; }
.alert { display: flex; gap: 11px; align-items: flex-start; padding: 18px 20px; color: #A23B22; font-size: 14.5px; }
.alert svg { flex: none; margin-top: 2px; }

/* ============================ BUTTONS ============================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 15px; font-weight: 600; padding: 13px 22px; border-radius: 12px; border: 1px solid transparent; min-height: 48px;
  transition: transform .14s var(--ease), background .18s, box-shadow .18s; white-space: nowrap;
}
.btn--primary { background: var(--indigo); color: #fff; box-shadow: 0 6px 18px -8px rgba(61,66,118,.5); }
.btn--primary:hover { background: #34386a; transform: translateY(-1px); }
.btn--ghost { background: var(--cloud); color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { background: var(--cloud-2); border-color: var(--line-2); transform: translateY(-1px); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.24); }
.btn--light:hover { background: rgba(255,255,255,.18); }

/* ===================== TIME HORIZON (signature rail) ===================== */
.horizon { background: var(--indigo); border-radius: var(--r-xl); overflow: hidden; position: relative; color: #fff; }
.horizon::after { content: ""; position: absolute; right: -6%; top: 12%; width: 380px; height: 380px; background: radial-gradient(circle, rgba(220,146,88,.4), transparent 66%); pointer-events: none; }
.horizon__inner { position: relative; z-index: 1; padding: clamp(34px, 5vw, 56px); }
.horizon__eyebrow { font-family: var(--mono); font-size: 11.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--apricot-2); margin-bottom: 14px; }
.horizon h2 { color: #fff; font-size: clamp(26px, 3.4vw, 38px); max-width: 18ch; }
.horizon p { color: #C7CAE6; margin-top: 14px; max-width: 52ch; font-size: 17px; }
.horizon__rail { margin-top: 36px; width: 100%; height: auto; display: block; overflow: visible; }
.horizon__rail .rail-base { stroke: rgba(255,255,255,.18); stroke-width: 4; stroke-linecap: round; }
.horizon__rail .rail-prog { stroke: url(#railgrad); stroke-width: 4; stroke-linecap: round; }
.horizon__rail .tick { stroke: rgba(255,255,255,.28); stroke-width: 1.2; }
.horizon__rail .tick-l { fill: rgba(255,255,255,.55); font-family: var(--mono); font-size: 10px; letter-spacing: .04em; }
.horizon__rail .mk-l { font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.horizon__rail .mk-v { fill: #fff; font-size: 14px; font-weight: 600; letter-spacing: -.01em; }
@keyframes railDraw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
.horizon__rail .rail-prog { stroke-dasharray: 1; stroke-dashoffset: 1; animation: railDraw 1.4s var(--ease) .2s forwards; }
@keyframes pulseRing { 0%,100% { opacity: .5; } 50% { opacity: .95; } }
.horizon__rail .sun { animation: pulseRing 4s ease-in-out infinite; }
.horizon__legend { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 26px; font-family: var(--mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #AEB2D6; }
.horizon__legend span { display: inline-flex; align-items: center; gap: 7px; }
.horizon__legend i { width: 9px; height: 9px; border-radius: 50%; }

/* ===================== INSTRUMENT FAMILY CARDS ===================== */
.family { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fcard {
  position: relative; display: block; background: #fff; border: 1px solid var(--line); border-radius: var(--r);
  padding: 24px 26px; box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease), box-shadow .18s var(--ease), border-color .18s var(--ease);
}
.fcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-2); }
.fcard__no { position: absolute; top: 20px; right: 22px; font-family: var(--mono); font-size: 10px; letter-spacing: .16em; color: var(--line-2); transition: color .2s; }
.fcard:hover .fcard__no { color: var(--apricot-ink); }
.fcard__k { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo-2); margin-bottom: 10px; }
.fcard h3 { font-size: 19px; font-weight: 600; letter-spacing: -.018em; }
.fcard h3 .soon { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .08em; color: var(--ink-3); background: var(--cloud); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; vertical-align: middle; margin-left: 8px; }
.fcard p { font-size: 14.5px; color: var(--ink-2); margin-top: 7px; line-height: 1.5; }
.fcard__formula { margin-top: 14px; font-family: var(--mono); font-size: 12px; color: var(--apricot-ink); background: var(--apricot-wash); border: 1px solid var(--apricot-2); border-radius: 9px; padding: 8px 11px; overflow-x: auto; white-space: nowrap; }
.fcard__go { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--indigo); transition: gap .18s; }
.fcard__go::after { content: "→"; }
.fcard:hover .fcard__go { gap: 10px; }

/* ===================== SPLIT FEATURE SECTIONS ===================== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px, 5vw, 64px); align-items: center; }
.feature-list { display: grid; gap: 13px; margin-top: 24px; }
.feature-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--ink-2); }
.feature-list .ck { flex: none; width: 22px; height: 22px; border-radius: 7px; background: var(--indigo-wash); color: var(--indigo); display: grid; place-items: center; margin-top: 1px; }
.feature-list .ck svg { width: 13px; height: 13px; }
.split__actions { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; }

/* Instrument visual panel */
.viz { border: 1px solid var(--line); border-radius: var(--r-xl); padding: 26px; background: #fff; box-shadow: var(--shadow); }
.viz__cap { font-family: var(--mono); font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 14px; }
.viz__row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.viz__row:last-child { border-bottom: 0; }
.viz__row .lbl { color: var(--ink-2); }
.viz__row .val { font-weight: 600; font-variant-numeric: tabular-nums; }
.viz__total { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--ink); }
.viz__total .big { font-size: 30px; font-weight: 600; letter-spacing: -.025em; color: var(--apricot-ink); font-variant-numeric: tabular-nums; }

/* ===================== TEASERS (app / api) ===================== */
.teaser { border-radius: var(--r-xl); overflow: hidden; background: var(--indigo); color: #fff; position: relative; }
.teaser::after { content: ""; position: absolute; left: -4%; bottom: -10%; width: 320px; height: 320px; background: radial-gradient(circle, rgba(220,146,88,.32), transparent 66%); pointer-events: none; }
.teaser__inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.06fr 1fr; gap: clamp(24px, 4vw, 52px); padding: clamp(32px, 5vw, 52px); align-items: center; }
.teaser h2 { color: #fff; font-size: clamp(25px, 3.2vw, 35px); }
.teaser .eyebrow { color: var(--apricot-2); }
.teaser p { color: #C7CAE6; margin-top: 14px; font-size: 17px; }
.chip-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chip { font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; color: #D7DAF0; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.13); padding: 7px 12px; border-radius: 999px; }
.future-note { margin-top: 18px; font-family: var(--mono); font-size: 11px; letter-spacing: .04em; color: #9CA0CC; }
.code-card { background: rgba(20,22,46,.6); border: 1px solid rgba(255,255,255,.12); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-lg); }
.code-card__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,.1); }
.code-card__bar .d { width: 11px; height: 11px; border-radius: 50%; background: rgba(255,255,255,.2); }
.code-card pre { margin: 0; padding: 18px; overflow-x: auto; font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: #C7CAE6; }
.code-card .k { color: var(--apricot-2); }
.code-card .s { color: #A7E0C4; }
.code-card .c { color: #8589B8; }

/* ===================== EDUCATIONAL ===================== */
.learn-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px 34px; }
.learn h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.learn p { font-size: 14.5px; color: var(--ink-2); line-height: 1.6; }

/* ===================== FAQ ===================== */
.faq { max-width: 820px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { width: 100%; text-align: left; background: none; border: 0; padding: 22px 4px; display: flex; align-items: center; justify-content: space-between; gap: 20px; font-size: 17px; font-weight: 500; color: var(--ink); }
.faq__q .ic { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; color: var(--ink-3); transition: transform .3s var(--ease), background .2s, color .2s, border-color .2s; }
.faq__item.open .faq__q .ic { transform: rotate(45deg); background: var(--indigo); border-color: var(--indigo); color: #fff; }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .35s var(--ease); }
.faq__a-inner { padding: 0 4px 22px; color: var(--ink-2); font-size: 15.5px; line-height: 1.65; max-width: 72ch; }

/* ===================== CTA BAND ===================== */
.band__card { border-radius: var(--r-xl); padding: clamp(40px, 6vw, 72px); background: var(--indigo); color: #fff; text-align: center; position: relative; overflow: hidden; }
.band__card::after { content: ""; position: absolute; right: 6%; top: -20%; width: 360px; height: 360px; background: radial-gradient(circle, rgba(220,146,88,.34), transparent 66%); pointer-events: none; }
.band__card > * { position: relative; z-index: 1; }
.band__card h2 { color: #fff; font-size: clamp(27px, 4vw, 40px); }
.band__card p { color: #C7CAE6; margin-top: 14px; font-size: 18px; max-width: 54ch; margin-inline: auto; }
.band__actions { display: flex; gap: 12px; justify-content: center; margin-top: 30px; flex-wrap: wrap; }

/* ===================== FOOTER ===================== */
.footer { background: var(--paper); border-top: 1px solid var(--line); padding-block: clamp(48px, 6vw, 68px) 34px; }
.footer__top { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr 1fr; gap: 28px; }
.footer__brand p { margin-top: 14px; font-size: 14px; line-height: 1.6; max-width: 30ch; color: var(--ink-2); }
.footer__col h5 { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; margin-bottom: 14px; }
.footer__col a { display: block; font-size: 13.5px; color: var(--ink-2); padding: 5px 0; transition: color .2s; }
.footer__col a:hover { color: var(--indigo); }
.footer__bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer__bottom p { font-size: 13px; color: var(--ink-2); }
.footer__bottom .madeby { font-family: var(--mono); font-size: 12px; letter-spacing: .05em; color: var(--ink-3); }
.footer__bottom .links { display: flex; gap: 18px; }
.footer__bottom .links a { font-size: 13px; color: var(--ink-3); }
.footer__bottom .links a:hover { color: var(--indigo); }

/* ===================== SUBPAGE HEADER ===================== */
.page-hero { background: var(--cloud); border-bottom: 1px solid var(--line); padding-block: clamp(38px, 5vw, 64px) clamp(30px, 4vw, 44px); }
.crumbs { font-family: var(--mono); font-size: 11.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.crumbs a:hover { color: var(--indigo); }
.crumbs span { margin-inline: 8px; opacity: .5; }
.page-hero h1 { font-size: clamp(33px, 5vw, 50px); letter-spacing: -.03em; }
.page-hero .lede { margin-top: 16px; font-size: 18.5px; color: var(--ink-2); max-width: 62ch; }
.page-layout { display: grid; grid-template-columns: minmax(0,1fr) 290px; gap: 44px; align-items: start; }
.aside { position: sticky; top: calc(var(--nav-h) + 22px); display: grid; gap: 12px; }
.aside-card { border: 1px solid var(--line); border-radius: var(--r); padding: 18px; background: #fff; box-shadow: var(--shadow-sm); }
.aside-card h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.aside-card a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; }
.aside-card a:hover { color: var(--indigo); }
.aside-card p { font-size: 13.5px; color: var(--ink-2); line-height: 1.6; margin: 0; }

/* Prose */
.prose h2 { font-size: clamp(23px, 3vw, 29px); margin-top: 8px; margin-bottom: 14px; }
.prose h3 { font-size: 18px; margin-top: 30px; margin-bottom: 9px; }
.prose p { color: var(--ink-2); margin-bottom: 15px; line-height: 1.7; }
.prose a { color: var(--indigo); font-weight: 500; }
.prose a:hover { text-decoration: underline; }
.prose ul.bul { margin: 15px 0; display: grid; gap: 9px; }
.prose ul.bul li { padding-left: 24px; position: relative; color: var(--ink-2); }
.prose ul.bul li::before { content: ""; position: absolute; left: 5px; top: 11px; width: 6px; height: 6px; border-radius: 50%; background: var(--apricot); }

/* ===================== DIRECTORY (all-calculators) ===================== */
.dir-group { margin-bottom: 40px; }
.dir-group h2 { font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .12em; color: var(--ink-3); margin-bottom: 16px; font-weight: 700; }
.dir-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.dir-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--r); background: #fff; box-shadow: var(--shadow-sm); transition: all .18s var(--ease); }
.dir-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); transform: translateY(-2px); }
.dir-item .nm { font-weight: 600; font-size: 15px; }
.dir-item .nm .soon { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: .06em; color: var(--ink-3); background: var(--cloud); border: 1px solid var(--line); padding: 2px 6px; border-radius: 6px; margin-left: 7px; }
.dir-item .ds { font-size: 12.5px; color: var(--ink-3); margin-top: 2px; }

/* ===================== RESPONSIVE ===================== */
@media (max-width: 900px) {
  .nav__links { display: none; }
  .nav__toggle { display: inline-grid; margin-left: auto; }
}
@media (max-width: 920px) {
  .hero__grid { grid-template-columns: 1fr; gap: 34px; }
  .hero__lede { max-width: 50ch; }
  .family { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; }
  .split .viz { order: -1; }
  .teaser__inner { grid-template-columns: 1fr; }
  .learn-grid { grid-template-columns: repeat(2, 1fr); }
  .footer__top { grid-template-columns: 1fr 1fr 1fr; gap: 28px 22px; }
  .footer__brand { grid-column: 1 / -1; }
  .page-layout { grid-template-columns: 1fr; }
  .aside { position: static; grid-template-columns: 1fr 1fr; }
  .dir-list { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .row--2, .row--3 { grid-template-columns: 1fr; }
  .family, .learn-grid, .dir-list, .aside { grid-template-columns: 1fr; }
  .footer__top { grid-template-columns: 1fr 1fr; }
  .footer__bottom { flex-direction: column; align-items: flex-start; }
  .calc__body { padding: 18px; }
  .share-text { max-width: 52vw; }
  .ro { padding: 14px 16px; }
}
