/* ============================================================
   CoreSync Review — landing page styles
   Dark ink base, warm off-white, restrained signal colours,
   ledger/grid motif. No external assets or fonts.
   ============================================================ */

/* ---------- 1. Tokens ---------- */

:root {
  /* Base */
  --ink-900: #080e18;
  --ink-800: #0c1421;
  --ink-700: #111b2b;
  --ink-600: #162235;
  --ink-500: #1d2b41;

  /* Paper */
  --paper: #f3efe4;
  --paper-dim: #e3ddcd;

  /* Type on dark */
  --fg: #eae5d8;
  --fg-muted: #a4b0c2;
  --fg-faint: #7d8ca3;

  /* Type on paper */
  --fg-ink: #131c2b;
  --fg-ink-muted: #4b5769;

  /* Rules */
  --rule: rgba(174, 190, 214, 0.16);
  --rule-strong: rgba(174, 190, 214, 0.30);
  --rule-ink: rgba(19, 28, 43, 0.16);
  --rule-ink-strong: rgba(19, 28, 43, 0.30);

  /* Signals */
  --green: #4f9f76;
  --green-lift: #6fbd93;
  --amber: #cf9426;
  --amber-lift: #e3ae46;
  --red: #cb5843;
  --red-lift: #e2735d;

  /* Accent (used sparingly for interactive affordance) */
  --accent: #7fd4c1;
  --accent-deep: #1f6f60;

  /* Metrics */
  --shell: 1200px;
  --gutter: clamp(1.15rem, 4vw, 3rem);
  --rhythm: clamp(3.75rem, 8vw, 7rem);

  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, "Times New Roman", serif;
  --sans: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  --ease: cubic-bezier(.2, .7, .3, 1);
}

/* ---------- 2. Reset & base ---------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
}

body {
  margin: 0;
  background: var(--ink-800);
  color: var(--fg);
  font-family: var(--sans);
  font-size: clamp(1rem, 0.97rem + 0.16vw, 1.0625rem);
  line-height: 1.62;
  letter-spacing: 0.005em;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; }
svg { display: block; }

h1, h2, h3 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.012em;
  margin: 0;
  text-wrap: balance;
}

p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; list-style: none; }

a { color: inherit; }

strong { font-weight: 650; }

em { font-style: italic; }

.mono {
  font-family: var(--mono);
  font-size: 0.78em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-variant-numeric: tabular-nums;
}

.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* ---------- 3. Focus & skip link ---------- */

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--alt :focus-visible { outline-color: var(--accent-deep); }

.skip-link {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translate(-50%, -140%);
  z-index: 200;
  background: var(--paper);
  color: var(--fg-ink);
  padding: 0.7rem 1.2rem;
  font: 600 0.9rem/1 var(--sans);
  text-decoration: none;
  transition: transform 0.18s var(--ease);
}
.skip-link:focus { transform: translate(-50%, 0); }

/* ---------- 4. Buttons ---------- */

.btn {
  --btn-bg: transparent;
  display: inline-flex;
  align-items: center;
  gap: 0.6em;
  padding: 0.95rem 1.5rem;
  border: 1px solid transparent;
  background: var(--btn-bg);
  font: 600 0.975rem/1.2 var(--sans);
  letter-spacing: 0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease),
              border-color 0.2s var(--ease), transform 0.2s var(--ease);
}

.btn--primary {
  --btn-bg: var(--paper);
  color: var(--ink-900);
  border-color: var(--paper);
  box-shadow: 4px 4px 0 rgba(127, 212, 193, 0.22);
}
.btn--primary:hover {
  --btn-bg: #fff;
  transform: translate(-1px, -1px);
  box-shadow: 6px 6px 0 rgba(127, 212, 193, 0.3);
}
.btn--primary:active { transform: translate(1px, 1px); box-shadow: 2px 2px 0 rgba(127, 212, 193, 0.25); }

