/* Tender Toucan – public pilot landing page
   XL2 dark corporate design: black ground, white Arial, XL2 Green/Pink as the only
   highlight colours, XL2 Red only for low scores. Radii follow the master (M 42 / S 14). */

:root {
  --black: #000;
  --white: #fff;
  --green: #8cffd2;
  --pink: #ff82dc;
  --red: #ff324b;
  --dgrey: #373c3c;
  --mgrey: #5a5c61;
  --lgrey: #e0e0eb;
  --text-2: #c9cdd2;
  --text-3: #a4a7ad;

  --glass: rgba(55, 60, 60, 0.38);
  --glass-strong: rgba(30, 33, 33, 0.72);
  --hair: rgba(255, 255, 255, 0.09);
  --hair-2: rgba(255, 255, 255, 0.16);

  --r-m: 42px;
  --r-s: 14px;
  --font: Arial, "Helvetica Neue", Helvetica, sans-serif;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --wrap: 1240px;
  --nav-h: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0;
  background: var(--black);
  color: var(--white);
  font-family: var(--font);
  font-size: 18px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video, canvas { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, h4, p, ul, ol, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
::selection { background: var(--green); color: var(--black); }
:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  padding: 10px 16px; border-radius: 999px; background: var(--green); color: var(--black);
  font-weight: 700; text-decoration: none; transition: top .2s;
}
.skip:focus { top: 16px; }

.wrap { width: min(var(--wrap), 100% - 48px); margin-inline: auto; }

/* film grain keeps the black from looking flat on large screens */
.grain {
  position: fixed; inset: -50%; z-index: 90; pointer-events: none; opacity: .055;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 1.2s steps(6) infinite;
}
@keyframes grain {
  0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); }
  60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); }
}

/* ---------- primitives ---------- */
.glass {
  position: relative;
  background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,0) 40%), var(--glass);
  border: 1px solid var(--hair);
  border-radius: var(--r-m);
  backdrop-filter: blur(22px) saturate(150%);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 30px 80px -40px rgba(0,0,0,.9);
}
/* pointer-following sheen, positioned via --mx/--my from main.js */
.glass::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, -999px) var(--my, -999px), rgba(140,255,210,.10), transparent 60%);
  opacity: 0; transition: opacity .4s;
}
.glass:hover::before { opacity: 1; }

.pill {
  display: inline-flex; align-items: center; gap: 6px;
  height: 28px; padding: 0 13px; border-radius: 999px;
  border: 2px solid currentColor; font-size: 12px; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; white-space: nowrap;
}
.pill--green { color: var(--green); }
.pill--pink { color: var(--pink); }
.t-pink { color: var(--pink); }
.pill--ghost { color: var(--text-3); border-color: var(--hair-2); }

.btn {
  --h: 56px;
  position: relative; display: inline-flex; align-items: center; gap: 12px;
  height: var(--h); padding: 0 28px; border-radius: 999px; border: 0;
  font: 700 16px/1 var(--font); letter-spacing: .01em; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--ease-out), background-color .25s, color .25s, box-shadow .35s;
  isolation: isolate; overflow: hidden;
}
.btn--sm { --h: 42px; padding: 0 20px; font-size: 14px; }
.btn--primary { background: var(--green); color: var(--black); box-shadow: 0 0 0 0 rgba(140,255,210,.0); }
.btn--primary::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.55) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease-out);
}
.btn--primary:hover { box-shadow: 0 10px 40px -8px rgba(140,255,210,.55); transform: translateY(-2px); }
.btn--primary:hover::after { transform: translateX(120%); }
.btn--ghost {
  background: rgba(255,255,255,.04); color: var(--white);
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.22);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
}
.btn--ghost:hover { box-shadow: inset 0 0 0 2px var(--white); transform: translateY(-2px); }
.btn__arrow { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s var(--ease-out); }
.btn:hover .btn__arrow { transform: translateX(4px); }
.btn__play { width: 16px; height: 16px; fill: var(--green); }
.btn__meta { color: var(--text-3); font-weight: 400; }

