/* WatchFluent para professores — landing page
   Same palette and type as the app, so the demo feels like the same product.
   The one loud element is the teacher's own name, shown in the app's "caption" yellow. */

:root {
  --bg: #FFFFFF;
  --paper: #F6F7F9;
  --surface: #FFFFFF;
  --line: #E2E5EB;
  --line-strong: #C9CED8;

  --ink: #12151C;
  --ink-2: #4E5566;
  --ink-3: #6B7385;

  --primary: #2E4BD8;
  --primary-hover: #2239B5;
  --primary-tint: #EBEFFD;

  --caption: #FFD84A;
  --screen: #1A1D24;

  --good: #0E7C55;
  --good-tint: #E7F6EF;
  --warn: #8A4D00;
  --warn-tint: #FFF4DE;
  --bad: #C2302A;
  --bad-tint: #FDECEB;

  --font-display: 'Bricolage Grotesque', 'Figtree', system-ui, sans-serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --wrap: 1160px;
  --gutter: 20px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --shadow-lg: 0 30px 60px -24px rgba(18, 21, 28, 0.28), 0 8px 20px -8px rgba(18, 21, 28, 0.12);
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
a { color: var(--primary); }

h1, h2, h3 {
  font-family: var(--font-display);
  font-optical-sizing: auto;
  line-height: 1.08;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

h2 { font-size: clamp(1.9rem, 4.2vw, 2.9rem); font-weight: 700; letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { text-wrap: pretty; }

:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 3px;
  border-radius: 6px;
}

.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  background: var(--ink);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ─── Buttons ───────────────────────────────────────────── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border: 0;
  border-radius: 12px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s var(--ease), transform 0.15s var(--ease);
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); }
.btn-primary[disabled] { opacity: 0.7; cursor: progress; }

.btn-secondary { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.btn-secondary:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 0.95rem; border-radius: 10px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 1.06rem; }
.btn-block { width: 100%; }

.fine { font-size: 0.9rem; color: var(--ink-3); }
.center { text-align: center; }

/* ─── Top bar ───────────────────────────────────────────── */

.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s;
}
.topbar.scrolled { border-bottom-color: var(--line); }

.topbar-row {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  text-decoration: none;
  margin-right: auto;
}
.brand-mark { width: 28px; height: 28px; }
.brand-name { font-family: var(--font-display); font-weight: 700; font-size: 1.12rem; letter-spacing: -0.02em; }
.brand-for { color: var(--ink-3); font-size: 0.92rem; }

.topnav { display: flex; gap: 26px; }
.topnav a {
  color: var(--ink-2);
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
}
.topnav a:hover { color: var(--ink); }

/* ─── Hero ──────────────────────────────────────────────── */

.hero { padding: 56px 0 88px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  background: var(--good-tint);
  color: var(--good);
  font-size: 0.88rem;
  font-weight: 700;
}
.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  box-shadow: 0 0 0 4px rgba(14, 124, 85, 0.18);
}

.hero h1 {
  margin: 22px 0 20px;
  font-size: clamp(2.45rem, 5.6vw, 4.3rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}

.lead {
  max-width: 34em;
  font-size: 1.15rem;
  color: var(--ink-2);
}

/* The name → URL moment */
.namer {
  margin: 32px 0 28px;
  max-width: 440px;
}
.namer label {
  display: block;
  margin-bottom: 8px;
  font-weight: 700;
  font-size: 0.98rem;
}
.namer-field input {
  width: 100%;
  height: 56px;
  padding: 0 18px;
  border: 2px solid var(--line-strong);
  border-radius: 14px;
  background: var(--surface);
  font-size: 1.12rem;
  font-weight: 600;
  transition: border-color 0.15s;
}
.namer-field input::placeholder { color: var(--ink-3); font-weight: 500; }
.namer-field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); }

