/* Hourhaven home page, v2 (refuge/docs/LANDING-V2.md), on top of site.css.
   Mobile first: designed at 390 px, holds at 320 px, widens at 640, 960 and 1024 px.
   Motion: only transform and opacity animate, the keyframes run only under a state class set by
   the scripts (.is-playing), and everything renders in its end state without them. */

/* Fallback faces sized to Archivo's measured widths, so the swap to the web font keeps every line
   where it was (no layout shift). Body text at 400, 600 and 700, and the wide headline at 118 %. */
@font-face {
  font-family: 'Archivo FB';
  src: local('Arial'), local('ArialMT'), local('Helvetica'), local('Roboto');
  font-weight: 100 550;
  size-adjust: 98.5%;
  ascent-override: 89.1%;
  descent-override: 21.3%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Archivo FB';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Roboto Bold');
  font-weight: 551 650;
  size-adjust: 94.5%;
  ascent-override: 92.9%;
  descent-override: 22.2%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Archivo FB';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Roboto Bold');
  font-weight: 651 900;
  size-adjust: 98%;
  ascent-override: 89.6%;
  descent-override: 21.4%;
  line-gap-override: 0%;
}
@font-face {
  font-family: 'Archivo Wide FB';
  src: local('Arial Bold'), local('Arial-BoldMT'), local('Helvetica Bold'), local('Roboto Bold');
  font-weight: 100 900;
  size-adjust: 120%;
  ascent-override: 73.2%;
  descent-override: 17.5%;
  line-gap-override: 0%;
}

.home {
  --receipt: #FBFCF8;
  --deep: #12241B;
  --on-deep: #EEF3EE;
  --on-deep-2: #A7BCB0;
  --mint: #9FD8BA;
  --leader: #C5CFC7;
  --wide: 'Archivo', 'Archivo Wide FB', system-ui, sans-serif;
  --check: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l3.8 3.8L18 8' fill='none' stroke='%23fff' stroke-width='2.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  font-family: 'Archivo', 'Archivo FB', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}
.home .wrap { max-width: 1180px; }
/* Zero specificity, so any class rule below can set its own margins. */
:where(.home) p { margin: 0; }
.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
.home section[id] { scroll-margin-top: 72px; }

/* Press feedback: down to 0.97 within 100 ms on pointerdown, then a spring back. Transitions
   retarget from wherever they are, so a quick second tap never jumps. */
.home :is(.button, .step-btn, .toggle button, .step-tab, .demo-pause, .r-replay) {
  transition: transform 0.45s var(--spring);
}
.home :is(.button, .step-btn, .toggle button, .step-tab, .demo-pause, .r-replay):active {
  transform: scale(0.97);
  transition-duration: 0.1s;
  transition-timing-function: ease-out;
}

/* Header: always fixed over a 64 px slot, so at the top it reads as part of the page and nothing ever
   moves in layout. It slides away while the hero scrolls, comes back once the hero is gone (now
   translucent), and only transform and visibility change. Focus inside it always shows it. */
.hdr-slot { height: 64px; }
.hdr {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 20;
  height: 64px;
  background: var(--paper);
  transition: transform 0.45s var(--spring), visibility 0s;
}
.hdr.is-away {
  visibility: hidden;
  transform: translateY(-100%);
  transition: transform 0.28s ease-in, visibility 0s linear 0.28s;
}
.hdr.is-away:focus-within {
  visibility: visible;
  transform: none;
}
.hdr.is-stuck {
  background: rgba(245, 246, 242, 0.95);
  box-shadow: 0 1px 0 var(--rule);
}
@supports (backdrop-filter: blur(1px)) {
  .hdr.is-stuck {
    background: rgba(245, 246, 242, 0.8);
    backdrop-filter: blur(14px) saturate(1.5);
  }
}
.home .skip-link { z-index: 30; }
.hdr-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 100%;
}
.hdr-cta {
  width: 140px;
  min-height: 44px;
  padding: 0 12px;
  font-size: 15px;
}

