/* ========================================================
   Zest landing pages — shared styles
   Match the look of the Meta ad creative: cream surface,
   small eyebrow, big Fraunces headline, 42→86 dial moment,
   then a short form.
   Mobile-first. Light DOM only. No build step.
   ======================================================== */

:root {
  --blood: #E24E1B;
  --blood-deep: #B83A10;
  --tangerine: #F27A1A;
  --lemon: #F2B705;
  --lime: #9AC760;
  --leaf: #5A9A3D;
  --cream: #FBF4E4;
  --paper: #FFFBF0;
  --rind: #2A1A0E;
  --rind-2: #5B4533;
  --rind-3: #8B7355;
  --rule: #E8DEC7;
  --rule-2: #D6C8A8;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }

body {
  font-family: Archivo, "Inter", system-ui, -apple-system, sans-serif;
  background: var(--cream);
  color: var(--rind);
  -webkit-font-smoothing: antialiased;
  font-size: 16px; line-height: 1.55;
  min-height: 100vh; min-height: 100svh;
  text-wrap: pretty;
}

img, svg { display: block; max-width: 100%; }
a { color: var(--blood-deep); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--blood); }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--blood); color: var(--paper); }

/* ============================================================
   Page shell
   - Mobile: single column, linear stack.
   - ≥820px: two-column — content left, form-card right.
   - ≥1100px: more generous gutters.
   ============================================================ */
.page {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center;
  padding: 28px 20px 32px;
}
.page .col {
  width: 100%;
  max-width: 560px;
  display: flex; flex-direction: column;
}

@media (min-width: 820px) {
  .page { padding: 56px 40px 40px; justify-content: flex-start; }
  .page .col {
    max-width: 1100px;
    display: grid;
    grid-template-columns: 1.15fr 1fr;
    grid-template-areas:
      "top      form"
      "title    form"
      "lede     form"
      "features features";
    column-gap: 56px;
    row-gap: 0;
    align-items: start;
  }
  .page .col > .top         { grid-area: top;      margin-bottom: 16px; }
  .page .col > h1.title     { grid-area: title;    margin-bottom: 24px; }
  .page .col > .lede        { grid-area: lede;     margin-bottom: 0; }
  .page .col > .form-card   { grid-area: form;     align-self: start; }
  .page .col > .features    { grid-area: features; }
}

@media (min-width: 1100px) {
  .page .col { column-gap: 80px; grid-template-columns: 1.25fr 1fr; }
}

/* ============================================================
   Top: zest mark + small endorsement eyebrow
   ============================================================ */
.top {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 28px;
}
.mark {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--rind);
  flex-shrink: 0;
}
.mark img { width: 30px; height: 30px; }
.mark span {
  font-family: Fraunces, serif; font-weight: 800; font-style: italic;
  font-size: 26px; letter-spacing: -0.03em; line-height: 1;
  color: var(--blood);
}
.endorsement {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rind-2); line-height: 1.4;
}
@media (max-width: 420px) {
  .endorsement { font-size: 9.5px; letter-spacing: 0.1em; }
}

/* ============================================================
   Form card — invisible on mobile (just spacing), framed on desktop
   ============================================================ */
.form-card { width: 100%; }
@media (min-width: 820px) {
  .form-card {
    background: var(--paper);
    border: 1px solid var(--rule);
    border-radius: 16px;
    padding: 32px 32px 28px;
    box-shadow: 0 1px 2px rgba(42,26,14,.04), 0 12px 36px rgba(42,26,14,.06);
    position: sticky; top: 32px;
  }
  .form-card .form-card-head {
    font-family: "JetBrains Mono", monospace;
    font-size: 10.5px; letter-spacing: 0.16em; text-transform: uppercase;
    color: var(--blood-deep);
    margin: 0 0 6px;
  }
  .form-card .form-card-title {
    font-family: Fraunces, serif; font-weight: 800; font-style: italic;
    font-size: 26px; letter-spacing: -0.02em; line-height: 1.05;
    margin: 0 0 18px; color: var(--rind);
  }
  .form-card input[type="email"],
  .form-card textarea {
    background: var(--cream);
  }
}
.form-card-head, .form-card-title { display: none; }
@media (min-width: 820px) {
  .form-card-head, .form-card-title { display: block; }
}

/* ============================================================
   Headline
   ============================================================ */
