/* The unpantry brand (FMPP-163).

   The two brand hexes are the ones in the logo; everything warm below is
   derived from the orange rather than being a second warm hue. The site
   previously ran on a coral (#ef6b3b) and a separate gold (#f2bf4f), neither
   of which appears in the mark.

   The orange splits into three tokens for the same reason the app's palette
   does: at 1.99:1 on cream, the brand orange cannot be read as text and cannot
   carry white. Which one to reach for depends on the ground, not on taste:

     --orange        a FILL, and small marks on the dark green ground
     --on-orange     anything written on that fill
     --orange-ink    orange TYPE, and focus indicators, on cream or white
     --orange-light  a highlight on the dark green ground only

   Ratios are recorded beside the values that needed the argument. */
:root {
  --cream: #f6f1e7;
  --cream-deep: #e9dfcd;
  --ink: #173f35; /* 10.4:1 on cream */
  --ink-soft: #42625a; /* 6.0:1 on cream */
  --green: #095b44; /* the brand green; 7.2:1 on cream, and white on it is 8.0:1 */
  --green-light: #cfe3d7; /* 6.0:1 on --green, 10.1:1 on the footer */
  --orange: #fa9502; /* the brand orange, exactly */
  --on-orange: #1f1b18; /* 7.6:1 on --orange. NOT white, which is 2.2:1 */
  --orange-ink: #b36a05; /* 3.8:1 on cream, 4.2:1 on --white */
  --orange-light: #fbc15c; /* 5.0:1 on --green */
  --white: #fffdf8;
  --serif: 'DM Serif Display', Georgia, serif;
  --sans: 'DM Sans', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
.page-shell { overflow: hidden; }
.site-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1240px;
  padding: 28px 40px;
}
.wordmark {
  align-items: center;
  display: inline-flex;
  text-decoration: none;
}
.wordmark img { display: block; height: auto; width: 142px; }
.header-link {
  border-bottom: 1px solid currentColor;
  font-size: 14px;
  font-weight: 600;
  padding-bottom: 4px;
  text-decoration: none;
}
.header-link span { margin-left: 8px; }
.hero {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  margin: 0 auto;
  max-width: 1240px;
  min-height: 690px;
  padding: 76px 40px 96px;
}
.hero-copy { position: relative; z-index: 2; }
.eyebrow {
  align-items: center;
  display: flex;
  font-size: 12px;
  font-weight: 700;
  gap: 12px;
  letter-spacing: 2.2px;
  margin: 0 0 28px;
  text-transform: uppercase;
}
.eyebrow::before {
  background: var(--orange-ink);
  border-radius: 50%;
  content: '';
  height: 8px;
  width: 8px;
}
h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 {
  font-size: clamp(62px, 7vw, 100px);
  letter-spacing: -4px;
  line-height: 0.92;
  margin: 0;
  max-width: 820px;
}
h1 em { color: var(--orange-ink); font-weight: 400; }
.lede {
  color: var(--ink-soft);
  font-size: 19px;
  line-height: 1.65;
  margin: 38px 0 32px;
  max-width: 570px;
}
.hero-cta {
  align-items: center;
  background: var(--green);
  border-radius: 999px;
  color: var(--white);
  display: inline-flex;
  font-size: 15px;
  font-weight: 700;
  gap: 34px;
  padding: 18px 22px 18px 26px;
  text-decoration: none;
}
.hero-cta span { color: var(--orange-light); font-size: 20px; }
.plate-scene { min-height: 500px; position: relative; }
.sun {
  background: var(--orange-light);
  border-radius: 50%;
  height: 410px;
  left: 52%;
  position: absolute;
  top: 42%;
  transform: translate(-50%, -50%);
  width: 410px;
}
.plate {
  align-items: center;
  background: var(--white);
  border: 2px solid rgba(23, 63, 53, 0.08);
  border-radius: 50%;
  box-shadow: inset 0 0 0 32px var(--cream-deep), 0 34px 70px rgba(75, 60, 30, 0.18);
  display: flex;
  height: 300px;
  justify-content: center;
  left: 52%;
  position: absolute;
  top: 47%;
  transform: translate(-50%, -50%) rotate(-8deg);
  width: 300px;
}
.plate-copy {
  color: var(--green);
  font-family: var(--serif);
  font-size: 31px;
  line-height: 1.02;
  text-align: center;
}
.steam {
  border-left: 3px solid rgba(23, 77, 64, 0.42);
  border-radius: 50%;
  height: 76px;
  position: absolute;
  top: 4%;
  width: 35px;
}
.steam-one { left: 45%; transform: rotate(15deg); }
.steam-two { left: 58%; top: 0; transform: rotate(-12deg); }
.leaf {
  background: var(--green);
  border-radius: 80% 12% 80% 12%;
  height: 64px;
  position: absolute;
  width: 34px;
}
.leaf-one { bottom: 7%; left: 9%; transform: rotate(-34deg); }
.leaf-two { right: 6%; top: 12%; transform: rotate(48deg); }
.spice { background: var(--orange); border-radius: 50%; height: 10px; position: absolute; width: 10px; }
.spice-one { bottom: 18%; right: 11%; }
.spice-two { bottom: 13%; right: 18%; height: 7px; width: 7px; }
.spice-three { left: 13%; top: 21%; height: 8px; width: 8px; }
.waitlist-section {
  background: var(--green);
  color: var(--white);
  display: grid;
  gap: 80px;
  grid-template-columns: 0.9fr 1.1fr;
  padding: 112px max(40px, calc((100vw - 1160px) / 2));
}
.eyebrow-light { color: var(--green-light); }
.eyebrow-light::before { background: var(--orange-light); }
.waitlist-intro h2 {
  font-size: clamp(52px, 6vw, 82px);
  letter-spacing: -2.5px;
  line-height: 0.96;
  margin: 0 0 28px;
}
.waitlist-intro > p:last-child {
  color: var(--green-light);
  font-size: 17px;
  line-height: 1.65;
  max-width: 430px;
}
.form-card {
  background: var(--white);
  border-radius: 28px;
  color: var(--ink);
  padding: 42px;
}
.field { margin-bottom: 24px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 9px; }
.field input {
  background: transparent;
  border: 0;
  border-bottom: 1.5px solid #b7b4aa;
  border-radius: 0;
  color: var(--ink);
  font: 500 18px var(--sans);
  outline: none;
  padding: 8px 0 12px;
  width: 100%;
}
.field input:focus { border-bottom-color: var(--orange-ink); }
.field input[aria-invalid='true'] { border-bottom-color: #b83a2c; }
.phone-field { align-items: center; display: flex; gap: 12px; }
.phone-field span { border-right: 1px solid #d2cec3; font-size: 17px; padding-right: 12px; }
.field-error { color: #a62e22; font-size: 12px; margin: 6px 0 0; min-height: 15px; }
.honeypot { left: -10000px; position: absolute; }
button {
  align-items: center;
  background: var(--orange);
  border: 0;
  border-radius: 999px;
  color: var(--on-orange);
  cursor: pointer;
  display: flex;
  font: 700 16px var(--sans);
  justify-content: space-between;
  margin-top: 8px;
  padding: 18px 23px;
  width: 100%;
}
button:focus-visible { outline: 3px solid var(--orange-ink); outline-offset: 3px; }
button:disabled { cursor: wait; opacity: 0.72; }
.form-notice { color: #6d756f; font-size: 11px; line-height: 1.55; margin: 14px 4px 0; }
.form-status { border-radius: 12px; display: none; font-size: 14px; font-weight: 600; margin-top: 16px; padding: 13px 15px; }
.form-status.is-visible { display: block; }
.form-status-success { background: #e3f0e9; color: #0b5340; } /* 7.7:1 */
.form-status-duplicate { background: #fff0c9; color: #6e4a00; }
.form-status-error { background: #fae2de; color: #8b281f; }
footer {
  align-items: center;
  background: #063528;
  color: var(--green-light);
  display: grid;
  font-size: 12px;
  grid-template-columns: 1fr 1fr 1fr;
  padding: 30px max(40px, calc((100vw - 1160px) / 2));
}
.wordmark-footer {
  justify-self: start;
}
.wordmark-footer img { width: 112px; }
footer p:nth-child(2) { text-align: center; }
footer p:last-child { text-align: right; }
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 55px; }
  .plate-scene { margin-top: 20px; min-height: 440px; }
  .waitlist-section { gap: 50px; grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .site-header { padding: 22px 20px; }
  .header-link { font-size: 12px; }
  .hero { min-height: auto; padding: 52px 20px 70px; }
  h1 { font-size: clamp(52px, 16vw, 72px); letter-spacing: -2.6px; }
  .lede { font-size: 17px; margin-top: 28px; }
  .plate-scene { min-height: 360px; }
  .sun { height: 300px; width: 300px; }
  .plate { box-shadow: inset 0 0 0 25px var(--cream-deep), 0 28px 55px rgba(75, 60, 30, 0.18); height: 230px; width: 230px; }
  .plate-copy { font-size: 25px; }
  .waitlist-section { padding: 80px 20px; }
  .waitlist-intro h2 { font-size: 54px; }
  .form-card { border-radius: 22px; padding: 28px 22px; }
  footer { gap: 12px; grid-template-columns: 1fr; padding: 30px 20px; text-align: center; }
  .wordmark-footer { justify-self: center; }
  footer p, footer p:nth-child(2), footer p:last-child { margin: 0; text-align: center; }
  .consent-banner { align-items: stretch; flex-direction: column; gap: 14px; padding: 16px; }
  .consent-actions button { flex: 1; min-width: 0; }
  .legal { padding: 0 20px 60px; }
  .footer-links { justify-content: center; }
}

/* Consent banner (FMPP-169).

   Sits on --white over the cream page. Two contrast notes, both from the
   argument in README §Colour:

     - the link inside the copy is --ink, not --orange-ink. At 4.2:1 on white
       --orange-ink is short of the 4.5:1 normal-text bar; it is a large-text
       and focus-indicator token, not a body-link one.
     - the accept button writes --on-orange on --orange (7.6:1), never white,
       which would be 2.2:1.

   Decline carries the same type size and full-contrast ink as accept. A
   faint or link-styled decline next to a solid accept is a dark pattern, and
   consent collected that way is not worth having. */
.consent-banner {
  align-items: center;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 16px;
  bottom: 16px;
  box-shadow: 0 18px 40px rgba(75, 60, 30, 0.18);
  display: flex;
  gap: 20px;
  justify-content: space-between;
  left: 16px;
  margin: 0 auto;
  max-width: 720px;
  padding: 18px 20px;
  position: fixed;
  right: 16px;
  z-index: 50;
}
.consent-copy { color: var(--ink-soft); font-size: 13px; line-height: 1.6; margin: 0; }
.consent-copy a { color: var(--ink); text-underline-offset: 2px; }
.consent-actions { display: flex; flex-shrink: 0; gap: 10px; }
.consent-actions button {
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  padding: 11px 18px;
  white-space: nowrap;
}
.consent-decline { background: transparent; border: 1px solid var(--ink-soft); color: var(--ink); }
.consent-accept { background: var(--orange); border: 1px solid var(--orange); color: var(--on-orange); }
.consent-banner button:focus-visible,
.legal a:focus-visible { outline: 2px solid var(--orange-ink); outline-offset: 2px; }

/* Legal pages — privacy.html and terms.html. One measure-constrained column;
   they are read, not scanned. */
.legal { margin: 0 auto; max-width: 720px; padding: 0 40px 80px; }
.legal h1 { font-family: var(--serif); font-size: clamp(40px, 7vw, 58px); letter-spacing: -1.5px; margin: 0 0 8px; }
.legal .legal-updated { color: var(--ink-soft); font-size: 13px; margin: 0 0 40px; }
.legal h2 { font-size: 20px; letter-spacing: -0.3px; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--ink-soft); font-size: 15px; line-height: 1.7; }
.legal ul { margin: 12px 0; padding-left: 20px; }
.legal li { margin-bottom: 8px; }
.legal a { color: var(--ink); text-underline-offset: 2px; }
.legal .legal-callout {
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: 14px;
  margin: 24px 0;
  padding: 18px 20px;
}
.legal .legal-callout p { margin: 0; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; justify-content: flex-end; }
.footer-links a { text-underline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) {
  .plate { animation: float 5s ease-in-out infinite; }
  @keyframes float {
    0%, 100% { transform: translate(-50%, -50%) rotate(-8deg); }
    50% { transform: translate(-50%, calc(-50% - 10px)) rotate(-6deg); }
  }
}

.mobile-sticky-cta { display: none; }
@media (max-width: 600px) {
  .mobile-sticky-cta {
    align-items: center;
    background: var(--orange);
    border: 1px solid var(--orange);
    border-radius: 999px;
    bottom: max(16px, env(safe-area-inset-bottom));
    box-shadow: 0 12px 32px rgb(23 63 53 / 0.28);
    color: var(--on-orange);
    font-size: 15px;
    font-weight: 700;
    gap: 18px;
    justify-content: center;
    left: 20px;
    padding: 15px 22px;
    position: fixed;
    right: 20px;
    text-decoration: none;
    z-index: 40;
  }
  .mobile-sticky-cta.is-visible { display: flex; }
  body:has(.consent-banner) .mobile-sticky-cta { display: none; }
}
