/* ==========================================================================
   SignLater Design 2.0 — Homepage (production)
   Page-specific styles. Requires: tokens.css, motion.css, components.css.
   Global pieces (nav, footer, trust, sliders, Second Number) come from
   components.css — this file holds only homepage-only composition.
   ========================================================================== */

/* ============ 1 · HERO ============ */
.hero {
  position: relative; padding: 0 0 110px; overflow: hidden;
  background:
    radial-gradient(1100px 520px at 78% -8%, rgba(180,83,9,.14), transparent 65%),
    radial-gradient(900px 600px at 8% 108%, rgba(60,70,90,.10), transparent 60%),
    radial-gradient(700px 420px at 50% 55%, rgba(255,255,255,.55), transparent 70%),
    linear-gradient(180deg, var(--field1) 0%, var(--field2) 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(27,27,25,.10) 1px, transparent 1.4px);
  background-size: 26px 26px;
  mask-image: radial-gradient(900px 620px at 50% 30%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(900px 620px at 50% 30%, #000 30%, transparent 75%);
}
.ghost-ring {
  position: absolute; right: -190px; top: 120px; width: 520px; height: 520px;
  pointer-events: none; opacity: .5;
  border: 64px solid rgba(27,27,25,.055); border-radius: 50%;
}
.ghost-ring::after {
  content: ""; position: absolute; inset: -64px; border-radius: 50%;
  border: 64px solid transparent; border-top-color: rgba(180,83,9,.10);
  transform: rotate(38deg);
}

.hero-head {
  position: relative; z-index: 5; max-width: 1360px; margin: 0 auto;
  padding: 30px 48px 0; text-align: center;
}
.hero-head h1 {
  font-size: 46px; font-weight: var(--fw-bold); letter-spacing: -.03em;
  line-height: 1.12; max-width: 840px; margin: 0 auto;
}
.hero-head h1 .arr { color: var(--muted); font-weight: var(--fw-medium); }
.hero-head .sub {
  color: var(--muted); font-size: 18.5px; max-width: 660px; margin: 18px auto 0;
}

/* Layered instrument stage */
.stage { position: relative; z-index: 5; max-width: 1280px; height: 700px; margin: 54px auto 0; }

.calc {
  position: absolute; left: 0; top: 24px; width: 640px; z-index: 1;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-8); box-shadow: var(--sh-tool); overflow: hidden;
}
.calc-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 20px 36px; border-bottom: 1px solid var(--hairline);
}
.calc-title {
  font-size: 11.5px; letter-spacing: .12em; font-weight: var(--fw-bold);
  color: var(--faint); text-transform: uppercase;
}
.calc-body { padding: 10px 36px 8px; }
.calc-foot {
  display: flex; justify-content: space-between; align-items: center;
  padding: 18px 36px; border-top: 1px solid var(--hairline); background: #FBFAF5;
  font-size: 14px; color: var(--muted);
}
.calc-foot .free {
  font-size: 13.5px; font-weight: var(--fw-bold); color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: inline-block; }

/* Result card — the Second Number plane */
.result {
  position: absolute; left: 612px; top: 0; width: 452px; z-index: 3;
  background: linear-gradient(180deg, #FFFDF6, #FBF3E2);
  border: 1px solid #EAD9BC; border-radius: var(--r-8);
  box-shadow: var(--sh-result); overflow: hidden;
  transition: box-shadow .3s var(--ease);
}
.result::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px;
  background: linear-gradient(180deg, var(--amber), var(--amber-soft));
}
.result:hover {
  box-shadow: 0 2px 8px rgba(27,27,25,.10), 0 72px 130px -28px rgba(120,53,15,.55);
}
.result-in { padding: 36px 40px 32px; }
.r-label {
  font-size: 11.5px; letter-spacing: .14em; font-weight: var(--fw-bold);
  color: var(--muted); margin-bottom: 6px;
}
.r-first { font-size: 19px; color: var(--muted); font-weight: var(--fw-medium); }
.r-first small { font-size: 13px; color: var(--faint); font-weight: var(--fw-medium); }
.r-second {
  font-size: 112px; font-weight: var(--fw-black); letter-spacing: -.045em; line-height: 1;
  color: var(--amber); margin: 10px 0 4px;
  text-shadow: 0 2px 24px rgba(180,83,9,.18);
}
.r-cap {
  font-size: 13px; letter-spacing: .1em; font-weight: var(--fw-bold);
  color: var(--amber); margin-bottom: 18px;
}
.r-link {
  display: inline-block; margin-top: 18px; font-size: 14px;
  font-weight: var(--fw-bold); color: var(--ink);
  min-height: 44px; line-height: 44px; /* Phase E: touch target */
}
.r-foot {
  border-top: 1px solid #EAD9BC; padding: 16px 40px;
  display: flex; justify-content: space-between;
  font-size: 13px; color: var(--muted); background: rgba(255,255,255,.5);
}

