/* Tendlet marketing site
 * Palette + typography mirror the iOS app so the website and the
 * app feel like the same surface. Tokens come from
 * branding/tendlet_new_brand_assets/manifest.json.
 *
 * Architecture: single static stylesheet, mobile-first, no
 * framework. Layout uses CSS Grid + clamp() for typographic and
 * spatial fluidity. The phone-mockup chassis is shared across the
 * hero and three scenes so palette changes propagate in one place.
 */

:root {
  --cream:        #ECE5D6;
  --cream-soft:   #F5F0E3;
  --paper:        #FBF7EA;
  --forest:       #3B5A3A;
  --forest-deep:  #2D4A2C;
  --terracotta:   #C97B5A;
  --gold:         #D9A86A;
  --ink:          #1F1B14;
  --ink-2:        #5C544A;
  --ink-3:        #8A8377;
  --hair:         rgba(60, 50, 30, 0.14);
  --hair-soft:    rgba(60, 50, 30, 0.07);

  --serif:  "EB Garamond", Georgia, "Times New Roman", serif;
  --sans:   "Inter", -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  --mono:   "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --radius: 18px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 0, 0.04);
  --shadow:    0 1px 2px rgba(20, 20, 0, 0.04), 0 8px 32px rgba(20, 20, 0, 0.06);
  --shadow-lg: 0 1px 2px rgba(20, 20, 0, 0.05), 0 20px 50px rgba(40, 30, 10, 0.10), 0 60px 120px rgba(40, 30, 10, 0.08);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }
/* Sticky nav is ~68px tall — push anchor-link landings down so the
   section heading isn't hidden under it. */
html { scroll-padding-top: 80px; }

body {
  background: var(--cream);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  position: relative;
  overflow-x: hidden;
}

/* Paper grain — sits over everything at very low opacity to give
   the "field guide" promise some texture. Pointer-events off so it
   doesn't intercept clicks. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: url("/images/noise.svg");
  background-size: 240px 240px;
  opacity: 0.18;
  mix-blend-mode: multiply;
  pointer-events: none;
  z-index: 1;
}
main, .foot { position: relative; z-index: 2; }
/* Nav sits in its own layer above the page — otherwise absolutely-
   positioned scene decorations (e.g. .scene__portrait at z:2) can
   render over the sticky nav once scrolled into view and intercept
   header clicks. Sticky+top declared in the .nav rule below. */
.nav { z-index: 50; }

a {
  color: var(--forest);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color .15s ease, color .15s ease;
}
a:hover { border-bottom-color: var(--forest); }

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

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

/* ─────────── Nav ─────────── */

.nav {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 18px clamp(20px, 5vw, 56px);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--cream) 88%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--hair);
}

.nav__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 22px;
  color: var(--ink);
  border-bottom: none;
  margin-right: auto;
}
.nav__brand img { border-radius: 7px; }

.nav__links {
  display: flex;
  gap: 28px;
  font-size: 14px;
}
.nav__links a { color: var(--ink-2); }
.nav__links a:hover { color: var(--forest); border-bottom-color: var(--forest); }
.nav__meta {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
}

@media (max-width: 720px) {
  .nav__links { display: none; }
  .nav__meta { display: none; }
}

/* ─────────── Hero ─────────── */

.hero {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: clamp(20px, 5vw, 80px);
  align-items: center;
  padding: clamp(56px, 9vw, 112px) clamp(20px, 5vw, 56px) clamp(40px, 7vw, 96px);
  max-width: 1280px;
  margin: 0 auto;
}

/* Above-the-fold sprig — half-size terracotta-ink echo of the
   story-divider ornament. Lifts the field-guide identity into the
   first 600px so it isn't deferred until the story section. */
.hero__sprig {
  display: block;
  width: 56px;
  height: 24px;
  color: var(--terracotta);
  opacity: 0.75;
  margin: 0 0 16px;
}

.hero__eyebrow {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terracotta);
  margin: 0 0 22px;
}

.hero__copy h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(44px, 5.4vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
  margin: 0 0 26px;
  color: var(--ink);
}
.hero__copy h1 em {
  font-style: italic;
  color: var(--forest);
  font-weight: 500;
}
.hero__line {
  display: block;
}