/* Sections */
.sec {
  padding: 56px 0;
  border-top: 1px solid var(--rule);
}
.band + .sec { border-top: 0; }
.sec-head {
  max-width: 40em;
  margin-bottom: 24px;
}
.sec-title {
  margin: 0 0 12px;
  font-family: var(--wide);
  font-size: 28px;
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.sec-intro {
  margin: 0 0 12px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}
.home .sec-intro:last-child { margin-bottom: 0; }
.sec-lead {
  margin: 0 0 10px;
  font-size: 21px;
  font-weight: 700;
  line-height: 1.35;
}

/* Hero */
.hero { padding: 8px 0 52px; }
.hero-in {
  display: grid;
  gap: 28px;
}
.hero-copy {
  container-type: inline-size;
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
/* Three fixed lines, sized to the column so the longest one fits: the web font and its fallback
   break in the same places, which keeps the swap shift-free. */
.hero-title {
  margin: 0;
  font-family: var(--wide);
  font-size: clamp(24px, 9.4vw, 64px);
  font-size: clamp(24px, 10.35cqi, 72px);
  font-weight: 800;
  font-stretch: 118%;
  line-height: 1.02;
  letter-spacing: -0.02em;
}
.hero-title > span { display: block; }
.hero-lede {
  max-width: 34em;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 18px;
  margin-top: 4px;
}
.hero-cta { min-width: 200px; }
.hero-link {
  min-height: 48px;
  padding: 0 2px;
  font-size: 16px;
}
.hero-fine {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.45;
}
.hero-art {
  width: 100%;
  max-width: 460px;
  min-width: 0;
}

/* Receipts: thermal paper with a torn zig-zag bottom (a CSS mask). The shadow sits on a pseudo
   element behind the paper, so it costs nothing while the lines animate. */
.receipt-wrap {
  position: relative;
  isolation: isolate;
}
.receipt-wrap::before {
  content: '';
  position: absolute;
  inset: 10px 8px 16px;
  z-index: -1;
  border-radius: 6px;
  box-shadow: 0 22px 34px -14px rgba(20, 38, 29, 0.3), 0 2px 6px rgba(20, 38, 29, 0.1);
}
.receipt {
  --tooth: 9px;
  position: relative;
  padding: 18px 18px calc(20px + var(--tooth));
  background: var(--receipt);
  color: var(--ink);
  -webkit-mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / calc(var(--tooth) * 2) 100%;
}
.r-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1.5px dashed var(--dash);
}
.r-head-text { min-width: 0; }
.r-title {
  font-size: 17px;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.r-meta {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.4;
}
.r-replay {
  display: inline-grid;
  flex: none;
  align-items: center;
  min-height: 44px;
  margin: -8px -8px 0 0;
  padding: 0 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--green);
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
  visibility: hidden;
  opacity: 0;
}
.r-replay > span {
  grid-area: 1 / 1;
  visibility: hidden;
}
.is-replayable .r-replay {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease, transform 0.45s var(--spring);
}
.is-replayable.is-done .r-replay-a,
.is-replayable:not(.is-done) .r-replay-b { visibility: visible; }
.r-replay:hover { background: var(--tint); }
.r-lines {
  display: grid;
  gap: 10px;
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}
.r-line {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.r-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
}
.r-label {
  min-width: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
/* Dot leaders: an empty flexible span whose bottom edge sits on the baseline. */
.r-lead {
  flex: 1 1 10px;
  min-width: 10px;
  height: 0;
  border-bottom: 2px dotted var(--leader);
  transform: translateY(-4px);
}
.r-amt {
  flex: none;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.r-detail {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.35;
}
.r-rule {
  height: 6px;
  margin: 16px 0 12px;
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  transform-origin: left center;
}
.r-total {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}
.r-total-label {
  font-size: 15px;
  font-weight: 700;
}
/* A fixed box, so the count-up never moves the label beside it. */
.r-total-amt {
  position: relative;
  flex: none;
  min-width: 3.75em;
  color: var(--red);
  font-size: 40px;
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.1;
  letter-spacing: -0.01em;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.r-total-num {
  display: inline-block;
  transition: opacity 0.3s ease;
}
.r-strike {
  position: absolute;
  top: 52%;
  right: -4px;
  left: -4px;
  height: 3px;
  margin-top: -1.5px;
  border-radius: 2px;
  background: var(--ink);
  transform-origin: left center;
}
.r-stamp {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 14px;
}
.r-seal {
  position: relative;
  flex: none;
  width: 84px;
  height: 84px;
}
.r-seal-art {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-8deg);
  filter: drop-shadow(0 2px 2px rgba(139, 33, 27, 0.3));
}
.r-ring {
  position: absolute;
  inset: 4px;
  border: 3px solid rgba(168, 50, 42, 0.45);
  border-radius: 50%;
  opacity: 0;
}
.r-locked {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.r-locked-label {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.r-locked-price {
  color: var(--green);
  font-size: 28px;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.r-locked-math {
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.35;
}
.r-note {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--dash);
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.45;
}
.r-note a {
  /* A link inside a sentence: WCAG 2.2's target-size rule exempts it, and a 44 px box doubled the line gap. */
  font-weight: 600;
}

/* The hero receipt plays once (hero.js). The HTML ships every step's class, so it reads complete
   without JavaScript; hero.js removes them, then adds them back on time. */
.hero-stage .r-line:not(.is-in),
.hero-stage:not(.is-rule) .r-rule,
.hero-stage:not(.is-total) .r-total,
.hero-stage:not(.is-stamped) .r-seal-art,
.hero-stage:not(.is-locked) .r-locked { opacity: 0; }
.hero-stage:not(.is-struck) .r-strike { transform: scaleX(0); }
.hero-stage.is-struck .r-total-num { opacity: 0.7; } /* 3.5:1, enough for text this large */
@media (prefers-reduced-motion: no-preference) {
  /* Until hero.js starts, the paper waits blank; if the script never comes, it shows after 2.6 s. */
  .hero-stage:not(.is-live) :is(.r-line, .r-rule, .r-total, .r-stamp) {
    opacity: 0;
    animation: hh-show 0.4s 2.6s forwards;
  }
  .hero-stage.is-playing .r-line.is-in { animation: hh-print 0.45s var(--spring) both; }
  .hero-stage.is-playing.is-rule .r-rule { animation: hh-draw 0.32s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
  .hero-stage.is-playing.is-total .r-total { animation: hh-rise 0.45s var(--spring) both; }
  .hero-stage.is-playing.is-stamped .r-seal-art { animation: hh-seal 0.56s both; }
  .hero-stage.is-playing.is-stamped .r-ring { animation: hh-ring 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) 0.224s; }
  .hero-stage.is-playing.is-struck .receipt { animation: hh-jolt 0.32s ease-out; }
  .hero-stage.is-playing.is-struck .r-strike { animation: hh-draw 0.3s cubic-bezier(0.4, 0, 0.2, 1) both; }
  .hero-stage.is-playing.is-locked .r-locked { animation: hh-slide 0.59s var(--spring) both; }
}

/* Calculator */
.calc-grid {
  display: grid;
  gap: 24px;
  align-items: start;
}
.calc-inputs { min-width: 0; }
.calc-fields {
  padding: 4px 16px 16px;
  border: 1.5px solid var(--control);
  border-radius: 16px;
  background: var(--white);
}
.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 64px;
  border-bottom: 1px solid var(--rule-soft);
}
.calc-label {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 16px;
  line-height: 1.35;
}
.stepper-input {
  display: flex;
  flex: none;
  align-items: center;
  gap: 4px;
}
.step-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid var(--control);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.step-btn:hover { border-color: var(--field); }
.step-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-width: 58px;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.step-input {
  width: 3ch;
  padding: 4px 1px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: center;
}
@supports (field-sizing: content) {
  .step-input {
    width: auto;
    min-width: 1ch;
    field-sizing: content;
  }
}
.toggle {
  display: flex;
  gap: 4px;
  margin-top: 16px;
  padding: 4px;
  border-radius: 14px;
  background: var(--track);
}
.toggle button {
  flex: 1 1 0;
  min-width: 0;
  min-height: 44px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--ink);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.toggle button[aria-pressed="true"] {
  background: var(--ink);
  color: var(--white);
}
/* On a phone the two yearly figures ride along at the bottom of the screen while you change the
   inputs; they rest under the inputs once you scroll past them. */
.calc-peek {
  position: sticky;
  bottom: 12px;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 16px;
  border-radius: 14px;
  background: var(--ink);
  color: var(--white);
  box-shadow: 0 12px 28px -14px rgba(20, 38, 29, 0.6);
}
.peek-item {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.peek-name {
  color: #C9D8CF;
  font-size: 13px;
  line-height: 1.3;
}
.peek-figure {
  color: #F6B3AA;
  font-size: 17px;
  font-weight: 800;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
}
.peek-figure.is-ours { color: var(--mint); }
.calc-result { min-width: 0; }
.r-sum-label {
  font-size: 15px;
  font-weight: 700;
}
.r-sum-figure {
  margin-top: 2px;
  color: var(--red);
  font-size: 28px;
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.r-compare {
  margin-top: 6px;
  font-size: 15px;
  line-height: 1.45;
}
/* The working receipt is denser than the hero's, so on a phone it stays within one screen. */
.calc-receipt .r-lines { gap: 6px; }
.calc-receipt .r-detail { font-size: 14px; }
.calc-receipt .r-rule { margin: 12px 0 10px; }
.calc-receipt .r-note {
  margin-top: 12px;
  padding-top: 10px;
}
.calc-stamp {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1.5px dashed var(--dash);
}
.calc-stamp .r-seal {
  width: 56px;
  height: 56px;
}
.calc-cta {
  width: 100%;
  margin-top: 12px;
}
/* Harvest against Hourhaven at a glance. main.js slides each fill inside its track and rides the
   amount along the bar's end, both by transform. The defaults match the default estimate ($3,300
   against $600), for visitors without JavaScript. */
.bars {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 8px 10px;
  margin-top: 12px;
  /* The amounts slide past their lane with transforms, and transforms count as scrollable overflow:
     clip here (the visible text sits in the lane's 70 px margin) so the page never scrolls sideways. */
  overflow: clip;
}
.bar { display: contents; }
.bar-name {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.bar-lane {
  position: relative;
  margin-right: 70px;
}
.bar-track {
  display: block;
  height: 10px;
  overflow: hidden;
  border-radius: 6px;
  background: var(--track);
}
.bar-fill {
  display: block;
  height: 100%;
  border-radius: 6px;
  background: var(--red);
}
.bar-amount {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding-left: 8px;
  color: var(--red);
  font-size: 15px;
  font-weight: 800;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  transform: translateX(100%);
}
.bar-fill.is-ours {
  background: var(--green);
  transform: translateX(-81.82%);
}
.bar-amount.is-ours {
  color: var(--green);
  transform: translateX(18.18%);
}
.calc-details {
  min-width: 0;
  max-width: min(48em, 100%);
  margin-top: 28px;
}
.calc-details summary {
  display: flex;
  align-items: center;
  min-height: 44px;
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}
.calc-details-body {
  padding: 6px 0 4px;
  color: var(--ink-2);
  font-size: 15px;
  line-height: 1.55;
}
.calc-details-body p { margin: 0 0 16px; }
.details-list {
  display: grid;
  gap: 8px;
  margin: 0 0 16px;
  padding-left: 20px;
}

/* Move in minutes: the sample move counts up, then each month is checked (main.js adds
   .is-waiting off-screen and .is-checking in view; the page ships the end). */
.move-in {
  display: grid;
  gap: 8px;
}
.import {
  min-width: 0;
  padding: 18px 16px;
  border: 1.5px solid var(--control);
  border-radius: 16px;
  background: var(--white);
}
.import-label {
  margin-bottom: 12px;
  color: var(--ink-3);
  font-size: 15px;
}
.counters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  gap: 14px 16px;
  margin: 0;
}
.counter-wide { grid-column: span 2; }
.counter dt {
  color: var(--ink-3);
  font-size: 15px;
}
.counter dd {
  margin: 0;
  font-size: 28px;
  font-weight: 800;
  font-stretch: 110%;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.ledger {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
}
.ledger-title {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
}
.ledger-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.lg-row {
  --i: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 40px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.lg-row:nth-child(2) { --i: 1; }
.lg-row:nth-child(3) { --i: 2; }
.lg-row:nth-child(4) { --i: 3; }
.lg-row:nth-child(5) { --i: 4; }
.lg-row:nth-child(6) { --i: 5; }
.lg-hours {
  font-weight: 700;
  text-align: right;
}
.lg-ok {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 6.2em;
  color: var(--green);
  font-weight: 600;
}
.lg-check {
  flex: none;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green) var(--check) center / 11px no-repeat;
}
.import-match {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 14px;
  color: var(--green);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.35;
}
.match-seal {
  flex: none;
  width: 30px;
  height: 30px;
  transform: rotate(-8deg);
}
.import.is-waiting :is(.lg-ok, .import-match) { opacity: 0; }
.import.is-checking .lg-ok { animation: hh-pop 0.45s var(--spring) backwards calc(1000ms + var(--i) * 140ms); }
.import.is-checking .import-match { animation: hh-rise 0.59s var(--spring) backwards 1900ms; }
.import.is-checking .match-seal { animation: hh-seal 0.56s backwards 2000ms; }

/* Same habits: the week fills cell by cell as it scrolls in (scroll-driven where supported,
   a one-off fill from main.js elsewhere). Each cell waits by its row plus its column. */
.habits-in {
  display: grid;
  gap: 8px 48px;
}
.keys {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--ink-2);
  font-size: 15px;
  list-style: none;
}
.keys li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.keys kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 30px;
  padding: 0 8px;
  border: 1px solid var(--control);
  border-bottom-width: 2.5px;
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
}
.week {
  min-width: 0;
  padding: 10px 10px 4px;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
}
.week-grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
.week-grid caption {
  padding: 4px 4px 10px;
  font-size: 15px;
  font-weight: 700;
  text-align: left;
}
.week-grid th,
.week-grid td {
  padding: 9px 1px;
  border-top: 1px solid var(--rule-soft);
  font-size: 14px;
  text-align: center;
}
.week-grid thead th {
  border-top: 0;
  color: var(--ink-3);
  font-size: 13px;
  font-weight: 600;
}
.week-grid tr > :first-child {
  width: 34%;
  padding-left: 4px;
  text-align: left;
}
.week-grid tbody th { font-weight: 400; }
.week-grid tfoot :is(th, td) {
  font-weight: 800;
  border-top: 1.5px solid var(--ink);
}
.week-grid :is(th, td):nth-child(5) { background: var(--tint); }
.wk-proj {
  display: block;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.25;
}
.wk-client {
  display: block;
  color: var(--ink-3);
  font-size: 12px;
  line-height: 1.3;
}
.wk-v { display: inline-block; }
.wk-run {
  color: var(--green);
  font-weight: 800;
}
.wk-empty { color: var(--ink-3); }
.wk-total { display: none; }
.week-grid tr > :nth-child(2) { --c: 0; }
.week-grid tr > :nth-child(3) { --c: 1; }
.week-grid tr > :nth-child(4) { --c: 2; }
.week-grid tr > :nth-child(5) { --c: 3; }
.week-grid tr > :nth-child(6) { --c: 4; }
.week-grid tr > :nth-child(7) { --c: 5; }
.week-grid tbody tr:nth-child(2) { --r: 1; }
.week-grid tbody tr:nth-child(3) { --r: 2; }
.week-grid tbody tr:nth-child(4) { --r: 3; }
.week-grid tbody tr:nth-child(5) { --r: 4; }
.week-grid tfoot tr { --r: 6; }
.week-grid .wk-v { --k: calc(var(--r, 0) + var(--c, 0)); }
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .week { view-timeline: --week block; }
    .week-grid .wk-v {
      animation: hh-cell linear both;
      animation-timeline: --week;
      animation-range: entry calc(25% + var(--k) * 2.4%) entry calc(55% + var(--k) * 2.4%);
    }
  }
  .week.is-waiting .wk-v { opacity: 0; }
  .week.is-filling .wk-v { animation: hh-cell 0.4s var(--spring) backwards calc(var(--k) * 45ms); }
}
.parity {
  display: grid;
  gap: 0 32px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}
.parity li {
  position: relative;
  padding: 12px 0 12px 30px;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 16px;
  line-height: 1.45;
}
.parity li::before,
.plan-list li::before,
.trust li::before {
  content: '';
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--green) var(--check) center / 11px no-repeat;
}
.parity li::before { top: 14px; }

/* The dark band: five mini-demos in a stepper (demos.js). */
.band {
  padding: 60px 0 56px;
  background: var(--deep);
  color: var(--on-deep);
}
.band .sec-title { color: #F5F6F2; }
.band .sec-intro { color: var(--on-deep-2); }
.band :focus-visible { outline-color: var(--mint); }
.step-nav {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.step-tabs {
  position: relative;
  display: flex;
  flex: 1 1 auto;
  gap: 6px;
  min-width: 0;
  margin: -3px;
  padding: 3px 3px 6px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scrollbar-width: none;
  -webkit-mask: linear-gradient(90deg, #000 86%, transparent);
  mask: linear-gradient(90deg, #000 86%, transparent);
}
.step-tabs::-webkit-scrollbar { display: none; }
.step-tab {
  position: relative;
  display: flex;
  flex: none;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  min-height: 48px;
  padding: 9px 14px 9px;
  border: 1px solid rgba(238, 243, 238, 0.18);
  border-radius: 12px;
  background: transparent;
  color: var(--on-deep-2);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  scroll-snap-align: start;
  touch-action: manipulation;
}
.step-tab:hover { color: var(--on-deep); }
.step-tab[aria-selected="true"] {
  border-color: rgba(159, 216, 186, 0.55);
  background: rgba(159, 216, 186, 0.08);
  color: #F5F6F2;
}
.step-prog {
  display: block;
  height: 3px;
  overflow: hidden;
  border-radius: 2px;
  background: rgba(238, 243, 238, 0.14);
}
.step-prog > span {
  display: block;
  height: 100%;
  background: var(--mint);
  transform: scaleX(0);
  transform-origin: left center;
}
.stepper:not(.is-live) .step-prog,
.stepper.is-still .step-prog { visibility: hidden; }
.demo-pause {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(238, 243, 238, 0.28);
  border-radius: 12px;
  background: transparent;
  color: var(--on-deep);
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  touch-action: manipulation;
  visibility: hidden;
}
.stepper.is-live:not(.is-still) .demo-pause { visibility: visible; }
.demo-pause:hover { border-color: var(--mint); }
/* Two bars for Pause, a triangle for Play. */
.demo-pause-icon {
  width: 10px;
  height: 12px;
  border-right: 3px solid currentColor;
  border-left: 3px solid currentColor;
}
.stepper.is-held .demo-pause-icon {
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 10px solid currentColor;
  border-right: 0;
}
.stage {
  display: grid;
  margin-top: 18px;
}
/* The five panels share one cell, so the stage is as tall as the tallest and switching never
   moves anything; the active one cross-fades in. */
.panel {
  display: flex;
  flex-direction: column;
  grid-area: 1 / 1;
  gap: 14px;
  min-width: 0;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.25s ease, visibility 0s linear 0.25s;
}
.panel.is-active {
  visibility: visible;
  opacity: 1;
  transition: opacity 0.3s ease 0.05s, visibility 0s;
}
.panel:focus-visible {
  outline-offset: 6px;
  border-radius: 14px;
}
.panel-cap {
  max-width: 34em;
  min-height: 4.5em;
  color: #DCE7E0;
  font-size: 17px;
  line-height: 1.5;
}
.band-note {
  margin-top: 16px;
  color: var(--on-deep-2);
  font-size: 15px;
}
@media (scripting: none) {
  .step-nav { display: none; }
  .stage { gap: 36px; }
  .panel {
    grid-area: auto;
    visibility: visible;
    opacity: 1;
  }
}

/* The demo screens: app screens with sample data. Text inside is aria-hidden; each screen has a
   text alternative. The fixed height keeps the stage still whatever the demo shows. */
.screen {
  position: relative;
  width: 100%;
  max-width: 420px;
  height: 460px;
  padding: 16px;
  overflow: hidden;
  border-radius: 22px;
  background: var(--white);
  color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.06), 0 26px 50px -26px rgba(0, 0, 0, 0.7);
  font-size: 15px;
  line-height: 1.4;
}
.screen-in {
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}
.sc-date {
  color: var(--ink-3);
  font-size: 13px;
}
.sc-title {
  margin-top: -8px;
  font-size: 22px;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.sc-sub {
  margin-top: -6px;
  color: var(--ink-2);
  font-size: 14px;
}
/* A fingertip, as in a screen recording. */
.tap {
  position: absolute;
  top: 50%;
  left: 62%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 0 0 1.5px rgba(20, 38, 29, 0.25), 0 6px 16px rgba(20, 38, 29, 0.3);
  opacity: 0;
  pointer-events: none;
}
.screen.is-playing.is-tap .tap { animation: hh-tap 1s; }
.screen.is-paused,
.screen.is-paused * { animation-play-state: paused !important; }

/* Demo 1: Yesterday is ready. Six drafts roll in, Confirm all, they fold into one sealed day. */
.demo-head {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.demo-date {
  color: var(--ink-3);
  font-size: 13px;
}
.demo-date b { color: var(--ink); }
.demo-title {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 22px;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.demo-total {
  color: var(--green);
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
.demo-status {
  display: grid;
  color: var(--ink-2);
  font-size: 13px;
  line-height: 1.4;
}
.demo-status > span { grid-area: 1 / 1; }
.demo-status-a {
  position: relative;
  overflow: hidden;
}
.demo-sheen {
  position: absolute;
  inset: 0 auto 0 0;
  width: 40%;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0));
  transform: translateX(-110%);
}
.demo-status-b,
.demo-yesterday.is-ready .demo-status-a { opacity: 0; }
.demo-yesterday.is-ready .demo-status-b { opacity: 1; }
.demo-stage { display: grid; }
.demo-stage > div {
  grid-area: 1 / 1;
  min-width: 0;
}
.demo-rows {
  margin: 0;
  padding: 0;
  list-style: none;
}
.demo-row {
  --i: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  height: 42px;
  border-bottom: 1px solid var(--rule-soft);
  opacity: 0;
}
.demo-row:nth-child(2) { --i: 1; }
.demo-row:nth-child(3) { --i: 2; }
.demo-row:nth-child(4) { --i: 3; }
.demo-row:nth-child(5) { --i: 4; }
.demo-row:nth-child(6) { --i: 5; }
.demo-row.is-in { opacity: 1; }
.demo-yesterday.is-folded .demo-row { opacity: 0; }
.demo-check {
  position: relative;
  flex: none;
  width: 20px;
  height: 20px;
  border: 1.5px solid var(--control);
  border-radius: 50%;
}
.demo-check > span,
.demo-day-check {
  display: block;
  border-radius: 50%;
  background: var(--green) var(--check) center / 12px no-repeat;
}
.demo-check > span {
  position: absolute;
  inset: -1.5px;
  opacity: 0;
  transform: scale(0.4);
}
.demo-yesterday.is-checked .demo-check > span {
  opacity: 1;
  transform: none;
}
.demo-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.demo-proj,
.demo-meta {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.demo-proj {
  font-size: 13.5px;
  font-weight: 700;
}
.demo-meta {
  color: var(--ink-3);
  font-size: 12px;
}
.demo-chip {
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-2);
  font-size: 11px;
  font-weight: 600;
}
.demo-dur {
  flex: none;
  min-width: 2.8em;
  font-size: 15px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.demo-confirm {
  position: relative;
  margin-top: 12px;
  opacity: 0;
}
.demo-yesterday.is-ready .demo-confirm { opacity: 1; }
.demo-yesterday.is-folded .demo-confirm { opacity: 0; }
.demo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 46px;
  border-radius: 14px;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}
.demo-after {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.demo-day,
.demo-week { opacity: 0; }
.demo-yesterday.is-folded .demo-day,
.demo-yesterday.is-folded .demo-week { opacity: 1; }
.demo-day {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px 10px 14px;
  border-radius: 14px;
  background: var(--tint);
}
.demo-day-check {
  flex: none;
  width: 24px;
  height: 24px;
}
.demo-day-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-size: 14px;
}
.demo-day-text b { font-weight: 800; }
.demo-sealed {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  opacity: 0;
}
.demo-stamp {
  position: relative;
  flex: none;
  width: 46px;
  height: 46px;
}
.demo-ring {
  position: absolute;
  inset: 0;
  border: 3px solid rgba(168, 50, 42, 0.45);
  border-radius: 50%;
  opacity: 0;
}
.demo-seal {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  opacity: 0;
}
.demo-yesterday.is-sealed .demo-sealed { opacity: 1; }
.demo-yesterday.is-sealed .demo-seal {
  opacity: 1;
  transform: rotate(-8deg);
}
.demo-week {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
  padding: 0 2px;
}
.demo-week-head {
  display: flex;
  justify-content: space-between;
  color: var(--ink-3);
  font-size: 13px;
}
.demo-week-head b {
  color: var(--ink);
  font-size: 15px;
  font-variant-numeric: tabular-nums;
}
.demo-bars {
  display: grid;
  flex: 1;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
  min-height: 120px;
}
.demo-bars > span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-height: 0;
  color: var(--ink-3);
  font-size: 12px;
}
.demo-bar {
  flex: 1;
  width: 100%;
  max-width: 40px;
  min-height: 0;
  overflow: hidden;
  border-radius: 8px 8px 3px 3px;
}
/* Each bar is a full-height fill slid down to show its hours out of 9: Monday 7:45, Tuesday 8:10,
   Wednesday 7:20 once sealed, and nothing yet on Thursday and Friday. */
.demo-bar > span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--dash);
  transform: translateY(96%);
}
.demo-bars > :nth-child(1) .demo-bar > span { transform: translateY(13.9%); }
.demo-bars > :nth-child(2) .demo-bar > span { transform: translateY(9.3%); }
.demo-bars > :nth-child(n+4) .demo-bar > span { background: var(--rule-soft); }
.demo-bars > .demo-wed {
  color: var(--green);
  font-weight: 700;
}
.demo-wed .demo-bar > span {
  background: var(--green);
  transform: translateY(100%);
}
.demo-yesterday.is-week .demo-wed .demo-bar > span { transform: translateY(18.5%); }
.demo-yesterday.is-playing:not(.is-ready) .demo-sheen { animation: hh-sheen 1.3s ease-in-out 0.15s 2; }
.demo-yesterday.is-playing .demo-row.is-in { animation: hh-rise 0.59s var(--spring); }
.demo-yesterday.is-playing.is-ready .demo-status-a { animation: hh-out 0.2s; }
.demo-yesterday.is-playing.is-ready .demo-status-b { animation: hh-in 0.3s 0.12s backwards; }
.demo-yesterday.is-playing.is-ready .demo-confirm { animation: hh-rise 0.59s var(--spring); }
.demo-yesterday.is-playing.is-press .demo-btn { animation: hh-press 0.6s; }
.demo-yesterday.is-playing.is-checked .demo-check > span { animation: hh-pop 0.45s var(--spring) calc(var(--i) * 45ms) backwards; }
.demo-yesterday.is-playing.is-folded .demo-row { animation: hh-fold 0.67s var(--spring), hh-fade 0.18s ease-out both; }
.demo-yesterday.is-playing.is-folded .demo-confirm { animation: hh-out 0.18s; }
.demo-yesterday.is-playing.is-folded .demo-day { animation: hh-rise 0.59s var(--spring) 0.22s backwards; }
.demo-yesterday.is-playing.is-folded .demo-week { animation: hh-rise 0.59s var(--spring) 0.33s backwards; }
.demo-yesterday.is-playing.is-sealed .demo-seal { animation: hh-seal 0.56s; }
.demo-yesterday.is-playing.is-sealed .demo-ring { animation: hh-ring 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) 0.225s; }
.demo-yesterday.is-playing.is-sealed .demo-day { animation: hh-jolt 0.32s ease-out 0.225s; }
.demo-yesterday.is-playing.is-sealed .demo-sealed { animation: hh-slide 0.59s var(--spring) 0.43s backwards; }
.demo-yesterday.is-playing.is-week .demo-wed .demo-bar > span { animation: hh-grow 0.67s var(--spring); }

/* Demo 2: Type it like you say it. The text types, the chips assemble, Enter saves it. */
.ty-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 8px 0 14px;
  border: 2px solid var(--ink);
  border-radius: 14px;
}
.ty-icon {
  flex: none;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--green);
  stroke-width: 2.2;
  stroke-linecap: round;
}
.ty-field {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  font-size: 15px;
  white-space: nowrap;
}
/* The caret is part of the text's own box, so typing never shifts another element. */
.ty-text::after,
.ask-text::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1.15em;
  margin-left: 1px;
  vertical-align: -0.2em;
  background: var(--green);
  opacity: 0;
}
.ty-ph,
.ask-ph {
  position: absolute;
  top: 50%;
  left: 0;
  color: var(--ink-3);
  opacity: 0;
  transform: translateY(-50%);
  pointer-events: none;
}
.ty-text:empty + .ty-ph,
.ask-text:empty + .ask-ph { opacity: 1; }
.ty-key {
  flex: none;
  padding: 5px 9px;
  border-radius: 8px;
  background: var(--track);
  color: var(--ink-2);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
}
.ty-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ty-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--tint);
  font-size: 14px;
  font-weight: 700;
  opacity: 0;
}
.ty-chip.is-in { opacity: 1; }
.ty-chip-k {
  color: var(--ink-3);
  font-size: 12px;
  font-weight: 600;
}
.ty-saved {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--tint);
  opacity: 0;
}
.demo-typing.is-saved .ty-saved { opacity: 1; }
.ty-saved-check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green) var(--check) center / 13px no-repeat;
}
.ty-saved-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: 14px;
}
.ty-saved-text b { font-weight: 800; }
.ty-saved-text span {
  color: var(--ink-3);
  font-size: 13px;
}
.ty-undo {
  flex: none;
  color: var(--green);
  font-size: 14px;
  font-weight: 700;
}
.ty-more {
  margin-top: auto;
  color: var(--ink-3);
  font-size: 13px;
  line-height: 1.45;
}
.demo-typing.is-playing:not(.is-enter) .ty-text::after { animation: hh-blink 1s steps(1) infinite; }
.demo-typing.is-playing .ty-chip.is-in { animation: hh-pop 0.45s var(--spring) backwards; }
.demo-typing.is-playing.is-enter .ty-key { animation: hh-press 0.6s; }
.demo-typing.is-playing.is-saved .ty-saved { animation: hh-rise 0.59s var(--spring) backwards; }

