/* ============================================================
   SystemBreakdowns - shared design system
   Brand: near-black, Montserrat Black, white setup, orange punch.
   House rule: no em dashes, no en dashes anywhere in copy.
   One place to retune the brand: --orange below.
   ============================================================ */

:root {
  --ink: #0E1A2E;          /* page background, deep navy */
  --ink-2: #142339;        /* alternating sections, footer, calculator wells */
  --surface: #1B2C46;      /* cards and fields */
  --surface-2: #223655;
  --line: rgba(173, 196, 232, 0.14);
  --line-2: rgba(173, 196, 232, 0.22);
  --white: #EAF0FA;        /* primary text, cool off-white on navy */
  --mute: #8D9BB6;
  --mute-2: #B4C0D6;
  --orange: #FF7D01;       /* SystemBreakdowns brand orange, sampled from the logo */
  --orange-deep: #B85800;
  --orange-soft: rgba(255, 125, 1, 0.16);
  --red: #FF6155;
  --green: #34D399;
  --header-bg: rgba(14, 26, 46, 0.85);
  --track: rgba(173, 196, 232, 0.12);
  --bar-neutral: rgba(173, 196, 232, 0.34);
  --bar-neutral-2: rgba(173, 196, 232, 0.20);
  --radius: 14px;
  --radius-lg: 18px;
  --wrap: 1120px;
  --pad: clamp(18px, 4vw, 40px);
  --font: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--ink);
  color: var(--white);
  font-family: var(--font);
  font-weight: 500;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--pad); padding-right: var(--pad); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 900; letter-spacing: -0.01em; line-height: 1.02; }
h1 { font-size: clamp(34px, 6.4vw, 66px); }
h2 { font-size: clamp(26px, 4.4vw, 44px); }
h3 { font-size: clamp(19px, 2.4vw, 26px); }
p { margin: 0 0 16px; }
.lead { font-size: clamp(16px, 2vw, 20px); color: var(--mute-2); font-weight: 500; }
.muted { color: var(--mute); }
.orange { color: var(--orange); }
.tabular { font-variant-numeric: tabular-nums; }

.eyebrow {
  font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--mute); font-weight: 800; margin: 0 0 14px;
}
.underline { width: 64px; height: 5px; background: var(--orange); border-radius: 4px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: .92rem;
  padding: 13px 22px; border-radius: 5px; border: 1px solid transparent;
  line-height: 1.2;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:active { transform: translateY(1px); }
.btn:hover { transform: translateY(-2px); }
.btn.is-loading,
.btn:disabled {
  opacity: .82;
  transform: none;
}
.btn:disabled { cursor: not-allowed; }
.btn.is-loading { cursor: wait; }
.btn.is-loading::before {
  content: "";
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid currentColor;
  border-right-color: transparent;
  display: inline-block;
  animation: sb-spin .75s linear infinite;
}
@keyframes sb-spin { to { transform: rotate(360deg); } }
.btn-primary { background: var(--orange); color: #0C1422; }
.btn-primary:hover { background: #FF9647; }
.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--orange); color: var(--orange); }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Header / nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(11,20,34,.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding-top:14px; padding-bottom:14px; min-height:0; }
.brand { display:inline-flex; align-items:center; flex:none; gap:10px; text-decoration:none; font-weight: 900; letter-spacing: 0.02em; font-size: 15px; white-space:nowrap; }
.brand .dot { color: var(--orange); }
.nav-links { display: flex; align-items: center; justify-content:flex-end; gap: 17px; min-width:0; }
.nav-links a { flex:none; white-space:nowrap; font-size: 14px; font-weight: 600; color: var(--mute-2); }
.nav-links a:hover, .nav-links a.active { color: var(--white); }
.nav-links a.btn-primary { color:#0C1422; }
.site-header .btn {
  font-size:.92rem; font-weight:700; padding:11px 18px; border-radius:5px;
}
.site-header .btn-primary:hover { background:#FF9647; }
.site-header .btn-ghost:hover { border-color:var(--orange); color:var(--orange); }
.account-nav-btn { min-height:0; padding: 9px 14px; gap: 9px; border-radius:5px; }
.account-nav-btn.is-member {
  width:38px; height:38px; min-width:38px; padding:4px; justify-content:center;
  background:rgba(255,255,255,.04); border-color:var(--line-2);
  border-radius:5px;
}
.account-nav-btn.is-member:hover { border-color:var(--orange); }
.account-nav-avatar {
  width: 28px; height: 28px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--orange), #ffad45);
  color: #1a0a00; font-size: 10px; font-weight: 900; letter-spacing: .04em;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.22), 0 0 0 3px rgba(255,125,1,.12);
}
.account-plan-change {
  display:grid;
  grid-template-columns:minmax(220px, 1.15fr) minmax(170px, .85fr) minmax(140px, max-content);
  gap:10px;
  align-items:stretch;
  flex-basis:100%;
  width:100%;
  max-width:720px;
}
.account-plan-change .sb-select,
.account-plan-change .sb-input { min-width:0; }
.account-plan-change .btn {
  min-width:140px;
  justify-content:center;
  white-space:nowrap;
}
@media (max-width:620px) {
  .account-plan-change { grid-template-columns:1fr; }
  .account-plan-change .btn { width:100%; }
}
.nav-toggle { display: none; background: none; border: 0; color: var(--white); font-size: 22px; cursor: pointer; }
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
    position: absolute; top: 60px; left: 0; right: 0; padding: 18px 24px;
    background: #0B1422; border-bottom: 1px solid var(--line);
  }
  .nav-toggle { display: block; }
}

