/* ============================================================
   Palate — landing page
   "Garden" identity: cool sage on crisp off-white, deep moss for contrast.
   Tokens mirror Palate/Theme/Theme.swift exactly.
   ============================================================ */

:root {
  /* ---- Garden palette (light) ---- */
  --canvas:        #F8F8F4;  /* mist100 — base canvas */
  --raised:        #F1F2EA;  /* mist200 — raised tint */
  --sunken:        #E7E9DD;  /* mist300 */
  --card:          #FFFFFF;
  --ink:           #23281F;  /* ink800 — primary text */
  --ink-900:       #191D16;  /* deepest moss */
  --ink-700:       #323827;
  --text-2:        #4A5142;  /* secondary */
  --muted:         #58634E;  /* captions */

  --sage:          #7C9663;  /* THE accent */
  --sage-hover:    #647C4F;
  --sage-deep:     #4E6240;
  --sage-700:      #4E6240;
  --sage-100:      #E6EBDA;
  --sage-50:       #F2F5EC;
  --pistachio:     #EAF0D8;
  --mint-tint:     #DEF0E4;
  --mint-700:      #2F6647;
  --mint-500:      #4F8161;
  --forest:        #38573F;
  --moss:          #191D16;

  --gold:          #D9A13F;  /* ratings ONLY */
  --terra-tint:    #F7E4DC;
  --terra-700:     #A04830;  /* restaurant marker text */

  --border-hair:   #E5E7DC;
  --border:        #D9DCCB;
  --border-strong: #D4D7C9;

  --on-accent:     #F7FAF2;
  --on-dark:       #EEF1E7;

  /* ---- shadows: soft, moss-tinted, never harsh black ---- */
  --shadow-phone:  0 2px 4px rgba(46,53,40,.10),
                   0 24px 48px -16px rgba(46,53,40,.30),
                   0 8px 18px -10px rgba(46,53,40,.22);
  --shadow-card:   0 1px 2px rgba(46,53,40,.05), 0 10px 30px -18px rgba(46,53,40,.25);
  --shadow-soft:   0 14px 40px -22px rgba(46,53,40,.32);

  /* ---- type ---- */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  /* ---- rhythm ---- */
  --maxw: 1180px;
  --gutter: clamp(20px, 5vw, 64px);
  --section-y: clamp(72px, 11vw, 156px);
  --ease: cubic-bezier(.22,.61,.36,1);
  --ease-out: cubic-bezier(.16,1,.3,1);
}

/* ============================================================
   Base
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

::selection { background: var(--sage-100); color: var(--ink); }

h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }

p { margin: 0; }

.dot { color: var(--sage); }
.dot--sage { color: var(--sage); }

/* shared section helpers */
.overline {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--sage-deep);
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 22px;
}

/* ============================================================
   Buttons
   ============================================================ */
.btn {
  --bg: var(--sage-deep);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 16px;
  line-height: 1;
  color: var(--on-accent);
  background: var(--bg);
  border: none;
  border-radius: 14px;
  padding: 15px 24px;
  cursor: pointer;
  transition: transform .25s var(--ease), background-color .25s var(--ease), box-shadow .25s var(--ease);
  box-shadow: 0 8px 20px -10px rgba(124,150,99,.7);
  -webkit-tap-highlight-color: transparent;
}
.btn--primary:hover { background: var(--forest); transform: translateY(-2px); box-shadow: 0 14px 28px -12px rgba(124,150,99,.8); }
.btn--primary:active { transform: translateY(0) scale(.985); }
.btn--sm  { padding: 11px 18px; font-size: 15px; border-radius: 12px; }
.btn--lg  { padding: 17px 30px; font-size: 17px; }

