/*
 * weboot.ca. Two pages, no JavaScript. The palette is the brand's (identite-marque.md section 6) in light and in
 * dark, following the visitor's system. The green is an accent for what can be acted on, never a background.
 */
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter.woff2") format("woff2");
  font-weight: 400 500;
  font-style: normal;
  font-display: swap;
  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: "JetBrains Mono";
  src: url("../fonts/jetbrains-mono.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  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: "Space Grotesk";
  src: url("../fonts/space-grotesk.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  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;
}

:root {
  color-scheme: light dark;
  --bg: #F7F8F7;
  --surface: #FFFFFF;
  --ink: #141A1F;
  --muted: #5B6670;
  --line: #DDE2E1;
  --accent: #0E9F6E;
  --action: #0A7A54;
  --action-hover: #076244;
  --on-action: #FFFFFF;
  --heading: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --banner-bg: #141A1F;
  --warn: #D97706;
  --band-bg: #141A1F;
  --band-fg: #EDF1F0;
  --band-muted: #A3AEB6;
  --band-line: rgb(255 255 255 / 0.18);
  --band-btn: #34C792;
  --band-btn-hover: #5FD9AB;
  --band-btn-fg: #0B1A14;
}

@media (prefers-color-scheme: dark) {
  :root {
    --band-bg: #1C242B;
    --bg: #141A1F;
    --surface: #1C242B;
    --ink: #EDF1F0;
    --muted: #A3AEB6;
    --line: #2E3943;
    --accent: #34C792;
    --action: #34C792;
    --action-hover: #5FD9AB;
    --on-action: #0B1A14;
  }
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

[id] { scroll-margin-top: 1.25rem; }

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 1.0625rem;
  line-height: 1.65;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  padding: 0.6rem 1rem;
  background: var(--ink);
  color: var(--bg);
  border-radius: 0.4rem;
  z-index: 10;
}

.skip:focus { top: 1rem; }

a { color: var(--action); text-underline-offset: 0.2em; text-decoration-thickness: 0.08em; }
a:hover { color: var(--action-hover); text-decoration-thickness: 0.14em; }
:focus-visible { outline: 3px solid var(--action); outline-offset: 3px; border-radius: 0.25rem; }

.wrap { width: min(100% - 2.5rem, 68rem); margin-inline: auto; }

/* Header: the logo, and the phone number in full, as a link, from the first screen. */
.top { border-bottom: 1px solid var(--line); }

.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4.25rem;
}

.logo {
  display: inline-block;
  line-height: 1.2;
  font-family: var(--heading);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-decoration: none;
}

.logo:hover { color: var(--ink); }

/* The symbol is the first "o" of "boot": a little larger than the other "o" so that it reads as the mark, on the same baseline, the bar rising above. */
.logo svg {
  display: inline-block;
  width: 0.66em;
  height: 0.66em;
  margin: 0 0.03em 0 0.02em;
  vertical-align: -0.062em;
  color: var(--accent);
}

.top__nav {
  display: flex;
  gap: 1.75rem;
  margin-left: auto;
  margin-right: 2rem;
}

.top__nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.top__nav a:hover { color: var(--action); text-decoration: underline; }

.top__phone {
  font-weight: 500;
  color: var(--ink);
  text-decoration: none;
  white-space: nowrap;
}

.top__phone:hover { color: var(--action); text-decoration: underline; }

main { flex: 1; }

h1, h2 {
  font-family: var(--heading);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0;
}

/* Home */
.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(3.5rem, 11vw, 8rem) 0 clamp(3rem, 8vw, 6rem);
}

.hero h1 {
  position: relative;
  font-size: clamp(2.4rem, 7.2vw, 4.6rem);
  text-wrap: balance;
}

.hero h1 span { display: block; }

.hero .actions { position: relative; margin-top: 2.25rem; }
.hero h1 span + span { color: var(--action); }

.lead {
  position: relative;
  max-width: 34rem;
  margin: 1.75rem 0 0;
  font-size: clamp(1.1rem, 2.2vw, 1.3rem);
  color: var(--muted);
}

.reach {
  padding: clamp(2.5rem, 6vw, 4rem) 0;
  border-top: 1px solid var(--line);
}

.reach h2, .doc h2 { font-size: clamp(1.5rem, 3.4vw, 2rem); margin-bottom: 0.6rem; }
.reach p { margin: 0 0 1.5rem; color: var(--muted); max-width: 36rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.85rem; }

.btn {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.7rem 1.4rem;
  border-radius: 0.5rem;
  font-weight: 500;
  text-decoration: none;
  border: 2px solid var(--action);
}

.btn--primary { background: var(--action); color: var(--on-action); }
.btn--primary:hover { background: var(--action-hover); border-color: var(--action-hover); color: var(--on-action); text-decoration: none; }
.btn--line { color: var(--action); background: transparent; }
.btn--line:hover { background: var(--surface); text-decoration: none; }

.aside {
  padding: 0 0 clamp(2.5rem, 6vw, 4rem);
}

.aside p {
  margin: 0;
  padding: 1.25rem 1.5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-left: 4px solid var(--accent);
  border-radius: 0.5rem;
  max-width: 44rem;
}

.demo-side { min-width: 0; }