.hero__lede {
  font-size: clamp(16px, 1.4vw, 19px);
  line-height: 1.55;
  color: var(--ink-2);
  margin: 0 0 32px;
  max-width: 520px;
}

.hero__cta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  margin-bottom: 28px;
}

/* Trust bar — promotes the "no analytics / no ads / iCloud-only"
   posture above the fold. The single biggest differentiator in
   this space, was buried in the footer before. */
.trustbar {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: clamp(14px, 2vw, 28px);
  flex-wrap: wrap;
  /* Switched from mono to sans — mono uppercase fought the surrounding
     serif warmth. Sans at the same size, with the dots carrying the
     decorative load, keeps the line quiet but warmer. */
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--ink-2);
}
.trustbar li {
  display: flex;
  align-items: center;
  gap: 6px;
}
.trustbar__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forest);
  opacity: 0.55;
}
.trustbar__dot--gold {
  background: var(--gold);
  opacity: 1;
}
.trustbar li:first-child {
  color: var(--ink-2);
  font-weight: 600;
}

/* Hero phone + halo. The halo is a single soft watercolour blob
   behind the phone, in muted gold, to give the cream-on-cream
   hero some depth. */
.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
}
/* Duotone halo — gold lobe centred behind the phone, terracotta
   wash drifting top-left, forest tint creeping in from bottom-right.
   Three offset radial gradients = depth without a stock-photo
   gradient feel. */
.hero__halo {
  position: absolute;
  inset: -12% -5% -8% -5%;
  background:
    radial-gradient(40% 38% at 30% 28%,
      rgba(201, 123, 90, 0.22) 0%,
      rgba(201, 123, 90, 0) 70%),
    radial-gradient(50% 45% at 72% 70%,
      rgba(59, 90, 58, 0.10) 0%,
      rgba(59, 90, 58, 0) 70%),
    radial-gradient(55% 50% at 50% 50%,
      rgba(217, 168, 106, 0.30) 0%,
      rgba(217, 168, 106, 0.08) 45%,
      rgba(217, 168, 106, 0) 75%);
  filter: blur(6px);
  pointer-events: none;
}

/* Floating UI fragments around the hero phone. Each is positioned
   absolutely against `.hero__art`, slightly rotated, with a soft
   shadow so the cream-on-cream hero gets layered depth without
   relying on a single banner image. */
.hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 14px;
  padding: 9px 14px;
  box-shadow:
    0 1px 2px rgba(20, 20, 0, 0.04),
    0 16px 32px rgba(20, 20, 0, 0.10);
  font-family: var(--sans);
  z-index: 1;
}
.hero__float-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(59, 90, 58, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
}
/* Real species illustration as a floating-fragment avatar — used
   for the Monstera card in the hero. Sits in a soft sage-tinted
   well so the white-bg PNG doesn't punch out of the warm hero. */
.hero__float-portrait {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  background: rgba(59, 90, 58, 0.08);
  padding: 2px;
  object-fit: contain;
}
.hero__float-check {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--forest);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.hero__float-spark {
  font-family: var(--serif);
  font-style: italic;
  color: var(--gold);
  font-size: 14px;
}
.hero__float-name {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.hero__float-sub {
  font-size: 10.5px;
  color: var(--ink-3);
  margin-top: 1px;
}
.hero__float--folk {
  top: 7%;
  left: -6%;
  transform: rotate(-4deg);
}
.hero__float--task {
  bottom: 14%;
  right: -4%;
  transform: rotate(3deg);
}
.hero__float--badge {
  top: 50%;
  right: -2%;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  padding: 7px 12px;
  transform: rotate(5deg);
  transition: opacity .3s ease, transform .3s ease;
}
/* At narrower desktop widths the badge no longer fits clear of the
   phone — fade it out gracefully instead of hard-cutting at the
   breakpoint. */
@media (max-width: 1024px) {
  .hero__float--badge {
    opacity: 0;
    transform: rotate(5deg) translateX(20px);
    pointer-events: none;
  }
}
@media (max-width: 880px) {
  .hero__float { display: none; }
}

@media (max-width: 880px) {
  .hero { grid-template-columns: 1fr; padding-top: 36px; gap: 36px; }
  .hero__art { order: -1; min-height: unset; }
}

/* ─────────── App Store badge ─────────── */

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px 12px 16px;
  background: var(--ink);
  color: #fff;
  border-radius: 12px;
  border: none;
  font-family: var(--sans);
  text-decoration: none;
  line-height: 1;
  transition: transform .15s ease, background .15s ease;
}
.appstore:hover {
  background: #000;
  transform: translateY(-1px);
  border-bottom-color: transparent;
}
.appstore svg { flex-shrink: 0; }
.appstore__small {
  display: block;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.03em;
  opacity: 0.85;
  margin-bottom: 2px;
  text-align: left;
}
.appstore__large {
  display: block;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-align: left;
}
/* Ghost variant for pre-launch: signals "coming" instead of
   pretending to be a live download. */