h1.title {
  font-family: Fraunces, serif; font-weight: 800;
  font-size: clamp(44px, 11vw, 72px);
  line-height: 1.02; letter-spacing: -0.035em;
  margin: 0 0 32px; color: var(--rind);
}
@media (min-width: 820px) {
  h1.title {
    font-size: clamp(56px, 6.4vw, 84px);
    line-height: 0.98;
    letter-spacing: -0.04em;
  }
}
h1.title em {
  font-style: italic; color: var(--blood);
  font-weight: 800;
}
h1.title .br { display: block; }

/* ============================================================
   Three-feature panel row (Simple Scores / Swaps / Progress)
   - Mobile: stacked
   - ≥560px: 3 columns
   - ≥820px: full-width row below the hero (see grid below)
   ============================================================ */
.features {
  margin-top: 36px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
}
@media (min-width: 560px) {
  .features { grid-template-columns: repeat(3, 1fr); gap: 14px; }
}
@media (min-width: 820px) {
  .features { margin-top: 48px; gap: 18px; }
}
.feat {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 16px;
  padding: 0 0 22px;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.feat-visual {
  background: var(--paper);
  border-radius: 0;
  display: block;
  margin: 0 0 18px;
  overflow: hidden;
  padding: 0;
  border: none;
}
.feat-visual img {
  display: block;
  width: 100%;
  height: auto;
}

/* Desktop (≥820px): shrink feature images so the low-res 1× mocks
   don't render edge-to-edge and reveal pixelation. */
@media (min-width: 820px) {
  .feat-visual { padding: 28px 22%; }
}

/* Mobile (<560px): horizontal cards — image on left, text on right.
   Cuts vertical sprawl when stacked under the form.                 */
@media (max-width: 559px) {
  .feat {
    flex-direction: row;
    align-items: stretch;
    padding: 0;
  }
  .feat-visual {
    flex: 0 0 130px;
    width: 130px;
    margin: 0;
    border-bottom: none;
    border-right: 1px solid var(--rule);
    display: flex; align-items: center; justify-content: center;
  }
  .feat-visual img {
    width: 100%; height: 100%;
    object-fit: contain;
  }
  .feat-body {
    padding: 18px 18px 18px 20px;
    display: flex; flex-direction: column; justify-content: center;
    flex: 1;
  }
}

.feat-name {
  font-family: Fraunces, serif;
  font-weight: 800; font-style: italic;
  font-size: 22px; letter-spacing: -0.02em; line-height: 1.05;
  color: var(--rind);
  margin: 0 22px 8px;
}
.feat-desc {
  font-family: Archivo, sans-serif;
  font-size: 14.5px; line-height: 1.5;
  color: var(--rind-2);
  margin: 0 22px;
}
@media (max-width: 559px) {
  .feat-name { margin: 0 0 6px; font-size: 19px; }
  .feat-desc { margin: 0; font-size: 13.5px; line-height: 1.45; }
}

/* ============================================================
   Score moment — legacy 42 → 86 (no longer used in hero, kept
   for fallback so existing markup wouldn't break if reused)
   ============================================================ */
.score-row {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
}
.score-row .dial {
  position: relative;
  width: 84px; height: 84px;
}
.score-row .dial svg { width: 100%; height: 100%; }
.score-row .dial .n {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: Fraunces, serif; font-weight: 800;
  font-size: 28px; letter-spacing: -0.02em; color: var(--rind);
  line-height: 1;
}
.score-row .arrow {
  color: var(--blood);
  font-size: 26px; line-height: 1;
  font-family: Archivo, sans-serif;
  font-weight: 500;
}
.score-row .caption { padding-left: 6px; }
.score-row .caption .lbl {
  font-family: "JetBrains Mono", monospace;
  font-size: 10px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--rind-3); margin-bottom: 4px;
}
.score-row .caption .sub {
  font-family: Archivo, sans-serif;
  font-weight: 700; font-size: 14.5px; line-height: 1.3;
  color: var(--rind);
}

@media (max-width: 420px) {
  .score-row {
    grid-template-columns: auto auto auto;
    grid-template-rows: auto auto;
    gap: 10px 12px;
  }
  .score-row .caption { grid-column: 1 / -1; padding-left: 0; margin-top: 2px; }
  .score-row .dial { width: 76px; height: 76px; }
  .score-row .dial .n { font-size: 26px; }
}

/* ============================================================
   Lede — the supporting body paragraph (large, visible)
   ============================================================ */