/* ---------- Sections ---------- */
.section { padding: clamp(56px, 9vw, 110px) 0; }
.section-tight { padding: clamp(40px, 6vw, 72px) 0; }
.section-alt { background: var(--ink-2); }
.center { text-align: center; }
.maxr { max-width: 720px; }
.maxr.center { margin-left: auto; margin-right: auto; }

/* ---------- Legal document pages ---------- */
.legal-section {
  padding: clamp(48px, 8vw, 90px) 0 clamp(40px, 6vw, 72px);
  background: var(--ink);
}
.legal-document {
  max-width: 760px;
}
.legal-header {
  margin-bottom: 28px;
}
.legal-header .eyebrow {
  color: var(--mute);
}
.legal-header h1 {
  color: var(--orange);
}
.legal-header .underline {
  width: 100%;
  height: 3px;
  margin: 18px 0 22px;
}
.legal-date {
  color: var(--white);
  font-size: 15px;
  font-weight: 500;
  margin: 0;
}
.legal-body {
  color: var(--mute-2);
  font-size: 15.5px;
  line-height: 1.66;
}
.legal-body .legal-intro {
  font-size: 16px;
  line-height: 1.62;
}
.legal-body h3 {
  color: var(--white);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.2;
  letter-spacing: 0;
  margin: 28px 0 10px;
}
.legal-body h3:first-child {
  margin-top: 0;
}
.legal-body p {
  margin-bottom: 14px;
}
.legal-body strong {
  color: var(--white);
  font-weight: 900;
}
.legal-body a {
  color: var(--orange);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 3px;
}
@media (max-width: 560px) {
  .legal-section {
    padding-top: 36px;
  }
}

/* ---------- Hero ---------- */
.hero { padding: clamp(64px, 11vw, 130px) 0 clamp(48px, 8vw, 90px); }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 620px; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 920px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px;
}
.card-link { transition: border-color .2s ease, transform .12s ease; }
.card-link:hover { border-color: var(--line-2); transform: translateY(-2px); }
.card h3 { margin-bottom: 8px; }
.card .kicker {
  font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--orange); font-weight: 800; margin-bottom: 12px;
}
.card .arrow { color: var(--orange); font-weight: 800; font-size: 14px; margin-top: 14px; display: inline-block; }

.pill {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.04em;
  padding: 6px 12px; border-radius: 999px;
  background: var(--orange-soft); color: var(--orange);
}

/* ---------- Lanes strip ---------- */
.lanes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 760px) { .lanes { grid-template-columns: repeat(2, 1fr); } }
.lane {
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 16px; background: var(--surface);
}
.lane .n { color: var(--orange); font-weight: 900; font-size: 13px; letter-spacing: 0.1em; }
.lane h4 { font-size: 16px; font-weight: 800; margin: 8px 0 4px; }
.lane p { font-size: 13px; color: var(--mute); margin: 0; }

/* ---------- Feature split ---------- */
.split { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 5vw, 56px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }

/* ---------- Stat punch ---------- */
.punch {
  font-weight: 900; line-height: 0.92; color: var(--orange);
  font-size: clamp(48px, 12vw, 104px); letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.punch-sub { font-size: 18px; font-weight: 700; margin-top: 6px; }

/* ---------- Calculator UI ---------- */
.calc {
  background: var(--ink-2); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: clamp(20px, 3vw, 28px);
}
.calc-inputs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 22px; }
@media (max-width: 620px) { .calc-inputs { grid-template-columns: 1fr; } }
.field {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 16px;
}
.field label {
  display: block; font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--mute); font-weight: 700; margin-bottom: 10px;
}
.field .val { font-weight: 900; font-size: 22px; margin-top: 10px; font-variant-numeric: tabular-nums; }
input[type="range"] {
  -webkit-appearance: none; appearance: none; width: 100%; height: 4px;
  border-radius: 999px; background: var(--line-2); outline: none; accent-color: var(--orange);
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: var(--orange); cursor: pointer; border: 3px solid var(--ink); box-shadow: 0 0 0 1px var(--line-2);
}
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: var(--orange); cursor: pointer; border: 3px solid var(--ink); }
input[type="number"], input[type="text"], input[type="email"] {
  width: 100%; background: var(--surface); border: 1px solid var(--line-2);
  border-radius: 10px; color: var(--white); font-family: var(--font); font-weight: 700;
  font-size: 16px; padding: 12px 14px;
}
input::placeholder { color: var(--mute); font-weight: 500; }
input:focus { outline: 2px solid var(--orange); outline-offset: 1px; }

