/* SolarRoutes — map-paper light, road-sign display type, route-orange accent
   Palette:
   --paper    #F6F5F0  map paper
   --ink      #1E2A24  pine ink
   --route    #E8641E  route orange
   --signal   #1F8A5D  booked green
   --grid     #E0DFD6  faint parcel grid
   --dusk     #16222C  dusk navy (dark bands)
*/

:root {
  --paper: #F6F5F0;
  --paper-raised: #FFFFFF;
  --ink: #1E2A24;
  --ink-soft: #55615A;
  --route: #E8641E;
  --route-deep: #C24E10;
  --signal: #1F8A5D;
  --amber: #C98A12;
  --grid: #E0DFD6;
  --dusk: #16222C;
  --dusk-ink: #E9EDEA;
  --display: "Barlow Condensed", "Arial Narrow", sans-serif;
  --body: "Instrument Sans", "Helvetica Neue", sans-serif;
  --mono: "Spline Sans Mono", "SF Mono", monospace;
  --maxw: 1120px;
}

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

body {
  font-family: var(--body);
  color: var(--ink);
  background-color: var(--paper);
  /* faint parcel grid */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 56px 56px;
  line-height: 1.55;
  font-size: 16.5px;
}

a { color: inherit; }
:focus-visible { outline: 3px solid var(--route); outline-offset: 2px; }

/* ---------- type ---------- */

h1, h2, h3 {
  font-family: var(--display);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
h1 { font-size: clamp(3rem, 6.5vw, 5.2rem); }
h2 { font-size: clamp(2.1rem, 4vw, 3.2rem); max-width: 20ch; }
h3 { font-size: 1.45rem; letter-spacing: 0.03em; }

.eyebrow {
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--route-deep);
  margin-bottom: 1rem;
}
.eyebrow-light { color: #F0A16C; }

/* ---------- buttons ---------- */

.btn {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  display: inline-block;
  padding: 0.55rem 1.2rem;
  border-radius: 6px;
  border: 2px solid transparent;
  white-space: nowrap;
  cursor: pointer;
  transition: transform 120ms ease, background-color 120ms ease, color 120ms ease;
}
.btn-lg { font-size: 1.2rem; padding: 0.75rem 1.7rem; }
.btn-solid { background: var(--route); color: #fff; }
.btn-solid:hover { background: var(--route-deep); transform: translateY(-1px); }
.btn-outline { border-color: var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--paper); }
.btn-ghost { color: var(--ink); }
.btn-ghost:hover { color: var(--route-deep); }

/* ---------- nav ---------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 2rem;
  padding: 0.8rem clamp(1rem, 4vw, 3rem);
  background: color-mix(in srgb, var(--paper) 88%, transparent);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--grid);
}
.wordmark {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.wordmark span:last-child { color: var(--route-deep); }
.wordmark-dot {
  width: 0.85rem; height: 0.85rem;
  border-radius: 50%;
  background: var(--route);
  box-shadow: inset 0 0 0 3px var(--paper);
  border: 2px solid var(--route);
}
.nav-links { display: flex; gap: 1.4rem; margin-left: auto; }
.nav-links a {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--route-deep); }
.nav-actions { display: flex; gap: 0.6rem; align-items: center; }
@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
}
@media (max-width: 480px) {
  .nav { gap: 0.6rem; padding-left: 0.8rem; padding-right: 0.8rem; }
  .wordmark { font-size: 1.25rem; }
  .nav .btn { font-size: 0.92rem; padding: 0.5rem 0.8rem; }
}

/* ---------- sections shared ---------- */

section { padding: clamp(4rem, 9vw, 7.5rem) clamp(1rem, 4vw, 3rem); }
.section-head { max-width: var(--maxw); margin: 0 auto 3rem; }
.section-lede { max-width: 56ch; margin-top: 1rem; color: var(--ink-soft); font-size: 1.1rem; }

/* ---------- hero ---------- */

.hero {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  min-height: 74vh;
}
.lede {
  font-size: 1.2rem;
  color: var(--ink-soft);
  max-width: 50ch;
  margin-top: 1.4rem;
}
.hero-cta { display: flex; gap: 0.8rem; margin-top: 2rem; flex-wrap: wrap; }
.hero-note {
  font-family: var(--mono);
  font-size: 0.78rem;
  color: var(--ink-soft);
  margin-top: 1.2rem;
}
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; min-height: 0; }
}

/* ---------- daycard (signature) ---------- */