/* Demo 3: The month's invoices. Four invoices, Send all, they stack, Paid seals land. */
.inv-stage { display: grid; }
.inv-stage > * {
  grid-area: 1 / 1;
  align-self: start;
  min-width: 0;
}
.inv-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.inv-row {
  --i: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  height: 56px;
  padding: 0 12px;
  border: 1.5px solid var(--rule);
  border-radius: 12px;
  background: var(--white);
  opacity: 0;
}
.inv-row:nth-child(2) { --i: 1; }
.inv-row:nth-child(3) { --i: 2; }
.inv-row:nth-child(4) { --i: 3; }
.inv-row.is-in { opacity: 1; }
.demo-invoices.is-sent .inv-row { opacity: 0; }
.inv-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: 12.5px;
}
.inv-text b {
  font-size: 14px;
  font-weight: 800;
}
.inv-text span {
  overflow: hidden;
  color: var(--ink-3);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.inv-amt {
  flex: none;
  font-size: 15px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}
/* The sent pile: a card with two more peeking under it (stacked shadows, no extra elements). */
.inv-pile {
  padding: 14px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 6px 0 -2px var(--white), 0 6px 0 -0.5px var(--rule), 0 12px 0 -5px var(--white), 0 12px 0 -3.5px var(--rule);
  opacity: 0;
}
.demo-invoices.is-sent .inv-pile { opacity: 1; }
.inv-pile-title {
  font-size: 16px;
  font-weight: 800;
}
.inv-pile-sub {
  margin-top: 2px;
  color: var(--ink-3);
  font-size: 13px;
}
.inv-seals {
  display: flex;
  gap: 4px;
  margin-top: 12px;
}
.inv-seal {
  position: relative;
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  opacity: 0;
  transform: rotate(-8deg);
}
.inv-seal.is-in { opacity: 1; }
.inv-seal svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  fill: var(--red);
}
.inv-seal > span {
  position: relative;
  color: #FBFCF8;
  font-size: 12.5px;
  font-weight: 800;
}
.inv-paid {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--dash);
  font-size: 14px;
}
.inv-paid-amt {
  min-width: 5.6ch;
  color: var(--green);
  font-size: 21px;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.inv-action {
  position: relative;
  margin-top: auto;
  opacity: 0;
}
.demo-invoices.is-ready .inv-action { opacity: 1; }
.inv-btn {
  display: grid;
  place-items: center;
  height: 48px;
  border-radius: 14px;
  background: var(--green);
  color: var(--white);
  font-size: 15px;
  font-weight: 700;
}
.inv-btn > span { grid-area: 1 / 1; }
.inv-btn-b,
.demo-invoices.is-sent .inv-btn-a { opacity: 0; }
.demo-invoices.is-sent .inv-btn-b { opacity: 1; }
.demo-invoices.is-sent .inv-btn {
  background: var(--tint);
  color: var(--green);
}
.demo-invoices.is-playing .inv-row.is-in { animation: hh-rise 0.5s var(--spring) backwards; }
.demo-invoices.is-playing.is-ready .inv-action { animation: hh-rise 0.59s var(--spring) backwards; }
.demo-invoices.is-playing.is-press .inv-btn { animation: hh-press 0.6s; }
.demo-invoices.is-playing.is-sent .inv-row { animation: hh-stack 0.55s var(--spring) both, hh-fade 0.25s 0.45s both; }
.demo-invoices.is-playing.is-sent .inv-pile { animation: hh-rise 0.59s var(--spring) 0.4s backwards; }
.demo-invoices.is-playing .inv-seal.is-in { animation: hh-seal 0.56s backwards; }

/* Demo 4: Needs you. Three cards arrive, one tap sends the late invoice's reminder. */
.nd-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.nd-card {
  padding: 12px 14px;
  border: 1.5px solid var(--control);
  border-radius: 14px;
  background: var(--white);
  opacity: 0;
}
.nd-card.is-in { opacity: 1; }
.nd-budget { border-color: var(--ink); }
.nd-card p {
  font-size: 14px;
  line-height: 1.45;
}
.nd-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  height: 34px;
  margin-top: 8px;
  padding: 0 12px;
  border: 1.5px solid var(--green);
  border-radius: 10px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.nd-budget .nd-btn {
  background: var(--green);
  color: var(--white);
}
.nd-btn .tap { left: 70%; }
.nd-swap { display: grid; }
.nd-swap > div { grid-area: 1 / 1; }
.nd-b {
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
}
.demo-needs.is-resolved .nd-a { opacity: 0; }
.demo-needs.is-resolved .nd-b { opacity: 1; }
.nd-check {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--green) var(--check) center / 13px no-repeat;
}
.demo-needs.is-playing .nd-card.is-in { animation: hh-arrive 0.59s var(--spring) backwards; }
.demo-needs.is-playing.is-press .nd-a .nd-btn { animation: hh-press 0.6s; }
.demo-needs.is-playing.is-resolved .nd-a { animation: hh-out 0.2s; }
.demo-needs.is-playing.is-resolved .nd-b { animation: hh-in 0.35s 0.1s backwards; }

