/* ============================================================
   ISCO MEDIA — section styles
   ============================================================ */

/* -------------------------------------------------- nav */
.nav {
  position: fixed; inset: 12px 0 auto; z-index: 500;
  display: flex; justify-content: center;
  pointer-events: none;
  transition: inset .25s ease;
}
.nav-inner {
  pointer-events: auto;
  width: min(100% - 2rem, var(--maxw));
  display: flex; align-items: center; gap: var(--s5);
  padding: 10px 12px 10px 20px;
  border: 2px solid transparent; border-radius: var(--r-pill);
  background: transparent;
  transition: background .25s ease, border-color .25s ease, box-shadow .25s ease, max-width .25s ease;
}
.nav.is-stuck .nav-inner {
  max-width: 1080px;
  background: var(--surface);
  border-color: var(--ink);
  box-shadow: var(--shadow);
}
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 800; font-size: 19px; letter-spacing: -.02em; text-decoration: none; color: var(--ink); }
.brand-mark { display: grid; grid-template-columns: 1fr 1fr; gap: 2px; width: 26px; height: 26px; }
.brand-mark i { border-radius: 4px; border: 1.5px solid var(--ink); transition: transform .18s ease; }
.brand-mark i:nth-child(1){ background: var(--blue); }
.brand-mark i:nth-child(2){ background: var(--butter); }
.brand-mark i:nth-child(3){ background: var(--mint); }
.brand-mark i:nth-child(4){ background: var(--coral); }
.brand:hover .brand-mark i:nth-child(1){ transform: translate(-1px,-1px); }
.brand:hover .brand-mark i:nth-child(4){ transform: translate(1px,1px); }
.nav-links { display: flex; gap: var(--s5); margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: var(--step--1); }
.nav-links a:hover { text-decoration: underline; }
.nav .btn { padding: 10px 20px; min-height: 44px; font-size: var(--step--1); box-shadow: 3px 3px 0 var(--ink); }
@media (max-width: 860px) { .nav-links { display: none; } .nav-inner { margin-inline: 16px; } }
.nav .btn .long { display: inline; }
.nav .btn .short { display: none; }
@media (max-width: 560px) {
  .nav .btn .long { display: none; }
  .nav .btn .short { display: inline; }
  .nav .btn { padding: 10px 16px; }
}

/* -------------------------------------------------- hero */
.hero { padding-top: 140px; padding-bottom: var(--s9); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--s8); align-items: center; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: var(--s7); } .hero { padding-top: 110px; } }
.hero h1 { margin-bottom: var(--s5); }
.hero-sub { font-size: var(--step-1); color: var(--ink-muted); max-width: 46ch; margin-bottom: var(--s6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: center; }
.hero-note { font-size: var(--step--1); color: var(--ink-soft); margin-top: var(--s4); }
.hero-kit { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s3); }
@media (max-width: 520px) { .hero-kit { grid-template-columns: repeat(2, 1fr); } }
.hero-tags { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: var(--s5); }

/* -------------------------------------------------- marquee */
.marquee { overflow: hidden; border-block: var(--border); background: var(--blue); padding: 14px 0; }
.marquee-track { display: flex; gap: var(--s5); width: max-content; }
.marquee-track span {
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-1);
  color: #fff; text-transform: uppercase; letter-spacing: -.01em; white-space: nowrap;
  display: flex; align-items: center; gap: var(--s5);
}
.marquee-track span::after { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--butter); border: 1.5px solid rgba(0,0,0,.35); }

/* -------------------------------------------------- section header */
.sec-head { max-width: 58ch; margin-bottom: var(--s7); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center p { margin-inline: auto; }

/* tinted band */
.band { background: var(--surface-tint); border-block: var(--border); }
.band-blue { background: var(--blue-tint); border-block: var(--border); }

/* -------------------------------------------------- problem */
#problem .kit-block { aspect-ratio: auto; min-height: 168px; justify-content: space-between; text-transform: none; letter-spacing: 0; font-size: var(--step-0); }
#problem .kit-block p { font-family: var(--font-body); font-weight: 500; font-size: var(--step--1); line-height: 1.45; margin: 0; }
.blk-tilt   { transform: rotate(-2.2deg); }
.blk-tilt2  { transform: rotate(1.6deg); }
.blk-hatch  { background-image: repeating-linear-gradient(45deg, rgba(0,0,0,.09) 0 8px, transparent 8px 16px); }
.blk-ghost  { border-style: dashed !important; box-shadow: none !important; background: var(--surface-tint) !important; color: var(--ink-muted) !important; }

/* -------------------------------------------------- plain english / 3-step strip */
.plain-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border: var(--border); border-radius: var(--r-block); overflow: hidden; box-shadow: var(--shadow); }
.plain-row > div { padding: var(--s6) var(--s5); border-right: var(--border); }
.plain-row > div:last-child { border-right: none; }
.plain-row b { display: block; font-family: var(--font-display); font-size: var(--step-2); margin-bottom: 8px; }
@media (max-width: 860px) { .plain-row { grid-template-columns: 1fr; } .plain-row > div { border-right: none; border-bottom: var(--border); } .plain-row > div:last-child { border-bottom: none; } }