/* ============================================================
   Nav
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  transition: background-color .4s var(--ease), box-shadow .4s var(--ease), backdrop-filter .4s var(--ease);
}
.nav__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: padding .4s var(--ease);
}
.nav.scrolled {
  background: rgba(248,248,244,.78);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  box-shadow: 0 1px 0 rgba(35,40,31,.06), 0 8px 24px -20px rgba(46,53,40,.4);
}
.nav.scrolled .nav__inner { padding-top: 12px; padding-bottom: 12px; }

.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand__mark {
  width: 34px; height: 34px;
  border-radius: 9px;
  box-shadow: 0 2px 8px -2px rgba(46,53,40,.4);
}
.brand__word {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 25px;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.nav__right { display: flex; align-items: center; gap: 20px; }
.nav__coming { font-size: 14px; color: var(--muted); font-weight: 500; }

/* ============================================================
   Reusable phone mockup
   ============================================================ */
.phone {
  --pw: 300px;                       /* device (bezel) width */
  --sw: calc(var(--pw) * 0.898);     /* the screen width inside the frame */
  --lean: 0deg;                      /* resting tilt; idle animations build on top of it */
  position: relative;
  width: var(--pw);
  aspect-ratio: 1470 / 3000;         /* Apple's official iPhone 17 Pro Max bezel */
  transform: rotate(var(--lean));
  /* soft moss shadow that follows the device silhouette (bezel alpha) */
  filter: drop-shadow(0 3px 5px rgba(46,53,40,.12)) drop-shadow(0 26px 40px rgba(46,53,40,.22));
  transition: filter .45s var(--ease), scale .5s var(--ease);
}
/* hover settles the motion and lifts the shadow */
.phone:hover {
  animation-play-state: paused;
  filter: drop-shadow(0 4px 7px rgba(46,53,40,.14)) drop-shadow(0 40px 60px rgba(46,53,40,.30));
}
/* a single feature phone leans in a touch when you hover it */
.feature__art .phone:hover { scale: 1.035; }

/* the stacked hero / year phones get a springy translate+scale channel for the fan-out */
.phone--hero-front, .phone--hero-back,
.phone--year-front, .phone--year-back {
  transition: translate .6s cubic-bezier(.34,1.42,.5,1), scale .6s cubic-bezier(.34,1.42,.5,1), filter .45s var(--ease);
}
/* hovering the cluster fans the two phones apart and enlarges them, revealing more UI */
.hero__art:hover .phone,
.yearfeature__art:hover .phone { animation-play-state: paused; }
.hero__art:hover .phone--hero-front      { translate: 25% 2%;  scale: 1.07; z-index: 4; }
.hero__art:hover .phone--hero-back       { translate: -28% -1%; scale: 1.06; }
.yearfeature__art:hover .phone--year-front { translate: 23% 1%;  scale: 1.07; z-index: 4; }
.yearfeature__art:hover .phone--year-back  { translate: -30% 0%; scale: 1.06; }
/* the live screen sits in the cutout, slightly oversized so the frame always covers the seam */
.phone__screen {
  position: absolute;
  left: 4.55%; top: 1.7%;
  width: 90.9%; height: 96.6%;
  border-radius: 10% / 5%;
  overflow: hidden;
  background: var(--canvas);
  z-index: 1;
}
/* the real Apple iPhone 17 Pro Max bezel, overlaid on top */
.phone__bezel {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  z-index: 2;
  pointer-events: none;
  -webkit-user-select: none; user-select: none;
}
/* only the full-bleed screenshot (direct child) fills the screen — not nested imgs like the Ask thumbnail */
.phone__screen > img { width: 100%; height: 100%; object-fit: cover; }

/* ============================================================
   Idle phone motion — gentle and varied (float / sway / drift / bob).
   Built on the resting --lean so reduced-motion keeps the tilt.
   Parallax uses the `translate` property; these use `transform`; they compose.
   ============================================================ */
.anim-float { animation: phoneFloat 7s ease-in-out infinite; }
.anim-sway  { animation: phoneSway 8.5s ease-in-out infinite; }
.anim-drift { animation: phoneDrift 9s ease-in-out infinite; }
.anim-bob   { animation: phoneBob 10s ease-in-out infinite; }

