/* Sprout Raise landing page — colours and type from the explainer video (Inter, dark green, mint, amber). */
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/inter-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url("/assets/inter-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  color-scheme: dark;
  --bg1: #0F1D18; --bg2: #173229; --ink: #EEF3EF; --mute: #9DB3A8; --line: #2C4A40; --card: #1B332C;
  --green: #5FD39A; --leaf: #4CC487; --dark: #0B2A1C; --amber: #F2B84B; --red: #F07A6E; --bubble: #F4F8F2;
  --r: 18px;
  /* Stage size: as tall as the visible screen allows under the header, 9:16, never wider than the screen. */
  --h: min(calc(100vh - 76px), calc((100vw - 32px) * 16 / 9));
  --w: calc(var(--h) * 9 / 16);
}
/* Small viewport height = the space visible while Safari's bars are shown, so the video never slips under them. */
@supports (height: 100svh) { :root { --h: min(calc(100svh - 76px), calc((100vw - 32px) * 16 / 9)); } }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; color: var(--ink); background: var(--bg1);
  background-image: linear-gradient(180deg, var(--bg2) 0, var(--bg1) 900px); background-repeat: no-repeat;
  font: 400 16px/1.5 "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}
a { color: var(--green); }
.wrap { margin: 0 auto; padding: max(12px, env(safe-area-inset-top)) 16px 32px; }
.brand, .intro, .foot { width: max(var(--w), min(100%, 480px)); margin-left: auto; margin-right: auto; }

.brand { display: flex; align-items: center; gap: 10px; height: 36px; font-weight: 800; font-size: 18px; letter-spacing: -0.01em; }
.brand .leaf { width: 30px; height: 21px; }
.brand .swiss { width: 26px; height: 26px; margin-left: auto; flex: none; }

/* ---- Stage: the 9:16 video box, as large as fits under the header, never cropped ---- */
.stage {
  position: relative; height: var(--h); width: var(--w); margin: 16px auto 0; overflow: hidden;
  border-radius: var(--r); background: var(--bg1); border: 1px solid var(--line); isolation: isolate;
}
.stage video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; display: block; background: var(--bg1); }
.stage:fullscreen { width: 100vw; height: 100vh; border: 0; border-radius: 0; margin: 0; }
.stage:fullscreen video { object-fit: contain; }

.cover { position: absolute; inset: 0; }
.stage.playing .cover { display: none; }
/* Play button: one fixed spot for the cover and the paused state (centre at 42 % of the height, above Sprout). */
.bigplay { position: absolute; left: 50%; top: 42%; transform: translate(-50%, -50%); width: 96px; height: 96px; padding: 0;
  border-radius: 50%; border: 0; cursor: pointer; background: var(--green); display: block;
  box-shadow: 0 10px 40px rgba(95, 211, 154, .35), 0 0 0 10px rgba(95, 211, 154, .14); animation: pulse 2.4s ease-in-out infinite; }
.bigplay svg { display: block; width: 100%; height: 100%; }
.bigplay path { fill: var(--dark); stroke: var(--dark); stroke-width: 6; stroke-linejoin: round; }
@keyframes pulse { 0%, 100% { box-shadow: 0 10px 40px rgba(95,211,154,.35), 0 0 0 10px rgba(95,211,154,.14); }
  50% { box-shadow: 0 10px 40px rgba(95,211,154,.35), 0 0 0 20px rgba(95,211,154,.06); } }
.stage.started .bigplay { animation: none; }
.teaser { position: absolute; left: 16px; right: 16px; top: calc(42% - 48px - 26px); transform: translateY(-100%); margin: 0;
  text-align: center; font-size: 22px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink); }
.stage.started .teaser { display: none; }
.skip { position: absolute; right: 12px; bottom: 22px; z-index: 2; font: inherit; font-weight: 700; font-size: 14px; color: var(--ink);
  background: rgba(15, 29, 24, .75); border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; cursor: pointer; }
.stage.playing .skip, .stage.panel-open .skip { display: none; }

.bar { position: absolute; left: 12px; bottom: 22px; z-index: 2; display: none; align-items: center; gap: 8px; }
.stage.started:not(.playing) .bar { display: flex; }
.icon { width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(15, 29, 24, .75); }
.icon svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon .spk { fill: var(--ink); }
.icon .off { display: none; }
.stage.muted .icon .on { display: none; }
.stage.muted .icon .off { display: inline; }

/* Progress line: lies exactly on the bar that is drawn into the video (bottom 10 of 1920 px, same colours), so only
   one line is ever visible. Tap or drag to seek. */
