/* Sunflowerz — the page is a trip: a route line runs down the left rail,
   each section is a stop with a pin, and your ride travels the line as you scroll. */

:root {
  --cream: #FFF8ED;
  --petal: #FFC61F;
  --gold: #ED9E0D;
  --seed: #3D2614;
  --seed-70: rgba(61, 38, 20, 0.72);
  --seed-45: rgba(61, 38, 20, 0.45);
  --sky: #2F8BFF;
  --storm: #7A5CFF;
  --rail: 76px;
  --display: "newnord-wide", "Avenir Next Condensed", "Helvetica Neue", Arial, sans-serif;
  --body: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  color: var(--seed);
  background: linear-gradient(180deg, var(--cream) 0%, #FFEFC6 55%, #FFDD7A 100%) no-repeat;
  -webkit-font-smoothing: antialiased;
}
html { background: #FFDD7A; }

h1, h2, h3, .wordmark {
  font-family: var(--display);
  font-weight: 900;
  font-style: normal;
  line-height: 1.02;
  letter-spacing: -0.01em;
  margin: 0;
}
h1 { font-size: clamp(2.4rem, 6.2vw, 4.6rem); }
h2 { font-size: clamp(1.7rem, 3.6vw, 2.6rem); }
h3 { font-size: 1.25rem; line-height: 1.2; }
p { margin: 0 0 1em; max-width: 34em; }
a { color: var(--sky); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 4px; }

/* ---- Header ---- */
.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px;
  background: var(--petal);
  box-shadow: 0 1px 0 rgba(61,38,20,.12);
}
.top img { width: 36px; height: 36px; }
.wordmark { font-size: 1.55rem; color: #fff; text-shadow: 0 1px 1px rgba(0,0,0,.25); text-decoration: none; }
.tagline { font-weight: 600; font-size: .95rem; color: var(--seed); opacity: .85; padding-left: 12px; border-left: 2px solid rgba(61,38,20,.3); }
.top nav { margin-left: auto; display: flex; gap: 22px; }
.top nav a { color: var(--seed); text-decoration: none; font-weight: 600; font-size: .95rem; }
.top nav a:hover { text-decoration: underline; }

/* ---- Trip layout: rail + stops ---- */
.trip { position: relative; max-width: 1180px; margin: 0 auto; padding: 0 20px 80px; }
.rail {
  position: absolute; left: calc(20px + var(--rail) / 2 - 2px); top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--petal) 0%, var(--gold) 45%, #D9432E 75%, var(--storm) 100%);
  border-radius: 2px;
}
.ride {
  position: absolute; left: calc(20px + var(--rail) / 2); top: 0; z-index: 5;
  width: 44px; height: 44px; margin-left: -22px; margin-top: -22px;
  display: grid; place-items: center; font-size: 24px;
  background: #1C1C1E; border: 2.5px solid #fff; border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0,0,0,.35);
  transition: top .12s linear;
}
.stop { position: relative; display: grid; grid-template-columns: var(--rail) 1fr; gap: 0 28px; padding: 96px 0 40px; }
.stop > .content { min-width: 0; }
.stop:first-of-type { padding-top: 56px; }
.pin {
  justify-self: center; align-self: start; margin-top: 4px;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 11px; font-weight: 700; font-size: .9rem; white-space: nowrap;
  color: #fff; background: #1C1C1E; border: 2px solid var(--petal); border-radius: 999px;
  box-shadow: 0 1px 4px rgba(0,0,0,.3);
}
.stop.rain .pin { border-color: #D9432E; }
.stop.storm .pin { border-color: var(--storm); }
.stop-time { font-family: var(--body); font-size: .85rem; color: var(--seed-70); margin: 0 0 6px; font-weight: 600; }

/* ---- Hero ---- */
.hero .content { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero h1 { margin-bottom: 12px; }
.subtitle { font-weight: 700; font-size: 1.1rem; color: var(--gold); margin-bottom: 12px; }
.lede { font-size: 1.25rem; color: var(--seed-70); max-width: 26em; }
.cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 8px;
  padding: 14px 22px; background: var(--seed); color: var(--petal); border-radius: 999px;
  font-weight: 700; text-decoration: none; font-size: 1.05rem; }
.cta:hover { background: #2a190d; }
.cta .apple { font-size: 1.3em; line-height: 1; }
.fine { display: block; margin-top: 12px; font-size: .9rem; color: var(--seed-45); }

.stage { position: relative; justify-self: center; }
.phone {
  position: relative; width: 300px; padding: 11px; background: #141416; border-radius: 48px;
  box-shadow: 0 30px 60px -20px rgba(61,38,20,.45), 0 0 0 1px rgba(0,0,0,.4);
}
.phone video, .phone img { display: block; width: 100%; height: auto; border-radius: 38px; background: #000; }
.phone::after { /* dynamic island */
  content: ""; position: absolute; top: 24px; left: 50%; width: 92px; height: 26px; margin-left: -46px;
  background: #000; border-radius: 14px;
}
/* The bee escorts the ride down the rail; JS keeps it level with the marker */
.bee {
  position: absolute; left: calc(20px + var(--rail) / 2 + 28px); top: 0; z-index: 6;
  width: 120px; height: 120px; margin-top: -84px; pointer-events: none;
  transition: top .12s linear;
}

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 28px; }
.step img { width: 100%; height: auto; border-radius: 18px; background: #FFF4DC; }
.step h3 { margin: 16px 0 6px; }
.step p { color: var(--seed-70); font-size: 1rem; }

/* ---- Screens ---- */
.screens { display: flex; gap: 22px; overflow-x: auto; padding: 8px 4px 24px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.screens::-webkit-scrollbar { height: 6px; } .screens::-webkit-scrollbar-thumb { background: var(--seed-45); border-radius: 3px; }
.screen { flex: 0 0 auto; width: 232px; margin: 0; scroll-snap-align: start; }
.screen .phone { width: 232px; padding: 8px; border-radius: 38px; }
.screen .phone img { border-radius: 30px; }
.screen .phone::after { top: 18px; width: 70px; height: 20px; margin-left: -35px; }
.screen figcaption { margin-top: 12px; font-size: .95rem; color: var(--seed-70); font-weight: 600; }

/* ---- Ride picker ---- */
.rides { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.rides button {
  font: inherit; font-size: 30px; width: 60px; height: 60px; border-radius: 16px; cursor: pointer;
  background: rgba(255,255,255,.55); border: 3px solid transparent;
}
.rides button[aria-pressed="true"] { background: #fff; border-color: var(--gold); transform: scale(1.08); }
.rides button:hover { background: #fff; }

/* ---- Arrive / footer ---- */
.arrive .pin { border-color: var(--petal); }
.arrive h2 { margin-bottom: 12px; }
footer { border-top: 1px solid rgba(61,38,20,.15); margin-top: 20px; padding: 28px 20px 40px; font-size: .9rem; color: var(--seed-70); }
footer .inner { max-width: 1180px; margin: 0 auto; display: flex; flex-wrap: wrap; gap: 14px 28px; align-items: center; }
footer a { color: var(--seed); }
footer .credit { flex-basis: 100%; }

/* ---- Legal pages ---- */
.legal { max-width: 720px; margin: 0 auto; padding: 48px 20px 80px; }
.legal h1 { font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 8px; }
.legal h2 { font-size: 1.35rem; margin: 32px 0 8px; }
.legal p, .legal li { max-width: none; color: var(--seed); }
.legal .updated { color: var(--seed-45); margin-bottom: 24px; }

/* ---- Responsive ---- */
@media (max-width: 860px) {
  :root { --rail: 44px; }
  .hero .content, .steps { grid-template-columns: 1fr; }
  .stage { justify-self: start; margin: 8px 0 0 10px; }
  .phone { width: 250px; }
  .bee { width: 84px; height: 84px; margin-top: -60px; left: calc(20px + var(--rail) / 2 + 18px); }
  .pin { padding: 4px 8px; font-size: .8rem; }
  .pin .label { display: none; }
  .top nav { gap: 14px; }
  .tagline { display: none; }
  .stop { gap: 0 16px; padding-top: 72px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ride, .bee { transition: none; }
}