@keyframes phoneFloat {
  0%, 100% { transform: rotate(var(--lean)) translateY(0); }
  50%      { transform: rotate(var(--lean)) translateY(-12px); }
}
@keyframes phoneSway {             /* a slow pendulum */
  0%, 100% { transform: rotate(calc(var(--lean) - 1.3deg)) translateY(-2px); }
  50%      { transform: rotate(calc(var(--lean) + 1.5deg)) translateY(2px); }
}
@keyframes phoneDrift {            /* side to side */
  0%, 100% { transform: rotate(var(--lean)) translateX(-9px); }
  50%      { transform: rotate(var(--lean)) translateX(9px); }
}
@keyframes phoneBob {              /* a soft wandering loop */
  0%, 100% { transform: rotate(var(--lean)) translate(0, 0); }
  25%      { transform: rotate(calc(var(--lean) + .9deg)) translate(6px, -7px); }
  50%      { transform: rotate(var(--lean)) translate(0, -11px); }
  75%      { transform: rotate(calc(var(--lean) - .9deg)) translate(-6px, -7px); }
}

/* bespoke motion for the stacked hero / year phones (they carry positioning transforms) */
.phone--hero-front { animation: heroFront 7.5s ease-in-out infinite; }
.phone--hero-back  { animation: heroBack 9.5s ease-in-out -2.5s infinite; }
.phone--year-front { animation: yearFront 8s ease-in-out infinite; }
.phone--year-back  { animation: yearBack 10.5s ease-in-out -3s infinite; }
@keyframes heroFront { 0%,100% { transform: rotate(-3deg) translateY(0); }            50% { transform: rotate(-3.7deg) translateY(-13px); } }
@keyframes heroBack  { 0%,100% { transform: translate(-18%,-42%) rotate(5deg); }      50% { transform: translate(-18%,-45.5%) rotate(6.3deg); } }
@keyframes yearFront { 0%,100% { transform: rotate(3deg) translateY(0); }             50% { transform: rotate(3.7deg) translateY(-12px); } }
@keyframes yearBack  { 0%,100% { transform: translate(-72%,-46%) rotate(-6deg); }     50% { transform: translate(-72%,-49%) rotate(-7.2deg); } }

/* ============================================================
   Organic blobs — soft, morphing, drifting.
   border-radius (not clip-path) = bullet-proof across browsers, and morphable.
   ============================================================ */
.blob {
  position: absolute;
  z-index: 0;
  width: 360px; height: 360px;
  border-radius: 42% 58% 57% 43% / 50% 45% 55% 50%;
  filter: blur(.3px);
  pointer-events: auto;       /* poke me */
  cursor: pointer;
  opacity: .9;
  animation: blobDrift 26s ease-in-out infinite, blobMorph 17s ease-in-out infinite;
}
.blob--pistachio { background: var(--pistachio); }
.blob--mint      { background: var(--mint-tint); }
.blob--sage      { background: var(--sage-100); }
.blob--privacy   { background: rgba(124,150,99,.16); }
@keyframes blobDrift {
  0%, 100% { transform: scale(1) translate(0,0); }
  33%      { transform: scale(1.06) translate(12px,-12px); }
  66%      { transform: scale(.96) translate(-9px,11px); }
}
@keyframes blobMorph {
  0%, 100% { border-radius: 42% 58% 57% 43% / 50% 45% 55% 50%; }
  33%      { border-radius: 57% 43% 46% 54% / 43% 57% 43% 57%; }
  66%      { border-radius: 47% 53% 56% 44% / 56% 46% 54% 44%; }
}

/* ============================================================
   Joy-layer accents: squiggle + sparkle (ported from JoyLayer.swift)
   ============================================================ */