.hero-out {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px; margin-bottom: 18px;
  min-width: 0; overflow-wrap: anywhere;
}
.hero-out [id$="-hero-num"], .score-ring {
  display: block; max-width: 100%; overflow-wrap: anywhere; word-break: break-word;
}
.hero-out .cap { color: var(--mute); font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.detail-strip {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px;
  background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
}
@media (max-width: 620px) { .detail-strip { grid-template-columns: 1fr; } }
.detail { background: var(--surface); padding: 16px 18px; min-width: 0; }
.detail .k { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mute); font-weight: 700; margin-bottom: 8px; }
.detail .v { font-size: 22px; font-weight: 900; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; word-break: break-word; line-height: 1.15; }
.detail .s { font-size: 12px; color: var(--mute); font-weight: 600; margin-top: 4px; }

.bars .bar-row { margin: 14px 0; }
.bar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.bar-head .lbl { font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); font-weight: 700; }
.bar-head .num, .field .val { font-weight: 900; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; word-break: break-word; line-height: 1.15; }
.bar-head .num { font-size: 15px; text-align: right; min-width: 0; }
.bar-track { background: var(--track); border-radius: 8px; height: 16px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 8px; transition: width .35s cubic-bezier(.2,.7,.2,1); }
@media (prefers-reduced-motion: reduce) { .bar-fill { transition: none; } }