.btn--ghost {
  color: var(--fg);
  border-color: var(--rule-strong);
}
.btn--ghost:hover { border-color: var(--fg); background: rgba(234, 229, 216, 0.06); }

.btn--compact { padding: 0.62rem 1rem; font-size: 0.875rem; }
.btn--large { padding: 1.15rem 2rem; font-size: 1.0625rem; }

.btn__arrow { transition: transform 0.2s var(--ease); }
.btn:hover .btn__arrow { transform: translateX(3px); }

/* Buttons on paper sections */
.section--alt .btn--primary {
  --btn-bg: var(--ink-800);
  color: var(--paper);
  border-color: var(--ink-800);
  box-shadow: 4px 4px 0 rgba(19, 28, 43, 0.16);
}
.section--alt .btn--primary:hover { --btn-bg: var(--ink-700); }

/* ---------- 5. Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(12, 20, 33, 0.94);
  border-bottom: 1px solid var(--rule);
  backdrop-filter: saturate(140%) blur(8px);
}

.masthead__inner {
  display: flex;
  align-items: center;
  gap: 1rem;
  min-height: 4.25rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  margin-right: auto;
  color: var(--fg);
}
.brand__mark { width: 1.85rem; flex: none; color: var(--fg-muted); }
.brand__mark svg { width: 100%; height: auto; }
.brand__text { display: flex; flex-direction: column; gap: 0.15rem; }
.brand__name {
  font-family: var(--serif);
  font-size: 1.075rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1;
}
.brand__tag {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
  line-height: 1;
}

.site-nav { display: flex; align-items: center; gap: 1.75rem; }
.site-nav__list { display: flex; align-items: center; gap: 1.5rem; }
.site-nav__list a {
  font-size: 0.875rem;
  text-decoration: none;
  color: var(--fg-muted);
  padding: 0.35rem 0;
  border-bottom: 1px solid transparent;
  transition: color 0.18s var(--ease), border-color 0.18s var(--ease);
}
.site-nav__list a:hover { color: var(--fg); border-bottom-color: var(--accent); }

.nav-toggle {
  display: none;
  align-items: center;
  gap: 0.5rem;
  background: none;
  border: 1px solid var(--rule-strong);
  color: var(--fg);
  padding: 0.5rem 0.8rem;
  font: 600 0.8rem/1 var(--sans);
  cursor: pointer;
}
.nav-toggle__bars { display: inline-flex; flex-direction: column; gap: 4px; width: 15px; }
.nav-toggle__bars span {
  display: block;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.22s var(--ease), opacity 0.22s var(--ease);
}
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { transform: translateY(2.75px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { transform: translateY(-2.75px) rotate(-45deg); }

/* ---------- 6. Hero ---------- */

.hero {
  position: relative;
  padding-block: clamp(3rem, 7vw, 6rem) clamp(3.5rem, 8vw, 6.5rem);
  background:
    linear-gradient(180deg, rgba(127, 212, 193, 0.05), transparent 40%),
    var(--ink-800);
  overflow: hidden;
}
/* ledger grid motif */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    repeating-linear-gradient(to right, var(--rule) 0 1px, transparent 1px 88px),
    repeating-linear-gradient(to bottom, var(--rule) 0 1px, transparent 1px 88px);
  opacity: 0.5;
  mask-image: radial-gradient(120% 90% at 22% 8%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(120% 90% at 22% 8%, #000 15%, transparent 78%);
  pointer-events: none;
}

.hero__inner {
  position: relative;
  display: grid;
  gap: clamp(2.5rem, 5vw, 4rem);
  align-items: start;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--fg-muted);
  margin-bottom: 1.5rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--rule);
  width: 100%;
}
.eyebrow__dot {
  width: 7px; height: 7px; flex: none;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 3px rgba(79, 159, 118, 0.18);
  animation: pulse 3.2s var(--ease) infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 3px rgba(79, 159, 118, 0.18); }
  50%      { box-shadow: 0 0 0 6px rgba(79, 159, 118, 0.05); }
}

