/* Vendorlane coming-soon page. Tokens copied from the app's "Forest Lanes"
   theme (app/globals.css, ProjectDocs/design/e-forest-lanes/TOKENS.md). */

@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/fonts/Fraunces-italic-latin.woff2") format("woff2"); font-weight: 100 900; font-style: italic; font-display: swap; }
@font-face { font-family: "Hanken Grotesk"; src: url("/fonts/HankenGrotesk-latin.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "DM Mono"; src: url("/fonts/DMMono-400-latin.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }

:root {
  color-scheme: light dark;
  --paper: #f5efe2; --raised: #fcf9f1; --sunk: #ece4d2;
  --ink: #10253a; --ink-2: #37485a; --mute: #566472;
  --rule: rgba(16, 37, 58, .15); --rule-2: rgba(16, 37, 58, .3);
  --brand: #1f5b3a; --brand-t: #1a4d31; --brand-w: rgba(31, 91, 58, .11); --brand-fg: #f5efe2; --brand-b: #6fc796;
  --ring: rgba(31, 91, 58, .32); --danger-ring: rgba(176, 58, 31, .25); --select: rgba(31, 91, 58, .22);
  --ok-b: #4fd6d2; --warn-b: #f2b84b; --danger-b: #ff8466; --danger-t: #b03a1f;
  --navy: #0f2236; --navy-2: #173450; --on-navy: #f5efe2; --on-navy-2: #a9b8c5;
  --elev-1: 0 1px 0 rgba(16, 37, 58, .05), 0 14px 30px -22px rgba(16, 37, 58, .35);
  --elev-2: 0 1px 0 rgba(16, 37, 58, .06), 0 30px 60px -34px rgba(16, 37, 58, .5);
  --grain: .22; --grain-blend: multiply;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease-out: cubic-bezier(.2, .85, .25, 1);
}

/* Theme. theme-init.js puts .light or .dark on <html> (same classes and
   "theme" storage key as the app). Dark applies when the OS is dark and the
   visitor hasn't forced light (this is also the no-JS path), or when they force
   dark. The two blocks below must stay identical. */
:root.light { color-scheme: light; }
:root.dark { color-scheme: dark; }
@media (prefers-color-scheme: dark) {
  :root:not(.light) {
    --paper: #0d1b29; --raised: #132638; --sunk: #0a1621;
    --ink: #f3edde; --ink-2: #c5cfd6; --mute: #94a4b1;
    --rule: rgba(243, 237, 222, .14); --rule-2: rgba(243, 237, 222, .28);
    --brand: #5db382; --brand-t: #7ccb9c; --brand-w: rgba(93, 179, 130, .14); --brand-fg: #0d1b29;
    --danger-t: #ff8d6f;
    --ring: rgba(93, 179, 130, .38); --danger-ring: rgba(255, 141, 111, .3); --select: rgba(93, 179, 130, .35);
    --navy: #07121c; --navy-2: #0f2236;
    --elev-1: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 30px -20px rgba(0, 0, 0, .7);
    --elev-2: 0 1px 0 rgba(0, 0, 0, .3), 0 30px 60px -30px rgba(0, 0, 0, .8);
    --grain: .07; --grain-blend: screen;
  }
}
:root.dark {
    --paper: #0d1b29; --raised: #132638; --sunk: #0a1621;
    --ink: #f3edde; --ink-2: #c5cfd6; --mute: #94a4b1;
    --rule: rgba(243, 237, 222, .14); --rule-2: rgba(243, 237, 222, .28);
    --brand: #5db382; --brand-t: #7ccb9c; --brand-w: rgba(93, 179, 130, .14); --brand-fg: #0d1b29;
    --danger-t: #ff8d6f;
    --ring: rgba(93, 179, 130, .38); --danger-ring: rgba(255, 141, 111, .3); --select: rgba(93, 179, 130, .35);
    --navy: #07121c; --navy-2: #0f2236;
    --elev-1: 0 1px 0 rgba(0, 0, 0, .3), 0 14px 30px -20px rgba(0, 0, 0, .7);
    --elev-2: 0 1px 0 rgba(0, 0, 0, .3), 0 30px 60px -30px rgba(0, 0, 0, .8);
    --grain: .07; --grain-blend: screen;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--paper); scrollbar-color: var(--rule-2) var(--paper); }
::selection { background: var(--select); color: var(--ink); }
/* theme.js adds this for one frame while switching theme, so every colour
   changes at once instead of some fading (input borders, buttons). */
