/* Print Foreman landing page, Phase 1a (verification page).
   Load print-foreman-tokens.css first. Dark graphite base; orange only for the brand and the primary button. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--pf-bg);
  color: var(--pf-text);
  font: 400 17px/1.6 var(--pf-font-body);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
a { color: var(--pf-accent-text); text-underline-offset: 2px; }
:focus-visible { outline: 3px solid var(--pf-focus); outline-offset: 2px; }
img { max-width: 100%; display: block; }
.mono { font-family: var(--pf-font-mono); font-variant-numeric: tabular-nums; }

.skip { position: absolute; left: 16px; top: -48px; background: var(--pf-accent); color: var(--pf-on-accent); padding: 8px 12px; border-radius: 6px; z-index: 10; }
.skip:focus { top: 12px; }

/* Header: logo small, top left (1 PAS: never lead with the name; brand kit: 26 px minimum, mark on phones at 28 px). */
.site-head { padding: 20px 16px; }
.brand { display: inline-block; padding: 7px; margin: -7px; } /* clear space: one layer height (about 7 px at this size) */
.brand img { height: 32px; width: auto; }
@media (max-width: 599px) { .brand img { height: 28px; } }

/* Hero: headline, subhead, then the offer box on the right and the photo on the left (desktop). On phones the offer follows the headline. */
.hero {
  flex: 1;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 8px 16px 48px;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr);
  grid-template-areas: "copy" "offer" "lede" "photo";
}
.hero-copy { grid-area: copy; }
.offer { grid-area: offer; }
.lede { grid-area: lede; }
.farm-photo { grid-area: photo; }

@media (min-width: 900px) {
  .site-head { padding: 28px 32px; }
  .hero {
    padding: 16px 32px 64px;
    column-gap: 40px;
    row-gap: 32px;
    grid-template-columns: minmax(0, 1.6fr) minmax(320px, 400px);
    grid-template-areas: "copy offer" "lede offer" "photo offer";
    align-items: start;
  }
  .offer { position: sticky; top: 24px; margin-top: 30px; }
  h1 { font-size: clamp(36px, 4.4vw, 60px); }
}

.eyebrow {
  margin: 0 0 14px;
  font: 500 13px/1.3 var(--pf-font-mono);
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--pf-accent-text);
}
h1, h2 {
  font-family: var(--pf-font-display);
  font-stretch: 118%;
  text-wrap: balance;
  margin: 0;
}
h1 {
  font-weight: 900;
  font-size: clamp(32px, 6.2vw, 64px);
  line-height: 1.04;
  letter-spacing: -.01em;
  max-width: 18ch;
}
.subhead {
  margin: 16px 0 0;
  font-family: var(--pf-font-display);
  font-stretch: 110%;
  font-weight: 700;
  font-size: clamp(19px, 2vw, 24px);
  line-height: 1.25;
  color: var(--pf-text);
  max-width: 32ch;
  text-wrap: balance;
}
.lede {
  margin: 0;
  max-width: 64ch;
  font-size: clamp(17px, 1.6vw, 19px);
  color: var(--pf-text);
}

/* Offer box */
.offer {
  background: var(--pf-surface);
  border: 1px solid var(--pf-border);
  border-radius: 12px;
  padding: 24px 20px;
}
.offer h2 { font-size: 24px; font-weight: 800; line-height: 1.15; }
.offer > p { margin: 10px 0 18px; color: var(--pf-text-muted); font-size: 16px; }
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field label { font-size: 14px; font-weight: 500; }
.field input {
  font: inherit;
  font-size: 16px; /* stops iOS zoom on focus */
  color: var(--pf-text);
  background: var(--pf-bg);
  border: 1px solid var(--pf-border-strong);
  border-radius: 8px;
  padding: 11px 12px;
  min-height: 46px;
  width: 100%;
}
.field input:focus-visible { outline-offset: 0; border-color: var(--pf-focus); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.btn {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: var(--pf-accent);
  color: var(--pf-on-accent); /* graphite on orange, never white */
  font: 600 17px/1.2 var(--pf-font-body);
  cursor: pointer;
}
.btn:hover { background: var(--pf-accent-hover); }
.btn[disabled] { opacity: .7; cursor: progress; }
.fine { margin: 12px 0 0; font-size: 13px; color: var(--pf-text-muted); }
.form-msg { margin: 10px 0 0; font-size: 15px; min-height: 1px; }
.form-msg:empty { display: none; }

/* Farm photo */
.farm-photo { margin: 0; }
.farm-photo img, .photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 2;
  border-radius: 12px;
  object-fit: cover;
  background: var(--pf-surface-2);
}
.photo-placeholder {
  display: grid;
  place-content: center;
  gap: 8px;
  padding: 24px;
  text-align: center;
  border: 2px dashed var(--pf-border-strong);
  color: var(--pf-text-muted);
  font-size: 15px;
}
.photo-placeholder .mono { color: var(--pf-text); font-size: 14px; }
.farm-photo figcaption { margin-top: 12px; font-size: 15px; color: var(--pf-text-muted); }
.farm-photo figcaption .mono { color: var(--pf-text); }
/* Text-only farm line while the photo is deferred */
.farm-line { font-size: 15px; color: var(--pf-text-muted); }
.farm-line .mono { color: var(--pf-text); }