.legend { counter-reset: pin; display: grid; gap: 0.85rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.legend li { display: grid; grid-template-columns: 1.9rem 1fr; gap: 0.8rem; align-items: start; color: var(--muted); }

.legend li::before {
  counter-increment: pin;
  content: counter(pin);
  display: grid;
  place-items: center;
  width: 1.9rem;
  height: 1.9rem;
  border-radius: 50%;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.8rem;
}

.legend strong { color: var(--ink); font-weight: 500; }

/* The four answers: oversized outlined numbers, the last one filled, like the steps of the home page. */
.home .answers { margin: clamp(2.5rem, 6vw, 4rem) 0 0; padding: 0; list-style: none; border-top: 1px solid var(--line); }
.home .answer { display: grid; gap: 0.4rem 2rem; padding: 2rem 0; border-bottom: 1px solid var(--line); }

.home .answer__n {
  font-family: var(--heading);
  font-weight: 600;
  font-size: clamp(3.6rem, 8vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.home .answer:last-child .answer__n { color: var(--accent); -webkit-text-stroke: 0; }
.home .section .answer h2 { max-width: none; margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); line-height: 1.1; letter-spacing: -0.025em; }
.home .answer p { max-width: 36rem; margin: 0; color: var(--muted); }
.home .answers-end { max-width: 36rem; margin: 2rem 0 0; }

@media (min-width: 52rem) {
  .home .answer { grid-template-columns: 8.5rem minmax(14rem, 0.9fr) minmax(0, 1.3fr); align-items: start; padding: 2.4rem 0; }
  .home .answer__n { grid-row: 1; }
}

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 1.75rem 0 2rem; color: var(--muted); font-size: 0.95rem; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 0.4rem 2rem; justify-content: space-between; }
.foot p { margin: 0; }
.foot a { color: var(--muted); }
.foot a:hover { color: var(--action); }

@media (max-width: 45rem) {
  .top__nav { display: none; }
}

@media (max-width: 30rem) {
  .top__phone { font-size: 0.95rem; }
  .btn { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: no-preference) {
  .btn { transition: background-color 0.15s ease, color 0.15s ease; }
}

/* ---------- Sections of the home page ---------- */
.section { padding: clamp(3rem, 8vw, 5.5rem) 0; border-top: 1px solid var(--line); }

.eyebrow {
  margin: 0 0 0.9rem;
  font-family: var(--mono);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--action);
}

.section h2 { font-size: clamp(1.9rem, 4.6vw, 3rem); max-width: 18ch; text-wrap: balance; }
.section__lead { margin: 1rem 0 0; max-width: 34rem; color: var(--muted); }

/* How it works: a rule with a node at each step, like a line coming up. */
.steps {
  list-style: none;
  margin: clamp(2rem, 5vw, 3.25rem) 0 0;
  padding: 0;
  display: grid;
  gap: 2rem 2.25rem;
}

.step { position: relative; padding-top: 1.6rem; border-top: 2px solid var(--line); }

.step::before {
  content: "";
  position: absolute;
  top: -0.42rem;
  left: 0;
  width: 0.75rem;
  height: 0.75rem;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0.3rem var(--bg);
}

.step__n { font-family: var(--mono); font-size: 0.9rem; color: var(--action); }
.step h3 { margin: 0.35rem 0 0.5rem; font-family: var(--heading); font-weight: 600; font-size: 1.3rem; line-height: 1.2; letter-spacing: -0.01em; }
.step p { margin: 0; color: var(--muted); max-width: 22rem; }

@media (min-width: 40rem) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 66rem) { .steps { grid-template-columns: repeat(4, 1fr); } }

/* Plans */
.plans {
  display: grid;
  gap: 1.5rem;
  margin: clamp(2rem, 5vw, 3rem) 0 0;
}

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(1.6rem, 4vw, 2.2rem);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.1rem;
}

.plan--pick {
  border: 2px solid var(--action);
  box-shadow: 0 30px 50px -34px rgb(10 122 84 / 0.55);
}

.plan__tag {
  position: absolute;
  top: -0.85rem;
  left: 1.6rem;
  margin: 0;
  padding: 0.25rem 0.8rem;
  border-radius: 2rem;
  background: var(--action);
  color: var(--on-action);
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.plan h3 { margin: 0; font-family: var(--heading); font-weight: 600; font-size: 1.5rem; letter-spacing: -0.015em; }
.plan__for { margin: 0.35rem 0 0; color: var(--muted); }

.plan__price { display: flex; align-items: baseline; gap: 0.5rem; margin: 1.4rem 0 1.5rem; }
.plan__amount { font-family: var(--heading); font-weight: 600; font-size: clamp(3rem, 7vw, 4rem); line-height: 1; letter-spacing: -0.03em; }
.plan__per { font-family: var(--mono); font-size: 0.9rem; color: var(--muted); }

.plan__rows { margin: 0 0 1.75rem; padding: 0; }

.plan__rows div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid var(--line);
}

.plan__rows dt { color: var(--muted); }
.plan__rows dd { margin: 0; font-weight: 500; text-align: right; }

.plan .btn { margin-top: auto; justify-content: center; }

@media (min-width: 50rem) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .plans__side { grid-column: 1 / -1; }
}

@media (min-width: 66rem) {
  .plans { grid-template-columns: 1fr 1fr 0.9fr; }
  .plans__side { grid-column: auto; }
}

.also { margin: 1.75rem 0 0; max-width: 54rem; color: var(--muted); }
.also strong { color: var(--ink); font-weight: 500; }

/* Beside the plans: the set-up price, and the argument that carries the page (the site belongs to the client). */
.plans__side {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
  padding: clamp(1.6rem, 4vw, 2.2rem);
  background: var(--band-bg);
  color: var(--band-fg);
  border: 1px solid var(--band-line);
  border-radius: 1.1rem;
}

.plans__side .eyebrow { color: var(--band-btn); margin-bottom: 0.6rem; }
.setup__price { margin: 0; font-family: var(--heading); font-weight: 600; font-size: clamp(2.2rem, 5vw, 2.8rem); line-height: 1; letter-spacing: -0.03em; }
.setup__note { margin: 0.6rem 0 0; color: var(--band-muted); }
.setup__own { margin: 0; padding-top: 1.5rem; border-top: 1px solid var(--band-line); font-family: var(--heading); font-weight: 600; font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; }

.fine { margin: 1.75rem 0 0; padding: 0; list-style: none; max-width: 54rem; color: var(--muted); font-size: 0.92rem; }
.fine li + li { margin-top: 0.35rem; }

/* The call to action: two ways to begin. A dark band in both themes. */
.band {
  padding: clamp(3rem, 8vw, 5.5rem) 0;
  background: var(--band-bg);
  color: var(--band-fg);
  border-top: 1px solid var(--line);
}

.band .eyebrow { color: var(--band-btn); }
.band h2 { font-family: var(--heading); font-weight: 600; font-size: clamp(2rem, 5vw, 3.2rem); max-width: 16ch; text-wrap: balance; }
.band__lead { margin: 1rem 0 0; max-width: 32rem; color: var(--band-muted); }

.choices { display: grid; gap: 1.25rem; margin: clamp(2rem, 5vw, 3rem) 0 0; }

.choice {
  display: flex;
  flex-direction: column;
  padding: clamp(1.5rem, 4vw, 2rem);
  border: 1px solid var(--band-line);
  border-radius: 1rem;
}