/* Demo 5: Ask it in ChatGPT or Claude. The question types, is sent, Hourhaven answers. */
.ask-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--rule-soft);
}
.ask-app {
  font-size: 15px;
  font-weight: 800;
}
.ask-conn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px 4px 6px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-2);
  font-size: 12.5px;
  font-weight: 700;
}
.ask-conn img {
  display: block;
  width: 16px;
  height: 16px;
}
.ask-thread {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  min-height: 0;
}
.ask-q {
  align-self: flex-end;
  max-width: 86%;
  padding: 10px 14px;
  border-radius: 18px 18px 4px 18px;
  background: var(--ink);
  color: var(--white);
  font-size: 14px;
  opacity: 0;
}
.demo-ask.is-sent .ask-q { opacity: 1; }
.ask-tool {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ink-3);
  font-size: 13px;
  opacity: 0;
}
.demo-ask.is-tool .ask-tool { opacity: 1; }
.ask-tool-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
}
.ask-card {
  padding: 14px;
  border: 1.5px solid var(--rule);
  border-radius: 14px;
  opacity: 0;
}
.demo-ask.is-answer .ask-card { opacity: 1; }
.ask-card-title {
  color: var(--ink-3);
  font-size: 13px;
}
.ask-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 6px;
}
.ask-stats p {
  display: flex;
  flex-direction: column;
}
.ask-stats b {
  font-size: 22px;
  font-weight: 800;
  font-stretch: 108%;
  line-height: 1.15;
  font-variant-numeric: tabular-nums;
}
.ask-stats span {
  color: var(--ink-3);
  font-size: 12.5px;
}
.ask-bars {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.ask-bars li {
  display: grid;
  grid-template-columns: 7.2em minmax(0, 1fr) 3.2em;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.ask-bar-val {
  font-weight: 700;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.ask-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 4px;
  background: var(--track);
}
.ask-bar > span {
  display: block;
  height: 100%;
  border-radius: 4px;
  background: var(--green);
  transform-origin: left center;
}
.ask-bars li:nth-child(1) .ask-bar > span { transform: scaleX(0.871); }
.ask-bars li:nth-child(2) .ask-bar > span { transform: scaleX(0.129); }
.ask-input {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 62px;
  padding: 0 8px 0 14px;
  border: 1.5px solid var(--control);
  border-radius: 20px;
}
.ask-field {
  position: relative;
  flex: 1;
  min-width: 0;
  align-self: stretch;
  display: flex;
  align-items: center;
  font-size: 14px;
  line-height: 1.4;
}
.ask-send {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 18V7M7 11.5L12 6.5l5 5' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat;
}
.demo-ask.is-playing:not(.is-sent) .ask-text::after { animation: hh-blink 1s steps(1) infinite; }
.demo-ask.is-playing.is-sent .ask-q { animation: hh-rise 0.5s var(--spring) backwards; }
.demo-ask.is-playing.is-tool .ask-tool { animation: hh-in 0.3s backwards; }
.demo-ask.is-playing.is-tool:not(.is-answer) .ask-tool-dot { animation: hh-pulse 0.7s ease-in-out infinite alternate; }
.demo-ask.is-playing.is-answer .ask-card { animation: hh-rise 0.59s var(--spring) backwards; }
.demo-ask.is-playing.is-answer .ask-bar > span { animation: hh-growx 0.7s var(--spring) 0.15s backwards; }

/* The price, locked: the certificate (a soft light follows the pointer on desktops) and the plans. */
.lock-in {
  display: grid;
  gap: 28px;
}
.lock-copy { margin-bottom: 0; }
.cert-stage { min-width: 0; }
.cert {
  container-type: inline-size;
  position: relative;
  width: 100%;
  aspect-ratio: 640 / 440;
  overflow: hidden;
  border-radius: 3px;
  background: var(--cert-paper);
  box-shadow: 0 0 0 1px var(--rule), 0 24px 40px -28px rgba(20, 38, 29, 0.45);
  color: var(--ink);
  font-family: 'Libre Caslon Text', Georgia, serif;
}
.cert-frame {
  position: absolute;
  inset: 0;
  display: block;
}
.cert-light {
  position: absolute;
  top: -160px;
  left: -160px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255, 255, 255, 0.75), rgba(255, 255, 255, 0));
  mix-blend-mode: overlay;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}