/* -------------------------------------------------- isometric mini-stack icon */
.iso { width: 62px; height: 62px; margin-bottom: var(--s4); position: relative; }
.iso i { position: absolute; inset: 0; border-radius: 6px; border: 2px solid var(--ink); }
.iso i:nth-child(1) { background: var(--blue);   transform: translate(0, 14px); }
.iso i:nth-child(2) { background: var(--butter); transform: translate(6px, 4px) scale(.86); }
.iso i:nth-child(3) { background: var(--mint);   transform: translate(12px, -6px) scale(.72); }

/* -------------------------------------------------- steps */
.step { display: grid; grid-template-columns: 110px 1fr; gap: var(--s5); align-items: start; margin-bottom: var(--s5); }
.step-n {
  font-family: var(--font-display); font-weight: 800; font-size: clamp(2.5rem,6vw,4rem);
  line-height: 1; color: var(--ink);
  background: var(--butter); border: var(--border); border-radius: var(--r-block);
  box-shadow: var(--shadow); display: grid; place-content: center; aspect-ratio: 1; width: 100%;
}
@media (max-width: 640px) { .step { grid-template-columns: 76px 1fr; gap: var(--s4); } }

/* -------------------------------------------------- for / not for */
.forwall { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
@media (max-width: 860px) { .forwall { grid-template-columns: 1fr; } }
.forlist { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.forlist li { display: flex; gap: 12px; align-items: flex-start; padding: var(--s4); border: var(--border); border-radius: var(--r-sm); background: var(--surface); }
.forlist .ic { flex: none; width: 24px; height: 24px; border-radius: 6px; border: 2px solid var(--ink); display: grid; place-content: center; font-weight: 800; font-size: 13px; }
.yes .ic { background: var(--mint); }
.no  .ic { background: var(--coral); }
.no li { background: var(--surface-tint); }

/* -------------------------------------------------- benchmark board */
.bench { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s4); }
@media (max-width: 960px) { .bench { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px) { .bench { grid-template-columns: 1fr; } .bench > .slot { grid-column: span 1 !important; } }
.bench-tile { background: var(--surface); border: var(--border); border-radius: var(--r-block); box-shadow: var(--shadow); padding: var(--s5); display: flex; flex-direction: column; }
.bench-tile .num { font-size: clamp(2.2rem, 5vw, 3.2rem); color: var(--blue-deep); margin-bottom: 6px; }
.bench-tile p { font-size: var(--step--1); color: var(--ink-muted); flex: 1; margin-bottom: var(--s4); }
.src {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-soft);
  background: var(--surface-tint); border: 1.5px solid var(--line);
  border-radius: var(--r-pill); padding: 5px 11px; text-decoration: none; align-self: flex-start;
}
a.src:hover { border-color: var(--ink); color: var(--ink); }

/* -------------------------------------------------- dream (inverted) */
#dream { background: #101318; color: #F2F0EA; border-block: var(--border); }
#dream h2, #dream .h-script { color: #F2F0EA; }
#dream p { color: #ADB4C0; }
#dream .eyebrow { background: #191D24; color: #F2F0EA; border-color: #F2F0EA; }
#dream .kit { gap: 0; max-width: 720px; }
#dream .kit-block { border-radius: 0; box-shadow: none; border-width: 1.5px; }
#dream .kit-block:nth-child(1) { border-radius: var(--r-block) 0 0 0; }
#dream .kit-block:nth-child(3) { border-radius: 0 var(--r-block) 0 0; }
#dream .kit-block:nth-child(4) { border-radius: 0 0 0 var(--r-block); }
#dream .kit-block:nth-child(6) { border-radius: 0 0 var(--r-block) 0; }
@media (max-width: 767px) {
  #dream .kit-block:nth-child(3), #dream .kit-block:nth-child(4) { border-radius: 0; }
  #dream .kit-block:nth-child(2) { border-radius: 0 var(--r-block) 0 0; }
  #dream .kit-block:nth-child(5) { border-radius: 0 0 0 var(--r-block); }
}

/* -------------------------------------------------- week timeline */
.weeks { display: grid; grid-template-columns: repeat(4,1fr); gap: var(--s4); align-items: end; }
@media (max-width: 860px) { .weeks { grid-template-columns: 1fr; } }
.week { border: var(--border); border-radius: var(--r-block); box-shadow: var(--shadow); padding: var(--s5); background: var(--surface); }
.week:nth-child(1){ background: var(--surface-tint); }
.week:nth-child(2){ background: var(--blue-sky); }
.week:nth-child(3){ background: var(--butter); }
.week:nth-child(4){ background: var(--mint); }
.week .wk { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.week h3 { font-size: var(--step-1); margin: 8px 0; }
@media (min-width: 861px) {
  .weeks .week:nth-child(1){ min-height: 190px; }
  .weeks .week:nth-child(2){ min-height: 225px; }
  .weeks .week:nth-child(3){ min-height: 260px; }
  .weeks .week:nth-child(4){ min-height: 295px; }
}

/* -------------------------------------------------- roles */
.roles-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); }
@media (max-width: 860px) { .roles-grid { grid-template-columns: 1fr; } }
.roles-grid .block { margin-bottom: var(--s4); }
.role-head { font-family: var(--font-display); font-size: var(--step-2); margin-bottom: var(--s5); display: flex; align-items: center; gap: 12px; }
.role-head span { width: 30px; height: 30px; border-radius: 8px; border: var(--border); }