.choice h3 { margin: 0; font-family: var(--heading); font-weight: 600; font-size: 1.6rem; letter-spacing: -0.015em; }
.choice p { margin: 0.6rem 0 1.5rem; color: var(--band-muted); }
.choice .actions { margin-top: auto; }

.band a { color: var(--band-btn); }
.band a:hover { color: var(--band-btn-hover); }
.band :focus-visible { outline-color: var(--band-btn); }

.band .btn { border-color: var(--band-btn); }
.band .btn--primary { background: var(--band-btn); color: var(--band-btn-fg); }
.band .btn--primary:hover { background: var(--band-btn-hover); border-color: var(--band-btn-hover); color: var(--band-btn-fg); }
.band .btn--line { background: transparent; color: var(--band-btn); }
.band .btn--line:hover { background: rgb(255 255 255 / 0.06); color: var(--band-btn-hover); }

.band__demo { margin: 2rem 0 0; color: var(--band-muted); font-size: 0.95rem; }

@media (min-width: 50rem) { .choices { grid-template-columns: repeat(2, 1fr); } }

/* Motion: on arrival the symbol is drawn, the heading and the buttons rise after it. Nothing waits for a scroll. */
@media (prefers-reduced-motion: no-preference) {
  .hero h1 span:first-child { animation: rise 0.7s ease-out 0.1s backwards; }
  .hero h1 span:last-child { animation: rise 0.7s ease-out 0.28s backwards; }
  .hero .lead { animation: rise 0.7s ease-out 0.45s backwards; }
  .hero .actions { animation: rise 0.7s ease-out 0.6s backwards; }
}

/* ==========================================================================
 * The home page, bold. Everything below is scoped to body.home: /demo and the 404 keep their own look.
 * The idea is the brand's own: a power LED is green. The page opens on ink, in very large type, and the full stop of
 * "On le garde en ligne." is a live status light. After it: black and white, with green only where there is something to do.
 * ========================================================================== */
:root {
  --hero-bg: #141A1F;
  --on-accent: #0B1A14;
}

@media (prefers-color-scheme: dark) {
  :root { --hero-bg: #0C1013; }
}

.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* Film grain on the dark blocks: a small SVG noise, drawn once. */
.home .band::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.09;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------- Hero: the site that reboots ----------
 * A browser window split in two: on the left a site left to die, on the right the same site, alive. A green line
 * sweeps across and takes the window from one state to the other. All of it is drawn in CSS; every size inside
 * the window is in container units (cqw) so that the picture scales as one piece. Decorative: aria-hidden. */
:root { --led: 14 159 110; }
@media (prefers-color-scheme: dark) { :root { --led: 52 199 146; } }

.home .hero {
  position: relative;
  overflow: hidden;
  padding: clamp(2.75rem, 7vw, 5.5rem) 0 clamp(3.5rem, 8vw, 6.5rem);
  background: radial-gradient(55% 75% at 80% 48%, rgb(14 159 110 / 0.17), transparent 72%), var(--bg);
}

@media (prefers-color-scheme: dark) {
  .home .hero { background: radial-gradient(55% 75% at 80% 48%, rgb(52 199 146 / 0.22), transparent 72%), var(--bg); }
}

/* A fine dotted grid, fading out downwards: the page is a workbench, not a wall. */
.home .hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle at 1px 1px, var(--line) 1.1px, transparent 1.7px) 0 0 / 30px 30px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 88%);
  mask-image: linear-gradient(180deg, #000, transparent 88%);
}

.home .hero .wrap {
  position: relative;
  z-index: 1;
  display: grid;
  gap: clamp(2.5rem, 6vw, 3.5rem);
  align-items: center;
}

@media (min-width: 62rem) { .home .hero .wrap { grid-template-columns: 1fr 1.08fr; gap: 2.5rem; } }

.home .hero h1 {
  max-width: none;
  font-size: clamp(2.8rem, 6.7vw, 6rem);
  line-height: 0.94;
  letter-spacing: -0.05em;
  text-wrap: initial;
}

.home .hero h1 .l { display: block; color: var(--ink); }
.home .hero h1 .g { color: var(--action); }

.home .hero h1 .led {
  display: inline-block;
  width: 0.15em;
  height: 0.15em;
  margin-left: 0.07em;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0.35em 0.06em rgb(var(--led) / 0.7), 0 0 1.1em 0.2em rgb(var(--led) / 0.35);
}

