/* June — landing page styles.
   Built on colors_and_type.css tokens. Editorial neo-brutalism,
   warmed up by food. Three layout directions share these styles;
   [data-variant] on .page-shell switches the arrangement. */

* { box-sizing: border-box; }
html { background: var(--paper-200); }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink-900);
  background:
    linear-gradient(90deg, rgba(255,255,255,.16) 0 1px, transparent 1px 100%) 0 0 / 8.33vw 100%,
    radial-gradient(circle at 82% 8%, rgba(214,197,164,.30), transparent 30rem),
    radial-gradient(circle at 6% 96%, rgba(188,221,200,.26), transparent 26rem),
    var(--page-bg);
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }

/* Accent is driven by a Tweak; defaults to sauce. */
:root { --accent: var(--sauce); --accent-strong: var(--sauce-700); --page-bg: #FBF8EF; }

.page-shell {
  width: min(1180px, calc(100% - 56px));
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: clamp(16px, 2.4vh, 26px) 0 clamp(14px, 2vh, 22px);
  gap: clamp(10px, 1.6vh, 20px);
}

/* ---------- Header ---------- */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--sp-4);
  border-bottom: var(--bw) solid var(--ink-900);
  padding-bottom: var(--sp-3);
}
.brand { display: inline-flex; align-items: center; text-decoration: none; color: var(--ink-900); }
.brand span { font-size: clamp(24px, 2.6vw, 32px); font-weight: var(--fw-black); letter-spacing: -.05em; line-height: 1; }
.header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}
.header-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 34px; padding: 0 13px;
  border: var(--bw) solid var(--ink-900);
  background: var(--paper-100); color: var(--ink-900);
  box-shadow: var(--shadow-sm);
  text-decoration: none; text-transform: uppercase;
  font-size: 12px; font-weight: var(--fw-black); letter-spacing: .08em;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.header-link:hover { transform: translate(-1px,-1px); box-shadow: var(--shadow-md); }
.header-link:active { transform: translate(1px,1px); box-shadow: var(--shadow-sm); }
.header-note {
  margin: 0; color: var(--ink-500); font-size: 13px; font-weight: var(--fw-black);
  text-transform: uppercase; letter-spacing: .1em;
}

/* ---------- Shared type ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  margin: 0 0 var(--sp-4);
  font-size: 12px; font-weight: var(--fw-black);
  text-transform: uppercase; letter-spacing: .14em; color: var(--ink-900);
}
.eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--ink-900); }
.eyebrow.center { justify-content: center; }

.headline {
  margin: 0;
  font-size: clamp(46px, 7.2vw, 104px);
  line-height: .84; font-weight: var(--fw-black); letter-spacing: -.02em;
  text-wrap: balance;
}
.headline em { font-style: normal; color: var(--accent-strong); white-space: nowrap; }

.lede {
  margin: var(--sp-5) 0 0;
  font-size: clamp(18px, 1.8vw, 23px); line-height: 1.18; font-weight: var(--fw-heavy);
  color: var(--ink-700); max-width: 38ch;
}

/* ---------- Pillars (inline benefit chips) ---------- */
.pillars {
  display: flex; flex-wrap: wrap; gap: 8px 7px; margin: var(--sp-4) 0 0; padding: 0; list-style: none;
}
.pillars li {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: var(--fw-black);
  text-transform: uppercase; letter-spacing: .04em;
  border: var(--bw) solid var(--ink-900); padding: 6px 11px; background: var(--paper-100);
}
.pillars li b { font-weight: var(--fw-black); }
.pillars li span { font-weight: var(--fw-bold); text-transform: none; letter-spacing: 0; color: var(--ink-500); }
.pillars li::before {
  content: ""; width: 8px; height: 8px; background: var(--accent); flex: none;
}

