/* focusbridge.app. FocusBridge's house colors (Marc picked "Sea Glass", 2026-10-05): Harbor Teal #0B5A6E
   for the brand (header, buttons), Graphite #1F2630 for ink, Sea Glass #9CC9C2 as the accent (graphite text
   on it, never white) and Fog white #F1F5F4 as the ground. On graphite, logo and links are white or light
   teal #5FB3C6. No school's colors appear here. */
@font-face {
  font-family: 'DM Sans';
  src: url('/fonts/dm-sans.woff2') format('woff2');
  font-weight: 100 1000;
  font-display: swap;
}

:root {
  --green: #0B5A6E;
  --green-2: #084A5B;
  --gold: #9CC9C2;
  --gold-ink: #0B5A6E;
  --graphite: #1F2630;
  --ink: #1F2630;
  --text: #26303B;
  --muted: #4F5A66;
  --bg: #ffffff;
  --ground: #F1F5F4;
  --soft: #EAF1EF;
  --card: #ffffff;
  --line: #D3DEDB;
  --link: #0B5A6E;
  --focus: #b3770a;
  --yes: #1d6b4f;
  --no: #5f6b66;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --ink: #ffffff;
    --text: #E6EBEF;
    --muted: #AEB8C2;
    --bg: #161C24;
    --ground: #1F2630;
    --soft: #1F2630;
    --card: #252E3A;
    --line: #36414F;
    --link: #5FB3C6;
    --focus: #f0c46a;
    --gold-ink: #5FB3C6;
    --yes: #7fd1ad;
    --no: #9aa7a1;
  }
}

* { box-sizing: border-box; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1.0625rem;
  line-height: 1.6;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 40rem) {
  .wrap { padding: 0 32px; }
}

a { color: var(--link); text-underline-offset: 0.15em; }

a:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--bg);
  padding: 8px 12px;
  z-index: 10;
}

.skip:focus { left: 8px; }

.sr { position: absolute; left: -999px; }

h1, h2, h3, h4 {
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.015em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.2rem, 5.5vw, 3.6rem); margin: 0 0 20px; font-weight: 750; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); margin: 0 0 16px; font-weight: 750; }
h3 { font-size: 1.2rem; margin: 0 0 8px; font-weight: 700; }
h4, .tool-record h3 { font-size: 1rem; margin: 24px 0 8px; font-weight: 700; }

.lead { font-size: 1.2rem; color: var(--muted); max-width: 44rem; }

.eyebrow {
  margin: 0 0 12px;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold-ink);
}

/* Buttons */
.button {
  display: inline-block;
  background: var(--green);
  color: #ffffff;
  text-decoration: none;
  font-weight: 700;
  padding: 14px 22px;
  border-radius: 999px;
  border: 2px solid var(--green);
  line-height: 1.2;
}

.button:hover { background: var(--green-2); border-color: var(--green-2); }

.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.button.ghost:hover { border-color: var(--ink); }

