/* DualControl website
   Layout: a dark hero where a learner's and an instructor's phones, each on its own side of the one
   app, sit in the logo's two rings and update together, then the app's own light pages; a road carries
   the logo through "From invite to test day", and "Coming soon" ends on the app's first page.
   Colours and type come from the app (packages/mobile/src/theme.ts) and the app logo. */

@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/space-grotesk-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Space Grotesk"; font-style: normal; font-weight: 700; font-display: swap; src: url("../fonts/space-grotesk-latin-700-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("../fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }

:root {
  /* The logo: its dark green square, and the two control rings. Sky marks the learner, mint the instructor. */
  --ground: #0A2E24;
  --ground-deep: #06211A;
  --ground-line: rgba(255, 255, 255, 0.12);
  --mint: #00E599;
  --sky: #38BDF8;
  --sky-ink: #0A6C99;
  --sky-tint: #E1F3FC;
  --mint-tint: #D9F6EA;
  /* The app's own page, ink and green. */
  --page: #F4F5F0;
  --paper: #FFFFFF;
  --ink: #14201A;
  --muted: #46524B;
  --subtle: #5B665F;
  --green: #0F5C3E;
  --green-tint: #DCEBE2;
  --line: #D9DDD3;
  --divider: #E6E9E1;
  --track: #E3E7DE;
  --amber: #F0C04A;
  --amber-bg: #FFF1CC;
  --amber-ink: #6B4600;
  --red: #C8102E;
  /* The three levels a topic is rated at, as both sides of the app colour them. */
  --lvl-d: #E8A317;
  --lvl-d-ink: #8A5A00;
  --lvl-c: #3E8A66;
  --lvl-c-ink: #2B6B4D;
  --lvl-i: #0A4029;
  /* Text on the dark ground. */
  --on-ground: #FFFFFF;
  --on-ground-muted: #B9D3C8;

  --font-display: "Space Grotesk", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-body: "IBM Plex Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;

  --max: 1180px;
  --gutter-l: max(clamp(16px, 4vw, 40px), env(safe-area-inset-left, 0px));
  --gutter-r: max(clamp(16px, 4vw, 40px), env(safe-area-inset-right, 0px));
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-pop: cubic-bezier(0.2, 0.9, 0.3, 1.3);
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html.motion { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -0.015em; text-wrap: balance; }
p, figure, dl, dd { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: inherit; }
b, strong { font-weight: 600; }
svg { overflow: visible; }
img { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--sky); outline-offset: 3px; border-radius: 6px; }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.skip {
  position: absolute; left: 16px; top: -200px; z-index: 50;
  padding: 0.6rem 1rem; border-radius: 0.6rem;
  background: var(--mint); color: var(--ground); font-weight: 600; text-decoration: none;
}
.skip:focus { top: calc(12px + env(safe-area-inset-top, 0px)); }

.wrap { max-width: var(--max); margin-inline: auto; padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.eyebrow {
  display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem;
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--green);
}
.eyebrow .pair { display: inline-flex; align-items: center; gap: 0.5rem; }
.eyebrow .one { color: var(--on-ground); }
/* Learners and Instructors stay together: on a narrow screen the line breaks after "One app". */
.eyebrow .pairs { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 1.1rem; }
.eyebrow-dark { color: var(--on-ground-muted); }
.ring-dot { display: inline-block; flex: none; width: 0.85rem; height: 0.85rem; border-radius: 50%; border: 0.19rem solid currentColor; }
.ring-sky { color: var(--sky); }
.ring-mint { color: var(--mint); }
.eyebrow-app { color: var(--ink); gap: 0.55rem; }
#learners .eyebrow-app { color: var(--sky-ink); }
#learners .eyebrow-app .ring-dot { color: var(--sky); }
#instructors .eyebrow-app { color: var(--green); }
#instructors .eyebrow-app .ring-dot { color: #00B377; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3rem; padding: 0.7rem 1.45rem; border-radius: 999px;
  font-size: 1rem; font-weight: 600; text-decoration: none; white-space: nowrap;
  transition: transform 0.2s var(--ease-out), background-color 0.2s, border-color 0.2s, box-shadow 0.2s;
}
.btn-mint { background: var(--mint); color: var(--ground); box-shadow: 0 0.7rem 1.6rem -0.7rem rgba(0, 229, 153, 0.6); }
.btn-mint:hover { background: #3DEDB2; transform: translateY(-2px); }
.btn-ghost { color: var(--on-ground); border: 1.5px solid rgba(255, 255, 255, 0.3); }
.btn-ghost:hover { border-color: rgba(255, 255, 255, 0.65); background: rgba(255, 255, 255, 0.06); transform: translateY(-2px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--ground); color: var(--on-ground); }
.hero-glow {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(42% 52% at 88% 46%, rgba(0, 229, 153, 0.16), transparent 70%),
    radial-gradient(40% 50% at 60% 58%, rgba(56, 189, 248, 0.14), transparent 70%),
    radial-gradient(60% 60% at 0% 0%, rgba(255, 255, 255, 0.05), transparent 60%);
}
.hero > .wrap { position: relative; z-index: 1; }

.topbar { display: flex; align-items: center; gap: 1.25rem 2rem; padding-block: calc(1.1rem + env(safe-area-inset-top, 0px)) 1.1rem; }
.brand { display: inline-flex; align-items: center; gap: 0.7rem; text-decoration: none; color: inherit; border-radius: 0.75rem; }
.brand .logo { width: 2.6rem; height: 2.6rem; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.4rem; letter-spacing: -0.02em; }
.nav-links { display: flex; gap: 1.9rem; margin-left: auto; font-size: 0.95rem; }
.nav-links a { color: var(--on-ground-muted); text-decoration: none; padding-block: 0.4rem; transition: color 0.2s; }
.nav-links a:hover { color: var(--on-ground); }
.soon-chip {
  display: inline-flex; align-items: center; gap: 0.55rem; flex: none;
  padding: 0.42rem 0.9rem; border: 1px solid rgba(0, 229, 153, 0.45); border-radius: 999px;
  font-size: 0.85rem; font-weight: 600; color: var(--mint);
}
.pulse { width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--mint); }
.motion .pulse { animation: pulse 2.4s ease-out infinite; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0, 229, 153, 0.55); }
  70% { box-shadow: 0 0 0 0.6rem rgba(0, 229, 153, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 229, 153, 0); }
}

.hero-grid {
  display: grid; grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center; gap: clamp(2rem, 4vw, 4rem);
  padding-block: clamp(1.5rem, 4vw, 3.5rem) clamp(2.5rem, 5vw, 4.5rem);
}
.hero-copy { min-width: 0; }
.hero h1 { margin-top: 1.2rem; font-size: clamp(2.6rem, 1.5rem + 3.6vw, 4.35rem); line-height: 1.02; letter-spacing: -0.035em; }
.both { position: relative; display: inline-block; white-space: nowrap; }
.both-bars { position: absolute; left: 0.02em; right: 0.02em; bottom: -0.05em; height: 0.13em; display: flex; gap: 0.14em; }
.both-bars i { flex: 1; border-radius: 99px; background: var(--sky); transform-origin: left center; }
.both-bars i + i { background: var(--mint); }
.motion .both-bars i { animation: bar-grow 0.75s 0.5s var(--ease-out) both; }
.motion .both-bars i + i { animation-delay: 0.68s; }
@keyframes bar-grow { from { transform: scaleX(0); } to { transform: none; } }
.lede { margin-top: 1.4rem; max-width: 33em; font-size: clamp(1.05rem, 0.98rem + 0.3vw, 1.22rem); line-height: 1.6; color: var(--on-ground-muted); }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-top: 2rem; }
.soon-line { margin-top: 1.1rem; font-size: 0.92rem; color: var(--on-ground-muted); }