/* highlighter sweep: the video's "weeks of highlighters", but done right */
.hl {
  color: inherit; padding: 0 .12em; margin: 0 -.12em;
  background: linear-gradient(transparent 58%, rgba(140,255,210,.38) 58%, rgba(140,255,210,.38) 92%, transparent 92%) no-repeat;
  background-size: 0% 100%;
  transition: background-size 1.1s var(--ease-out) var(--hl-d, .9s);
}
.hl--pink { background-image: linear-gradient(transparent 58%, rgba(255,130,220,.42) 58%, rgba(255,130,220,.42) 92%, transparent 92%); }
.is-in .hl, .is-in.hl, .evidence.is-on .hl { background-size: 100% 100%; }


/* ---------- reveal ---------- */
[data-reveal] {
  opacity: 0; transform: translateY(28px); filter: blur(6px);
  transition: opacity .9s var(--ease-out) var(--d, 0s), transform 1.1s var(--ease-out) var(--d, 0s), filter .9s var(--ease-out) var(--d, 0s);
}
[data-reveal].is-in { opacity: 1; transform: none; filter: none; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h);
  transition: background-color .4s, border-color .4s, backdrop-filter .4s;
  border-bottom: 1px solid transparent;
}
.nav.is-scrolled {
  background: rgba(0,0,0,.55); border-bottom-color: var(--hair);
  backdrop-filter: blur(20px) saturate(160%); -webkit-backdrop-filter: blur(20px) saturate(160%);
}
.nav__inner { width: min(1400px, 100% - 48px); height: 100%; margin-inline: auto; display: flex; align-items: center; gap: 32px; }
.nav__brand { display: flex; align-items: center; gap: 16px; text-decoration: none; color: var(--white); }
.nav__brand img { width: 112px; height: auto; }
.nav__sep { width: 1px; height: 26px; background: var(--hair-2); }
.nav__product { font-weight: 700; font-size: 16px; letter-spacing: .01em; }
.nav__links { display: flex; gap: 6px; margin-left: auto; }
.nav__links a {
  position: relative; padding: 10px 14px; border-radius: 999px;
  font-size: 15px; color: var(--text-2); text-decoration: none; transition: color .2s, background-color .2s;
}
.nav__links a:hover { color: var(--white); background: rgba(255,255,255,.06); }
.nav__links a.is-active { color: var(--white); }
.nav__links a.is-active::after {
  content: ""; position: absolute; left: 50%; bottom: 3px; width: 5px; height: 5px; margin-left: -2.5px;
  border-radius: 50%; background: var(--green);
}

/* ---------- hero ---------- */
/* deliberately not viewport-high: the film section peeks in below, so the page reads as a website, not a slide */
.hero {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); align-items: center; column-gap: 24px;
  padding: calc(var(--nav-h) + clamp(48px, 7vh, 96px)) 0 clamp(48px, 6vw, 88px) max(24px, (100vw - 1400px) / 2);
  overflow: hidden;
}
.hero__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  -webkit-mask-image: linear-gradient(#000 55%, transparent);
  mask-image: linear-gradient(#000 55%, transparent);
  background:
    radial-gradient(900px 700px at 78% 88%, rgba(140,255,210,.16), transparent 62%),
    radial-gradient(700px 520px at 92% 0%, rgba(255,130,220,.13), transparent 60%),
    radial-gradient(800px 600px at 0% 0%, rgba(140,255,210,.05), transparent 60%);
  transform: translateY(calc(var(--scroll, 0) * 0.25px));
}
.hero__dots {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.11) 1.2px, transparent 1.6px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(900px 700px at 75% 70%, #000, transparent 70%);
  mask-image: radial-gradient(900px 700px at 75% 70%, #000, transparent 70%);
}
.hero__copy { position: relative; z-index: 2; max-width: 820px; }
.eyebrow { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; font-size: 15px; color: var(--text-2); margin-bottom: 30px; }
.hero__title {
  font-size: clamp(40px, 4.4vw, 76px); line-height: .98; letter-spacing: -.035em; font-weight: 700;
  margin-bottom: 30px;
}
.hero__title .line { display: block; overflow: hidden; padding-bottom: .08em; margin-bottom: -.08em; }
.rise {
  display: inline-block; transform: translateY(105%);
  animation: rise 1.1s var(--ease-out) forwards; animation-delay: calc(.12s + var(--i, 0) * .07s);
}
.rise--green { color: var(--green); }
@keyframes rise { to { transform: none; } }
.hero__lead { font-size: clamp(18px, 1.45vw, 22px); line-height: 1.55; color: var(--text-2); max-width: 600px; margin-bottom: 38px; }
.hero__lead .hl { color: var(--white); font-weight: 700; --hl-d: 1.3s; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }
.hero__proof { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--text-3); letter-spacing: .02em; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(140,255,210,.6); animation: ping 2.4s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(140,255,210,.55); } 70%, 100% { box-shadow: 0 0 0 12px rgba(140,255,210,0); } }