.cert.is-lit .cert-light { opacity: 1; }
.cert-body {
  position: absolute;
  inset: 9.5cqw 10cqw 9cqw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cert-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 2cqw;
}
.cert-title {
  font-size: 4.3cqw;
  font-variant: small-caps;
  letter-spacing: 0.06em;
}
.cert-no {
  color: var(--red);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 2.3cqw;
  font-stretch: 75%;
  letter-spacing: 0.12em;
}
.cert-mid {
  display: flex;
  flex-direction: column;
  gap: 0.9cqw;
}
.cert-italic {
  color: var(--ink-2);
  font-size: 2.6cqw;
  font-style: italic;
}
.cert-holder {
  width: fit-content;
  min-width: 46cqw;
  padding-bottom: 0.6cqw;
  border-bottom: 1px solid var(--dash);
  font-size: 4.4cqw;
  font-weight: 700;
}
.cert-price-row {
  display: flex;
  align-items: baseline;
  gap: 1.6cqw;
  margin-top: 0.8cqw;
}
.cert-price {
  color: var(--green);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 13.5cqw;
  font-weight: 800;
  font-stretch: 125%;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.cert-unit {
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 2.7cqw;
  line-height: 1.25;
}
.cert-terms {
  max-width: 50cqw;
  color: var(--ink-2);
  font-size: 2.35cqw;
  font-style: italic;
  line-height: 1.5;
}
.cert-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 3cqw;
}
.cert-sign {
  display: flex;
  flex-direction: column;
  gap: 0.6cqw;
}
.cert-signature {
  display: block;
  width: 22cqw;
  height: auto;
}
.cert-signed {
  padding-top: 0.6cqw;
  border-top: 1px solid var(--dash);
  color: var(--ink-2);
  font-family: 'Archivo', system-ui, sans-serif;
  font-size: 2cqw;
}
.cert-seal {
  display: block;
  flex: none;
  width: 17cqw;
  height: 17cqw;
  transform: rotate(-8deg);
  filter: drop-shadow(0 0.4cqw 0.4cqw rgba(139, 33, 27, 0.3));
}
.plans {
  display: grid;
  gap: 14px;
  align-content: start;
}
.plan {
  padding: 22px;
  border-radius: 16px;
}
.plan-team {
  border: 2px solid var(--green);
  background: var(--white);
}
.plan-free { border: 1.5px solid var(--control); }
.plan-name {
  margin: 0;
  font-size: 17px;
  font-weight: 700;
}
.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-top: 6px;
}
.plan-amt {
  color: var(--green);
  font-size: 56px;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.plan-free .plan-amt {
  color: var(--ink);
  font-size: 40px;
}
.plan-unit {
  color: var(--ink-2);
  font-size: 17px;
  font-weight: 600;
}
.plan-alt {
  margin-top: 8px;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}
.plan-list {
  display: grid;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}
.plan-list li,
.trust li {
  position: relative;
  padding-left: 30px;
  font-size: 16px;
  line-height: 1.45;
}
.plan-list li::before,
.trust li::before { top: 1px; }
.plan-cta {
  width: 100%;
  margin-top: 18px;
}
.lock-fine {
  color: var(--ink-3);
  font-size: 15px;
}

/* Questions */
.faq-in {
  display: grid;
  gap: 16px 48px;
}
.faq-list { border-top: 1px solid var(--rule); }
.qa { border-bottom: 1px solid var(--rule); }
.qa summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 60px;
  padding: 12px 0;
  cursor: pointer;
  list-style: none;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  margin-right: 4px;
  border-right: 2px solid var(--green);
  border-bottom: 2px solid var(--green);
  transform: translateY(-3px) rotate(45deg);
  transition: transform 0.4s var(--spring);
}
.qa[open] summary::after { transform: translateY(2px) rotate(-135deg); }
.qa-q {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.35;
}
.qa-a {
  max-width: 40em;
  padding: 0 0 18px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}

