/* ── Lumeli marketing site — Sage & Clay, tokens verbatim from the product ──
   Standalone static site: intentionally plain CSS, no build step. */

:root {
  --cream: #f8eeda;       /* site background */
  --cream-soft: #f9f3e4;  /* header + lifted section washes */
  --cream-deep: #f1e2c2;
  --linen: #faf7f2;
  --linen-deep: #f3eee5;
  --sage-panel: #eef0e9;
  --sage-soft: #e3e8de;
  --sage-line: #dde2d6;
  --card-line: #e9e4da;
  --ink: #33403a;
  --ink-soft: #5c6b63;
  --ink-faint: #93a099;
  --clay: #c4704f;
  --clay-deep: #a34f2e;
  --clay-tint: #f7e8e0;
  --sage-tint: #e9ede4;
  --sea: #6e8b7b;
  --sea-tint: #e4ede7;
  --gold: #b98a2e;
  --gold-tint: #f6ecd7;
  --card: #ffffff;
  --radius: 12px;
  --radius-lg: 16px;
  --shadow-soft: 0 2px 10px rgba(151, 139, 115, 0.07);
  --shadow-lift: 0 6px 22px rgba(151, 139, 115, 0.12);
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Nunito Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  position: relative;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1336px; margin: 0 auto; padding: 0 80px; }
@media (max-width: 640px) {
  .container { padding: 0 28px; } /* phones get sane gutters */
}
.container.narrow { max-width: 780px; text-align: center; }

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--card); color: var(--ink); padding: 10px 18px;
  border-radius: 0 0 var(--radius) 0; z-index: 100;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--sea);
  outline-offset: 2px;
}