.hero h1 {
  font-size: clamp(2.15rem, 1.35rem + 4vw, 4rem);
  margin-bottom: 1.1rem;
}
.hl {
  position: relative;
  white-space: nowrap;
  background-image: linear-gradient(transparent 76%, rgba(127, 212, 193, 0.28) 76%);
}

.lede {
  font-size: clamp(1.05rem, 1rem + 0.5vw, 1.3rem);
  color: var(--fg-muted);
  line-height: 1.55;
  max-width: 40ch;
  margin-bottom: 2rem;
}

.price-slab {
  display: flex;
  align-items: stretch;
  gap: clamp(1rem, 2.5vw, 1.75rem);
  border: 1px solid var(--rule-strong);
  border-left: 3px solid var(--accent);
  background: linear-gradient(120deg, rgba(127, 212, 193, 0.07), rgba(127, 212, 193, 0) 55%), var(--ink-700);
  padding: clamp(1.1rem, 3vw, 1.6rem);
  margin-bottom: 1.75rem;
}
.price-slab__figure {
  display: flex;
  align-items: flex-start;
  gap: 0.1rem;
  font-family: var(--serif);
  line-height: 0.9;
  color: var(--fg);
  flex: none;
}
.price-slab__currency { font-size: clamp(1rem, 0.9rem + 0.5vw, 1.35rem); padding-top: 0.35em; letter-spacing: -0.02em; }
.price-slab__amount { font-size: clamp(2.75rem, 2rem + 3vw, 4.25rem); letter-spacing: -0.03em; }
.price-slab__detail { border-left: 1px solid var(--rule); padding-left: clamp(1rem, 2.5vw, 1.75rem); }
.price-slab__line { font-size: 0.95rem; margin-bottom: 0.4rem; }
.price-slab__line--muted { color: var(--fg-muted); font-size: 0.9rem; margin-bottom: 0; }

.boundary-statement {
  border-left: 3px solid var(--amber);
  padding: 0.85rem 0 0.85rem 1.1rem;
  font-size: 0.945rem;
  color: var(--fg-muted);
  margin-bottom: 2rem;
}
.boundary-statement strong { color: var(--fg); }

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-bottom: 1.1rem;
}
.cta-note {
  font-size: 0.845rem;
  color: var(--fg-faint);
  max-width: 46ch;
}
.cta-note .mono { font-size: 0.97em; text-transform: none; letter-spacing: 0.02em; color: var(--fg-muted); }

/* ---------- 7. Hero ledger panel ---------- */

.ledger {
  border: 1px solid var(--rule-strong);
  background: var(--ink-700);
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.9);
}
.ledger__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--rule-strong);
  background: var(--ink-600);
}
.ledger__title { font-size: 1rem; letter-spacing: 0; }
.ledger__stamp {
  font-size: 0.66rem;
  color: var(--amber-lift);
  border: 1px solid rgba(207, 148, 38, 0.45);
  padding: 0.25rem 0.45rem;
  flex: none;
}
.ledger__cols,
.ledger__row {
  display: grid;
  grid-template-columns: 4.5rem minmax(0, 1fr) 2.75rem 9.5rem;
  gap: 0.65rem;
  align-items: center;
}
.ledger__cols {
  padding: 0.55rem 1.15rem;
  font-size: 0.66rem;
  color: var(--fg-faint);
  border-bottom: 1px solid var(--rule);
}
.ledger__row {
  padding: 0.8rem 1.15rem;
  border-bottom: 1px solid var(--rule);
  font-size: 0.855rem;
  transition: background-color 0.2s var(--ease);
}
.ledger__row:hover { background: rgba(127, 212, 193, 0.04); }
.ledger__ref { font-size: 0.72rem; color: var(--fg-faint); }
.ledger__what { color: var(--fg); line-height: 1.35; }
.ledger__age { font-size: 0.74rem; color: var(--fg-muted); text-align: right; }