/* Final call: the waitlist form, with the seal waiting in its corner. On success the card keeps
   its height, the form gives way to « Your price is locked » and the seal stamps. */
.final { padding-bottom: 72px; }
.final-in {
  display: grid;
  gap: 40px 56px;
  align-items: start;
}
.trust {
  display: grid;
  gap: 10px;
  margin: 18px 0 0;
  padding: 0;
  color: var(--ink-2);
  list-style: none;
}
.final-card {
  position: relative;
  min-width: 0;
  padding: 26px 20px 22px;
  border: 2px solid var(--green);
  border-radius: 16px;
  background: var(--white);
}
.wl-seal {
  position: absolute;
  top: -30px;
  right: 14px;
  width: 64px;
  height: 64px;
}
.wl-seal-slot {
  position: absolute;
  inset: 6px;
  border: 1.5px dashed var(--dash);
  border-radius: 50%;
  background: var(--paper);
}
.wl-ring {
  position: absolute;
  inset: 4px;
  border: 3px solid rgba(168, 50, 42, 0.45);
  border-radius: 50%;
  opacity: 0;
}
.wl-seal-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: rotate(-8deg);
  filter: drop-shadow(0 2px 2px rgba(139, 33, 27, 0.3));
}
.final-card.is-locked .wl-seal-art { opacity: 1; }
.final-card.is-locked .wl-seal-slot { opacity: 0; }
.wl-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
}
.field-pair {
  display: grid;
  gap: 20px;
}
.field > label {
  font-size: 15px;
  font-weight: 600;
  line-height: 1.35;
}
.optional {
  color: var(--ink-3);
  font-weight: 400;
}
.hint {
  margin-top: -4px;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.4;
}
.input {
  width: 100%;
  height: 52px;
  padding: 0 14px;
  border: 1.5px solid var(--field);
  border-radius: 12px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 16px;
}
.input-short { max-width: 140px; }
.select {
  -webkit-appearance: none;
  appearance: none;
  padding-right: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5 6 6.5 11 1.5' fill='none' stroke='%2314261D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position: right 16px center;
  background-repeat: no-repeat;
  background-size: 12px 8px;
}
.input[aria-invalid="true"] {
  border-color: var(--red);
  box-shadow: 0 0 0 1px var(--red);
}
.field-error {
  color: var(--red);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}