.namer-url {
  margin-top: 12px;
  color: var(--ink-2);
  font-size: 0.98rem;
  overflow-wrap: anywhere;
}
.url { font-weight: 700; color: var(--ink); }
.url-slug {
  background: var(--caption);
  padding: 1px 6px;
  border-radius: 4px;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
}
.url-slug.pop { animation: pop 0.35s var(--ease); }
@keyframes pop { 40% { background: #FFE88A; transform: scale(1.04); } }

.hero-actions { display: grid; gap: 12px; justify-items: start; }
.hero-buttons { display: flex; flex-wrap: wrap; gap: 12px; }

/* "Try it" links into the public demo */
.demo-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 24px;
  font-weight: 700;
  font-size: 1.02rem;
  color: var(--primary);
  text-decoration: none;
}
.demo-inline svg { transition: transform 0.15s var(--ease); }
.demo-inline:hover { color: var(--primary-hover); text-decoration: underline; text-underline-offset: 4px; }
.demo-inline:hover svg { transform: translateX(3px); }

/* Phone mockup */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 8px 0 28px 40px;
}

.phone {
  width: 312px;
  padding: 11px;
  border-radius: 46px;
  background: #1B1E26;
  box-shadow: var(--shadow-lg), inset 0 0 0 2px #2C303B;
  transform: rotate(2deg);
}
.phone-screen {
  border-radius: 36px;
  overflow: hidden;
  background: var(--paper);
  padding: 12px 14px 18px;
  display: grid;
  gap: 10px;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 2px 10px 0;
  font-size: 0.72rem;
  font-weight: 700;
}
.status-icons { display: flex; gap: 3px; align-items: center; }
.status-icons i { width: 13px; height: 7px; border-radius: 2px; background: var(--ink); opacity: 0.85; }
.status-icons i:nth-child(1) { width: 10px; }
.status-icons i:nth-child(3) { width: 17px; }

.phone-url {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 7px 10px;
  border-radius: 10px;
  background: #E7E9EE;
  color: var(--ink-2);
  font-size: 0.74rem;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
}
.phone-url > span { overflow: hidden; text-overflow: ellipsis; }

.app-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 2px;
}
.app-head > span:last-child { display: grid; line-height: 1.2; min-width: 0; }
.app-avatar {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--caption);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 0.95rem;
}
.app-teacher {
  font-family: var(--font-display);
  font-size: 1.08rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.app-sub { font-size: 0.76rem; color: var(--ink-3); }

.app-streak, .app-lesson, .app-rank {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}

.app-streak {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 12px;
}
.app-streak > div { display: grid; line-height: 1.25; }
.app-streak strong { font-size: 0.9rem; }
.app-streak span { font-size: 0.72rem; color: var(--ink-3); }

.week-dots { display: flex; gap: 4px; list-style: none; }
.week-dots li { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }
.week-dots .on { background: #F28C28; }
.week-dots .today { background: transparent; box-shadow: inset 0 0 0 2px #F28C28; }

.app-lesson { overflow: hidden; }
.screen {
  position: relative;
  height: 118px;
  background:
    radial-gradient(120% 90% at 30% 20%, #3A4152 0%, transparent 60%),
    radial-gradient(90% 80% at 80% 90%, #2B3A6B 0%, transparent 60%),
    var(--screen);
}
.caption {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: max-content;
  max-width: 90%;
  padding: 2px 7px;
  background: rgba(0, 0, 0, 0.55);
  color: var(--caption);
  font-size: 0.76rem;
  font-weight: 700;
  text-align: center;
  border-radius: 3px;
}
.app-lesson-body { display: grid; gap: 7px; padding: 10px 12px 12px; justify-items: start; }
.app-lesson-body strong { font-size: 0.95rem; line-height: 1.2; }
.lvl {
  padding: 1px 7px;
  border-radius: 6px;
  background: var(--primary-tint);
  color: var(--primary);
  font-size: 0.68rem;
  font-weight: 800;
}
.segments { display: flex; gap: 4px; width: 100%; list-style: none; }
.segments li { flex: 1; height: 5px; border-radius: 3px; background: var(--line); }
.segments .done { background: var(--good); }
.segments .active { background: var(--primary); }
.app-btn {
  width: 100%;
  margin-top: 2px;
  padding: 8px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-align: center;
}

.app-rank {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  font-size: 0.82rem;
  color: var(--ink-2);
}
.rank-pos {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--ink);
}

/* The teacher-side notification floating over the phone */
.notif {
  position: absolute;
  left: 0;
  bottom: -4px;
  display: flex;
  gap: 12px;
  align-items: center;
  max-width: 270px;
  padding: 12px 16px 12px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow-lg);
  transform: rotate(-2deg);
  animation: notif-in 0.7s 0.6s var(--ease) backwards;
}
@keyframes notif-in {
  from { opacity: 0; transform: translateY(14px) rotate(-2deg); }
}
.notif-icon {
  flex-shrink: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--good-tint);
  color: var(--good);
}
.notif-text { display: grid; line-height: 1.3; font-size: 0.82rem; color: var(--ink-3); }
.notif-text strong { font-size: 0.92rem; color: var(--ink); }
.notif-where { font-size: 0.72rem; font-weight: 700; color: var(--primary); }

/* ─── Sections ──────────────────────────────────────────── */

.section { padding: 96px 0; }
.section-lead {
  max-width: 38em;
  margin-top: 16px;
  font-size: 1.12rem;
  color: var(--ink-2);
}

/* Week rail: a real sequence of days */
.week { background: var(--paper); }
.week-rail {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  margin-top: 56px;
  position: relative;
}
.week-rail::before {
  content: '';
  position: absolute;
  top: 9px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--line-strong);
}
.week-rail li { position: relative; padding: 40px 28px 0 0; }
.week-rail li::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--paper);
  border: 2px solid var(--ink);
}
.week-rail li.is-app::before { background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 5px var(--primary-tint); }
.week-rail .day {
  display: block;
  margin-bottom: 6px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--ink-3);
}
.week-rail li.is-app .day { color: var(--primary); }
.week-rail h3 { margin-bottom: 8px; }
.week-rail p { color: var(--ink-2); font-size: 1rem; }