.home .hero .lead { max-width: 34rem; margin-top: clamp(1.5rem, 3vw, 2.25rem); font-size: clamp(1.1rem, 1.9vw, 1.4rem); }
.home .hero .actions { margin-top: 2rem; }
.home .hero .btn { min-height: 3.4rem; padding-inline: 1.8rem; font-size: 1.05rem; }
.o-404 { margin-left: 0.8cqw; padding: 0.2cqw 0.8cqw; background: #5E5C57; color: #E8E6E0; font-family: var(--mono); font-size: 1.6cqw; }

/* Sections: very large headings */
.home .section h2 {
  max-width: 13ch;
  font-size: clamp(2.6rem, 7.4vw, 5.6rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
}

.home .section__lead { font-size: 1.1rem; }

/* How it works: oversized outlined numbers, the last one is filled. */
.home .steps { gap: 2.5rem 0; margin-top: clamp(2.5rem, 6vw, 4rem); }
.home .step { padding: 0 0 0 1.5rem; border-top: 0; border-left: 1px solid var(--line); }
.home .step::before { display: none; }

.home .step__n {
  display: block;
  font-family: var(--heading);
  font-weight: 600;
  font-size: clamp(5rem, 10vw, 8rem);
  line-height: 0.9;
  letter-spacing: -0.05em;
  color: transparent;
  -webkit-text-stroke: 2px var(--ink);
}

.home .step:last-child .step__n { color: var(--accent); -webkit-text-stroke: 0; }
.home .step h3 { margin-top: 1.1rem; font-size: 1.45rem; }
.home .step p { font-size: 1.02rem; }

@media (min-width: 40rem) { .home .step:nth-child(odd) { border-left: 0; padding-left: 0; } }
@media (min-width: 66rem) {
  .home .step:nth-child(odd) { border-left: 1px solid var(--line); padding-left: 1.5rem; }
  .home .step:first-child { border-left: 0; padding-left: 0; }
}

/* Plans: white, ink and green. The numbers are the picture. */
.home .plans { align-items: stretch; gap: 1.25rem; max-width: none; }
.home .plan { border-radius: 1.25rem; padding: clamp(1.75rem, 3.4vw, 2.5rem); transition: none; }

.home .plan h3 { font-size: 1.35rem; }

.home .plan__price { margin: 1.5rem 0 1.75rem; }
.home .plan__amount {
  font-size: clamp(5.5rem, 11vw, 9rem);
  line-height: 0.82;
  letter-spacing: -0.06em;
}

.plan__cur { font-size: 0.28em; vertical-align: top; position: relative; top: 0.2em; letter-spacing: 0; margin-left: 0.04em; }

.home .plan--pick {
  background: var(--hero-bg);
  color: #FFFFFF;
  border: 1px solid #34C792;
  box-shadow: 0 0 0 1px rgb(52 199 146 / 0.35), 0 40px 90px -40px rgb(52 199 146 / 0.55);
}

.home .plan--pick .plan__for,
.home .plan--pick .plan__per,
.home .plan--pick .plan__rows dt { color: #A3AEB6; }
.home .plan--pick .plan__rows div { border-color: rgb(255 255 255 / 0.18); }
.home .plan--pick .plan__tag { background: #34C792; color: var(--on-accent); }
.home .plan--pick .btn--primary { background: #34C792; border-color: #34C792; color: var(--on-accent); }
.home .plan--pick .btn--primary:hover { background: #5FD9AB; border-color: #5FD9AB; color: var(--on-accent); }
.home .plan--pick :focus-visible { outline-color: #34C792; }

@media (min-width: 66rem) {
  .home .plans { grid-template-columns: 1fr 1.08fr 1fr; align-items: center; }
  .home .plan--pick { padding-block: clamp(2.4rem, 4.4vw, 3.3rem); }
}

/* The green block: the sentence that carries the page. Brand green, ink text. */
.home .plans__side {
  justify-content: space-between;
  background: var(--accent);
  color: var(--on-accent);
  border: 0;
  border-radius: 1.25rem;
}

.home .plans__side .eyebrow { color: var(--on-accent); }
.home .setup__price { font-size: clamp(4rem, 8vw, 6rem); line-height: 0.85; letter-spacing: -0.05em; }
.home .setup__note { color: var(--on-accent); }
.home .setup__own { border-top: 1px solid rgb(11 26 20 / 0.3); font-size: clamp(1.3rem, 2.2vw, 1.65rem); line-height: 1.25; }
.home .plans__side :focus-visible { outline-color: var(--on-accent); }

.home .also { max-width: 46rem; }

/* The call to action: two big rows that fill with green on hover. */
.home .band {
  position: relative;
  background: var(--hero-bg);
  overflow: hidden;
}

.home .band .wrap { position: relative; z-index: 1; }
.home .band h2 { max-width: 12ch; font-size: clamp(2.6rem, 7.4vw, 5.6rem); line-height: 0.95; letter-spacing: -0.045em; }

.rows { list-style: none; margin: clamp(2rem, 5vw, 3.25rem) -1rem 0; padding: 0; border-top: 1px solid var(--band-line); }

.row {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 0.35rem 1.5rem;
  padding: clamp(1.4rem, 3.4vw, 2.3rem) 1rem;
  overflow: hidden;
  color: var(--band-fg);
  text-decoration: none;
  border-bottom: 1px solid var(--band-line);
}

.row::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--band-btn);
  transform: scaleX(0);
  transform-origin: left;
}

.row:hover::before,
.row:focus-visible::before { transform: scaleX(1); }

.band .row { color: var(--band-fg); }
.band .row:hover,
.band .row:focus-visible { color: var(--band-btn-fg); }
.row__go { color: var(--band-btn); }
.band .row:hover .row__go,
.band .row:focus-visible .row__go { color: var(--band-btn-fg); }

.row__k { grid-column: 1; font-family: var(--mono); font-size: 0.78rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--band-btn); }
.row__t { grid-column: 1; font-family: var(--heading); font-weight: 600; font-size: clamp(2.5rem, 8.4vw, 6.4rem); line-height: 1; letter-spacing: -0.045em; }
.row__sub { grid-column: 1; color: var(--band-muted); }
.row__go { grid-column: 2; grid-row: 1 / span 3; font-size: clamp(2.2rem, 6vw, 4.4rem); line-height: 1; }

.band .row:hover .row__k,
.band .row:focus-visible .row__k,
.band .row:hover .row__sub,
.band .row:focus-visible .row__sub { color: var(--band-btn-fg); }

.row:focus-visible { outline: 3px solid var(--band-btn); outline-offset: -3px; }

.band__demo a { word-break: break-word; }

@media (prefers-reduced-motion: no-preference) {
  /* The boot: each line warms up in turn, then the light comes on and starts to breathe. Slow, no flashing. */
  .home .hero h1 .l { animation: warm 0.9s ease-out backwards; }
  .home .hero h1 .l:nth-child(1) { animation-delay: 0.15s; }
  .home .hero h1 .l:nth-child(2) { animation-delay: 0.4s; }
  .home .hero h1 .l:nth-child(3) { animation-delay: 0.85s; }
  .home .hero h1 .l:nth-child(4) { animation-delay: 1.1s; }
  .home .hero h1 .led { animation: led-on 0.8s ease-out 1.9s backwards, breathe 2.8s ease-in-out 2.7s infinite; }
  .home .hero .lead { animation-delay: 1.3s; }
  .home .hero .actions { animation-delay: 1.5s; }
  .row::before { transition: transform 0.38s cubic-bezier(0.2, 0.8, 0.2, 1); }
  .row__go { transition: transform 0.3s ease; }
  .row:hover .row__go { transform: translateX(0.5rem); }
  .home .plan--pick { transition: transform 0.3s ease; }
  .home .plan--pick:hover { transform: translateY(-0.35rem); }
}

@keyframes warm { from { opacity: 0; transform: translateY(0.6rem); filter: blur(10px); } 60% { opacity: 0.85; } }
@keyframes led-on { from { opacity: 0; transform: scale(0.2); } }
@keyframes breathe { 50% { box-shadow: 0 0 0.2em 0.03em rgb(52 199 146 / 0.55), 0 0 0.7em 0.12em rgb(52 199 146 / 0.22); } }

/* ==========================================================================
 * Motion. Four layers, all CSS, none of them needed to read the page:
 *   - on arrival: the title lights up line by line, the LED comes on, the window reboots (already above);
 *   - alive: the window reboots again every few seconds, a ticker runs, the dotted grid drifts;
 *   - on scroll (view() timelines, where the browser has them): things rise into place, the window drifts, a thin line
 *     shows how far down the page you are. Without view() support nothing is hidden: it is all just there;
 *   - on hover: buttons lift, links draw their underline, the logo turns like a knob, the numbers fill.
 * Everything sits under prefers-reduced-motion: no-preference. Nothing flashes: the fastest movement is a 0.4 s slide.
 * ========================================================================== */
.progress {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 60;
  height: 3px;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  pointer-events: none;
}

/* The ticker: what is included, in motion, instead of a grid of icons. Tilted a little, like a strip of tape. */
.ticker-wrap { overflow: hidden; padding: 1.75rem 0; }

.ticker {
  margin-inline: -2rem;
  padding: 1.1rem 0;
  overflow: hidden;
  background: var(--hero-bg);
  color: #FFFFFF;
  border-block: 1px solid rgb(255 255 255 / 0.12);
  transform: rotate(-1.4deg);
}

.ticker__track { display: flex; width: max-content; }
.ticker__group { display: flex; flex: none; align-items: center; margin: 0; padding: 0; list-style: none; }

.ticker__group li {
  display: flex;
  align-items: center;
  font-family: var(--heading);
  font-weight: 600;
  font-size: clamp(1.5rem, 3.4vw, 2.5rem);
  letter-spacing: -0.03em;
  white-space: nowrap;
}

.ticker__group li::after {
  content: "";
  width: 0.7rem;
  height: 0.7rem;
  margin: 0 2.4rem;
  border-radius: 50%;
  background: #34C792;
  box-shadow: 0 0 0.8rem rgb(52 199 146 / 0.7);
}

.ticker__group li:nth-child(even) { color: transparent; -webkit-text-stroke: 1.5px #FFFFFF; }

@media (prefers-reduced-motion: reduce) {
  .ticker__track { width: auto; justify-content: center; }
  .ticker__group { flex-wrap: wrap; justify-content: center; row-gap: 0.4rem; padding-inline: 1rem; }
  .ticker__group:last-child { display: none; }
}

@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes grid-drift { to { background-position: 30px 30px; } }
@keyframes in-up { from { opacity: 0; translate: 0 2.4rem; } }
@keyframes in-scale { from { opacity: 0; translate: 0 2.2rem; scale: 0.96; } }
@keyframes bar { to { transform: scaleX(1); } }
@keyframes nudge { 0%, 55%, 100% { translate: 0 0; } 28% { translate: 0.45rem 0; } }

@media (prefers-reduced-motion: no-preference) {
  .ticker__track { animation: marquee 46s linear infinite; }
  .ticker:hover .ticker__track { animation-play-state: paused; }

  .home .hero::before { animation: grid-drift 5s linear infinite; }

  .row__go { animation: nudge 3.4s ease-in-out infinite; }

  /* Hover and press */
  .btn { transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease; }
  .btn:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -14px rgb(10 122 84 / 0.65); }
  .btn:active { transform: translateY(0); box-shadow: none; }

  .top__nav a { padding-bottom: 0.15rem; text-decoration: none; background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat; transition: background-size 0.28s ease, color 0.15s ease; }
  .top__nav a:hover { text-decoration: none; background-size: 100% 2px; }

  .logo svg { transition: transform 0.7s cubic-bezier(0.3, 1.5, 0.5, 1); }
  .logo:hover svg { transform: rotate(180deg); }

  .home .step__n { transition: color 0.3s ease, -webkit-text-stroke-color 0.3s ease; }
  .home .step:hover .step__n { color: var(--accent); -webkit-text-stroke-color: var(--accent); }

  .home .plan { transition: transform 0.3s ease, box-shadow 0.3s ease; }
  .home .plan:not(.plan--pick):hover { transform: translateY(-0.4rem); box-shadow: 0 30px 50px -30px rgb(20 26 31 / 0.4); }
}

/* On scroll: only where the browser can tie an animation to the scroll position. Elsewhere, nothing is hidden. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .progress { animation: bar linear both; animation-timeline: scroll(root); }

    .home .section .eyebrow,
    .home .section h2,
    .home .section__lead,
    .home .also,
    .home .fine,
    .home .answers-end,
    .home .band .eyebrow,
    .home .band h2,
    .home .step,
    .home .answer,
    .home .rows li {
      animation: in-up linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 42%;
    }

    .home .plan,
    .home .plans__side {
      animation: in-scale linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 48%;
    }

    .home .step:nth-child(2), .home .rows li:nth-child(2), .home .plan--pick { animation-range: entry 8% entry 50%; }
    .home .step:nth-child(3), .home .plans__side { animation-range: entry 16% entry 58%; }
    .home .step:nth-child(4) { animation-range: entry 24% entry 66%; }
  }
}

/* ==========================================================================
 * The home hero: a stage. An aurora of green light drifting, a luminous grid running toward you, fine sparks rising,
 * and waves at the bottom whose front layer is the colour of the next section, so the hero pours into the page.
 * Scoped to .hero--stage: /demo keeps its own window. Everything is decorative (aria-hidden) and CSS only.
 * Slow on purpose: the fastest thing is the grid, one cell every 6 seconds. Nothing flashes.
 * ========================================================================== */
.home--stage .top {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 5;
  background: transparent;
  border-bottom: 1px solid rgb(255 255 255 / 0.16);
}

.home--stage .top .logo,
.home--stage .top__phone { color: #FFFFFF; }
.home--stage .top .logo svg { color: #9BF0CC; }
.home--stage .top__nav a { color: rgb(255 255 255 / 0.94); }
.home--stage .top__nav a:hover,
.home--stage .top__phone:hover { color: #BFFFE5; }
.home--stage .top :focus-visible { outline-color: #FFFFFF; }

.home .hero--stage {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding: 7rem 0 9rem;
  overflow: clip;
  background: #06231B;
  color: #FFFFFF;
}

.home .hero--stage::before { display: none; }

.stage { position: absolute; inset: 0; overflow: hidden; }
.stage__base { position: absolute; inset: 0; background: linear-gradient(135deg, #031912 0%, #06382A 48%, #0A5A41 100%); }

.aura {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  mix-blend-mode: screen;
  will-change: transform;
}

.aura--1 { left: -14vw; top: -22vw; width: 56vw; height: 56vw; background: #0E9F6E; opacity: 0.5; }
.aura--2 { right: -14vw; top: 2vh; width: 52vw; height: 52vw; background: #34C792; opacity: 0.5; }
.aura--3 { left: 26vw; bottom: -30vw; width: 64vw; height: 64vw; background: #0A7A54; opacity: 0.9; }
.aura--4 { right: 22vw; top: -10vw; width: 28vw; height: 28vw; background: #9BF0CC; opacity: 0.32; }

/* The grid: a floor of light in perspective that fades toward the horizon. */
.stage__grid {
  position: absolute;
  left: -60%;
  right: -60%;
  bottom: clamp(2.5rem, 6vw, 5.5rem);
  height: 58%;
  opacity: 0.55;
  transform: perspective(520px) rotateX(64deg);
  transform-origin: 50% 100%;
  background:
    linear-gradient(#7FE6BE 1px, transparent 1px) 0 0 / 100% 64px,
    linear-gradient(90deg, #7FE6BE 1px, transparent 1px) 0 0 / 64px 100%;
  -webkit-mask-image: linear-gradient(to top, #000 8%, transparent 88%);
  mask-image: linear-gradient(to top, #000 8%, transparent 88%);
}

/* Sparks: two layers of tiny points of light rising at different speeds. */
.sparks { position: absolute; left: 0; top: 0; width: 2px; height: 2px; border-radius: 50%; }
.sparks--a { box-shadow:
    45.4vw 67vh 0 0 rgb(220 255 240 / 0.8),
    46.7vw 61vh 0 0 rgb(220 255 240 / 0.6),
    19.7vw 61vh 0 0 rgb(220 255 240 / 0.63),
    78.1vw 15vh 0 0 rgb(220 255 240 / 0.43),
    10.7vw 94vh 0 0 rgb(220 255 240 / 0.67),
    6.0vw 113vh 0 0 rgb(220 255 240 / 0.83),
    64.8vw 73vh 0 0 rgb(220 255 240 / 0.34),
    3.4vw 63vh 0 0 rgb(220 255 240 / 0.29),
    20.3vw 32vh 0 0 rgb(220 255 240 / 0.27),
    46.5vw 53vh 0 0 rgb(220 255 240 / 0.76),
    51.8vw 75vh 0 0 rgb(220 255 240 / 0.55),
    65.6vw 55vh 0 0 rgb(220 255 240 / 0.42),
    97.8vw 115vh 0 0 rgb(220 255 240 / 0.75),
    69.9vw 40vh 0 0 rgb(220 255 240 / 0.39),
    29.7vw 13vh 0 0 rgb(220 255 240 / 0.71),
    40.4vw 98vh 0 0 rgb(220 255 240 / 0.48),
    94.0vw 98vh 0 0 rgb(220 255 240 / 0.25),
    22.1vw 105vh 0 0 rgb(220 255 240 / 0.53),
    96.1vw 49vh 0 0 rgb(220 255 240 / 0.29),
    62.4vw 91vh 0 0 rgb(220 255 240 / 0.41),
    10.4vw 42vh 0 0 rgb(220 255 240 / 0.83),
    74.8vw 18vh 0 0 rgb(220 255 240 / 0.4),
    11.7vw 12vh 0 0 rgb(220 255 240 / 0.73),
    19.1vw 67vh 0 0 rgb(220 255 240 / 0.52),
    20.3vw 86vh 0 0 rgb(220 255 240 / 0.33),
    63.8vw 18vh 0 0 rgb(220 255 240 / 0.5),
    22.4vw 35vh 0 0 rgb(220 255 240 / 0.83),
    79.1vw 38vh 0 0 rgb(220 255 240 / 0.78),
    22.2vw 48vh 0 0 rgb(220 255 240 / 0.76),
    63.6vw 16vh 0 0 rgb(220 255 240 / 0.84),
    22.5vw 33vh 0 0 rgb(220 255 240 / 0.71),
    33.6vw 38vh 0 0 rgb(220 255 240 / 0.29),
    10.7vw 69vh 0 0 rgb(220 255 240 / 0.4),
    59.7vw 46vh 0 0 rgb(220 255 240 / 0.52),
    94.1vw 58vh 0 0 rgb(220 255 240 / 0.59),
    85.2vw 25vh 0 0 rgb(220 255 240 / 0.34),
    89.2vw 95vh 0 0 rgb(220 255 240 / 0.4),
    20.2vw 86vh 0 0 rgb(220 255 240 / 0.81),
    20.9vw 110vh 0 0 rgb(220 255 240 / 0.78),
    59.9vw 51vh 0 0 rgb(220 255 240 / 0.31); }
.sparks--b { width: 3px; height: 3px; box-shadow:
    5.7vw 111vh 0 0 rgb(220 255 240 / 0.33),
    69.6vw 33vh 0 0 rgb(220 255 240 / 0.54),
    59.3vw 37vh 0 0 rgb(220 255 240 / 0.31),
    71.2vw 13vh 0 0 rgb(220 255 240 / 0.33),
    55.7vw 99vh 0 0 rgb(220 255 240 / 0.47),
    28.9vw 106vh 0 0 rgb(220 255 240 / 0.32),
    3.6vw 35vh 0 0 rgb(220 255 240 / 0.41),
    7.8vw 24vh 0 0 rgb(220 255 240 / 0.38),
    56.9vw 19vh 0 0 rgb(220 255 240 / 0.38),
    87.5vw 113vh 0 0 rgb(220 255 240 / 0.48),
    68.4vw 69vh 0 0 rgb(220 255 240 / 0.3),
    5.4vw 7vh 0 0 rgb(220 255 240 / 0.57),
    69.3vw 111vh 0 0 rgb(220 255 240 / 0.26),
    63.1vw 58vh 0 0 rgb(220 255 240 / 0.51),
    32.6vw 115vh 0 0 rgb(220 255 240 / 0.28),
    54.4vw 86vh 0 0 rgb(220 255 240 / 0.57),
    72.8vw 82vh 0 0 rgb(220 255 240 / 0.53),
    89.8vw 44vh 0 0 rgb(220 255 240 / 0.49); }

/* Keeps the left side, where the text is, dark enough to read white on. */
.stage__shade { position: absolute; inset: 0; background: radial-gradient(90% 100% at 0% 52%, rgb(3 25 18 / 0.88) 0%, rgb(3 25 18 / 0.62) 38%, transparent 72%); }

.waves { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(5rem, 11vw, 9rem); }
.waves .w { fill: var(--bg); }
.waves .w1 { opacity: 0.28; }
.waves .w2 { opacity: 0.55; }
.waves .w3 { opacity: 1; }

.home .hero--stage .hero__content { position: relative; z-index: 2; display: block; }
.home .hero--stage .wrap { display: block; }

.home .hero--stage h1 { max-width: 11.5ch; font-size: clamp(2.8rem, min(7.6vw, 13.5svh), 7rem); line-height: 0.95; letter-spacing: -0.05em; text-wrap: balance; }
.home .hero--stage h1 .l { color: #FFFFFF; }
.home .hero--stage h1 .g { color: #9BF0CC; }

.home .hero--stage h1 .led {
  background: #E8FFF5;
  box-shadow: 0 0 0.35em 0.08em rgb(155 240 204 / 0.95), 0 0 1.2em 0.24em rgb(52 199 146 / 0.6);
}

.home .hero--stage .lead { max-width: 33rem; color: rgb(255 255 255 / 0.94); }

.home .hero--stage .btn--primary { background: #FFFFFF; border-color: #FFFFFF; color: #06382A; }
.home .hero--stage .btn--primary:hover { background: #E8FFF5; border-color: #E8FFF5; color: #06382A; box-shadow: 0 14px 28px -14px rgb(0 0 0 / 0.6); }
.home .hero--stage .btn--line { border-color: rgb(255 255 255 / 0.6); color: #FFFFFF; }
.home .hero--stage .btn--line:hover { background: rgb(255 255 255 / 0.12); border-color: #FFFFFF; color: #FFFFFF; box-shadow: none; }
.home .hero--stage :focus-visible { outline-color: #FFFFFF; }

@media (max-width: 45rem) {
  .aura { filter: blur(50px); }
  .sparks--b { display: none; }
  .home .hero--stage { padding-bottom: 7rem; }
}

@media (prefers-reduced-motion: no-preference) {
  .aura--1 { animation: aura-a 26s ease-in-out infinite alternate; }
  .aura--2 { animation: aura-b 32s ease-in-out -8s infinite alternate; }
  .aura--3 { animation: aura-c 38s ease-in-out -14s infinite alternate; }
  .aura--4 { animation: aura-d 22s ease-in-out -4s infinite alternate; }

  .stage__grid { animation: grid-run 6s linear infinite; }
  .sparks--a { animation: rise-a 34s linear infinite; }
  .sparks--b { animation: rise-b 52s linear -20s infinite; }

  .waves .w1 { animation: wave 30s linear infinite; }
  .waves .w2 { animation: wave 21s linear -6s infinite; }
  .waves .w3 { animation: wave 14s linear -3s infinite; }
  .waves { animation: waves-in 1.6s cubic-bezier(0.2, 0.8, 0.2, 1) 0.2s backwards; }
  .stage__base, .aura, .stage__grid { animation-fill-mode: both; }
}

@keyframes aura-a { to { transform: translate(14vw, 10vw) scale(1.18); } }
@keyframes aura-b { to { transform: translate(-16vw, 8vw) scale(0.9); } }
@keyframes aura-c { to { transform: translate(-12vw, -8vw) scale(1.12); } }
@keyframes aura-d { to { transform: translate(-10vw, 12vw) scale(1.3); } }
@keyframes grid-run { to { background-position: 0 64px, 0 0; } }
@keyframes rise-a { from { transform: translateY(0); } to { transform: translateY(-115vh); } }
@keyframes rise-b { from { transform: translateY(0); } to { transform: translateY(-115vh); } }
@keyframes wave { to { transform: translateX(-1200px); } }
@keyframes waves-in { from { transform: translateY(100%); } }
@keyframes stage-out { to { scale: 1.1; opacity: 0.55; } }
@keyframes content-out { to { translate: 0 -4.5rem; opacity: 0; } }

/* On scroll, where the browser has view() timelines: the stage swells and the text lifts away faster than the page. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .hero--stage .stage { animation: stage-out linear both; animation-timeline: view(); animation-range: exit 0% exit 100%; }
    .hero--stage .hero__content { animation: content-out linear both; animation-timeline: view(); animation-range: exit 0% exit 70%; }
  }
}

/* ---------- The stage on /demo (split: text and window) and on the 404 (short) ---------- */
.home .hero--stage.hero--split .hero__content { display: block; }
.home .hero--stage.hero--split .wrap { display: grid; align-items: center; gap: clamp(2.5rem, 6vw, 3.5rem); }
@media (min-width: 62rem) { .home .hero--stage.hero--split .wrap { grid-template-columns: 1fr 1.08fr; gap: 2.5rem; } }

.hero--split .legend li { color: rgb(255 255 255 / 0.92); }
.hero--split .legend strong { color: #FFFFFF; }
.hero--split .legend li::before { background: #9BF0CC; color: #06231B; }

.home .hero--stage.hero--short { min-height: 78vh; min-height: 78svh; }
.home .hero--stage.hero--short h1 { max-width: 14ch; }

/* The legend sits on the brightest part of the stage: it gets its own dark glass panel. */
.hero--split .legend {
  padding: 1.1rem 1.25rem;
  background: rgb(4 30 22 / 0.66);
  border: 1px solid rgb(255 255 255 / 0.14);
  border-radius: 1rem;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}

/* On a tablet the text spans more of the width, over more of the aurora: a more even shade. */
@media (max-width: 62rem) {
  .stage__shade { background: linear-gradient(90deg, rgb(3 25 18 / 0.8) 0%, rgb(3 25 18 / 0.58) 100%); }
}

/* ---------- Contact form: the card, the fields, the states the script writes ---------- */
.contact-grid { display: grid; gap: clamp(2.5rem, 5vw, 3rem); align-items: start; }
@media (min-width: 62rem) { .contact-grid { grid-template-columns: 1fr 1.05fr; gap: 4rem; } }

.contact-intro .band__lead { margin-top: 0; }
.rows--compact { margin-top: 1.75rem; }
.rows--compact .row { padding-block: clamp(1.1rem, 2.4vw, 1.5rem); }
.rows--compact .row__t { font-size: clamp(1.6rem, 3vw, 2.3rem); overflow-wrap: anywhere; }
.rows--compact .row__go { font-size: clamp(1.8rem, 4vw, 2.8rem); }

.form-card { padding: clamp(1.5rem, 4vw, 2.25rem); border-radius: 1.4rem; background: #FFFFFF; color: #141A1F; box-shadow: 0 40px 80px -40px rgb(0 0 0 / 0.65); }
.form-card :focus-visible { outline-color: #0A7A54; }
.form-card a { color: #0A7A54; }
.form-card a:hover { color: #076244; }
.form h3 { margin: 0 0 1.1rem; font-family: var(--heading); font-weight: 600; font-size: 1.7rem; letter-spacing: -0.02em; }

.seg { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem; margin: 0 0 1.2rem; padding: 0; border: 0; }
.seg legend { margin: 0 0 0.45rem; padding: 0; font-size: 0.95rem; font-weight: 500; }
.seg label { position: relative; display: block; }
.seg input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }

.seg span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.5rem 0.8rem;
  border: 1.5px solid #C7CFCD;
  border-radius: 0.7rem;
  font-weight: 500;
  text-align: center;
}

.seg input:checked + span { background: #0A7A54; border-color: #0A7A54; color: #FFFFFF; }
.seg input:not(:checked):hover + span { border-color: #0A7A54; }
.seg input:focus-visible + span { outline: 3px solid #0A7A54; outline-offset: 2px; }

.form__fields { display: grid; gap: 1.1rem; }
@media (min-width: 40rem) { .form__row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; } }
.form__row2 .field + .field { margin-top: 1.1rem; }
@media (min-width: 40rem) { .form__row2 .field + .field { margin-top: 0; } }

.field label { display: block; margin-bottom: 0.35rem; font-size: 0.95rem; font-weight: 500; }
.field .opt { font-weight: 400; color: #4B555D; }

.field input,
.field textarea {
  width: 100%;
  padding: 0.8rem 0.9rem;
  font: inherit;
  color: #141A1F;
  background: #F7F8F7;
  border: 1.5px solid #AEB8B5;
  border-radius: 0.6rem;
}

.field textarea { min-height: 8rem; resize: vertical; }
.field input::placeholder { color: #5E6870; }
.field input:hover, .field textarea:hover { border-color: #6B757D; }
.field input:focus, .field textarea:focus { outline: none; border-color: #0A7A54; background: #FFFFFF; box-shadow: 0 0 0 4px rgb(14 159 110 / 0.22); }
.field input:user-invalid, .field textarea:user-invalid { border-color: #B42318; }

.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form__notice { margin: 1.1rem 0 1rem; font-size: 0.92rem; color: #3D4650; }
.form .btn { width: 100%; justify-content: center; min-height: 3.2rem; }
.form__status { min-height: 1.4rem; margin: 0.7rem 0 0; font-weight: 500; color: #3D4650; }
.turnstile { min-height: 65px; margin: 0.2rem 0 1rem; }

.form-sent {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  min-height: 26rem;
  margin: 0;
  padding: 2rem 1.25rem;
  border-radius: 1.1rem;
  background: radial-gradient(ellipse 46% 38% at 50% 40%, #DDF3EA 0%, rgb(255 255 255 / 0) 100%);
  color: #0A4F39;
  font-family: var(--heading);
  font-size: clamp(1.6rem, 3.4vw, 2rem);
  font-weight: 600;
  line-height: 1.15;
  letter-spacing: -0.02em;
  text-align: center;
  text-wrap: balance;
}

.form-sent:focus { outline: none; }

/* A big check that pops in and draws itself (the animation lives in the picture and stops under reduced motion). */
.form-sent::before {
  content: "";
  width: 6rem;
  height: 6rem;
  margin-bottom: 0.4rem;
  background: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 96 96'%3E%3Cstyle%3E.c%7Banimation:pop .55s cubic-bezier(.2,1.5,.4,1) both;transform-origin:48px 48px%7D.k%7Bstroke-dasharray:46;animation:draw .5s .3s ease-out both%7D@keyframes pop%7Bfrom%7Btransform:scale(.4);opacity:0%7D%7D@keyframes draw%7Bfrom%7Bstroke-dashoffset:46%7D%7D@media (prefers-reduced-motion:reduce)%7B.c,.k%7Banimation:none%7D%7D%3C/style%3E%3Ccircle class='c' cx='48' cy='48' r='44' fill='%230E9F6E'/%3E%3Cpath class='k' d='M29 49 l13 13 26 -29' fill='none' stroke='white' stroke-width='8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.form-sent::after {
  content: "On vous répond à l’adresse courriel indiquée.";
  max-width: 20rem;
  color: #3D4650;
  font-family: var(--body);
  font-size: 1.05rem;
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.45;
}

@media (max-width: 40rem) { .form-sent { min-height: 22rem; } }
.form-fallback { padding: 1.25rem 1.4rem; border-left: 4px solid #D97706; border-radius: 0.7rem; background: #FFF4DE; color: #4A3000; }
.form-fallback p { margin: 0; }
.form-fallback a { color: #0A4F39; }

/* ---------- Long text (the privacy policy) ---------- */
.prose .wrap > * { max-width: 42rem; }
.prose h2 { max-width: none; margin: 2.4rem 0 0.6rem; font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.15; letter-spacing: -0.02em; }
.prose h2:first-child { margin-top: 0; }
.home .prose h2 { font-size: clamp(1.4rem, 3vw, 1.8rem); line-height: 1.15; letter-spacing: -0.02em; max-width: none; }
.prose ul { padding-left: 1.25rem; }

@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .contact-grid > * { animation: in-up linear both; animation-timeline: view(); animation-range: entry 0% entry 42%; }
    .contact-grid > *:nth-child(2) { animation-range: entry 8% entry 50%; }
  }
  .field input, .field textarea { transition: border-color 0.15s ease, box-shadow 0.15s ease, background-color 0.15s ease; }
  .seg span { transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
}

/* Inside the white card the button is the dark green, whatever the band around it says. */
.band .form-card .btn--primary { background: #0A7A54; border-color: #0A7A54; color: #FFFFFF; }
.band .form-card .btn--primary:hover { background: #076244; border-color: #076244; color: #FFFFFF; }
.contact-intro .band__lead { margin-top: 1.4rem; }