.lane { position: relative; height: 3.25rem; overflow: hidden; background: var(--ground-deep); border-top: 1px solid rgba(255, 255, 255, 0.06); }
.lane span {
  position: absolute; top: 50%; left: -9rem; right: -9rem; height: 0.32rem; border-radius: 99px;
  transform: translateY(-50%);
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.8) 0 2.2rem, transparent 2.2rem 4.4rem, rgba(56, 189, 248, 0.9) 4.4rem 6.6rem, transparent 6.6rem 8.8rem);
}
.motion .lane span { animation: lane 2.6s linear infinite; }
@keyframes lane { to { transform: translate(-8.8rem, -50%); } }

/* ---------- The two phones in sync ---------- */
.demo { min-width: 0; container-type: inline-size; }
.stage {
  position: relative; isolation: isolate;
  display: flex; justify-content: center; align-items: flex-start;
  margin-inline: auto; padding-block: 1em 0.4em;
  font-size: clamp(8px, 2.5vw, 16px);
  font-size: clamp(8px, calc(100cqi / 35.5), 16px);
}
.stage-rings, .soon-rings { position: absolute; pointer-events: none; }
.stage-rings { z-index: -1; left: 50%; top: 47%; width: 47em; transform: translate(-50%, -50%); }
.stage-rings circle, .soon-rings circle { fill: none; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-dasharray: 2 10; transform-box: fill-box; transform-origin: center; }
.sr-sky { stroke: rgba(56, 189, 248, 0.6); fill: rgba(56, 189, 248, 0.035) !important; }
.sr-mint { stroke: rgba(0, 229, 153, 0.6); fill: rgba(0, 229, 153, 0.035) !important; }
.motion .stage-rings .sr-sky, .motion .soon-rings .sr-sky { animation: spin 140s linear infinite; }
.motion .stage-rings .sr-mint, .motion .soon-rings .sr-mint { animation: spin 140s linear infinite reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

.device { display: flex; flex-direction: column; align-items: center; gap: 0.85em; flex: none; }
.device-label { display: flex; align-items: center; gap: 0.5em; font-size: 0.9em; font-weight: 600; letter-spacing: 0.02em; color: var(--on-ground); }
.device-label .ring-dot { width: 0.85em; height: 0.85em; border-width: 0.19em; }

/* A phone, sized in em so it scales with the box it's in. Its screen's em is one "app point". */
.phone {
  position: relative; flex: none;
  width: 15em; height: 30.6em; padding: 0.42em; border-radius: 2.3em;
  background: #04140F;
  box-shadow: 0 0 0 0.08em rgba(255, 255, 255, 0.14), 0 1.8em 3.4em -1.1em rgba(0, 0, 0, 0.55);
}
.phone::before {
  content: ""; position: absolute; z-index: 6; top: 0.95em; left: 50%;
  width: 3.4em; height: 1em; border-radius: 1em; transform: translateX(-50%); background: #04140F;
}
.device-learner .phone { box-shadow: 0 0 0 0.09em rgba(56, 189, 248, 0.55), 0 1.8em 3.4em -1.1em rgba(0, 0, 0, 0.55), 0 0 4em -1.2em rgba(56, 189, 248, 0.5); }
.device-adi .phone { box-shadow: 0 0 0 0.09em rgba(0, 229, 153, 0.55), 0 1.8em 3.4em -1.1em rgba(0, 0, 0, 0.55), 0 0 4em -1.2em rgba(0, 229, 153, 0.45); }
.phone-screen {
  position: relative; height: 100%; overflow: hidden; border-radius: 1.92em;
  display: flex; flex-direction: column;
  background: var(--page); color: var(--ink);
  font-family: var(--font-body); font-size: 0.8em; line-height: 1.32;
  text-align: left;
}
.phone-screen b { font-weight: 600; }
.phone-screen small { display: block; color: var(--muted); }
.phone-screen .ico { width: 1.2em; height: 1.2em; }
.statusbar { flex: none; height: 2.6em; padding: 0.95em 1.6em 0; display: flex; justify-content: space-between; align-items: flex-start; font-size: 0.82em; font-weight: 600; color: var(--ink); position: relative; z-index: 3; }
.sb-icons { display: flex; gap: 0.3em; align-items: center; padding-top: 0.15em; }
.sb-icons i { display: block; width: 0.95em; height: 0.62em; border-radius: 0.15em; background: var(--ink); opacity: 0.85; }
.sb-icons i:nth-child(1) { clip-path: polygon(0 100%, 100% 0, 100% 100%); }
.sb-icons i:nth-child(2) { border-radius: 1em 1em 0.1em 0.1em; clip-path: polygon(50% 100%, 0 30%, 0 0, 100% 0, 100% 30%); }
.sb-icons i:nth-child(3) { width: 1.4em; border-radius: 0.2em; }

.scr { position: absolute; inset: 2.6em 0 0; display: flex; flex-direction: column; transition: opacity 0.45s ease, transform 0.55s var(--ease-out); }
.scr-b { opacity: 0; transform: translateX(10%); pointer-events: none; }
.stage.scene-b .scr-a { opacity: 0; transform: translateX(-10%); }
.stage.scene-b .scr-b { opacity: 1; transform: none; }

.app-head { flex: none; display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0.9em 0.65em; background: var(--paper); border-bottom: 1px solid var(--line); }
.app-head .ico-back { width: 1.1em; height: 1.1em; stroke-width: 2.2; margin-left: -0.15em; }
.app-head .who { display: grid; min-width: 0; }
.app-head .who b { font-size: 1em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-head .who small { font-size: 0.78em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { flex: none; width: 2.2em; height: 2.2em; border-radius: 50%; display: grid; place-items: center; font-size: 0.8em; font-weight: 600; }
.av-green { background: var(--green-tint); color: var(--green); }
.av-lilac { background: #E6E3F5; color: #3E3592; }

.chat { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; padding: 0 0.8em 0.75em; overflow: hidden; }
.day { align-self: center; margin-top: 0.6em; font-size: 0.74em; color: var(--subtle); }
.msg { display: flex; margin-top: 0.55em; }
.msg.mine { justify-content: flex-end; }
.bubble { max-width: 84%; padding: 0.5em 0.72em; border-radius: 0.95em; font-size: 0.92em; line-height: 1.3; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 0.25em; }
.mine .bubble { background: var(--green); border-color: var(--green); color: #fff; border-radius: 0.95em; border-bottom-right-radius: 0.25em; }

.grow { display: grid; grid-template-rows: 1fr; opacity: 1; transition: grid-template-rows 0.55s var(--ease-out), opacity 0.4s ease; }
.grow-in { min-height: 0; overflow: hidden; display: flex; flex-direction: column; }

.slots { width: 88%; padding: 0.65em 0.7em 0.7em; border-radius: 0.95em; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 0.25em; }
.slots-adi { border-radius: 0.95em; border-bottom-right-radius: 0.25em; }
.slots-title { font-weight: 600; font-size: 0.92em; }
.slots-sub { font-size: 0.76em; color: var(--muted); margin-bottom: 0.2em; }
.opt {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 0.35em;
  margin-top: 0.38em; padding: 0.42em 0.6em; border-radius: 0.6em;
  border: 1px solid var(--line); background: var(--paper);
  font-size: 0.88em; font-weight: 600; color: var(--green);
  transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}
.opt .ico-check { width: 0; height: 1.05em; opacity: 0; stroke-width: 2.6; transition: width 0.3s var(--ease-out), opacity 0.3s; }
.opt-pick, .opt-picked { background: var(--green); border-color: var(--green); color: #fff; }
.opt-pick .ico-check, .opt-picked .ico-check { width: 1.05em; opacity: 1; }
.tap { position: absolute; right: 22%; top: 50%; width: 1.8em; height: 1.8em; margin: -0.9em; border-radius: 50%; background: rgba(15, 92, 62, 0.35); opacity: 0; pointer-events: none; }
.slots-line { margin-top: 0.55em; font-size: 0.76em; color: var(--muted); }
.slots-line .line-wait { display: none; }
.slots-line .line-booked { color: var(--green); font-weight: 600; }

.state-line { display: flex; align-items: center; justify-content: center; gap: 0.45em; margin-top: 0.7em; font-size: 0.8em; color: var(--muted); }
.pill { display: inline-block; padding: 0.22em 0.65em; border-radius: 99px; font-size: 0.86em; font-weight: 600; font-style: normal; line-height: 1.35; white-space: nowrap; }
.pill-green { background: var(--green-tint); color: var(--green); }
.pill-amber { background: var(--amber-bg); color: var(--amber-ink); }

.composer { flex: none; display: flex; align-items: center; gap: 0.5em; padding: 0.55em 0.75em 1.3em; background: var(--paper); border-top: 1px solid var(--line); }
.composer .input { flex: 1; min-width: 0; padding: 0.48em 0.85em; border-radius: 99px; background: var(--page); color: var(--subtle); font-size: 0.85em; }
.composer .send { flex: none; width: 2.1em; height: 2.1em; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; }
.composer .send .ico { width: 1em; height: 1em; stroke-width: 2; }
.composer .share { flex: none; padding: 0.42em 0.75em; border-radius: 99px; border: 1.5px solid var(--green); color: var(--green); font-size: 0.82em; font-weight: 600; transition: background-color 0.2s, color 0.2s, transform 0.2s; }

/* Feedback screens (scene two). */
.fb { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.6em; padding: 0.85em 0.85em 1em; overflow: hidden; }
.fb-wait { margin-top: 0.4em; padding: 0.8em; border-radius: 0.8em; background: var(--paper); border: 1px dashed var(--line); color: var(--muted); font-size: 0.86em; display: none; }
.fb-rated { display: flex; flex-direction: column; gap: 0.6em; }
.legend { display: flex; flex-wrap: wrap; gap: 0.25em 0.7em; font-size: 0.68em; color: var(--muted); }
.legend span::before { content: ""; display: inline-block; width: 0.75em; height: 0.75em; margin-right: 0.3em; border-radius: 0.2em; vertical-align: -0.1em; }
.legend .lg-d::before { background: var(--lvl-d); }
.legend .lg-c::before { background: var(--lvl-c); }
.legend .lg-i::before { background: var(--lvl-i); }

.trow { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 0.3em 0.6em; padding: 0.6em 0.7em; border-radius: 0.8em; background: var(--paper); border: 1px solid var(--line); }
.trow b { font-size: 0.9em; min-width: 0; }
.trow .lvl { justify-self: end; }
.trow .lbars { grid-column: 1 / -1; }
.lvl { font-size: 0.74em; font-weight: 600; font-style: normal; white-space: nowrap; }
.lvl-d { color: var(--lvl-d-ink); }
.lvl-c { color: var(--lvl-c-ink); }
.lvl-i { color: var(--lvl-i); }
.lvl-none, .lvl-unrated { color: var(--subtle); font-weight: 400; }
.lvl-unrated { display: none; }
.lbars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.25em; }
.lbars i { display: block; height: 0.42em; border-radius: 99px; background: var(--track); position: relative; overflow: hidden; }
.lbars i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; transform-origin: left center; transition: transform 0.45s var(--ease-out); }
.lbars-1 i:nth-child(-n+1)::after { background: var(--lvl-d); }
.lbars-2 i:nth-child(-n+2)::after { background: var(--lvl-c); }
.lbars-3 i:nth-child(-n+3)::after { background: var(--lvl-i); }
.lbars i:nth-child(2)::after { transition-delay: 0.12s; }
.lbars i:nth-child(3)::after { transition-delay: 0.24s; }

.new-badge { display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0.7em; border-radius: 0.8em; background: #FFF6E0; border: 1px solid #F0D58C; }
.new-badge b { display: block; font-size: 0.86em; }
.new-badge small { font-size: 0.76em; }
.shield { width: 1.9em; height: 2.1em; flex: none; }
.shield path:first-child { fill: var(--amber); }
.shield .tick { fill: none; stroke: var(--ink); stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; }
.shield.s-earned path:first-child { fill: var(--green); }
.shield.s-earned .tick { stroke: #fff; }

.notice {
  position: absolute; z-index: 4; top: 0.4em; left: 0.55em; right: 0.55em;
  display: flex; align-items: center; gap: 0.6em; padding: 0.6em 0.7em;
  border-radius: 1em; background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 0.6em 1.6em -0.5em rgba(20, 32, 26, 0.35), 0 0 0 1px rgba(20, 32, 26, 0.06);
  transform: translateY(-135%); opacity: 0; transition: transform 0.5s var(--ease-pop), opacity 0.3s;
}
.notice b { display: block; font-size: 0.86em; }
.notice small { font-size: 0.74em; }
.notice-logo { width: 2.1em; height: 2.1em; flex: none; }

.fb-adi { gap: 0.55em; }
.note-label { margin-top: 0.15em; font-size: 0.74em; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.note { padding: 0.6em 0.7em; border-radius: 0.8em; background: var(--paper); border: 1px solid var(--line); font-size: 0.84em; }
.save-send { margin-top: auto; padding: 0.7em; border-radius: 99px; background: var(--green); color: #fff; text-align: center; font-weight: 600; font-size: 0.88em; transition: transform 0.2s, background-color 0.2s; }

/* The line between the phones, where messages travel. */
.link { position: relative; flex: none; width: 5.5em; height: 2.8em; margin-top: calc(15.3em - 1.4em); }
.link-line {
  position: absolute; left: -0.5em; right: -0.5em; top: 50%; height: 2px; margin-top: -1px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.45) 0 0.45em, transparent 0.45em 0.9em);
}
.motion .link-line { animation: link-dash 1.4s linear infinite; }
@keyframes link-dash { to { background-position: 0.9em 0; } }
.link-hub {
  position: absolute; left: 50%; top: 50%; width: 2.8em; height: 2.8em; margin: -1.4em 0 0 -1.4em;
  border-radius: 50%; background: var(--ground); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18);
  display: flex; align-items: center; justify-content: center;
}
.link-hub i { width: 1em; height: 1em; border-radius: 50%; border: 0.18em solid var(--sky); }
.link-hub i + i { border-color: var(--mint); margin-left: -0.28em; }
.packet {
  position: absolute; left: 0; top: 50%; width: 0.9em; height: 0.9em; margin: -0.45em 0 0 -0.45em;
  border-radius: 50%; opacity: 0; pointer-events: none;
  background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--mint) 60%);
  box-shadow: 0 0 0.9em 0.15em rgba(0, 229, 153, 0.75);
}
.link.go-left .packet { animation: go-left 0.85s cubic-bezier(0.45, 0, 0.55, 1) forwards; }
.link.go-right .packet { background: radial-gradient(circle at 35% 35%, #fff 0 18%, var(--sky) 60%); box-shadow: 0 0 0.9em 0.15em rgba(56, 189, 248, 0.75); animation: go-right 0.85s cubic-bezier(0.45, 0, 0.55, 1) forwards; }
.link.go-left .link-hub, .link.go-right .link-hub { animation: hub-ping 0.85s ease-out; }
@keyframes go-left { 0% { transform: translateX(6.5em); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(-1em); opacity: 0; } }
@keyframes go-right { 0% { transform: translateX(-1em); opacity: 0; } 15%, 85% { opacity: 1; } 100% { transform: translateX(6.5em); opacity: 0; } }
@keyframes hub-ping { 0%, 30% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); } 55% { box-shadow: 0 0 0 0.45em rgba(255, 255, 255, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.5); } 100% { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.18); } }

/* The story, step by step. Without the "playing" class the stage rests at the end of scene one. */
.stage.playing .grow.at-s2, .stage.playing .grow.at-s3, .stage.playing .grow.at-s6 { grid-template-rows: 0fr; opacity: 0; }
.stage.playing.s2 .grow.at-s2, .stage.playing.s3 .grow.at-s3, .stage.playing.s6 .grow.at-s6 { grid-template-rows: 1fr; opacity: 1; }
.stage.playing.s1:not(.s2) .composer .share { background: var(--green); color: #fff; transform: scale(0.94); }
.stage.playing .opt-pick, .stage.playing .opt-picked { background: var(--paper); border-color: var(--line); color: var(--green); }
.stage.playing .opt-pick .ico-check, .stage.playing .opt-picked .ico-check { width: 0; opacity: 0; }
.stage.playing.s4 .opt-pick, .stage.playing.s6 .opt-picked { background: var(--green); border-color: var(--green); color: #fff; }
.stage.playing.s4 .opt-pick .ico-check, .stage.playing.s6 .opt-picked .ico-check { width: 1.05em; opacity: 1; }
.stage.playing.s4 .tap { animation: tap 0.7s ease-out; }
@keyframes tap { 0% { opacity: 0.9; transform: scale(0.3); } 100% { opacity: 0; transform: scale(2.6); } }
.stage.playing .slots-line .line-wait { display: inline; }
.stage.playing .slots-line .line-booked { display: none; }
.stage.playing.s6 .slots-line .line-wait { display: none; }
.stage.playing.s6 .slots-line .line-booked { display: inline; }

.stage.playing .rate-mirrors .lvl-i, .stage.playing .rate-round .lvl-c { display: none; }
.stage.playing .rate-mirrors .lvl-unrated, .stage.playing .rate-round .lvl-unrated { display: inline; }
.stage.playing .rate-mirrors .lbars i::after, .stage.playing .rate-round .lbars i::after { transform: scaleX(0); }
.stage.playing.s7 .rate-mirrors .lvl-i, .stage.playing.s8 .rate-round .lvl-c { display: inline; animation: pop-in 0.35s var(--ease-pop); }
.stage.playing.s7 .rate-mirrors .lvl-unrated, .stage.playing.s8 .rate-round .lvl-unrated { display: none; }
.stage.playing.s7 .rate-mirrors .lbars i::after, .stage.playing.s8 .rate-round .lbars i::after { transform: none; }
.stage.playing.s9 .save-send { transform: scale(0.95); background: var(--lvl-i); }

.stage.playing .fb-wait { display: block; }
.stage.playing .fb-rated { display: none; }
.stage.playing.s11 .fb-wait { display: none; }
.stage.playing.s11 .fb-rated { display: flex; animation: fade-up 0.45s var(--ease-out); }
.stage.playing .scr-b .fb-rated .lbars i::after { transform: scaleX(0); }
.stage.playing.s11 .scr-b .fb-rated .lbars i::after { transform: none; transition-delay: calc(0.25s + var(--d, 0s)); }
.stage.playing.s11 .new-badge { animation: pop-in 0.5s 0.7s var(--ease-pop) both; }
.stage.playing.s10:not(.s11) .notice { transform: none; opacity: 1; }
@keyframes pop-in { from { transform: scale(0.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes fade-up { from { transform: translateY(0.8em); opacity: 0; } to { transform: none; opacity: 1; } }
.fb-rated .trow:nth-of-type(2) .lbars i::after { --d: 0.15s; }
.fb-rated .trow:nth-of-type(3) .lbars i::after { --d: 0.3s; }

.stage.fading .scr { opacity: 0 !important; transition: opacity 0.4s ease; }
.stage.instant, .stage.instant * { transition: none !important; animation: none !important; }

.demo-caption { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 0.75rem 1.5rem; margin-top: 1.4rem; max-width: 36rem; margin-inline: auto; }
.scenes { flex: 1 1 18rem; display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.scene { display: grid; gap: 0.3rem; align-content: start; font-size: 0.86rem; line-height: 1.45; color: var(--on-ground-muted); opacity: 0.55; transition: opacity 0.4s; }
.scene b { color: var(--on-ground); font-size: 0.92rem; }
.scene-bar { display: block; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.14); overflow: hidden; position: relative; }
.scene-bar::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: var(--mint); transform-origin: left center; transform: scaleX(var(--p, 0)); }
.scene-1 .scene-bar::after { background: var(--sky); }
.demo:not(.is-b) .scene-1, .demo.is-b .scene-2 { opacity: 1; }
.demo-toggle {
  display: inline-flex; align-items: center; gap: 0.45rem; flex: none;
  padding: 0.5rem 0.85rem; border-radius: 99px; border: 1px solid rgba(255, 255, 255, 0.25);
  background: transparent; color: var(--on-ground); font: inherit; font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s, background-color 0.2s;
}
.demo-toggle:hover { border-color: rgba(255, 255, 255, 0.55); background: rgba(255, 255, 255, 0.06); }
.demo-toggle svg { width: 0.95rem; height: 0.95rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.demo-toggle .t-play svg { fill: currentColor; stroke-width: 1.5; }
.demo-toggle > span { display: inline-flex; align-items: center; gap: 0.45rem; }
.demo-toggle[data-paused="false"] .t-play, .demo-toggle[data-paused="true"] .t-pause { display: none; }
.motion-paused .hero *, .motion-paused .hero *::before, .motion-paused .hero *::after { animation-play-state: paused !important; }

/* ---------- Sections ---------- */
.band { padding-block: clamp(4rem, 8vw, 7rem); scroll-margin-top: 1rem; }
.band-page { background: var(--page); }
.band-paper { background: var(--paper); }
.band-ground { background: var(--ground); color: var(--on-ground); }
.section-head { display: grid; gap: 0.9rem; max-width: 42rem; }
h2 { font-size: clamp(2rem, 1.35rem + 2.5vw, 3.3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.intro { max-width: 36em; font-size: clamp(1.05rem, 1rem + 0.25vw, 1.2rem); color: var(--muted); }

/* How it works: the road */
.road-wrap { position: relative; margin-top: clamp(2.5rem, 5vw, 4rem); }
.road-wrap::before {
  content: ""; position: absolute; left: 0; top: -0.5rem; bottom: -0.5rem; width: 2.6rem;
  border-radius: 1.3rem; background: var(--ground);
}
.road-wrap::after {
  content: ""; position: absolute; left: calc(1.3rem - 0.14rem); top: 1.2rem; bottom: 1.2rem; width: 0.28rem; border-radius: 99px;
  background: repeating-linear-gradient(180deg, rgba(255, 255, 255, 0.75) 0 1.1rem, transparent 1.1rem 2.2rem, rgba(56, 189, 248, 0.9) 2.2rem 3.3rem, transparent 3.3rem 4.4rem);
}
.road { position: relative; display: grid; gap: clamp(2.5rem, 5vw, 4.25rem); padding-left: clamp(4rem, 6vw, 5.5rem); }
.stop { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: 1.25rem clamp(2rem, 5vw, 4rem); }
.stop::before {
  content: ""; position: absolute; z-index: 1; top: 0.3rem;
  left: calc(-1 * clamp(4rem, 6vw, 5.5rem) + 1.3rem - 0.65rem);
  width: 1.3rem; height: 1.3rem; border-radius: 50%;
  background: var(--ground); border: 0.24rem solid rgba(255, 255, 255, 0.6);
  transition: border-color 0.3s, box-shadow 0.3s;
}
.stop.passed::before { border-color: var(--mint); box-shadow: 0 0 0 0.3rem rgba(0, 229, 153, 0.22); }
.stop-text { display: grid; gap: 0.45rem; max-width: 31rem; align-self: start; }
.stop-num { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green); }
.stop-text p { color: var(--muted); }
.stop-card { display: flex; }
.road-car {
  position: absolute; z-index: 2; left: 0.05rem; top: 0; width: 2.5rem; height: 2.5rem;
  filter: drop-shadow(0 0.35rem 0.6rem rgba(0, 0, 0, 0.35));
  will-change: transform; pointer-events: none;
}
.road-car svg { width: 100%; height: 100%; }
html:not(.motion) .road-car { display: none; }
html:not(.motion) .stop::before { border-color: var(--mint); }

.mini {
  width: 100%; max-width: 25rem; padding: 1rem 1.1rem; border-radius: 1.1rem;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 0.9rem 2rem -1.4rem rgba(20, 32, 26, 0.45);
  font-size: 0.95rem; line-height: 1.4;
  transition: transform 0.4s var(--ease-out), box-shadow 0.4s, border-color 0.4s;
}
.band-page .mini { background: var(--paper); }
.stop.passed .mini { border-color: #BDD7C9; box-shadow: 0 1.1rem 2.4rem -1.4rem rgba(15, 92, 62, 0.45); }
.mini b { font-weight: 600; }
.mini small { display: block; color: var(--muted); font-size: 0.85rem; }
.mini-invite { display: flex; align-items: center; gap: 0.8rem; }
.mini-icon { flex: none; width: 2.5rem; height: 2.5rem; border-radius: 0.75rem; display: grid; place-items: center; background: var(--green-tint); color: var(--green); }
.mini-main { flex: 1; min-width: 0; }
.mini-main small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-btn { flex: none; display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 0.9rem; border-radius: 99px; background: var(--green); color: #fff; font-size: 0.85rem; font-weight: 600; white-space: nowrap; }
.mini-btn-full { display: flex; margin-top: 0.85rem; }
.mini-btn-outline { background: transparent; color: var(--green); border: 1.5px solid var(--green); margin-top: 0.8rem; }
.mini-kicker { font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.6rem; }
.chips span { padding: 0.25rem 0.65rem; border-radius: 99px; background: var(--page); border: 1px solid var(--line); font-size: 0.84rem; color: var(--ink); }
.mini-times { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.mini-times .t { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.5rem 0.8rem; border-radius: 0.7rem; border: 1px solid var(--line); font-weight: 600; font-size: 0.9rem; color: var(--green); }
.mini-times .t .ico { width: 1rem; height: 1rem; stroke-width: 2.6; }
.mini-times .t-on { background: var(--green); border-color: var(--green); color: #fff; }
.pay-top { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; flex-wrap: wrap; }
.pay-top b { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -0.02em; }
.pay-ref { margin-top: 0.35rem; color: var(--muted); font-size: 0.9rem; }
.pay-ref code { font-family: var(--font-body); font-weight: 600; color: var(--ink); background: var(--page); padding: 0.1rem 0.4rem; border-radius: 0.35rem; letter-spacing: 0.03em; }
.mini-learn { display: grid; gap: 0.6rem; }
.mini-learn .trow { font-size: 1rem; }
.mini-learn .trow b { font-size: 0.95rem; }
.mini-learn .lvl { font-size: 0.82rem; }
.mini-learn .lbars i { height: 0.45rem; }

/* Learner and ADI sections */
.feature-grid {
  display: grid; align-items: start;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  grid-template-areas: "visual head" "visual features";
  column-gap: clamp(2rem, 6vw, 6rem); row-gap: 2.25rem;
}
.feature-flip .feature-grid {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-areas: "head visual" "features visual" "also visual";
}
.feature-head { grid-area: head; display: grid; gap: 0.9rem; }
.feature-visual { grid-area: visual; align-self: start; position: sticky; top: max(1.5rem, calc(50vh - 21rem)); min-width: 0; container-type: inline-size; }
.features { grid-area: features; display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.features li { display: grid; grid-template-columns: 2.5rem minmax(0, 1fr); column-gap: 1rem; row-gap: 0.15rem; align-content: start; max-width: 36rem; }
.features h3 { font-size: 1.1rem; align-self: end; }
.features p { grid-column: 2; font-size: 0.98rem; line-height: 1.55; color: var(--muted); }
.f-ico { grid-row: span 2; width: 2.5rem; height: 2.5rem; padding: 0.58rem; border-radius: 0.8rem; }
#learners .f-ico { background: var(--sky-tint); color: var(--sky-ink); }
#instructors .f-ico { background: var(--mint-tint); color: var(--green); }
.also { grid-area: also; display: grid; gap: 0.75rem; padding-top: 1.5rem; border-top: 1px solid var(--line); }
.also p { display: flex; gap: 0.75rem; align-items: flex-start; color: var(--muted); font-size: 0.98rem; }
.also .ico { width: 1.5rem; height: 1.5rem; color: var(--green); margin-top: 0.05rem; }
.also b { color: var(--ink); }

.visual-box {
  position: relative; width: fit-content; margin-inline: auto;
  padding: 2.4em 3em 1.6em;
  font-size: clamp(9px, 3.6vw, 17px);
  font-size: clamp(9px, calc(100cqi / 21.5), 17px);
}
#instructors .visual-box { padding: 1.6em 1.5em 1.6em 8em; font-size: clamp(9px, 3.2vw, 17px); font-size: clamp(9px, calc(100cqi / 25), 17px); }
.visual-box::before {
  content: ""; position: absolute; z-index: 0; left: 50%; top: 50%; width: 22em; height: 22em; border-radius: 50%;
  transform: translate(-50%, -50%);
}
#learners .visual-box::before { background: radial-gradient(closest-side, rgba(56, 189, 248, 0.22), rgba(56, 189, 248, 0) 100%); }
#instructors .visual-box::before { background: radial-gradient(closest-side, rgba(0, 229, 153, 0.24), rgba(0, 229, 153, 0) 100%); }
.phone-lg { width: 15em; height: 30.6em; margin-inline: auto; }
.feature .phone-lg { background: var(--ground); box-shadow: 0 0 0 0.08em rgba(10, 46, 36, 0.4), 0 2em 3.5em -1.4em rgba(10, 46, 36, 0.55); }
.feature .phone-lg::before { background: var(--ground); }
.tabpage { flex: 1; min-height: 0; display: flex; flex-direction: column; gap: 0.62em; padding: 0.3em 1em 0.9em; overflow: hidden; }
.page-title { font-family: var(--font-display); font-weight: 600; font-size: 1.6em; line-height: 1.1; letter-spacing: -0.01em; }
.kicker { font-size: 0.8em; color: var(--muted); margin-bottom: -0.4em; }
.label { font-size: 0.68em; font-weight: 600; letter-spacing: 0.09em; text-transform: uppercase; color: var(--muted); margin-top: 0.2em; margin-bottom: -0.2em; }
.label-row { display: flex; justify-content: space-between; align-items: baseline; }
.label-row em { font-style: normal; text-transform: none; letter-spacing: 0; color: var(--green); font-size: 1.15em; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 0.9em; padding: 0.7em 0.8em; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45em; }
.stat { background: var(--paper); border: 1px solid var(--line); border-radius: 0.8em; padding: 0.55em 0.6em; }
.stat b, .tile b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.45em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.stat small, .tile small { font-size: 0.72em; }
.readiness { display: flex; align-items: center; gap: 0.7em; }
.readiness b { display: block; font-size: 1.05em; color: var(--lvl-c-ink); }
.readiness small { font-size: 0.72em; }
.ring { width: 3.3em; height: 3.3em; flex: none; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 5; }
.ring-track { stroke: var(--track); }
.ring-fill { stroke: var(--lvl-c); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: 40; transition: stroke-dashoffset 1.2s 0.2s var(--ease-out); }
.gaps { display: grid; gap: 0.4em; padding-block: 0.55em; }
.gap { display: flex; justify-content: space-between; align-items: baseline; gap: 0.5em; font-size: 0.86em; }
.gap + .gap { padding-top: 0.4em; border-top: 1px solid var(--divider); }
.badges { display: flex; align-items: center; gap: 0.7em; }
.badges b { display: block; font-size: 0.82em; }
.badges small { font-size: 0.7em; }
.shields { display: flex; flex: none; }
.shields .shield { width: 1.55em; height: 1.75em; margin-right: -0.18em; transition: transform 0.4s var(--ease-pop), opacity 0.3s; }
.btn-app { flex: none; display: block; margin-top: auto; padding: 0.68em; border-radius: 99px; text-align: center; font-weight: 600; font-size: 0.86em; }
.btn-app-off { background: #9DB7A8; color: #fff; }
.tabbar { flex: none; display: flex; justify-content: space-around; padding: 0.55em 0.3em 1.25em; background: var(--paper); border-top: 1px solid var(--line); }
.tabbar span { position: relative; display: flex; flex-direction: column; align-items: center; gap: 0.2em; font-size: 0.62em; color: var(--subtle); }
.tabbar .ico { width: 1.75em; height: 1.75em; stroke-width: 1.8; }
.tabbar .on { color: var(--green); font-weight: 600; }
.tab-badge { position: absolute; top: -0.45em; left: 55%; min-width: 1.6em; height: 1.6em; padding: 0 0.35em; border-radius: 1em; border: 0.15em solid #fff; background: var(--red); color: #fff; font-size: 0.9em; font-style: normal; font-weight: 600; display: grid; place-items: center; line-height: 1; }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.45em; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: 0.8em; padding: 0.5em 0.55em; }
.lessons { padding: 0.1em 0.75em; }
.lesson { display: flex; align-items: center; gap: 0.6em; padding: 0.55em 0; transition: transform 0.5s var(--ease-out), opacity 0.4s; }
.lesson + .lesson { border-top: 1px solid var(--divider); }
.date { flex: none; width: 2.2em; display: grid; justify-items: center; line-height: 1.05; }
.date small { font-size: 0.6em; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); font-weight: 600; }
.date b { font-family: var(--font-display); font-size: 1.15em; }
.l-main { flex: 1; min-width: 0; display: grid; justify-items: start; gap: 0.12em; }
.l-main b { font-size: 0.9em; }
.l-main small { font-size: 0.7em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.l-main .pill { font-size: 0.66em; }
.chev { color: var(--muted); width: 1em !important; height: 1em !important; }
.fab { position: absolute; z-index: 3; right: 0.95em; bottom: 4.6em; width: 3.1em; height: 3.1em; border-radius: 50%; display: grid; place-items: center; background: var(--green); color: #fff; box-shadow: 0 0.5em 1em -0.3em rgba(15, 92, 62, 0.6); transition: transform 0.45s var(--ease-pop); }
.fab .ico { width: 1.5em; height: 1.5em; stroke-width: 2.2; }

.float-card {
  position: absolute; z-index: 2;
  background: var(--paper); border: 1px solid var(--line); border-radius: 1.1em;
  box-shadow: 0 1.4em 2.6em -1.2em rgba(20, 32, 26, 0.4);
  transition: transform 0.7s var(--ease-out), opacity 0.5s;
}
.float-notice { top: 0; right: 0; width: 14.5em; display: flex; align-items: center; gap: 0.65em; padding: 0.75em 0.85em; font-size: 0.8em; line-height: 1.3; }
.float-notice b { display: block; font-size: 1em; }
.float-notice small { display: block; color: var(--muted); font-size: 0.86em; }
.reports-card { left: 0; bottom: 2.2em; width: 13.2em; padding: 0.9em 1em 1em; font-size: 0.8em; line-height: 1.3; }
.rc-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5em; }
.rc-head b { display: block; font-family: var(--font-display); font-size: 1.15em; }
.rc-head small { display: block; color: var(--muted); font-size: 0.82em; }
.eye {
  display: inline-flex; align-items: center; gap: 0.3em;
  padding: 0.3em 0.55em; margin: -0.2em -0.3em 0 0; border: 0; border-radius: 99px; background: transparent;
  color: var(--green); font: inherit; font-size: 0.82em; font-weight: 600; cursor: pointer;
}
.eye:hover { background: var(--green-tint); }
.eye .ico { width: 1.25em; height: 1.25em; }
.eye .ico-eye-off, .reports-card.amounts-hidden .eye .ico-eye-on { display: none; }
.reports-card.amounts-hidden .eye .ico-eye-off { display: block; }
.rc-figures { display: grid; gap: 0.3em; margin-top: 0.7em; }
.rc-figures div { display: flex; justify-content: space-between; gap: 0.5em; font-size: 0.92em; }
.rc-figures dt { color: var(--muted); }
.rc-figures dd { font-weight: 600; font-variant-numeric: tabular-nums; }
.rc-figures div:last-child { padding-top: 0.35em; border-top: 1px solid var(--divider); }
.rc-figures div:last-child dd { color: var(--green); }
.amt-mask { display: none; letter-spacing: 0.08em; }
.reports-card.amounts-hidden .amt { display: none; }
.reports-card.amounts-hidden .amt-mask { display: inline; }
.rc-chart { display: flex; align-items: flex-end; gap: 0.55em; height: 4.2em; margin-top: 0.8em; padding-top: 0.2em; border-bottom: 1px solid var(--line); }
.rc-chart span { flex: 1; height: 100%; display: flex; align-items: flex-end; justify-content: center; gap: 0.18em; }
.rc-chart i, .rc-chart em { display: block; width: 0.6em; border-radius: 0.2em 0.2em 0 0; transform-origin: bottom; transition: transform 0.8s var(--ease-out); }
.rc-chart i { height: calc(var(--h) * 100%); background: var(--green); }
.rc-chart em { height: calc(var(--e) * 100%); background: var(--lvl-d); }
.rc-chart span:nth-child(2) i, .rc-chart span:nth-child(2) em { transition-delay: 0.1s; }
.rc-chart span:nth-child(3) i, .rc-chart span:nth-child(3) em { transition-delay: 0.2s; }
.rc-chart span:nth-child(4) i, .rc-chart span:nth-child(4) em { transition-delay: 0.3s; }

/* Before a section's picture scrolls into view (only with motion, once the script runs). */
.motion.ready [data-inview]:not(.in-view) .ring-fill { stroke-dashoffset: 100; }
.motion.ready [data-inview]:not(.in-view) .shields .shield { transform: scale(0.4); opacity: 0; }
.motion.ready [data-inview]:not(.in-view) .float-notice { transform: translateX(1.5em); opacity: 0; }
.motion.ready [data-inview]:not(.in-view) .lesson { transform: translateX(1.5em); opacity: 0; }
.motion.ready [data-inview]:not(.in-view) .fab { transform: scale(0); }
.motion.ready [data-inview]:not(.in-view) .reports-card { transform: translateY(1.5em); opacity: 0; }
.motion.ready [data-inview]:not(.in-view) .rc-chart i, .motion.ready [data-inview]:not(.in-view) .rc-chart em { transform: scaleY(0); }
[data-inview] .shields .shield:nth-child(2) { transition-delay: 0.12s; }
[data-inview] .shields .shield:nth-child(3) { transition-delay: 0.24s; }
[data-inview] .shields .shield:nth-child(4) { transition-delay: 0.36s; }
[data-inview] .float-notice { transition-delay: 0.5s; }
[data-inview] .lesson:nth-child(2) { transition-delay: 0.12s; }
[data-inview] .lesson:nth-child(3) { transition-delay: 0.24s; }
[data-inview] .fab { transition-delay: 0.45s; }
[data-inview] .reports-card { transition-delay: 0.35s; }

/* Trust */
.trust-list { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 2rem; margin-top: clamp(2rem, 4vw, 3rem); }
.trust-list li { display: grid; gap: 0.6rem; align-content: start; padding-top: 1.4rem; border-top: 2px solid var(--divider); }
.trust-list p { color: var(--muted); font-size: 0.98rem; line-height: 1.55; }
.t-ico { width: 2.9rem; height: 2.9rem; border-radius: 50%; display: grid; place-items: center; background: var(--ground); color: var(--mint); margin-bottom: 0.3rem; }
.t-ico .ico { width: 1.45rem; height: 1.45rem; }

/* Coming soon */
.soon { position: relative; overflow: hidden; }
.soon-rings { right: -14rem; top: 50%; width: 62rem; transform: translateY(-50%); opacity: 0.55; }
.soon-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: clamp(2rem, 5vw, 4rem); align-items: center; }
.logo-big { width: 6.5rem; height: 6.5rem; }
.soon h2 { margin-top: 1.6rem; font-size: clamp(2.6rem, 1.5rem + 3.9vw, 4.6rem); letter-spacing: -0.035em; }
.soon-copy p { margin-top: 1rem; max-width: 28em; font-size: clamp(1.05rem, 1rem + 0.3vw, 1.2rem); color: var(--on-ground-muted); }
/* One app for both: its border runs from the learner's sky to the instructor's mint. */
.app-tile {
  display: flex; align-items: center; gap: 1rem; max-width: 30rem; margin-top: 2rem; padding: 1.1rem 1.25rem; border-radius: 1.3rem;
  border: 1px solid transparent;
  background:
    linear-gradient(rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.045)) padding-box,
    linear-gradient(var(--ground), var(--ground)) padding-box,
    linear-gradient(100deg, rgba(56, 189, 248, 0.6), rgba(0, 229, 153, 0.6)) border-box;
}
.tile-logo { width: 3.6rem; height: 3.6rem; flex: none; }
.tile-text { flex: 1; min-width: 0; display: grid; }
.tile-text b { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.tile-text small { font-size: 0.95rem; color: var(--on-ground-muted); }
.tile-soon { flex: none; padding: 0.35rem 0.75rem; border-radius: 99px; font-size: 0.8rem; font-weight: 600; white-space: nowrap; color: var(--mint); background: rgba(0, 229, 153, 0.13); }

/* The app's first page, where each person says which side they're on (apps/phone/src/ChooseRole.tsx). */
.first-page { min-width: 0; display: flex; justify-content: center; container-type: inline-size; }
.phone-choose {
  font-size: 15px; font-size: clamp(12px, calc(100cqi / 17), 17px);
  box-shadow: 0 0 0 0.09em rgba(255, 255, 255, 0.18), -1.4em 0.6em 4em -1.5em rgba(56, 189, 248, 0.6),
    1.4em 0.6em 4em -1.5em rgba(0, 229, 153, 0.55), 0 1.8em 3.4em -1.1em rgba(0, 0, 0, 0.55);
}
.choose { flex: 1; min-height: 0; display: flex; flex-direction: column; padding: 1.5em 1.1em 1.4em; }
.choose-logo { align-self: center; width: 4.2em; height: 4.2em; margin-top: 0.8em; }
.choose-name { align-self: center; margin-top: 0.5em; font-family: var(--font-display); font-weight: 700; font-size: 1.85em; line-height: 1.15; letter-spacing: -0.02em; color: var(--green); }
.choose-q { margin-top: 0.35em; text-align: center; font-size: 0.95em; line-height: 1.4; color: var(--muted); }
.choice { display: flex; align-items: center; gap: 0.7em; margin-top: 0.75em; padding: 0.95em 0.85em; border-radius: 0.85em; border: 1px solid var(--line); background: var(--paper); transition: transform 0.6s var(--ease-out), opacity 0.5s; }
.choices { display: flex; flex-direction: column; }
.choice-learner { margin-top: 2em; }
.choice-adi { transition-delay: 0.15s; }
.choice-words { flex: 1; min-width: 0; display: grid; gap: 0.2em; }
.choice b { font-family: var(--font-display); font-size: 1em; line-height: 1.3; color: var(--ink); }
.choice small { font-size: 0.8em; line-height: 1.35; }
.phone-screen .choice .ico { width: 1.15em; height: 1.15em; color: var(--green); stroke-width: 2; }
/* Once both choices are on screen, they rise in, then each lights up once in its side's colour (under five seconds in all). */
.motion.ready [data-inview]:not(.in-view) .choice { transform: translateY(1em); opacity: 0; }
.motion .choices.in-view .choice-learner { animation: pick-learner 4s 0.9s ease-in-out both; }
.motion .choices.in-view .choice-adi { animation: pick-adi 4s 0.9s ease-in-out both; }
@keyframes pick-learner { 0% { border-color: var(--line); box-shadow: none; } 8%, 42% { border-color: var(--sky); box-shadow: 0 0 0 0.2em rgba(56, 189, 248, 0.25); } 50%, 100% { border-color: var(--line); box-shadow: none; } }
@keyframes pick-adi { 0%, 50% { border-color: var(--line); box-shadow: none; } 58%, 92% { border-color: #00B377; box-shadow: 0 0 0 0.2em rgba(0, 229, 153, 0.25); } 100% { border-color: var(--line); box-shadow: none; } }

.site-footer { background: var(--ground-deep); color: var(--on-ground-muted); padding-block: 2rem calc(2rem + env(safe-area-inset-bottom, 0px)); font-size: 0.9rem; }
.footer-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.6rem 2rem; }
.brand-small .logo { width: 2rem; height: 2rem; }
.brand-small .brand-name { font-size: 1.1rem; color: var(--on-ground); }
.footnote { margin-left: auto; font-size: 0.85rem; }

/* The logo puts itself together: on load in the top bar, and when "Coming soon" scrolls into view. */
.logo-anim .lg-square, .logo-anim .lg-ring, .logo-anim .lg-body, .logo-anim .lg-bar { transform-box: fill-box; transform-origin: center; }
.logo-anim .lg-bar { transform-origin: left center; }
.motion .topbar .logo-anim .lg-square, .motion .logo-big.play .lg-square { animation: lg-pop 0.6s var(--ease-pop) both; }
.motion .topbar .logo-anim .lg-arch, .motion .logo-big.play .lg-arch { stroke-dasharray: 1; animation: lg-draw 0.7s 0.25s ease-out both; }
.motion .topbar .logo-anim .lg-body, .motion .logo-big.play .lg-body { animation: lg-rise 0.55s 0.4s var(--ease-out) both; }
.motion .topbar .logo-anim .lg-ring-1, .motion .logo-big.play .lg-ring-1 { animation: lg-pop 0.5s 0.62s var(--ease-pop) both; }
.motion .topbar .logo-anim .lg-ring-2, .motion .logo-big.play .lg-ring-2 { animation: lg-pop 0.5s 0.78s var(--ease-pop) both; }
.motion .topbar .logo-anim .lg-bar-1, .motion .logo-big.play .lg-bar-1 { animation: lg-grow 0.45s 0.95s var(--ease-out) both; }
.motion .topbar .logo-anim .lg-bar-2, .motion .logo-big.play .lg-bar-2 { animation: lg-grow 0.45s 1.08s var(--ease-out) both; }
.motion.ready .logo-big:not(.play) .lg-ring, .motion.ready .logo-big:not(.play) .lg-body, .motion.ready .logo-big:not(.play) .lg-bar { opacity: 0; }
.motion.ready .logo-big:not(.play) .lg-arch { stroke-dasharray: 1; stroke-dashoffset: 1; }
@keyframes lg-pop { from { transform: scale(0); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes lg-rise { from { transform: translateY(35%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes lg-grow { from { transform: scaleX(0); } to { transform: none; } }

/* On paper, every picture shows as it ends up, whether or not it has scrolled into view. */
@media print {
  .motion.ready [data-inview]:not(.in-view) .ring-fill { stroke-dashoffset: 40; transition: none; }
  .motion.ready [data-inview]:not(.in-view) .shields .shield,
  .motion.ready [data-inview]:not(.in-view) .float-notice,
  .motion.ready [data-inview]:not(.in-view) .lesson,
  .motion.ready [data-inview]:not(.in-view) .fab,
  .motion.ready [data-inview]:not(.in-view) .reports-card,
  .motion.ready [data-inview]:not(.in-view) .rc-chart i, .motion.ready [data-inview]:not(.in-view) .rc-chart em,
  .motion.ready [data-inview]:not(.in-view) .choice { transform: none; opacity: 1; transition: none; }
  .motion.ready .logo-big:not(.play) .lg-ring, .motion.ready .logo-big:not(.play) .lg-body, .motion.ready .logo-big:not(.play) .lg-bar { opacity: 1; }
  .motion.ready .logo-big:not(.play) .lg-arch { stroke-dashoffset: 0; }
}

/* ---------- Narrower screens ---------- */
@media (max-width: 1080px) {
  .trust-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2rem 2.5rem; }
}
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-copy { max-width: 40rem; }
  .feature-grid, .feature-flip .feature-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "visual" "features";
    row-gap: 2rem;
  }
  .feature-flip .feature-grid { grid-template-areas: "head" "visual" "features" "also"; }
  .feature-visual { position: static; }
  .soon-grid { grid-template-columns: minmax(0, 1fr); }
  .soon-rings { right: -24rem; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .soon-chip { margin-left: auto; }
  .stop { grid-template-columns: minmax(0, 1fr); }
  .footnote { margin-left: 0; flex-basis: 100%; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
  .trust-list { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .road { padding-left: 3.6rem; }
  .stop::before { left: calc(-3.6rem + 1.3rem - 0.65rem); }
  .scenes { flex: none; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
  .mini-invite { flex-wrap: wrap; }
  .mini-invite .mini-btn { margin-left: 3.3rem; }
  .tile-text { flex-basis: calc(100% - 4.6rem); }
  .tile-soon { margin-left: 4.6rem; }
  .demo-caption { flex-direction: column; align-items: stretch; }
  .demo-toggle { align-self: flex-start; }
  .brand-name { font-size: 1.25rem; }
  .brand .logo { width: 2.3rem; height: 2.3rem; }
  .app-tile { flex-wrap: wrap; row-gap: 0.5rem; }
}
@media (max-width: 380px) {
  .soon-chip { padding: 0.35rem 0.7rem; font-size: 0.8rem; }
  .brand-name { font-size: 1.15rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .stage *, .stage *::before, .stage *::after { transition-duration: 0.01s !important; animation-duration: 0.01s !important; animation-delay: 0s !important; }
}