/* Teacher dashboard mockup */
.browser {
  margin-top: 48px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.browser-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
}
.browser-dots { display: flex; gap: 6px; }
.browser-dots i { width: 11px; height: 11px; border-radius: 50%; background: var(--line-strong); }
.browser-url {
  flex: 1;
  max-width: 420px;
  padding: 5px 12px;
  border-radius: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink-2);
  font-size: 0.85rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.dash { padding: 24px 28px 12px; }
.dash-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}
.dash-title { font-family: var(--font-display); font-size: 1.4rem; }
.dash-summary { color: var(--ink-2); font-size: 0.95rem; }
.dash-summary b { color: var(--ink); }

.dash-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
.dash-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ink-3);
  border-bottom: 1px solid var(--line);
}
.dash-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--line);
  font-variant-numeric: tabular-nums;
}
.dash-table tr:last-child td { border-bottom: 0; }
.who { display: flex; align-items: center; gap: 12px; font-weight: 600; white-space: nowrap; }
.av {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: hsl(var(--h) 70% 92%);
  color: hsl(var(--h) 55% 30%);
  font-size: 0.78rem;
  font-weight: 800;
}

.dots { display: inline-flex; gap: 4px; vertical-align: middle; }
.dots i { width: 14px; height: 14px; border-radius: 4px; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.dots i.on { background: var(--primary); box-shadow: none; }

.tag {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--paper);
  color: var(--ink-2);
  font-size: 0.82rem;
  font-weight: 700;
  white-space: nowrap;
}
.tag-good { background: var(--good-tint); color: var(--good); }
.tag-warn { background: var(--warn-tint); color: var(--warn); }
.tag-bad { background: var(--bad-tint); color: var(--bad); }

.facts {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 40px;
}
.facts li { color: var(--ink-2); padding-top: 16px; border-top: 2px solid var(--ink); }
.facts strong { color: var(--ink); }

