/* Hourhaven landing page, ported from design/canvas/Main.dc.html and Certificate.dc.html.
   Mobile first: laid out at 390 px, holds at 320 px (16 px gutters, no sideways scroll),
   and caps at a 1080 px column on wide screens (1440 px and up). */

/* Fonts are self-hosted (latin subsets from Google Fonts, SIL Open Font License),
   so no visitor IP address goes to a third party. */
@font-face {
  font-family: 'Archivo';
  font-style: normal;
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
  src: url('/fonts/archivo-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-caslon-text-400-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/libre-caslon-text-400-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Libre Caslon Text';
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url('/fonts/libre-caslon-text-700-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --paper: #F5F6F2;
  --white: #FFFFFF;
  --ink: #14261D;
  --ink-2: #3D4D44;
  --ink-3: #4F5F56;
  --green: #1E5B44;
  --green-dark: #184C39;
  --red: #A8322A;
  --red-tint: #FBEAE8;
  --rule: #D5DCD4;
  --rule-soft: #E3E8E1;
  --control: #B9C6BD;
  --field: #6E8A7B; /* form field borders: 3.8:1 on white, 3.5:1 on paper */
  --tint: #EEF3EE;
  --track: #E7ECE5;
  --dash: #9DB3A6;
  --cert-paper: #FBFCF8;
  /* One critically damped spring (damping 1) for every move. Such springs all share this shape,
     so the duration alone sets the response: 0.45 s, 0.59 s and 0.67 s for 0.3, 0.4 and 0.45. */
  --spring: linear(0, 0.08, 0.24, 0.409, 0.557, 0.677, 0.769, 0.837, 0.887, 0.922, 0.947, 0.964, 0.976, 0.984, 0.989, 0.993, 0.995, 0.997, 0.998, 0.999, 1);
  color-scheme: light;
}
@supports not (animation-timing-function: linear(0, 1)) {
  :root { --spring: cubic-bezier(0.2, 0.8, 0.2, 1); }
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Archivo', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}

a { color: var(--green); }
a:hover { color: var(--ink); }

a:focus-visible,
button:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 3px;
}
a:not(.button):focus-visible,
summary:focus-visible { border-radius: 6px; }
input:focus-visible,
select:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 12px 16px;
  border-radius: 10px;
  background: var(--ink);
  color: var(--white);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; color: var(--white); }

.wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 0 16px;
}

/* Header */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 64px;
  gap: 12px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--ink);
  text-decoration: none;
}
.brand:hover { color: var(--ink); }
.brand img { display: block; flex: none; width: 30px; height: 30px; }
.brand-name {
  font-size: 19px;
  font-weight: 800;
  font-stretch: 118%;
  letter-spacing: -0.01em;
}
.nav-link {
  display: flex;
  align-items: center;
  min-height: 44px;
  padding: 12px 4px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
}

/* Shared pieces */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  background: var(--green);
  color: var(--white);
  font-family: inherit;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  touch-action: manipulation;
}
.button:hover { background: var(--green-dark); color: var(--white); }

.text-link {
  display: inline-flex;
  align-items: center;
  min-height: 52px;
  padding: 0 6px;
  color: var(--green);
  font-size: 16px;
  font-weight: 600;
}

.fine {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
}

.section {
  padding: 40px 0;
  border-top: 1px solid var(--rule);
}
.section-end { padding-bottom: 48px; }

.section-title {
  margin: 0 0 20px;
  font-size: clamp(27px, 7vw, 40px);
  font-weight: 750;
  font-stretch: 110%;
  line-height: 1.08;
  letter-spacing: -0.02em;
}
.section-title.tight { margin-bottom: 10px; }
.section-title.loose { margin-bottom: 24px; }

.section-intro {
  max-width: 36em;
  margin: 0 0 24px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.55;
}