.appstore--ghost { background: var(--forest); }
.appstore--ghost:hover { background: var(--forest-deep); }

.textlink {
  color: var(--ink-2);
  font-size: 14px;
}
.textlink:hover { color: var(--forest); border-bottom-color: var(--forest); }

/* ─────────── Kicker (shared) ─────────── */

.kicker {
  font-family: var(--mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--terracotta);
  margin: 0 0 14px;
}
/* Chapter numeral that precedes each scene kicker (i. / ii. / iii.)
   — gives each scene a unique visual anchor at clamp(72–140px)
   intervals so the eye gets a foothold during long scrolls,
   echoing the field-guide trope of numbered chapters. Serif
   italic in the kicker's mono caps reads as a hand-set chapter
   mark stamped before the printed line. */
.kicker__num {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--gold);
  margin-right: 10px;
  vertical-align: -3px;
}

/* ─────────── Phone mockup chassis ─────────── */

.phone {
  position: relative;
  width: 280px;
  aspect-ratio: 9 / 19.5;
  background: #0c0c0c;
  border-radius: 44px;
  padding: 9px;
  margin: 0 auto;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 2px 4px rgba(0, 0, 0, 0.1),
    var(--shadow-lg);
}
.phone--lg {
  width: 320px;
  border-radius: 50px;
  padding: 10px;
}
.phone__notch {
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 104px;
  height: 26px;
  background: #000;
  border-radius: 14px;
  z-index: 2;
}
.phone--lg .phone__notch { width: 118px; height: 28px; top: 20px; }

.phone__screen {
  position: relative;
  width: 100%;
  height: 100%;
  background: var(--cream);
  border-radius: 38px;
  overflow: hidden;
  padding: 52px 20px 0;
  font-family: var(--sans);
  font-size: 11px;
  line-height: 1.45;
  color: var(--ink);
}
.phone--lg .phone__screen {
  border-radius: 42px;
  padding: 58px 22px 0;
  font-size: 12px;
}

/* Status bar (simulated). Real-looking SVG icons. */
.phone__statusbar {
  position: absolute;
  top: 14px;
  left: 26px;
  right: 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  z-index: 1;
}
.phone--lg .phone__statusbar { top: 17px; }
.phone__statusbar-icons {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink);
}

/* Greeting block */
.phone__kicker {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 12px;
  text-transform: uppercase;
}
.phone__kicker .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--forest);
}
.phone__greeting {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 26px;
  line-height: 1.05;
  margin: 0 0 6px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.phone__greeting em {
  font-style: italic;
  color: var(--forest);
  font-weight: 500;
}
.phone__subline {
  font-size: 11px;
  line-height: 1.5;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.phone__subline em { font-family: var(--serif); font-style: italic; color: var(--ink-2); }
.phone__subline strong { font-weight: 600; color: var(--ink); }

/* Weather strip */
.phone__weather {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 5px 12px 5px 10px;
  margin-bottom: 16px;
  font-size: 10.5px;
  color: var(--ink-2);
}
.phone__weather svg { color: var(--ink-3); }

/* Section headers within a phone */
.phone__section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.18em;
  color: var(--ink-3);
  margin: 16px 0 8px;
  text-transform: uppercase;
}
.phone__section-head--inline { margin-top: 0; margin-bottom: 10px; padding: 8px 13px 0; }
.phone__count {
  font-family: var(--serif);
  font-size: 16px;
  font-style: italic;
  color: var(--forest);
}

/* Today task rows */
.phone__task {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 10px 12px;
  margin-bottom: 6px;
}
.phone__task--med { border-left: 3px solid var(--terracotta); }
.phone__task-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1.5px solid var(--forest);
  flex-shrink: 0;
  margin-top: 2px;
}
/* In-phone body type uses sans — real iOS apps use SF, not a
   serif, for task verbs. Marketing-style headings like
   `.phone__greeting` keep their serif to read as the literary
   greeting it is. */