.daycard {
  background: var(--paper-raised);
  border: 1.5px solid var(--ink);
  border-radius: 12px;
  box-shadow: 6px 6px 0 var(--grid), 0 20px 40px -24px rgba(30, 42, 36, 0.35);
  overflow: hidden;
  font-size: 0.95rem;
}
.daycard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.1rem;
  border-bottom: 1.5px solid var(--ink);
}
.daycard-title { font-family: var(--display); font-weight: 700; font-size: 1.15rem; text-transform: uppercase; letter-spacing: 0.04em; }
.daycard-live {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--route-deep);
  display: flex; align-items: center; gap: 0.4rem;
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--route);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(232, 100, 30, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(232, 100, 30, 0); }
}
.slot {
  display: grid;
  grid-template-columns: 4.6rem 1fr auto;
  gap: 0.8rem;
  align-items: center;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--grid);
}
.slot-time { font-family: var(--mono); font-size: 0.8rem; color: var(--ink-soft); }
.slot-name { display: block; font-weight: 600; }
.slot-meta { display: block; font-size: 0.8rem; color: var(--ink-soft); font-family: var(--mono); }
.slot-tag {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.2rem 0.55rem;
  border-radius: 99px;
  border: 1.5px solid currentColor;
}
.tag-green { color: var(--signal); }
.tag-amber { color: var(--amber); }
.slot-gap { background: repeating-linear-gradient(-45deg, transparent 0 8px, rgba(201, 138, 18, 0.07) 8px 16px); transition: background 600ms ease; }
.slot-gap.filled { background: rgba(31, 138, 93, 0.07); }
.daycard-foot {
  padding: 0.7rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--ink-soft);
  background: var(--paper);
  min-height: 2.4rem;
}

/* ---------- problem ---------- */

.problem-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}
.problem { border-top: 1.5px solid var(--ink); }
.problem-col {
  background: var(--paper-raised);
  border: 1.5px solid var(--grid);
  border-radius: 12px;
  padding: 1.8rem;
}
.problem-col-accent { border-color: var(--route); box-shadow: 6px 6px 0 rgba(232, 100, 30, 0.15); }
.problem-col h3 { margin-bottom: 1.1rem; }
.vendor-list { list-style: none; }
.vendor-list li {
  display: flex; gap: 1rem; align-items: baseline;
  padding: 0.5rem 0;
  border-bottom: 1px dashed var(--grid);
}
.vendor-list li span {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-soft);
  min-width: 8.5rem;
}
.gap-list { list-style: none; }
.gap-list li {
  padding: 0.7rem 0 0.7rem 1.6rem;
  position: relative;
  font-weight: 600;
  border-bottom: 1px dashed var(--grid);
}
.gap-list li::before {
  content: "✕";
  position: absolute; left: 0;
  color: var(--route);
  font-weight: 700;
}
.problem-price {
  margin-top: 1.2rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--route-deep);
}
@media (max-width: 800px) { .problem-grid { grid-template-columns: 1fr; } }

/* ---------- platform + dfy cards ---------- */

.platform-grid, .dfy-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.pcard {
  background: var(--paper-raised);
  border: 1.5px solid var(--grid);
  border-top: 4px solid var(--route);
  border-radius: 12px;
  padding: 1.8rem;
}
.pcard h3 { margin-bottom: 0.8rem; }
.pcard p { color: var(--ink-soft); font-size: 0.98rem; }
.pcard-detail {
  margin-top: 1.1rem;
  font-family: var(--mono);
  font-size: 0.74rem !important;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink) !important;
  border-top: 1px dashed var(--grid);
  padding-top: 0.9rem;
}
@media (max-width: 900px) { .platform-grid, .dfy-grid { grid-template-columns: 1fr; } }

/* ---------- gap-fill (dark band) ---------- */

.gapfill {
  background: var(--dusk);
  color: var(--dusk-ink);
  background-image:
    linear-gradient(rgba(233, 237, 234, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 237, 234, 0.05) 1px, transparent 1px);
  background-size: 56px 56px;
}
.gapfill-inner { max-width: var(--maxw); margin: 0 auto; }
.gapfill h2 { font-size: clamp(2.6rem, 5.5vw, 4.4rem); color: #fff; }
.gapfill-lede { max-width: 58ch; margin-top: 1.3rem; font-size: 1.15rem; color: #B9C4BE; }
.gapfill-steps {
  display: flex;
  gap: 1rem;
  align-items: stretch;
  margin-top: 3rem;
  flex-wrap: wrap;
}
.gstep {
  flex: 1 1 160px;
  border: 1.5px solid rgba(233, 237, 234, 0.25);
  border-radius: 10px;
  padding: 1.1rem 1.2rem;
}
.gstep-label {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--route);
  display: block;
  margin-bottom: 0.5rem;
}
.gstep p { font-size: 0.92rem; color: #B9C4BE; }
.gstep-arrow {
  align-self: center;
  color: var(--route);
  font-size: 1.4rem;
  font-weight: 700;
}
.gapfill-kicker {
  margin-top: 2.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  max-width: 52ch;
  color: #fff;
}
.gapfill-kicker em { color: var(--route); font-style: normal; }
@media (max-width: 800px) { .gstep-arrow { display: none; } }

/* ---------- numbers ---------- */

.numbers { border-top: 1.5px solid var(--ink); }
.numbers-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
}
.stat {
  border-left: 3px solid var(--route);
  padding-left: 1.2rem;
}
.stat-value {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.6rem, 5vw, 3.8rem);
  line-height: 1;
  display: block;
}
.stat-label {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.9rem;
  color: var(--ink-soft);
  max-width: 22ch;
}
@media (max-width: 900px) { .numbers-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .numbers-grid { grid-template-columns: 1fr; } }