.band {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.5rem;
  border: 1px solid currentColor;
  white-space: nowrap;
  justify-self: start;
}
.band__dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.band--red { color: var(--red-lift); background: rgba(203, 88, 67, 0.09); }
.band--amber { color: var(--amber-lift); background: rgba(207, 148, 38, 0.09); }
.band--green { color: var(--green-lift); background: rgba(79, 159, 118, 0.09); }

.ledger__foot {
  padding: 0.95rem 1.15rem;
  font-size: 0.775rem;
  line-height: 1.5;
  color: var(--fg-faint);
  background: rgba(8, 14, 24, 0.5);
}

/* ---------- 8. Positioning strip ---------- */

.strip {
  border-block: 1px solid var(--rule);
  background: var(--ink-900);
  padding-block: clamp(2.5rem, 5vw, 3.75rem);
}
.strip__inner {
  display: grid;
  gap: clamp(1.25rem, 3vw, 3rem);
}
.strip__lead {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.85vw, 1.55rem);
  line-height: 1.35;
  color: var(--fg-muted);
}
.strip__turn {
  font-family: var(--serif);
  font-size: clamp(1.15rem, 1rem + 0.85vw, 1.55rem);
  line-height: 1.35;
  color: var(--fg);
  padding-left: clamp(0.9rem, 2vw, 1.5rem);
  border-left: 2px solid var(--accent);
}

/* ---------- 9. Section scaffolding ---------- */

.section { padding-block: var(--rhythm); }

.section--alt {
  background: var(--paper);
  color: var(--fg-ink);
}
.section--alt .section__index { color: var(--accent-deep); }
.section--alt .section__sub { color: var(--fg-ink-muted); }

.section--dark { background: var(--ink-900); }