.hero__visual {
  position: relative; align-self: stretch; min-height: 520px;
  margin-right: calc(-1 * max(0px, (100vw - 1400px) / 2));
}
.tracks, .toucan { position: absolute; left: 0; top: 50%; width: 100%; height: auto; aspect-ratio: 8 / 7; transform: translateY(-50%); overflow: visible; }
.tracks { transform: translateY(calc(-50% + var(--scroll, 0) * -0.06px)); }
.toucan { transform: translateY(calc(-50% + var(--scroll, 0) * -0.12px)); }
.track { fill: none; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw 2.2s var(--ease-out) forwards; }
.track--green { stroke: var(--green); stroke-width: 12; animation-delay: .25s; }
.track--pink { stroke: var(--pink); stroke-width: 9; animation-delay: .7s; animation-duration: 1.8s; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.float {
  position: absolute; z-index: 3; display: flex; align-items: center; gap: 14px;
  padding: 13px 16px; border-radius: 18px; width: max-content; max-width: 250px;
  opacity: 0; animation: floatIn 1s var(--ease-out) forwards, bob var(--dur, 8s) ease-in-out infinite alternate;
}
.float__k { display: block; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); margin-bottom: 3px; }
.float__t { display: block; font-size: 14px; line-height: 1.35; font-weight: 700; }
.float--req { left: -6%; top: 30%; flex-direction: column; align-items: flex-start; gap: 0; animation-delay: 1.5s, 2.5s; border-left: 3px solid var(--green); }
.float--hit { left: -2%; top: 50%; animation-delay: 1.9s, 2.9s; }
.float--miss { left: 3%; top: 69%; animation-delay: 2.3s, 3.3s; box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 0 0 1px rgba(255,50,75,.25), 0 30px 80px -40px rgba(0,0,0,.9); }
@keyframes floatIn { from { opacity: 0; transform: translateY(20px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes bob { from { translate: 0 0; } to { translate: var(--fx, 0) var(--fy, -8px); } }

.score {
  flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px;
  font-weight: 700; font-size: 18px; color: var(--black);
}
.score--hi { background: var(--green); }
.score--mid { background: var(--lgrey); }
.score--lo { background: var(--red); color: var(--white); }

/* ---------- sections ---------- */
.section { position: relative; padding: clamp(96px, 13vw, 180px) 0; }
/* adjacent sections would otherwise stack two full paddings */
.section + .section { padding-top: clamp(64px, 8vw, 120px); }
.hero + .section { padding-top: clamp(24px, 3vw, 48px); }
.shead { margin-bottom: 56px; max-width: 760px; }
.shead--wide { max-width: 980px; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--text-3); margin-bottom: 22px; }
.kicker b { color: var(--green); margin-right: 16px; }
.kicker--sm { margin-bottom: 18px; }
h2 { font-size: clamp(34px, 4.4vw, 64px); line-height: 1.04; letter-spacing: -.028em; font-weight: 700; }
.sub { font-size: clamp(18px, 1.5vw, 22px); color: var(--text-2); margin-top: 22px; max-width: 760px; }
.sub a { color: var(--green); text-underline-offset: 4px; }
.body { font-size: 19px; color: var(--text-2); max-width: 560px; }

/* film */
.film { padding-top: clamp(40px, 6vw, 80px); }
.film .shead { max-width: 1100px; }
.film .wrap { width: min(1120px, 100% - 48px); }
.film__frame {
  position: relative; border-radius: var(--r-m); overflow: hidden; aspect-ratio: 16 / 9;
  background: #000 url("assets/video/poster.jpg") center / cover;
  box-shadow: 0 0 0 1px var(--hair-2), 0 60px 160px -60px rgba(140,255,210,.35), 0 40px 120px -50px rgba(255,130,220,.25);
}
.film__frame::after { /* glass rim */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.12), inset 0 1px 0 rgba(255,255,255,.2);
}
.film__video { width: 100%; height: 100%; object-fit: cover; background: #000; }
.film__play {
  position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; justify-content: center; gap: 18px;
  padding: clamp(20px, 3.4vw, 48px); border: 0; cursor: pointer; color: var(--white); font: inherit; text-align: left;
  /* dimmed, slightly blurred poster keeps the CTA legible without hiding the scene */
  background: radial-gradient(42% 46% at 50% 50%, rgba(0,0,0,.7), rgba(0,0,0,.18));
  backdrop-filter: blur(1px); -webkit-backdrop-filter: blur(1px);
  transition: opacity .5s var(--ease-out), backdrop-filter .5s var(--ease-out), background-color .5s;
}
.film__play:hover { backdrop-filter: blur(0); -webkit-backdrop-filter: blur(0); }
.film__ring {
  position: relative; display: grid; place-items: center; width: clamp(64px, 7vw, 92px); aspect-ratio: 1; border-radius: 50%;
  background: rgba(0,0,0,.35); box-shadow: inset 0 0 0 2px var(--green);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  transition: transform .5s var(--ease-out), background-color .3s;
}
.film__ring::before { content: ""; position: absolute; inset: -10px; border-radius: 50%; box-shadow: 0 0 0 1.5px rgba(140,255,210,.4); animation: halo 2.6s var(--ease-out) infinite; }
@keyframes halo { from { transform: scale(.9); opacity: 1; } to { transform: scale(1.35); opacity: 0; } }
.film__ring svg { width: 34%; fill: var(--green); margin-left: 6%; }
.film__play:hover .film__ring { transform: scale(1.08); background: var(--green); }
.film__play:hover .film__ring svg { fill: var(--black); }
.film__label { display: flex; flex-direction: column; font-weight: 700; font-size: clamp(16px, 1.5vw, 20px); margin-bottom: 6px; }
.film__label small { font-weight: 400; font-size: 14px; color: var(--text-2); margin-top: 4px; }
.film.is-playing .film__play { opacity: 0; pointer-events: none; }

/* problem / coverage */
.problem__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.problem .shead { margin-bottom: 30px; }
.coverage__toggle {
  position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; margin-top: 40px; padding: 5px;
  border-radius: 999px; background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px var(--hair);
}
.seg {
  position: relative; z-index: 1; height: 44px; padding: 0 20px; border: 0; border-radius: 999px; background: none; cursor: pointer;
  font: 700 14px/1 var(--font); color: var(--text-2); transition: color .3s;
}
.seg[aria-pressed="true"] { color: var(--black); }
.seg__thumb {
  position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 999px;
  background: var(--pink); transition: transform .55s var(--ease-out), background-color .4s;
}
.coverage__toggle[data-mode="full"] .seg__thumb { transform: translateX(100%); background: var(--green); }

.coverage { padding: clamp(22px, 3vw, 36px); }
.coverage__grid { display: grid; grid-template-columns: repeat(16, 1fr); gap: 6px; }
.cell {
  aspect-ratio: 1; border-radius: 5px; background: rgba(255,255,255,.07);
  transition: background-color .35s, transform .5s var(--ease-out), box-shadow .35s;
}
.cell.is-sample { background: var(--pink); box-shadow: 0 0 14px rgba(255,130,220,.45); transform: scale(.82); }
.cell.is-checked { background: var(--green); transform: scale(.82); }
.cell.is-miss { background: var(--red); transform: scale(.82); box-shadow: 0 0 0 3px rgba(255,50,75,.25), 0 0 18px rgba(255,50,75,.6); animation: miss 1.8s var(--ease-out) .6s infinite; }
@keyframes miss { 50% { box-shadow: 0 0 0 7px rgba(255,50,75,0), 0 0 26px rgba(255,50,75,.8); } }
.coverage__cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin-top: 26px; }
.coverage__num { font-size: clamp(44px, 5vw, 68px); font-weight: 700; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; transition: color .4s; }
.coverage[data-mode="sample"] .coverage__num { color: var(--pink); }
.coverage[data-mode="full"] .coverage__num { color: var(--green); }
.coverage__of { font-size: 17px; color: var(--text-2); }
.coverage__note { width: 100%; font-size: 13px; color: var(--text-3); }

/* how it works */
.how__grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(32px, 5vw, 80px); }
.how__steps { display: flex; flex-direction: column; }
.step {
  min-height: 62vh; display: flex; flex-direction: column; justify-content: center;
  padding-left: 28px; border-left: 2px solid var(--hair); opacity: .32;
  transition: opacity .6s var(--ease-out), border-color .6s;
}
.step.is-active { opacity: 1; border-left-color: var(--green); }
.step__n {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%;
  box-shadow: inset 0 0 0 3px var(--green); color: var(--green); font-weight: 700; font-size: 18px; margin-bottom: 22px;
}
.step h3 { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: -.02em; color: var(--green); margin-bottom: 14px; }
.step p { font-size: 19px; color: var(--text-2); max-width: 460px; }
.how__stage { position: relative; }
.demo { position: sticky; top: calc(50vh - 250px); border-radius: 28px; padding: 0 0 18px; overflow: hidden; }
.demo__bar { display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-bottom: 1px solid var(--hair); }
.demo__dots { display: flex; gap: 6px; }
.demo__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.14); }
.demo__title { min-width: 0; font-size: 13px; color: var(--text-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__phase {
  margin-left: auto; flex: none; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--green); padding: 6px 11px; border-radius: 999px; background: rgba(140,255,210,.1);
}
.demo__table { display: grid; grid-template-columns: minmax(0, 1fr) repeat(3, 64px); gap: 8px 10px; padding: 18px 20px 0; }
.th { font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); padding-bottom: 4px; }
.th--offer small { display: block; font-size: 9px; letter-spacing: .08em; margin-bottom: 2px; }
.th--offer { align-self: end; text-align: center; font-size: 15px; color: var(--text-2); opacity: 0; transform: translateY(-6px); transition: opacity .5s var(--ease-out), transform .5s var(--ease-out); transition-delay: calc(var(--c) * 90ms); }
.req {
  display: flex; flex-direction: column; justify-content: center; min-height: 56px; padding: 9px 14px; border-radius: var(--r-s);
  background: rgba(255,255,255,.045); border: 1px solid var(--hair);
  opacity: 0; transform: translateX(-16px); transition: opacity .55s var(--ease-out), transform .55s var(--ease-out), border-color .4s, background-color .4s;
  transition-delay: calc(var(--r) * 110ms);
}
.req__id { font-size: 11px; font-weight: 700; letter-spacing: .1em; color: var(--green); }
.req__t { font-size: 14px; line-height: 1.3; font-weight: 700; }
.sc {
  display: grid; place-items: center; border-radius: var(--r-s); font-weight: 700; font-size: 17px;
  background: rgba(255,255,255,.04); border: 1px dashed rgba(255,255,255,.12); color: transparent;
  transition: background-color .45s, color .45s, border-color .45s, transform .5s var(--ease-out), box-shadow .45s, opacity .45s;
  transition-delay: calc((var(--r) * 3 + var(--c)) * 70ms);
}
.demo[data-state="1"] .req,
.demo[data-state="2"] .req,
.demo[data-state="3"] .req { opacity: 1; transform: none; }
.demo[data-state="2"] .th--offer,
.demo[data-state="3"] .th--offer { opacity: 1; transform: none; }
.demo[data-state="3"] .th--offer { opacity: .28; }
.demo[data-state="2"] .sc,
.demo[data-state="3"] .sc { border-style: solid; border-color: transparent; color: var(--black); }
.demo[data-state="2"] .sc--hi, .demo[data-state="3"] .sc--hi { background: var(--green); }
.demo[data-state="2"] .sc--mid, .demo[data-state="3"] .sc--mid { background: var(--lgrey); }
.demo[data-state="2"] .sc--lo, .demo[data-state="3"] .sc--lo { background: var(--red); color: var(--white); }
.demo[data-state="3"] .sc { transition-delay: 0s; opacity: .28; }
.demo[data-state="3"] .sc.is-focus { opacity: 1; transform: scale(1.12); box-shadow: 0 0 0 3px #000, 0 0 0 5px var(--red), 0 0 30px rgba(255,50,75,.6); }
.demo[data-state="3"] .req.is-focus { border-color: rgba(255,50,75,.5); background: rgba(255,50,75,.07); }

.evidence {
  position: absolute; right: 18px; top: 66px; width: min(380px, calc(100% - 36px)); padding: 20px 22px; border-radius: 22px;
  /* near-opaque: nested backdrop-filter inside .demo barely blurs, so the table must not bleed through */
  background: linear-gradient(160deg, rgba(255,255,255,.1), rgba(255,255,255,0) 45%), rgba(22,24,24,.92);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12), 0 0 0 1px rgba(255,50,75,.3), 0 40px 80px -20px rgba(0,0,0,.95);
  opacity: 0; transform: translateY(24px) scale(.97); pointer-events: none;
  transition: opacity .6s var(--ease-out), transform .7s var(--ease-out);
}
.evidence.is-on { opacity: 1; transform: none; transition-delay: .35s; }
.evidence.is-on .hl { --hl-d: 1s; }
.evidence__head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.evidence__head strong { font-size: 17px; }
.evidence blockquote { font-size: 16px; line-height: 1.5; color: var(--lgrey); padding-left: 14px; border-left: 2px solid var(--hair-2); }
.evidence__src { font-size: 12px; color: var(--text-3); margin: 10px 0 16px 16px; letter-spacing: .04em; }
.evidence__foot { display: flex; flex-wrap: wrap; gap: 8px; }
.evidence__foot .pill { font-size: 10px; height: 26px; }