/* -------------------------------------------------- faq */
.faq { max-width: 860px; margin-inline: auto; border: var(--border); border-radius: var(--r-block); box-shadow: var(--shadow); overflow: hidden; background: var(--surface); }
.faq-row { border-bottom: var(--border); }
.faq-row:last-child { border-bottom: none; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: var(--step-1); color: var(--ink);
  padding: var(--s5); display: flex; justify-content: space-between; gap: var(--s4); align-items: center;
}
.faq-q:hover { background: var(--surface-tint); }
.faq-q .chev { flex: none; width: 30px; height: 30px; border: var(--border); border-radius: 8px; display: grid; place-content: center; background: var(--butter); font-weight: 800; transition: transform .25s ease; }
.faq-row.is-open .chev { transform: rotate(45deg); }
.faq-a { overflow: hidden; height: 0; }
.faq-a-inner { padding: 0 var(--s5) var(--s5); }
.faq-a-inner p:first-child { font-weight: 700; color: var(--ink); }
.faq-a-inner p { font-size: var(--step-0); color: var(--ink-muted); }

/* -------------------------------------------------- final cta */
#cta { background: var(--blue-tint); border-block: var(--border); }
.cta-block { max-width: 780px; margin-inline: auto; text-align: center; background: var(--surface); border: var(--border); border-radius: var(--r-block); box-shadow: 8px 8px 0 var(--ink); padding: var(--s8) var(--s6); }
.cta-block p { margin-inline: auto; }
.cta-after { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--s4); margin-top: var(--s5); }

/* -------------------------------------------------- footer */
.foot { background: var(--ink); color: var(--paper); padding-block: var(--s7); }
.foot a { color: var(--paper); }
.foot-in { display: flex; flex-wrap: wrap; gap: var(--s5); justify-content: space-between; align-items: center; }
.foot small { color: #9AA1AD; font-size: 13px; line-height: 1.7; }
.foot .brand { color: var(--paper); }

/* -------------------------------------------------- misc */
.note { font-size: 12px; color: var(--ink-soft); line-height: 1.6; }
.no-js .reveal { opacity: 1 !important; transform: none !important; }

/* -------------------------------------------------- added: piece numerals */
.piece-n {
  width: 44px; height: 44px; border: var(--border); border-radius: var(--r-sm);
  display: grid; place-content: center; margin-bottom: var(--s4);
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-1);
}
.piece-n[data-fill="blue"]   { background: var(--blue);     color:#fff; }
.piece-n[data-fill="butter"] { background: var(--butter); }
.piece-n[data-fill="coral"]  { background: var(--coral); }
.piece-n[data-fill="mint"]   { background: var(--mint); }
.piece-n[data-fill="sky"]    { background: var(--blue-sky); }
.piece-n[data-fill="ink"]    { background: var(--ink); color: var(--paper); }

/* step week tag */
.wk-tag {
  font-family: var(--font-body); font-style: normal; font-weight: 700;
  font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink-muted); background: var(--surface-tint);
  border: 1.5px solid var(--line); border-radius: var(--r-pill);
  padding: 4px 10px; margin-left: 10px; vertical-align: middle; white-space: nowrap;
}
.step .block p { margin-bottom: 10px; font-size: var(--step--1); }
.step .block p:last-child { margin-bottom: 0; }
.step .block b { color: var(--ink); }

/* problem blocks hold copy */
#problem .kit-block strong { font-family: var(--font-display); font-size: var(--step-1); display:block; margin-bottom: 8px; text-transform:none; letter-spacing:-.02em; }