/* row variant — centered, larger, with descriptors stacked */
.pillars.row { justify-content: center; gap: 0; border: var(--bw) solid var(--ink-900); }
.pillars.row li {
  flex: 1 1 0; min-width: 120px; border: none; border-right: var(--bw) solid var(--ink-900);
  flex-direction: column; align-items: flex-start; gap: 4px; padding: var(--sp-4); background: transparent;
}
.pillars.row li:last-child { border-right: none; }
.pillars.row li::before { width: 10px; height: 10px; }
.pillars.row li span { font-size: 12px; }

/* ---------- Waitlist form ---------- */
.waitlist-form { width: 100%; max-width: 520px; display: grid; gap: var(--sp-3); margin-top: var(--sp-5); }
.form-row { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.field { display: grid; gap: 6px; min-width: 0; }
.field > span {
  font-size: 11px; font-weight: var(--fw-black); text-transform: uppercase;
  letter-spacing: .08em; color: var(--ink-500);
}
.field input, .field textarea {
  width: 100%; min-width: 0;
  border: var(--bw) solid var(--ink-900); border-radius: 0;
  background: rgba(255,252,244,.86); color: var(--ink-900);
  font-size: 16px; font-weight: 700; outline: none;
  transition: box-shadow var(--dur) var(--ease);
}
.field input { height: 50px; padding: 0 13px; }
.field textarea { min-height: 56px; resize: vertical; padding: 11px 13px; line-height: 1.3; }
.field input:focus, .field textarea:focus { box-shadow: var(--shadow-citrus); }
::placeholder { color: var(--ink-400); font-weight: 700; }

.submit-button {
  width: 100%; min-height: 54px;
  border: var(--bw) solid var(--ink-900); border-radius: 0;
  background: var(--leaf); color: var(--on-brand);
  cursor: pointer; font-size: 17px; font-weight: var(--fw-black);
  box-shadow: var(--shadow-md);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur) var(--ease);
}
.submit-button:hover { background: var(--leaf-700); transform: translate(-1px,-1px); box-shadow: var(--shadow-lg); }
.submit-button:active { transform: translate(1px,1px); box-shadow: var(--shadow-sm); }
.submit-button:disabled { cursor: progress; opacity: .6; transform: none; box-shadow: var(--shadow-sm); }
.form-foot {
  display: flex; align-items: center; gap: 8px; margin: 2px 0 0;
  font-size: 12px; font-weight: var(--fw-bold); color: var(--ink-500); min-height: 16px;
}
.form-foot[data-tone="error"] { color: var(--tomato); font-weight: var(--fw-black); }
.form-foot .dot { width: 7px; height: 7px; border-radius: var(--radius-pill); background: var(--accent); flex: none; }

/* inline single-row form (poster variant) */
.waitlist-form.inline { max-width: 560px; }
.waitlist-form.inline .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
.waitlist-form.inline .row .submit-button { width: auto; padding: 0 var(--sp-6); white-space: nowrap; }