.how__human { margin-top: clamp(60px, 8vw, 110px); font-size: clamp(30px, 3.6vw, 52px); font-weight: 700; letter-spacing: -.025em; line-height: 1.1; color: var(--text-3); }
.how__human span { color: var(--white); }

/* difference */
.diff__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.diff__col { padding: clamp(28px, 3.4vw, 48px); display: flex; flex-direction: column; }
.diff__label { font-size: 13px; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--text-3); margin-bottom: 28px; }
.diff__col li { position: relative; padding: 16px 0 16px 40px; border-top: 1px solid var(--hair); font-size: 18px; }
.diff__col li::before { content: ""; position: absolute; left: 0; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; }
.diff__col--chat { background: rgba(30,32,32,.35); }
.diff__col--chat li { color: var(--text-3); }
.diff__col--chat li::before { box-shadow: inset 0 0 0 2px var(--mgrey); background: linear-gradient(45deg, transparent 46%, var(--mgrey) 46%, var(--mgrey) 54%, transparent 54%); }
.diff__col--tt { border-color: rgba(140,255,210,.35); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 0 0 1px rgba(140,255,210,.12), 0 40px 120px -50px rgba(140,255,210,.4); }
.diff__col--tt .diff__label { color: var(--green); }
.diff__col--tt li::before {
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 12.5l4 4 8-9' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.diff__verdict { margin-top: auto; padding-top: 36px; font-size: clamp(40px, 4.6vw, 68px); font-weight: 700; letter-spacing: -.03em; line-height: 1; }
.diff__col--chat .diff__verdict { color: var(--mgrey); }
.diff__col--tt .diff__verdict { color: var(--green); }

/* stats */
.stats { padding: clamp(40px, 6vw, 80px) 0; border-block: 1px solid var(--hair); background: linear-gradient(90deg, rgba(140,255,210,.04), transparent 40%, rgba(255,130,220,.04)); }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat { padding-left: 22px; border-left: 3px solid var(--green); }
.stat__v { font-size: clamp(34px, 3.6vw, 56px); font-weight: 700; letter-spacing: -.03em; line-height: 1.05; white-space: nowrap; font-variant-numeric: tabular-nums; }
.stat__l { margin-top: 10px; font-size: 16px; color: var(--text-2); max-width: 240px; }

/* pilot timeline */
.timeline { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: clamp(70px, 9vw, 120px); }
.timeline__line { position: absolute; left: 23px; right: 0; top: 74px; height: 20px; width: auto; overflow: visible; z-index: -1; }
.timeline__line path { fill: none; stroke: var(--green); stroke-width: 3; stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 2.2s var(--ease-out) .3s; vector-effect: non-scaling-stroke; }
.timeline.is-in .timeline__line path { stroke-dashoffset: 0; }
.phase { padding-right: 20px; }
.phase__n {
  display: grid; place-items: center; width: 48px; height: 48px; margin: 26px 0 26px; border-radius: 50%;
  background: #000; box-shadow: inset 0 0 0 3px var(--green), 0 0 0 10px #000; color: var(--green); font-weight: 700; font-size: 18px;
}
.phase h3 { font-size: clamp(24px, 2.2vw, 32px); letter-spacing: -.02em; margin-bottom: 12px; }
.phase p { color: var(--text-2); font-size: 17px; }

.terms__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.term { padding: 30px 26px; border-radius: 28px; }
.term svg { width: 30px; height: 30px; fill: none; stroke: var(--green); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; margin-bottom: 26px; }
.term h4 { font-size: 19px; margin-bottom: 8px; }
.term p { font-size: 16px; color: var(--text-2); }

/* faq */
.faq__grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(32px, 6vw, 96px); align-items: start; }
.faq .shead { position: sticky; top: calc(var(--nav-h) + 40px); }
.faq__list details { border-bottom: 1px solid var(--hair); }
.faq__list details:first-child { border-top: 1px solid var(--hair); }
.faq__list summary {
  position: relative; list-style: none; cursor: pointer; padding: 26px 56px 26px 0;
  font-size: clamp(18px, 1.6vw, 22px); font-weight: 700; transition: color .2s;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary:hover { color: var(--green); }
.faq__list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%;
  box-shadow: inset 0 0 0 2px var(--hair-2);
  background:
    linear-gradient(var(--white), var(--white)) center / 12px 2px no-repeat,
    linear-gradient(var(--white), var(--white)) center / 2px 12px no-repeat;
  transition: transform .45s var(--ease-out), background-color .3s, box-shadow .3s;
}
.faq__list details[open] summary::after { transform: rotate(135deg); box-shadow: inset 0 0 0 2px var(--green); }
.faq__list details p { padding: 0 56px 28px 0; color: var(--text-2); font-size: 17px; animation: faqIn .5s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* contact */
.contact { overflow: hidden; }
.contact__glow {
  position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(900px 600px at 85% 60%, rgba(140,255,210,.14), transparent 60%), radial-gradient(700px 500px at 100% 0%, rgba(255,130,220,.12), transparent 60%);
}
.contact__glow::after { /* open track running off the right edge, echoing the hero */
  content: ""; position: absolute; right: -200px; top: 18%; width: 820px; height: 520px; border-radius: 999px;
  border: 10px solid rgba(140,255,210,.16); border-right: 0;
}
.contact__grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.contact .shead { margin-bottom: 26px; }
.contact__facts { margin: 34px 0; display: grid; gap: 12px; }
.contact__facts li { display: flex; align-items: center; gap: 14px; font-weight: 700; }
.contact__facts li::before { content: ""; width: 22px; height: 3px; border-radius: 3px; background: var(--green); }
.contact__direct { color: var(--text-3); }
.contact__direct a { color: var(--green); font-weight: 700; text-underline-offset: 4px; }

.form { padding: clamp(26px, 3.4vw, 46px); display: grid; gap: 18px; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 8px; }
.field span { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-3); }
.field em { font-style: normal; font-weight: 400; text-transform: none; letter-spacing: 0; color: var(--mgrey); margin-left: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 15px 18px; border-radius: var(--r-s); border: 1px solid var(--hair-2);
  background: rgba(0,0,0,.35); color: var(--white); font: 17px/1.4 var(--font);
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 8l5 5 5-5' fill='none' stroke='%238cffd2' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; background-size: 18px; padding-right: 44px; }
.field select option { background: #1b1e1e; }
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: var(--mgrey); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px rgba(140,255,210,.14); background: rgba(0,0,0,.5); }
.field.is-invalid input { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,50,75,.14); }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; margin-top: 6px; }
.form__note { flex: 1 1 220px; font-size: 13px; color: var(--text-3); }
.form__error { color: var(--red); font-size: 14px; font-weight: 700; }
.form__error a { color: inherit; }
.form__success { color: var(--green); font-size: 15px; font-weight: 700; }
.form__hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form button[disabled] { opacity: .6; cursor: progress; }