.phone__task-verb {
  font-family: var(--sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 1px;
  letter-spacing: -0.005em;
}
.phone__task-sub {
  font-size: 9.5px;
  color: var(--ink-3);
}

/* Tab bar (simulated) */
.phone__tabbar {
  position: absolute;
  bottom: 18px;
  left: 14px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  background: rgba(251, 247, 234, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hair);
  border-radius: 16px;
  padding: 8px 8px 6px;
  font-family: var(--sans);
  font-size: 8.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-3);
}
.phone__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1;
}
.phone__tab svg { stroke: currentColor; }
.phone__tab--on { color: var(--forest); }
.phone__tab--add {
  background: var(--forest);
  color: var(--cream);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: -16px;
  margin-bottom: -2px;
  box-shadow: 0 6px 14px rgba(59, 90, 58, 0.32);
  flex: 0 0 38px;
}

/* Folk detail screen */
.phone__folk-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.phone__folk-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--cream-soft);
  border: 1px solid var(--hair);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  overflow: hidden;
}
/* Illustrated variant — holds a real species PNG instead of an
   emoji. Padding tucks the artwork inside the well; object-fit
   keeps the figure centred without distortion. */
.phone__folk-avatar--illustrated { padding: 2px; }
.phone__folk-avatar--illustrated img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.phone__folk-name {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
.phone__folk-sub {
  font-size: 10px;
  color: var(--ink-3);
}

.phone__chips {
  display: flex;
  gap: 5px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.chip {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 999px;
  padding: 3px 9px;
  font-size: 9px;
  color: var(--ink-2);
  font-weight: 500;
}
.chip--terra {
  background: rgba(201, 123, 90, 0.12);
  border-color: rgba(201, 123, 90, 0.3);
  color: var(--terracotta);
}

.phone__card {
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 12px;
  padding: 11px 13px;
  margin-bottom: 8px;
}
.phone__card strong {
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  display: block;
  margin-bottom: 3px;
  letter-spacing: -0.005em;
}
.phone__card p {
  font-size: 10px;
  color: var(--ink-2);
  margin: 0;
  line-height: 1.5;
}
.phone__card--warn {
  background: rgba(201, 123, 90, 0.08);
  border-color: rgba(201, 123, 90, 0.28);
}
.phone__card--warn strong { color: var(--terracotta); }
.phone__card--list { padding: 8px 0; }

.phone__meal-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 0;
  font-size: 10.5px;
  color: var(--ink-2);
}
.phone__meal-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--terracotta);
}
.phone__meal-row strong { display: inline; font-size: 10.5px; color: var(--ink); }

/* Meal plan editor screen */
.phone__nav-title {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-align: center;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--hair);
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.phone__notice {
  background: rgba(59, 90, 58, 0.08);
  border: 1px solid rgba(59, 90, 58, 0.22);
  border-radius: 10px;
  padding: 9px 11px;
  font-size: 10px;
  color: var(--ink-2);
  margin-bottom: 14px;
}
.phone__notice strong {
  color: var(--forest);
  display: inline;
  font-family: var(--sans);
  font-weight: 600;
}

.phone__food {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  padding: 8px 13px;
  border-top: 1px solid var(--hair);
  font-size: 11px;
}
.phone__food:first-of-type { border-top: none; }
.phone__food > div:nth-of-type(1) {
  flex: 1;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.phone__food-sub {
  font-family: var(--sans);
  font-size: 9px;
  color: var(--ink-3);
  margin-top: 1px;
}
.phone__food-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--forest);
  flex-shrink: 0;
  margin-top: 6px;
}
.phone__qty {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-2);
  flex-shrink: 0;
}

.phone__avoid {
  display: flex;
  gap: 6px;
  align-items: center;
  background: rgba(201, 123, 90, 0.08);
  border: 1px solid rgba(201, 123, 90, 0.28);
  border-radius: 10px;
  padding: 7px 11px;
  font-size: 10px;
  color: var(--terracotta);
  margin-top: 8px;
}