/* -------------------------------------------------- forms */
label { display: block; font-weight: 600; font-size: var(--step--1); }
input:not([type="range"]), select {
  width: 100%; margin-top: 6px; padding: 13px 14px; min-height: 50px;
  font-family: var(--font-body); font-size: var(--step-0); font-weight: 500;
  color: var(--ink); background: var(--surface);
  border: var(--border); border-radius: var(--r-sm);
}
input:focus-visible, select:focus-visible { outline: 3px solid var(--blue-deep); outline-offset: 2px; }
.calc-out {
  font-family: var(--font-display); font-size: var(--step-2); font-weight: 800;
  margin: 20px 0 12px; color: var(--ink);
}
.calc-out b { color: var(--blue-deep); font-size: var(--step-3); }
.cta-form { margin-top: var(--s6); }
.cta-block .grid { text-align: left; }

/* dream section overrides for readability */
#dream .slot { background: #191D24; border-color: #2E3541; color: #ADB4C0; }

/* -------------------------------------------------- form states */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg {
  margin-top: var(--s5); padding: var(--s5); text-align: left;
  border: var(--border); border-radius: var(--r-block);
}
.form-msg b { display: block; font-family: var(--font-display); font-size: var(--step-1); margin-bottom: 6px; }
.form-msg p { margin: 0; font-size: var(--step--1); }
.form-ok  { background: var(--mint-tint); }
.form-err { background: var(--coral-tint); }
.cta-form button[disabled] { opacity: .6; cursor: not-allowed; }
.cta-form input[disabled], .cta-form select[disabled] { opacity: .55; }

/* -------------------------------------------------- reach + revenue estimator */
.est {
  border: var(--border); border-radius: var(--r-block); box-shadow: var(--shadow);
  background: var(--surface); overflow: hidden;
}
.est-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; }
@media (max-width: 860px) { .est-grid { grid-template-columns: 1fr; } }

.est-in {
  padding: var(--s6); background: var(--surface-tint);
  border-right: var(--border); display: grid; gap: var(--s4); align-content: start;
}
@media (max-width: 860px) { .est-in { border-right: none; border-bottom: var(--border); } }
.est-in label { font-weight: 700; }

.est-out { padding: var(--s6); display: grid; gap: var(--s4); align-content: start; }
.est-row {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--s4);
  padding-bottom: var(--s4); border-bottom: 1.5px solid var(--line);
}
.est-row:last-of-type { border-bottom: none; }
.est-row .lab { font-size: var(--step--1); color: var(--ink-muted); max-width: 22ch; }
.est-row .val {
  font-family: var(--font-display); font-weight: 800; font-variant-numeric: tabular-nums;
  font-size: clamp(1.9rem, 4.4vw, 2.9rem); line-height: 1; color: var(--ink);
  white-space: nowrap;
}
.est-row.hero-row .val { color: var(--blue-deep); font-size: clamp(2.3rem, 5.6vw, 3.6rem); }

.est-foot {
  padding: var(--s4) var(--s6); background: var(--butter-tint);
  border-top: var(--border); font-size: var(--step--1);
}
.est-foot b { display: block; margin-bottom: 4px; }

/* range slider, styled to match the blocks */
input[type="range"] {
  -webkit-appearance: none; appearance: none;
  display: block; width: 100%; height: 16px; min-height: 0;
  padding: 0; margin: 14px 0;
  background: var(--surface); border: var(--border); border-radius: var(--r-pill);
  /* the visible track is 16px; the thumb is 32px, so the touch target clears 44px */
  background-image: linear-gradient(var(--blue), var(--blue));
  background-size: var(--fill, 0%) 100%;
  background-repeat: no-repeat;
  cursor: pointer; touch-action: pan-y;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 32px; height: 32px; border-radius: 50%; margin-top: -10px;
  background: var(--blue-deep); border: var(--border); cursor: grab;
  box-shadow: 2px 2px 0 var(--ink);
  transition: transform .12s ease;
}
input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.12); cursor: grabbing; }
input[type="range"]::-moz-range-thumb {
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--blue-deep); border: var(--border); cursor: grab;
}
input[type="range"]::-moz-range-progress { background: var(--blue); height: 12px; border-radius: 999px; }
.est-val {
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-1);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------- v2 additions */
.hero-price { font-size: var(--step--1); margin-top: var(--s5); }
.hero-price a { color: var(--ink-soft); text-decoration-style: dotted; }
.hero-price a:hover { color: var(--ink); }
.hero-art { display: flex; align-items: center; justify-content: center; }