.lede {
  font-size: clamp(20px, 4.4vw, 24px);
  line-height: 1.4;
  color: var(--rind-2);
  margin: 0 0 32px;
  max-width: none;
  font-weight: 400;
  letter-spacing: -0.005em;
}
.lede strong {
  color: var(--rind);
  font-weight: 600;
}
@media (min-width: 820px) {
  .lede {
    font-size: clamp(22px, 2.4vw, 28px);
    max-width: 26ch;
    line-height: 1.35;
    margin-bottom: 0;
  }
}

/* ============================================================
   Form
   ============================================================ */
form.capture {
  display: flex; flex-direction: column; gap: 14px;
}
form.capture .field { display: flex; flex-direction: column; gap: 6px; }
form.capture label {
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--rind-3);
}
form.capture label .opt {
  margin-left: 4px;
  text-transform: none; letter-spacing: 0.04em;
  color: var(--rind-3);
}
form.capture input[type="email"],
form.capture textarea {
  width: 100%; appearance: none;
  background: var(--paper);
  border: 1px solid var(--rule-2);
  border-radius: 10px;
  padding: 14px 16px;
  font-family: Archivo, sans-serif; font-size: 16px;
  color: var(--rind);
  transition: border-color 0.15s, box-shadow 0.15s;
}
form.capture input[type="email"]::placeholder,
form.capture textarea::placeholder { color: var(--rind-3); }
form.capture input[type="email"]:focus,
form.capture textarea:focus {
  outline: none;
  border-color: var(--blood);
  box-shadow: 0 0 0 3px rgba(226, 78, 27, 0.14);
}
form.capture textarea {
  resize: vertical; min-height: 80px;
  font-family: Archivo, sans-serif; line-height: 1.5;
}

form.capture button {
  appearance: none; border: none;
  background: var(--blood); color: var(--paper);
  font-family: Archivo, sans-serif; font-weight: 700; font-size: 16px;
  letter-spacing: 0.01em;
  padding: 15px 22px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  transition: background 0.15s, transform 0.05s;
  margin-top: 4px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 14px;
}
form.capture button:hover { background: var(--tangerine); }
form.capture button:active { transform: translateY(1px); }
form.capture button[disabled] { opacity: 0.6; cursor: not-allowed; }
form.capture button .arrow { display: inline-block; transition: transform 0.15s; }
form.capture button:hover .arrow { transform: translateX(3px); }

form.capture .err {
  font-family: "JetBrains Mono", monospace; font-size: 11px;
  letter-spacing: 0.04em; color: var(--blood-deep);
  background: rgba(226, 78, 27, 0.06); border: 1px solid rgba(226, 78, 27, 0.22);
  border-radius: 8px; padding: 10px 12px; margin: 0;
  display: none;
}
form.capture .err.visible { display: block; }

form.capture .micro {
  font-family: "JetBrains Mono", monospace; font-size: 10.5px;
  letter-spacing: 0.1em; color: var(--rind-3); text-transform: uppercase;
  margin-top: 4px; text-align: center;
}

/* Thank-you replaces the form */
.thanks { display: none; }
.thanks.visible { display: block; }
.thanks h2 {
  font-family: Fraunces, serif; font-weight: 800; font-style: italic;
  font-size: 36px; letter-spacing: -0.03em; line-height: 1.05;
  margin: 0 0 10px; color: var(--rind);
}
.thanks p {
  margin: 0; color: var(--rind-2); font-size: 16px; line-height: 1.55;
}
.thanks .ok {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blood); color: var(--paper);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px;
}

/* ============================================================
   Footer
   ============================================================ */
.foot {
  width: 100%; max-width: 560px;
  margin-top: 36px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
  font-family: "JetBrains Mono", monospace;
  font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rind-3);
}
.foot .links { display: flex; gap: 16px; }
.foot .links a {
  color: var(--rind-2); text-decoration: none;
}
.foot .links a:hover { color: var(--blood-deep); }

/* ============================================================
   Cookie banner
   ============================================================ */
