/* KS Énergie — maquette. Un paysage réel en relief (world.js) porte les deux premiers écrans,
   puis la page bascule dans une chaufferie sombre, en verre dépoli et lueurs vertes. */

:root {
  --bg: #060907;
  --bg-2: #0b110d;
  --ink: #f3f6f1;
  --muted: rgba(236, 242, 234, 0.64);
  --faint: rgba(236, 242, 234, 0.42);
  --line: rgba(255, 255, 255, 0.12);
  --glass: rgba(255, 255, 255, 0.07);
  --glass-hi: rgba(255, 255, 255, 0.14);
  --glass-line: rgba(255, 255, 255, 0.14);
  --glow: #8fef8a;
  --dark-ink: #0a0f0b;
  --sans: "Inter Tight", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --gutter: clamp(16px, 4vw, 48px);
  --radius: 22px;
  --arrow: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11 11 5M6 5h5v5'/%3E%3C/svg%3E");
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 1rem; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }
button, input, select, textarea { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
:focus-visible { outline: 2px solid var(--glow); outline-offset: 3px; border-radius: 6px; }
em { font-style: italic; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.todo { background: rgba(255, 196, 64, 0.14); color: #ffd98a; padding: 0.05em 0.35em; border-radius: 4px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }

/* ---------- type ---------- */
.eyebrow { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.display, .display-2 { font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; text-wrap: balance; }
.display { font-size: clamp(2.4rem, min(1.1rem + 4.6vw, 0.6rem + 8.4vh), 5.4rem); }
.display-2 { font-size: clamp(2.2rem, 1.2rem + 3.2vw, 4.4rem); }
.display em, .display-2 em { display: block; font-family: var(--serif); font-weight: 400; font-size: 1.1em; letter-spacing: -0.012em; line-height: 0.98; }
.display .line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.display .line > * { display: block; }

/* ---------- buttons: the white pill with its dark round, as in the reference ---------- */
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 0.75rem; min-height: 2.9rem; padding: 0.4rem 0.4rem 0.4rem 1.2rem; background: #fff; color: var(--dark-ink); border-radius: 999px; font-size: 0.95rem; font-weight: 500; text-decoration: none; white-space: nowrap; text-shadow: none; box-shadow: 0 8px 30px rgba(8, 16, 10, 0.18); transition: transform 180ms var(--ease-out), box-shadow 300ms ease, background-color 200ms ease; }
.pill-ico { display: inline-block; flex: none; width: 2.1rem; height: 2.1rem; border-radius: 999px; background: var(--dark-ink) var(--arrow) center / 0.95rem no-repeat; transition: transform 300ms var(--ease-out); }
.pill-ico-dark { background-color: #fff; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%230a0f0b' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 11 11 5M6 5h5v5'/%3E%3C/svg%3E"); }
.pill:hover .pill-ico { transform: rotate(45deg); }
.pill:active { transform: scale(0.97); }
.pill-sm { min-height: 2.4rem; padding: 0.3rem 0.3rem 0.3rem 0.95rem; font-size: 0.875rem; gap: 0.55rem; }
.pill-sm .pill-ico { width: 1.8rem; height: 1.8rem; background-size: 0.8rem; }
.pill-ghost { background: rgba(255, 255, 255, 0.12); color: #fff; backdrop-filter: blur(16px); border: 1px solid rgba(255, 255, 255, 0.22); box-shadow: none; padding-inline: 1.2rem; }

.glass { background: var(--glass); border: 1px solid var(--glass-line); border-radius: var(--radius); backdrop-filter: blur(22px) saturate(1.25); -webkit-backdrop-filter: blur(22px) saturate(1.25); box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 20px 60px rgba(0, 0, 0, 0.25); }

/* ---------- the world behind the first two screens ---------- */
.world { position: fixed; inset: 0; z-index: 0; pointer-events: none; background: #9aa69b; }
.world-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.world-fallback, .wf { position: absolute; inset: 0; }
.wf { background: center / cover no-repeat; filter: saturate(0.72) contrast(0.95); will-change: transform, opacity; }
.wf-a { background-image: linear-gradient(rgba(200, 212, 198, 0.18), rgba(10, 18, 12, 0.35)), url("assets/world/hero.jpg"); background-position: 40% 50%; transform: scale(calc(1.04 + var(--hero-p, 0) * 0.35)); }
.wf-b { background-image: linear-gradient(rgba(200, 212, 198, 0.2), rgba(10, 18, 12, 0.4)), url("assets/world/house.jpg"); background-position: 42% 55%; opacity: var(--tr, 0); transform: scale(calc(1.3 - var(--tr, 0) * 0.25)); }
.world::after { content: ""; position: absolute; inset: 0; background: var(--bg); opacity: var(--dark, 0); }
.has-world .world-fallback, .has-world .world::after { display: none; }

/* ---------- demo chip ---------- */
.demo-bar { transition: opacity 400ms ease; }
.demo-bar.is-off { opacity: 0; pointer-events: none; }
.demo-bar { position: fixed; left: 50%; translate: -50% 0; bottom: 14px; z-index: 30; max-width: calc(100% - 32px); padding: 0.45rem 0.85rem; border-radius: 999px; background: rgba(40, 32, 6, 0.72); color: #ffd98a; font-size: 0.75rem; border: 1px solid rgba(255, 217, 138, 0.25); backdrop-filter: blur(12px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- header ---------- */
.top { position: fixed; inset: 0 0 auto; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; padding: 14px var(--gutter); }
.top::before { content: ""; position: absolute; inset: 0 0 -28px; z-index: -1; pointer-events: none; background: linear-gradient(rgba(6, 9, 7, 0.85), rgba(6, 9, 7, 0)); opacity: var(--dark, 0); }
.wordmark { display: inline-flex; align-items: center; gap: 0.5rem; justify-self: start; font-weight: 600; font-size: 1.05rem; letter-spacing: -0.02em; text-decoration: none; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.25); }
.mark { width: 1.35rem; height: 1.35rem; fill: currentColor; }
.top-nav { display: flex; gap: 0.15rem; padding: 0.3rem; border-radius: 999px; background: rgba(20, 28, 22, 0.28); border: 1px solid rgba(255, 255, 255, 0.16); backdrop-filter: blur(18px) saturate(1.3); -webkit-backdrop-filter: blur(18px) saturate(1.3); }
.top-nav a { padding: 0.45rem 0.95rem; border-radius: 999px; font-size: 0.875rem; text-decoration: none; color: rgba(255, 255, 255, 0.86); transition: background-color 200ms ease, color 200ms ease; }
.top-nav a:hover { background: rgba(255, 255, 255, 0.14); color: #fff; }
.top-cta { justify-self: end; display: flex; align-items: center; gap: 1.1rem; }
.top-phone { font-size: 0.875rem; text-decoration: none; text-shadow: 0 1px 18px rgba(0, 0, 0, 0.3); }
.top-phone:hover { text-decoration: underline; text-underline-offset: 0.2em; }

main, .footer { position: relative; z-index: 1; }

/* ---------- hero ---------- */
.hero { position: relative; min-height: max(100svh, 600px); display: grid; grid-template-rows: auto 1fr auto; padding: clamp(84px, 14vh, 140px) var(--gutter) clamp(18px, 4vh, 36px); text-align: center; text-shadow: 0 2px 30px rgba(12, 22, 14, 0.28); }
.hero > * { opacity: calc(1 - var(--hero-p, 0) * 1.7); transform: translate3d(0, calc(var(--hero-p, 0) * -70px), 0); }
.hero-head { display: grid; justify-items: center; gap: clamp(0.6rem, 1.8vh, 1.1rem); }
.hero-head .eyebrow { color: rgba(255, 255, 255, 0.82); }
.hero-actions { margin-top: 0.5rem; }

.hero-machine { position: relative; min-height: 26vh; margin: clamp(0.5rem, 2vh, 1.5rem) auto clamp(0.5rem, 2vh, 1.5rem); width: min(100%, 68rem); }
.gcard { position: absolute; display: grid; gap: 0.15rem; justify-items: start; padding: 0.8rem 1rem; text-align: left; text-decoration: none; text-shadow: none; color: #fff; border-radius: 18px; background: rgba(255, 255, 255, 0.16); border: 1px solid rgba(255, 255, 255, 0.3); backdrop-filter: blur(18px) saturate(1.35); -webkit-backdrop-filter: blur(18px) saturate(1.35); box-shadow: 0 16px 40px rgba(12, 22, 14, 0.18); translate: calc(var(--mx, 0) * var(--f, 0) * 18px) calc(var(--my, 0) * var(--f, 0) * 12px); transition: translate 900ms var(--ease-out), background-color 200ms ease; animation: card-in 1.1s var(--ease-out) both; animation-delay: calc(700ms + var(--n, 0) * 120ms); }
.gcard:hover { background: rgba(255, 255, 255, 0.24); }
.gc-big { font-size: 2rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1; }
.gc-mid { font-size: 1.05rem; font-weight: 500; }
.gc-small, .gc-label { font-size: 0.78rem; color: rgba(255, 255, 255, 0.8); }
.gc-quote { font-family: var(--serif); font-style: italic; font-size: 1.5rem; line-height: 1.05; }
.stars { width: 5.4rem; height: 1.08rem; fill: #ffd257; }
.gcard-rating { --n: 0; left: 9%; top: 0; }
.gcard-word { --n: 1; left: 1%; bottom: 2%; }
.gcard-hours { --n: 2; right: 6%; top: 8%; }
.gcard-go { --n: 3; right: 13%; bottom: 4%; display: inline-flex; align-items: center; gap: 0.7rem; padding: 0.4rem 0.4rem 0.4rem 1rem; border-radius: 999px; background: var(--dark-ink); border-color: rgba(255, 255, 255, 0.12); font-size: 0.9rem; font-weight: 500; }
.gcard-go:hover { background: #1a231c; }
.gcard-go .pill-ico { width: 1.9rem; height: 1.9rem; background-size: 0.85rem; }
.gcard-go:hover .pill-ico { transform: rotate(45deg); }

.hero-foot { display: flex; justify-content: space-between; align-items: end; gap: 2rem; text-align: left; font-size: 0.9rem; }
.hero-foot p:first-child { max-width: 27rem; color: rgba(255, 255, 255, 0.9); }
.hero-foot a { color: #fff; font-weight: 500; text-underline-offset: 0.2em; }
.scroll-hint { display: inline-flex; align-items: center; gap: 0.6rem; font-size: 0.8rem; color: rgba(255, 255, 255, 0.8); white-space: nowrap; }
.scroll-hint span { position: relative; width: 1px; height: 2.2rem; background: rgba(255, 255, 255, 0.3); overflow: hidden; }
.scroll-hint span::after { content: ""; position: absolute; inset: 0; background: #fff; transform: translateY(-100%); animation: drip 2.2s var(--ease-out) infinite; }

/* ---------- about, over the second view ---------- */
.about-hero { min-height: max(115svh, 680px); display: grid; place-items: center; padding: 18vh var(--gutter); text-align: center; text-shadow: 0 2px 30px rgba(12, 22, 14, 0.32); }
.about-inner { display: grid; justify-items: center; gap: 1.4rem; max-width: 46rem; }
.about-inner .eyebrow { color: rgba(255, 255, 255, 0.82); }
.about-text { max-width: 36rem; font-size: 1.05rem; color: rgba(255, 255, 255, 0.92); }

/* ---------- the dark half ---------- */
.dark-zone { position: relative; background: linear-gradient(to bottom, transparent, var(--bg) 38vh); }
.dark-zone::before { content: ""; position: absolute; inset: 30vh 0 auto; height: 160vh; pointer-events: none; background: radial-gradient(60% 50% at 50% 30%, rgba(80, 160, 90, 0.1), transparent 70%); }
.section-head { display: grid; justify-items: center; gap: 1.1rem; text-align: center; max-width: 52rem; margin: 0 auto; padding-inline: var(--gutter); }
.lede { max-width: 36rem; color: var(--muted); }

/* showcase */
.showcase { position: relative; min-height: max(100svh, 580px); display: grid; scroll-margin-top: -84px; }
.stage-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: pan-y; cursor: grab; }
.stage-canvas:active { cursor: grabbing; }
.showcase-inner { position: relative; display: grid; grid-template-columns: minmax(17rem, 22rem) 1fr; grid-template-rows: auto 1fr auto; column-gap: 2rem; row-gap: clamp(0.75rem, 2.5vh, 1.5rem); padding: clamp(80px, 12vh, 120px) var(--gutter) clamp(18px, 4vh, 40px); pointer-events: none; }
.showcase-inner > * { pointer-events: auto; }
.showcase-head { grid-column: 1; display: grid; justify-items: start; gap: 0.8rem; }
.drag-hint { font-size: 0.875rem; color: var(--faint); }
.picker-list { grid-column: 1 / -1; grid-row: 3; justify-self: center; display: flex; flex-wrap: wrap; justify-content: center; gap: 0.25rem; padding: 0.35rem; border-radius: 999px; }
.pick { position: relative; padding: 0.6rem 1.05rem; border-radius: 999px; font-size: 0.9rem; color: var(--muted); transition: color 200ms ease, background-color 250ms ease, transform 160ms var(--ease-out); }
.pick:hover { color: var(--ink); background: rgba(255, 255, 255, 0.06); }
.pick:active { transform: scale(0.96); }
.pick[aria-pressed="true"] { color: var(--dark-ink); background: #fff; }
.pick::before { content: ""; display: inline-block; width: 0.45rem; height: 0.45rem; margin-right: 0.5rem; border-radius: 50%; vertical-align: 0.08em; background: #ff9a5a; box-shadow: 0 0 10px #ff9a5a; }
.pick[data-tone="cold"]::before { background: #7fd6ff; box-shadow: 0 0 10px #7fd6ff; }
.fact { grid-column: 1; grid-row: 2; align-self: end; display: grid; gap: 1rem; padding: 0.7rem 0.7rem 1rem; justify-items: start; }
.stage-fallback { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 15px; filter: saturate(0.85); }
.fact-text { padding-inline: 0.4rem; font-size: 0.95rem; color: rgba(236, 242, 234, 0.86); transition: opacity 250ms ease; min-height: 6em; }
.fact.is-swapping .fact-text { opacity: 0; }
.fact-cta { margin-left: 0.3rem; }

@media (min-width: 901px) and (max-height: 760px) {
  .stage-fallback { display: none; }
  .fact-text { min-height: 0; }
}

/* reviews */
.reviews { padding: clamp(96px, 16vh, 160px) var(--gutter) clamp(48px, 8vh, 96px); }
.rcards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 72rem; margin: clamp(40px, 7vh, 72px) auto 0; }
.rcard { position: relative; min-height: 22rem; padding: 1.5rem; display: flex; flex-direction: column; gap: 0.4rem; overflow: hidden; }
.rc-label { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--faint); }
.rc-big { margin-top: auto; font-family: var(--serif); font-style: italic; font-size: clamp(4.5rem, 3rem + 4vw, 7rem); line-height: 0.9; letter-spacing: -0.02em; }
.rc-text { color: var(--muted); font-size: 0.95rem; }
.rc-link { margin-top: 0.8rem; font-size: 0.9rem; text-underline-offset: 0.2em; }
.rcard-photo { padding: 0; border-radius: var(--radius); border: 1px solid var(--glass-line); }
.rcard-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(0.75) brightness(0.8); transition: transform 1.4s var(--ease-out); }
.rcard-photo:hover img { transform: scale(1.04); }
.rc-over { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(12, 20, 14, 0.35); }
.rc-mid { font-size: 1.35rem; font-weight: 500; letter-spacing: -0.02em; }
.bars { margin-top: auto; display: grid; gap: 0.7rem; }
.bars li { position: relative; display: flex; justify-content: space-between; gap: 1rem; padding-bottom: 0.45rem; font-size: 0.92rem; }
.bars li::before, .bars li::after { content: ""; position: absolute; left: 0; bottom: 0; height: 3px; border-radius: 3px; }
.bars li::before { right: 0; background: rgba(255, 255, 255, 0.08); }
.bars li::after { width: calc(var(--v) / 7 * 100%); background: linear-gradient(90deg, rgba(143, 239, 138, 0.4), var(--glow)); box-shadow: 0 0 12px rgba(143, 239, 138, 0.5); transform-origin: left; transform: scaleX(0); transition: transform 1.3s var(--ease-out); }
.rcard.is-in .bars li::after { transform: scaleX(1); }
.bars li:nth-child(2)::after { transition-delay: 90ms; }
.bars li:nth-child(3)::after { transition-delay: 180ms; }
.bars li:nth-child(4)::after { transition-delay: 270ms; }
.bars li:nth-child(5)::after { transition-delay: 360ms; }
.bars li:nth-child(6)::after { transition-delay: 450ms; }
.bars b { font-weight: 500; color: var(--glow); }
.todo-note { max-width: 72rem; margin: 1.5rem auto 0; font-size: 0.85rem; text-align: center; }

/* method */
.method { position: relative; padding: clamp(80px, 12vh, 140px) 0 clamp(64px, 10vh, 120px); overflow: hidden; }
.method::before { content: ""; position: absolute; left: 50%; top: 52%; width: min(70rem, 140vw); aspect-ratio: 1; translate: -50% -50%; background: radial-gradient(closest-side, rgba(110, 220, 110, 0.14), transparent 70%); pointer-events: none; }
.method-canvas { position: relative; display: block; width: 100%; height: clamp(360px, 62vh, 620px); margin-top: -1rem; }
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; max-width: 64rem; margin: -3rem auto 0; padding-inline: var(--gutter); }
.step { width: 100%; height: 100%; display: grid; align-content: start; gap: 0.35rem; padding: 1.2rem 1.3rem 1.4rem; text-align: left; transition: border-color 300ms ease, background-color 300ms ease, transform 180ms var(--ease-out), box-shadow 400ms ease; }
.step:hover { background: var(--glass-hi); }
.step:active { transform: scale(0.98); }
.step-n { font-size: 0.75rem; color: var(--faint); letter-spacing: 0.1em; transition: color 300ms ease; }
.step strong { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.02em; }
.step span:last-child { font-size: 0.92rem; color: var(--muted); }
.step[aria-pressed="true"] { border-color: rgba(143, 239, 138, 0.45); box-shadow: 0 0 0 1px rgba(143, 239, 138, 0.15), 0 20px 60px rgba(60, 160, 70, 0.18); }
.step[aria-pressed="true"] .step-n { color: var(--glow); }

/* faq */
.faq { padding: clamp(80px, 12vh, 140px) var(--gutter) clamp(48px, 8vh, 96px); }
.cards { display: grid; gap: 10px; max-width: 50rem; margin: clamp(36px, 6vh, 60px) auto 0; }
.card { border-radius: 18px; transition: background-color 300ms ease, border-color 300ms ease; }
.card.is-open { background: var(--glass-hi); border-color: rgba(255, 255, 255, 0.2); }
.card-toggle { position: relative; display: grid; gap: 0.2rem; width: 100%; padding: 1.15rem 3.6rem 1.15rem 1.4rem; text-align: left; }
.card-toggle::after { content: ""; position: absolute; right: 1.2rem; top: 50%; width: 1.9rem; height: 1.9rem; margin-top: -0.95rem; border-radius: 50%; background: rgba(255, 255, 255, 0.1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round'%3E%3Cpath d='M8 3.5v9M3.5 8h9'/%3E%3C/svg%3E") center / 0.85rem no-repeat; transition: transform 400ms var(--ease-out), background-color 200ms ease; }
.card.is-open .card-toggle::after { transform: rotate(135deg); background-color: rgba(143, 239, 138, 0.2); }
.card-tab { font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--faint); }
.card-q { font-size: 1.15rem; font-weight: 500; letter-spacing: -0.015em; }
.card-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 450ms var(--ease-out); }
.card-a > div { overflow: hidden; }
.card-a p { padding: 0 1.4rem 1.4rem; max-width: 60ch; color: var(--muted); }
.card.is-open .card-a { grid-template-rows: 1fr; }

/* contact */
.contact { padding: clamp(48px, 8vh, 96px) var(--gutter) clamp(96px, 14vh, 160px); }
.coupon { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 4vw, 56px); max-width: 66rem; margin: 0 auto; padding: clamp(24px, 4vw, 48px); overflow: hidden; }
.coupon::before { content: ""; position: absolute; left: -20%; top: -40%; width: 70%; aspect-ratio: 1; background: radial-gradient(closest-side, rgba(143, 239, 138, 0.16), transparent); pointer-events: none; }
.coupon-left { position: relative; display: grid; align-content: space-between; gap: 1.4rem; }
.coupon-left .display-2 { font-size: clamp(2rem, 1.2rem + 2.4vw, 3.5rem); }
.coupon-left p:last-child { color: var(--muted); max-width: 34ch; }
.coupon-right { position: relative; display: grid; gap: 10px; align-content: center; }
.field { width: 100%; min-height: 3.2rem; padding: 0.8rem 1.1rem; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); font-size: 1rem; transition: border-color 200ms ease, background-color 200ms ease; }
.field::placeholder { color: var(--faint); opacity: 1; }
.field:hover { border-color: rgba(255, 255, 255, 0.22); }
.field:focus-visible { outline: none; border-color: var(--glow); background: rgba(255, 255, 255, 0.09); }
.field[aria-invalid="true"] { border-color: #ffb36b; }
select.field { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; background-size: 1rem; }
select.field option { background: var(--bg-2); }
textarea.field { resize: vertical; min-height: 4.5rem; }
.form-error { color: #ffc27a; font-size: 0.9rem; }
.submit { width: 100%; justify-content: space-between; margin-top: 4px; }
.coupon-result { position: relative; grid-column: 2; display: grid; gap: 1rem; align-content: center; }
.coupon-result h3 { font-size: 1.5rem; font-weight: 500; letter-spacing: -0.02em; }
.result-text { padding: 1rem 1.2rem; border-radius: 14px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); color: rgba(236, 242, 234, 0.9); white-space: pre-line; }
.result-actions { display: grid; gap: 10px; }
.result-sms { justify-content: space-between; }
.result-copy, .result-edit { min-height: 3rem; border-radius: 999px; font-weight: 500; transition: background-color 200ms ease, transform 160ms var(--ease-out); }
.result-copy { background: rgba(255, 255, 255, 0.1); border: 1px solid rgba(255, 255, 255, 0.16); }
.result-copy:hover { background: rgba(255, 255, 255, 0.16); }
.result-edit { color: var(--muted); text-decoration: underline; text-underline-offset: 0.2em; }
.result-copy:active, .result-edit:active { transform: scale(0.98); }
.coupon.is-done .coupon-right { display: none; }

/* ---------- footer ---------- */
.footer { background: var(--bg); padding: 0 var(--gutter) 96px; border-top: 1px solid var(--line); overflow: hidden; }
.foot-word { font-size: clamp(4rem, 17vw, 17rem); font-weight: 500; letter-spacing: -0.055em; line-height: 0.95; padding: 0.15em 0 0.05em; white-space: nowrap; }
.foot-word em { font-family: var(--serif); font-weight: 400; letter-spacing: -0.02em; background: linear-gradient(180deg, #d8ffd2, var(--glow) 60%, #2f7a3a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.foot-grid { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 2rem; margin-top: 2rem; }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }
.foot-links a, .foot-contact a { text-decoration: none; color: var(--muted); transition: color 200ms ease; }
.foot-links a:hover, .foot-contact a:hover { color: var(--ink); }
.foot-contact { display: flex; gap: 2.5rem; font-style: normal; color: var(--muted); font-size: 0.95rem; }
.credits { margin-top: 3rem; font-size: 0.75rem; color: var(--faint); max-width: 90ch; }
.credits a { color: inherit; }
.foot-last { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: 0.85rem; color: var(--faint); }

.callbar { display: none; }

/* ---------- motion: entrances ---------- */
.js [data-line] { animation: line-up 1.2s var(--ease-out) both; animation-delay: calc(250ms + var(--i, 0) * 110ms); }
.js [data-rise] { animation: rise 1.1s var(--ease-out) both; animation-delay: calc(300ms + var(--i, 0) * 110ms); }
.js [data-reveal] { opacity: 0; transform: translateY(22px); filter: blur(8px); transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out), filter 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 90ms); }
.js [data-reveal].is-in { opacity: 1; transform: none; filter: none; }
@keyframes line-up { from { transform: translateY(105%); } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); filter: blur(6px); } }
@keyframes card-in { from { opacity: 0; transform: translateY(24px) scale(0.96); filter: blur(10px); } }
@keyframes drip { 0% { transform: translateY(-100%); } 60%, 100% { transform: translateY(100%); } }

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .top { grid-template-columns: 1fr auto; }
  .top-nav { display: none; }
  .rcards { grid-template-columns: 1fr; max-width: 32rem; }
  .rcard { min-height: 17rem; }
  .steps { grid-template-columns: 1fr; max-width: 32rem; margin-top: -2rem; }
  .coupon { grid-template-columns: 1fr; }
  .coupon-result { grid-column: 1; }
  .showcase { min-height: 0; padding-bottom: 32px; }
  .stage-canvas { position: relative; grid-row: 2; height: 46svh; min-height: 300px; }
  .showcase-inner { display: contents; }
  .showcase-head { grid-row: 1; padding: 96px var(--gutter) 0; justify-items: center; text-align: center; }
  .picker-list { grid-row: 3; margin: 0 var(--gutter); border-radius: 22px; }
  .fact { grid-row: 4; margin: 16px var(--gutter) 0; max-width: 32rem; justify-self: center; }
}
@media (max-width: 700px) {
  .only-wide { display: none; }
  .top-phone { display: none; }
  .hero { padding-top: 112px; }
  .hero-machine { min-height: 38svh; margin-top: 0.5rem; }
  .gcard { padding: 0.6rem 0.75rem; border-radius: 14px; }
  .gc-big { font-size: 1.5rem; }
  .gc-quote { font-size: 1.15rem; }
  .gcard-rating { left: 0; top: auto; bottom: 4%; }
  .gcard-hours { right: 0; top: auto; bottom: 4%; }
  .gcard-word, .gcard-go { display: none; }
  .hero-foot { justify-content: center; text-align: center; }
  .scroll-hint { display: none; }
  .foot-contact { flex-direction: column; gap: 1rem; }
  .foot-last { flex-direction: column; align-items: flex-start; }
  .demo-bar { position: absolute; top: 64px; bottom: auto; font-size: 0.7rem; }
  .callbar { position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 25; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding: 6px; border-radius: 999px; background: rgba(10, 16, 12, 0.55); border: 1px solid rgba(255, 255, 255, 0.14); backdrop-filter: blur(18px); transform: translateY(140%); transition: transform 500ms var(--ease-out); }
  .callbar .pill { padding-inline: 1rem; }
  .callbar.is-on { transform: none; }
  .footer { padding-bottom: 140px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-delay: 0ms !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
}