:root.theme-switching *:not(.theme-thumb), :root.theme-switching *::before, :root.theme-switching *::after { transition: none !important; }
body {
  position: relative; margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--sans);
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: var(--grain); mix-blend-mode: var(--grain-blend);
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)' opacity='0.55'/></svg>");
}
:where(a, button, input, summary):focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }
a { color: var(--brand-t); }

.mono { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; }
.display { font-family: var(--serif); font-weight: 500; letter-spacing: -.036em; line-height: 1.05; margin: 0; }
.accent { position: relative; display: inline-block; font-style: italic; font-weight: 400; color: var(--brand); }
.underline { position: absolute; left: 0; bottom: -.08em; width: 100%; height: .16em; overflow: visible; }
.underline path { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .9s .45s var(--ease-out) forwards; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--brand); color: var(--brand-fg); padding: 8px 14px; border-radius: 99px; z-index: 10; }
.skip:focus { left: 12px; }

.strip, .site-header, .hero, .band, .site-footer { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }
.strip { display: flex; justify-content: space-between; gap: 16px; padding-block: 12px; color: var(--mute); border-bottom: 1px solid var(--rule); }

.site-header { display: flex; align-items: center; justify-content: space-between; padding-block: 18px; border-bottom: 1.5px solid var(--ink); }
.lockup { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; }
.logo-mark { color: var(--ink); flex-shrink: 0; }
.logo-hub { fill: var(--brand); }
.wordmark { font-family: var(--serif); font-weight: 500; font-size: 22px; letter-spacing: -.03em; }
.header-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 99px; border: 1px solid var(--rule-2); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 500; transition: background .16s, border-color .16s; }
.header-cta:hover { background: var(--brand-w); border-color: var(--brand); }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* Theme toggle: pill radiogroup like the app's ThemeToggle. Shown only once
   theme-init.js has run (it sets data-theme), so no-JS visitors don't get a
   dead control. The thumb and pressed colour follow data-theme, so they're
   right on first paint. */
.theme-toggle { display: none; position: relative; grid-template-columns: repeat(3, 36px); padding: 3px; border: 1px solid var(--rule-2); border-radius: 99px; background: var(--raised); }
:root[data-theme] .theme-toggle { display: grid; }
.theme-toggle button { position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 99px; background: none; color: var(--mute); cursor: pointer; transition: color .16s; }
.theme-toggle button:hover { color: var(--ink); }
.theme-toggle button:focus-visible { outline-offset: 1px; }
.theme-thumb { position: absolute; top: 3px; left: 3px; width: 36px; height: 36px; border-radius: 99px; background: var(--brand-w); box-shadow: inset 0 0 0 1px var(--brand); transition: transform .2s var(--ease-out); pointer-events: none; }
:root[data-theme="system"] .theme-thumb { transform: translateX(36px); }
:root[data-theme="light"] .theme-thumb { transform: translateX(72px); }
:root[data-theme="dark"] .theme-toggle [data-mode="dark"],
:root[data-theme="system"] .theme-toggle [data-mode="system"],
:root[data-theme="light"] .theme-toggle [data-mode="light"] { color: var(--brand-t); }

main#main { flex: 1; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; padding-block: 56px 72px; align-items: start; }
.hero-copy > * { animation: rise .7s var(--ease-out) both; }
.hero-copy > :nth-child(2) { animation-delay: .06s; }
.hero-copy > :nth-child(3) { animation-delay: .12s; }
.hero-copy > :nth-child(4) { animation-delay: .18s; }

.badge { display: inline-flex; align-items: center; gap: 10px; margin: 0 0 24px; padding: 4px 14px 4px 4px; border: 1px solid var(--rule-2); border-radius: 99px; color: var(--ink-2); background: var(--raised); }
.badge-tag { background: var(--brand); color: var(--brand-fg); border-radius: 99px; padding: 3px 9px; }
h1.display { font-size: clamp(2.6rem, 6vw, 4.4rem); }
.lede { margin: 24px 0 0; max-width: 34rem; font-size: 18px; color: var(--ink-2); }

.audience { margin: 18px 0 0; max-width: 34rem; font-size: 15px; color: var(--ink-2); }
.audience .mono { color: var(--brand-t); margin-right: 6px; }
.facts { list-style: none; margin: 28px 0 0; padding: 0; max-width: 34rem; }
.facts li { display: grid; grid-template-columns: 14px 1fr; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 15px; color: var(--ink); }
.facts li:last-child { border-bottom: 1px solid var(--rule); }
.fact-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px var(--brand-w); transform: translateY(-1px); }

.panel-wrap { display: grid; gap: 20px; animation: rise .8s .1s var(--ease-out) both; }

