/* =============================================================================
   Value calculator (mockup v2). Everything new is scoped under .calc so it can
   move into a new hosted stylesheet version without touching the rest of the
   site. Site tokens only: no new colours, sizes come from the site's scale.
   ============================================================================= */
.sz .calc { padding-block: 28px 72px; }
.sz .calc.on-slides { padding-top: 20px; }
.sz .calc [hidden] { display: none !important; } /* the site's .btn sets display, which would beat [hidden] */
.sz .calc .pagehead { padding-block: 0 28px; text-align: center; }
.sz .calc .pagehead h1 { margin: 8px 0 10px; font-size: clamp(34px, 4.4vw, 54px); }
.sz .calc .pagehead .lede { margin: 0 auto; }
.sz .calc .linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.sz .calc .num { font-variant-numeric: tabular-nums; }

/* ---------- First screen: inputs left, live estimate right ---------- */
.sz .calc .start-grid {
  display: grid; grid-template-columns: 1.1fr 1fr; max-width: 1040px; margin: 0 auto;
  background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden;
}
.sz .calc .inputs { padding: 36px 40px 30px; }
.sz .calc .q { display: grid; gap: 8px; padding-block: 18px; border-bottom: 1px solid var(--line); }
.sz .calc .q:first-child { padding-top: 0; }
.sz .calc .q label { font-weight: 600; font-size: 17px; }
.sz .calc .q .help { color: var(--muted); font-size: 14.5px; }
.sz .calc .qrow { display: flex; align-items: center; gap: 16px; }
.sz .calc input[type=range] { flex: 1; accent-color: var(--green); height: 28px; min-width: 0; }
.sz .calc .numbox { width: 92px; font: 600 20px/1 var(--sans); color: var(--ink); text-align: right; border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; background: var(--card); }
.sz .calc .numbox:focus, .sz .calc .assume input:focus { outline: 2px solid var(--green); outline-offset: 1px; }
.sz .calc .unit { color: var(--muted); width: 1em; }
.sz .calc .go { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 22px; }

.sz .calc .live {
  background: var(--green-deep); color: var(--on-green); padding: 36px 40px; display: flex; flex-direction: column; justify-content: center; gap: 16px;
  position: relative;
}
.sz .calc .live .kicker { color: color-mix(in oklch, var(--on-green) 75%, transparent); }
.sz .calc .live .big { font-family: var(--serif); font-size: clamp(64px, 8vw, 104px); line-height: 0.9; letter-spacing: -0.03em; }
.sz .calc .live .big small { display: block; font-family: var(--sans); font-size: 18px; letter-spacing: 0; margin-top: 12px; color: color-mix(in oklch, var(--on-green) 85%, transparent); }
.sz .calc .live .sub { font-size: 16px; color: color-mix(in oklch, var(--on-green) 80%, transparent); }
.sz .calc .livestats { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid color-mix(in oklch, var(--on-green) 25%, transparent); padding-top: 14px; }
.sz .calc .livestats div + div { border-left: 1px solid color-mix(in oklch, var(--on-green) 25%, transparent); padding-left: 18px; }
.sz .calc .livestats b { display: block; font-family: var(--serif); font-weight: 500; font-size: 26px; line-height: 1.1; }
.sz .calc .livestats div > span { font-size: 14px; color: color-mix(in oklch, var(--on-green) 80%, transparent); }
.sz .calc .live .hand { font-family: var(--hand); font-size: 24px; color: color-mix(in oklch, var(--on-green) 90%, transparent); transform: rotate(-2deg); }

/* The year: 52 weeks, the ones you'd spend chasing filled in. */
.sz .calc .year { display: grid; grid-template-columns: repeat(13, 1fr); gap: 4px; max-width: 320px; }
.sz .calc .year i { aspect-ratio: 1; border-radius: 4px; background: var(--surface); transition: background 260ms ease-out, transform 260ms ease-out; }
.sz .calc .year i.on { background: var(--green); transform: scale(1.06); }
.sz .calc .panel-s .year i { background: var(--card); box-shadow: inset 0 0 0 1px var(--line); }
.sz .calc .panel-s .year i.on { background: var(--green); box-shadow: none; }
.sz .calc .live .year i { background: color-mix(in oklch, var(--on-green) 16%, transparent); }
.sz .calc .live .year i.on { background: var(--on-green); }