.squiggle-word { position: relative; white-space: nowrap; color: var(--ink); }
.squiggle {
  position: absolute;
  left: 0; right: 0; bottom: -.34em;
  width: 100%; height: .34em;
  color: var(--sage);
  overflow: visible;
}
/* a squiggle that sits as a block beneath a headline */
.squiggle--under {
  position: static;
  display: block;
  width: clamp(116px, 15vw, 188px);
  height: 14px;
  margin-top: 14px;
  color: var(--sage);
}
.squiggle--center { margin-left: auto; margin-right: auto; }
/* paths carry pathLength="1", so every squiggle draws uniformly regardless of length */
.js .squiggle path { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* a deliberate, visible pen stroke (triggered by its own in-view observer) */
.squiggle.drawn path { transition: stroke-dashoffset 1.05s cubic-bezier(.5,0,.25,1) .12s; stroke-dashoffset: 0; }

.sparkle { display: inline-block; color: var(--sage); line-height: 0; }
.sparkle svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.burst-sparkle svg { width: 100%; height: 100%; fill: currentColor; display: block; }
.sparkle.pop { animation: sparklepop .5s var(--ease-out) both, sparkleTwinkle 5s ease-in-out .6s infinite; }
@keyframes sparklepop {
  0%   { transform: scale(.3) rotate(-20deg); opacity: 0; }
  60%  { transform: scale(1.12) rotate(4deg); opacity: 1; }
  100% { transform: scale(1) rotate(0deg); opacity: 1; }
}
@keyframes sparkleTwinkle {       /* a gentle, slow life after the pop */
  0%, 100% { transform: scale(1) rotate(0deg); opacity: .9; }
  50%      { transform: scale(1.1) rotate(12deg); opacity: 1; }
}

/* ============================================================
   Small playful hovers — a little joy, never loud
   ============================================================ */
.brand__mark { transition: transform .35s var(--ease); }
.brand:hover .brand__mark { transform: rotate(-7deg) scale(1.05); }
.brand .dot { display: inline-block; transition: transform .3s cubic-bezier(.34,1.56,.64,1); }
.brand:hover .dot { transform: translateY(-4px) scale(1.3); }
.chip { transition: transform .3s var(--ease), background-color .3s var(--ease); }
.chip:hover { transform: translateY(-3px); background: var(--sage-50); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  padding-top: clamp(120px, 17vh, 188px);
  padding-bottom: var(--section-y);
  overflow: hidden;
}
.hero__inner {
  position: relative;
  z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: clamp(24px, 4vw, 64px);
  align-items: center;
}
.hero__title {
  font-size: clamp(40px, 6vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.hero__sub {
  margin-top: 26px;
  max-width: 30em;
  font-size: clamp(17px, 1.35vw, 20px);
  line-height: 1.62;
  color: var(--text-2);
}
.hero__cta {
  margin-top: 36px;
  display: flex;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.hero__micro { font-size: 14.5px; color: var(--muted); }

.hero__art {
  position: relative;
  height: 100%;
  min-height: 560px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.phone--hero-front {
  position: relative;
  z-index: 3;
  transform: rotate(-3deg);
}
.phone--hero-back {
  position: absolute;
  z-index: 2;
  top: 50%; left: 50%;
  transform: translate(-18%, -42%) rotate(5deg);
  opacity: .96;
}
.hero__sparkle {
  position: absolute;
  z-index: 1;                 /* behind the phones, so the fan-out covers it */
  width: 30px; height: 30px;
  top: 6%; right: 12%;
}

/* hero blobs */
.hero__blob1 { top: -90px; right: -60px; width: 460px; height: 460px; opacity: .7; }
.hero__blob2 { bottom: -120px; left: -110px; width: 420px; height: 420px; opacity: .65; }
.hero__blob3 { top: 38%; left: 30%; width: 300px; height: 300px; opacity: .35; }

.hero__scroll {
  position: absolute;
  z-index: 2;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 9px;
  font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted);
}
.hero__scroll-line {
  width: 1px; height: 42px;
  background: linear-gradient(var(--muted), transparent);
  animation: scrolldrop 2.2s ease-in-out infinite;
  transform-origin: top;
}
@keyframes scrolldrop {
  0%   { transform: scaleY(.2); opacity: .2; }
  50%  { transform: scaleY(1);  opacity: .9; }
  100% { transform: scaleY(.2); opacity: .2; transform-origin: bottom; }
}

/* ============================================================
   THE PROMISE
   ============================================================ */
.promise {
  background: var(--raised);
  padding: clamp(64px, 9vw, 120px) var(--gutter);
}
.promise__inner {
  position: relative;
  max-width: 880px;
  margin: 0 auto;
  text-align: center;
}
.promise__sparkle { width: 26px; height: 26px; margin-bottom: 20px; }
.promise__quote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(26px, 3.6vw, 44px);
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.chips {
  list-style: none;
  margin: 38px 0 0;
  padding: 0;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 12px;
}
.chip {
  font-size: 14px; font-weight: 600;
  color: var(--sage-700);
  background: var(--sage-100);
  padding: 9px 18px;
  border-radius: 999px;
}

/* ============================================================
   FEATURE ROWS
   ============================================================ */
.feature { padding: var(--section-y) var(--gutter); position: relative; overflow: hidden; }
.feature--tinted { background: var(--raised); }
.feature__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}
.feature--reverse .feature__text { order: 2; }

.feature__title {
  font-size: clamp(30px, 3.9vw, 50px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin-top: 14px;
}
.feature__body {
  margin-top: 20px;
  font-size: clamp(16.5px, 1.25vw, 19px);
  line-height: 1.62;
  color: var(--text-2);
  max-width: 32em;
}
.feature__body em { font-style: italic; color: var(--sage-deep); }
.feature__note {
  margin-top: 16px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 15.5px;
  color: var(--muted);
}

.feature__art {
  position: relative;
  display: flex;
  justify-content: center;
}
.feature--reverse .feature__art { order: 1; justify-content: center; }
.feature__blob { width: 380px; height: 380px; right: -40px; top: -40px; z-index: 0; }
.feature__blob--left { left: -40px; right: auto; }
.feature__art .phone { position: relative; z-index: 1; }

/* Two unaltered app captures, both visible at every screen width. */
.feature__art.phone-pair {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(12px, 2vw, 24px);
  align-items: start;
  width: 100%;
  max-width: 450px;
  margin-inline: auto;
}
.phone-pair figure { margin: 0; min-width: 0; }
.phone-pair .phone { width: 100%; max-width: 210px; margin-inline: auto; }
.phone-pair figcaption {
  margin-top: 16px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text-2);
  text-align: center;
}

/* pull quote inside threads row */
.pullquote {
  position: relative;
  margin: 30px 0 0;
  padding: 20px 0 4px 26px;
  border-left: 3px solid var(--sage);
}
.pullquote blockquote {
  margin: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(19px, 1.7vw, 24px);
  line-height: 1.4;
  color: var(--ink);
}
.pullquote__sparkle {
  position: absolute;
  width: 22px; height: 22px;
  top: -4px; left: -12px;
}

/* ============================================================
   THREE SIDES (graphic)
   ============================================================ */
.sides { padding: var(--section-y) var(--gutter); }
.sides__head { max-width: 720px; margin: 0 auto; text-align: center; }
.feature__body--center { margin-left: auto; margin-right: auto; }
.sides__grid {
  max-width: var(--maxw);
  margin: clamp(40px, 6vw, 66px) auto 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 30px);
}
.sidecard {
  background: var(--card);
  border: 1px solid var(--border-hair);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-card);
  transition: transform .4s var(--ease), box-shadow .4s var(--ease);
}
.sidecard:hover {
  transform: translateY(-8px);
  /* a brand-green glow ring + lift */
  box-shadow: 0 0 0 1.5px var(--sage), 0 22px 46px -18px rgba(124,150,99,.5);
}
.sidecard__photo {
  position: relative;
  aspect-ratio: 4 / 3;
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 16px;
}
.sidecard__photo img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .55s var(--ease), filter .5s var(--ease);
}
/* zoom + a sage illumination that lights the photo green on hover */
.sidecard:hover .sidecard__photo img { transform: scale(1.08); filter: brightness(1.05) saturate(1.06); }
.sidecard__photo::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(120% 100% at 50% 45%, rgba(124,150,99,.5), rgba(124,150,99,0) 72%);
  mix-blend-mode: overlay;
  opacity: 0;
  transition: opacity .5s var(--ease);
  pointer-events: none;
}
.sidecard:hover .sidecard__photo::after { opacity: 1; }
.sidecard h3 {
  font-size: 21px;
  margin-top: 12px;
  color: var(--ink);
}
.sidecard p {
  margin-top: 7px;
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.srcbadge {
  display: inline-flex;
  align-items: center;
  font-size: 11px; font-weight: 700; letter-spacing: .12em;
  padding: 5px 11px;
  border-radius: 999px;
}
.srcbadge--restaurant { color: var(--terra-700); background: var(--terra-tint); }
.srcbadge--home       { color: var(--sage-700);  background: var(--sage-100); }
.srcbadge--made       { color: var(--mint-700);  background: var(--mint-tint); }

/* ============================================================
   ASK SCREEN (live HTML phone — mirrors AskDiaryView.swift)
   ============================================================ */
.ask-screen { background: var(--canvas); display: flex; flex-direction: column; font-size: calc(var(--sw) * .046); }
.ios-status {
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--sw)*.045) calc(var(--sw)*.075) calc(var(--sw)*.012);
  position: relative;
}
.ios-time { font-weight: 700; font-size: calc(var(--sw)*.052); color: var(--ink); letter-spacing: .01em; }
.ios-island {
  position: absolute; left: 50%; top: calc(var(--sw)*.03);
  transform: translateX(-50%);
  width: calc(var(--sw)*.30); height: calc(var(--sw)*.085);
  background: #000; border-radius: 999px;
}
.ios-icons { display: inline-flex; align-items: center; gap: calc(var(--sw)*.018); color: var(--ink); }
.ios-ic { height: calc(var(--sw)*.04); width: auto; fill: currentColor; }
.ios-ic.ios-batt { height: calc(var(--sw)*.042); }