.check {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.check input {
  flex: none;
  width: 22px;
  height: 22px;
  margin: 1px 0 0;
  accent-color: var(--green);
}
.check input[aria-invalid="true"] {
  outline: 2px solid var(--red);
  outline-offset: 2px;
}
.check label {
  font-size: 16px;
  line-height: 1.45;
  cursor: pointer;
}
.check-note {
  margin-left: 34px;
  font-size: 14px;
}
.check-note a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--red-tint);
  color: var(--red);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.45;
}
.wl-submit {
  width: 100%;
  min-height: 54px;
  border-radius: 14px;
}
.wl-submit[aria-disabled="true"] { cursor: progress; }
.wl-success {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding-top: 6px;
}
.wl-cert-no {
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}
.wl-success-title {
  margin: 0;
  font-family: var(--wide);
  font-size: 28px;
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.wl-success-text {
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}
.wl-success-for {
  color: var(--ink-3);
  font-size: 15px;
  overflow-wrap: anywhere;
}
.wl-success-title:focus-visible {
  outline-offset: 4px;
  border-radius: 6px;
}
@media (prefers-reduced-motion: no-preference) {
  .final-card.is-locked { animation: hh-jolt 0.32s ease-out 0.37s; }
  .final-card.is-locked .wl-seal-art { animation: hh-seal 0.56s 0.15s backwards; }
  .final-card.is-locked .wl-ring { animation: hh-ring 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) 0.37s; }
  .final-card.is-locked .wl-success > * { animation: hh-rise 0.59s var(--spring) backwards; }
  .final-card.is-locked .wl-success > :nth-child(2) { animation-delay: 0.06s; }
  .final-card.is-locked .wl-success > :nth-child(3) { animation-delay: 0.12s; }
  .final-card.is-locked .wl-success > :nth-child(4) { animation-delay: 0.18s; }
}

/* Footer */
.foot {
  padding: 40px 0 48px;
  border-top: 1px solid var(--rule);
}
.foot-in {
  display: grid;
  gap: 28px;
}
.foot-note {
  max-width: 34em;
  margin-top: 10px;
  color: var(--ink-3);
  font-size: 15px;
  line-height: 1.5;
}
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 56px;
}
.foot-h {
  margin-bottom: 4px;
  font-size: 15px;
  font-weight: 700;
}
.foot-col ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.foot-col a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 15px;
}