/* Assumptions */
.sz .calc .assume { margin-top: 24px; padding: 22px; background: var(--surface); border-radius: 14px; }
.sz .calc .assume h3 { font-size: 21px; }
.sz .calc .assume > p { color: var(--muted); margin-top: 6px; }
.sz .calc .arow { display: grid; grid-template-columns: 1fr auto; gap: 4px 16px; padding-block: 14px; border-bottom: 1px solid var(--line); }
.sz .calc .arow:last-of-type { border-bottom: 0; }
.sz .calc .arow b { font-weight: 600; font-size: 15px; }
.sz .calc .arow .help { grid-column: 1 / -1; color: var(--muted); font-size: 14px; }
.sz .calc .arow .field { display: flex; align-items: center; gap: 6px; }
.sz .calc .assume input { width: 80px; font: 500 16px/1 var(--sans); text-align: right; color: var(--ink); border: 1px solid var(--line-strong); border-radius: 8px; padding: 8px 10px; background: var(--card); }

/* ---------- Slides ---------- */
.sz .calc .deck { max-width: 1040px; margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); overflow: hidden; }
.sz .calc .chapters { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); background: var(--surface); }
.sz .calc .chapters button {
  background: none; border: 0; border-bottom: 3px solid transparent; padding: 12px 12px 10px; font: 500 14.5px/1.3 var(--sans);
  color: var(--muted); cursor: pointer; text-align: left; display: flex; gap: 10px; align-items: center;
}
.sz .calc .chapters button .t { font-style: normal; }
.sz .calc .chapters button span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--line); font-size: 12.5px; font-weight: 600; flex: none; }
.sz .calc .chapters button.done span { background: var(--green-soft); color: var(--green-ink); }
.sz .calc .chapters button[aria-current="step"] { color: var(--ink); border-bottom-color: var(--green); background: var(--card); }
.sz .calc .chapters button[aria-current="step"] span { background: var(--green); color: var(--on-green); }

.sz .calc .slide { padding: 30px 44px 0; }
.sz .calc .slide.enter { animation: calc-in 420ms cubic-bezier(.2,.7,.2,1) both; }
@keyframes calc-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.sz .calc .two { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: start; }
.sz .calc .two > *, .sz .calc .start-grid > * { min-width: 0; }
.sz .calc .slide h2 { font-size: clamp(32px, 3.7vw, 46px); line-height: 1.04; margin: 8px 0 12px; outline: none; }
.sz .calc .slide h2 em { font-style: normal; color: var(--green); }
.sz .calc .slide .lede { font-size: 17px; }
.sz .calc .stack-s > * + * { margin-top: 12px; }
.sz .calc .formula { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; font-size: 14.5px; color: var(--muted); }
.sz .calc .formula b { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; color: var(--ink); font-weight: 600; }
.sz .calc .note { color: var(--muted); font-style: italic; }
.sz .calc .callout { border-left: 3px solid var(--green); background: var(--green-soft); padding: 14px 18px; font-size: 15px; border-radius: 0 12px 12px 0; }
.sz .calc .callout b { display: block; margin-bottom: 4px; color: var(--green-ink); }
.sz .calc .panel-s { background: var(--surface); border-radius: 18px; padding: 20px 22px; }
.sz .calc .panel-s + .panel-s { margin-top: 12px; }
.sz .calc .panel-s h4 { font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin: 0 0 12px; }
.sz .calc .yearlegend { display: flex; justify-content: space-between; color: var(--muted); font-size: 12.5px; margin-top: 6px; max-width: 320px; }
.sz .calc .yearcap { font-family: var(--serif); font-size: 20px; margin-top: 8px; }

