/* Zestic website — colours, type and device pictures follow the app and its App Store
   screenshots: Fraunces headlines in herb green, Instrument Sans text, cream paper. */
@font-face { font-family: "Zestic Fraunces"; src: url("assets/fonts/fraunces-semibold.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Zestic Sans"; src: url("assets/fonts/instrument-sans-regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Zestic Sans"; src: url("assets/fonts/instrument-sans-medium.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }
:root {
  --paper: #F8F3E9;
  --card: #FCF9F2;
  --herb: #275330;
  --ink: #1F2A21;
  --muted: #4A5046;
  --sand: #ECE2CD;
  --terra: #AA5028;
  --glow: rgba(236, 224, 198, 0.75);
  --sage: #8A9B7F;
  --lemon: #E3C15A;
  --line: #DED8C8;
  --on-herb: #F8F3E9;
  --band: #275330;
  --serif: "Zestic Fraunces", ui-serif, "New York", Georgia, serif;
  --sans: "Zestic Sans", -apple-system, BlinkMacSystemFont, system-ui, "Helvetica Neue", Arial, sans-serif;
  --measure: 34rem;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0D0F0C;
    --card: #1A201B;
    --herb: #8EAF7C;
    --ink: #ECE8DD;
    --muted: #A9B3A2;
    --sage: #768B6C;
    --lemon: #FFC440;
    --line: #2A322B;
    --on-herb: #F2EEE3;
    --band: #16341F;
    --sand: #2B2A20;
    --terra: #E39A6E;
    --glow: rgba(60, 74, 52, 0.55);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--herb); text-underline-offset: 0.18em; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--lemon); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(72rem, 100% - 2rem); margin-inline: auto; }

/* Header */
.site-header { padding: 1.1rem 0; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.brand img.mark { width: 2.4rem; }
.brand img.word { width: 5.4rem; }
.site-nav { display: flex; gap: 1.4rem; font-size: 0.95rem; }
.site-nav a { color: var(--muted); text-decoration: none; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--herb); }

/* Hero: the bowl fills itself, then the name */
.hero { text-align: center; padding: 1.5rem 0 5rem; }
.bowl {
  position: relative;
  width: min(22rem, 78vw);
  aspect-ratio: 700 / 627;
  margin: 0 auto 0.5rem;
}
.bowl img { position: absolute; inset: 0; width: 100%; height: 100%; }
.bowl .ingredients { transform-origin: 50% 70%; }
.hero h1 { margin: 0; }
.hero h1 img { width: min(19rem, 70vw); margin: 0 auto; }
.hero .lede {
  font-family: var(--serif);
  font-size: clamp(1.6rem, 3.6vw, 2.35rem);
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin: 1.4rem auto 0.9rem;
  max-width: 22ch;
  color: var(--herb);
}
.hero .sub { color: var(--muted); max-width: 32rem; margin: 0 auto 2rem; }
.availability { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.9rem 1.5rem; }
.badge {
  display: inline-flex; align-items: center; gap: 0.6rem;
  background: var(--herb); color: var(--paper);
  padding: 0.85rem 1.35rem; border-radius: 999px;
  font-weight: 600; font-size: 1rem;
  text-decoration: none;
}
a.badge:hover { background: color-mix(in srgb, var(--herb) 88%, var(--ink)); }

@media (prefers-reduced-motion: no-preference) {
  .bowl .back, .bowl .front { animation: settle 700ms cubic-bezier(.2,.8,.2,1) both; }
  .bowl .ingredients { animation: drop 1100ms cubic-bezier(.3,1.35,.45,1) 250ms both; }
  .hero h1, .hero .lede, .hero .sub, .availability { animation: rise 700ms ease-out both; }
  .hero h1 { animation-delay: 900ms; }
  .hero .lede { animation-delay: 1050ms; }
  .hero .sub, .availability { animation-delay: 1200ms; }
}
@keyframes settle { from { opacity: 0; transform: translateY(12px) scale(0.97); } to { opacity: 1; transform: none; } }
@keyframes drop {
  0% { opacity: 0; transform: translateY(-38%) rotate(-7deg) scale(0.92); }
  55% { opacity: 1; }
  100% { opacity: 1; transform: none; }
}
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* Feature rows: like the App Store screenshots — a centred tag, a herb serif headline and a
   one-line subtitle over the device, with a soft warm glow behind it. On wide screens the
   words sit beside the picture, alternating sides. */
.features { padding-bottom: 2rem; }
.feature {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-areas: "head shot" "body shot";
  align-content: center;
  column-gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0;
  border-top: 1px solid var(--line);
}
.feature .head { grid-area: head; align-self: end; }
.feature .body { grid-area: body; align-self: start; }
.feature .shot { grid-area: shot; align-self: center; }
.feature:nth-child(even) { grid-template-areas: "shot head" "shot body"; }
.tag {
  display: inline-block; margin: 0 0 1rem; padding: 0.4rem 0.95rem; border-radius: 999px;
  background: var(--sand); color: var(--terra);
  font: 500 0.78rem/1.2 var(--sans); letter-spacing: 0.08em; text-transform: uppercase;
}
.feature h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3.1rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 0.75rem;
  max-width: 14ch;
}
.feature .sub { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.4; color: var(--ink); margin: 0 0 1.5rem; max-width: 26rem; }
.feature .body p { max-width: var(--measure); margin: 0 0 1rem; color: var(--muted); }
.shot { position: relative; margin: 0; display: grid; place-items: center; }
.shot::before {
  content: ""; position: absolute; inset: 12% 2% 0; z-index: 0;
  background: radial-gradient(closest-side, var(--glow), transparent); filter: blur(10px);
}
.shot img { position: relative; z-index: 1; width: min(21rem, 100%); }
.shot.wide img { width: min(33rem, 100%); }

/* Sharing */
.together {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center; gap: clamp(2rem, 6vw, 6rem);
  padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line);
}
.together h2, .everything h2, .pricing h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; letter-spacing: -0.015em;
  margin: 0 0 1rem; max-width: 18ch;
}
.together p { max-width: var(--measure); margin: 0 0 1rem; color: var(--muted); }
.shared-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0.75rem; }
.shared-list li {
  display: grid; grid-template-columns: 1fr auto; grid-template-areas: "what who" "note who";
  align-items: center; gap: 0.15rem 1rem;
  background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1rem 1.25rem;
}
.shared-list .what { grid-area: what; font-family: var(--serif); font-weight: 600; font-size: 1.2rem; }
.shared-list .note { grid-area: note; color: var(--muted); font-size: 0.95rem; }
.shared-list .who { grid-area: who; display: flex; }
.shared-list .who i {
  font-style: normal; font-weight: 600; font-size: 0.85rem;
  width: 2.1rem; height: 2.1rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--herb); color: var(--paper); border: 2px solid var(--card); margin-left: -0.45rem;
}
.shared-list li:nth-child(2) .who i:nth-child(2), .shared-list li:nth-child(4) .who i:first-child { background: var(--lemon); color: #1F2A21; }
.shared-list li:nth-child(2) .who i:nth-child(3) { background: var(--sage); }

/* Everything else */
.everything { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2rem; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.4rem 1.4rem 1.25rem; }
.tile svg { width: 2rem; height: 2rem; fill: none; stroke: var(--herb); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 0.75rem; }
.tile h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 0 0 0.35rem; }
.tile p { margin: 0; color: var(--muted); font-size: 0.97rem; }
.everything .also { color: var(--muted); margin: 1.75rem 0 0; max-width: 46rem; }