.section__head {
  max-width: 62ch;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.section__index {
  font-size: 0.74rem;
  letter-spacing: 0.16em;
  color: var(--accent);
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid currentColor;
  display: inline-block;
}
.section__title {
  font-size: clamp(1.65rem, 1.25rem + 1.9vw, 2.7rem);
  margin-bottom: 1rem;
}
.section__sub {
  font-size: clamp(1rem, 0.97rem + 0.2vw, 1.1rem);
  color: var(--fg-muted);
  line-height: 1.6;
}

/* ---------- 10. Checks (ledger rows) ---------- */

.checks {
  border-top: 1px solid var(--rule-strong);
  counter-reset: chk;
}
.check {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr) 15rem;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
  padding-block: clamp(1.5rem, 3vw, 2.15rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
  transition: background-color 0.25s var(--ease);
}
.check::after {
  content: "";
  position: absolute;
  left: 0; bottom: -1px;
  width: 0; height: 1px;
  background: var(--accent);
  transition: width 0.5s var(--ease);
}
.check:hover::after { width: 100%; }
.check:hover { background: rgba(127, 212, 193, 0.028); }

.check__id {
  font-size: 0.74rem;
  color: var(--fg-faint);
  padding-top: 0.35rem;
  letter-spacing: 0.1em;
}
.check__id span { opacity: 0.5; padding-inline: 0.15em; }

.check__title {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  margin-bottom: 0.5rem;
  letter-spacing: -0.008em;
}
.check__body p { color: var(--fg-muted); font-size: 0.95rem; }

.check__io {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding-top: 0.4rem;
}
.io-tag {
  font-size: 0.66rem;
  letter-spacing: 0.08em;
  color: var(--fg-muted);
  border: 1px solid var(--rule-strong);
  padding: 0.3rem 0.5rem;
  background: rgba(174, 190, 214, 0.04);
  white-space: nowrap;
}

/* ---------- 11. Deliverables ---------- */

.deliverables {
  display: grid;
  gap: clamp(2rem, 4vw, 3rem);
}
.deliv {
  border: 1px solid var(--rule-ink);
  border-top: 3px solid var(--ink-800);
  background: rgba(255, 255, 255, 0.42);
  padding: clamp(1.35rem, 3.5vw, 2.15rem);
}
.deliv__kicker {
  font-size: 0.7rem;
  color: var(--accent-deep);
  letter-spacing: 0.14em;
  margin-bottom: 0.85rem;
}
.deliv__title { font-size: clamp(1.25rem, 1.1rem + 0.75vw, 1.6rem); margin-bottom: 0.7rem; }
.deliv__desc { color: var(--fg-ink-muted); font-size: 0.95rem; margin-bottom: 1.6rem; }

.lights { display: grid; gap: 0.75rem; }
.light {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
  padding: 0.95rem 1.05rem;
  border: 1px solid var(--rule-ink);
  border-left: 3px solid currentColor;
  background: #fff;
}
.light--red   { color: #a8402b; --dot: #c2543c; }
.light--amber { color: #8a5f06; --dot: #d59316; }
.light--green { color: #2b7350; --dot: #3d926a; }
.light__dot {
  width: 10px; height: 10px; flex: none;
  border-radius: 50%;
  background: var(--dot, currentColor);
  margin-top: 0.42rem;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--dot, currentColor) 20%, transparent);
}
.light__name {
  font: 650 0.95rem/1.3 var(--sans);
  color: currentColor;
  margin-bottom: 0.2rem;
}
.light__desc { font-size: 0.87rem; color: var(--fg-ink-muted); margin: 0; line-height: 1.5; }

.schema { border: 1px solid var(--rule-ink); background: #fff; }
.schema__row {
  display: grid;
  grid-template-columns: 9.5rem minmax(0, 1fr);
  gap: 0.75rem;
  padding: 0.6rem 0.9rem;
  border-bottom: 1px solid var(--rule-ink);
  font-size: 0.885rem;
  align-items: baseline;
}
.schema__row:last-child { border-bottom: 0; }
.schema__row:nth-child(even) { background: rgba(19, 28, 43, 0.025); }
.schema__row--head {
  background: var(--ink-800) !important;
  color: var(--paper);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
}
.schema__row .mono { font-size: 0.72rem; text-transform: none; letter-spacing: 0.02em; color: var(--accent-deep); }
.schema__row--head .mono { color: inherit; }

.deliv__note {
  margin-top: clamp(1.5rem, 3vw, 2.25rem);
  padding-top: 1.25rem;
  border-top: 1px solid var(--rule-ink);
  font-size: 0.9rem;
  color: var(--fg-ink-muted);
  max-width: 70ch;
}

/* ---------- 12. Steps ---------- */

.steps {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--rule-strong);
}
.step {
  display: grid;
  grid-template-columns: 6.5rem minmax(0, 1fr);
  gap: clamp(1rem, 3vw, 2.5rem);
  padding-block: clamp(1.6rem, 3vw, 2.4rem);
  border-bottom: 1px solid var(--rule);
  position: relative;
}
.step__num {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 1.4rem + 1.5vw, 2.6rem);
  line-height: 1;
  color: var(--fg-faint);
  letter-spacing: 0;
  text-transform: none;
}
.step__title { font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.35rem); margin-bottom: 0.6rem; }
.step__body p { color: var(--fg-muted); font-size: 0.95rem; }
.step__body p strong { color: var(--fg); }
.step__meta {
  font-size: 0.7rem;
  color: var(--fg-faint);
  margin-top: 0.85rem;
  padding-top: 0.7rem;
  border-top: 1px dashed var(--rule);
  letter-spacing: 0.1em;
}
.steps__note {
  margin-top: 1.75rem;
  font-size: 0.9rem;
  color: var(--fg-faint);
  max-width: 68ch;
}

/* ---------- 13. Is / is not ---------- */

.compare {
  display: grid;
  gap: 0;
  border: 1px solid var(--rule-strong);
}
.compare__col { padding: clamp(1.35rem, 3.5vw, 2.15rem); }
.compare__col--is { background: rgba(79, 159, 118, 0.045); }
.compare__col--isnot { background: rgba(203, 88, 67, 0.05); border-top: 1px solid var(--rule-strong); }