/* Season bars */
.sz .calc .bars { display: grid; gap: 10px; margin-top: 14px; }
.sz .calc .bar-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 14px; align-items: baseline; font-size: 14px; }
.sz .calc .bar-row .lbl b { font-weight: 600; }
.sz .calc .bar-row .lbl span { color: var(--muted); }
.sz .calc .bar-row .hrs { font-weight: 600; white-space: nowrap; }
.sz .calc .track { grid-column: 1 / -1; height: 8px; border-radius: 10px; background: var(--card); overflow: hidden; }
.sz .calc .track i { display: block; height: 100%; width: 0; border-radius: 10px; background: var(--green); transition: width 900ms cubic-bezier(.2,.7,.2,1); }

/* Slide 2: when the no arrives */
.sz .calc .when { position: relative; padding-top: 58px; }
.sz .calc .pool { height: 46px; border-radius: 12px; background: linear-gradient(90deg, var(--green) 0%, color-mix(in oklch, var(--green) 55%, var(--surface)) 50%, var(--line) 100%); position: relative; }
.sz .calc .pool b { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--on-green); font-size: 13.5px; font-weight: 600; }
.sz .calc .months { display: grid; grid-template-columns: repeat(10, 1fr); margin-top: 8px; font-size: 12.5px; color: var(--muted); }
.sz .calc .pin { position: absolute; top: 0; transform: translateX(-50%); text-align: center; width: 132px; font-size: 13px; line-height: 1.25; }
.sz .calc .pin::after { content: ""; display: block; width: 2px; height: 18px; margin: 4px auto 0; background: currentColor; }
.sz .calc .pin b { display: block; font-size: 14px; }
.sz .calc .pin.good { left: 45%; color: var(--green-ink); }
.sz .calc .pin.bad { left: 85%; color: var(--rose); }
.sz .calc .tiles2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 20px; }
.sz .calc .stat { background: var(--card); border: 1px solid var(--line); border-radius: 14px; padding: 18px; }
.sz .calc .stat .v { font-family: var(--serif); font-size: 40px; line-height: 1; }
.sz .calc .stat .k { color: var(--muted); font-size: 14px; margin-top: 8px; }
.sz .calc .stat.hl { background: var(--green-deep); border-color: var(--green-deep); color: var(--on-green); }
.sz .calc .stat.hl .k { color: color-mix(in oklch, var(--on-green) 80%, transparent); }

/* Slide 3: message, answers, then targeted calls */
.sz .calc .phone-s { background: var(--chat); border-radius: 18px; padding: 16px; }
.sz .calc .bubble { background: var(--card); border-radius: 16px 16px 16px 4px; padding: 15px 17px; box-shadow: 0 1px 2px oklch(0.3 0.02 100 / 0.06); }
.sz .calc .btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sz .calc .btns span { border: 1px solid var(--line-strong); border-radius: 999px; padding: 7px 14px; font-size: 14.5px; font-weight: 500; background: var(--card); }
.sz .calc .via { color: var(--muted); font-size: 12.5px; margin-top: 8px; }
.sz .calc .stackbar { display: flex; height: 18px; border-radius: 7px; overflow: hidden; background: var(--line); margin-top: 14px; }
.sz .calc .stackbar i { display: block; width: 0; transition: width 1000ms cubic-bezier(.2,.7,.2,1); }
.sz .calc .legend { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 14px; margin-top: 12px; font-size: 14.5px; }
.sz .calc .legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 8px; background: var(--c); }
.sz .calc .steps3 { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 0; }
.sz .calc .steps3 li { display: grid; grid-template-columns: 64px 1fr; gap: 12px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 15px; }
.sz .calc .steps3 li b { font-size: 13px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; padding-top: 2px; }
.sz .calc .steps3 li.hot { color: var(--green-ink); font-weight: 600; }
.sz .calc .week p { font-size: 14.5px; }
.sz .calc .week .note { font-size: 13.5px; margin-top: 8px; }