/* big stat numeral on the reach cards */
.stat {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.2rem, 5vw, 3rem); line-height: 1; color: var(--blue-deep);
  margin-bottom: var(--s3); font-variant-numeric: tabular-nums; letter-spacing: -0.02em;
}
.block--butter .stat { color: var(--ink); }
.reach .block h3 { font-size: var(--step-1); }
#reach .block h3 { font-size: var(--step-1); }
#reach .block p { font-size: var(--step--1); }

/* six pieces: number + ours/yours tag */
.piece-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s4); }
.piece-head .piece-n { margin-bottom: 0; }
.who {
  font-size: 11px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase;
  border: 2px solid var(--ink); border-radius: var(--r-pill); padding: 5px 12px;
}
.who--ours  { background: var(--blue); color: #fff; }
.who--yours { background: var(--butter); color: var(--ink); }

/* price block */
.bigprice {
  font-family: var(--font-display); font-weight: 800; line-height: 1;
  font-size: clamp(3rem, 8vw, 4.5rem); margin: 0 0 var(--s4);
}
.bigprice span { font-size: var(--step-1); font-weight: 500; font-family: var(--font-body); }

/* estimator warnings */
.est-warn {
  margin-top: var(--s4); padding: var(--s4);
  background: var(--coral-tint); border: var(--border); border-radius: var(--r-sm);
}
.est-warn b { display: block; font-family: var(--font-display); font-size: var(--step-0); margin-bottom: 6px; }
.est-warn p { margin: 0 0 10px; font-size: var(--step--1); }
.est-warn p:last-child { margin-bottom: 0; }
.est-row .val.is-muted { color: var(--ink-soft); }
.est-row .lab small { color: var(--ink-soft); font-size: 12px; }
.est-in .note { display: block; margin-top: 6px; font-weight: 400; }
.est-in label { display: block; }
.est-in .est-val { float: right; color: var(--blue-deep); }

/* -------------------------------------------------- illustrations */
/* Iso lives in the explaining sections only — never beside the price,
   the guarantee, the zero-clients admission or a cited statistic. */
.iso { display: block; height: auto; }

/* Iso stands on the ground beneath the wall he just built — never on top
   of it, where he covers a block label. */
.hero-art { position: relative; display: flex; flex-direction: column; align-items: flex-start; }
.hero-art .hero-kit { width: 100%; order: 1; }
.iso--hero { order: 2; width: clamp(84px, 9vw, 108px); margin: 10px 0 0 12px; }
@media (max-width: 960px) {
  .hero-art { max-width: 480px; margin-inline: auto; align-items: center; }
  .iso--hero { margin: 12px 0 0; width: 96px; }
}

.piece-ic { width: 52px; height: 52px; display: block; }
.piece-num {
  display: inline-grid; place-content: center;
  width: 26px; height: 26px; margin-right: 4px;
  border: 2px solid var(--ink); border-radius: 8px;
  background: var(--surface-tint);
  font-size: 14px; font-weight: 800; vertical-align: 2px;
}
.slot--art { display: grid; justify-items: center; gap: var(--s3); }
.slot--art img { width: min(240px, 60%); height: auto; }

/* -------------------------------------------------- price: all-in totals */
.allin {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3);
  margin: var(--s5) 0; padding: var(--s4);
  border: 2px solid rgba(255,255,255,.45); border-radius: var(--r-sm);
  background: rgba(255,255,255,.12);
}
.allin b { display: block; font-family: var(--font-display); font-size: var(--step-2); line-height: 1; }
.allin span { font-size: var(--step--1); opacity: .92; }
@media (max-width: 480px) { .allin { grid-template-columns: 1fr; } }
.bigprice { margin-bottom: var(--s3); }

/* ============================================================
   MOTION — CSS tier. Hidden state lives behind .js-anim, which
   JS adds. No JS, no hidden state, no blank page.
   ============================================================ */
.js-anim .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity .62s cubic-bezier(.22,.61,.36,1) var(--d, 0ms),
              transform .62s cubic-bezier(.22,.61,.36,1) var(--d, 0ms);
}
.js-anim .reveal.is-in { opacity: 1; transform: none; }

/* hero: the six pieces settle into the grid on load */
.hero-anim .hero-kit .kit-block {
  opacity: 0;
  animation: blockIn .68s cubic-bezier(.34,1.42,.64,1) forwards;
}
.hero-anim .hero-kit .kit-block:nth-child(1) { animation-delay: .10s }
.hero-anim .hero-kit .kit-block:nth-child(2) { animation-delay: .19s }
.hero-anim .hero-kit .kit-block:nth-child(3) { animation-delay: .15s }
.hero-anim .hero-kit .kit-block:nth-child(4) { animation-delay: .27s }
.hero-anim .hero-kit .kit-block:nth-child(5) { animation-delay: .23s }
.hero-anim .hero-kit .kit-block:nth-child(6) { animation-delay: .32s }
@keyframes blockIn {
  from { opacity: 0; transform: translate(var(--bx, 0), var(--by, 14px)) scale(.72) rotate(var(--br, -5deg)); }
  to   { opacity: 1; transform: none; }
}
.hero-anim .hero-kit .kit-block:nth-child(odd)  { --bx: -18px; --br:  5deg; }
.hero-anim .hero-kit .kit-block:nth-child(even) { --bx:  18px; --br: -6deg; --by: -14px; }
.hero-anim .iso--hero { opacity: 0; animation: blockIn .6s cubic-bezier(.34,1.42,.64,1) .42s forwards; }