/* ---------- Success card ---------- */
.success-card {
  width: 100%; max-width: 520px; margin-top: var(--sp-5);
  border: var(--bw) solid var(--ink-900); background: var(--paper-100);
  box-shadow: var(--shadow-md); padding: var(--sp-6);
}
.success-card .tick {
  display: grid; place-items: center; width: 42px; height: 42px;
  border: var(--bw) solid var(--ink-900); background: var(--leaf); color: var(--on-brand);
  font-size: 23px; font-weight: var(--fw-black); margin-bottom: var(--sp-4);
}
.success-card h3 { margin: 0 0 8px; font-size: clamp(26px,3vw,34px); font-weight: var(--fw-black); line-height: .96; }
.success-card p { margin: 0 0 var(--sp-4); font-size: 16px; font-weight: 700; color: var(--ink-700); line-height: 1.35; }
.success-card .reset {
  border: var(--bw) solid var(--ink-900); background: var(--paper-100); cursor: pointer;
  padding: 10px 15px; font-size: 13px; font-weight: var(--fw-black);
  box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.success-card .reset:hover { transform: translate(-1px,-1px); box-shadow: var(--shadow-md); }

/* ---------- Food imagery ---------- */
.food-panel { position: relative; display: grid; place-items: center; isolation: isolate; min-width: 0; }
.food-img { width: 100%; height: auto; filter: drop-shadow(var(--shadow-float)); }
.food-label {
  position: absolute; max-width: 168px; font-size: clamp(13px, 1.2vw, 17px);
  font-weight: var(--fw-black); line-height: .96; z-index: 2; letter-spacing: -.01em;
}
.food-label span {
  background: color-mix(in srgb, var(--paper-200) 90%, transparent);
  box-decoration-break: clone; -webkit-box-decoration-break: clone; padding: 1px 2px;
}
.food-label .sub { display: block; font-size: 11px; font-weight: var(--fw-bold); color: var(--ink-500); text-transform: uppercase; letter-spacing: .08em; }

/* ---------- Comparison ---------- */
.compare { border: var(--bw) solid var(--ink-900); background: var(--paper-100); }
.compare-row {
  display: grid; grid-template-columns: minmax(120px,1fr) 2fr;
  border-bottom: var(--bw) solid var(--ink-900);
}
.compare-row:last-child { border-bottom: none; }
.compare-row .who { padding: 11px 13px; font-weight: var(--fw-black); font-size: 14px; border-right: var(--bw) solid var(--ink-900); display: flex; align-items: center; }
.compare-row .what { padding: 11px 13px; font-weight: var(--fw-bold); font-size: 14px; color: var(--ink-700); display: flex; align-items: center; }
.compare-row.june { background: var(--accent); }
.compare-row.june .who, .compare-row.june .what { color: var(--on-brand); border-color: rgba(255,250,240,.3); }
.compare-row.june .who { font-weight: var(--fw-black); }

/* compact horizontal comparison strip */
.compare-strip { display: grid; grid-template-columns: repeat(4, 1fr); border: var(--bw) solid var(--ink-900); }
.compare-strip .col { padding: var(--sp-3) var(--sp-4); border-right: var(--bw) solid var(--ink-900); }
.compare-strip .col:last-child { border-right: none; }
.compare-strip .col.june { background: var(--accent); }
.compare-strip .col .who { font-size: 11px; font-weight: var(--fw-black); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-500); margin: 0 0 5px; }
.compare-strip .col.june .who { color: rgba(255,250,240,.75); }
.compare-strip .col .what { font-size: 13.5px; font-weight: var(--fw-bold); color: var(--ink-700); margin: 0; line-height: 1.18; }
.compare-strip .col.june .what { color: var(--on-brand); font-weight: var(--fw-black); }

/* ---------- How it works ---------- */
.howto { display: flex; align-items: center; gap: var(--sp-5); }
.howto .step { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: var(--fw-black); }
.howto .num {
  display: inline-grid; place-items: center; width: 27px; height: 27px; flex: none;
  border: var(--bw) solid var(--ink-900); background: var(--ink-900); color: var(--paper-100);
  font-size: 14px;
}
.howto .arrow { color: var(--ink-400); font-weight: var(--fw-black); }

/* ---------- Bottom rail (editorial) ---------- */
.bottom-rail {
  display: grid; grid-template-columns: auto 1fr; align-items: center; gap: var(--sp-8);
  border-top: var(--bw) solid var(--ink-900); padding-top: var(--sp-4);
}

/* ================= VARIANT: EDITORIAL ================= */
.page-shell[data-variant="editorial"] .hero {
  display: grid; grid-template-columns: minmax(0,1fr) minmax(380px,1.04fr);
  align-items: center; gap: clamp(20px, 3.4vw, 52px); flex: 1; min-height: 0;
}
.page-shell[data-variant="editorial"] .food-img { width: min(118%, 720px); }
.page-shell[data-variant="editorial"] .food-panel { min-height: min(46vw, 480px); }