/* Footer */
.site-foot {
  border-top: 1px solid var(--pf-border);
  padding: 24px 16px 32px;
  font-size: 14px;
  color: var(--pf-text-muted);
  text-align: center;
}
.site-foot p { margin: 4px auto; max-width: 70ch; }
.site-foot .small { font-size: 13px; }

/* Privacy page */
.doc { width: 100%; max-width: 720px; margin: 0 auto; padding: 8px 16px 56px; flex: 1; }
.doc h1 { font-size: clamp(28px, 5vw, 40px); max-width: none; }
.doc h2 { font-size: 20px; font-weight: 800; margin-top: 32px; }
.doc p, .doc li { color: var(--pf-text); }
.doc .meta { color: var(--pf-text-muted); font: 400 14px var(--pf-font-mono); }

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

/* Screenshot tour */
.tour { max-width: 1200px; margin: 0 auto; padding: 8px 16px 64px; }
.tour h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; }
.tour-note { margin: 8px 0 0; color: var(--pf-text-muted); font-size: 15px; }
.tour-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; margin-top: 24px; }
.tour-item { margin: 0; min-width: 0; }
.tour-item img, .tour-item .clip { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; border-radius: 10px; border: 1px solid var(--pf-border); background: var(--pf-surface); }
.tour-item figcaption { margin-top: 10px; font-size: 15px; color: var(--pf-text-muted); }
.tour-item figcaption b { display: block; color: var(--pf-text); font-weight: 600; font-size: 16px; }
.tour-cta { margin: 32px 0 0; }
.tour-cta .btn { display: inline-flex; align-items: center; justify-content: center; width: auto; padding-inline: 28px; text-decoration: none; }
@media (min-width: 900px) {
  .tour { padding: 16px 32px 80px; }
  .tour-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; row-gap: 40px; }
  .tour-item.wide { grid-column: 1 / -1; }
}
.tour-item .zoom { display: block; border-radius: 10px; }
.tour-item .zoom:focus-visible { outline: 2px solid var(--pf-accent); outline-offset: 3px; }

/* Sign-up done: replaces the offer box contents so the confirm step can't be missed */
.offer.is-done { border: 2px solid var(--pf-accent); padding: 28px 24px; }
.signup-done { display: grid; gap: 14px; }
.signup-done p { margin: 0; }
.done-step { font: 500 13px/1.3 var(--pf-font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--pf-accent-text); }
.offer .done-title { font-family: var(--pf-font-display); font-stretch: 118%; font-weight: 900; font-size: 32px; line-height: 1.08; text-wrap: balance; }
.done-title:focus { outline: none; }
.done-lead { font-size: 18px; line-height: 1.5; color: var(--pf-text); }
.done-email { display: block; margin: 2px 0; overflow-wrap: anywhere; }
.done-warn { padding: 12px 14px; border-radius: 8px; background: var(--pf-accent-soft); color: var(--pf-text); font-weight: 600; font-size: 16px; }
.done-help { color: var(--pf-text-muted); font-size: 15px; }
.done-reset { justify-self: start; padding: 0; border: 0; background: none; color: var(--pf-accent-text); font: 500 15px var(--pf-font-body); text-decoration: underline; cursor: pointer; }
.done-reset:focus-visible { outline: 2px solid var(--pf-focus); outline-offset: 3px; }