/* Grocery list screen */
.phone__grocery-sub {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.16em;
  color: var(--ink-3);
  padding: 8px 13px 4px;
  text-transform: uppercase;
}
.phone__grocery {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 5px 13px;
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.phone__grocery em {
  font-family: var(--mono);
  font-style: normal;
  font-size: 9.5px;
  color: var(--ink-3);
  margin-left: auto;
}
.phone__grocery s {
  color: var(--ink-3);
  text-decoration-color: var(--ink-3);
}
.phone__box {
  width: 13px;
  height: 13px;
  border-radius: 3px;
  border: 1.4px solid var(--ink-3);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
}
.phone__box--checked {
  background: var(--forest);
  border-color: var(--forest);
}

/* ─────────── Scenes (alternating screenshot + copy) ─────────── */

.scenes {
  max-width: 1240px;
  margin: 0 auto;
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 56px) 0;
  display: flex;
  flex-direction: column;
  gap: clamp(72px, 10vw, 140px);
}

.scene {
  display: grid;
  grid-template-columns: 1fr 0.9fr;
  gap: clamp(28px, 5vw, 96px);
  align-items: center;
}
.scene--flip .scene__copy { order: 2; }
.scene--flip .scene__art  { order: 1; }

.scene__copy h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(30px, 3.8vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  margin: 0 0 18px;
  color: var(--ink);
}
.scene__copy h2 em {
  font-style: italic;
  color: var(--forest);
  font-weight: 500;
}
.scene__copy > p {
  font-size: clamp(16px, 1.3vw, 18px);
  line-height: 1.6;
  color: var(--ink-2);
  margin: 0 0 22px;
  max-width: 480px;
}

.scene__bullets {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.scene__bullets li {
  position: relative;
  padding-left: 22px;
  font-size: 14.5px;
  color: var(--ink-2);
}
.scene__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 12px;
  height: 1px;
  background: var(--terracotta);
}

.scene__art {
  display: flex;
  justify-content: center;
  position: relative;
}
.scene__art::before {
  content: "";
  position: absolute;
  inset: 0% 4%;
  background:
    radial-gradient(35% 30% at 28% 25%,
      rgba(201, 123, 90, 0.16) 0%,
      rgba(201, 123, 90, 0) 70%),
    radial-gradient(55% 50% at 50% 50%,
      rgba(217, 168, 106, 0.24) 0%,
      rgba(217, 168, 106, 0) 70%);
  filter: blur(8px);
  pointer-events: none;
}

@media (max-width: 880px) {
  .scene, .scene--flip { grid-template-columns: 1fr; gap: 36px; }
  .scene--flip .scene__copy,
  .scene--flip .scene__art { order: unset; }
}

/* ─────────── Anti-feature ("what it isn't") ─────────── */

.antifeat {
  background: var(--forest-deep);
  color: var(--cream);
  padding: clamp(64px, 9vw, 112px) clamp(20px, 5vw, 56px);
  margin-top: clamp(80px, 12vw, 140px);
  position: relative;
  overflow: hidden;
}
.antifeat::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url("/images/noise.svg");
  background-size: 240px 240px;
  opacity: 0.22;
  mix-blend-mode: overlay;
  pointer-events: none;
}
.antifeat__inner {
  max-width: 1100px;
  margin: 0 auto;
  position: relative;
}
.antifeat .kicker { color: var(--gold); margin-bottom: 28px; }
.antifeat__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(20px, 3vw, 40px);
}
.antifeat__item {
  border-top: 1px solid rgba(236, 229, 214, 0.18);
  padding-top: 24px;
}
.antifeat__x {
  display: inline-block;
  font-family: var(--serif);
  font-size: 28px;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
}
/* Varied negation glyphs across the trio so the three "Not"
   cards don't read as a rubber-stamped row. All three sit at
   matched optical weight (~28px serif equivalent); the strike
   and circle vary in family + form, not in mass, so the trio
   reads as three peer marks rather than two stamps and an
   underline. */