.lanes { margin: 0; background: var(--navy); color: var(--on-navy); border-radius: 18px; padding: 18px 20px 22px; box-shadow: var(--elev-2);
  background-image: radial-gradient(rgba(245, 239, 226, .07) 1px, transparent 1px); background-size: 18px 18px; }
.lanes figcaption { color: var(--on-navy-2); padding-bottom: 14px; border-bottom: 1px solid rgba(245, 239, 226, .12); }
.lanes-body { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) 90px 64px; align-items: center; margin-top: 16px; }
.lane-rows { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lane-rows li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border: 1px solid rgba(245, 239, 226, .14); border-radius: 10px; background: rgba(23, 52, 80, .6); }
.lane-rows b { display: block; font-weight: 500; font-size: 14px; }
.lane-rows small { display: block; color: var(--on-navy-2); font-size: 10px; margin-top: 2px; }
.beacon { position: relative; width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.beacon::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid currentColor; opacity: .6; }
.beacon.ok { background: var(--ok-b); color: var(--ok-b); }
.beacon.due { background: var(--warn-b); color: var(--warn-b); }
.beacon.overdue { background: var(--danger-b); color: var(--danger-b); }
.beacon.overdue::after { animation: ping 1.5s ease-out infinite; }
.beacon.due::after { animation: pulse 2.8s ease-in-out infinite; }
.lane-lines { width: 100%; height: 100%; overflow: visible; }
.lane { fill: none; stroke-width: 1.6; stroke-dasharray: 3 5; vector-effect: non-scaling-stroke; animation: flow 1s linear infinite; opacity: .85; }
.lane.ok { stroke: var(--ok-b); } .lane.due { stroke: var(--warn-b); } .lane.overdue { stroke: var(--danger-b); }
.hub { position: relative; width: 56px; height: 56px; justify-self: start; display: grid; place-items: center; }
.hub-dot { width: 30px; height: 30px; border-radius: 50%; background: var(--brand-b); box-shadow: 0 0 0 6px rgba(111, 199, 150, .18); }
.hub-ring { position: absolute; inset: 0; border-radius: 50%; border: 1.5px solid var(--brand-b); animation: ripple 3.4s ease-out infinite; }

.notify { background: var(--raised); border: 1px solid var(--rule); border-radius: 18px; padding: 26px 24px 22px; box-shadow: var(--elev-1); scroll-margin-top: 24px; }
.notify h2.display { font-size: 32px; }
.notify-sub { margin: 8px 0 18px; color: var(--ink-2); }
.field label { display: block; font-weight: 500; font-size: 14px; margin-bottom: 6px; }
.input-row { display: flex; gap: 10px; }
input[type="email"] { flex: 1; min-width: 0; height: 48px; padding: 0 16px; font: inherit; color: var(--ink); background: var(--paper); border: 1px solid var(--rule-2); border-radius: 99px; transition: border-color .16s, box-shadow .16s; }
input[type="email"]::placeholder { color: var(--mute); }
input[type="email"]:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px var(--ring); }
input[aria-invalid="true"], input[aria-invalid="true"]:focus { border-color: var(--danger-t); }
input[aria-invalid="true"]:focus { box-shadow: 0 0 0 4px var(--danger-ring); }
/* Browser autofill paints its own (light) background; keep the theme's. */
input[type="email"]:-webkit-autofill, input[type="email"]:-webkit-autofill:hover, input[type="email"]:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink); -webkit-box-shadow: 0 0 0 40px var(--paper) inset; transition: background-color 9999s; }
input[type="email"]:-webkit-autofill:focus { -webkit-box-shadow: 0 0 0 40px var(--paper) inset, 0 0 0 4px var(--ring); }
.btn { height: 48px; padding: 0 22px; border: 0; border-radius: 99px; font: inherit; font-weight: 500; font-size: 15px; cursor: pointer; background: var(--brand); color: var(--brand-fg); transition: transform .16s var(--ease-out), background .16s; white-space: nowrap; }
.btn:hover { background: var(--brand-t); }
.btn:active { transform: scale(.97); }
.btn[disabled] { opacity: .65; cursor: progress; }
.consent { display: grid; grid-template-columns: 20px 1fr; gap: 10px; margin-top: 16px; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--brand); }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.5em; margin: 14px 0 0; font-size: 14px; font-weight: 500; }
.status:empty { margin: 0; min-height: 0; }
.status[data-state="ok"] { color: var(--brand-t); }
.status[data-state="error"] { color: var(--danger-t); }
.notify.done form .field, .notify.done form .consent { display: none; }
.notify.done .status { font-size: 16px; margin-top: 4px; }
.fine { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--mute); }
.contact { color: var(--ink-2); font-weight: 500; }