/* Confirmed (back from Kit's Confirm link, ?confirmed=1): green success panel */
.offer.is-confirmed { --pf-ok: #3DDC84; --pf-ok-bg: #0E3321; background: var(--pf-ok-bg); border: 2px solid var(--pf-ok); padding: 28px 24px; }
.signup-confirmed { display: grid; gap: 14px; }
.signup-confirmed p { margin: 0; }
.is-confirmed .done-step { color: var(--pf-ok); }

/* ---------- Phase 1b: full prelaunch page ---------- */

/* Header nav + CTA */
.site-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-nav { display: none; gap: 24px; margin-left: auto; }
.site-nav a { color: var(--pf-text); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--pf-accent-text); }
.btn-sm { min-height: 40px; font-size: 15px; padding: 0 16px; width: auto; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.head-cta { margin-left: auto; }
@media (min-width: 900px) { .site-nav { display: flex; } .head-cta { margin-left: 0; } }

/* Countdown */
.countdown { margin: 0 0 14px; font-size: 15px; color: var(--pf-text-muted); }
.countdown .cd-time { color: var(--pf-text); font-weight: 500; font-size: 17px; }

/* Shared section bands */
.band { padding: 56px 16px; border-top: 1px solid var(--pf-border); }
.wrap { max-width: 1136px; margin: 0 auto; }
.wrap.narrow > * { max-width: 760px; }
.band h2 { font-size: clamp(26px, 3.2vw, 36px); font-weight: 900; line-height: 1.1; }
.band p, .band li { font-size: 17px; }
.section-note { margin: 8px 0 0; color: var(--pf-text-muted); font-size: 15px !important; }
.muted { color: var(--pf-text-muted); }
@media (min-width: 900px) { .band { padding: 80px 32px; } }

/* Story */
.story { background: var(--pf-surface); }
.story p { margin: 16px 0 0; max-width: 62ch; }
.story .story-end { font-weight: 600; }

/* How it works */
.steps { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 20px; }
.steps li { position: relative; padding-left: 52px; color: var(--pf-text-muted); }
.steps li b { display: block; color: var(--pf-text); font-weight: 600; }
.step-n { position: absolute; left: 0; top: 0; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--pf-accent); color: var(--pf-text); font-weight: 500; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.diagram { margin: 32px 0 0; }
.diagram svg { width: 100%; max-width: 720px; height: auto; display: block; }
.d-box rect { fill: var(--pf-surface); stroke: var(--pf-border-strong); stroke-width: 1.5; }
.d-key rect { stroke: var(--pf-accent); stroke-width: 2; }
.d-title { fill: var(--pf-text); font: 600 17px var(--pf-font-body); text-anchor: middle; }
.d-sub { fill: var(--pf-text-muted); font: 400 13px var(--pf-font-body); text-anchor: middle; }
.d-tag { fill: var(--pf-text-muted); font: 500 12px var(--pf-font-mono); text-anchor: middle; }
.d-line { stroke: var(--pf-border-strong); stroke-width: 2; }
.d-arrowhead { fill: var(--pf-border-strong); }

/* Works today cards */
.cards { display: grid; gap: 24px; margin-top: 24px; }
@media (min-width: 900px) { .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; } }
.card { background: var(--pf-surface); border: 1px solid var(--pf-border); border-radius: 12px; padding: 16px 16px 20px; }
.card img { width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; object-position: top left; border-radius: 8px; border: 1px solid var(--pf-border); }
.card h3 { margin: 16px 0 6px; font: 600 19px/1.3 var(--pf-font-body); }
.card p { margin: 0; color: var(--pf-text-muted); font-size: 16px; }
.card-text { display: flex; flex-direction: column; }
.card-icon { aspect-ratio: 16 / 10; border-radius: 8px; background: var(--pf-surface-2); display: grid; place-items: center; }
.card-icon svg { width: 72px; height: 72px; }
.ic-line { fill: none; stroke: var(--pf-accent); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }

/* What's coming */
.coming-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .coming-list { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; } }
.coming-list li { color: var(--pf-text-muted); padding: 16px; border: 1px dashed var(--pf-border-strong); border-radius: 10px; }
.coming-list li b { color: var(--pf-text); font-weight: 600; }
.tag { display: inline-block; margin: 0 0 8px; padding: 2px 8px; border-radius: 4px; font: 500 12px/1.6 var(--pf-font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--pf-text); background: var(--pf-surface-2); border: 1px solid var(--pf-border-strong); }
.coming-list .tag { display: table; }

/* Is it right */
.fit-list { margin: 20px 0 0; padding-left: 20px; display: grid; gap: 12px; }
.fit p.muted { margin-top: 16px; }

/* FAQ */
.faq details { border-bottom: 1px solid var(--pf-border); }
.faq h2 { margin-bottom: 12px; }
.faq summary { cursor: pointer; padding: 16px 32px 16px 0; font-weight: 600; font-size: 17px; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 12px; font: 500 22px var(--pf-font-mono); color: var(--pf-accent-text); }
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 16px; color: var(--pf-text-muted); max-width: 64ch; }

/* Sign-up repeat */
.signup-repeat .offer { max-width: 480px; }
.offer.offer-repeat { position: static; margin-top: 0; }
.band .offer h2 { font-size: 24px; font-weight: 800; line-height: 1.15; }
.band .offer > p { font-size: 16px; }
.band .offer .fine { font-size: 13px; }
.band .offer .form-msg { font-size: 15px; }
@media (max-width: 599px) { .diagram { display: none; } }

/* Reward tiers: shown only to people coming back from the Confirm link (?confirmed=1) */
.rewards[hidden] { display: none; }
.rewards { background: var(--pf-surface); border-top: 2px solid var(--pf-ok, #3DDC84); scroll-margin-top: 12px; }
.rewards h2:focus { outline: none; }
.rewards-note { max-width: 70ch; }
.tiers { display: grid; gap: 16px; margin-top: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .tiers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .tiers { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.tier { background: var(--pf-bg); border: 1px solid var(--pf-border); border-radius: 12px; padding: 20px 18px; display: flex; flex-direction: column; }
.tier-featured { border: 2px solid var(--pf-accent); }
.tier h3 { margin: 0; font: 900 22px/1.15 var(--pf-font-display); font-stretch: 118%; }
.tier-cap { display: inline-block; vertical-align: middle; margin-left: 4px; padding: 1px 6px; border-radius: 4px; font: 500 11px/1.6 var(--pf-font-mono); letter-spacing: .06em; text-transform: uppercase; border: 1px solid var(--pf-border-strong); color: var(--pf-text-muted); font-stretch: 100%; }
.tier-gets { margin: 8px 0 16px !important; font-size: 15px !important; color: var(--pf-text-muted); flex: 1; }
.tier-prices { margin: 0; display: grid; gap: 6px; }
.tr-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-top: 6px; border-top: 1px solid var(--pf-border); }
.tr-row dt { font-size: 14px; color: var(--pf-text-muted); }
.tr-row dd { margin: 0; font-size: 17px; color: var(--pf-text); text-align: right; white-space: nowrap; }
.tr-row dd small { display: block; font-size: 11px; color: var(--pf-text-muted); }
.tr-row dd s { color: var(--pf-text-muted); }
.tr-best dt { color: var(--pf-accent-text); font-weight: 600; }
.tr-best dd { font-size: 24px; font-weight: 500; }
.why-ks { margin-top: 36px; max-width: 760px; }
.why-ks h3 { margin: 0 0 12px; font: 900 24px/1.15 var(--pf-font-display); font-stretch: 118%; }
.why-ks ul { margin: 0; padding-left: 20px; display: grid; gap: 10px; }
.why-ks li { color: var(--pf-text-muted); }
.why-ks li b { color: var(--pf-text); }
.why-cta { margin: 24px 0 0 !important; }
.btn-ghost { display: inline-flex; align-items: center; justify-content: center; width: auto; padding: 0 22px; text-decoration: none; background: transparent; color: var(--pf-text); border: 1px solid var(--pf-border-strong); }
.btn-ghost:hover { background: var(--pf-surface-2); }
.signup-confirmed .btn { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.tour-item .clip { aspect-ratio: 16 / 9; }