.ask-nav {
  text-align: center;
  font-family: var(--serif);
  font-weight: 600;
  font-size: calc(var(--sw)*.052);
  color: var(--ink);
  padding: calc(var(--sw)*.02) 0 calc(var(--sw)*.03);
  border-bottom: 1px solid var(--border-hair);
}
.ask-body { padding: calc(var(--sw)*.055); display: flex; flex-direction: column; gap: calc(var(--sw)*.04); overflow: hidden; }
.ask-hint {
  font-family: var(--serif); font-style: italic;
  font-size: calc(var(--sw)*.044); line-height: 1.4; color: var(--muted);
}
.ask-field {
  display: flex; align-items: center; gap: calc(var(--sw)*.03);
  background: var(--card);
  border: 1px solid var(--border-hair);
  border-radius: calc(var(--sw)*.05);
  padding: calc(var(--sw)*.04) calc(var(--sw)*.045);
  box-shadow: var(--shadow-card);
}
.ask-spark { width: calc(var(--sw)*.05); height: calc(var(--sw)*.05); fill: var(--sage-hover); flex: none; }
.ask-q { flex: 1; font-size: calc(var(--sw)*.046); color: var(--ink); }
.ask-send { width: calc(var(--sw)*.075); height: calc(var(--sw)*.075); fill: var(--sage); flex: none; }
.ask-answer {
  background: var(--card);
  border: 1px solid var(--border-hair);
  border-radius: calc(var(--sw)*.055);
  padding: calc(var(--sw)*.05);
  box-shadow: var(--shadow-card);
}
.ask-overline { display: block; font-size: calc(var(--sw)*.036); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: calc(var(--sw)*.03); }
.ask-text { font-family: var(--serif); font-size: calc(var(--sw)*.054); line-height: 1.45; color: var(--ink); }
.ask-text em { font-style: italic; color: var(--text-2); }
.ask-from { font-size: calc(var(--sw)*.036); font-weight: 700; letter-spacing: .1em; color: var(--muted); }
.ask-card {
  display: flex; align-items: center; gap: calc(var(--sw)*.04);
  background: var(--card);
  border: 1px solid var(--border-hair);
  border-radius: calc(var(--sw)*.05);
  padding: calc(var(--sw)*.038);
  box-shadow: var(--shadow-card);
}
.ask-thumb { width: calc(var(--sw)*.16); height: calc(var(--sw)*.16); border-radius: calc(var(--sw)*.035); object-fit: cover; flex: none; }
.ask-card__meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ask-card__name { font-family: var(--serif); font-size: calc(var(--sw)*.052); color: var(--ink); }
.ask-card__sub { font-size: calc(var(--sw)*.038); color: var(--muted); }
.ask-star { font-size: calc(var(--sw)*.044); font-weight: 700; color: var(--gold); white-space: nowrap; }