.site-footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding-block: 20px 28px; border-top: 1px solid var(--rule); color: var(--mute); font-size: 14px; }

.promise { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 8px; margin: 16px 0 0; padding: 0; color: var(--ink-2); }
.promise li { padding: 4px 10px; border: 1px solid var(--rule-2); border-radius: 99px; background: var(--paper); font-size: 10.5px; }

/* Sections below the hero. */
.band { padding-block: 56px; border-top: 1px solid var(--rule); }
.band-head { max-width: 40rem; margin-bottom: 32px; }
.eyebrow { margin: 0 0 12px; color: var(--brand-t); }
.band h2.display { font-size: clamp(1.9rem, 3.6vw, 2.6rem); }
.band h3 { margin: 0; font-family: var(--serif); font-weight: 500; font-size: 20px; letter-spacing: -.02em; line-height: 1.25; color: var(--ink); }
.band p { color: var(--ink-2); font-size: 15px; }
.why-list { list-style: none; counter-reset: why; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.why-list li { counter-increment: why; padding-top: 16px; border-top: 1.5px solid var(--ink); }
.why-list li::before { content: "0" counter(why); display: block; margin-bottom: 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--mute); }
.why-list p { margin: 8px 0 0; }
.cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.card { padding: 22px 22px 20px; background: var(--raised); border: 1px solid var(--rule); border-radius: 16px; box-shadow: var(--elev-1); }
.card::before { content: ""; display: block; width: 26px; height: 3px; margin-bottom: 16px; border-radius: 3px; background: var(--brand); }
.card p { margin: 8px 0 0; }
.closing { display: flex; align-items: center; justify-content: space-between; gap: 32px; margin-bottom: 8px; }
.closing > div { max-width: 44rem; }
.closing p { margin: 12px 0 0; }
.btn-link { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; text-decoration: none; }

/* Message pages (no-JS form result, unsubscribe, 404). */
.message { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 72px 24px; }
.message h1.display { font-size: clamp(2.2rem, 5vw, 3.2rem); }
.message p { color: var(--ink-2); font-size: 18px; }
.message form { margin-top: 24px; }
.message .fine-link { font-size: 15px; color: var(--mute); }

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes flow { to { stroke-dashoffset: -8; } }
@keyframes ping { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: .2; } 50% { opacity: .8; } }
@keyframes ripple { 0% { transform: scale(.7); opacity: .9; } 100% { transform: scale(1.5); opacity: 0; } }

@media (max-width: 960px) {
  /* Single column: put the signup right after the intro, the quick facts after it. */
  .hero { display: flex; flex-direction: column; gap: 0; padding-block: 40px 56px; }
  .hero-copy { display: contents; }
  .panel-wrap { order: 1; margin-top: 32px; }
  .panel-wrap .notify { order: -1; }
  .facts { order: 2; }
  .lede, .audience, .facts { max-width: none; }
  .why-list { grid-template-columns: 1fr; gap: 24px; }
  .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .closing { flex-direction: column; align-items: flex-start; }
  .strip-mid { display: none; }
}
@media (max-width: 520px) {
  .strip, .site-header, .hero, .band, .site-footer { padding-inline: 18px; }
  .header-cta { display: none; }
  .strip-long { display: none; }
  .strip span { white-space: nowrap; }
  .lanes { display: none; }
  .input-row { flex-direction: column; }
  .input-row input[type="email"] { flex: none; }
  .btn { width: 100%; }
  .notify { padding: 22px 18px 18px; }
  .site-footer { flex-direction: column; }
  .band { padding-block: 44px; }
  .cards { grid-template-columns: 1fr; }
  .btn-link { width: 100%; }
}
@media (max-width: 520px), (pointer: coarse) {
  /* 44px tap targets for the theme toggle on phones and touch screens. */
  .theme-toggle { grid-template-columns: repeat(3, 44px); }
  .theme-toggle button, .theme-thumb { width: 44px; height: 44px; }
  :root[data-theme="system"] .theme-thumb { transform: translateX(44px); }
  :root[data-theme="light"] .theme-thumb { transform: translateX(88px); }
}
@media (max-width: 359px) {
  /* Very narrow phones: keep the wordmark and the toggle from touching. */
  .site-header { gap: 8px; }
  .lockup { gap: 7px; }
  .logo-mark { width: 26px; height: 26px; }
  .wordmark { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .01ms !important; }
  .underline path { stroke-dashoffset: 0; }
}