/* ---------- done-for-you ---------- */

.dfy { border-top: 1.5px solid var(--ink); }
.dfy-cta {
  max-width: var(--maxw);
  margin: 2.5rem auto 0;
  font-size: 1.1rem;
  font-weight: 600;
}
.dfy-cta a { color: var(--route-deep); }

/* ---------- vision (route stops) ---------- */

.vision { border-top: 1.5px solid var(--ink); }
.vision-route {
  max-width: var(--maxw);
  margin: 0 auto;
  position: relative;
  padding-left: 1rem;
}
.vision-route::before {
  content: "";
  position: absolute;
  left: calc(1rem + 10px);
  top: 14px;
  bottom: 14px;
  width: 3px;
  background: repeating-linear-gradient(var(--route) 0 14px, transparent 14px 24px);
  border-radius: 2px;
}
.vstop {
  display: flex;
  gap: 1.6rem;
  padding: 1.4rem 0;
  position: relative;
}
.vstop-marker {
  flex: 0 0 auto;
  width: 23px; height: 23px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--route);
  box-shadow: inset 0 0 0 3px var(--paper);
  z-index: 1;
  margin-top: 0.2rem;
}
.vstop-when {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--route-deep);
}
.vstop-body h3 { margin: 0.2rem 0 0.5rem; }
.vstop-body p { color: var(--ink-soft); max-width: 60ch; }

/* ---------- waitlist ---------- */

.waitlist { background: var(--dusk); }
.waitlist-card {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  color: var(--dusk-ink);
}
.waitlist-copy h2 { color: #fff; font-size: clamp(2.6rem, 5vw, 4rem); }
.waitlist-copy p { margin-top: 1rem; color: #B9C4BE; max-width: 46ch; }
.waitlist-login a { color: var(--route); font-weight: 600; }
#waitlist-form {
  background: var(--paper-raised);
  color: var(--ink);
  border-radius: 12px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 8px 8px 0 rgba(232, 100, 30, 0.35);
}
.intent-row {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}
.intent-opt {
  flex: 1;
  position: relative;
  display: block;
}
.intent-opt input {
  position: absolute;
  opacity: 0;
  inset: 0;
}
.intent-opt span {
  display: block;
  text-align: center;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.6rem 0.4rem;
  border: 2px solid var(--grid);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color 120ms ease, background-color 120ms ease;
}
.intent-opt input:checked + span {
  border-color: var(--route);
  background: rgba(232, 100, 30, 0.08);
  color: var(--route-deep);
}
.intent-opt input:focus-visible + span { outline: 3px solid var(--route); outline-offset: 2px; }
#waitlist-form label {
  font-family: var(--mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 0.7rem;
}
.label-opt { color: var(--ink-soft); text-transform: none; letter-spacing: 0; }
#waitlist-form input[type="text"],
#waitlist-form input[type="email"],
#waitlist-form input[type="tel"],
#waitlist-form select {
  font-family: var(--body);
  font-size: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1.5px solid var(--grid);
  border-radius: 8px;
  background: var(--paper);
  color: var(--ink);
}
#waitlist-form input:focus, #waitlist-form select:focus {
  outline: none;
  border-color: var(--route);
}
#waitlist-form .btn { margin-top: 1.3rem; }
.form-status {
  font-family: var(--mono);
  font-size: 0.8rem;
  min-height: 1.2rem;
  margin-top: 0.5rem;
}
.form-status.ok { color: var(--signal); }
.form-status.err { color: var(--route-deep); }
@media (max-width: 860px) { .waitlist-card { grid-template-columns: 1fr; } }

/* ---------- footer ---------- */