/* Pricing */
.pricing { padding: clamp(3rem, 7vw, 5.5rem) 0 clamp(4rem, 8vw, 6rem); border-top: 1px solid var(--line); }
.pricing h2 { max-width: 26ch; margin-inline: auto; text-align: center; }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin: 2rem auto 0; max-width: 52rem; }
.plan { border: 1px solid var(--line); border-radius: 1.5rem; padding: 1.75rem; background: var(--card); }
.plan.plus { background: var(--band); color: var(--on-herb); border-color: transparent; }
.plan h3 { font-family: var(--serif); font-weight: 600; font-size: 1.4rem; margin: 0; }
.plan .price { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; margin: 0.25rem 0 1rem; }
.plan .price span { font-family: var(--sans); font-size: 1rem; font-weight: 400; opacity: 0.8; }
.plan ul { margin: 0; padding-left: 1.1rem; }
.plan li { margin: 0.4rem 0; }
.plan .fine { font-size: 0.92rem; opacity: 0.82; margin: 1.1rem 0 0; }

/* Privacy band */
.privacy-band { background: var(--band); color: var(--on-herb); padding: clamp(3.5rem, 8vw, 6rem) 0; }
.privacy-band h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem); line-height: 1.1; letter-spacing: -0.015em;
  margin: 0 0 2.5rem; max-width: 18ch;
}
.privacy-band .grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem 3rem; }
.privacy-band h3 { font-family: var(--serif); font-weight: 600; font-size: 1.3rem; margin: 0 0 0.5rem; }
.privacy-band p { margin: 0; opacity: 0.86; }
.privacy-band a { color: var(--on-herb); }