/* Keyframes. Only transform and opacity. */
@keyframes hh-show { to { opacity: 1; } }
@keyframes hh-print { from { opacity: 0; transform: translateY(-6px); } }
@keyframes hh-draw { from { transform: scaleX(0); } }
@keyframes hh-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes hh-arrive { from { opacity: 0; transform: translateX(18px); } }
@keyframes hh-in { from { opacity: 0; } }
@keyframes hh-out { from { opacity: 1; } }
@keyframes hh-slide { from { opacity: 0; transform: translateX(-8px); } }
@keyframes hh-pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes hh-grow { from { transform: translateY(100%); } }
@keyframes hh-growx { from { transform: scaleX(0); } }
@keyframes hh-cell { from { opacity: 0; transform: translateY(6px) scale(0.92); } }
@keyframes hh-settle { from { transform: rotate(1.6deg); } }
@keyframes hh-untilt { to { transform: none; } }
@keyframes hh-blink { 50% { opacity: 1; } }
@keyframes hh-pulse { from { opacity: 0.3; } }
@keyframes hh-fade {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes hh-sheen {
  from { transform: translateX(-110%); }
  to { transform: translateX(260%); }
}
@keyframes hh-tap {
  from { opacity: 0; transform: translate(22px, 26px) scale(1.15); animation-timing-function: cubic-bezier(0.2, 0.8, 0.3, 1); }
  30% { opacity: 1; transform: translate(0, 0) scale(1); animation-timing-function: ease-in; }
  40% { opacity: 1; transform: translate(0, 0) scale(0.82); }
  55% { opacity: 1; transform: translate(0, 0) scale(0.82); animation-timing-function: ease-out; }
  to { opacity: 0; transform: translate(0, 0) scale(1.4); }
}
/* Feedback on press: 0.97 within 100 ms, held, then a spring back. */
@keyframes hh-press {
  from { transform: scale(1); animation-timing-function: ease-out; }
  17% { transform: scale(0.97); }
  25% { transform: scale(0.97); animation-timing-function: cubic-bezier(0.2, 0.8, 0.2, 1); }
  to { transform: scale(1); }
}
/* The rows slide up into the day while they fade. The fade is its own, shorter animation so the
   rows are gone before they overlap: overlapping text at half opacity reads as a smudge. */
@keyframes hh-fold {
  from { transform: none; }
  to { transform: translateY(calc(var(--i) * -30%)) scale(0.97); }
}
/* The sent invoices slide onto the first one, a little smaller each, like a pile. */
@keyframes hh-stack {
  to { transform: translateY(calc(var(--i) * -58px)) scale(calc(1 - var(--i) * 0.03)); }
}
/* The wax seal drops in from 1.5× and −24°, squashes on impact at 40% (when the ring and the
   paper's small jolt start), overshoots a little, then rests at −8°. The only bounce on the page. */
@keyframes hh-seal {
  from { opacity: 0; transform: scale(1.5) rotate(-24deg); animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.45); }
  15% { opacity: 1; }
  40% { transform: scale(1.08, 0.9) rotate(-7deg); animation-timing-function: cubic-bezier(0.25, 0.6, 0.4, 1); }
  66% { transform: scale(0.97, 1.03) rotate(-9deg); animation-timing-function: ease-out; }
  to { opacity: 1; transform: rotate(-8deg); }
}
@keyframes hh-ring {
  from { opacity: 0.55; transform: scale(0.7); }
  to { opacity: 0; transform: scale(2.1); }
}
@keyframes hh-jolt {
  25% { transform: translateY(2px); }
  55% { transform: translateY(-1.5px); }
  80% { transform: translateY(0.75px); }
}

/* Wider screens */
/* 320 px: the header, the stamp row and the typed demo text are measured to fit (288 px of content). */
@media (max-width: 359px) {
  .hdr .brand { gap: 8px; }
  .hdr .brand-name { font-size: 17px; }
  .hdr-cta { width: 118px; padding: 0 8px; font-size: 14px; }
  .receipt { padding-right: 14px; padding-left: 14px; }
  .r-total-amt { font-size: 36px; }
  .r-seal { width: 72px; height: 72px; }
  .r-locked-price { font-size: 24px; }
  .panel-cap { font-size: 16px; }
  .ty-field { font-size: 14px; }
}
@media (min-width: 560px) {
  .wk-total { display: table-cell; }
  .week-grid tr > :first-child { width: 28%; }
}
@media (min-width: 640px) {
  .counters { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .counter-wide { grid-column: auto; }
  .parity { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-pair { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .field-pair .input-short { max-width: none; }
  .plans { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
}
@media (min-width: 768px) {
  .home .wrap { padding: 0 28px; }
  .sec { padding: 88px 0; }
  .band { padding: 88px 0 80px; }
  .sec-title { font-size: 40px; }
  .sec-head { margin-bottom: 32px; }
  .hero { padding: 24px 0 72px; }
  .hero-art { justify-self: center; }
  .foot-in { grid-template-columns: minmax(0, 1fr) auto; }
}
@media (min-width: 960px) {
  .calc-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px; }
  .calc-inputs { position: sticky; top: 88px; }
  .calc-peek { display: none; }
  .move-in,
  .habits-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); align-items: center; }
  .habits-in .parity { grid-column: 1 / -1; }
  .stepper {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    gap: 16px 56px;
    align-items: start;
  }
  .step-nav {
    flex-direction: column;
    align-items: stretch;
    gap: 16px;
  }
  .step-tabs {
    flex-direction: column;
    margin: 0;
    padding: 0;
    overflow: visible;
    -webkit-mask: none;
    mask: none;
  }
  .step-tab {
    min-height: 58px;
    padding: 12px 16px;
    font-size: 17px;
  }
  .demo-pause { align-self: flex-start; }
  .stage { margin-top: 0; }
  .panel-cap { min-height: 3em; }
  .screen {
    max-width: 460px;
    height: 480px;
    padding: 20px;
  }
  .band-note { grid-column: 2; }
  .lock-in { grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 48px; align-items: start; }
  .lock-copy,
  .lock-fine { grid-column: 1 / -1; }
  .plans { grid-template-columns: 1fr; }
  .faq-in { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); align-items: start; }
  .final-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
  .final-card { padding: 30px 28px 26px; }
}
@media (min-width: 1024px) {
  .hero { padding: 40px 0 96px; }
  .hero-in {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: 56px;
    align-items: center;
  }
  .hero-art { justify-self: end; }
  .r-total-amt { font-size: 44px; }
  .r-seal { width: 96px; height: 96px; }
  .receipt { padding: 22px 24px calc(24px + var(--tooth)); }
}
/* On desktops the receipt rests at a slight tilt and settles flat when the seal lands. */
@media (min-width: 1024px) and (prefers-reduced-motion: no-preference) {
  .hero-stage:not(.is-struck) .receipt-wrap,
  .hero-stage:not(.is-live) .receipt-wrap { transform: rotate(1.6deg); }
  .hero-stage:not(.is-live) .receipt-wrap { animation: hh-untilt 0.7s var(--spring) 2.6s forwards; }
  .hero-stage.is-playing.is-struck .receipt-wrap { animation: hh-settle 0.67s var(--spring); }
}

/* Reduced motion: end states only, with short cross-fades where something changes. */
@media (prefers-reduced-motion: reduce) {
  .home *,
  .home *::before,
  .home *::after { animation: none !important; }
  .home :is(.button, .step-btn, .toggle button, .step-tab, .demo-pause, .r-replay):active { transform: none; }
  .panel { transition: opacity 0.15s ease, visibility 0s linear 0.15s; }
  .panel.is-active { transition: opacity 0.15s ease, visibility 0s; }
  .home .final-card.is-locked .wl-success { animation: hh-in 0.2s ease both !important; }
  .qa summary::after,
  .hdr,
  .hdr.is-away { transition: none; }
}

/* The fee table scrolls inside its own box; nothing in the calculator may widen the page. */
.calc-details-body { min-width: 0; }
.calc-details .table-scroll { max-width: 100%; }

/* Phones: the certificate keeps its proportions in type, but its height follows the content, so the
   signature line and the seal are never cut off. */
@media (max-width: 560px) {
  .cert { aspect-ratio: auto; }
  .cert-body {
    position: relative;
    inset: auto;
    padding: 9.5cqw 10cqw 9cqw;
    gap: 3cqw;
  }
}