.footer {
  padding: 2.5rem clamp(1rem, 4vw, 3rem);
  border-top: 1.5px solid var(--ink);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 2.5rem;
  align-items: center;
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.wordmark-sm { font-size: 1.15rem; }
.footer a { color: var(--route-deep); }
.footer-fine { margin-left: auto; font-family: var(--mono); font-size: 0.75rem; }

/* ================= motion pass ================= */

/* --- load choreography --- */
.hero-copy > * , .daycard {
  opacity: 0;
  transform: translateY(26px);
  animation: rise 700ms cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.hero-copy > *:nth-child(1) { animation-delay: 80ms; }
.hero-copy > *:nth-child(2) { animation-delay: 180ms; }
.hero-copy > *:nth-child(3) { animation-delay: 300ms; }
.hero-copy > *:nth-child(4) { animation-delay: 420ms; }
.hero-copy > *:nth-child(5) { animation-delay: 520ms; }
.daycard { animation-delay: 620ms; transform: translateY(40px); }
@keyframes rise { to { opacity: 1; transform: translateY(0); } }

/* --- scroll reveals --- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity 700ms ease, transform 700ms cubic-bezier(0.2, 0.7, 0.2, 1); }
.reveal.on { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 90ms; }
.reveal-d2 { transition-delay: 180ms; }

/* --- spine --- */
.spine {
  position: fixed;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  height: 46vh;
  width: 3px;
  z-index: 15;
  pointer-events: none;
}
.spine-line {
  position: absolute; inset: 0;
  background: repeating-linear-gradient(var(--grid) 0 10px, transparent 10px 18px);
  border-radius: 2px;
}
.spine-dot {
  position: absolute;
  left: 50%;
  top: 0;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--paper);
  border: 3px solid var(--route);
  transform: translate(-50%, -50%);
}
@media (max-width: 1100px) { .spine { display: none; } }

/* --- marquee --- */
.marquee {
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  background: var(--paper-raised);
  overflow: hidden;
  padding: 0.7rem 0;
}
.marquee-track {
  display: inline-flex;
  align-items: center;
  gap: 2.2rem;
  white-space: nowrap;
  will-change: transform;
  animation: marquee 26s linear infinite;
}
.marquee-track span {
  font-family: var(--display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.marquee-track i { color: var(--route); font-style: normal; font-size: 1.3rem; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* --- scrolly --- */
.scrolly { position: relative; padding: 0; height: 440vh; border-top: 1.5px solid var(--ink); }
.scrolly-track { display: none; }
.scrolly-sticky {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--dusk);
  background-image:
    linear-gradient(rgba(233, 237, 234, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(233, 237, 234, 0.045) 1px, transparent 1px);
  background-size: 56px 56px;
}
#hood { width: min(1100px, 96vw); height: auto; max-height: 74vh; margin-top: 12vh; }
.scrolly-caption {
  position: absolute;
  top: clamp(1rem, 5vh, 3.5rem);
  left: clamp(1rem, 5vw, 4rem);
  max-width: 34rem;
  z-index: 2;
  color: var(--dusk-ink);
}
.scrolly-caption h2 { color: #fff; transition: opacity 300ms ease; }
.scrolly-caption p:last-child { color: #B9C4BE; margin-top: 0.6rem; max-width: 44ch; transition: opacity 300ms ease; }
.scrolly-caption.swap h2, .scrolly-caption.swap p:last-child { opacity: 0; }
.scrolly-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.6rem;
}
.sdot {
  width: 10px; height: 10px;
  border-radius: 50%;
  border: 2px solid var(--route);
  background: transparent;
  transition: background 200ms ease;
}
.sdot-on { background: var(--route); }

/* hood svg pieces (JS-built) */
.h-street { stroke: rgba(233, 237, 234, 0.28); stroke-width: 22; fill: none; stroke-linecap: round; }
.h-dash { stroke: rgba(233, 237, 234, 0.35); stroke-width: 2; stroke-dasharray: 14 16; fill: none; }
.h-body { fill: #24333F; stroke: rgba(233, 237, 234, 0.5); stroke-width: 1.5; }
.h-roof { fill: #2E4150; stroke: rgba(233, 237, 234, 0.5); stroke-width: 1.5; }
.h-door { fill: rgba(233, 237, 234, 0.4); }
.h-pin { fill: var(--route); stroke: #fff; stroke-width: 1.5; }
.h-pin-hole { fill: #fff; }
.h-ring { fill: none; stroke: var(--route); stroke-width: 2.5; opacity: 0; }
.h-panel { fill: var(--route); stroke: #fff; stroke-width: 0.8; }
.h-panel-lit { fill: var(--signal); }
.h-cal { fill: #fff; stroke: var(--ink); stroke-width: 1; }
.h-cal-txt { font-family: var(--mono); font-size: 13px; fill: var(--ink); }
.h-route { fill: none; stroke: var(--route); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; opacity: 0.95; }
.h-sun { fill: var(--route); opacity: 0; }

/* --- micro-interactions --- */
.btn-solid, .btn-outline { will-change: transform; }
.pcard, .problem-col { transition: transform 300ms cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 300ms ease; }
.pcard:hover { transform: translateY(-6px) rotate(-0.4deg); box-shadow: 0 18px 30px -18px rgba(30, 42, 36, 0.4); }

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *, .daycard { animation: none; opacity: 1; transform: none; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .scrolly { height: 100vh; }
}

/* ================= cinematic pass ================= */

/* --- dark hero with procedural dusk scene --- */
.hero-dark {
  position: relative;
  color: var(--dusk-ink);
  min-height: 92vh;
  display: flex;
  align-items: center;
}
.hero-scene { position: absolute; inset: 0; overflow: hidden; }
.hero-scene svg { width: 100%; height: 100%; display: block; }
.hero-inner {
  position: relative;
  z-index: 1;
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
  width: 100%;
}
.hero-dark h1 { color: #fff; text-shadow: 0 2px 30px rgba(11, 20, 31, 0.6); }
.hero-dark .lede { color: #D8DEDA; }
.hero-dark .eyebrow { color: #F0A16C; }
.hero-dark .hero-note { color: #B9C4BE; }
.hero-dark .btn-outline { border-color: #E9EDEA; color: #E9EDEA; }
.hero-dark .btn-outline:hover { background: #E9EDEA; color: var(--dusk); }
.hero-dark .daycard { box-shadow: 8px 8px 0 rgba(11, 20, 31, 0.5), 0 30px 60px -20px rgba(0, 0, 0, 0.6); }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

.scene-clouds ellipse { animation: cloud-drift 60s linear infinite alternate; }
.scene-clouds ellipse:nth-child(2) { animation-duration: 80s; animation-direction: alternate-reverse; }
.scene-clouds ellipse:nth-child(3) { animation-duration: 48s; }
.scene-clouds ellipse:nth-child(4) { animation-duration: 70s; animation-direction: alternate-reverse; }
@keyframes cloud-drift { from { transform: translateX(-40px); } to { transform: translateX(40px); } }
.scene-sun-glow { animation: sun-breathe 7s ease-in-out infinite; transform-origin: 1050px 620px; }
@keyframes sun-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
.glint { animation: twinkle 4.5s ease-in-out infinite; }
.glint.g2 { animation-delay: 0.9s; } .glint.g3 { animation-delay: 1.8s; }
.glint.g4 { animation-delay: 2.6s; } .glint.g5 { animation-delay: 3.4s; }
@keyframes twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }

/* --- persistent calendar rail --- */
.cal-rail {
  position: fixed;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 128px;
  z-index: 15;
  background: color-mix(in srgb, var(--paper-raised) 92%, transparent);
  border: 1.5px solid var(--ink);
  border-radius: 10px;
  box-shadow: 4px 4px 0 var(--grid);
  font-family: var(--mono);
  overflow: hidden;
}
.cal-rail-head {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.85rem;
  padding: 0.4rem 0.6rem;
  border-bottom: 1.5px solid var(--ink);
}
.cal-rail-slots { display: flex; flex-direction: column; }
.cal-slot {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.58rem;
  padding: 0.22rem 0.6rem;
  border-bottom: 1px dashed var(--grid);
  color: var(--ink-soft);
  transition: background 300ms ease, color 300ms ease;
}
.cal-slot:last-child { border-bottom: none; }
.cal-slot .cs-mark { width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--grid); flex: 0 0 auto; transition: all 300ms ease; }
.cal-slot.booked { background: rgba(31, 138, 93, 0.08); color: var(--ink); }
.cal-slot.booked .cs-mark { background: var(--signal); border-color: var(--signal); }
.cal-slot .cs-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-rail-foot {
  font-size: 0.6rem;
  padding: 0.35rem 0.6rem;
  border-top: 1.5px solid var(--ink);
  color: var(--route-deep);
}
@media (max-width: 1279px) { .cal-rail { display: none; } }

/* --- street strips: panels go up all the way down --- */
.street-strip {
  background: var(--dusk);
  border-top: 1.5px solid var(--ink);
  border-bottom: 1.5px solid var(--ink);
  padding: 1.6rem 0 0.6rem;
  overflow: hidden;
}
.street-strip svg { width: min(1200px, 100vw); display: block; margin: 0 auto; }
.strip-line {
  text-align: center;
  font-family: var(--mono);
  font-size: 0.78rem;
  color: #B9C4BE;
  padding: 0.4rem 1rem 0.8rem;
}
.strip-line::before { content: "— "; color: var(--route); }
.strip-line::after { content: " —"; color: var(--route); }

@media (prefers-reduced-motion: reduce) {
  .scene-clouds ellipse, .scene-sun-glow, .glint { animation: none; }
}

/* fixes: daycard keeps ink text inside dark hero; rail only on wide screens */
.daycard { color: var(--ink); }
@media (max-width: 1499px) { .cal-rail { display: none; } }

/* --- manifesto: the idea, typographically --- */
.manifesto { border-top: 1.5px solid var(--ink); }
.manifesto-inner { max-width: var(--maxw); margin: 0 auto; }
.manifesto-line {
  font-family: var(--display);
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.04;
  font-size: clamp(2.2rem, 5.2vw, 4.4rem);
  margin-top: 2.2rem;
  max-width: 22ch;
}
.manifesto-line em { font-style: normal; color: var(--route-deep); }
.manifesto-close {
  margin-top: 2.6rem;
  font-size: 1.15rem;
  color: var(--ink-soft);
  max-width: 58ch;
  border-left: 3px solid var(--route);
  padding-left: 1.2rem;
}

/* --- conversion pass: hero alt link, ROI calc, founder, FAQ --- */
.hero-alt { margin-top: 0.9rem; font-size: 0.95rem; color: var(--ink-soft); }
.hero-alt a { color: var(--route-deep); font-weight: 600; }

.roi { border-top: 1.5px solid var(--ink); }
.roi-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 2rem;
  align-items: start;
}
.roi-inputs {
  background: var(--paper-raised);
  border: 1.5px solid var(--grid);
  border-radius: 12px;
  padding: 1.8rem;
  display: flex;
  flex-direction: column;
  gap: 1.3rem;
}
.roi-inputs label {
  font-family: var(--mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.4rem 1rem;
  align-items: center;
}
.roi-inputs input[type="range"] { grid-column: 1 / 2; accent-color: var(--route); width: 100%; }
.roi-inputs output {
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  min-width: 4.5ch;
  text-align: right;
}
.roi-result {
  background: var(--dusk);
  color: var(--dusk-ink);
  border-radius: 12px;
  padding: 2rem;
  box-shadow: 8px 8px 0 rgba(232, 100, 30, 0.25);
}
.roi-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 0.95rem;
  color: #B9C4BE;
  padding: 0.5rem 0;
  border-bottom: 1px dashed rgba(233, 237, 234, 0.2);
}
.roi-line strong { font-family: var(--display); font-size: 1.6rem; color: #fff; }
.roi-big { margin: 1.6rem 0; }
.roi-big span:first-child {
  font-family: var(--display);
  font-weight: 700;
  font-size: clamp(2.8rem, 5vw, 4rem);
  color: var(--route);
  display: block;
  line-height: 1;
}
.roi-big-label { font-size: 0.9rem; color: #B9C4BE; display: block; margin-top: 0.5rem; max-width: 30ch; }
@media (max-width: 860px) { .roi-grid { grid-template-columns: 1fr; } }

.founder { border-top: 1.5px solid var(--ink); }
.founder-inner { max-width: 52rem; margin: 0 auto; }
.founder blockquote p {
  font-size: clamp(1.3rem, 2.4vw, 1.7rem);
  line-height: 1.5;
  font-weight: 500;
}
.founder blockquote footer {
  margin-top: 1.4rem;
  font-family: var(--mono);
  font-size: 0.85rem;
  color: var(--ink-soft);
}
.founder blockquote footer a { color: var(--route-deep); }

.faq { border-top: 1.5px solid var(--ink); }
.faq-list { max-width: 52rem; margin: 0 auto; }
.faq details {
  background: var(--paper-raised);
  border: 1.5px solid var(--grid);
  border-radius: 10px;
  margin-bottom: 0.8rem;
  overflow: hidden;
}
.faq summary {
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 1rem 1.3rem;
  cursor: pointer;
  list-style: none;
  position: relative;
}
.faq summary::after { content: "+"; position: absolute; right: 1.3rem; color: var(--route); font-size: 1.4rem; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 1.3rem 1.2rem; color: var(--ink-soft); }

/* --- offer stack --- */
.offer { border-top: 1.5px solid var(--ink); }
.offer-grid {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.ocard {
  background: var(--paper-raised);
  border: 1.5px solid var(--grid);
  border-radius: 12px;
  padding: 1.8rem;
}
.ocard-wide {
  grid-row: span 3;
  border-color: var(--route);
  box-shadow: 6px 6px 0 rgba(232, 100, 30, 0.15);
}
.ocard-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}
.ocard p { color: var(--ink-soft); font-size: 0.98rem; }
.otag {
  font-family: var(--mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.65rem;
  border-radius: 99px;
  border: 1.5px solid currentColor;
  white-space: nowrap;
}
.otag-inc { color: var(--signal); }
.otag-add { color: var(--route-deep); }
.otag-dfy { color: var(--amber); }
.offer-list { list-style: none; }
.offer-list li {
  padding: 1rem 0;
  border-bottom: 1px dashed var(--grid);
}
.offer-list li:last-child { border-bottom: none; }
.offer-list strong {
  font-family: var(--display);
  font-size: 1.2rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  display: block;
  margin-bottom: 0.25rem;
}
.offer-list span { color: var(--ink-soft); font-size: 0.95rem; }
.data-chips { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.9rem; }
.data-chips span {
  font-family: var(--mono);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.35rem 0.7rem;
  border: 1.5px solid var(--ink);
  border-radius: 6px;
  background: var(--paper);
}
@media (max-width: 860px) { .offer-grid { grid-template-columns: 1fr; } .ocard-wide { grid-row: auto; } }

/* ============ product screenshots ============ */
.product {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px;
}
.product-tabs {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 36px 0 28px;
  flex-wrap: wrap;
}
.ptab {
  font: 600 15px/1 var(--body);
  letter-spacing: 0.01em;
  color: var(--ink-soft);
  background: var(--paper-raised);
  border: 1px solid var(--grid);
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  transition: color .18s, border-color .18s, background .18s;
}
.ptab:hover { color: var(--ink); border-color: var(--ink-soft); }
.ptab-on, .ptab-on:hover {
  color: #fff;
  background: var(--ink);
  border-color: var(--ink);
}
.product-frame {
  margin: 0;
  background: var(--paper-raised);
  border: 1px solid var(--grid);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 30px 70px -30px rgba(30, 42, 36, 0.35);
}
.product-chrome {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--grid);
  background: var(--paper);
}
.product-chrome span {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--grid);
}
.product-chrome i {
  font: 400 12px/1 var(--mono);
  font-style: normal;
  color: var(--ink-soft);
  margin-left: 10px;
}
.product-frame img {
  display: block;
  width: 100%;
  height: auto;
}
.product-frame figcaption {
  font: 400 15px/1.55 var(--body);
  color: var(--ink-soft);
  padding: 16px 20px;
  border-top: 1px solid var(--grid);
  min-height: 3.2em;
}
@media (max-width: 640px) {
  .product { padding: 64px 16px; }
  .ptab { padding: 10px 18px; }
}

/* ============ flow loop diagram ============ */
.flow {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 96px 24px 72px;
}
.flow-wrap { overflow-x: auto; margin-top: 20px; }
.flow-svg { display: block; min-width: 720px; width: 100%; height: auto; }
.flow-svg text {
  font: 600 17px/1 var(--body);
  fill: var(--ink);
  text-anchor: middle;
}
.flow-svg .f-sub { font: 400 12.5px/1 var(--mono); fill: var(--ink-soft); }
.f-src rect {
  fill: var(--paper-raised);
  stroke: var(--grid);
  stroke-width: 1.5;
}
.f-src .f-src-cc { stroke: var(--route); stroke-dasharray: none; }
.f-line path {
  fill: none;
  stroke: var(--ink-soft);
  stroke-width: 1.8;
  opacity: 0.55;
  color: var(--ink-soft);
}
.f-appt rect { fill: var(--dusk); }
.f-appt text { fill: var(--dusk-ink); font-family: var(--display); font-size: 21px; letter-spacing: 0.02em; }
.f-win rect { fill: var(--signal); }
.f-win text { fill: #fff; }
.f-win .f-sub { fill: rgba(255,255,255,0.75); }
.f-lose rect { fill: var(--paper-raised); stroke: var(--amber); stroke-width: 1.8; }
.f-loop {
  fill: none;
  stroke: var(--route);
  stroke-width: 2.6;
  stroke-dasharray: 10 8;
  color: var(--route);
  animation: flow-march 1.1s linear infinite;
}
@keyframes flow-march { to { stroke-dashoffset: -18; } }
.f-loop-tag rect { fill: var(--route); }
.f-loop-tag text { fill: #fff; font: 700 14px/1 var(--display); letter-spacing: 0.12em; }
.f-loop-tag .f-sub { fill: rgba(255,255,255,0.85); }
@media (prefers-reduced-motion: reduce) { .f-loop { animation: none; } }
@media (max-width: 640px) { .flow { padding: 64px 16px 48px; } }

/* ============================================================
   MOBILE PASS
   ============================================================ */

/* --- root overflow fix: grid/flex children default to min-width:auto,
       which let the ROI calculator force the whole page sideways --- */
.roi-grid > *,
.waitlist-card > *,
.offer-grid > *,
.numbers-grid > * { min-width: 0; }
.roi-inputs label { grid-template-columns: minmax(0, 1fr) auto; }
.roi-inputs input[type="range"] { min-width: 0; }
/* long words (emails, URLs) must never push the page sideways */
.waitlist-copy, .founder blockquote, .faq p, .footer p { overflow-wrap: break-word; }

/* --- nav: shorten the CTA before it clips --- */
@media (max-width: 540px) {
  .nav-cta-long { display: none; }
}
@media (max-width: 380px) {
  .nav { gap: 0.4rem; padding-left: 0.7rem; padding-right: 0.7rem; }
  .wordmark { font-size: 1.05rem; }
  .wordmark-dot { width: 0.7rem; height: 0.7rem; }
  .nav .btn { font-size: 0.82rem; padding: 0.45rem 0.6rem; }
  .waitlist-card h2 { font-size: 2.1rem; }
}

@media (max-width: 720px) {
  /* the wide SVG loop is replaced by a stacked layout below */
  .flow-svg { display: none; }
  .flow-wrap { overflow: visible; }

  /* tighter cards so copy keeps its breathing room on a narrow screen */
  .roi-inputs { padding: 1.15rem; gap: 1.1rem; }
  .roi-result { padding: 1.3rem; }
  .roi-big span:first-child { font-size: 2.6rem; }
  .roi-line strong { font-size: 1.35rem; }
  .waitlist-card { padding: 1.5rem 1.15rem; }
  .ocard, .ocard-wide { padding: 1.4rem 1.2rem; }
  .founder blockquote p { font-size: 1.15rem; }

  /* comfortable tap targets */
  .btn-lg { width: 100%; text-align: center; }
  .ptab { min-height: 44px; }
  .faq summary { padding-top: 0.9rem; padding-bottom: 0.9rem; }
}

/* ---------- the loop, stacked for phones ---------- */
.flow-mobile { display: none; max-width: 26rem; margin: 0 auto; }
.fm-cap {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-soft);
  text-align: center;
  margin-bottom: 0.7rem;
}
.fm-sources {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
}
.fm-sources span {
  background: var(--paper-raised);
  border: 1.5px solid var(--grid);
  border-radius: 10px;
  padding: 0.75rem 0.5rem;
  text-align: center;
  font-weight: 600;
  font-size: 0.92rem;
}
.fm-sources .fm-cc { border-color: var(--route); }
.fm-arrow { position: relative; height: 30px; }
.fm-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  height: 21px;
  border-left: 2px solid var(--ink-soft);
  transform: translateX(-1px);
  opacity: 0.45;
}
.fm-arrow::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 20px;
  transform: translateX(-50%);
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 9px solid var(--ink-soft);
  opacity: 0.45;
}
.fm-arrow-route::before { border-left: 2px dashed var(--route); opacity: 1; }
.fm-arrow-route::after { border-top-color: var(--route); opacity: 1; }
.fm-appt {
  background: var(--dusk);
  color: var(--dusk-ink);
  border-radius: 12px;
  padding: 1.05rem;
  text-align: center;
  font-family: var(--display);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}
.fm-split { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; }
.fm-win, .fm-lose {
  border-radius: 10px;
  padding: 0.8rem 0.6rem;
  text-align: center;
}
.fm-win { background: var(--signal); color: #fff; }
.fm-lose { background: var(--paper-raised); border: 1.5px solid var(--amber); }
.fm-split strong { display: block; font-size: 1.02rem; }
.fm-split span {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  margin-top: 0.25rem;
}
.fm-win span { color: rgba(255, 255, 255, 0.8); }
.fm-lose span { color: var(--ink-soft); }
/* the branch that loops: the arrow leaves from the no-close side */
.fm-split + .fm-arrow-route::before,
.fm-split + .fm-arrow-route::after { left: 75%; }
.fm-revive {
  background: var(--route);
  color: #fff;
  border-radius: 999px;
  padding: 0.85rem 1rem;
  text-align: center;
}
.fm-revive strong {
  display: block;
  font-family: var(--display);
  font-size: 1.05rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.fm-revive span {
  display: block;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  margin-top: 0.15rem;
}
.fm-back {
  margin-top: 1.1rem;
  padding-left: 0.9rem;
  border-left: 2px dashed var(--route);
  font-size: 0.9rem;
  color: var(--ink-soft);
}
.fm-back span { color: var(--route); font-weight: 700; }
@media (max-width: 720px) { .flow-mobile { display: block; } }