.compare__head {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: clamp(1.15rem, 1.05rem + 0.5vw, 1.4rem);
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule-strong);
}
.compare__badge {
  display: grid;
  place-items: center;
  width: 1.6rem; height: 1.6rem;
  flex: none;
  border: 1px solid currentColor;
  font: 600 0.8rem/1 var(--sans);
}
.compare__badge--is { color: var(--green-lift); }
.compare__badge--isnot { color: var(--red-lift); }

.compare__list { display: grid; gap: 0.85rem; }
.compare__list li {
  position: relative;
  padding-left: 1.5rem;
  font-size: 0.945rem;
  color: var(--fg-muted);
  line-height: 1.55;
}
.compare__list li strong { color: var(--fg); }
.compare__list li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 0.7rem; height: 1px;
  background: currentColor;
  opacity: 0.55;
}
.compare__col--is .compare__list li::before { background: var(--green-lift); opacity: 1; }
.compare__col--isnot .compare__list li::before { background: var(--red-lift); opacity: 1; }

.escalation {
  margin-top: clamp(1.75rem, 3.5vw, 2.5rem);
  border: 1px solid rgba(207, 148, 38, 0.4);
  background: rgba(207, 148, 38, 0.06);
  padding: clamp(1.1rem, 3vw, 1.5rem);
  font-size: 0.945rem;
  color: var(--fg-muted);
  max-width: 92ch;
}
.escalation__flag {
  display: inline-block;
  font-size: 0.66rem;
  color: var(--ink-900);
  background: var(--amber-lift);
  padding: 0.22rem 0.5rem;
  margin-right: 0.65rem;
  letter-spacing: 0.12em;
  vertical-align: 0.12em;
}

/* ---------- 14. Fit ---------- */

.fit { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
.fit__head {
  font-size: clamp(1.1rem, 1rem + 0.5vw, 1.3rem);
  padding-bottom: 0.85rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--rule-strong);
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.fit__head::before {
  content: "";
  width: 9px; height: 9px;
  border-radius: 50%;
  flex: none;
}
.fit__head--yes::before { background: var(--green); box-shadow: 0 0 0 3px rgba(79, 159, 118, 0.2); }
.fit__head--no::before { background: var(--red); box-shadow: 0 0 0 3px rgba(203, 88, 67, 0.2); }

.fit__list { display: grid; gap: 0.7rem; }
.fit__list li {
  position: relative;
  padding-left: 1.6rem;
  font-size: 0.945rem;
  color: var(--fg-muted);
  line-height: 1.55;
}
.fit__list li strong { color: var(--fg); }
.fit__list--yes li::before,
.fit__list--no li::before {
  position: absolute;
  left: 0; top: 0;
  font-family: var(--mono);
  font-size: 0.8rem;
  line-height: 1.65;
}
.fit__list--yes li::before { content: "+"; color: var(--green-lift); }
.fit__list--no li::before { content: "\2212"; color: var(--red-lift); }

/* ---------- 15. FAQ ---------- */

.faq {
  border-top: 1px solid var(--rule-ink-strong);
  max-width: 85ch;
}
.qa { border-bottom: 1px solid var(--rule-ink); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.15rem 0;
  cursor: pointer;
  list-style: none;
  transition: color 0.18s var(--ease);
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary:hover { color: var(--accent-deep); }
.qa__q {
  font-family: var(--serif);
  font-size: clamp(1.05rem, 1rem + 0.4vw, 1.22rem);
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.008em;
}
.qa__icon {
  position: relative;
  width: 1rem; height: 1rem;
  flex: none;
}
.qa__icon::before,
.qa__icon::after {
  content: "";
  position: absolute;
  left: 50%; top: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
  transition: transform 0.25s var(--ease), opacity 0.25s var(--ease);
}
.qa__icon::before { width: 1rem; height: 1.5px; }
.qa__icon::after { width: 1.5px; height: 1rem; }
.qa[open] .qa__icon::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }

.qa__a {
  padding: 0 0 1.4rem;
  max-width: 72ch;
  color: var(--fg-ink-muted);
  font-size: 0.95rem;
}
.qa[open] .qa__a { animation: reveal 0.32s var(--ease) both; }
@keyframes reveal {
  from { opacity: 0; transform: translateY(-5px); }
  to   { opacity: 1; transform: none; }
}

/* ---------- 16. Closer ---------- */

.closer {
  background:
    radial-gradient(90% 120% at 50% 0%, rgba(127, 212, 193, 0.09), transparent 62%),
    var(--ink-800);
  border-top: 1px solid var(--rule);
  text-align: center;
}
.closer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.closer .section__index { margin-bottom: 1.25rem; }
.closer__title { font-size: clamp(1.85rem, 1.35rem + 2.4vw, 3.15rem); margin-bottom: 1rem; }
.closer__sub {
  color: var(--fg-muted);
  max-width: 56ch;
  font-size: clamp(1rem, 0.97rem + 0.25vw, 1.1rem);
  margin-bottom: 2.15rem;
}

.closer__facts {
  display: grid;
  gap: 0;
  margin: 2.5rem 0 0;
  border: 1px solid var(--rule-strong);
  width: 100%;
  max-width: 44rem;
  text-align: left;
}
.closer__facts > div {
  display: grid;
  grid-template-columns: 9rem minmax(0, 1fr);
  gap: 1rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--rule);
  align-items: baseline;
}
.closer__facts > div:last-child { border-bottom: 0; }
.closer__facts dt {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--fg-faint);
}
.closer__facts dd { margin: 0; font-size: 0.85rem; color: var(--fg); text-transform: none; letter-spacing: 0.02em; word-break: break-word; }
.closer__facts dd a { color: var(--accent); text-underline-offset: 3px; }