/* footer */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--hair); }
.footer__inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 32px; align-items: flex-end; }
.footer__brand img { width: 140px; height: auto; margin-bottom: 20px; }
.footer__brand p { font-size: 14px; color: var(--text-3); }
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 28px; font-size: 14px; color: var(--text-3); }
.footer__links a { text-decoration: none; transition: color .2s; }
.footer__links a:hover { color: var(--green); }
.footer__note { margin-top: 30px; font-size: 12px; color: var(--mgrey); }

/* legal pages (impressum.html, datenschutz.html) */
.legal__back { margin-left: auto; }
.legal { padding: calc(var(--nav-h) + clamp(48px, 8vw, 104px)) 0 clamp(72px, 9vw, 128px); }
.legal__inner { max-width: 860px; }
.legal h1 { font-size: clamp(36px, 5vw, 64px); line-height: 1.04; letter-spacing: -.028em; margin-bottom: 40px; hyphens: manual; }
.legal h2 { font-size: clamp(22px, 2.2vw, 28px); line-height: 1.2; letter-spacing: -.01em; margin: 52px 0 14px; }
.legal h3 { font-size: 19px; line-height: 1.3; margin: 30px 0 10px; }
.legal p { font-size: 17px; color: var(--text-2); }
.legal p + p, .legal address + p { margin-top: 14px; }
.legal address { font-style: normal; }
.legal a { color: var(--green); text-underline-offset: 3px; overflow-wrap: anywhere; }
.legal p.legal__meta { margin-top: 56px; font-size: 14px; color: var(--text-3); }
.footer__links a[aria-current="page"] { color: var(--white); }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .nav__links { display: none; }
  .nav__inner .btn { margin-left: auto; }
  .hero { grid-template-columns: 1fr; padding-right: 24px; padding-bottom: 40px; }
  .hero__visual { min-height: 0; aspect-ratio: 8 / 6; margin: 20px -24px 0 0; }
  .problem__grid, .contact__grid, .faq__grid { grid-template-columns: 1fr; }
  .faq .shead { position: static; }
  .how__grid { grid-template-columns: minmax(0, 1fr); }
  .how__steps { order: 2; }
  .step { min-height: 0; padding-block: 28px; opacity: 1; }
  .how__stage { order: 1; }
  .demo { position: relative; top: 0; }
  .stats__grid { grid-template-columns: 1fr 1fr; row-gap: 40px; }
  .terms__grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  body { font-size: 17px; }
  .nav__sep, .nav__product { display: none; }
  .nav__brand img { width: 92px; }
  .diff__grid, .timeline, .terms__grid, .form__row { grid-template-columns: 1fr; }
  .timeline { gap: 44px; }
  .timeline__line { display: none; }
  .phase__n { margin: 18px 0; }
  .stats__grid { grid-template-columns: 1fr; }
  .coverage__grid { grid-template-columns: repeat(12, 1fr); gap: 5px; }
  .demo__table { grid-template-columns: minmax(0, 1fr) repeat(3, 44px); gap: 6px; padding-inline: 12px; }
  .req__t { font-size: 13px; }
  .th--offer small { display: none; }
  .sc { height: 44px; align-self: center; }
  /* overlays the upper rows so the focused ANF-073 row stays visible and no empty space is reserved */
  .evidence { left: 12px; right: 12px; top: 64px; width: auto; padding: 18px; }
  /* toucan on top, cards stacked below it instead of covering the mascot */
  .hero__visual { aspect-ratio: auto; margin: 8px -24px 0 0; padding: calc((100vw - 24px) * .875 - 40px) 24px 0 0; display: flex; flex-direction: column; gap: 10px; }
  .tracks, .toucan { top: 0; transform: none; }
  .float { position: relative; left: auto; top: auto; max-width: none; padding: 11px 14px; }
  .float__t { font-size: 13px; }
  .float--hit { margin-left: 18px; }
  .float--miss { margin-left: 36px; }
  .score { width: 34px; height: 34px; font-size: 16px; }
  .film__label { display: none; }
  .film__play { backdrop-filter: none; -webkit-backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; transition-delay: 0s !important; }
  .grain { animation: none; }
  [data-reveal] { opacity: 1; transform: none; filter: none; }
}