/* FAQ: grid-template-rows is the only way to transition to auto height */
.faq-a { display: grid; grid-template-rows: 0fr; height: auto;
         transition: grid-template-rows .4s cubic-bezier(.22,.61,.36,1); }
.faq-row.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a > .faq-a-inner { overflow: hidden; min-height: 0; }

/* SplitText line masks. h2 line-height is 0.98, so an unpadded mask
   clips ascenders and descenders — verified by screenshot. */
.sp-line-mask { padding-block: .22em !important; margin-block: -.22em !important; }

/* Nothing that carries credibility is ever animated. */
.bigprice, .src, .est-row .val, .allin { opacity: 1 !important; transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  .js-anim .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-anim .hero-kit .kit-block, .hero-anim .iso--hero { opacity: 1 !important; animation: none !important; }
  .faq-a { transition: none; }
}

/* ============================================================
   HERO BLOCK VISUALS — each of the six pieces gets its own small
   animation. Abstract shapes only, never numbers: a figure inside
   a decorative tile would read as a performance claim.
   Animations run once on entry, then rest. Nothing loops forever
   in the corner of a page someone is trying to read.
   ============================================================ */
.kit-block { justify-content: space-between; gap: 6px; }
.kit-block > span { display: block; }
.kv { width: 100%; flex: 1; min-height: 0; display: block; overflow: visible; }

/* 1 — offer: the tag lands, the spark follows */
.hero-anim .kv-tag  { animation: pop .5s cubic-bezier(.34,1.5,.64,1) .55s backwards; transform-origin: 44% 47%; }
.hero-anim .kv-spark{ animation: sparkIn .45s ease-out 1.0s backwards; transform-origin: 84% 24%; }
@keyframes pop     { from { transform: scale(.4) rotate(-14deg); opacity: 0 } }
@keyframes sparkIn { from { transform: scale(0); opacity: 0 } }

/* 2 — audience: three people arrive, middle one last */
.hero-anim .kv-p  { animation: riseIn .45s cubic-bezier(.34,1.5,.64,1) backwards; }
.hero-anim .kv-p1 { animation-delay: .62s } .hero-anim .kv-p3 { animation-delay: .74s }
.hero-anim .kv-p2 { animation-delay: .86s }
@keyframes riseIn { from { transform: translateY(14px); opacity: 0 } }

/* 3 — ad: the play button pulses once */
.hero-anim .kv-play { animation: pulse 1.1s cubic-bezier(.34,1.5,.64,1) .7s backwards; transform-origin: 50% 50%; transform-box: fill-box; }
@keyframes pulse { 0% { transform: scale(0); opacity: 0 } 62% { transform: scale(1.14) } 100% { transform: scale(1) } }

/* 4 — form: two lines fill, then it ticks */
.hero-anim .kv-l { stroke-dasharray: 34; animation: draw .4s ease-out backwards; }
.hero-anim .kv-l1 { animation-delay: .60s } .hero-anim .kv-l2 { animation-delay: .74s }
.hero-anim .kv-tick { stroke-dasharray: 32; animation: draw .45s cubic-bezier(.4,1.3,.6,1) .92s backwards; }
@keyframes draw { from { stroke-dashoffset: 34 } to { stroke-dashoffset: 0 } }

/* 5 — follow-up: the phone shakes, the signal goes out */
.hero-anim .kv-ring { animation: ring .7s ease-in-out .8s backwards; transform-origin: 50% 90%; transform-box: fill-box; }
@keyframes ring { 0%,100% { transform: rotate(0) } 20% { transform: rotate(-7deg) } 45% { transform: rotate(6deg) } 70% { transform: rotate(-3deg) } }
.hero-anim .kv-w { animation: waveOut .5s ease-out backwards; }
.hero-anim .kv-w1 { animation-delay: .98s } .hero-anim .kv-w2 { animation-delay: 1.12s }
@keyframes waveOut { from { opacity: 0; transform: translateX(-7px) } }

