/* 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;
  color-scheme: light;
}

*, *::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); }
}

/* 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;
}

.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; }

/* 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; }