/* ============================================================
   YEAR IN FOOD feature
   ============================================================ */
.yearfeature {
  position: relative;
  overflow: hidden;
  padding: var(--section-y) var(--gutter);
}
.yearfeature__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(28px, 6vw, 96px);
  align-items: center;
}
.yearfeature__art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 540px;
  order: -1;            /* phone left, text right — keeps the alternating rhythm */
}
.phone--year-front { position: relative; z-index: 2; transform: rotate(3deg); }
.phone--year-back {
  position: absolute; z-index: 1;
  left: 50%; top: 50%;
  transform: translate(-72%, -46%) rotate(-6deg);
  opacity: .94;
}
.yearfeature__blob { width: 520px; height: 520px; right: -120px; bottom: -120px; opacity: .55; }
.textlink {
  display: inline-block;
  margin-top: 24px;
  font-weight: 600;
  color: var(--sage-hover);
  border-bottom: 2px solid transparent;
  transition: border-color .3s var(--ease), transform .3s var(--ease);
}
.textlink:hover { border-color: var(--sage); transform: translateX(2px); }

/* ============================================================
   PRIVACY BAND
   ============================================================ */
.privacy {
  position: relative;
  overflow: hidden;
  background: var(--forest);
  color: var(--on-dark);
  padding: clamp(72px, 10vw, 140px) var(--gutter);
}
.privacy__inner {
  position: relative; z-index: 2;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.3fr .7fr;
  gap: clamp(36px, 6vw, 88px);
  align-items: center;
}
.privacy__title {
  font-size: clamp(32px, 4.6vw, 60px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--on-dark);
}
.privacy__body {
  margin-top: 24px;
  font-size: clamp(16.5px, 1.3vw, 19.5px);
  line-height: 1.62;
  color: rgba(238,241,231,.82);
  max-width: 34em;
}
.privacy__body em { font-style: italic; color: #fff; }
.privacy__blob { background: rgba(124,150,99,.22); width: 460px; height: 460px; left: -120px; top: -160px; }

.privacy__badge {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(238,241,231,.16);
  border-radius: 22px;
  padding: 28px 26px;
  text-align: left;
  backdrop-filter: blur(4px);
}
.privacy__badge-label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark); }
.privacy__badge-big {
  display: block;
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 34px);
  font-weight: 600;
  margin: 12px 0 10px;
  color: #fff;
}
.privacy__badge-sub { font-size: 14.5px; line-height: 1.5; color: var(--on-dark); }