/* Hero */
.hero {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 40px;
  align-items: center;
  padding: 28px 0 48px;
}
.hero-copy {
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.hero h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(38px, 10.4vw, 66px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1;
  letter-spacing: -0.025em;
}
.lede {
  max-width: 34em;
  margin: 0;
  color: var(--ink-2);
  font-size: 18px;
  line-height: 1.55;
}
.actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.hero-art {
  justify-self: center;
  width: 100%;
  max-width: 560px;
}

/* Price lock certificate: sized with container query units so it scales with its width. */
.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);
  color: var(--ink);
  font-family: 'Libre Caslon Text', Georgia, serif;
}
.cert-frame {
  position: absolute;
  inset: 0;
  display: block;
}
.cert-body {
  position: absolute;
  inset: 9.5cqw 10cqw 9cqw;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.cert-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 2cqw;
}
.cert-title {
  color: var(--ink);
  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-stretch: 125%;
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.cert-unit {
  color: var(--ink);
  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;
  justify-content: space-between;
  align-items: flex-end;
  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 {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 17cqw;
  height: 17cqw;
  border-radius: 50%;
  background: repeating-conic-gradient(#A8322A 0deg 4deg, #B8463D 4deg 8deg);
  box-shadow: inset 0 0 0 0.5cqw rgba(255, 255, 255, 0.18);
  transform: rotate(-11deg);
  animation: hh-stamp 0.7s cubic-bezier(0.2, 0.9, 0.25, 1.15) 0.35s both;
}
.cert-seal-art {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
}
@keyframes hh-stamp {
  0% { transform: scale(1.4) rotate(-22deg); opacity: 0; }
  55% { transform: scale(0.93) rotate(-8deg); opacity: 1; }
  100% { transform: scale(1) rotate(-11deg); opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .cert-seal { animation: none; transform: rotate(-11deg); }
}

/* Your hours fill themselves: the demo card after the hero.
   The page ships its end state (a sealed day): that is what visitors see without JavaScript or
   with reduced motion. Otherwise demo.js resets it, then adds one class per step (is-ready,
   is-tap, is-press, is-checked, is-folded, is-sealed, is-week, is-done). The animations run only
   under .is-playing and move only transform and opacity; the card is the same size in every state. */
.demo-grid {
  display: grid;
  gap: 4px 56px;
  align-items: center;
}
.demo {
  --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");
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
  max-width: 440px;
  min-width: 0;
}
@media (min-width: 960px) {
  .demo-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); }
  .demo { max-width: 600px; justify-self: end; }
}
/* Until demo.js has set the card back to its start, keep it blank rather than flash the end.
   If the script never runs, the end state shows after 3 s. */
@media (scripting: enabled) and (prefers-reduced-motion: no-preference) {
  .demo:not(.is-live) .demo-inner {
    opacity: 0;
    animation: hh-show 0.3s 3s forwards;
  }
}
@keyframes hh-show { to { opacity: 1; } }
.demo-screen {
  position: relative;
  width: 100%;
  padding: 16px;
  overflow: hidden;
  border: 2px solid var(--green);
  border-radius: 22px;
  background: var(--white);
  box-shadow: 0 22px 44px -30px rgba(20, 38, 29, 0.5);
}
.demo-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.demo-inner p { margin: 0; }
.demo-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.demo-date { color: var(--ink-3); font-size: 13.5px; }
.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);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
/* The two status lines share one cell, so swapping them never moves anything. */
.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.is-ready .demo-status-a { opacity: 0; }
.demo.is-ready .demo-status-b { opacity: 1; }

/* The drafts and the sealed day share one cell too. */
.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: 50px;
  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.is-folded .demo-row { opacity: 0; }
.demo-check {
  position: relative;
  flex: none;
  width: 22px;
  height: 22px;
  margin-right: 2px;
  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 / 13px no-repeat;
}
.demo-check > span {
  position: absolute;
  inset: -1.5px;
  opacity: 0;
  transform: scale(0.4);
}
.demo.is-checked .demo-check > span {
  opacity: 1;
  transform: none;
}
.demo-text {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.demo-proj,
.demo-meta {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.demo-proj { font-size: 14px; font-weight: 700; }
.demo-meta { color: var(--ink-3); font-size: 12.5px; }
.demo-chip {
  margin-right: 6px;
  padding: 1px 7px;
  border-radius: 999px;
  background: var(--tint);
  color: var(--ink-2);
  font-size: 11.5px;
  font-weight: 600;
}
.demo-dur {
  flex: none;
  min-width: 2.8em;
  font-size: 16px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.demo-confirm {
  position: relative;
  margin-top: 14px;
  opacity: 0;
  transform: translateY(8px);
}
.demo.is-ready .demo-confirm {
  opacity: 1;
  transform: none;
}
.demo.is-folded .demo-confirm { opacity: 0; }
.demo-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  border-radius: 14px;
  background: var(--green);
  color: var(--white);
  font-size: 16px;
  font-weight: 700;
}
/* A fingertip, as in a screen recording. */
.demo-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;
}
.demo-after {
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.demo-day,
.demo-week { opacity: 0; }
.demo.is-folded .demo-day,
.demo.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: 15px;
}
.demo-day-text b { font-weight: 800; }
.demo-sealed {
  color: var(--red);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  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.is-sealed .demo-sealed { opacity: 1; }
.demo.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: 0;
}
.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.is-week .demo-wed .demo-bar > span { transform: translateY(18.5%); }
.demo-replay {
  display: inline-grid;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1.5px solid var(--green);
  border-radius: 999px;
  background: var(--white);
  color: var(--green);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
.demo-replay:hover { background: var(--tint); }
.demo-replay > span { grid-area: 1 / 1; }
.demo-again,
.demo.is-done .demo-skip { visibility: hidden; }
.demo.is-done .demo-again { visibility: visible; }

/* The moves, in story order (times in demo.js). */
.demo.is-playing:not(.is-ready) .demo-sheen { animation: hh-sheen 1.3s ease-in-out 0.15s 2; }
.demo.is-playing .demo-row.is-in { animation: hh-rise 0.59s var(--spring); }
.demo.is-playing.is-ready .demo-status-a { animation: hh-out 0.2s; }
.demo.is-playing.is-ready .demo-status-b { animation: hh-in 0.3s 0.12s backwards; }
.demo.is-playing.is-ready .demo-confirm { animation: hh-rise 0.59s var(--spring); }
.demo.is-playing.is-tap .demo-tap { animation: hh-tap 1s; }
.demo.is-playing.is-press .demo-btn { animation: hh-press 0.6s; }
.demo.is-playing.is-checked .demo-check > span { animation: hh-pop 0.45s var(--spring) calc(var(--i) * 45ms) backwards; }
.demo.is-playing.is-folded .demo-row { animation: hh-fold 0.67s var(--spring), hh-fade 0.18s ease-out both; }
.demo.is-playing.is-folded .demo-confirm { animation: hh-out 0.18s; }
.demo.is-playing.is-folded .demo-day { animation: hh-rise 0.59s var(--spring) 0.22s backwards; }
.demo.is-playing.is-folded .demo-week { animation: hh-rise 0.59s var(--spring) 0.33s backwards; }
.demo.is-playing.is-sealed .demo-seal { animation: hh-seal 0.56s; }
.demo.is-playing.is-sealed .demo-ring { animation: hh-ring 0.65s cubic-bezier(0.2, 0.7, 0.3, 1) 0.225s; }
.demo.is-playing.is-sealed .demo-screen { animation: hh-jolt 0.32s ease-out 0.225s; }
.demo.is-playing.is-sealed .demo-sealed { animation: hh-slide 0.59s var(--spring) 0.43s backwards; }
.demo.is-playing.is-week .demo-wed .demo-bar > span { animation: hh-grow 0.67s var(--spring); }
.demo.is-paused * { animation-play-state: paused !important; }

@keyframes hh-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes hh-in { from { opacity: 0; } }
@keyframes hh-out { from { opacity: 1; } }
@keyframes hh-slide { from { opacity: 0; transform: translateX(-6px); } }
@keyframes hh-pop { from { opacity: 0; transform: scale(0.4); } }
@keyframes hh-grow { from { transform: translateY(100%); } }
@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 first one's place as they fade: the day folds into one line. */
/* 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); }
}
@keyframes hh-fade {
  from { opacity: 1; }
  to { opacity: 0; }
}
/* The wax seal drops in from 1.4× and −20°, squashes on impact at 40% (when the ring and the
   card's 2 px jolt start), overshoots a little, then rests at −8°. */
@keyframes hh-seal {
  from { opacity: 0; transform: scale(1.4) rotate(-20deg); animation-timing-function: cubic-bezier(0.55, 0, 0.9, 0.45); }
  15% { opacity: 1; }
  40% { transform: scale(1.07, 0.91) 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: scale(1) rotate(-8deg); }
}
@keyframes hh-ring {
  from { opacity: 0.55; transform: scale(0.7); }
  to { opacity: 0; transform: scale(2.2); }
}
@keyframes hh-jolt {
  25% { transform: translateY(2px); }
  55% { transform: translateY(-1.5px); }
  80% { transform: translateY(0.75px); }
}
@media (prefers-reduced-motion: reduce) {
  .demo *,
  .import * { animation: none !important; }
}

/* Calculator */
.calc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 28px;
  align-items: start;
}
.calc-inputs {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.calc-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--rule-soft);
}
.calc-label {
  flex: 1 1 auto;
  min-width: 0;
  color: var(--ink);
  font-size: 16px;
}
.stepper {
  display: flex;
  align-items: center;
  flex: none;
  gap: 6px;
}
.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: 10px;
  background: var(--white);
  color: var(--ink);
  font-family: inherit;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  touch-action: manipulation;
}
.step-value {
  display: flex;
  align-items: baseline;
  justify-content: center;
  min-width: 56px;
  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: 6px;
  width: fit-content;
  max-width: 100%;
  margin-top: 14px;
  padding: 4px;
  border-radius: 12px;
  background: var(--track);
}
.toggle button {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 9px;
  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);
}