.closer__note {
  margin-top: 1.75rem;
  font-size: 0.85rem;
  color: var(--fg-faint);
  max-width: 58ch;
}

/* ---------- 17. Footer ---------- */

.footer {
  background: var(--ink-900);
  border-top: 1px solid var(--rule);
  padding-block: clamp(2.75rem, 5vw, 4rem);
  font-size: 0.85rem;
  color: var(--fg-faint);
}
.footer__inner { display: grid; gap: clamp(1.75rem, 4vw, 3rem); }
.footer__name {
  font-family: var(--serif);
  font-size: 1.15rem;
  color: var(--fg);
  margin-bottom: 0.35rem;
}
.footer__tag { font-size: 0.66rem; color: var(--fg-faint); margin-bottom: 0.9rem; }
.footer__prov { max-width: 34ch; line-height: 1.55; }
.footer__legal { display: grid; gap: 0.9rem; max-width: 68ch; }
.footer__legal p { line-height: 1.6; margin: 0; }
.footer__legal strong { color: var(--fg-muted); }
.footer__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.75rem;
  justify-content: space-between;
  align-items: center;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
}
.footer__meta p { margin: 0; font-size: 0.74rem; text-transform: none; letter-spacing: 0.06em; }
.footer__meta a { color: var(--fg-muted); text-underline-offset: 3px; }
.footer__meta a:hover { color: var(--accent); }

/* ============================================================
   18. Responsive
   ============================================================ */

/* --- Tablet and up --- */
@media (min-width: 720px) {
  .strip__inner { grid-template-columns: 1fr 1fr; align-items: start; }
  .fit { grid-template-columns: 1fr 1fr; gap: clamp(2rem, 4vw, 3.5rem); }
  .compare { grid-template-columns: 1fr 1fr; }
  .compare__col--isnot { border-top: 0; border-left: 1px solid var(--rule-strong); }
  .deliverables { grid-template-columns: 1fr 1fr; }
  .closer__facts { grid-template-columns: repeat(3, 1fr); }
  .closer__facts > div {
    grid-template-columns: 1fr;
    gap: 0.4rem;
    border-bottom: 0;
    border-right: 1px solid var(--rule);
  }
  .closer__facts > div:last-child { border-right: 0; }
  .footer__inner { grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.4fr); }
  .footer__meta { grid-column: 1 / -1; }
}