/* Student side */
.student { background: var(--paper); }
.student-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 64px;
  align-items: start;
}
.game-list { list-style: none; display: grid; gap: 28px; }
.game-list li {
  display: grid;
  grid-template-columns: 48px 1fr;
  column-gap: 18px;
  row-gap: 4px;
}
.game-icon {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
}
.game-streak { background: #FFEBD6; color: #C25E00; }
.game-rank { background: #FFF6CC; color: #8A6A00; }
.game-team { background: var(--primary-tint); color: var(--primary); }
.game-list p { color: var(--ink-2); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 56px;
  align-items: center;
}
.calc {
  margin-top: 36px;
  max-width: 520px;
}
.calc label { font-weight: 700; }
.calc-row { display: flex; align-items: center; gap: 18px; margin-top: 10px; }
.calc-row output {
  min-width: 2.4ch;
  font-family: var(--font-display);
  font-size: 1.6rem;
  font-weight: 800;
  text-align: right;
  font-variant-numeric: tabular-nums;
}
.calc input[type=range] {
  flex: 1;
  height: 32px;
  accent-color: var(--primary);
  cursor: pointer;
}
.calc-out { margin-top: 14px; color: var(--ink-2); }
.calc-out strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 5vw, 3rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
}
.calc-out span { display: block; margin-top: 2px; font-size: 0.95rem; color: var(--ink-3); }

.founder {
  padding: 32px;
  border-radius: 22px;
  background: var(--ink);
  color: #fff;
}
.founder h3 { font-size: 1.5rem; }
.founder > p { margin-top: 6px; color: #C3C8D4; }
.checks { list-style: none; display: grid; gap: 12px; margin: 22px 0 26px; }
.checks li { position: relative; padding-left: 32px; }
.checks li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 3px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--caption) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6 9 17l-5-5' fill='none' stroke='%2312151C' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.founder .btn-primary { background: #fff; color: var(--ink); }
.founder .btn-primary:hover { background: var(--caption); }
.founder :focus-visible { outline-color: var(--caption); }

/* Sign-up */
.signup { background: var(--primary); padding: 96px 0; }
.signup-wrap { display: flex; justify-content: center; }
.signup-card {
  width: 100%;
  max-width: 600px;
  padding: 44px 44px 36px;
  border-radius: 24px;
  background: var(--surface);
  box-shadow: 0 40px 80px -30px rgba(10, 20, 80, 0.5);
}
.signup-card h2 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.signup-lead { margin: 10px 0 28px; color: var(--ink-2); }

#lead-form { display: grid; gap: 20px; }
.field { display: grid; gap: 7px; border: 0; min-width: 0; }
.field > label, .field legend { font-weight: 700; font-size: 0.98rem; }
.field legend { margin-bottom: 9px; padding: 0; }
.optional { font-weight: 500; color: var(--ink-3); }

.field input[type=text], .field input[type=email], .field input[type=tel] {
  width: 100%;
  height: 52px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 12px;
  background: var(--surface);
  font-size: 1.02rem;
  transition: border-color 0.15s;
}
.field input::placeholder { color: #9AA1B0; }
.field input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); }
.field input[aria-invalid=true] { border-color: var(--bad); }
.field input[aria-invalid=true]:focus { box-shadow: 0 0 0 4px var(--bad-tint); }

.field-hint { font-size: 0.88rem; color: var(--ink-3); }
.field-error, .form-error { font-size: 0.92rem; font-weight: 600; color: var(--bad); }
.form-error { padding: 12px 14px; border-radius: 10px; background: var(--bad-tint); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border: 1.5px solid var(--line-strong);
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
  user-select: none;
  transition: background-color 0.12s, border-color 0.12s, color 0.12s;
}
.chip:hover span { border-color: var(--ink-3); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip input:focus-visible + span { outline: 3px solid var(--primary); outline-offset: 2px; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* After sign-up */
.thanks:focus { outline: none; }
.thanks-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--good-tint);
  color: var(--good);
}
.thanks > p { margin: 10px 0 24px; color: var(--ink-2); }
.demo-links { display: grid; gap: 12px; }
.demo-link {
  display: grid;
  gap: 2px;
  padding: 18px 52px 18px 20px;
  border: 1.5px solid var(--line-strong);
  border-radius: 16px;
  color: var(--ink);
  text-decoration: none;
  position: relative;
  transition: border-color 0.15s, background-color 0.15s;
}
.demo-link::after {
  content: '';
  position: absolute;
  right: 20px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6' fill='none' stroke='%232E4BD8' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.demo-link:hover { border-color: var(--primary); background: var(--primary-tint); }
.demo-link strong { font-size: 1.05rem; }
.demo-link span { color: var(--ink-2); font-size: 0.95rem; }

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 56px;
  align-items: start;
}
.faq-list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-weight: 700;
  font-size: 1.08rem;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '';
  position: absolute;
  right: 4px;
  top: 50%;
  width: 14px;
  height: 14px;
  margin-top: -7px;
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat;
  transition: transform 0.2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 22px 0; color: var(--ink-2); }