/* ================= VARIANT: POSTER ================= */
.page-shell[data-variant="poster"] { text-align: center; align-items: center; }
.page-shell[data-variant="poster"] .site-header { width: 100%; }
.page-shell[data-variant="poster"] .poster-main {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: clamp(10px, 1.6vh, 18px); width: 100%; min-height: 0;
}
.page-shell[data-variant="poster"] .headline { font-size: clamp(48px, 8.6vw, 116px); max-width: 14ch; }
.page-shell[data-variant="poster"] .lede { margin-left: auto; margin-right: auto; max-width: 52ch; text-align: center; }
.page-shell[data-variant="poster"] .food-heart { width: clamp(180px, 26vh, 300px); margin: 4px auto; }
.page-shell[data-variant="poster"] .waitlist-form { margin-left: auto; margin-right: auto; }
.page-shell[data-variant="poster"] .pillars.row { width: 100%; }
.page-shell[data-variant="poster"] .howto { justify-content: center; }

/* ================= VARIANT: COMPARE ================= */
.page-shell[data-variant="compare"] .hero {
  display: grid; grid-template-columns: minmax(0,.92fr) minmax(0,1.08fr);
  align-items: center; gap: clamp(22px, 3vw, 48px); flex: 1; min-height: 0;
}
.page-shell[data-variant="compare"] .compare-stack { display: grid; gap: var(--sp-4); }
.page-shell[data-variant="compare"] .headline { font-size: clamp(42px, 5.6vw, 76px); }
.page-shell[data-variant="compare"] .food-mini { width: clamp(160px, 18vw, 240px); position: absolute; right: -8px; top: -64px; opacity: .96; filter: drop-shadow(var(--shadow-float)); pointer-events: none; }
.page-shell[data-variant="compare"] .compare-head { position: relative; }

/* ---------- Responsive ---------- */
@media (max-width: 1000px) {
  .page-shell { width: min(100% - 36px, 760px); }
  .page-shell[data-variant="editorial"] .hero,
  .page-shell[data-variant="compare"] .hero { grid-template-columns: 1fr; }
  .page-shell .food-panel { min-height: 320px; order: 2; }
  .page-shell[data-variant="compare"] .food-mini { display: none; }
  .bottom-rail { grid-template-columns: 1fr; gap: var(--sp-4); }
  .compare-strip { grid-template-columns: 1fr 1fr; }
  .compare-strip .col:nth-child(2) { border-right: none; }
  .compare-strip .col:nth-child(-n+2) { border-bottom: var(--bw) solid var(--ink-900); }
}
@media (max-width: 560px) {
  body { background: linear-gradient(90deg, rgba(255,255,255,.22) 0 1px, transparent 1px 100%) 0 0 / 25vw 100%, var(--page-bg); }
  .page-shell { width: min(100% - 28px, 480px); }
  .site-header { align-items: flex-start; }
  .header-nav { gap: 7px; }
  .header-link { min-height: 34px; padding: 0 9px; font-size: 11px; }
  .headline { font-size: clamp(44px, 13vw, 68px) !important; }
  .pillars.row { flex-direction: column; }
  .pillars.row li { border-right: none; border-bottom: var(--bw) solid var(--ink-900); }
  .pillars.row li:last-child { border-bottom: none; }
  .compare-strip { grid-template-columns: 1fr; }
  .compare-strip .col { border-right: none; border-bottom: var(--bw) solid var(--ink-900); }
  .compare-strip .col:last-child { border-bottom: none; }
  .waitlist-form.inline .row { grid-template-columns: 1fr; }
  .waitlist-form.inline .row .submit-button { width: 100%; }
  .form-row { grid-template-columns: 1fr; }
  .howto { flex-wrap: wrap; gap: var(--sp-3); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; } }