/* --- Desktop --- */
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); align-items: center; }
  .hero__panel { position: relative; }
}

/* --- Below desktop: nav collapses --- */
@media (max-width: 999px) {
  .nav-toggle { display: inline-flex; }

  .site-nav {
    position: absolute;
    left: 0; right: 0;
    top: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--ink-700);
    border-bottom: 1px solid var(--rule-strong);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.9);
    padding: 0.5rem var(--gutter) 1.25rem;
    display: none;
  }
  .site-nav.is-open { display: flex; animation: dropIn 0.22s var(--ease) both; }
  @keyframes dropIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: none; }
  }
  .site-nav__list { flex-direction: column; align-items: stretch; gap: 0; }
  .site-nav__list a {
    display: block;
    padding: 0.85rem 0;
    font-size: 0.975rem;
    border-bottom: 1px solid var(--rule);
    color: var(--fg);
  }
  .site-nav__list a:hover { border-bottom-color: var(--rule); color: var(--accent); }
  .site-nav__cta { margin-top: 1.1rem; justify-content: center; padding: 0.9rem 1rem; font-size: 0.95rem; }
  .masthead__inner { position: relative; }
}

/* --- Narrow: single-column ledger + checks --- */
@media (max-width: 860px) {
  .check { grid-template-columns: 4.25rem minmax(0, 1fr); }
  .check__io { grid-column: 2; padding-top: 0; }
  .step { grid-template-columns: 3.5rem minmax(0, 1fr); }
}

@media (max-width: 620px) {
  .ledger__cols { display: none; }
  .ledger__row {
    grid-template-columns: minmax(0, 1fr) auto;
    row-gap: 0.55rem;
    padding: 0.9rem 1rem;
  }
  .ledger__ref { order: 1; }
  .ledger__age { order: 2; text-align: right; }
  .ledger__what { order: 3; grid-column: 1 / -1; }
  .band { order: 4; grid-column: 1 / -1; }
  .schema__row { grid-template-columns: minmax(0, 1fr); gap: 0.2rem; }
}

@media (max-width: 480px) {
  html { scroll-padding-top: 4.75rem; }
  .price-slab { flex-direction: column; gap: 1rem; }
  .price-slab__detail { border-left: 0; border-top: 1px solid var(--rule); padding-left: 0; padding-top: 1rem; }
  .cta-row .btn { width: 100%; justify-content: center; }
  .check { grid-template-columns: minmax(0, 1fr); gap: 0.55rem; }
  .check__id { padding-top: 0; }
  .check__io { grid-column: 1; }
  .step { grid-template-columns: minmax(0, 1fr); gap: 0.55rem; }
  .brand__mark { width: 1.6rem; }
  .brand__name { font-size: 0.98rem; }
  .nav-toggle__label { display: none; }
  .nav-toggle { padding: 0.55rem 0.7rem; }
}

/* --- Very narrow (320px) safety --- */
@media (max-width: 360px) {
  .ledger__row { grid-template-columns: minmax(0, 1fr); }
  .ledger__age { text-align: left; }
  .band { white-space: normal; }
  .footer__meta p { font-size: 0.7rem; }
}

/* ---------- 19. Motion preferences ---------- */

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .btn--primary:hover { transform: none; }
  .check:hover::after { width: 0; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 20. Scroll reveal (progressive enhancement) ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(14px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js .reveal.is-visible { opacity: 1; transform: none; }

/* ---------- 21. Print ---------- */

@media print {
  .masthead, .nav-toggle, .site-nav, .skip-link { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .hero, .closer, .footer, .strip { background: #fff !important; color: #000; }
  .qa__a { display: block !important; }
}