/* ---------- Audit stepper ---------- */
.steps { display: flex; gap: 8px; margin-bottom: 22px; flex-wrap: wrap; }
.step-dot { height: 6px; border-radius: 999px; background: var(--line-2); flex: 1; min-width: 30px; }
.step-dot.done { background: var(--orange); }
.audit-q { display: none; }
.audit-q.active { display: block; }
.q-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 620px) { .q-grid { grid-template-columns: 1fr; } }
.score-ring { font-size: clamp(56px, 14vw, 96px); font-weight: 900; color: var(--orange); line-height: 1; font-variant-numeric: tabular-nums; }
.leak-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 0; border-top: 1px solid var(--line); }
.leak-item .sev { font-weight: 900; font-size: 13px; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.sev-high { background: rgba(255,68,56,0.14); color: var(--red); }
.sev-mid { background: var(--orange-soft); color: var(--orange); }
.sev-low { background: rgba(47,203,126,0.14); color: var(--green); }

/* ---------- Library ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip {
  font-size: 13px; font-weight: 700; padding: 8px 16px; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--mute-2); background: transparent; cursor: pointer;
}
.chip.active { background: var(--orange); color: #1a0a00; border-color: var(--orange); }
.lib-card .topic { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); font-weight: 800; }
.lib-card h3 { font-size: 18px; margin: 10px 0 8px; }
.lib-card p { font-size: 14px; color: var(--mute); margin: 0; }
.lib-card .meta { font-size: 12px; color: var(--mute); font-weight: 700; margin-top: 16px; display: flex; gap: 14px; }

/* ---------- Email capture ---------- */
.capture { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(26px, 5vw, 48px); }
.capture-form { display:flex;flex-wrap:wrap;align-items:stretch;gap:10px;width:100%;max-width:480px; }
.capture-form input { flex:1 1 0;min-width:0;height:48px; }
.capture-form .btn { flex:0 0 auto;min-width:142px;height:48px;justify-content:center;white-space:nowrap;padding:11px 20px; }
.capture-form .field-error { order:3;flex:0 0 100%;text-align:left;margin-top:-4px; }
.capture > .note .btn { padding:9px 17px;font-size:14px;white-space:nowrap; }
@media (max-width: 520px) {
  .capture-form { flex-direction:column; }
  .capture-form .btn { width:100%;min-width:0; }
}
.note { font-size: 13px; color: var(--mute); }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--line); background: var(--ink-2); padding: 54px 0 40px; }
.footer-grid { display:grid; grid-template-columns:minmax(300px,1.35fr) repeat(4,minmax(148px,.8fr)); gap:30px; }
.footer-grid > * { min-width:0; }
.footer-brand .note { max-width:300px; }
.footer-grid h5 { font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); font-weight: 800; margin: 0 0 14px; }
.footer-grid a { display: block; font-size: 14px; color: var(--mute-2); font-weight: 600; margin-bottom: 9px; white-space:nowrap; }
.footer-grid a:hover { color: var(--white); }
.footer-socials { display:flex; align-items:center; flex-wrap:wrap; gap:16px; }
.footer-grid .footer-social { display:inline-flex; align-items:center; justify-content:center; margin:0; padding:0; border:0; background:transparent; color:var(--mute-2); transition:transform .15s ease,color .15s ease; }
.footer-grid .footer-social:hover { transform:translateY(-2px); color:var(--white); }
.footer-social svg { display:block; width:23px; height:23px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.footer-social svg .fill-icon { fill:currentColor; stroke:none; }
.footer-social.instagram:hover { color:#f472b6; }
.footer-social.youtube:hover { color:#ff6155; }
.footer-social.tiktok:hover { color:#69e6e1; }
.footer-social.linkedin:hover { color:#6db4ff; }
.footer-bottom { margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: var(--mute); }
@media (max-width:980px) {
  .site-footer { padding:42px 0 30px; }
  .footer-grid { grid-template-columns:repeat(2,minmax(0,1fr)); gap:30px 24px; }
  .footer-brand { grid-column:1 / -1; max-width:420px; }
}
@media (max-width:520px) {
  .footer-grid { grid-template-columns:minmax(0,1fr); gap:26px; }
  .footer-brand { grid-column:auto; max-width:none; padding-bottom:4px; }
  .footer-brand .note { max-width:none; }
  .footer-group { padding-top:22px; border-top:1px solid var(--line); }
  .footer-socials { gap:18px; }
  .footer-bottom { flex-direction:column; align-items:flex-start; margin-top:30px; }
}

/* ---------- Utilities ---------- */
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.divider { height: 1px; background: var(--line); border: 0; margin: 0; }
.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; }
.dev-note {
  border: 1px dashed var(--line-2); border-radius: 10px; padding: 12px 14px;
  font-size: 12.5px; color: var(--mute); margin-top: 16px;
}
.dev-note b { color: var(--mute-2); font-weight: 800; }

/* ============================================================
   Logo, calculator index, lane sections, readability polish
   ============================================================ */

/* Logo lockup */
.logo-lock { display: inline-flex; align-items: center; gap: 11px; }
.sb-mark { flex: none; display: block; }
.brand-word { font-weight: 900; letter-spacing: 0.02em; font-size: 16px; line-height: 1; }
.brand-word .dot { color: var(--orange); }
.site-header .logo-lock { gap:10px; }
.site-header .brand-word { font-size:15px; }
.footer-logo { display:flex; align-items:center; gap:11px; min-width:0; margin-bottom:14px; }
.footer-logo .brand-word {
  flex: none;
  white-space: nowrap;
  overflow-wrap: normal;
  word-break: normal;
  font-size: 16px;
}
@media (max-width: 380px) {
  .footer-logo { gap:8px; }
  .footer-logo .sb-mark { width:30px; height:30px; }
  .footer-logo .brand-word { font-size:12px; }
}

/* Hero badge (the big mark) */
.hero-badge { width: 88px; height: 88px; margin-bottom: 26px; }
@media (max-width: 600px) { .hero-badge { width: 66px; height: 66px; } }

/* Table of contents on the calculators page */
.toc { background: var(--ink-2); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 24px; }
.toc-lane { margin-bottom: 16px; }
.toc-lane:last-child { margin-bottom: 0; }
.toc-lane .lane-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); font-weight: 800; margin-bottom: 10px; }
.toc-links { display: flex; flex-wrap: wrap; gap: 8px; }
.toc-links a {
  font-size: 13px; font-weight: 600; color: var(--mute-2);
  padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px;
  transition: border-color .15s ease, color .15s ease;
}
.toc-links a:hover { color: var(--white); border-color: var(--white); }

/* Lane section header (groups calculators by money lane) */
.lane-section { display: flex; align-items: baseline; gap: 16px; padding: 6px 0 4px; margin-top: 8px; }
.lane-section .ln { font-size: clamp(30px, 6vw, 52px); font-weight: 900; color: var(--orange); line-height: 1; font-variant-numeric: tabular-nums; }
.lane-section .lt h2 { margin: 0; }
.lane-section .lt p { margin: 6px 0 0; color: var(--mute); font-size: 14px; }

/* Each calculator block, tighter and more consistent */
.calc-block { padding: 30px 0; }
.calc-block .calc-title { font-size: clamp(20px, 2.6vw, 28px); font-weight: 900; margin: 0 0 8px; }
.calc-block .calc-desc { color: var(--mute-2); max-width: 640px; margin: 0 0 22px; font-size: 16px; }

/* The Monday move takeaway line under a calculator */
.takeaway {
  display: flex; gap: 12px; align-items: flex-start;
  border-left: 3px solid var(--orange); border-radius: 0;
  background: var(--orange-soft); padding: 14px 16px; margin-top: 16px;
}
.takeaway .tk { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--orange); font-weight: 800; white-space: nowrap; padding-top: 2px; }
.takeaway p { margin: 0; font-size: 14px; color: var(--mute-2); font-weight: 600; }

/* Slightly airier reading */
.lead { line-height: 1.55; }
.section h2 + .underline { margin-top: 16px; }

/* Back-to-top jump that sits with each lane */
.lane-jump { font-size: 12px; font-weight: 700; color: var(--mute); margin: 8px 0 0; }
.lane-jump a { color: var(--orange); }

/* Industry pack separator inside the calculator index */
.toc-sep { display: flex; align-items: center; gap: 12px; margin: 16px 0 14px; }
.toc-sep span { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--orange); font-weight: 800; white-space: nowrap; }
.toc-sep::before, .toc-sep::after { content: ''; height: 1px; background: var(--line-2); flex: 1; }