/* Closing */
.closing { text-align: center; padding: clamp(4rem, 9vw, 7rem) 0; }
.closing img { width: 7.5rem; margin: 0 auto 1.25rem; }
.closing h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(1.8rem, 3.4vw, 2.5rem); line-height: 1.15; margin: 0 0 0.75rem; }
.closing p { color: var(--muted); max-width: 30rem; margin: 0 auto 1.75rem; }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 2rem 0 3rem; font-size: 0.92rem; color: var(--muted); }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem 2rem; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer a:hover { color: var(--herb); text-decoration: underline; }

/* Text pages (privacy, terms, support) */
.page { padding: 2.5rem 0 5rem; }
.page .wrap { max-width: 44rem; }
.page h1 { font-family: var(--serif); font-weight: 600; font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.015em; margin: 0 0 0.5rem; }
.page .updated { color: var(--muted); margin: 0 0 2.5rem; }
.page h2 { font-family: var(--serif); font-weight: 600; font-size: 1.55rem; line-height: 1.2; margin: 2.75rem 0 0.75rem; }
.page h3 { font-size: 1.05rem; margin: 1.75rem 0 0.4rem; }
.page p, .page li { color: var(--ink); }
.page ul { padding-left: 1.2rem; }
.page li { margin: 0.35rem 0; }
.page .summary { background: var(--card); border: 1px solid var(--line); border-radius: 1rem; padding: 1.25rem 1.5rem; }
.page .summary p { margin: 0.4rem 0; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.5rem 1.75rem; margin: 1.5rem 0 1rem; }
.contact-card a.email { font-family: var(--serif); font-size: 1.6rem; }

@media (max-width: 960px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .together, .plans, .tiles { grid-template-columns: 1fr; }
  .feature, .feature:nth-child(even) { grid-template-columns: 1fr; grid-template-areas: "head" "shot" "body"; }
  .feature .head { text-align: center; }
  .feature h2 { max-width: none; }
  .feature .sub { margin-inline: auto; }
  .feature .shot { margin: 0 0 2rem; }
  .shot img { width: min(17rem, 78vw); }
  .shot.wide img { width: min(26rem, 100%); }
  .privacy-band .grid { grid-template-columns: 1fr; }
  .site-nav { gap: 1rem; }
}

/* iPad and Apple Watch */
.devices { padding: clamp(3rem, 7vw, 5.5rem) 0; border-top: 1px solid var(--line); }
.devices h2 {
  font-family: var(--serif); font-weight: 600;
  font-size: clamp(1.9rem, 3.6vw, 2.75rem); line-height: 1.12; letter-spacing: -0.015em;
  margin: 0 0 1rem; max-width: 18ch;
}
.devices .copy p { max-width: var(--measure); margin: 0 0 2rem; color: var(--muted); }
.tablet {
  max-width: 54rem; margin: 0 auto; padding: 0.8rem; border-radius: 1.9rem; background: #171a17;
  box-shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 40px 80px -40px rgba(28,58,35,.5);
}
.tablet img { display: block; width: 100%; height: auto; border-radius: 1.2rem; }
.devices-art { display: block; width: 100%; max-width: 62rem; height: auto; margin: 0 auto; }
.device-notes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; max-width: 54rem; margin: 2rem auto 0; }
.device-notes div { background: var(--card); border: 1px solid var(--line); border-radius: 1.25rem; padding: 1.4rem; }
.device-notes h3 { font-family: var(--serif); font-weight: 600; font-size: 1.2rem; margin: 0 0 0.35rem; }
.device-notes p { margin: 0; color: var(--muted); font-size: 0.97rem; }
@media (max-width: 760px) {
  .device-notes { grid-template-columns: 1fr; }
  .tablet { padding: 0.45rem; border-radius: 1.1rem; }
  .tablet img { border-radius: 0.75rem; }
}

h1, h2, h3, .hero .lede { text-wrap: balance; }
h2, .page h1, .tile h3, .device-notes h3, .shared-list .what, .plan h3 { color: var(--herb); }
.plan.plus h3, .privacy-band h2, .privacy-band h3 { color: inherit; }

/* Shared recipe page: the AI label, as the app shows it. */
.ai-label { color: #7a3fa0; font-weight: 500; font-size: 0.95rem; margin: 0.25rem 0 0.75rem; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .ai-label { color: #c9a2e6; } }