/* ============================================================
   WAITLIST FINALE
   ============================================================ */
.waitlist {
  position: relative;
  overflow: hidden;
  text-align: center;
  padding: clamp(84px, 12vw, 170px) var(--gutter);
}
.waitlist__inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.waitlist__sparkle { width: 32px; height: 32px; margin-bottom: 22px; }
.waitlist__title {
  font-size: clamp(40px, 6vw, 74px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.waitlist__sub {
  margin-top: 18px;
  font-size: clamp(17px, 1.4vw, 20px);
  color: var(--text-2);
}
.waitlist__form {
  margin: 38px auto 0;
  display: flex;
  gap: 10px;
  max-width: 480px;
}
.waitlist__input {
  flex: 1;
  font-family: var(--sans);
  font-size: 16px;
  color: var(--ink);
  background: var(--card);
  border: 1.5px solid var(--border-strong);
  border-radius: 14px;
  padding: 16px 18px;
  transition: border-color .25s var(--ease), box-shadow .25s var(--ease);
}
.waitlist__input::placeholder { color: var(--muted); }
.waitlist__input:focus {
  outline: none;
  border-color: var(--sage);
  box-shadow: 0 0 0 4px var(--sage-50);
}
.waitlist__form .btn { white-space: nowrap; }
.waitlist__micro { margin-top: 18px; font-size: 14.5px; color: var(--muted); transition: color .3s var(--ease); }
.waitlist__micro.success { color: var(--sage-hover); font-weight: 600; }
.waitlist__blob1 { top: -80px; right: -100px; width: 380px; height: 380px; opacity: .6; }
.waitlist__blob2 { bottom: -120px; left: -90px; width: 360px; height: 360px; opacity: .5; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background: var(--raised);
  padding: clamp(44px, 6vw, 70px) var(--gutter) 40px;
  color: var(--muted);
}
.footer__inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}
.brand--footer .brand__word { font-size: 24px; }
.footer__tag { font-size: 14.5px; }
.footer__links { display: flex; gap: 26px; }
.footer__links a {
  font-size: 14.5px; font-weight: 500; color: var(--text-2);
  transition: color .25s var(--ease);
}
.footer__links a:hover { color: var(--sage-hover); }
.footer__fine {
  max-width: var(--maxw);
  margin: 28px auto 0;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  font-size: 13.5px;
  color: var(--muted);
}

/* ============================================================
   Scroll-reveal
   ============================================================ */
/* Hidden only when JS is on (html.js is set before paint) — no-JS sees content. */
.js .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .85s var(--ease), transform .85s var(--ease);
  will-change: opacity, transform;
}
.reveal.in { opacity: 1; transform: none; }