.track { position: absolute; left: 0; right: 0; bottom: 0; height: 28px; cursor: pointer; touch-action: none; z-index: 1; }
.track::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: #2C4940; }
.fill { position: absolute; left: 0; bottom: 0; height: 5px; width: 0; background: #5ED399; }

/* Last scene: the 5 options appear as a dimmed card over the drawn checklist + arrow (top 6–55 % of the frame; the
   speech bubble starts at 57.5 %), with a line filling up until the video ends; then the card opens into the poll. */
.preview { position: absolute; left: 16px; right: 16px; top: 6%; bottom: 45%; z-index: 1; display: flex; flex-direction: column;
  gap: 8px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 16px; pointer-events: none;
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: opacity .45s ease, transform .45s ease, visibility 0s linear .45s; }
.stage.show-preview .preview { opacity: 1; visibility: visible; transform: none; transition: opacity .45s ease, transform .45s ease; }
.stage.user-paused .preview { opacity: 0; visibility: hidden; }
.pv-wait { position: relative; height: 4px; border-radius: 2px; background: #2C4940; overflow: hidden; flex: none; }
.pv-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: var(--green); }
.pv-hint { margin: 0; flex: none; font-size: 13px; font-weight: 600; color: var(--mute); }
.pv-opts { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 6px; }
.pv-opts span { flex: 1; min-height: 0; display: flex; align-items: center; padding: 0 12px; border: 1.5px solid var(--line);
  border-radius: 10px; background: var(--bg1); font-weight: 700; font-size: clamp(12px, 3.6vw, 15px); opacity: .45;
  line-height: 1.15; overflow: hidden; transition: opacity .3s; }
.stage.opening .bar, .stage.opening .skip, .stage.opening .cover { display: none; }
.stage.opening .pv-opts span { opacity: 1; border-color: var(--leaf); }

/* ---- Panels over the video (poll, sign-up, thanks) ---- */
.panel { position: absolute; inset: 0; z-index: 2; animation: panel-in .3s ease; background: var(--bg1); overflow-y: auto;
  -webkit-overflow-scrolling: touch; display: flex; }
.panel-in { margin: auto 0; width: 100%; padding: 20px 16px; }
.panel h2:focus { outline: none; }
.stage.panel-open .cover, .stage.panel-open .bar, .stage.panel-open .track { display: none; }
/* The sign-up form is taller than the video on phones: the box grows with the page instead of scrolling inside. */
.stage.form-open { height: auto; min-height: var(--h); }
.stage.form-open .panel { position: relative; inset: auto; min-height: var(--h); overflow: visible; }
.panel-in.center { text-align: center; }
.panel h2 { margin: 0 0 14px; font-size: 21px; line-height: 1.25; font-weight: 800; letter-spacing: -0.01em; }
.lead { margin: -6px 0 14px; color: var(--mute); }
.voted { margin: 0 0 6px; font-size: 14px; font-weight: 600; color: var(--green); }
.link { font: inherit; font-size: 15px; font-weight: 600; color: var(--mute); background: none; border: 0; padding: 10px 4px;
  cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.panel .replay { display: block; margin: 8px auto 0; }
.row-links { display: flex; justify-content: space-between; gap: 8px; margin-top: 8px; }
.row-links .replay { margin: 0; }
.panel-in.center .row-links { justify-content: center; gap: 20px; }

.intro { margin-top: max(28px, calc(100vh - 64px - var(--h) + 16px)); }
@supports (height: 100lvh) { .intro { margin-top: max(28px, calc(100lvh - 64px - var(--h) + 16px)); } }
.intro h1 { margin: 0 0 8px; font-size: clamp(26px, 7vw, 36px); line-height: 1.12; font-weight: 800; letter-spacing: -0.02em; }
.intro h1 span { color: var(--green); }
.points { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.points li > b, .point-cta b { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.2; }
.points li > span { display: block; margin-top: 2px; color: var(--mute); }
.points li:not(:last-child) { padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; }
.points .num { color: var(--green); }
.point-cta { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; text-align: left;
  font: inherit; color: var(--dark); background: var(--green); border: 0; border-radius: 14px; padding: 14px 16px; cursor: pointer; }
.point-cta span { font-weight: 800; white-space: nowrap; }
.point-cta:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; }

.options { display: grid; gap: 10px; }
.opt { display: grid; gap: 2px; width: 100%; text-align: left; font: inherit; color: var(--ink); cursor: pointer;
  background: var(--bg1); border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 16px; min-height: 50px;
  transition: border-color .15s, background .15s; }
.opt b { font-weight: 700; }
.opt small { color: var(--mute); font-size: 14px; line-height: 1.35; }
.opt:hover { border-color: var(--leaf); }
.opt:focus-visible, .cta:focus-visible, .roles input:focus-visible + span, .bigplay:focus-visible, .icon:focus-visible,
.skip:focus-visible, .link:focus-visible, .track:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }
.opt[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--dark); }
.opt[aria-pressed="true"] small { color: var(--dark); opacity: .8; }
.opt.busy { opacity: .6; }
.options.locked .opt { pointer-events: none; }