/* 6 — tracking: bars grow from the baseline */
.hero-anim .kv-b { animation: grow .55s cubic-bezier(.34,1.4,.64,1) backwards; transform-origin: 50% 100%; transform-box: fill-box; }
.hero-anim .kv-b1 { animation-delay: .66s } .hero-anim .kv-b2 { animation-delay: .78s } .hero-anim .kv-b3 { animation-delay: .90s }
@keyframes grow { from { transform: scaleY(0); opacity: 0 } }

@media (prefers-reduced-motion: reduce) {
  .hero-anim .kv-tag, .hero-anim .kv-spark, .hero-anim .kv-p, .hero-anim .kv-play,
  .hero-anim .kv-l, .hero-anim .kv-tick, .hero-anim .kv-ring, .hero-anim .kv-w, .hero-anim .kv-b {
    animation: none !important; stroke-dashoffset: 0 !important;
  }
}

/* ============================================================
   PRICING GRID — the old two-column split left the price card
   alone beside a four-card stack, so the left gutter ran empty
   for ~900px. One 3-col grid, price card spanning two.
   ============================================================ */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); align-items: start; }
.price-grid .price-main { grid-column: span 2; }
@media (max-width: 960px) {
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-grid .price-main { grid-column: span 2; }
}
@media (max-width: 640px) { .price-grid { grid-template-columns: 1fr; } .price-grid .price-main { grid-column: span 1; } }

/* ============================================================
   PROOF WALL — the testimonial component. Same design real
   quotes will use; two cards are reserved slots until then.
   ============================================================ */
#proof .sec-head { max-width: 62ch; }
.quote-wall { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s5); }
@media (max-width: 860px) { .quote-wall { grid-template-columns: 1fr; } }

.quote {
  position: relative; margin: 0; padding: var(--s6) var(--s5) var(--s5);
  background: var(--surface); border: var(--border); border-radius: var(--r-block);
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: var(--s4);
}
.quote-mark {
  position: absolute; top: -18px; left: 22px;
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--butter); border: var(--border);
  display: grid; place-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 34px;
  line-height: 1; padding-top: 14px; color: var(--ink);
}
.quote blockquote {
  margin: 0; font-family: var(--font-display); font-weight: 500;
  font-size: var(--step-1); line-height: 1.32; letter-spacing: -.01em; flex: 1;
}
.quote figcaption { display: flex; align-items: center; gap: 12px; }
.qav {
  flex: none; width: 46px; height: 46px; border-radius: 12px;
  border: var(--border); display: grid; place-content: center;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
}
.qav[data-fill="mint"] { background: var(--mint); }
.qav[data-fill="sky"]  { background: var(--blue-sky); }
.quote figcaption b { display: block; font-size: var(--step-0); }
.quote figcaption span span { font-size: var(--step--1); color: var(--ink-muted); }
.quote .src { align-self: flex-start; }

/* reserved slots — same grid cell, same radius, visibly deliberate */
.quote--slot {
  background:
    radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 0) 0 0/13px 13px,
    var(--surface-tint);
  border-style: dashed; border-color: var(--line); box-shadow: none;
  justify-content: center; align-items: center; text-align: center; gap: var(--s3);
  min-height: 210px;
}
.quote--slot .qslot-n {
  width: 40px; height: 40px; border-radius: 50%;
  border: 2px dashed var(--line); display: grid; place-content: center;
  font-family: var(--font-display); font-weight: 800; color: var(--ink-soft);
}
.quote--slot p { margin: 0; max-width: 30ch; color: var(--ink-muted); font-size: var(--step-0); }
.quote--slot > span:last-child {
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  color: var(--ink-soft);
}

/* ---------------------------------------------- mascot placements */
/* the aside mascot floats beside the section header rather than
   interrupting it mid-paragraph */
#six-pieces > .wrap, #what-to-expect > .wrap { position: relative; }
.iso--aside { width: clamp(78px, 8vw, 110px); margin-top: var(--s4); }
@media (min-width: 961px) {
  .iso--aside {
    position: absolute; right: 0; top: 0; margin: 0;
    width: clamp(96px, 9vw, 128px);
  }
  #six-pieces .sec-head, #what-to-expect .sec-head { padding-right: 180px; }
}
.iso--cta { width: clamp(92px, 10vw, 124px); margin: 0 auto var(--s4); }
.iso--foot { width: 72px; margin-top: var(--s5); opacity: .9; }

/* ============================================================
   ESTIMATOR — icons, the money row, and the coin burst
   ============================================================ */