.antifeat__x--strike {
  font-weight: 400;
  font-size: 28px;
}
.antifeat__x--circle {
  font-family: var(--mono);
  font-size: 26px;
  font-weight: 500;
}
.antifeat__item h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 22px;
  margin: 0 0 10px;
  color: var(--cream);
  letter-spacing: -0.005em;
}
.antifeat__item p {
  font-size: 14.5px;
  line-height: 1.55;
  color: rgba(236, 229, 214, 0.78);
  margin: 0;
}
@media (max-width: 800px) {
  .antifeat__grid { grid-template-columns: 1fr; gap: 32px; }
}

/* ─────────── Story ─────────── */

.story {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 56px);
  border-top: 1px solid var(--hair);
  position: relative;
}
/* Hand-drawn botanical ornament — terracotta-ink leaf flanked by
   hairlines, sits above the kicker. The single illustrative beat
   on the page so the "field guide" promise has visual proof. */
.story__ornament {
  display: block;
  width: 120px;
  height: 48px;
  margin: 0 auto 32px;
  color: var(--terracotta);
  opacity: 0.85;
}
.story__inner {
  max-width: 680px;
  margin: 0 auto;
  text-align: center;
}
.story__inner h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  margin: 0 0 24px;
  letter-spacing: -0.005em;
}
.story__inner h2 em { font-style: italic; color: var(--forest); font-weight: 500; }
.story__inner p {
  font-family: var(--serif);
  font-size: clamp(17px, 1.4vw, 19px);
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 18px;
}
.story__sign {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--ink-3) !important;
  margin-top: 32px !important;
}

/* ─────────── FAQ ─────────── */

.faq {
  padding: clamp(64px, 10vw, 120px) clamp(20px, 5vw, 56px);
  max-width: 800px;
  margin: 0 auto;
}
.faq__intro {
  margin-bottom: 40px;
  text-align: center;
}
.faq__intro h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 0;
  letter-spacing: -0.005em;
}
.faq__item {
  border-top: 1px solid var(--hair);
  padding: 18px 0;
}
.faq__item:last-of-type { border-bottom: 1px solid var(--hair); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 19px;
  font-weight: 500;
  color: var(--ink);
  padding: 4px 30px 4px 0;
  position: relative;
  letter-spacing: -0.005em;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "+";
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  color: var(--ink-3);
  transition: transform .2s ease, color .2s ease;
  line-height: 0;
}
.faq__item[open] summary::after {
  content: "−";
  color: var(--forest);
}
.faq__item p {
  margin: 12px 0 4px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink-2);
  max-width: 640px;
}

/* ─────────── Closing ─────────── */

.closing {
  background: var(--cream-soft);
  border-top: 1px solid var(--hair);
  padding: clamp(72px, 10vw, 120px) clamp(20px, 5vw, 56px);
}
.closing__inner {
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.closing__icon {
  width: 80px;
  height: 80px;
  border-radius: 18px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow);
}
.closing h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(28px, 3.6vw, 42px);
  margin: 0 0 14px;
  letter-spacing: -0.005em;
}
.closing h2 em { font-style: italic; color: var(--forest); font-weight: 500; }
.closing > .closing__inner > p {
  font-size: 16px;
  color: var(--ink-2);
  margin: 0 0 28px;
  line-height: 1.55;
}

/* Single mailto button — replaces a mailto-POST form that didn't
   actually capture emails in any browser. Honest CTA, opens the
   user's mail client to draft a one-line note. */
.waitlist-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--forest);
  color: #fff;
  border-radius: 12px;
  padding: 13px 22px;
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  transition: background .15s ease, transform .15s ease;
  border: none;
  letter-spacing: -0.005em;
}
.waitlist-btn:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
  border-bottom-color: transparent;
}

.closing__fineprint {
  margin-top: 36px;
  margin-bottom: 32px;
  padding-top: 24px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-3);
  letter-spacing: 0.06em;
  line-height: 1.7;
  max-width: 38ch;
  margin-left: auto;
  margin-right: auto;
}

/* ─────────── Footer ─────────── */