/* ── Type ── */
h1, h2, h3 { font-family: var(--font-display); font-weight: 550; line-height: 1.12; color: #574e40; }
h1 { font-size: clamp(40px, 6vw, 78px); letter-spacing: -0.01em; line-height: 1.0; }
h2 { font-size: clamp(28px, 3.6vw, 46px); margin-bottom: 18px; }
h3 { font-size: 23px; margin-bottom: 10px; }

.body-lg { font-size: 18px; color: var(--ink-soft); max-width: 42em; margin: 0 auto; }
.microcopy { font-size: 13px; color: var(--ink-faint); }

/* ── Buttons ── */
.btn {
  display: inline-block; border: none; cursor: pointer;
  font-family: var(--font-body); font-weight: 700; font-size: 15px;
  border-radius: 999px; text-decoration: none; text-align: center;
  transition: background 0.15s, transform 0.12s, box-shadow 0.15s;
}
.btn-primary { background: var(--clay); color: #fff; padding: 12px 28px; }
.btn-primary:hover { background: #a2beab; transform: translateY(-1px); box-shadow: var(--shadow-lift); }
.btn-nav { padding: 9px 20px; font-size: 13.5px; }
.btn-lg { padding: 15px 36px; font-size: 16.5px; }

/* ── Nav ── */
.nav {
  position: relative;
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px max(80px, calc((100% - 1440px) / 2));
}
/* hand-drawn dash border along the header's full width */
.nav::after {
  content: '';
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 3px; /* dash.png's native height — tiles unstretched */
  background: url('images/dash.png') repeat-x left center;
}
.nav-logo-link { display: inline-flex; }
.nav-logo { display: block; height: 33px; width: auto; }
.wordmark {
  font-family: var(--font-display); font-weight: 600; font-size: 23px;
  letter-spacing: 0.02em; color: var(--ink); user-select: none;
}
.logo-i { position: relative; }
.logo-tittle {
  position: absolute; top: 0.1em; left: 50%; transform: translateX(-50%);
  width: 0.19em; height: 0.19em; border-radius: 50%; background: var(--clay);
}

/* ── Hero: copy left, artwork flush top-right, scaling with the window ──
   The art holds ~56% of the viewport width at its native aspect, so the
   original composition (art beside a fixed-measure text column) persists —
   wider browsers simply get a proportionally larger scene. */
.hero {
  position: relative; padding: 96px 0 110px;
  min-height: 40.5vw; /* the 56vw-wide art's height at its aspect ratio */
  display: flex; align-items: center;
  overflow: hidden;
}
.hero > .container { max-width: 1640px; width: 100%; } /* edge matches the nav's */
.hero-copy { position: relative; z-index: 1; text-align: left; max-width: 640px; transform: translateY(-15px); }
/* on large windows the headline keeps growing toward the 50% mark instead
   of leaving dead cream — both curves are continuous at the 1300px seam
   (6vw hits the 78px cap exactly there) */
@media (min-width: 1300px) {
  .hero-copy { max-width: 50vw; }
  /* 78px at 1300 wide scales linearly so the two-line headline's width
     tracks ~50% of the viewport as the window grows */
  .hero-copy h1 { font-size: calc(6vw); }
}
.hero-sub {
  font-size: 19px; color: var(--ink-soft);
  max-width: 26em; margin: 22px 0 0; line-height: 1.65;
}
.hero-cta {
  margin-top: 34px;
  display: flex; align-items: center; gap: 18px; flex-wrap: wrap;
}
/* the art always spans the hero's FULL height (top edge to bottom edge):
   on wide screens the 40.5vw min-height drives both; when the text column
   plus its fixed paddings is the taller of the two, the art scales up to
   match, keeping the copy vertically centered against it */
.hero-art2 {
  position: absolute; top: 0; bottom: 0; right: 0;
}
.hero-art2-main {
  display: block; height: 100%; width: auto; margin-left: auto;
}

/* the side-by-side holds until true tablet width — the copy may overlap
   the scene's open sky a little on the way down */
@media (max-width: 900px) {
  .hero { padding-bottom: 0; min-height: 0; display: flex; flex-direction: column; }
  .hero > .container { order: 1; }
  .hero-art2 { position: relative; order: 2; margin-top: 44px; text-align: right; }
  .hero-art2-main { height: auto; width: 100%; max-width: 720px; margin-left: auto; }
  .hero-copy { transform: none; }
}

/* ── Firefly wisps: soft glowing motes drifting over the hero ───────
   Layered above the artwork and copy backdrop; each wisp breathes in and
   out on its own long cycle while drifting slightly, like lens dust
   catching light. Negative delays keep the field mid-motion on load. */
.wisps {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 2; /* above the art (and copy text, but they never overlap it) */
  overflow: hidden;
}
.wisp {
  --size: 10px;
  --peak: 0.8;
  position: absolute;
  width: var(--size); height: var(--size);
  border-radius: 50%;
  /* bright white heart dissolving through gold into the cream */
  background: radial-gradient(circle, rgba(255, 255, 252, 0.95), rgba(240, 220, 178, 0.5) 45%, rgba(214, 181, 118, 0.22) 65%, transparent 78%);
  box-shadow: 0 0 14px 6px rgba(185, 138, 46, 0.32);
  opacity: 0;
  animation: wisp-breathe var(--cycle, 9s) ease-in-out infinite;
}
@keyframes wisp-breathe {
  0%, 100% { opacity: 0; transform: translate(0, 0); }
  35% { opacity: var(--peak); }
  50% { opacity: var(--peak); transform: translate(var(--dx, 10px), var(--dy, -14px)); }
  70% { opacity: 0; }
}
.wisp:nth-child(1) { top: 16%; left: 1.5%; --size: 16px; --cycle: 8.5s; --peak: 0.9; --dx: 12px; --dy: -16px; }
.wisp:nth-child(2) { top: 8%; left: 20%; --size: 6px; --cycle: 11s; animation-delay: -4s; --peak: 0.7; --dx: -9px; --dy: -12px; }
.wisp:nth-child(3) { top: 40%; left: 10%; --size: 40px; --cycle: 13s; animation-delay: -7s; --peak: 0.7; --dx: 14px; --dy: -10px; }
.wisp:nth-child(4) { top: 60%; left: 3%; --size: 9px; --cycle: 9.5s; animation-delay: -2.5s; --peak: 0.85; --dx: -11px; --dy: -15px; }
.wisp:nth-child(5) { top: 74%; left: 24%; --size: 5px; --cycle: 12s; animation-delay: -9s; --peak: 0.72; --dx: 8px; --dy: -18px; }
.wisp:nth-child(6) { top: 24%; left: 31%; --size: 12px; --cycle: 10.5s; animation-delay: -5.5s; --peak: 0.82; --dx: -13px; --dy: -9px; }
.wisp:nth-child(7) { top: 66%; left: 54%; --size: 36px; --cycle: 14s; animation-delay: -11s; --peak: 0.62; --dx: 10px; --dy: -13px; }
.wisp:nth-child(8) { top: 46%; left: 58%; --size: 7px; --cycle: 10s; animation-delay: -6.5s; --peak: 0.78; --dx: -8px; --dy: -11px; }
.wisp:nth-child(9) { top: 12%; left: 48%; --size: 20px; --cycle: 12.5s; animation-delay: -3s; --peak: 0.75; --dx: 11px; --dy: -14px; }
.wisp:nth-child(10) { top: 82%; left: 12%; --size: 44px; --cycle: 15s; animation-delay: -8s; --peak: 0.55; --dx: -12px; --dy: -12px; }

/* ── Section rhythm & washes ── */
section { padding: 96px 0; }

.why { position: relative; padding-top: 48px; } /* halves the hero → bird gap */
.accent-clay { color: var(--clay); }
/* headline phrases break between spans, never inside them */
.nowrap { white-space: nowrap; }
/* the Why column is wide enough for its one-line headline; the paragraph
   keeps its own comfortable measure via .body-lg's max-width */
.why .container.narrow { max-width: 1040px; }
/* the philosophy lede needs the room for its one-sentence-per-line break */
.calm .container.narrow { max-width: 1140px; }

/* ── How-it-works beats ── */
.beat {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px;
  align-items: center; margin-bottom: 88px;
}
.beat:last-child { margin-bottom: 0; }
.beat-flip .beat-copy { order: 2; }
.beat-flip .beat-art { order: 1; }
.beat-art { position: relative; }
/* dashed squiggle trailing in from the left margin; its star tip lands
   just left of the headline like a hand-drawn bullet */
.beat-squiggle { position: relative; }
.beat-squiggle-art {
  position: absolute;
  top: 3%;
  left: 26px;
  width: 45px; height: auto;
  pointer-events: none;
}
@media (max-width: 1500px) {
  .beat-squiggle-art { display: none; } /* no margin room to trail through */
}
.beat-copy p { color: var(--ink-soft); margin-bottom: 14px; }
.beat-copy p:last-child { margin-bottom: 0; }
.beat-list {
  list-style: none; padding: 0;
  margin: 0 0 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.beat-list li {
  color: var(--ink-soft);
  padding-left: 20px; position: relative;
}
.beat-list li::before {
  content: '';
  position: absolute; left: 2px; top: 0.62em;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--clay);
}
.pull-quote {
  font-family: var(--font-display); font-style: italic; font-size: 17px;
  color: var(--ink); margin-top: 20px;
  border-left: 2px solid var(--gold); padding-left: 16px;
}

/* Beat vignettes */
.vign-card {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fffbf0; border: 1px solid var(--card-line);
  border-radius: var(--radius-lg); padding: 16px 18px; box-shadow: var(--shadow-soft);
  max-width: 420px;
}
.vign-wide { max-width: 470px; } /* Meadowlark title holds one line */
.vign-offset { margin: 14px 0 0 44px; box-shadow: var(--shadow-lift); }
.vign-text { display: flex; flex-direction: column; gap: 7px; flex: 1; min-width: 0; }
.vign-title { font-size: 14px; font-weight: 700; line-height: 1.35; white-space: nowrap; }
/* right rail: type pill top, actions bottom — like the app's signal-side */
.vign-side {
  align-self: stretch; flex-shrink: 0;
  display: flex; flex-direction: column;
  justify-content: space-between; align-items: flex-end; gap: 10px;
}
.vign-type {
  display: inline-block;
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em;
  padding: 2px 8px; border-radius: 999px;
}
.vign-type.type-task { background: var(--clay-tint); color: var(--clay); }
.vign-type.type-follow_up { background: var(--sage-soft); color: var(--ink-soft); }

.day-arc { position: relative; display: flex; justify-content: space-between; padding: 0; width: 100%; }
.arc-icon { display: block; width: min(110px, 90%); height: auto; margin-bottom: 14px; }
.arc-line {
  position: absolute; top: 120px; left: 0; right: 0; height: 2px; /* threads the dot centers below the icons */
  background: linear-gradient(90deg, var(--gold), var(--clay), var(--sea), var(--ink-faint));
  opacity: 0.35; border-radius: 2px;
}
.arc-stop { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; width: auto; }
.arc-dot { width: 12px; height: 12px; border-radius: 50%; border: 3px solid var(--linen); box-shadow: var(--shadow-soft); margin-top: -4px; }
.arc-name { font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; color: var(--ink-faint); }
.arc-word { font-family: var(--font-display); font-style: italic; font-size: 15.5px; color: var(--ink); }

.away-card {
  position: relative; z-index: 1;
  background: #fffbf0; border: 1px solid var(--card-line);
  border-radius: var(--radius-lg); padding: 22px 24px; box-shadow: var(--shadow-lift);
  max-width: 440px;
}
/* steaming coffee resting past the card's lower-right, sketch-style */
.away-coffee {
  position: absolute; right: max(-110px, -11vw); bottom: -122px;
  width: 230px; height: auto;
  pointer-events: none;
}
@media (max-width: 900px) {
  .away-coffee { display: none; } /* stacked view has no corner to rest in */
}
.away-title { font-family: var(--font-display); font-weight: 600; font-size: 16.5px; margin-bottom: 10px; }
.away-line { font-size: 13.5px; color: var(--ink-soft); margin-bottom: 9px; }
/* mirrors the app's away-toast list rows */
.away-list { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-direction: column; gap: 7px; }
.away-list li { display: flex; align-items: baseline; gap: 7px; font-size: 12.5px; }
.away-list .check { flex-shrink: 0; }
.away-summary {
  color: var(--ink); font-weight: 600;
  white-space: nowrap;
  background: #f8f2e1; /* subtle pill behind each handled task */
  border-radius: 999px; padding: 3px 11px;
}
.away-meta { color: var(--ink-faint); font-size: 11px; flex-shrink: 0; margin-left: auto; }
/* narrower views: rows wrap — the meta drops beneath its pill instead of
   spilling past the card edge */
@media (max-width: 1240px) {
  .away-list li { flex-wrap: wrap; }
  .away-summary { white-space: normal; }
  .away-meta { margin-left: 24px; flex-basis: 100%; text-align: left; }
}
.away-saved {
  margin-top: 12px; font-size: 13px; font-weight: 700; color: var(--sea);
  background: var(--sea-tint); border-radius: 999px; padding: 6px 14px; display: inline-block;
}
.check { color: var(--sea); font-weight: 800; }

/* ── Philosophy ── */
.calm { text-align: center; }
.calm-lede {
  font-family: var(--font-display); font-weight: 450; font-size: clamp(20px, 2.6vw, 25px);
  line-height: 1.5; color: var(--ink); max-width: 50em; margin: 0 auto;
}
.moments {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 56px;
  margin: 56px auto;
}
.moment {
  position: relative;
  background-color: var(--cream);
  border: none;
  border-radius: var(--radius-lg); padding: 40px 26px;
  text-align: center;
}
/* borders draw themselves in via the shared .trust-sketch tracer */
.moments.in .moment:nth-child(1) .trust-sketch-tracer { transition-delay: 0.7s; }
.moments.in .moment:nth-child(2) .trust-sketch-tracer { transition-delay: 1s; }
.moments.in .moment:nth-child(3) .trust-sketch-tracer { transition-delay: 1.3s; }
.moment-icon {
  display: block; width: auto; height: auto;
  max-width: min(230px, 80%); max-height: 154px; /* height-matched across all three */
  margin: 0 auto 22px;
}
.moment-voice {
  font-family: var(--font-display); font-style: italic; font-size: 16.5px;
  line-height: 1.5; color: var(--ink); margin: 10px 0 12px;
}
.moment-caption { font-size: 13.5px; color: var(--ink-soft); }
.calm-close { color: var(--ink-soft); max-width: 40em; margin: 0 auto; }

/* storybook bird: four frames crossfaded by scroll (script.js sets
   data-frame 0-3); the box keeps the final frame's proportions */
.why-bird {
  position: relative; width: 200px; aspect-ratio: 400 / 441;
  margin: 0 auto 36px;
}
.why-bird-frame {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: contain;
  opacity: 0; transition: opacity 0.6s ease; /* frames breathe in AND out — symmetric fade */
}
.why-bird[data-frame="0"] .why-bird-frame:nth-child(1),
.why-bird[data-frame="1"] .why-bird-frame:nth-child(2),
.why-bird[data-frame="2"] .why-bird-frame:nth-child(3),
.why-bird[data-frame="3"] .why-bird-frame:nth-child(4) { opacity: 1; }

/* ── Before / After Lumeli ── */
.beforeafter { padding: 0 0 135px; }
/* scroll-driven crossfade (script.js adds .enhanced when motion is allowed):
   the stage anchors briefly (short sticky runway) so Before holds and the
   dissolve gets room to register — then releases into the Signals band */
/* the layout stays fully static — script.js consumes wheel input while the
   stage is at rest to drive the Before→After dissolve in place */
.enhanced .ba-block { margin-bottom: 0; }
.enhanced .ba-block:nth-child(2) {
  position: absolute; top: 0; left: 0; right: 0;
  width: 100%; opacity: 0;
}
/* the After scene's own entrance animations are superseded by the crossfade */
.enhanced .ba-block:nth-child(2) .fade-up,
.enhanced .ba-block:nth-child(2) .pop-in {
  opacity: 1; transform: none; transition: none;
}
.ba-sticky { position: relative; }
.ba-block {
  display: flex; justify-content: center;
  margin-bottom: 96px;
}
.ba-block:last-child { margin-bottom: 0; }
/* the script label sits in open space to the LEFT of the artwork with only
   a whisper of overlap; the composite (label + art) is what gets centered,
   so the pair shifts right by half the label's overhang */
.ba-scene {
  position: relative;
  width: min(760px, 100%);
  transform: translateX(min(115px, 8vw));
}
.ba-art { display: block; width: 100%; height: auto; }
/* the scenes drift in more slowly, and only after their script label lands */
.ba-art.fade-up { transition-duration: 1.5s; transition-delay: 0.65s; }
.ba-label {
  position: absolute; top: 0; left: -13vw;
  width: 14vw; height: auto;
  z-index: 1;
}
@media (max-width: 900px) {
  .ba-scene { transform: none; }
  .ba-label { position: static; margin: 0 0 16px; display: block; }
}

/* ── Showcase: intro copy left, Signals mockup right ── */
.showcase {
  /* the band's torn top edge rises halfway into the gap after the After
     illustration; padding compensates so the content itself doesn't move */
  margin-top: -60px;
  padding: 150px 0 130px;
  background: url('images/signals_bg.png') no-repeat center calc(50% - 15px) / 100% 93%;
}
.showcase .container { max-width: 1640px; }
.showcase-split {
  display: grid; grid-template-columns: 0.85fr 1.15fr;
  gap: 63px; align-items: center; /* wider breath between copy and mockup */
}
.showcase-copy { text-align: left; transform: translateY(-40px); }
/* the bird's top edge lines up with the mockup's top edge across the split */
.showcase-split { position: relative; }
.showcase-bird {
  position: absolute; top: -30px; left: 0;
  width: clamp(180px, 16vw, 250px); height: auto;
  pointer-events: none;
}
.showcase .container { position: relative; }
/* the pencil rests across the mockup's lower-right corner */
.showcase-pencil {
  position: absolute; right: 70px; bottom: 22px;
  width: clamp(200px, 21vw, 310px); height: auto;
  pointer-events: none;
  z-index: 1;
}
@media (max-width: 900px) {
  .showcase-bird { position: static; margin: 0 0 26px; display: block; }
  .showcase-copy { transform: none; }
}
.showcase-copy .body-lg { margin: 0; }
.showcase .mock-wrap { margin-top: 0; }
.showcase .mock-viewport { margin: 0 0 0 auto; } /* hug the right edge */

@media (max-width: 900px) {
  .showcase-split { grid-template-columns: 1fr; gap: 36px; }
}

/* ── Client section ── */
.client { text-align: center; }
.client .mock-wrap { margin-top: 56px; }

/* ── Privacy ── */
.privacy { text-align: center; padding-top: 40px; }
.trust { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 52px; }
.trust-card {
  position: relative;
  background-color: var(--cream);
  border: none;
  border-radius: var(--radius-lg); padding: 36px 24px;
  text-align: center;
}
/* the sketch lives as an inline SVG whose mask tracer literally draws the
   border around the perimeter, pencil-style, once the content has settled */
.trust-sketch {
  position: absolute; inset: 0; width: 100%; height: 100%;
  pointer-events: none; overflow: visible;
}
.trust-sketch-tracer {
  stroke-dasharray: 100;
  stroke-dashoffset: 100; /* fully undrawn */
}
.trust.in .trust-sketch-tracer,
.moments.in .trust-sketch-tracer {
  stroke-dashoffset: 0;
  transition: stroke-dashoffset 1.5s ease-in-out;
}
.trust.in .trust-card:nth-child(1) .trust-sketch-tracer { transition-delay: 0.7s; }
.trust.in .trust-card:nth-child(2) .trust-sketch-tracer { transition-delay: 1s; }
.trust.in .trust-card:nth-child(3) .trust-sketch-tracer { transition-delay: 1.3s; }
.trust-icon {
  display: block; width: auto; height: auto;
  max-width: 60%; max-height: 110px; /* height-matched across the trio */
  margin: 0 auto 18px;
}
.trust-card h3 { font-size: 18px; }
.trust-card p { font-size: 14.5px; color: var(--ink-soft); }

/* ── Final CTA ── */
.get { position: relative; overflow: hidden; text-align: center; padding-bottom: 120px; }
.get::before {
  content: '';
  position: absolute; inset: -60% -20% auto; height: 130%;
  background: radial-gradient(110% 65% at 50% -15%, rgba(185, 138, 46, 0.09), transparent 65%);
  pointer-events: none;
}
.get .container { position: relative; }
.cta-form { margin-top: 36px; }
/* visually hidden but still announced to screen readers */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  clip: rect(0 0 0 0); overflow: hidden; white-space: nowrap;
}
.cta-row { display: flex; justify-content: center; gap: 10px; max-width: 480px; margin: 0 auto 14px; }
.cta-row input {
  flex: 1; min-width: 0;
  font: inherit; font-size: 15px; color: var(--ink);
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: 999px; padding: 12px 22px;
}
.cta-row input::placeholder { color: var(--ink-faint); }
.cta-note {
  font-family: var(--font-display); font-style: italic;
  font-size: 16px; color: var(--sea); margin: 6px 0 14px;
}

/* ── Footer: full-bleed artwork band with the brand centered in its sky ── */
.footer {
  position: relative;
  width: 100%;
  margin-top: 50px;
  aspect-ratio: 1774 / 707; /* shows the artwork edge to edge, uncropped */
  background: url('images/footer_bg.jpg') no-repeat center bottom / cover;
}
.footer-brand {
  position: absolute; top: calc(7% - 80px); left: 50%;
  transform: translateX(-50%);
  text-align: center;
}
.footer-logo { display: block; width: min(250px, 30vw); height: auto; margin: 0 auto; }
.footer-tag {
  font-size: 15px; font-weight: 400; color: #574e40;
  margin-top: 2px;
}
.footer-copyright {
  margin-top: 8px;
  font-size: 12.5px; color: rgba(87, 78, 64, 0.45); /* light against the sky */
  letter-spacing: 0.03em;
}

/* ══ Mockups ═════════════════════════════════════════════════════════
   Fixed 880px design stages, scaled as a unit by script.js. All inert. */

.mock-wrap { margin-top: 64px; user-select: none; }
.mock-stage { text-align: left; }
.mock-viewport { position: relative; width: 100%; max-width: 1040px; margin: 0 auto; }
.mock-viewport-signals { aspect-ratio: 880 / 720; }
.mock-viewport-mail { aspect-ratio: 880 / 520; }
.mock-stage { position: absolute; top: 0; left: 0; width: 880px; transform-origin: top left; }
.mock-stage-signals { height: 720px; }
.mock-stage-mail { height: 520px; }

.mock-window {
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift); overflow: hidden;
}
.mock-signals { position: absolute; top: 16px; left: 0; width: 640px; background: #f8f2e5; }
.mock-chrome {
  display: flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px;
  background: var(--linen); position: relative;
}
.dot { width: 11px; height: 11px; border-radius: 50%; }
.dot-r { background: #e8a79a; }
.dot-y { background: #ecd39a; }
.dot-g { background: #a9c3ae; }
.mock-chrome-title {
  position: absolute; left: 50%; transform: translateX(-50%);
  font-size: 11px; color: var(--ink-faint); font-weight: 700;
}

.mock-signals-body { padding: 22px 24px 26px; }
.mock-signals-head { display: flex; align-items: center; gap: 12px; }
.mock-h1 { font-family: var(--font-display); font-weight: 600; font-size: 21px; }
.mock-count-pill {
  font-size: 11px; font-weight: 800; color: var(--ink-soft);
  background: var(--sage-soft); border-radius: 999px; padding: 3px 11px;
}
.mock-greeting {
  font-family: var(--font-display); font-style: italic; font-size: 14.5px;
  color: var(--ink-soft); margin: 6px 0 16px;
}
.mock-group-label {
  font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-faint);
  margin: 0 0 9px 2px;
}
.mock-group-label.spaced { margin-top: 16px; }
.mock-group-count { font-weight: 700; opacity: 0.6; margin-left: 3px; }
.mock-signal {
  display: flex; align-items: flex-start; gap: 12px;
  background: #fffdf6; border: 1px solid var(--card-line);
  border-radius: var(--radius); padding: 13px 15px; margin-bottom: 10px;
  box-shadow: var(--shadow-soft);
}
.mock-arrow {
  width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 800;
}
.mock-arrow.up { color: var(--clay-deep); background: var(--clay-tint); }
.mock-arrow.down { color: var(--sea); background: var(--sea-tint); }
.mock-signal-text { display: flex; flex-direction: column; gap: 5px; min-width: 0; flex: 1; }
.mock-signal-title { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
.mock-signal-meta { display: flex; align-items: center; gap: 8px; }
.mock-pill {
  font-size: 10.5px; font-weight: 700; color: var(--ink-soft);
  background: var(--sage-soft); border-radius: 999px; padding: 3px 10px;
}
.mock-pill.pill-today { background: var(--gold-tint); color: var(--gold); }
.mock-chip {
  font-size: 10.5px; font-weight: 700; color: var(--ink-soft);
  background: var(--linen-deep); border-radius: 999px; padding: 3px 9px;
}
.mock-chip.gold-chip { background: var(--gold-tint); color: var(--gold); }
.mock-signal-sugg { font-size: 12px; font-style: italic; color: var(--ink-faint); line-height: 1.4; }
.mock-actions { display: flex; gap: 9px; align-self: flex-end; padding-bottom: 2px; }
.mock-actions i { font-style: normal; font-size: 12px; color: var(--ink-faint); opacity: 0.7; }
.mock-actions .zz { font-family: var(--font-display); font-style: italic; font-weight: 700; color: #8fb8d4; }

.mock-brief {
  position: absolute; top: 78px; left: 552px; width: 300px;
  background: var(--sage-panel); border: 1px solid var(--sage-line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-lift);
  padding: 20px 22px; transform: rotate(1.1deg);
}
.mock-label {
  display: block; font-size: 10.5px; font-weight: 800; text-transform: uppercase;
  letter-spacing: 0.1em; color: var(--ink-faint); margin-bottom: 7px;
}
.mock-label.gold { color: var(--gold); }
.mock-label.spaced { margin-top: 16px; }
.mock-brief-greeting {
  font-family: var(--font-display); font-style: italic; font-size: 14px;
  line-height: 1.5; color: var(--ink); margin-bottom: 14px;
}
.mock-hr { border: none; border-top: 1px solid var(--sage-line); margin: 0 0 14px; }
.mock-brief-row {
  display: flex; align-items: center; gap: 7px;
  font-size: 12.5px; color: var(--ink-soft); margin-bottom: 7px;
}
.mock-brief-row .mock-chip { margin-left: auto; }
.mock-brief-closing {
  font-family: var(--font-display); font-style: italic; font-size: 12.5px;
  line-height: 1.5; color: var(--ink);
  background: rgba(255, 255, 255, 0.55);
  border-radius: 10px; padding: 9px 12px; margin-top: 14px;
}

/* Mockup 2 — mail */
.mock-mail { position: absolute; top: 8px; left: 0; width: 880px; }
/* unified topbar, as in the app: traffic lights, signals pill, account
   tabs, then the clock and search field on the right */
.mock-topbar {
  display: flex; align-items: center; gap: 10px; height: 50px; padding: 0 14px;
  background: var(--linen); border-bottom: 1px solid var(--sage-line);
}
.mock-signals-pill {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--card); border-radius: 999px; padding: 5px 11px;
  color: var(--clay); font-weight: 800; font-size: 12px;
  margin: 0 4px;
}
.mock-signals-pill b {
  background: var(--clay); color: #fff; border-radius: 999px;
  font-size: 10px; padding: 1px 7px;
}
.mock-topbar-clock {
  margin-left: auto; font-size: 11.5px; color: var(--ink); flex-shrink: 0;
}
.mock-search {
  background: var(--card); border: 1px solid var(--sage-line); border-radius: 999px;
  padding: 6px 16px; font-size: 12px; color: var(--ink-faint);
  width: 168px; flex-shrink: 0;
}
.mock-tab {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
  border-radius: 999px; padding: 6px 15px; border: 1px solid transparent;
}
.mock-tab.active { background: var(--card); border-color: var(--sage-line); color: var(--ink); font-weight: 700; padding: 5px 16px; }
.acct-dot { width: 7px; height: 7px; border-radius: 50%; }

.mock-mail-body { display: flex; height: 428px; }
.mock-list { width: 42%; background: var(--linen); border-right: 1px solid var(--sage-line); padding: 10px; overflow: hidden; }
/* mirrors the app's .thread-row: every row is a white card with a
   card-line border; unread adds the clay edge with padding compensated
   so text stays column-aligned across all rows */
.mock-thread {
  position: relative; padding: 10px 12px; border-radius: var(--radius);
  background: var(--card); border: 1px solid var(--card-line);
  margin-bottom: 7px;
}
.mock-thread.unread { border-left: 3px solid var(--clay); padding-left: 10px; }
.mock-thread.selected { border-color: var(--sea); background: var(--sea-tint); }
/* the app's thread signal chip — '↑ owe' beneath the subject */
.mock-thread-signal {
  display: inline-block; margin-top: 4px;
  font-size: 10.5px; font-weight: 800; letter-spacing: 0.02em;
  border-radius: 999px; padding: 2px 9px;
  background: var(--clay-tint); color: var(--clay-deep);
}
.mt-top { display: flex; justify-content: space-between; font-size: 12px; color: var(--ink-soft); }
.mock-thread.unread .mt-top b { color: var(--ink); }
.mt-top b { font-weight: 800; }
.mt-top time { font-size: 11px; color: var(--ink-faint); }
.mt-subj { display: block; font-size: 13px; color: var(--ink-soft); margin: 2px 0 1px; }
.mock-thread.unread .mt-subj { color: var(--ink); font-weight: 600; }
.mt-snip { display: block; font-size: 11.5px; color: var(--ink-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mock-pane { flex: 1; padding: 18px 22px; position: relative; }
.mock-field {
  font-size: 12px; color: var(--ink-faint); padding: 9px 4px;
  border-bottom: 1px solid var(--sage-line);
}
.mock-field span { color: var(--ink-soft); font-weight: 600; }
.mock-compose { position: relative; padding: 18px 4px; }
.mock-body-text { font-size: 14px; line-height: 1.6; color: var(--ink); margin-bottom: 12px; }
.sug-underline {
  text-decoration: underline wavy var(--sea);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  background: var(--sea-tint); border-radius: 3px; padding: 0 1px;
}
.sug-underline-spelling {
  text-decoration: underline wavy var(--clay);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  background: var(--clay-tint); border-radius: 3px; padding: 0 1px;
}
.sug-pop {
  position: absolute; top: 96px; left: 120px;
  display: flex; flex-direction: column; gap: 7px;
  background: var(--card); border: 1px solid var(--card-line);
  border-radius: var(--radius); box-shadow: var(--shadow-lift);
  padding: 12px 15px; width: 264px;
}
.sug-pop-q { font-size: 12.5px; color: var(--ink-soft); }
.sug-pop-note { font-size: 11.5px; font-style: italic; color: var(--ink-faint); line-height: 1.45; margin-top: -4px; }
.sug-pop-actions { display: flex; align-items: center; gap: 10px; }
.sug-pop-actions .fix {
  font-size: 12px; font-weight: 700; color: var(--clay-deep);
  background: var(--clay-tint); border-radius: 999px; padding: 4px 12px; font-style: normal;
}
.sug-pop-actions i { font-style: normal; font-size: 11.5px; color: var(--ink-faint); }
.mock-send {
  position: absolute; bottom: 18px; left: 26px;
  background: var(--clay); color: #fff; font-size: 12.5px; font-weight: 700;
  border-radius: 999px; padding: 7px 20px;
}

/* ── Mockup 1 entrance choreography ─────────────────────────────────
   The wrapper's scroll-fade reveals the window first; the four signal
   cards then file in from the right, one after another; once they've
   settled, the Afternoon Brief rolls down from above. */
.mock-wrap .mock-signal {
  opacity: 0; transform: translateX(56px);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 0.9, 0.35, 1);
}
.mock-wrap.in .mock-signal { opacity: 1; transform: none; }
/* nth-of-type counts ALL sibling divs (the header row is div #1),
   so the four cards are divs 2 through 5 */
.mock-wrap.in .mock-signal:nth-of-type(2) { transition-delay: 0.4s; }
.mock-wrap.in .mock-signal:nth-of-type(3) { transition-delay: 0.55s; }
.mock-wrap.in .mock-signal:nth-of-type(4) { transition-delay: 0.7s; }
.mock-wrap.in .mock-signal:nth-of-type(5) { transition-delay: 0.85s; }
/* the ANYTIME label arrives together with its card */
.mock-wrap .mock-group-label.spaced { opacity: 0; transition: opacity 0.55s ease; }
.mock-wrap.in .mock-group-label.spaced { opacity: 1; transition-delay: 0.85s; }
.mock-wrap .mock-brief {
  opacity: 0; transform: rotate(1.1deg) translateY(-30px);
  transition: opacity 0.7s ease, transform 0.75s cubic-bezier(0.22, 0.9, 0.35, 1);
}
.mock-wrap.in .mock-brief {
  opacity: 1; transform: rotate(1.1deg) translateY(0);
  transition-delay: 1.25s;
}

/* the sketch frame wraps the whole mail mockup, sitting just outside its
   window shadow; drawn by the shared tracer once the mockup reveals */

/* ── Mockup 2 entrance: thread rows file in like the signal cards ── */
.mock-wrap .mock-thread {
  opacity: 0; transform: translateX(56px);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 0.9, 0.35, 1);
}
.mock-wrap.in .mock-thread { opacity: 1; transform: none; }
.mock-wrap.in .mock-thread:nth-of-type(1) { transition-delay: 0.4s; }
.mock-wrap.in .mock-thread:nth-of-type(2) { transition-delay: 0.55s; }
.mock-wrap.in .mock-thread:nth-of-type(3) { transition-delay: 0.7s; }
.mock-wrap.in .mock-thread:nth-of-type(4) { transition-delay: 0.85s; }
.mock-wrap.in .mock-thread:nth-of-type(5) { transition-delay: 1s; }

/* ── Beat vignette cards file in like the mockup's signals ── */
.beat .vign-card {
  opacity: 0; transform: translateX(56px);
  transition: opacity 0.55s ease, transform 0.6s cubic-bezier(0.22, 0.9, 0.35, 1);
}
.beat.in .vign-card { opacity: 1; transform: none; }
.beat.in .vign-card:nth-of-type(1) { transition-delay: 0.35s; }
.beat.in .vign-card:nth-of-type(2) { transition-delay: 0.5s; }

/* ── Day-arc choreography: suns rise left to right, the line draws
   beneath them, dots surfacing as it passes, captions fading in step ── */
.beat .arc-icon {
  opacity: 0; transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.8s cubic-bezier(0.22, 0.9, 0.35, 1);
}
.beat .arc-name, .beat .arc-word {
  opacity: 0;
  transition: opacity 0.7s ease;
}
.beat .arc-dot {
  opacity: 0; transform: scale(0.3);
  transition: opacity 0.3s ease, transform 0.35s cubic-bezier(0.34, 1.4, 0.64, 1);
}
.beat .arc-line {
  transform: scaleX(0); transform-origin: left center;
  transition: transform 1.7s cubic-bezier(0.3, 0.6, 0.3, 1) 0.4s;
}
.beat.in .arc-icon, .beat.in .arc-name, .beat.in .arc-word { opacity: 1; transform: none; }
.beat.in .arc-dot { opacity: 1; transform: scale(1); }
.beat.in .arc-line { transform: scaleX(1); }
.beat.in .arc-stop:nth-child(2) .arc-icon,
.beat.in .arc-stop:nth-child(2) .arc-name,
.beat.in .arc-stop:nth-child(2) .arc-word { transition-delay: 0.45s; }
.beat.in .arc-stop:nth-child(3) .arc-icon,
.beat.in .arc-stop:nth-child(3) .arc-name,
.beat.in .arc-stop:nth-child(3) .arc-word { transition-delay: 0.9s; }
.beat.in .arc-stop:nth-child(4) .arc-icon,
.beat.in .arc-stop:nth-child(4) .arc-name,
.beat.in .arc-stop:nth-child(4) .arc-word { transition-delay: 1.35s; }
.beat.in .arc-stop:nth-child(5) .arc-icon,
.beat.in .arc-stop:nth-child(5) .arc-name,
.beat.in .arc-stop:nth-child(5) .arc-word { transition-delay: 1.8s; }
/* dots surface as the line's tip passes each stop */
.beat.in .arc-stop:nth-child(2) .arc-dot { transition-delay: 0.5s; }
.beat.in .arc-stop:nth-child(3) .arc-dot { transition-delay: 1s; }
.beat.in .arc-stop:nth-child(4) .arc-dot { transition-delay: 1.5s; }
.beat.in .arc-stop:nth-child(5) .arc-dot { transition-delay: 1.95s; }

/* ── Mockup 2 pointer-and-popover scene ─────────────────────────────
   After the rows settle, a cursor glides up to the 'recieve' typo;
   only once it arrives does the suggestion popover drop in. */
.mock-cursor {
  position: absolute; top: 86px; left: 300px; /* tip resting on 'recieve' */
  width: 15px; height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 15 20'%3E%3Cpath d='M2 1 L2 16 L6.2 12.6 L8.6 18.4 L11.2 17.2 L8.8 11.6 L14 11.2 Z' fill='%2333403a' stroke='%23ffffff' stroke-width='1.4'/%3E%3C/svg%3E") no-repeat center / contain;
  opacity: 0;
  transform: translate(250px, 210px);
  pointer-events: none;
  z-index: 3;
}
.mock-wrap.in .mock-cursor {
  animation: cursor-glide 1.1s cubic-bezier(0.4, 0.1, 0.25, 1) 1.75s forwards;
}
@keyframes cursor-glide {
  0% { opacity: 0; transform: translate(250px, 210px); }
  18% { opacity: 1; }
  100% { opacity: 1; transform: translate(0, 0); }
}
.mock-wrap .sug-pop {
  opacity: 0; transform: translateY(-12px);
  transition: opacity 0.5s ease 2.95s, transform 0.55s cubic-bezier(0.22, 0.9, 0.35, 1) 2.95s;
}
.mock-wrap.in .sug-pop { opacity: 1; transform: translateY(0); }

/* ── Motion ── */
.fade-up { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fade-up.in { opacity: 1; transform: none; }
/* plain fade (no travel) for layered artwork */
.fade-in { opacity: 0; transition: opacity 1.3s ease; }
.fade-in.in { opacity: 1; }

/* zero-to-full pop with a small spring overshoot, after the scene settles */
.pop-in {
  opacity: 0; transform: scale(0);
  transition:
    opacity 0.65s ease,
    transform 0.9s cubic-bezier(0.34, 1.3, 0.64, 1);
}
.pop-in.in { opacity: 1; transform: scale(1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-up { opacity: 1; transform: none; transition: none; }
  .fade-in { opacity: 1; transition: none; }
  .pop-in { opacity: 1; transform: none; transition: none; }
  .mock-wrap .mock-signal { opacity: 1; transform: none; transition: none; }
  .mock-wrap .mock-thread { opacity: 1; transform: none; transition: none; }
  .beat .vign-card { opacity: 1; transform: none; transition: none; }
  .beat .arc-icon, .beat .arc-name, .beat .arc-word, .beat .arc-dot, .beat .arc-line {
    opacity: 1; transform: none; transition: none;
  }
  .mock-cursor { display: none; }
  .trust-sketch-tracer { stroke-dashoffset: 0; transition: none; }
  .why-bird .why-bird-frame { transition: none; opacity: 0; }
  .why-bird .why-bird-frame:nth-child(4) { opacity: 1; }
  .mock-wrap .sug-pop { opacity: 1; transform: none; transition: none; }
  .mock-wrap .mock-group-label.spaced { opacity: 1; transition: none; }
  /* the ANYTIME label arrives together with its card */
.mock-wrap .mock-group-label.spaced { opacity: 0; transition: opacity 0.55s ease; }
.mock-wrap.in .mock-group-label.spaced { opacity: 1; transition-delay: 0.85s; }
.mock-wrap .mock-brief { opacity: 1; transform: rotate(1.1deg); transition: none; }
  .btn { transition: none; }
  .wisp { animation: none; opacity: 0; }
}

/* ── Responsive ── */
@media (max-width: 900px) {
  section { padding: 72px 0; }
  .beat { grid-template-columns: 1fr; gap: 34px; margin-bottom: 72px; }
  .beat-flip .beat-copy { order: 1; }
  .beat-flip .beat-art { order: 2; }
  .beat-art { display: flex; justify-content: center; }
  .moments, .trust { grid-template-columns: 1fr; max-width: 460px; margin-left: auto; margin-right: auto; }
}

@media (max-width: 520px) {
  .hero { padding: 44px 0 64px; }
  .cta-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
  .footer-row { flex-direction: column; align-items: flex-start; }
  .vign-offset { margin-left: 16px; }
}