/* ---------- Operating Review (advisory CTA at page foot) ---------- */
.review-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: start; }
@media (max-width: 880px) { .review-grid { grid-template-columns: 1fr; gap: 40px; } }
.review-meta { color: var(--mute); font-size: 14px; margin-top: 26px; }
.review-email { display: inline-block; margin-top: 12px; color: var(--orange); font-weight: 700; text-decoration: none; }
.review-email:hover { text-decoration: underline; }
.accent { color: var(--orange); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
@media (max-width: 520px) { .form-row { grid-template-columns: 1fr; } }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { margin-bottom: 18px; }
.form-label { font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--mute-2); font-weight: 800; }
.required-mark { color:#ff6b6b; font-size:14px; }
.form-input, .form-textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--line);
  border-radius: 12px; padding: 14px 16px; color: var(--white);
  font-family: var(--font); font-size: 15px; font-weight: 500;
}
.form-textarea { min-height: 150px; resize: vertical; }
.form-input:focus, .form-textarea:focus { outline: 2px solid var(--orange); outline-offset: 1px; border-color: transparent; }
.form-input[aria-invalid="true"], .form-textarea[aria-invalid="true"] {
  border-color:#ff6b6b; box-shadow:0 0 0 3px rgba(255,107,107,.12);
}
.sb-input[aria-invalid="true"] {
  border-color:#ff6b6b; box-shadow:0 0 0 3px rgba(255,107,107,.12);
}
.field-error { display:none; margin:0; color:#ff9b9b; font-size:12px; font-weight:700; }
.field-error.is-visible { display:block; }
.or-div { display: flex; align-items: center; gap: 16px; color: var(--mute); font-size: 12px; letter-spacing: 0.2em; text-transform: uppercase; font-weight: 800; margin: 22px 0; }
.or-div::before, .or-div::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.review-note { text-align: center; color: var(--mute); font-size: 13px; margin-top: 16px; }
.review-done { display: none; background: var(--surface); border: 1px solid var(--line-2); border-radius: 16px; padding: 30px; }

/* ---------- Type-to-edit slider values (handles any magnitude) ---------- */
.field .val { cursor: text; }
.field .val:hover { text-decoration: underline; text-decoration-color: var(--orange); text-underline-offset: 4px; text-decoration-thickness: 2px; }
.val-edit {
  width: 100%; box-sizing: border-box;
  background: var(--surface-2); border: 1px solid var(--orange); border-radius: 8px;
  padding: 2px 8px; margin: 0; color: var(--white);
  font-family: var(--font); font-weight: 900; font-size: 22px;
  font-variant-numeric: tabular-nums; line-height: 1.1;
}
.val-edit:focus { outline: none; }

/* ---------- Community pages ---------- */
.subnav { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:22px; }
.subnav a { font-size:13px; font-weight:700; letter-spacing:.02em; padding:7px 14px; border-radius:999px; border:1px solid var(--line); color:var(--mute-2); text-decoration:none; transition:.15s; }
.subnav a:hover { border-color:var(--orange); color:var(--white); }
.subnav a.active { background:var(--orange); color:#1a0a00; border-color:var(--orange); }

.card-link { display:block; text-decoration:none; color:inherit; transition:border-color .15s, transform .15s; }
.card-link:hover { border-color:var(--orange); transform:translateY(-2px); }
.card-link .go { color:var(--orange); font-weight:800; font-size:14px; margin-top:14px; display:inline-block; }

.bm-controls { display:grid; grid-template-columns:repeat(4,1fr); gap:14px; margin-bottom:22px; }
@media (max-width:760px){ .bm-controls { grid-template-columns:1fr 1fr; } }
.bm-field label { display:block; font-size:12px; font-weight:700; letter-spacing:.08em; text-transform:uppercase; color:var(--mute); margin-bottom:7px; }
.sb-select, .sb-input { width:100%; box-sizing:border-box; background:var(--surface-2); border:1px solid var(--line); border-radius:10px; padding:11px 12px; color:var(--white); font-family:var(--font); font-weight:600; font-size:15px; }
.sb-select:focus, .sb-input:focus { outline:none; border-color:var(--orange); }
.bm-verdict { font-weight:800; margin-top:18px; }

.vote-list, .thread-list { display:flex; flex-direction:column; gap:12px; }
.vote-item { display:flex; align-items:center; gap:16px; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px 18px; }
.vote-btn { flex:0 0 auto; background:transparent; border:1px solid var(--line-2); color:var(--mute-2); font-family:var(--font); font-weight:800; font-size:13px; border-radius:10px; padding:10px 14px; cursor:pointer; transition:.15s; }
.vote-btn:hover { border-color:var(--orange); color:var(--white); }
.vote-btn.voted { background:var(--orange); color:#1a0a00; border-color:var(--orange); cursor:default; }
.vote-btn:disabled{cursor:default;opacity:1}.vote-btn:disabled:not(.voted){background:rgba(52,211,153,.16);border-color:rgba(52,211,153,.35);color:var(--green)}
.vote-body { flex:1 1 auto; }
.vote-title { font-weight:800; font-size:16px; }
.vote-meta { color:var(--mute); font-size:13px; margin-top:5px; }
.vote-count { flex:0 0 auto; font-weight:900; font-size:22px; font-variant-numeric:tabular-nums; color:var(--white); min-width:48px; text-align:right; }

.tag { display:inline-block; font-size:11px; font-weight:800; letter-spacing:.04em; text-transform:uppercase; padding:3px 8px; border-radius:999px; margin-right:6px; }
.tag-consider { background:var(--bar-neutral-2); color:var(--mute-2); }
.tag-filming { background:rgba(255,125,1,.18); color:var(--orange); }
.tag-shipped { background:rgba(52,211,153,.16); color:var(--green); }

.thread { display:flex; align-items:center; justify-content:space-between; gap:16px; background:var(--surface); border:1px solid var(--line); border-radius:14px; padding:16px 18px; }
.thread:hover { border-color:var(--line-2); }
.thread-main { min-width:0; }
.thread-label {
  display:inline-flex; align-items:center; width:max-content;
  margin:0 0 9px; padding:4px 9px; border-radius:999px;
  background:var(--orange-soft); color:var(--orange);
  font-size:11px; font-weight:900; line-height:1; letter-spacing:.08em; text-transform:uppercase;
}
.thread-title { font-weight:800; font-size:16px; }
.thread-meta { color:var(--mute); font-size:13px; margin-top:5px; }
.thread-stats { flex:0 0 auto; color:var(--mute-2); font-size:13px; font-weight:700; text-align:right; }
.room-filter { margin-bottom:20px; }
@media (max-width:560px) {
  .thread { align-items:flex-start; flex-direction:column; gap:10px; }
  .thread-stats { text-align:left; }
}

.stack-form { display:flex; flex-direction:column; gap:12px; max-width:560px; }
.stack-form .row2 { display:flex; gap:10px; }
@media (max-width:520px){ .stack-form .row2 { flex-direction:column; } }
.form-done { display:none; color:var(--green); font-weight:800; margin-top:12px; }

/* ---------- Pricing / membership ---------- */
.bill-toggle { display:inline-flex; gap:6px; background:var(--surface); border:1px solid var(--line); border-radius:999px; padding:5px; margin-bottom:26px; }
.bill-opt { border:none; background:transparent; color:var(--mute-2); font-family:var(--font); font-weight:800; font-size:14px; padding:9px 18px; border-radius:999px; cursor:pointer; transition:.15s; }
.bill-opt.active { background:var(--orange); color:#1a0a00; }
.price-card { max-width:460px; }
.price-big { font-weight:900; font-size:clamp(42px,9vw,64px); line-height:1; letter-spacing:-.02em; }
.price-period { color:var(--mute); font-weight:700; margin-top:8px; }
.price-note { color:var(--mute-2); font-size:13px; margin-top:6px; }
.feature-list { list-style:none; padding:0; margin:22px 0 24px; }
.feature-list li { padding:10px 0 10px 28px; position:relative; color:var(--mute-2); border-top:1px solid var(--line); font-size:15px; }
.feature-list li:first-child { border-top:none; }
.feature-list li:before { content:""; position:absolute; left:5px; top:15px; width:9px; height:9px; border-right:2px solid var(--orange); border-bottom:2px solid var(--orange); transform:rotate(45deg); }
.checkout-msg { color:var(--mute-2); font-size:13px; margin-top:12px; min-height:18px; }

.account-grid { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:20px }
.account-grid > div { padding:14px;border:1px solid var(--line);border-radius:10px;background:rgba(14,26,46,.45) }
.account-grid span { display:block;color:var(--mute);font-size:11px;font-weight:700;letter-spacing:.7px;text-transform:uppercase }
.account-grid strong { display:block;margin-top:5px;color:var(--white);font-size:14px;overflow-wrap:anywhere }
@media (max-width:560px){.account-grid{grid-template-columns:1fr}}
.account-hero { display:flex;align-items:center;gap:24px }
.account-avatar {
  flex:0 0 auto;width:72px;height:72px;border-radius:50%;
  display:flex;align-items:center;justify-content:center;
  background:var(--surface);border:1px solid var(--line-2);
  color:var(--mute-2);font-size:22px;font-weight:900;letter-spacing:.04em;
  box-shadow:0 14px 32px rgba(0,0,0,.2);
}
.account-avatar.is-active {
  background:linear-gradient(135deg,var(--orange),#ffad45);
  border-color:rgba(255,173,69,.7);color:#1a0a00;
  box-shadow:0 14px 36px rgba(255,125,1,.2),0 0 0 6px rgba(255,125,1,.08);
}
@media (max-width:560px){
  .account-hero{align-items:flex-start;gap:16px}
  .account-avatar{width:54px;height:54px;font-size:17px}
}
.gate-banner {
  background: var(--ink-2); border: 1px solid var(--line); border-left: 3px solid var(--orange);
  border-radius: 12px; padding: 16px 18px; margin-bottom: 22px; color: var(--mute-2); font-size: 15px;
}
.gate-banner a { color: var(--orange); font-weight: 700; text-decoration: none; }
.calc-tools { margin-top:18px; display:grid; grid-template-columns:minmax(0,1fr); gap:14px; align-items:end; }
.calc-search-field { display:grid; gap:7px; min-width:0; }
.calc-search-field span { color:var(--mute); font-size:11px; font-weight:800; letter-spacing:.12em; text-transform:uppercase; }
.calc-search {
  min-height:48px;
  height:48px;
  line-height:20px;
  padding:0 16px;
  display:block;
  appearance:none;
}
.calc-no-results-section { padding:clamp(14px,3vw,28px) 0 clamp(28px,5vw,54px); }
.calc-no-results {
  display:flex; align-items:center; gap:16px;
  padding:18px 20px; border:1px solid var(--line-2); border-radius:14px;
  color:var(--mute-2); background:rgba(255,255,255,.045);
  box-shadow:0 16px 38px rgba(0,0,0,.12);
}
.calc-no-results-icon {
  flex:0 0 auto; width:42px; height:42px; border-radius:50%;
  display:flex; align-items:center; justify-content:center;
  background:var(--orange-soft); color:var(--orange);
  font-size:22px; font-weight:900; line-height:1;
}
.calc-no-results h2 { font-size:20px; letter-spacing:0; margin:0 0 5px; }
.calc-no-results p { margin:0; font-size:14px; color:var(--mute-2); }
@media (max-width:520px) {
  .calc-no-results { align-items:flex-start; padding:16px; }
  .calc-no-results-icon { width:36px; height:36px; font-size:19px; }
}
@media (max-width:620px){ .calc-tools{grid-template-columns:1fr} }
.member-protected { display:none; }
.member-wall { padding:30px 0 60px; }
.member-wall .card { max-width:620px;margin:0 auto;text-align:center; }
.calc-lock-icon {
  width:48px;height:48px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;
  background:var(--orange-soft);color:var(--orange);font-size:20px;
}
.calc { position:relative; }
.calc-lock {
  position: absolute; inset: 0; z-index: 4;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center; text-decoration: none; color: var(--white);
  background: rgba(14, 26, 46, 0.74); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  border: 1px solid var(--orange); border-radius: 14px; padding: 22px;
}
.calc-lock .lock-ic { width:30px;height:30px;color:var(--orange); }
.calc-lock .lock-title { font-weight:900;font-size:19px; }
.calc-lock .lock-sub { color:var(--mute-2);font-size:14px;max-width:360px;line-height:1.5; }
.calc-lock .lock-cta {
  background:var(--orange);color:#1a0a00;font-weight:800;font-size:14px;
  padding:10px 18px;border-radius:10px;
}
.calc-block[data-free] .calc-title::after {
  content:"Free sample";
  display:inline-block;margin-left:10px;padding:3px 9px;vertical-align:middle;
  border-radius:999px;background:rgba(52,211,153,.16);color:var(--green);
  font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;
}

/* ---------- Payment page ---------- */
.pay-methods { display:flex; flex-wrap:wrap; gap:8px; margin:6px 0 4px; }
.pay-badge { font-size:12px; font-weight:800; letter-spacing:.02em; color:var(--mute-2); background:var(--surface-2); border:1px solid var(--line); border-radius:8px; padding:7px 12px; }

/* ---------- Express wallet buttons + on-page card form ---------- */
.pay-panel {
  position: relative;
  z-index: 1;
  isolation: isolate;
  max-width: 460px;
  scroll-margin-top: 82px;
}
#express-checkout-element,
#paypal-button-container,
#payment-element { position:relative; z-index:1; }
.payment-email { margin:14px 0 6px; }
.payment-email[aria-invalid="true"] { border-color:#ff6b6b; box-shadow:0 0 0 3px rgba(255,107,107,.12); }
.payment-field-error { display:none; margin:0 0 12px; color:#ff9b9b; font-size:13px; font-weight:700; }
.payment-field-error.is-visible { display:block; }
.payment-method-title { margin: 4px 0 10px; color: var(--mute-2); font-size: 13px; font-weight: 800; text-align: center; }
#paypal-button-container:empty { display: none; }
#paypal-button-container:not(:empty) { margin-top:10px; }
#paypal-button-container:not(:empty) + #paypal-status { margin-top:8px; }
.pay-panel:has(#paypal-button-container:not(:empty)) #express-fallback [data-wallet="paypal"] { display:none !important; }
.wallet-row { display: flex; flex-direction: column; gap: 10px; margin-top: 6px; }
.wallet-btn { width: 100%; border: none; border-radius: 10px; padding: 14px; font-family: var(--font); font-weight: 800; font-size: 15px; cursor: pointer; transition: filter .15s; }
.wallet-btn:hover { filter: brightness(1.08); }
.wallet-btn:disabled { cursor:not-allowed;filter:none;opacity:.62; }
.wallet-btn.apple { background: #000; color: #fff; }
.wallet-btn.google { background: #fff; color: #111; border: 1px solid #dadce0; }
.wallet-btn.paypal { background: #ffc439; color: #003087; }
.pay-divider { display: flex; align-items: center; gap: 12px; color: var(--mute); font-size: 13px; margin: 18px 0; }
.pay-divider:before, .pay-divider:after { content: ""; flex: 1; height: 1px; background: var(--line); }
.card-form { display: flex; flex-direction: column; gap: 10px; }
.card-row { display: flex; gap: 10px; }
.payment-loading { padding:12px 0;text-align:center; }
.express-checkout-host {
  display:block;
  width:100%;
  min-height:0;
  margin-top:14px;
  visibility:visible;
  opacity:1;
}
.express-checkout-host.is-ready {
  min-height:46px;
}
.sb-input.input-error { border-color: #ff6b6b; box-shadow: 0 0 0 1px rgba(255,107,107,.35); }

/* Admin-managed video clips on the library page */
.clip-strip{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:18px}
.clip-card{background:var(--surface);border:1px solid var(--line);border-radius:14px;overflow:hidden}
.clip-frame{display:block;aspect-ratio:9/16;background:#000}
.clip-frame iframe{width:100%;height:100%;border:0;display:block}
.clip-link{display:flex;align-items:center;justify-content:center;color:var(--orange);font-weight:800;text-decoration:none}
.clip-meta{padding:12px 14px}
.clip-meta b{display:block;font-size:14px;line-height:1.3}
.clip-meta span{display:block;color:var(--mute);font-size:12px;margin-top:5px}

/* Clip cards rendered into the library grid */
.clip-thumb{position:relative;aspect-ratio:16/9;border-radius:10px;overflow:hidden;margin-bottom:16px;background:linear-gradient(135deg,var(--surface-2,#223655),var(--ink-2,#142339));display:flex;align-items:center;justify-content:center}
.clip-thumb img{width:100%;height:100%;object-fit:cover;display:block}
.clip-play{position:absolute;width:46px;height:46px;border-radius:50%;background:rgba(255,125,1,.92);color:#1a1206;display:flex;align-items:center;justify-content:center;font-size:16px;padding-left:3px;box-shadow:0 6px 18px rgba(0,0,0,.35)}
.lib-card .clip-thumb{margin-top:2px}