/* Quoted vs true bars */
.ba-row { margin-bottom: 14px; }
.ba-top { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 7px; }
.ba-top .q { color: var(--muted); font-weight: var(--fw-medium); }
.ba-track { height: 14px; border-radius: 7px; background: #EFEAD9; overflow: hidden; position: relative; }
.ba-fill { height: 100%; border-radius: 7px; transition: width .6s var(--ease); background: #3A3A36; }
.ba-gap {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--amber), var(--amber-soft));
  border-radius: 0 7px 7px 0; transition: left .6s var(--ease), width .6s var(--ease);
}
.ba-note { font-size: 13px; color: var(--muted); margin-top: 10px; }
.ba-note b { color: var(--amber); }

/* Donut card */
.donut-card {
  position: absolute; left: 968px; top: 296px; width: 312px; z-index: 4;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-8); box-shadow: var(--sh-card); padding: 28px 28px 24px;
  transition: box-shadow .3s var(--ease);
}
.donut-card:hover {
  box-shadow: 0 2px 6px rgba(27,27,25,.08), 0 40px 72px -24px rgba(27,27,25,.38);
}
.donut-card .card-label {
  font-size: 11.5px; letter-spacing: .14em; font-weight: var(--fw-bold);
  color: var(--muted); margin-bottom: 4px;
}
.donut-card .d-sub { font-size: 13px; color: var(--faint); margin-bottom: 16px; }
.donut-slot svg { width: 100%; height: auto; display: block; }
.d-legend { margin-top: 18px; display: grid; gap: 10px; }
.d-leg { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.d-leg .sw { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.d-leg .v { margin-left: auto; font-weight: var(--fw-bold); }
.d-leg .n { color: var(--muted); }

/* Verification chip */
.vchip {
  position: absolute; left: 612px; top: 612px; z-index: 5;
  display: flex; align-items: center; gap: 10px;
  background: rgba(27,27,25,.92); color: #F5F2E9;
  border-radius: var(--r-6); padding: 11px 18px;
  font-size: 13px; font-weight: var(--fw-bold);
  box-shadow: 0 12px 32px -12px rgba(27,27,25,.5);
}
.vchip .ok {
  width: 18px; height: 18px; border-radius: 50%; background: #4ADE80; color: #14532D;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 800;
}
.vchip small { color: #B9B9B2; font-weight: var(--fw-medium); }

/* Funding fragment */
.frag {
  position: absolute; right: -72px; top: 96px; width: 280px; z-index: 0; opacity: .85;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: var(--r-8); box-shadow: var(--sh-card); padding: 24px;
  rotate: 2.5deg;
}
.frag .frag-label {
  font-size: 12px; letter-spacing: .12em; color: var(--muted);
  font-weight: var(--fw-bold); margin-bottom: 10px;
}
.frag .f-num {
  font-size: 34px; font-weight: var(--fw-black); color: var(--amber); letter-spacing: -.02em;
}
.frag p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.frag .f-bar { height: 8px; border-radius: 4px; background: #EFEAD9; margin-top: 14px; overflow: hidden; }
.frag .f-bar i {
  display: block; height: 100%; width: 64%; border-radius: 4px;
  background: linear-gradient(90deg, #3A3A36 70%, var(--amber) 70%);
}

.hero-scroll {
  position: relative; z-index: 5; text-align: center; margin-top: 36px;
  color: var(--muted); font-size: 13px; letter-spacing: .08em;
}
.hero-scroll .chev { display: block; font-size: 20px; margin-top: 6px; }
@media (prefers-reduced-motion: no-preference) {
  .hero-scroll .chev { animation: bob 2.2s ease-in-out infinite; }
}
@keyframes bob { 0%,100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(7px); opacity: 1; } }

/* ============ 2 · GAP (dark reveal) ============ */
.gap { background: var(--inkbg); color: #F5F2E9; position: relative; overflow: hidden; padding: 120px 0 130px; }
.gap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(900px 480px at 50% 0%, rgba(180,83,9,.22), transparent 65%),
    radial-gradient(700px 500px at 90% 100%, rgba(60,70,90,.14), transparent 60%);
}
.gap-inner { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 48px; text-align: center; }
.gap .eyebrow { color: #8E8E86; }
.gap h2 { font-size: 44px; font-weight: var(--fw-bold); letter-spacing: -.025em; line-height: 1.18; margin: 20px 0 12px; }
.gap h2 .dim { color: #8E8E86; font-weight: var(--fw-medium); }
.gap h2 .lit { color: var(--amber-on-dark); }
.gap .lede { color: #B9B9B2; font-size: 18px; max-width: 640px; margin: 0 auto; }
.gap-viz {
  margin: 64px auto 0; max-width: 880px;
  display: grid; grid-template-columns: 1fr auto 1fr; gap: 32px; align-items: center;
}
.gap-num { text-align: center; }
.gap-num .gl { font-size: 12px; letter-spacing: .14em; font-weight: var(--fw-bold); color: #8E8E86; margin-bottom: 10px; }
.gap-num .gv { font-size: 96px; font-weight: var(--fw-black); letter-spacing: -.04em; line-height: 1; }
.gap-num.q .gv { color: #EDEAE0; }
.gap-num.t .gv { color: var(--amber-on-dark); text-shadow: 0 2px 40px rgba(232,163,61,.25); }
.gap-num .gs { font-size: 14px; color: #8E8E86; margin-top: 10px; }
.gap-arrow { font-size: 44px; color: var(--amber-on-dark); font-weight: 300; }
.gap-bars { margin: 56px auto 0; max-width: 720px; }
.gap-bar-row { margin-bottom: 20px; }
.gap-bar-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 8px; color: #B9B9B2; }
.gap-bar-top b { color: #F5F2E9; }
.gap-track { height: 18px; border-radius: 8px; background: #2A2A26; overflow: hidden; position: relative; }
.gap-fill { height: 100%; border-radius: 8px; background: #6E6E66; width: 0; transition: width 1s var(--ease); }
.gap-gapseg {
  position: absolute; top: 0; bottom: 0; left: 0; width: 0;
  background: linear-gradient(90deg, var(--amber), var(--amber-on-dark));
  border-radius: 0 8px 8px 0; transition: left 1s var(--ease) .35s, width 1s var(--ease) .35s;
}
.gap-cap { margin-top: 28px; font-size: 15px; color: #8E8E86; }
.gap-cap b { color: var(--amber-on-dark); }

/* Fact staging: quoted -> true -> gap (motion.js [data-stages]) */
[data-stage] { opacity: 0; translate: 0 24px; transition: opacity .7s var(--ease), translate .7s var(--ease); }
[data-stage].in { opacity: 1; translate: 0 0; }

/* ============ 3 · REST STOP ============ */
.rest { background: var(--paper); padding: 130px 0; text-align: center; }
.rest p {
  font-size: 34px; font-weight: var(--fw-medium); letter-spacing: -.02em;
  line-height: 1.5; max-width: 760px; margin: 0 auto; color: var(--ink);
}
.rest p .sn { color: var(--amber); font-weight: var(--fw-bold); }
.rest .rule { width: 56px; height: 2px; background: var(--amber); margin: 36px auto 0; opacity: .7; }

/* ============ 4 · FIVE DECISIONS ============ */
.decisions { padding: 40px 0 0; }
.dec-head { max-width: 1280px; margin: 0 auto; padding: 80px 48px 20px; }
.dec-head h2 { font-size: 40px; font-weight: var(--fw-bold); letter-spacing: -.025em; margin: 16px 0 10px; }
.dec-head p { color: var(--muted); font-size: 18px; max-width: 620px; }
.dec-row { padding: 70px 0; border-top: 1px solid var(--hairline); }
.dec-row.alt { background: var(--field1); }
.dec-grid {
  max-width: 1280px; margin: 0 auto; padding: 0 48px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.dec-num { font-size: 13px; font-weight: var(--fw-black); letter-spacing: .14em; color: var(--faint); margin-bottom: 14px; }
.dec-grid h3 { font-size: 32px; font-weight: var(--fw-bold); letter-spacing: -.02em; margin-bottom: 12px; }
.dec-grid h3 .sn-hl { color: var(--ink); font-weight: var(--fw-medium); }
.dec-grid .dd { color: var(--muted); font-size: 17px; max-width: 440px; margin-bottom: 24px; }
.dec-link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: var(--fw-bold);
  font-size: 15.5px; text-decoration: none; border-bottom: 2px solid var(--amber); padding-bottom: 2px;
  min-height: 44px;
}
.dec-link:hover { color: var(--amber); }
.dec-tag {
  display: inline-block; font-size: 11px; font-weight: var(--fw-bold); letter-spacing: .08em;
  color: var(--muted); background: var(--field1); border: 1px solid var(--hairline);
  border-radius: 4px; padding: 4px 10px; margin-top: 18px; text-transform: uppercase;
}
.dec-viz {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-8);
  box-shadow: var(--sh-card); padding: 36px; position: relative; overflow: hidden;
}
.dec-viz .vz-cap {
  font-size: 11.5px; letter-spacing: .13em; font-weight: var(--fw-bold);
  color: var(--muted); margin-bottom: 20px; text-transform: uppercase;
}
.vz-note { font-size: 13px; color: var(--muted); margin-top: 14px; }
.vz-note b { color: var(--amber); }

/* Get Paid: fee bars */
.vz-bars .vb-row { margin-bottom: 16px; }
.vz-bars .vb-top { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 7px; }
.vb-track { height: 16px; border-radius: 8px; background: #F0EEE4; overflow: hidden; position: relative; }
.vb-fill { height: 100%; background: #3A3A36; border-radius: 8px; width: 0; transition: width 1s var(--ease); }
.vb-gap {
  position: absolute; top: 0; bottom: 0;
  background: linear-gradient(90deg, var(--amber), var(--amber-soft));
  border-radius: 0 8px 8px 0; width: 0; left: 0;
  transition: left 1s var(--ease) .3s, width 1s var(--ease) .3s;
}

/* Start: year timeline */
.vz-tl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.vz-yr { border: 1px solid var(--hairline); border-radius: var(--r-6); padding: 20px 18px; background: var(--paper); }
.vz-yr .yy { font-size: 12px; font-weight: var(--fw-black); letter-spacing: .1em; color: var(--muted); margin-bottom: 8px; }
.vz-yr .ya { font-size: 26px; font-weight: var(--fw-black); letter-spacing: -.02em; }
.vz-yr .yd { font-size: 12.5px; color: var(--muted); margin-top: 6px; }
.vz-yr.hl { border-color: #EAD9BC; background: linear-gradient(180deg, #FFFDF6, #FBF3E2); }
.vz-yr.hl .ya { color: var(--amber); }
.vz-tl-total {
  margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--hairline);
  display: flex; justify-content: space-between; align-items: baseline;
}
.vz-tl-total span { font-size: 14px; color: var(--muted); }
.vz-tl-total b { font-size: 24px; font-weight: var(--fw-black); }

/* Funding: flow visual */
.vz-flow { display: flex; align-items: center; justify-content: center; padding: 12px 0; }
.vz-amt { text-align: center; padding: 0 8px; }
.vz-amt .va-l { font-size: 11.5px; letter-spacing: .12em; font-weight: var(--fw-bold); color: var(--muted); margin-bottom: 8px; }
.vz-amt .va-n { font-size: 52px; font-weight: var(--fw-black); letter-spacing: -.03em; line-height: 1; }
.vz-amt.given .va-n { color: var(--muted); }
.vz-amt.true .va-n { color: var(--amber); }
.vz-arrow {
  flex: 1; max-width: 120px; height: 3px; margin: 0 6px;
  background: linear-gradient(90deg, #D8D5C8, var(--amber)); border-radius: 2px; position: relative;
}
.vz-arrow::after {
  content: ""; position: absolute; right: -2px; top: 50%; transform: translateY(-50%);
  border-left: 12px solid var(--amber); border-top: 8px solid transparent; border-bottom: 8px solid transparent;
}
.vz-flow-cap { text-align: center; font-size: 13.5px; color: var(--muted); margin-top: 16px; }
.vz-flow-cap b { color: var(--amber); }

/* Hire: waterfall hint (mini) */
.vz-wf { display: flex; align-items: flex-end; gap: 10px; height: 190px; padding-top: 10px; }
.vz-wf-col { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; }
.vz-wf-bar { width: 100%; border-radius: 6px 6px 3px 3px; transition: height 1s var(--ease); min-height: 4px; }
.vz-wf-col .wl { font-size: 11px; color: var(--muted); margin-top: 8px; text-align: center; line-height: 1.3; }
.vz-wf-col .wv { font-size: 12.5px; font-weight: var(--fw-bold); margin-bottom: 6px; }

/* Software: escalation curve slot */
.vz-curve .cl { font-size: 12px; fill: var(--faint); }
.vz-legend { display: flex; gap: 20px; margin-top: 14px; font-size: 13px; color: var(--muted); }
.vz-legend .sw { display: inline-block; width: 22px; height: 4px; border-radius: 2px; vertical-align: middle; margin-right: 7px; }

/* ============ 5 · HOW IT WORKS ============ */
.how { background: var(--inkbg); color: #F5F2E9; padding: 120px 0; position: relative; overflow: hidden; }
.how::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(800px 400px at 20% 0%, rgba(180,83,9,.16), transparent 60%);
}
.how-inner { position: relative; max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.how .eyebrow { color: #8E8E86; }
.how h2 { font-size: 40px; font-weight: var(--fw-bold); letter-spacing: -.025em; margin: 16px 0 10px; color: #F5F2E9; }
.how .hlede { color: #B9B9B2; font-size: 18px; max-width: 620px; margin-bottom: 64px; }
.how-flow { position: relative; display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; margin-top: 20px; }
.how-flow::before {
  content: ""; position: absolute; top: 34px; left: 6%; right: 6%; height: 2px;
  background: linear-gradient(90deg, #3A3A36, #3A3A36 70%, var(--amber)); opacity: .6;
}
.hstep { position: relative; text-align: center; padding: 0 16px; }
.hstep .hdot {
  width: 68px; height: 68px; border-radius: 50%; background: var(--inkbg2);
  border: 2px solid #3A3A36; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 20px; position: relative; z-index: 1;
  font-size: 24px; font-weight: var(--fw-black); color: #F5F2E9;
  transition: border-color .3s, transform .3s var(--ease);
}
.hstep:last-child .hdot { border-color: var(--amber); color: var(--amber-on-dark); }
.hstep:hover .hdot { transform: scale(1.08); }
.hstep h3 { font-size: 17px; font-weight: var(--fw-bold); margin-bottom: 8px; color: #F5F2E9; }
.hstep p { font-size: 13.5px; color: #8E8E86; line-height: 1.55; }
.hstep .hviz {
  margin-top: 16px; display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; font-weight: var(--fw-bold);
  background: #26261F; border: 1px solid #3A3A36; border-radius: var(--r-6);
  padding: 7px 12px; color: #B9B9B2;
}
.hstep .hviz .a { color: var(--amber-on-dark); }
.hstep .hviz .m { color: #8E8E86; }

/* ============ 6 · TRUST ============ */
.trust { padding: 120px 0; background: var(--paper); }
.trust-inner { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.trust h2 { font-size: 40px; font-weight: var(--fw-bold); letter-spacing: -.025em; margin: 16px 0 10px; }
.trust .tlede { color: var(--muted); font-size: 18px; max-width: 640px; margin-bottom: 56px; }
.trust-foot {
  margin-top: 48px; display: flex; gap: 24px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--hairline); border-radius: var(--r-8);
  background: var(--field1); padding: 28px 32px;
}
.trust-foot .tf-t { font-size: 16px; font-weight: var(--fw-bold); }
.trust-foot .tf-t small { display: block; font-weight: var(--fw-medium); color: var(--muted); font-size: 14px; margin-top: 4px; }
.trust-foot a.tf-link {
  margin-left: auto; font-weight: var(--fw-bold); font-size: 15px; text-decoration: none;
  border-bottom: 2px solid var(--amber); padding-bottom: 2px; white-space: nowrap;
}

/* ============ 7 · INSTRUMENTS ============ */
.instr { background: linear-gradient(180deg, var(--field1), var(--field2)); padding: 120px 0; position: relative; overflow: hidden; }
.instr-inner { max-width: 1280px; margin: 0 auto; padding: 0 48px; }
.instr h2 { font-size: 40px; font-weight: var(--fw-bold); letter-spacing: -.025em; margin: 16px 0 10px; }
.instr .ilede { color: var(--muted); font-size: 18px; max-width: 620px; margin-bottom: 56px; }
.instr-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.icard {
  background: #fff; border: 1px solid var(--hairline); border-radius: var(--r-8);
  padding: 26px 22px; box-shadow: var(--sh-card); text-decoration: none; display: block;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.icard:hover { transform: translateY(-6px); box-shadow: var(--sh-lift, var(--sh-card)); }
.icard .in { font-size: 11px; font-weight: var(--fw-black); letter-spacing: .12em; color: var(--faint); margin-bottom: 12px; }
.icard h3 { font-size: 18px; font-weight: var(--fw-bold); margin-bottom: 8px; }
.icard .iviz { height: 64px; margin: 14px 0 6px; position: relative; }
.icard p { font-size: 13px; color: var(--muted); }
.icard .igo { font-size: 13.5px; font-weight: var(--fw-bold); margin-top: 12px; display: inline-block; }
.icard .igo .arr2 { color: var(--amber); }
.mini-bar { height: 10px; border-radius: 5px; background: #F0EEE4; margin-bottom: 8px; overflow: hidden; position: relative; }
.mini-bar i { display: block; height: 100%; background: #3A3A36; border-radius: 5px; }
.mini-bar i.am { background: linear-gradient(90deg, var(--amber), var(--amber-soft)); }
.mini-tl { display: flex; gap: 6px; align-items: flex-end; height: 64px; }
.mini-tl b { flex: 1; background: #E4E2D6; border-radius: 3px 3px 2px 2px; min-height: 8px; }
.mini-tl b.hl { background: var(--amber); }
.mini-flow { display: flex; align-items: center; justify-content: center; height: 64px; gap: 8px; }
.mini-flow .mf { font-size: 22px; font-weight: var(--fw-black); }
.mini-flow .mf.g { color: var(--muted); }
.mini-flow .mf.t { color: var(--amber); }
.mini-flow .ma { color: var(--amber); font-size: 18px; }
.mini-wf { display: flex; align-items: flex-end; gap: 5px; height: 64px; }
.mini-wf b { flex: 1; border-radius: 3px 3px 2px 2px; background: #3A3A36; min-height: 6px; }
.mini-wf b.am { background: var(--amber); }
.mini-curve svg { width: 100%; height: 64px; display: block; }

/* ============ RESPONSIVE ============ */
@media (max-width: 1100px) {
  /* Stage re-composes: stack the planes */
  .stage { height: auto; display: flex; flex-direction: column; gap: 20px; padding: 0 20px; }
  .calc, .result, .donut-card, .vchip, .frag { position: static; width: 100%; max-width: 640px; margin: 0 auto; rotate: none; }
  .result { order: -1; }
  .donut-card { display: none; } /* hero donut moves below on small; keep stage clean */
  .vchip { justify-content: center; }
  .frag { display: none; }
  .ghost-ring { display: none; }
}
@media (max-width: 960px) {
  .how-flow { grid-template-columns: 1fr 1fr; gap: 36px 0; }
  .how-flow::before { display: none; }
  .instr-strip { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .hero { padding-bottom: 72px; }
  .hero-head { padding: 16px 20px 0; }
  .hero-head h1 { font-size: 30px; }
  .hero-head .sub { font-size: 15px; }
  .stage { margin-top: 24px; }
  .calc-head { padding: 16px 22px; }
  .calc-body { padding: 4px 22px; }
  .calc-foot { padding: 16px 22px; flex-direction: column; gap: 8px; align-items: flex-start; }
  .result-in { padding: 26px 24px 22px; }
  .r-second { font-size: 84px; }
  .r-foot { padding: 14px 24px; }
  .donut-card { display: block; padding: 24px; } /* show stacked on mobile */
  .gap { padding: 72px 20px; }
  .gap-inner { padding: 0; }
  .gap h2 { font-size: 29px; }
  .gap-viz { grid-template-columns: 1fr; gap: 20px; margin-top: 36px; }
  .gap-arrow { transform: rotate(90deg); font-size: 30px; }
  .gap-num .gv { font-size: 56px; }
  .rest { padding: 72px 20px; }
  .rest p { font-size: 24px; }
  .dec-head { padding: 56px 20px 16px; }
  .dec-head h2 { font-size: 30px; }
  .dec-row { padding: 48px 0; }
  .dec-grid { grid-template-columns: 1fr; gap: 32px; padding: 0 20px; }
  .dec-grid h3 { font-size: 26px; }
  .dec-viz { padding: 24px; }
  .how { padding: 72px 0; }
  .how-inner { padding: 0 20px; }
  .how h2 { font-size: 30px; }
  .how-flow { grid-template-columns: 1fr; gap: 28px; }
  .trust { padding: 72px 0; }
  .trust-inner { padding: 0 20px; }
  .trust h2 { font-size: 30px; }
  .trust-foot { flex-direction: column; align-items: flex-start; }
  .trust-foot a.tf-link { margin-left: 0; }
  .instr { padding: 72px 0; }
  .instr-inner { padding: 0 20px; }
  .instr h2 { font-size: 30px; }
  .instr-strip { grid-template-columns: 1fr; }
}