.button.light { background: #ffffff; color: var(--green); border-color: #ffffff; }
.button.light:hover { background: var(--ground); border-color: var(--ground); }

.button.ghost-light { background: transparent; color: #ffffff; border-color: rgba(255, 255, 255, 0.5); }
.button.ghost-light:hover { border-color: #ffffff; }

.button.small { padding: 8px 16px; font-size: 0.95rem; }

@media (prefers-color-scheme: dark) {
  .button { background: #ffffff; color: var(--green); border-color: #ffffff; }
  .button:hover { background: var(--ground); color: #ffffff; border-color: #ffffff; }
  .button.ghost { background: transparent; color: #ffffff; border-color: var(--line); }
  .button.ghost:hover { border-color: #ffffff; }
  .button.light:hover { color: #ffffff; }
}

.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 0; }

/* Header */
header.site {
  background: #0B5A6E;
  color: #ffffff;
}
header.site a { color: #ffffff; }
header.site :focus-visible { outline-color: #ffffff; }

.bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  flex-wrap: wrap;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand { color: #ffffff; display: inline-flex; }
/* 58 px tall keeps the company symbol 80 px wide, its minimum (brand/logo/README.md). */
.brand svg { height: 58px; width: auto; display: block; }

nav[aria-label="Site"] { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 20px; }
nav[aria-label="Site"] a:not(.button) { text-decoration: none; font-weight: 500; padding: 8px 0; }
nav[aria-label="Site"] a[aria-current="page"]:not(.button) { text-decoration: underline; text-decoration-thickness: 2px; }
header.site nav[aria-label="Site"] .button { background: #ffffff; color: #0B5A6E; border-color: #ffffff; }
header.site nav[aria-label="Site"] .button:hover { background: #F1F5F4; border-color: #F1F5F4; color: #0B5A6E; }

@media (max-width: 40rem) {
  nav[aria-label="Site"] { gap: 4px 16px; font-size: 0.95rem; }
}

/* Hero */
.hero {
  background: var(--ground);
  padding: 56px 0 64px;
  overflow: hidden;
}

.hero.small { padding: 48px 0 40px; }

.hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}

@media (min-width: 60rem) {
  .hero-grid { grid-template-columns: 1.05fr 1fr; }
}

/* The pictures: a Chromebook page and an iPhone lock screen, in FocusBridge colors */
.art {
  position: relative;
  max-width: 34rem;
  width: 100%;
  margin: 0 auto;
  padding-bottom: 24px;
}

.laptop { width: 76%; }

.screen {
  background: #ffffff;
  border: 10px solid #1b1f1d;
  border-bottom-width: 14px;
  border-radius: 14px 14px 4px 4px;
  overflow: hidden;
  box-shadow: 0 24px 48px rgba(31, 38, 48, 0.18);
}

.browser {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #e9ecea;
  padding: 7px 10px;
}

.browser .dot { width: 8px; height: 8px; border-radius: 50%; background: #c3cac6; }

.browser .url {
  margin-left: 8px;
  flex: 1;
  background: #ffffff;
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 0.7rem;
  color: #4f5d57;
}

.wait {
  background: #F1F5F4;
  color: #1F2630;
  text-align: center;
  padding: 0 16px 22px;
}

.wait p { margin: 0; }

.wait .band-line {
  background: #1F2630;
  color: #ffffff;
  margin: 0 -16px 18px;
  padding: 7px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.wait-title { font-size: clamp(1.25rem, 3.4vw, 1.7rem); font-weight: 750; letter-spacing: -0.01em; }
.wait-sub { font-size: 0.85rem; color: #4f5d57; margin-top: 4px; }
.wait-time { font-size: 1.05rem; font-weight: 700; margin: 10px 0 12px; font-variant-numeric: tabular-nums; }

.wait .back {
  display: inline-block;
  background: #1F2630;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 6px 12px;
  border-radius: 999px;
}

.base {
  height: 12px;
  margin: 0 -6%;
  background: linear-gradient(#c9cecb, #9ea5a1);
  border-radius: 0 0 14px 14px;
}

.phone {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 34%;
  min-width: 140px;
  aspect-ratio: 9 / 18.5;
  background: #1F2630;
  color: #ffffff;
  border: 7px solid #1b1f1d;
  border-radius: 28px;
  box-shadow: 0 24px 48px rgba(31, 38, 48, 0.28);
  text-align: center;
  padding: 26px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.phone p { margin: 0; line-height: 1.25; }

.phone .notch {
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 34%;
  height: 12px;
  background: #1b1f1d;
  border-radius: 999px;
}

.phone .org { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.85; }
.phone .mascot { font-size: 0.95rem; font-weight: 750; margin-top: 2px; }
.phone .count { font-size: 2rem; font-weight: 750; margin-top: 12px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.phone .course { font-size: 0.72rem; opacity: 0.85; }
.phone .can-wait { margin-top: 14px; font-size: 0.8rem; font-weight: 700; background: rgba(255, 255, 255, 0.12); padding: 5px 9px; border-radius: 999px; }
.phone .tonight { margin-top: 10px; font-size: 0.68rem; color: #9CC9C2; }
.phone .by { position: absolute; bottom: 12px; left: 0; right: 0; font-size: 0.6rem; opacity: 0.7; }

/* On a phone the iPhone sits below the Chromebook's corner, so neither hides the other. */
@media (max-width: 40rem) {
  .art { padding-bottom: 0; }
  .laptop { width: 100%; }
  .phone { position: relative; width: 150px; min-width: 0; margin: -48px 8px 0 auto; }
}

/* Audience strip */
.audiences { border-bottom: 1px solid var(--line); }

.aud-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
}

.aud-grid a {
  display: grid;
  gap: 2px;
  padding: 20px 4px;
  text-decoration: none;
  border-bottom: 1px solid var(--line);
}

.aud-grid a:last-child { border-bottom: 0; }

@media (min-width: 46rem) {
  .aud-grid a { border-bottom: 0; padding: 22px 20px; border-left: 1px solid var(--line); }
  .aud-grid a:first-child { border-left: 0; padding-left: 0; }
}

.aud-grid strong { color: var(--ink); font-size: 1.05rem; }
.aud-grid strong::after { content: ' →'; color: var(--gold-ink); }
.aud-grid span { color: var(--muted); font-size: 0.95rem; }
.aud-grid a:hover strong { text-decoration: underline; }

/* How it works */
.how { padding-bottom: 24px; }

.how-grid {
  display: grid;
  gap: 40px;
  align-items: start;
  margin-top: 32px;
}

@media (min-width: 60rem) {
  .how-grid { grid-template-columns: 1.3fr 1fr; }
}

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; gap: 28px; }

.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 60px;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: -2px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ground);
  color: var(--ink);
  border: 2px solid var(--gold);
  font-weight: 750;
  display: grid;
  place-items: center;
}

.steps p { margin: 0; color: var(--muted); }

.report {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(31, 38, 48, 0.1);
  font-size: 0.95rem;
}

.report p { margin: 0; }
.report-head { font-weight: 700; color: var(--ink); padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.report ul { list-style: none; padding: 0; margin: 0; }

.report li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.report .ok { color: var(--yes); font-weight: 600; }
.report .note { color: var(--gold-ink); font-weight: 600; }
.report .miss { color: var(--muted); font-weight: 600; }
.report-foot { padding-top: 12px; color: var(--muted); font-size: 0.85rem; }

/* How we're different */
.different {
  background: var(--graphite);
  color: #E6EBEF;
  margin-top: 72px;
  padding: 72px 0;
}

.different h2, .different h3 { color: #ffffff; }
.different .eyebrow { color: #5FB3C6; }
.different .lead { color: #C5CFD8; }

.diff {
  list-style: none;
  padding: 0;
  margin: 40px 0 0;
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(16rem, 1fr));
}
@media (min-width: 900px) {
  .diff { grid-template-columns: repeat(3, 1fr); }
}

.diff li {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  padding: 22px;
}

.diff .num { display: block; color: #9CC9C2; font-weight: 750; font-size: 0.9rem; margin-bottom: 8px; }
.diff p { margin: 0; color: #C5CFD8; font-size: 0.98rem; }

.compare {
  margin-top: 40px;
  background: #ffffff;
  color: #1f2a26;
  border-radius: 16px;
  padding: 8px 20px 12px;
  overflow-x: auto;
}

.compare table { min-width: 0; }
.compare caption { text-align: left; color: #4f5d57; font-size: 0.9rem; padding: 14px 0 6px; }
.compare th, .compare td { border-bottom: 1px solid #d7dfdb; padding: 12px 12px 12px 0; vertical-align: middle; }
.compare thead th { color: #1F2630; font-size: 0.9rem; }
.compare tbody th { color: #1F2630; font-weight: 500; }
.compare tr:last-child th, .compare tr:last-child td { border-bottom: 0; }
.compare .us { background: #E1EFEC; padding-left: 12px; }

.cell { font-weight: 700; font-size: 0.92rem; white-space: nowrap; }
.cell.yes { color: #1d6b4f; }
.cell.yes::before { content: '✓ '; }
.cell.no { color: #5f6b66; font-weight: 500; }
.cell.some { color: #6f6232; font-weight: 500; }

@media (max-width: 40rem) {
  .compare thead { position: absolute; left: -999px; }
  .compare tr { display: block; padding: 12px 0; border-bottom: 1px solid #d7dfdb; }
  .compare tr:last-child { border-bottom: 0; }
  .compare th, .compare td { display: flex; justify-content: space-between; gap: 12px; border: 0; padding: 3px 0; }
  .compare tbody th { font-weight: 700; padding-bottom: 6px; }
  .compare td::before { content: attr(data-label); color: #4f5d57; font-size: 0.9rem; }
  .compare .us { padding: 4px 8px; border-radius: 8px; }
}

/* The tools */
.tools {
  list-style: none;
  padding: 0;
  margin: 32px 0 0;
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
}

section.wrap > .eyebrow:first-child { margin-top: 72px; }

.tool {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.tool-mark { color: var(--ink); height: 64px; margin-bottom: 12px; }
.tool-mark svg { height: 64px; width: auto; display: block; }
.tool h2, .tool h3 { font-size: 1.35rem; margin-bottom: 2px; }
.tool h2 .by, .tool h3 .by { display: block; font-size: 0.8rem; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.tool .for { color: var(--ink); margin: 12px 0 0; font-weight: 700; }
.tool .where { color: var(--muted); margin: 0 0 4px; font-size: 0.92rem; }
.tool p:last-child { margin-top: auto; padding-top: 8px; margin-bottom: 0; }
.more { font-weight: 700; }
.more::after { content: ' →'; }

/* Join band */
.join {
  background: var(--graphite);
  color: #E6EBEF;
  margin-top: 72px;
  padding: 56px 0;
}

.join h2 { color: #ffffff; }
.join p { margin: 0; max-width: 40rem; color: #C5CFD8; }

.join-grid { display: grid; gap: 8px 40px; align-items: center; }

@media (min-width: 52rem) {
  .join-grid { grid-template-columns: 1.4fr 1fr; }
  .join .ctas { justify-content: flex-end; margin: 0; }
}

@media (prefers-color-scheme: dark) {
  .join, .different { background: #1F2630; }
  .join .button.light { color: #0B5A6E; }
}

.founder { padding-top: 56px; }
.founder h2 { font-size: 1.5rem; }
.founder p { color: var(--muted); max-width: 48rem; }

/* Join the pilot page */
.jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }

.jump a {
  text-decoration: none;
  font-weight: 600;
  padding: 8px 14px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg);
}

.jump a:hover { border-color: var(--ink); }

.paths { display: grid; gap: 24px; padding-top: 40px; }

.path {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 28px 24px;
  scroll-margin-top: 16px;
}

.path h2 { margin-bottom: 4px; }
.path .for { margin-top: 0; color: var(--muted); }
.path h3 { font-size: 1rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--gold-ink); margin-top: 16px; }
.path ul, .path ol { padding-left: 20px; margin: 0 0 8px; }
.path li { margin-bottom: 6px; }
.path .button { margin-top: 12px; }
.path.quiet { background: var(--soft); }

.path-grid { display: grid; gap: 0 40px; }

@media (min-width: 52rem) {
  .path-grid { grid-template-columns: 1.2fr 1fr; }
}

/* Privacy and help */
.prose { max-width: 48rem; padding-top: 40px; padding-bottom: 24px; }
.prose h2 { font-size: 1.6rem; margin-top: 48px; }
.updated { color: var(--muted); }
.toc { display: flex; flex-wrap: wrap; gap: 8px 20px; padding: 0; list-style: none; }

.table { overflow-x: auto; }

table {
  border-collapse: collapse;
  width: 100%;
  font-size: 0.975rem;
}

th, td {
  text-align: left;
  vertical-align: top;
  padding: 10px 12px 10px 0;
  border-bottom: 1px solid var(--line);
}

th { color: var(--ink); font-weight: 700; }

/* On a phone each kept item reads as a short block: what, then where and how long. */
@media (max-width: 40rem) {
  .table table, .table tbody, .table tr, .table td { display: block; width: 100%; }
  .table thead { position: absolute; left: -999px; }
  .table tr { padding: 12px 0; border-bottom: 1px solid var(--line); }
  .table td { border: 0; padding: 2px 0; }
  .table td:first-child { color: var(--ink); font-weight: 500; padding-bottom: 4px; }
  .table td[data-label]::before { content: attr(data-label) ": "; color: var(--muted); }
}

/* Footer */
footer.site {
  border-top: 1px solid var(--line);
  margin-top: 72px;
  padding: 32px 0 48px;
  color: var(--muted);
  font-size: 0.95rem;
}

.foot { display: grid; gap: 16px 40px; }

@media (min-width: 46rem) {
  .foot { grid-template-columns: 1.4fr 1fr; }
}

.foot p { margin: 0 0 6px; }
.foot-brand { color: var(--ink); font-weight: 750; font-size: 1.1rem; }
footer nav { display: flex; flex-direction: column; gap: 6px; }

/* Pilot sign-up form */
.signup { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--line); }
.fields { display: grid; gap: 0 20px; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); }
.field { margin: 0 0 14px; display: grid; gap: 4px; }
.field label { font-weight: 600; color: var(--ink); font-size: 0.95rem; }

.field input, .field textarea {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  width: 100%;
}

.field input:focus-visible, .field textarea:focus-visible, button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.hp { position: absolute; left: -9999px; }
.form-note { color: var(--muted); font-size: 0.9rem; margin: 0 0 8px; }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 0; }
.form-actions .button { margin-top: 4px; font: inherit; font-weight: 700; cursor: pointer; }
.email-instead { font-size: 0.95rem; }

/* Want more focus? device guides */
.device {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 24px;
  scroll-margin-top: 16px;
}

.device h2 { font-size: 1.5rem; margin-bottom: 4px; }
.device .for { margin-top: 0; color: var(--muted); }
.device ol { padding-left: 22px; margin: 0 0 8px; }
.device li { margin-bottom: 6px; }
.device-note { color: var(--muted); font-size: 0.95rem; border-left: 3px solid var(--gold); padding-left: 12px; }

/* Research page */
.rule .num { margin: 0 0 4px; color: var(--gold-ink); font-weight: 750; font-size: 0.9rem; }
.rule-text { font-size: 1.05rem; }
.rule ul { padding-left: 1.2em; }
.rule li { margin-bottom: 8px; }
.sources ol { padding-left: 1.2em; }
.sources li { margin-bottom: 10px; overflow-wrap: anywhere; }
.research-line { margin: 28px 0 0; color: #C5CFD8; }
.research-line strong { color: #ffffff; }
.research-line a { color: #5FB3C6; }
.device .ours { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }

/* Instructor kit */
.kit { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(13rem, 1fr)); }
.kit li { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; background: var(--soft); }
.kit .num { margin: 0 0 4px; color: var(--gold-ink); font-weight: 750; font-size: 0.9rem; }
.kit h3 { margin: 0 0 6px; }
.kit li p:last-child { margin: 0; }
.handout-steps li { margin-bottom: 8px; }
@media print {
  header.site, footer.site, .skip { display: none; }
  .handout .device { break-inside: avoid; }
}
.hero .kit-when { color: var(--text); margin-top: 18px; }
.hero .kit-when strong { color: var(--ink); }
.hero .kit-when a { color: var(--gold-ink); }

/* Lively touches, all CSS (the site runs no scripts). Everything here stops under reduced motion. */

/* The hero's "can wait" words take turns: YouTube, TikTok, Netflix. */
.cycle { display: inline-grid; }
.cycle > span { grid-area: 1 / 1; opacity: 0; animation: cycle-word 9s infinite; }
.cycle > span:nth-child(2) { animation-delay: 3s; }
.cycle > span:nth-child(3) { animation-delay: 6s; }
@keyframes cycle-word {
  0% { opacity: 0; transform: translateY(6px); }
  4%, 30% { opacity: 1; transform: none; }
  34%, 100% { opacity: 0; transform: translateY(-6px); }
}

/* The countdowns tick: the seconds run 59 to 00 each minute. */
@property --s { syntax: '<integer>'; initial-value: 0; inherits: false; }
.tick { counter-reset: s var(--s); animation: tick 60s steps(60) infinite; }
.tick::after { content: counter(s, decimal-leading-zero); }
@keyframes tick { from { --s: 59; } to { --s: -1; } }

.wait .progress {
  display: block;
  height: 6px;
  margin: 0 auto 14px;
  max-width: 70%;
  background: rgba(31, 38, 48, 0.12);
  border-radius: 999px;
  overflow: hidden;
}
.wait .progress span { display: block; height: 100%; width: 40%; background: #1F2630; border-radius: inherit; animation: bar-fill 60s linear infinite; }
@keyframes bar-fill { from { width: 38%; } to { width: 42%; } }

.phone { animation: phone-float 6s ease-in-out infinite; }
@keyframes phone-float { 50% { translate: 0 -8px; } }

/* "See it from your side": radio tabs. */
.sides { padding: 64px 0; background: var(--bg); }
.side-radio { position: absolute; opacity: 0; pointer-events: none; }
.side-labels { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 24px; }
.side-labels label {
  cursor: pointer;
  padding: 9px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-weight: 700;
  color: var(--ink);
  background: var(--card);
  transition: background 0.2s, color 0.2s, transform 0.2s;
}
.side-labels label:hover { transform: translateY(-2px); border-color: var(--gold); }
.side-panel { display: none; background: var(--soft); border-radius: 18px; padding: 24px; border-left: 6px solid var(--gold); }
.side-panel h3 { margin-top: 0; color: var(--ink); font-size: 1.35rem; }
.side-panel ol { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.side-panel li::marker { color: var(--gold-ink); font-weight: 750; }
#side-teacher:checked ~ .side-panels .panel-teacher,
#side-parent:checked ~ .side-panels .panel-parent,
#side-student:checked ~ .side-panels .panel-student,
#side-college:checked ~ .side-panels .panel-college { display: block; animation: panel-in 0.35s ease-out; }
#side-teacher:checked ~ .side-labels label[for='side-teacher'],
#side-parent:checked ~ .side-labels label[for='side-parent'],
#side-student:checked ~ .side-labels label[for='side-student'],
#side-college:checked ~ .side-labels label[for='side-college'] { background: #0B5A6E; color: #ffffff; border-color: #0B5A6E; }
#side-teacher:focus-visible ~ .side-labels label[for='side-teacher'],
#side-parent:focus-visible ~ .side-labels label[for='side-parent'],
#side-student:focus-visible ~ .side-labels label[for='side-student'],
#side-college:focus-visible ~ .side-labels label[for='side-college'] { outline: 3px solid var(--focus); outline-offset: 2px; }
@keyframes panel-in { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-color-scheme: dark) {
  #side-teacher:checked ~ .side-labels label[for='side-teacher'],
  #side-parent:checked ~ .side-labels label[for='side-parent'],
  #side-student:checked ~ .side-labels label[for='side-student'],
  #side-college:checked ~ .side-labels label[for='side-college'] { background: #9CC9C2; color: #1F2630; border-color: #9CC9C2; }
}

/* Four calm nights: the bars fill one night after another, then start over. */
.nights { padding: 64px 0; background: var(--ground); }
.nights-grid { display: grid; gap: 32px; align-items: center; }
@media (min-width: 60rem) { .nights-grid { grid-template-columns: 1fr 1fr; } }
.nights h2 { color: var(--ink); }
.night-row { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.night-row li { display: grid; grid-template-columns: 3rem 1fr 8rem; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.night-row .label { font-weight: 500; font-size: 0.9rem; color: var(--muted); }
.night-row .fill { height: 14px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); overflow: hidden; }
.night-row .fill span { display: block; height: 100%; width: 100%; background: linear-gradient(90deg, #0B5A6E, #3E8C9B); border-radius: inherit; transform-origin: left; animation: night-fill 10s ease-in-out infinite; }
.night-row li:nth-child(2) .fill span { animation-delay: 0.6s; }
.night-row li:nth-child(3) .fill span { animation-delay: 1.2s; }
.night-row li:nth-child(4) .fill span { animation-delay: 1.8s; }
@keyframes night-fill {
  0%, 5% { transform: scaleX(0); }
  25%, 85% { transform: scaleX(1); }
  100% { transform: scaleX(0); }
}
@media (prefers-color-scheme: dark) {
  .night-row .fill span { background: linear-gradient(90deg, #5FB3C6, #9CC9C2); }
}
.night-row .test { grid-template-columns: 3rem 1fr; }
.night-row .test .label { font-weight: 750; color: var(--gold-ink); font-size: 1rem; }

/* Cards lift a little under the pointer. */
.diff li, .tool { transition: transform 0.2s ease, box-shadow 0.2s ease; }
.diff li:hover, .tool:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(31, 38, 48, 0.14); }

/* Sections rise into view as you scroll, where the browser can do it without a script. */
@supports (animation-timeline: view()) {
  .sides .wrap, .nights-grid > *, .diff li, .tool {
    animation: rise linear both;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
}
@keyframes rise { from { opacity: 0; transform: translateY(28px); } }

@media (prefers-reduced-motion: reduce) {
  .cycle > span, .tick, .wait .progress span, .phone, .night-row .fill span, .side-panel,
  .sides .wrap, .nights-grid > *, .diff li, .tool { animation: none !important; }
  .cycle > span { opacity: 0; }
  .cycle > span:first-child { opacity: 1; }
  .tick { --s: 24; }
  .diff li:hover, .tool:hover, .side-labels label:hover { transform: none; }
}

/* Focus session counts under the hero, filled in on Netlify by the focus-tally edge function. */
.tally { background: #1F2630; color: #ffffff; padding: 14px 0; }
.tally ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px 36px; justify-content: center; }
.tally li { font-size: 1rem; color: #C5CFD8; }
.tally strong { color: #ffffff; font-size: 1.25rem; font-weight: 750; font-variant-numeric: tabular-nums; margin-right: 4px; }
.device.own h3 { font-size: 1.1rem; margin: 18px 0 6px; color: var(--ink); }

/* Tool pages: School, Home and College */
.tools.solo { margin: 0; grid-template-columns: minmax(0, 24rem); justify-content: center; }
.facts { list-style: none; padding: 0; margin: 20px 0 8px; display: grid; gap: 12px; max-width: 46rem; }
.facts li { background: var(--soft); border-left: 5px solid var(--gold); border-radius: 12px; padding: 14px 18px; }
.around { padding-bottom: 8px; }
.around-links { display: flex; flex-wrap: wrap; gap: 12px 28px; margin: 0 0 40px; }
.around-links a { text-decoration: none; }
.around-links strong { color: var(--ink); }
.around-links strong::after { content: ' →'; color: var(--gold-ink); }
.around-links span { color: var(--muted); }
.around-links a:hover strong { text-decoration: underline; }
.doors { padding-bottom: 8px; }

/* College page: phone picture and the four lines */
.phone-shot { margin: 0 auto; width: min(240px, 70%); border: 6px solid #17262b; border-bottom: 0; border-radius: 28px 28px 0 0; overflow: hidden; background: #fff; }
.phone-shot img { display: block; width: 100%; height: auto; }
.store-soon { display: inline-block; margin: 0 4px 8px 0; font-weight: 700; padding: 12px 20px; border-radius: 999px; background: var(--ink); color: #ffffff; }
.lines { list-style: none; padding: 0; margin: 40px 0 8px; display: grid; gap: 0; max-width: 40rem; }
.lines li { display: flex; gap: 16px; align-items: center; padding: 16px 0; border-top: 1px solid var(--line); font-size: 1.1rem; color: var(--ink); }
.lines li:first-child { border-top: 0; }
.lines svg { flex: none; width: 26px; height: 26px; stroke: var(--link); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.day { padding-top: 24px; padding-bottom: 8px; }
.day-steps { list-style: none; padding: 0; margin: 20px 0 28px; max-width: 40rem; border-left: 2px solid var(--line); }
.day-steps li { display: flex; gap: 20px; padding: 14px 0 14px 20px; position: relative; color: var(--ink); }
.day-steps li::before { content: ""; position: absolute; left: -6px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--link); }
.day-steps .when { flex: none; width: 6.5rem; font-weight: 700; color: var(--link); font-variant-numeric: tabular-nums; }
.shots { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.shots .phone-shot { width: 100%; }
.shots p { margin: 12px 4px 0; color: var(--muted); font-size: 0.95rem; text-align: center; }
@media (max-width: 640px) { .shots { grid-template-columns: 1fr; max-width: 260px; margin-left: auto; margin-right: auto; gap: 28px; } }
.beats { list-style: none; padding: 0; margin: 28px 0 8px; display: grid; gap: 56px; }
.beat { display: grid; grid-template-columns: 1fr minmax(180px, 260px); gap: 40px; align-items: center; max-width: 52rem; }
.beat:nth-child(even) { grid-template-columns: minmax(180px, 260px) 1fr; }
.beat:nth-child(even) .phone-shot { order: -1; }
.beat .phone-shot { width: 100%; }
.beat .when { font-weight: 700; color: var(--link); font-size: 0.95rem; }
.beat h3 { margin: 6px 0 8px; font-size: 1.5rem; }
.beat p { margin: 0; color: var(--muted); font-size: 1.05rem; }
.beat-end { margin: 36px 0 20px; font-size: 1.1rem; max-width: 40rem; }
@media (max-width: 720px) { .beat, .beat:nth-child(even) { grid-template-columns: 1fr; gap: 20px; } .beat:nth-child(even) .phone-shot { order: 0; } .beat .phone-shot { max-width: 240px; margin: 0 auto; } }
.lines-note { color: var(--muted); font-size: 0.95rem; max-width: 40rem; margin: 12px 0 32px; }
@media (prefers-color-scheme: dark) { .store-soon { background: #ffffff; color: #1F2630; } }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: start; }
.pair .phone-shot { width: 100%; }
.beat:has(.pair), .beat:nth-child(even):has(.pair) { grid-template-columns: 1fr minmax(260px, 420px); }
.beat:nth-child(even):has(.pair) { grid-template-columns: minmax(260px, 420px) 1fr; }
@media (max-width: 720px) { .beat:has(.pair), .beat:nth-child(even):has(.pair) { grid-template-columns: 1fr; } .beat .pair { max-width: 340px; margin: 0 auto; } }
.try { padding: 24px 16px 40px; }
.try-phone { position: relative; width: 340px; height: 700px; margin: 0 auto; border: 9px solid #17262b; border-radius: 46px; background: #fff; overflow: hidden; box-shadow: 0 14px 40px rgba(23, 38, 43, 0.22); }
.try-step { scroll-margin-top: 96px; position: absolute; inset: 0; display: none; flex-direction: column; background: #fff; }
.try-phone:not(:has(:target)) #start, .try-step:target, .try-step:has(:target) { display: flex; }
.try-strip { flex: 1; min-height: 0; display: flex; background: #d9f2ef; }
.try-slide { flex: 0 0 100%; min-width: 0; display: flex; flex-direction: column; overflow: hidden; }
.try-body { flex: 1; min-height: 0; overflow-y: auto; }
.try-multi { overflow-x: auto; scroll-snap-type: x mandatory; gap: 10px; padding: 0 6%; scrollbar-width: none; }
.try-multi .try-slide { flex: 0 0 88%; scroll-snap-align: center; border-radius: 14px; background: #d9f2ef; box-shadow: 0 2px 10px rgba(23, 38, 43, 0.15); }
.try-slide img { display: block; width: 100%; height: auto; }
.try-slidehead { flex: none; margin: 0; padding: 8px 12px; background: #fff; font-size: 0.8rem; line-height: 1.3; color: var(--muted); border-bottom: 1px solid var(--line); }
.try-slidehead strong { display: block; color: var(--link); }
.try-sheet { flex: none; padding: 14px 18px 18px; background: #fff; border-top: 1px solid var(--line); box-shadow: 0 -6px 16px rgba(23, 38, 43, 0.08); }
.try-sheet .when { margin: 0; font-weight: 700; color: var(--link); font-size: 0.85rem; }
.try-sheet h2 { margin: 2px 0 4px; font-size: 1.2rem; }
.try-sheet p { margin: 0 0 10px; color: var(--muted); font-size: 0.95rem; }
.try-btns { display: flex; justify-content: space-between; gap: 10px; margin: 0 !important; }
.try-btns .button { padding: 10px 22px; }
.try-intro { padding: 36px 24px; overflow-y: auto; }
.try-intro h1, .try-intro .try-title { font-size: 1.9rem; margin: 6px 0 12px; }
.try-intro h2 { font-size: 1.6rem; margin: 6px 0 12px; }
.try-intro p { color: var(--muted); }
.try-intro .button { margin: 2px 4px 6px 0; }
.try-note { font-size: 0.85rem; }
@media (max-width: 720px) {
  .try { padding: 0; }
  .try-phone { position: fixed; inset: 0; z-index: 30; width: auto; height: auto; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
}
.try-h2 { font-size: 1.15rem !important; margin: 18px 0 6px !important; }
.try-list { margin: 0 0 16px; padding-left: 1.1rem; color: var(--muted); font-size: 0.95rem; }
.try-list li { margin: 4px 0; }
.try-phone .try-intro { padding: 24px 22px; }
.try-phone #start .try-intro .try-title { font-size: 1.45rem; margin: 4px 0 8px; }
.try-phone #start .try-intro p { font-size: 0.95rem; margin: 0 0 8px; }
.try-phone #start .try-list { font-size: 0.85rem; margin-bottom: 12px; }
.try-phone #start .try-list li { margin: 2px 0; }
.try-phone #start .try-list { list-style: none; padding-left: 0; }
.try-phone #start .try-list li { position: relative; padding-left: 1.5rem; margin: 6px 0; }
.try-phone #start .try-list li::before { content: ""; position: absolute; left: 2px; top: 0.3em; width: 0.5em; height: 0.85em; border-right: 2px solid var(--link); border-bottom: 2px solid var(--link); transform: rotate(45deg); }
.try-pic { position: relative; }
.try-tap { position: absolute; left: 5%; top: 17.5%; width: 90%; height: 36.5%; border-radius: 16px; cursor: pointer; }
.try-tap.move { left: 3%; top: 88.5%; width: 94%; height: 7%; border-radius: 22px; }
.try-ring.move { left: 3%; top: 89%; width: 94%; height: 6%; border-radius: 22px; border-color: #fff; }
.try-ring { position: absolute; left: 8%; top: 18%; width: 16%; height: 7.5%; border-radius: 18px; border: 3px solid #fff; box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.7); animation: try-pulse 1.6s infinite; pointer-events: none; }
@keyframes try-pulse { 70% { box-shadow: 0 0 0 14px rgba(255, 255, 255, 0); } 100% { box-shadow: 0 0 0 0 rgba(255, 255, 255, 0); } }
@media (prefers-reduced-motion: reduce) { .try-ring { animation: none; } }
.try-logo { display: block; width: 200px; height: auto; margin: 0 0 14px; }
.try-body.try-bottom { display: flex; flex-direction: column-reverse; }
.try-body.try-bottom > .try-pic { flex: none; }
.try-pop.move { left: 50%; top: 88.5%; transform: translate(-50%, calc(-100% - 10px)); }
.try-pop { position: absolute; z-index: 2; left: 8%; top: 17.5%; transform: translateY(calc(-100% - 10px)); max-width: 72%; background: #16302f; color: #fff; font-weight: 600; font-size: 0.85rem; line-height: 1.25; padding: 8px 12px; border-radius: 12px; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); }
.try-dots { display: flex; gap: 2px; margin: 0 0 8px !important; }
.try-dots i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.try-dots i.on { background: var(--link); }
.try-slidehead { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.try-slidehead strong { display: inline; }
.try-slidehead span { flex: none; font-size: 0.75rem; }
.try-sheet h2 { font-size: 1.55rem; line-height: 1.12; letter-spacing: -0.01em; margin: 2px 0 6px; }
.try-sheet p { font-size: 0.95rem; line-height: 1.4; }
.try-sheet .when { letter-spacing: 0.06em; }
.try-step { animation: try-in 0.45s ease both; }
.try-sheet { animation: try-up 0.55s 0.08s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.try-rowdots { flex: none; display: flex; justify-content: center; gap: 6px; margin: 0; padding: 7px 0 8px; background: #d9f2ef; }
.try-rowdots i { width: 7px; height: 7px; border-radius: 50%; background: rgba(11, 90, 110, 0.28); transition: width 0.25s, background 0.25s; }
.try-rowdots i.on { width: 20px; border-radius: 4px; background: var(--link); }
.try-hint { position: absolute; z-index: 3; right: 12px; top: 50%; padding: 8px 12px; border-radius: 20px; background: #16302f; color: #fff; font-size: 0.8rem; font-weight: 600; pointer-events: none; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25); animation: try-nudge 1.4s ease-in-out infinite; transition: opacity 0.3s; }
.try-step.moved .try-hint { opacity: 0; animation: none; }
.try-tap.hit + .try-ring { animation: none; box-shadow: 0 0 0 18px rgba(255, 255, 255, 0.5); transition: box-shadow 0.25s; }
.try-step { position: absolute; }
@keyframes try-in { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes try-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes try-nudge { 50% { transform: translateX(-8px); } }
@media (min-width: 721px) { .try { background: radial-gradient(60% 55% at 50% 45%, #d9f2ef 0%, transparent 70%); } .try-phone { box-shadow: 0 30px 70px rgba(23, 38, 43, 0.3), 0 0 0 2px #2b4047; } }
@media (prefers-reduced-motion: reduce) { .try-step, .try-sheet, .try-hint { animation: none; } .try-rowdots i { transition: none; } }
.try-pop.apps { top: 38.5%; transform: none; }
.try-body:focus-visible, .try-strip:focus-visible { outline: 3px solid var(--link); outline-offset: -3px; }
.reel { padding-top: 28px; padding-bottom: 48px; max-width: 860px; }
.reel h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); line-height: 1.12; margin: 4px 0 18px; }
.reel video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #0b3c45; border-radius: 14px; box-shadow: 0 14px 40px rgba(23, 38, 43, 0.22); }
.reel video:focus-visible { outline: 3px solid var(--link); outline-offset: 3px; }
.reel-h { font-size: 1.15rem; margin: 22px 0 6px; }
.reel-list { padding-left: 1.3rem; color: var(--muted); }
.reel-list li { margin: 6px 0; }
.compare:focus-visible { outline: 3px solid var(--link); outline-offset: 2px; }