.foot {
  padding: clamp(36px, 6vw, 56px) clamp(20px, 5vw, 56px) 48px;
  max-width: 1240px;
  margin: 0 auto;
}
.foot__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--hair);
}
.foot__mark {
  height: 26px;
  width: auto;
  opacity: 0.85;
}
.foot__links {
  display: flex;
  gap: 24px;
  font-size: 14px;
}
.foot__links a { color: var(--ink-2); }
.foot__legal {
  font-size: 12px;
  color: var(--ink-3);
  margin: 20px 0 0;
  max-width: 720px;
  line-height: 1.6;
}
.foot__legal a { color: var(--ink-2); }

/* Scenes nudge — quiet conversion offer after the three scenes,
   before the dark anti-feature slab. Single italic serif link with
   a hairline accent so it doesn't compete with the scene captions
   themselves. */
.scenes__nudge {
  margin: clamp(48px, 7vw, 88px) auto 0;
  padding-top: 32px;
  border-top: 1px solid var(--hair);
  text-align: center;
  max-width: 560px;
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  line-height: 1.4;
  color: var(--ink-2);
}
.scenes__nudge a {
  color: var(--forest);
  border-bottom: 1px solid rgba(59, 90, 58, 0.3);
  padding-bottom: 1px;
}
.scenes__nudge a:hover {
  border-bottom-color: var(--forest);
}

/* Closing stamp — small mono "v1.0 · summer 2026" label rotated
   like a library date-due card. Echoes the floating fragments
   around the hero phone so the page opens and closes on the same
   crafted note. */
.closing { position: relative; overflow: hidden; }
.closing__stamp {
  position: absolute;
  top: 28px;
  right: clamp(20px, 5vw, 56px);
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--terracotta);
  border: 1px solid rgba(201, 123, 90, 0.32);
  padding: 6px 12px;
  border-radius: 4px;
  transform: rotate(4deg);
  background: rgba(251, 247, 234, 0.6);
}
@media (max-width: 720px) { .closing__stamp { display: none; } }

/* Footer legal — split into warm (made-by line) and cold (trademark
   line) so the literary tone of the made-by line doesn't share a
   paragraph with Apple's mandatory trademark notice. */
.foot__legal--warm { margin-top: 20px; }
.foot__legal--cold {
  margin-top: 8px;
  font-size: 11px;
  color: var(--ink-3);
  opacity: 0.7;
}

/* Honour reduced motion: kill the translateY hovers and float-
   degrade transitions for users who've asked the OS to ease off
   on movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
  .appstore:hover, .waitlist-btn:hover { transform: none; }
}

/* ─────────── Scene portrait (illustrated character card) ─────────── */

/* Floating "Folk · 01" portrait card that drifts off the top-left
   of the Folk-detail phone in scene one. Holds a real species
   illustration from the library. Ambient breathing animation keeps
   it alive without being noisy — same period as a slow exhale. */
.scene__portrait {
  position: absolute;
  top: 4%;
  left: 0;
  width: 138px;
  background: var(--paper);
  border: 1px solid var(--hair);
  border-radius: 18px;
  padding: 14px 14px 10px;
  box-shadow:
    0 1px 2px rgba(20, 20, 0, 0.04),
    0 20px 44px rgba(40, 30, 10, 0.10);
  transform: rotate(-5deg);
  z-index: 2;
  animation: portrait-breathe 6s ease-in-out infinite;
  text-align: center;
}
.scene__portrait img {
  display: block;
  width: 110px;
  height: 110px;
  margin: 0 auto 6px;
  object-fit: contain;
}
.scene__portrait-stamp {
  display: inline-block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--terracotta);
  border-top: 1px solid var(--hair);
  padding-top: 8px;
  width: 100%;
}
@keyframes portrait-breathe {
  0%, 100% { transform: rotate(-5deg) translateY(0); }
  50%      { transform: rotate(-5deg) translateY(-6px); }
}
/* Honour reduced-motion: stop the breathing animation but keep
   the resting tilt + position so the composition still reads. */
@media (prefers-reduced-motion: reduce) {
  .scene__portrait { animation: none; }
}
/* At intermediate desktop widths the -5deg rotated card was
   clipping into the Sphynx inside the phone (same illustration
   doubled). Shrink it and shift it left so the two never overlap;
   below 880px we drop it entirely (stacked layout). */