/* Footer */
.footer { padding: 32px 0 40px; border-top: 1px solid var(--line); color: var(--ink-3); font-size: 0.92rem; }
.footer-row { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; }
.footer a, .fine a { color: inherit; }

/* Sticky mobile CTA */
.sticky-cta { display: none; }

/* ─── Responsive ────────────────────────────────────────── */

@media (max-width: 980px) {
  .hero-grid, .student-grid, .pricing-grid, .faq-wrap { grid-template-columns: minmax(0, 1fr); }
  .hero-grid { gap: 48px; }
  .student-grid, .pricing-grid, .faq-wrap { gap: 40px; }
  .hero-visual { padding-left: 0; }
  .notif { left: auto; right: calc(50% + 70px); }
  .topnav { display: none; }
}

@media (max-width: 760px) {
  body { font-size: 16px; }
  .section, .signup { padding: 72px 0; }
  .hero { padding: 28px 0 64px; }
  .hero h1 { margin: 18px 0 16px; }
  .lead { font-size: 1.05rem; }
  .namer { margin: 26px 0 22px; }
  .hero-actions, .hero-buttons { width: 100%; }
  .hero-buttons .btn { width: 100%; }
  .brand-for { display: none; }

  .phone { width: 280px; transform: none; }
  .notif { left: 50%; right: auto; bottom: -22px; transform: translateX(-50%); width: max-content; max-width: calc(100% - 16px); }
  @keyframes notif-in { from { opacity: 0; transform: translate(-50%, 14px); } }
  .hero-visual { padding-bottom: 28px; }

  .week-rail { grid-template-columns: 1fr; margin-top: 40px; }
  .week-rail::before { top: 0; bottom: 0; left: 9px; right: auto; width: 2px; height: auto; }
  .week-rail li { padding: 0 0 32px 44px; }
  .week-rail li:last-child { padding-bottom: 0; }

  .dash { padding: 18px 14px 6px; }
  .dash-table thead { display: none; }
  .dash-table, .dash-table tbody, .dash-table tr { display: block; }
  .dash-table tr {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 8px 12px;
    padding: 14px 4px;
    border-bottom: 1px solid var(--line);
  }
  .dash-table td { padding: 0; border: 0; }
  .dash-table td:nth-child(3), .dash-table td:nth-child(4) { display: none; }
  .dash-table td:nth-child(2) { grid-column: 1; padding-left: 46px; }
  .dash-table td:nth-child(5) { grid-row: 1; grid-column: 2; align-self: center; }
  .who { min-width: 0; }
  .dots i { width: 12px; height: 12px; }
  .facts { grid-template-columns: 1fr; gap: 20px; }

  .signup-card { padding: 30px 20px 26px; border-radius: 20px; }
  .founder { padding: 26px 22px; }

  .sticky-cta {
    display: block;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 40;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-top: 1px solid var(--line);
    transform: translateY(110%);
    transition: transform 0.25s var(--ease);
  }
  .sticky-cta[hidden] { display: block; }
  .sticky-cta.show { transform: none; }
  .footer { padding-bottom: 96px; }
}

@media (max-width: 380px) {
  .phone { width: 256px; }
  .tag { font-size: 0.76rem; padding: 3px 8px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