.cookies {
  position: fixed; bottom: 12px; left: 12px; right: 12px;
  background: var(--rind); color: var(--paper);
  border-radius: 12px;
  padding: 14px 16px;
  box-shadow: 0 18px 48px rgba(42, 26, 14, 0.28);
  z-index: 50;
  display: none;
  flex-direction: column; gap: 10px;
  font-size: 13.5px; line-height: 1.5;
}
.cookies.visible { display: flex; }
@media (min-width: 720px) {
  .cookies {
    left: auto; right: 16px; bottom: 16px; max-width: 380px;
    padding: 16px 18px;
  }
}
.cookies p {
  margin: 0;
  color: rgba(251, 244, 228, 0.82);
}
.cookies p a {
  color: var(--paper);
  border-bottom: 1px solid rgba(251, 244, 228, 0.4);
  text-decoration: none;
}
.cookies .ck-actions { display: flex; gap: 8px; margin-top: 2px; }
.cookies .ck-actions button {
  flex: 1; appearance: none;
  background: transparent; color: var(--paper);
  border: 1px solid rgba(251, 244, 228, 0.22);
  padding: 10px 12px; border-radius: 8px;
  font-family: Archivo, sans-serif; font-weight: 600; font-size: 13.5px;
}
.cookies .ck-actions button.primary {
  background: var(--blood); border-color: var(--blood);
}
.cookies .ck-actions button:hover {
  background: rgba(251, 244, 228, 0.06);
}
.cookies .ck-actions button.primary:hover {
  background: var(--tangerine); border-color: var(--tangerine);
}

/* ============================================================
   Document pages (privacy/cookies) — reuse .page/.col chrome
   ============================================================ */
body.doc-page .page { padding: 28px 20px 64px; }
body.doc-page .col { max-width: 720px; display: block; }
@media (min-width: 820px) {
  body.doc-page .col { display: block; max-width: 720px; }
  body.doc-page .page { padding: 56px 40px 80px; }
}
.doc {
  padding: 0;
  margin-top: 8px;
}
.doc .doc-meta {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--rind-3);
  margin: -8px 0 24px;
}
.doc h1 {
  font-family: Fraunces, serif; font-weight: 800; font-style: italic;
  font-size: clamp(40px, 7vw, 56px); letter-spacing: -0.03em;
  line-height: 1; margin: 16px 0 18px; color: var(--rind);
}
.doc h2 {
  font-family: Fraunces, serif; font-weight: 800;
  font-size: 22px; letter-spacing: -0.02em;
  margin: 32px 0 8px; color: var(--rind);
}
.doc h3 {
  font-family: Archivo, sans-serif; font-weight: 700;
  font-size: 16px; letter-spacing: -0.005em;
  margin: 22px 0 6px; color: var(--rind);
}
.doc p, .doc li {
  font-size: 16px; line-height: 1.6; color: var(--rind-2);
}
.doc ol { padding-left: 22px; }
.doc ol li { margin-bottom: 8px; }
.doc p strong, .doc li strong { color: var(--rind); font-weight: 600; }
.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 6px; }
.doc code {
  font-family: "JetBrains Mono", monospace;
  font-size: 13.5px;
  background: var(--paper); border: 1px solid var(--rule);
  padding: 1px 6px; border-radius: 4px;
  color: var(--rind);
}
.doc a { color: var(--blood-deep); text-decoration: underline; text-underline-offset: 2px; }
.doc a:hover { color: var(--blood); }

/* Tables */
.doc .table-wrap {
  margin: 16px 0 20px;
  border: 1px solid var(--rule);
  border-radius: 10px;
  overflow-x: auto;
  background: var(--paper);
}
.doc table {
  width: 100%; border-collapse: collapse;
  font-size: 14.5px;
  min-width: 480px;
}
.doc table th, .doc table td {
  text-align: left;
  padding: 12px 16px;
  vertical-align: top;
  line-height: 1.5;
  color: var(--rind-2);
}
.doc table th {
  font-family: "JetBrains Mono", monospace;
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  font-weight: 600;
  color: var(--rind);
  background: var(--cream);
  border-bottom: 1px solid var(--rule);
}
.doc table tbody tr + tr td { border-top: 1px solid var(--rule); }
.doc table td:first-child { color: var(--rind); font-weight: 500; }

/* Coming-soon */
.cs {
  min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 40px 24px; text-align: center;
}
.cs .slice { width: 80px; height: 80px; margin-bottom: 22px; }
.cs .wm {
  font-family: Fraunces, serif; font-weight: 800; font-style: italic;
  font-size: clamp(72px, 16vw, 140px); letter-spacing: -0.04em;
  line-height: 1; color: var(--rind); margin: 0;
}
.cs .wm em { color: var(--blood); font-style: italic; }
.cs .tag {
  font-family: "JetBrains Mono", monospace; font-size: 12px;
  letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--rind-3); margin-top: 18px;
}
.cs .tag .pulse {
  display: inline-block; width: 7px; height: 7px; border-radius: 50%;
  background: var(--blood); margin-right: 10px; vertical-align: middle;
  animation: pulse 1.8s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; transform: scale(0.9); }
  50% { opacity: 1; transform: scale(1.15); }
}