@media (max-width: 1024px) {
  .scene__portrait {
    width: 116px;
    left: -10px;
    top: 0;
  }
  .scene__portrait img {
    width: 92px;
    height: 92px;
  }
}
/* Tighter intermediate step — between 940 and 1024px the phone
   column has narrowed enough that even the shrunken card crowds
   the phone's left edge. Push it further out-of-frame. */
@media (max-width: 940px) {
  .scene__portrait {
    left: -24px;
  }
}
@media (max-width: 880px) {
  .scene__portrait { display: none; }
}

/* ─────────── Species marquee ─────────── */

.marquee {
  margin: clamp(72px, 10vw, 120px) 0 0;
  padding: clamp(48px, 7vw, 80px) 0 clamp(40px, 6vw, 64px);
  background: linear-gradient(180deg,
    rgba(217, 168, 106, 0.06) 0%,
    rgba(217, 168, 106, 0) 100%);
  border-top: 1px solid var(--hair);
  text-align: center;
  overflow: hidden;
}
.marquee__kicker {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(20px, 2.2vw, 26px);
  color: var(--ink-2);
  margin: 0 0 36px;
}
.marquee__track {
  position: relative;
  width: 100%;
  overflow: hidden;
  /* Soft cream-fade on both edges so the strip suggests the list
     continues beyond the viewport instead of hard-cutting. */
  -webkit-mask-image: linear-gradient(90deg,
    transparent 0%, #000 8%, #000 92%, transparent 100%);
  mask-image: linear-gradient(90deg,
    transparent 0%, #000 8%, #000 92%, transparent 100%);
  display: flex;
  width: 100%;
}
/* Both rows sit side-by-side in the track and animate together.
   When the track has translated -50% (one row-width), the second
   identical row is now where the first started — invisible reset
   to translate(0) makes the loop seamless. */
.marquee__track { animation: marquee-scroll 60s linear infinite; }
.marquee__row {
  display: flex;
  gap: clamp(20px, 4vw, 60px);
  list-style: none;
  margin: 0;
  padding: 0 clamp(10px, 2vw, 30px) 0 0;
  flex-shrink: 0;
}
.marquee__row li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--ink-3);
}
.marquee__row img {
  width: clamp(60px, 8vw, 88px);
  height: clamp(60px, 8vw, 88px);
  object-fit: contain;
  transition: transform .3s ease;
}
.marquee__row li:hover img {
  transform: scale(1.08) translateY(-2px);
}
.marquee__count {
  margin-top: 32px;
  font-family: var(--mono);
  font-size: clamp(10px, 2.6vw, 11px);
  letter-spacing: clamp(0.08em, 0.4vw, 0.16em);
  text-transform: uppercase;
  color: var(--terracotta);
  white-space: nowrap;
}
@keyframes marquee-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
  .marquee__row + .marquee__row { display: none; }
}

/* ─────────── Privacy page ─────────── */

.prose {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(48px, 8vw, 80px) clamp(20px, 5vw, 32px) 80px;
}
.prose .pullquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 20px;
  color: var(--forest);
  border-left: 2px solid var(--gold);
  padding-left: 16px;
  margin: 0 0 32px;
  line-height: 1.4;
}
.prose h1 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: clamp(34px, 4vw, 46px);
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}
.prose h2 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 24px;
  margin: 48px 0 12px;
  color: var(--ink);
  letter-spacing: -0.005em;
}
.prose h3 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 18px;
  margin: 32px 0 8px;
  color: var(--ink);
}
.prose p, .prose li {
  color: var(--ink-2);
  line-height: 1.7;
}
.prose ul { padding-left: 22px; }
.prose code {
  background: var(--paper);
  padding: 1px 6px;
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 13px;
}
.prose strong { color: var(--ink); font-weight: 600; }
/* Body-text links need an actual affordance — bare forest-green text
   reads as emphasis, not as something clickable. Give every in-prose
   anchor a soft underline that thickens on hover. */
.prose p a,
.prose li a {
  color: var(--forest);
  border-bottom: 1px solid color-mix(in srgb, var(--forest) 35%, transparent);
  padding-bottom: 1px;
}
.prose p a:hover,
.prose li a:hover {
  border-bottom-color: var(--forest);
  color: var(--forest-deep);
}
.prose .meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-3);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 32px;
}
.prose hr {
  border: none;
  border-top: 1px solid var(--hair);
  margin: 40px 0;
}