/* hero copy cascades in */
.hero__copy > .reveal:nth-child(1) { transition-delay: 0s; }
.hero__copy > .reveal:nth-child(2) { transition-delay: .09s; }
.hero__copy > .reveal:nth-child(3) { transition-delay: .18s; }
.hero__copy > .reveal:nth-child(4) { transition-delay: .27s; }

/* stagger children of grids that share a reveal */
.sides__grid .sidecard:nth-child(2) { transition-delay: .08s; }
.sides__grid .sidecard:nth-child(3) { transition-delay: .16s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; text-align: center; gap: 40px; }
  .hero__copy { display: flex; flex-direction: column; align-items: center; }
  .hero__sub { margin-left: auto; margin-right: auto; }
  .hero__cta { justify-content: center; }
  .hero__art { min-height: auto; margin-top: 8px; }   /* let the phone flow; no overlap with copy */
  .hero__scroll { display: none; }

  .feature__inner,
  .yearfeature__inner { grid-template-columns: 1fr; gap: 44px; }
  .feature--reverse .feature__text,
  .feature--reverse .feature__art { order: unset; }
  .feature__text { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .feature__body { margin-left: auto; margin-right: auto; }
  .feature__art { order: -1; }
  .yearfeature__art { min-height: 480px; order: -1; }

  .privacy__inner { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  body { font-size: 16px; }
  .nav__coming { display: none; }
  .sides__grid { grid-template-columns: 1fr; max-width: 420px; }
  .waitlist__form { flex-direction: column; }
  .footer__inner { flex-direction: column; align-items: flex-start; }
  .phone { --pw: min(72vw, 290px) !important; }
  .phone--hero-back { display: none; }
  .phone--year-back { display: none; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
  .phone, .blob { animation: none !important; }
  .squiggle path { stroke-dashoffset: 0 !important; }
}