.ts:not(:empty) { margin-top: 12px; }
.status { margin: 12px 0 0; min-height: 1.5em; font-size: 15px; color: var(--mute); white-space: pre-line; }
.status:empty { display: none; }
.status.err { color: var(--red); }
.status.ok { color: var(--green); }

form { display: grid; gap: 14px; }
.roles { border: 0; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.roles legend { padding: 0; margin-bottom: 8px; font-size: 14px; font-weight: 600; color: var(--mute); }
.roles label { position: relative; }
.roles input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.roles span { display: block; text-align: center; padding: 11px 6px; border: 1.5px solid var(--line); border-radius: 12px;
  background: var(--bg1); font-weight: 700; font-size: 15px; }
.roles input:checked + span { background: var(--green); border-color: var(--green); color: var(--dark); }

.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--mute); }
.field input, .field select { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg1);
  border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; }
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--mute) 50%),
  linear-gradient(135deg, var(--mute) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%;
  background-size: 6px 6px; background-repeat: no-repeat; padding-right: 36px; }
.field input:focus, .field select:focus { outline: none; border-color: var(--green); }
.field input::placeholder { color: #5F786C; }

.consent { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; font-size: 13px; line-height: 1.45; color: var(--mute); }
.consent input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); }

.cta { font: inherit; font-weight: 800; font-size: 17px; color: var(--dark); background: var(--green); border: 0;
  border-radius: 14px; padding: 15px 18px; min-height: 52px; cursor: pointer; }
.cta:disabled { opacity: .6; cursor: default; }

.foot { text-align: center; color: var(--mute); font-size: 14px; margin-top: 64px; padding-bottom: 8px; }
.foot p { margin: 4px 0; }
.foot .closing { color: var(--ink); opacity: .85; }
.foot .attrib { margin-top: 18px; font-size: 11px; opacity: .45; }
.foot .attrib a { color: var(--mute); text-decoration: none; }

@media (min-width: 900px) { .stage { margin-top: 20px; } }

/* End states (after sign-up / "Not for me"): centred, calm. */
.panel-in.end { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 28px 24px; }
.okmark { width: 64px; height: 64px; border-radius: 50%; background: rgba(95, 211, 154, .14); display: grid; place-items: center; }
.okmark svg { width: 32px; height: 32px; fill: none; stroke: var(--green); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.pill { margin: 0; font-size: 13px; font-weight: 700; color: var(--green); background: var(--card); border: 1px solid var(--line);
  border-radius: 999px; padding: 5px 12px; }
.panel-in.end h2 { margin: 0; font-size: 22px; line-height: 1.3; max-width: 17em; }
.actions { display: flex; flex-direction: column; align-items: stretch; gap: 6px; width: 100%; max-width: 260px; margin-top: 14px; }
.btn-sec { font: inherit; font-weight: 700; font-size: 16px; color: var(--ink); background: var(--card); border: 1.5px solid var(--line);
  border-radius: 14px; min-height: 50px; cursor: pointer; }
.btn-ghost { font: inherit; font-weight: 600; font-size: 15px; color: var(--mute); background: none; border: 0; min-height: 44px; cursor: pointer; }
.btn-sec:focus-visible, .btn-ghost:focus-visible { outline: 3px solid var(--green); outline-offset: 2px; }

/* Scroll reveal for the blocks below the video (hidden only when JS runs; see early.js). */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

.arr { width: 1em; height: 1em; vertical-align: -0.14em; fill: none; stroke: currentColor; stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
@media (min-width: 900px) { .arr { width: 1.3em; height: 1.3em; vertical-align: -0.28em; } }
@keyframes panel-in { from { opacity: 0; } to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .js .reveal { transform: none; } }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* Poll results after a vote ("How people answered"): percentages only, never the vote count. Replaces the
   "Your vote" line / pill; those only show if the results can't be loaded. */
.results { width: 100%; margin: 0 0 18px; padding: 14px 14px 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; text-align: left; }
.results h3 { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--mute); }
.rs-row + .rs-row { margin-top: 9px; }
.rs-top { display: flex; align-items: baseline; gap: 8px; font-size: 14px; line-height: 1.25; }
.rs-label { font-weight: 600; }
.rs-you { font-size: 11px; font-weight: 800; color: var(--dark); background: var(--green); border-radius: 999px; padding: 1px 7px;
  white-space: nowrap; }
.rs-pct { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.rs-track { position: relative; height: 6px; margin-top: 5px; border-radius: 3px; background: #24423A; overflow: hidden; }
.rs-fill { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 3px; background: #3E7A60; }
.rs-row.mine .rs-label, .rs-row.mine .rs-pct { color: var(--green); }
.rs-row.mine .rs-fill { background: var(--green); }
.panel-in.end .results { max-width: 340px; margin: 0; }