/* Slide 4: the itemized receipt */
.sz .calc .receipt { background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 20px 24px; box-shadow: var(--shadow); position: relative; font-size: 15px; }
.sz .calc .receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 10px; background: radial-gradient(circle at 10px -2px, transparent 8px, var(--card) 8.5px) 0 0 / 20px 10px repeat-x; }
.sz .calc .receipt .rh { text-align: center; font-family: var(--serif); font-size: 22px; }
.sz .calc .receipt .rsub { text-align: center; color: var(--muted); font-size: 13px; margin-top: 2px; }
.sz .calc .receipt hr { border: 0; border-top: 1px dashed var(--line-strong); margin: 10px 0; }
.sz .calc .rline { display: flex; align-items: baseline; gap: 8px; padding: 4px 0; }
.sz .calc .rline .dots { flex: 1; border-bottom: 1px dotted var(--line-strong); transform: translateY(-4px); }
.sz .calc .rline .amt { font-weight: 600; white-space: nowrap; }
.sz .calc .rline .amt.unk { color: var(--faint); font-weight: 500; }
.sz .calc .rgroup { font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.sz .calc .rtotal { display: flex; justify-content: space-between; align-items: baseline; font-family: var(--serif); font-size: 26px; }
.sz .calc .closer { font-family: var(--serif); font-size: 23px; line-height: 1.25; }
.sz .calc .fine { color: var(--muted); font-size: 14px; }

/* Bottom bar */
.sz .calc .nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: 22px 44px 0; padding: 14px 0 18px; border-top: 1px solid var(--line); }
.sz .calc .nav .side { display: flex; gap: 18px; align-items: center; }
.sz .calc .keys { color: var(--faint); font-size: 13px; }
.sz .calc .toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: var(--bg); padding: 12px 18px; border-radius: 999px; font-size: 14.5px; opacity: 0; pointer-events: none; transition: opacity 200ms ease-out, transform 200ms ease-out; z-index: 40; }
.sz .calc .toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* How we worked this out */
.sz .calc details.how-calc { max-width: 1040px; margin: 40px auto 0; border-top: 1px solid var(--line); padding-top: 20px; }
.sz .calc details.how-calc summary { cursor: pointer; font-family: var(--serif); font-size: 22px; }
.sz .calc details.how-calc p, .sz .calc details.how-calc li { color: var(--muted); }
.sz .calc details.how-calc p { margin-top: 14px; max-width: 760px; }
.sz .calc details.how-calc ul { margin-top: 12px; padding-left: 20px; display: grid; gap: 8px; max-width: 760px; }
.sz .calc details.how-calc li b { color: var(--ink); font-weight: 600; }

@media (max-width: 860px) {
  .sz .calc .start-grid, .sz .calc .two { grid-template-columns: minmax(0, 1fr); }
  .sz .calc .two { gap: 28px; }
  .sz .calc .inputs, .sz .calc .live { padding: 28px 22px; }
  .sz .calc .slide { padding: 28px 22px 4px; }
  .sz .calc .nav { margin: 28px 22px 0; }
  .sz .calc .chapters button { flex-direction: column; align-items: flex-start; gap: 6px; font-size: 12.5px; padding: 12px 8px 10px; }
  .sz .calc .keys { display: none; }
}
@media (max-width: 480px) {
  .sz .calc .qrow { flex-wrap: wrap; gap: 10px; }
  .sz .calc input[type=range] { flex-basis: 100%; }
  .sz .calc .numbox { text-align: left; }
  .sz .calc .chapters button .t { display: none; }
  .sz .calc .chapters button { align-items: center; }
  .sz .calc .pin { width: 96px; font-size: 12px; }
  .sz .calc .nav, .sz .calc .nav .side { width: 100%; justify-content: space-between; }
  .sz .calc .nav .side:last-child { flex-direction: row-reverse; }
}
@media (prefers-reduced-motion: reduce) {
  .sz .calc .slide.enter { animation: none; }
  .sz .calc .track i, .sz .calc .stackbar i, .sz .calc .year i, .sz .calc .toast { transition: none; }
}