:root { --good: #159E6B; --good-tint: #DBF3E8; }
:root[data-theme="light"] { --good: #159E6B; --good-tint: #DBF3E8; }
:root[data-theme="dark"]  { --good: #4FD9A4; --good-tint: #123227; }

.est-row { display: grid; grid-template-columns: 34px 1fr auto; align-items: center; gap: var(--s3); }
.rowic {
  width: 30px; height: 30px; fill: none;
  stroke: var(--ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
  padding: 4px; border: 2px solid var(--ink); border-radius: 9px; background: var(--surface-tint);
}
.rowic--money { background: var(--good-tint); stroke: var(--good); border-color: var(--good); }

/* the money row is the payoff: bigger, green when it clears, plain when it does not */
.est-row.hero-row { padding-top: var(--s4); border-top: 2px solid var(--ink); }
.est-row.hero-row .val { color: var(--good); }
.est-row.hero-row.is-loss .val { color: var(--coral); }
.est-row.hero-row.is-loss .rowic--money { background: var(--coral-tint); stroke: var(--coral); border-color: var(--coral); }
.est-row .val { transition: color .2s ease; }

/* number nudges when it changes, so a drag feels connected to the figure */
.est-row .val.bump { animation: bump .32s cubic-bezier(.34,1.5,.64,1); }
@keyframes bump { 0% { transform: scale(1) } 40% { transform: scale(1.07) } 100% { transform: scale(1) } }

/* coin burst on drag — pure DOM, no canvas, removed on animation end */
.est-out { position: relative; }
.coin {
  position: absolute; width: 16px; height: 16px; border-radius: 50%;
  background: var(--butter); border: 2px solid var(--ink);
  pointer-events: none; z-index: 3;
  animation: coinUp var(--dur, 900ms) cubic-bezier(.22,.7,.3,1) forwards;
}
.coin.is-green { background: var(--good); }
.coin.is-blue  { background: var(--blue-sky); }
@keyframes coinUp {
  0%   { opacity: 0; transform: translate(0,0) scale(.4) }
  12%  { opacity: 1 }
  100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1) rotate(var(--rot)) }
}

@media (max-width: 640px) {
  .est-row { grid-template-columns: 28px 1fr; grid-template-areas: "ic lab" "val val"; row-gap: 6px; }
  .est-row .rowic { grid-area: ic; width: 26px; height: 26px; }
  .est-row .lab { grid-area: lab; }
  .est-row .val { grid-area: val; justify-self: start; }
}
@media (prefers-reduced-motion: reduce) {
  .coin { display: none !important; }
  .est-row .val.bump { animation: none; }
}

/* star row for testimonial cards (used by the real component when quotes exist) */
.stars { color: #F5A524; font-size: 17px; letter-spacing: 3px; line-height: 1; }

/* client cards awaiting sign-off: same slot treatment, but they name a real
   business type instead of reading as an empty placeholder */
.quote--slot .qav { width: 46px; height: 46px; font-size: 18px; border-style: solid; }
.quote--slot p b { display: block; font-family: var(--font-display); font-size: var(--step-1);
                   color: var(--ink); margin-bottom: 6px; }
.quote-wall { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1100px) { .quote-wall { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 720px)  { .quote-wall { grid-template-columns: 1fr; } }

/* ============================================================
   TEAM PAGE
   ============================================================ */
.founders { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s3); }
.founder-tile {
  border: var(--border); border-radius: var(--r-block); box-shadow: var(--shadow);
  padding: var(--s5) var(--s4) var(--s4); text-align: left;
  display: flex; flex-direction: column; gap: 2px; aspect-ratio: 1; justify-content: flex-end;
}
.founder-tile[data-fill="blue"]   { background: var(--blue); color: #fff; }
.founder-tile[data-fill="butter"] { background: var(--butter); color: var(--ink); }
.founder-tile span {
  font-family: var(--font-display); font-weight: 800; line-height: .9;
  font-size: clamp(2.6rem, 7vw, 4.2rem); margin-bottom: auto; letter-spacing: -.03em;
}
.founder-tile b { font-family: var(--font-display); font-size: var(--step-1); line-height: 1.1; }
.founder-tile em { font-style: normal; font-size: var(--step--1); opacity: .82; }

/* the eight seats — three taken */
.seats { display: flex; flex-wrap: wrap; gap: var(--s3); justify-content: center; margin-bottom: var(--s4); }
.seat {
  width: 62px; height: 62px; border: var(--border); border-radius: var(--r-sm);
  display: grid; place-content: center; background: var(--surface);
  font-family: var(--font-display); font-weight: 800; font-size: var(--step-1);
  color: var(--ink-soft); box-shadow: var(--shadow);
}
.seat.is-taken { background: var(--blue); color: #fff; box-shadow: var(--shadow); }
@media (max-width: 520px) { .seat { width: 48px; height: 48px; font-size: var(--step-0); } }

/* the "minus" bullet on the cost-of-small column */
#what-you-dont-get .forlist.no .ic { background: var(--coral-tint); }