.result {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1.5px solid var(--ink);
  border-radius: 16px;
  background: var(--white);
}
.result-harvest,
.result-ours {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 20px 20px 18px;
}
.result-ours {
  padding-bottom: 22px;
  border-top: 1.5px dashed var(--dash);
  background: var(--tint);
}
.result p { margin: 0; }
.result-label { color: var(--ink-3); font-size: 15px; }
.result-ours .result-label { color: var(--ink-2); }
.result-figure {
  font-size: 34px;
  font-weight: 800;
  font-stretch: 108%;
  font-variant-numeric: tabular-nums;
}
.result-figure.is-harvest { color: var(--red); }
.result-figure.is-ours { color: var(--green); }
.result-compare { color: var(--ink); font-size: 15px; line-height: 1.45; }
.result-note { color: var(--ink-3); font-size: 13px; line-height: 1.45; }
.result-ours .result-note { color: var(--ink-2); }
.result-cta {
  margin-top: 10px;
  min-height: 50px;
  padding: 0 20px;
  font-size: 16px;
}
/* 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 below match the HTML's default
   estimate ($3,300 against $600), for visitors without JavaScript. */
.bars {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px 10px;
  padding: 20px 20px 4px;
}
.bar { display: contents; }
.bar-name {
  color: var(--ink-2);
  font-size: 14px;
  font-weight: 600;
}
.bar-lane {
  position: relative;
  margin-right: 76px;
}
.bar-track {
  display: block;
  height: 12px;
  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;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  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 {
  max-width: 48em;
  margin-top: 24px;
}
.calc-details summary {
  padding: 10px 0;
  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; }
.table-scroll {
  margin: 0 0 16px;
  overflow-x: auto;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: var(--white);
}
.fees {
  width: 100%;
  min-width: 440px;
  border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.fees caption {
  padding: 12px 14px 6px;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
}
.fees th,
.fees td {
  padding: 8px 14px;
  border-top: 1px solid var(--rule-soft);
  text-align: left;
  white-space: nowrap;
}
.fees thead th { color: var(--ink-3); font-weight: 600; }
.fees tbody th { color: var(--ink); font-weight: 700; }
.details-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

/* Voices */
.quotes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 28px;
}
.quote {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
}
.quote blockquote { margin: 0; }
.quote blockquote p {
  margin: 0;
  color: var(--ink);
  font-size: 19px;
  line-height: 1.45;
}
.quote figcaption { color: var(--ink-3); font-size: 14px; }
.press {
  margin: 24px 0 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.55;
}

/* How the move works */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 26px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.step {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}
.step-num {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 36px;
  height: 36px;
  border: 1.5px solid var(--green);
  border-radius: 50%;
  color: var(--green);
  font-size: 16px;
  font-weight: 800;
}
.step-body {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.step-title { font-size: 18px; font-weight: 700; }
.step-text { color: var(--ink-2); font-size: 16px; line-height: 1.5; }

/* The sample move: the counters climb once in view (main.js), then the match line arrives. */
.import {
  margin-top: 32px;
  padding: 18px 18px 16px;
  border: 1.5px solid var(--control);
  border-radius: 16px;
  background: var(--white);
}
.import-label {
  margin: 0 0 12px;
  color: var(--ink-3);
  font-size: 14px;
}
.counters {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 0;
}
@media (min-width: 720px) {
  .counters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.counter {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.counter dt {
  color: var(--ink-3);
  font-size: 14px;
}
.counter dd {
  margin: 0;
  font-size: 26px;
  font-weight: 800;
  font-stretch: 110%;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
}
.import-match {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid var(--rule-soft);
  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-counting .import-match { opacity: 0; }
.import.is-matched .import-match { animation: hh-rise 0.59s var(--spring); }
.import.is-matched .match-seal { animation: hh-seal 0.56s 0.12s backwards; }

/* What stays the same */
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 0 32px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.features li {
  padding: 14px 0;
  border-bottom: 1px solid var(--rule-soft);
  font-size: 17px;
  line-height: 1.45;
}

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr));
  gap: 18px;
  align-items: stretch;
}
.plan {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  border: 1.5px solid var(--control);
  border-radius: 16px;
  background: var(--paper);
}
.plan-team {
  position: relative;
  border: 2px solid var(--green);
  background: var(--white);
}
.plan-name { margin: 0; font-size: 17px; font-weight: 700; }
.plan-price {
  margin: 0;
  font-size: 40px;
  font-weight: 800;
  font-stretch: 108%;
  font-variant-numeric: tabular-nums;
}
.plan-team .plan-price { color: var(--green); }
.plan-unit {
  color: var(--ink-2);
  font-size: 17px;
  font-weight: 600;
  font-stretch: 100%;
}
.plan-text {
  margin: 0;
  color: var(--ink-2);
  font-size: 16px;
  line-height: 1.5;
}
.plan-promise { color: var(--ink); font-weight: 600; }
.plan-cta {
  margin-top: 6px;
  min-height: 50px;
  padding: 0 20px;
  font-size: 16px;
}

/* Waitlist */
.waitlist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  gap: 20px 40px;
  align-items: start;
}
.waitlist-intro .section-intro { margin-bottom: 0; }
.waitlist-card {
  padding: 22px;
  border: 2px solid var(--green);
  border-radius: 16px;
  background: var(--white);
}
.wl-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.field > label { font-size: 15px; font-weight: 600; line-height: 1.35; }
.optional { color: var(--ink-3); font-weight: 400; }
.hint {
  margin: -4px 0 0;
  color: var(--ink-3);
  font-size: 14px;
}
.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 {
  margin: 0;
  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: 0 0 0 34px; font-size: 14px; }
.check-note a { display: inline-block; padding: 4px 0; }
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-error {
  margin: 0;
  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;
  align-items: flex-start;
  gap: 8px;
}
.wl-success-icon { display: block; margin-bottom: 6px; }
.wl-success-title {
  margin: 0;
  font-size: 24px;
  font-weight: 800;
  font-stretch: 110%;
  letter-spacing: -0.01em;
}
.wl-success-text {
  margin: 0;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.5;
}

/* Footer */
.site-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 22px;
  padding: 28px 0 40px;
  border-top: 1px solid var(--rule);
}
.footer-note {
  margin: 0;
  color: var(--ink-3);
  font-size: 14px;
  line-height: 1.5;
}
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}
.footer-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font-size: 14px;
}

/* Text pages (privacy, not found) */
.prose {
  max-width: 40em;
  padding: 28px 0 48px;
  color: var(--ink-2);
  font-size: 17px;
  line-height: 1.6;
}
.prose h1 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: clamp(32px, 8vw, 48px);
  font-weight: 800;
  font-stretch: 112%;
  line-height: 1.05;
  letter-spacing: -0.02em;
}
.prose h2 {
  margin: 32px 0 8px;
  color: var(--ink);
  font-size: 21px;
  font-weight: 750;
  font-stretch: 108%;
  line-height: 1.25;
}
.prose p,
.prose ul { margin: 0 0 14px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; }
.prose .updated {
  margin-bottom: 24px;
  color: var(--ink-3);
  font-size: 14px;
}
.prose .button { margin-top: 8px; }
