/* Hallway: tryhallway.com
   Brand: red #E5293A, cream #FFF6EC, sun #FFC83D (the dot), ink #23161A. Dark: #FF4757 on #1B1014. */

:root {
  --red: #E5293A;
  --red-strong: #D91F31; /* buttons: white text passes AA on it */
  --sun: #FFC83D;
  --cream: #FFF6EC;
  --ink: #23161A;

  --bg: #FFF6EC;
  --surface: #FFFCF8;
  --surface-2: #F7EDE3;
  --line: rgba(35, 22, 26, 0.09);
  --line-2: rgba(35, 22, 26, 0.17);
  --text: #23161A;
  --muted: #6B5D60;
  --red-ink: #C81B2C;
  --warm: #9A5F07;
  --good: #2C7A4B;
  --dots: rgba(35, 22, 26, 0.13);
  --paper: #FFFFFF;
  --glass: rgba(255, 252, 248, 0.78);
  --privacy-bg: #23161A;

  --shadow-1: 0 1px 2px rgba(35, 22, 26, 0.05), 0 10px 30px -14px rgba(35, 22, 26, 0.18);
  --shadow-2: 0 2px 6px rgba(35, 22, 26, 0.05), 0 34px 70px -30px rgba(35, 22, 26, 0.32);
  --shadow-phone: 0 60px 110px -40px rgba(150, 18, 34, 0.5), 0 30px 60px -30px rgba(35, 22, 26, 0.55);

  --c-comp: #3B8BDF;
  --c-ecse200: #22A27B;
  --c-ecse222: #8577DD;
  --c-math240: #F0A13A;
  --c-math263: #6A9E2D;
  --c-phys: #D8527F;

  --radius: 28px;
  --font-display: "Bricolage Grotesque", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --spring: cubic-bezier(0.34, 1.56, 0.64, 1);

  --screen-w: 282px;
  --screen-r: 40px;
  --bezel: 11px;

  color-scheme: light;
  interpolate-size: allow-keywords;
}

/* Dark: the same tokens, twice, so it follows the system unless the visitor picked a theme. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1B1014;
    --surface: #25171D;
    --surface-2: #301F27;
    --line: rgba(255, 246, 236, 0.08);
    --line-2: rgba(255, 246, 236, 0.17);
    --text: #FFF6EC;
    --muted: #BFAEB2;
    --red-ink: #FF5C69;
    --warm: #F2B24C;
    --good: #5FC88B;
    --dots: rgba(255, 246, 236, 0.11);
    --paper: #2B1D23;
    --glass: rgba(43, 29, 35, 0.78);
    --privacy-bg: #2A1920;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
    --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.3), 0 34px 70px -30px rgba(0, 0, 0, 0.8);
    --shadow-phone: 0 60px 110px -40px rgba(255, 71, 87, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1B1014;
  --surface: #25171D;
  --surface-2: #301F27;
  --line: rgba(255, 246, 236, 0.08);
  --line-2: rgba(255, 246, 236, 0.17);
  --text: #FFF6EC;
  --muted: #BFAEB2;
  --red-ink: #FF5C69;
  --warm: #F2B24C;
  --good: #5FC88B;
  --dots: rgba(255, 246, 236, 0.11);
  --paper: #2B1D23;
  --glass: rgba(43, 29, 35, 0.78);
  --privacy-bg: #2A1920;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px -14px rgba(0, 0, 0, 0.6);
  --shadow-2: 0 2px 6px rgba(0, 0, 0, 0.3), 0 34px 70px -30px rgba(0, 0, 0, 0.8);
  --shadow-phone: 0 60px 110px -40px rgba(255, 71, 87, 0.35), 0 30px 60px -30px rgba(0, 0, 0, 0.8);
  color-scheme: dark;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  background: var(--bg);
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease);
}
body::before {
  /* Paper grain */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
img, svg { display: block; max-width: 100%; }
main { overflow-x: clip; }
h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 3px solid var(--red-ink); outline-offset: 3px; border-radius: 10px; }
::selection { background: var(--sun); color: var(--ink); }

.wrap { width: 100%; max-width: 1200px; margin-inline: auto; padding-inline: 24px; }
.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;
}
.skip {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 12px;
  font-weight: 600; text-decoration: none; transition: top 0.2s var(--ease);
}
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 54px; padding: 0 22px; border-radius: 14px; border: 0;
  font: 650 16px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform 0.25s var(--spring), background-color 0.2s, box-shadow 0.25s var(--ease), color 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(0.98); }
.btn svg { width: 24px; height: 24px; fill: currentColor; flex: none; }
.btn-sm { height: 42px; padding: 0 18px; border-radius: 999px; font-size: 15px; }
.btn-red { background: var(--red-strong); color: #FFFFFF; box-shadow: 0 8px 20px -10px rgba(217, 31, 49, 0.8); }
.btn-red:hover { background: #C81B2C; }
.btn-chrome {
  background: var(--surface); color: var(--text); border: 1px solid var(--line-2);
  padding: 0 20px 0 16px; box-shadow: var(--shadow-1);
}
.btn-chrome span { display: grid; text-align: left; gap: 3px; font-size: 17px; letter-spacing: -0.01em; }
.btn-chrome small { font-size: 11.5px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.btn-chrome svg { width: 28px; height: 28px; color: var(--red); }
.btn-dark { background: var(--text); color: var(--bg); border-radius: 999px; align-self: flex-start; }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream svg { color: var(--red); }

.app-store { display: inline-block; border-radius: 12px; transition: transform 0.25s var(--spring); }
.app-store:hover { transform: translateY(-2px); }
.app-store img { height: 54px; width: auto; }

.pill {
  border: 0; border-radius: 999px; padding: 9px 15px; cursor: pointer;
  font: 600 14px/1 var(--font); white-space: nowrap;
  transition: transform 0.2s var(--spring), background-color 0.2s, opacity 0.2s;
}
.pill:hover { transform: translateY(-1px); }
.pill:active { transform: scale(0.96); }
.pill-solid { background: var(--red-strong); color: #FFFFFF; }
.pill-soft { background: color-mix(in srgb, var(--red) 12%, transparent); color: var(--red-ink); }
.text-link {
  color: var(--red-ink); font-weight: 600; text-decoration: underline;
  text-decoration-thickness: 1.5px; text-underline-offset: 3px;
}

/* Rename notice and header */
.rename-bar {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 9px 16px; background: var(--ink); color: var(--cream);
  font-size: 14px; text-align: center;
}
:root[data-theme="dark"] .rename-bar { background: var(--surface-2); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .rename-bar { background: var(--surface-2); } }
.rename-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--sun); flex: none; animation: hop-small 3s var(--ease) infinite; }

.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background-color 0.4s var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); flex: none; border-radius: 12px; }
.brand-icon { width: 36px; height: 36px; border-radius: 9px; box-shadow: 0 6px 14px -8px rgba(229, 41, 58, 0.9); }
.brand-word { height: 25px; width: auto; aspect-ratio: 789 / 224; margin-top: 4px; }
.logo-dot { transform-box: fill-box; transform-origin: 50% 100%; }
.nav-links { display: flex; gap: 6px; margin-left: auto; }
.nav-links a {
  padding: 9px 14px; border-radius: 999px; text-decoration: none;
  font-weight: 550; font-size: 15px; color: var(--muted);
  transition: color 0.2s, background-color 0.2s;
}
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 8px; }
.theme-toggle {
  width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid var(--line-2); background: transparent; cursor: pointer;
  transition: background-color 0.2s, transform 0.4s var(--spring);
}
.theme-toggle:hover { background: var(--surface-2); }
.theme-toggle:active { transform: rotate(-30deg) scale(0.92); }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { fill: currentColor; stroke: none; }
.i-sun { display: none !important; }
:root[data-theme="dark"] .i-sun { display: block !important; }
:root[data-theme="dark"] .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: block !important; }
  :root:not([data-theme="light"]) .i-moon { display: none; }
}

/* Hero */
.hero { position: relative; padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); overflow: clip; }
.hero-bg {
  position: absolute; inset: 0; z-index: -1;
  background-image: radial-gradient(circle at 1px 1px, var(--dots) 1.2px, transparent 1.6px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse 60% 70% at 72% 42%, #000 20%, transparent 72%);
  mask-image: radial-gradient(ellipse 60% 70% at 72% 42%, #000 20%, transparent 72%);
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 32px; align-items: center;
}
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 14px 8px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.eyebrow-dot {
  position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--red);
}
.eyebrow-dot::after {
  content: ""; position: absolute; inset: -4px; border-radius: 50%;
  border: 2px solid var(--red); opacity: 0; animation: ping 2.4s var(--ease) infinite;
}
.display {
  margin: 22px 0 22px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(3rem, 1.3rem + 5.2vw, 5.9rem);
  line-height: 0.93; letter-spacing: -0.045em;
  text-wrap: balance;
}
.hi-i { position: relative; display: inline-block; }
.hi-i::after {
  content: ""; position: absolute; left: 50%; top: 0.035em;
  width: 0.2em; height: 0.2em; margin-left: -0.1em; border-radius: 50%;
  background: var(--sun);
  box-shadow: inset 0 -0.02em 0 rgba(0, 0, 0, 0.06);
  transform-origin: 50% 100%;
  animation: dot-hop 3.6s var(--ease) 1.2s infinite;
}
.lede { font-size: clamp(1.1rem, 0.98rem + 0.45vw, 1.32rem); color: var(--muted); max-width: 33em; text-wrap: pretty; }
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 30px; }
.trust { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; font-size: 15px; color: var(--muted); }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }

/* Phone */
.hero-stage { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.stage {
  position: relative; perspective: 1400px; margin: 10px 0 26px;
  width: calc(var(--screen-w) + var(--bezel) * 2);
}
.sun {
  position: absolute; z-index: -1; width: 104%; aspect-ratio: 1; border-radius: 50%;
  top: -7%; right: -52%;
  background: radial-gradient(circle at 34% 30%, #FFE08A 0%, var(--sun) 46%, #F6B523 100%);
  box-shadow: 0 40px 80px -30px rgba(246, 181, 35, 0.6);
  animation: drift 11s ease-in-out infinite;
}
.stage::before {
  content: ""; position: absolute; z-index: -1; width: 70%; aspect-ratio: 1; border-radius: 30%;
  left: -40%; bottom: 4%; rotate: -14deg;
  background: var(--red); opacity: 0.95;
  animation: drift 13s ease-in-out -4s infinite reverse;
}
.phone {
  position: relative; padding: var(--bezel);
  border-radius: calc(var(--screen-r) + var(--bezel));
  background: linear-gradient(150deg, #43333A 0%, #140C0F 34%, #1D1417 70%, #3A2B31 100%);
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.1), inset 0 0 0 5px #0B0607, var(--shadow-phone);
  transform: rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transform-style: preserve-3d;
  will-change: transform;
}
.phone::before, .phone::after {
  content: ""; position: absolute; width: 4px; border-radius: 3px; background: #2B1E23;
}
.phone::before {
  left: -3px; top: 17%; height: 6%;
  box-shadow: 0 calc(var(--screen-w) * 0.2) 0 #2B1E23, 0 calc(var(--screen-w) * 0.38) 0 #2B1E23;
}
.phone::after { right: -3px; top: 27%; height: 11%; }
.phone-screen {
  position: relative; width: var(--screen-w); aspect-ratio: 1206 / 2622;
  border-radius: var(--screen-r); overflow: hidden; isolation: isolate;
  background: #F8F6F2;
}
:root[data-theme="dark"] .phone-screen { background: #000; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .phone-screen { background: #000; } }
.phone-screen::after {
  /* Glass glare */
  content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 32%);
}
.shot { position: absolute; inset: 0; opacity: 0; visibility: hidden; }
.shot.is-active { opacity: 1; visibility: visible; }
.shot img { width: 100%; height: 100%; object-fit: cover; }
.island {
  position: absolute; left: 50%; z-index: 4; translate: -50% 0;
  top: calc(var(--bezel) + var(--screen-w) * 0.028);
  width: calc(var(--screen-w) * 0.31); height: calc(var(--screen-w) * 0.091);
  border-radius: 999px; background: #050304;
}
.spots { position: absolute; inset: 0; z-index: 4; pointer-events: none; }
.tap {
  position: absolute; border: 0; padding: 0; margin: 0; pointer-events: auto;
  background: transparent; border-radius: 12px; cursor: pointer;
  transition: background-color 0.2s;
}
.tap:hover { background: rgba(229, 41, 58, 0.08); }
.tap:focus-visible { outline: 2.5px solid var(--red); outline-offset: 0; }
.tap.is-hint::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit;
  border: 2px solid var(--red); animation: hint 1.8s var(--ease) infinite;
}

.float { position: absolute; z-index: 5; translate: var(--px, 0) var(--py, 0); pointer-events: none; }
.float-note, .note {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 11px 13px; border-radius: 18px;
  background: var(--glass);
  -webkit-backdrop-filter: blur(18px) saturate(160%);
  backdrop-filter: blur(18px) saturate(160%);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-2);
  font-size: 13px; line-height: 1.3; color: var(--text);
}
.float-note { top: -3%; left: -46%; width: 248px; animation: bob 7s ease-in-out infinite; }
.note-icon {
  flex: none; width: 34px; height: 34px; border-radius: 9px; margin-top: 1px;
  background: var(--red) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'%3E%3Cpath fill='%23FFF6EC' d='M277,305 A73,73 0 0 1 423,305 V719 A73,73 0 0 1 277,719 Z M601,515 A73,73 0 0 1 747,515 V719 A73,73 0 0 1 601,719 Z M350,503.2 H674 V627.2 H350 Z'/%3E%3Ccircle cx='674' cy='314' r='82' fill='%23FFC83D'/%3E%3C/svg%3E") center / 100% no-repeat;
}
.note-text { display: grid; gap: 1px; min-width: 0; }
.note-app { display: flex; justify-content: space-between; gap: 8px; font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); }
.note-app em { font-style: normal; text-transform: none; letter-spacing: 0; font-weight: 500; }
.note-text strong { font-weight: 650; font-size: 13.5px; }
.note-text > span:last-child { color: var(--muted); }
.float-grade {
  top: 56%; right: -38%;
  display: flex; align-items: center; gap: 10px; padding: 10px 16px 10px 10px;
  border-radius: 999px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-2);
  animation: bob 6s ease-in-out -2s infinite;
}
.float-grade small { display: block; font-size: 11.5px; color: var(--muted); font-weight: 500; }
.float-grade strong { display: block; font: 800 22px/1.05 var(--font-display); color: var(--good); letter-spacing: -0.02em; }
.grade-ring {
  width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--good) 0 100%, var(--line) 0);
  font: 800 15px/1 var(--font-display); color: var(--good);
}
.grade-ring span { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); }
.float-sticker {
  bottom: 3%; left: -36%; rotate: -8deg;
  padding: 11px 15px; border-radius: 14px;
  background: var(--sun); color: var(--ink);
  font: 700 15px/1.15 var(--font-display); letter-spacing: -0.01em;
  box-shadow: 0 16px 30px -16px rgba(150, 90, 0, 0.6);
  animation: bob 8s ease-in-out -4s infinite;
}
.float-sticker::before {
  /* tape */
  content: ""; position: absolute; top: -9px; left: 50%; translate: -50% 0; rotate: 4deg;
  width: 46px; height: 16px; border-radius: 2px; background: rgba(255, 255, 255, 0.55);
}

.screen-controls { display: flex; align-items: center; gap: 10px; }
.screen-tabs {
  position: relative; display: flex; padding: 4px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line);
}
.screen-tabs button {
  position: relative; z-index: 1; border: 0; background: none; cursor: pointer;
  padding: 10px 15px; border-radius: 999px;
  font-size: 14.5px; font-weight: 600; color: var(--muted);
  transition: color 0.25s;
}
.screen-tabs button[aria-pressed="true"] { color: var(--text); }
.tab-pill {
  position: absolute; z-index: 0; top: 4px; bottom: 4px; left: 0; width: 0;
  translate: var(--pill-x, 4px) 0; width: var(--pill-w, 0px);
  border-radius: 999px; background: var(--surface); box-shadow: var(--shadow-1);
  transition: translate 0.5s var(--spring), width 0.5s var(--spring);
}
.autoplay {
  position: relative; width: 44px; height: 44px; border-radius: 50%; flex: none;
  display: grid; place-items: center; border: 0; cursor: pointer;
  background: var(--surface-2); color: var(--text);
}
.autoplay > svg:not(.autoplay-ring) { width: 18px; height: 18px; fill: currentColor; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; }
.autoplay .i-play { display: none; stroke-width: 1; stroke-linejoin: round; }
.autoplay[aria-pressed="true"] .i-play { display: block; }
.autoplay[aria-pressed="true"] .i-pause { display: none; }
.autoplay-ring { position: absolute; inset: 0; width: 100%; height: 100%; rotate: -90deg; }
.autoplay-ring circle {
  fill: none; stroke: var(--red); stroke-width: 2.5; stroke-linecap: round;
  stroke-dasharray: 103.7; stroke-dashoffset: 103.7;
}
.autoplay-ring.is-running circle { animation: ring var(--slide, 3.8s) linear forwards; }
.screen-caption {
  margin-top: 14px; max-width: 30em; min-height: 3.1em;
  text-align: center; font-size: 15px; color: var(--muted); text-wrap: balance;
}

/* Band */
.band {
  position: relative; z-index: 2; width: 106%; margin-left: -3%;
  padding: 18px 0; overflow: hidden; rotate: -1.6deg;
  background: var(--red); color: var(--cream);
  box-shadow: 0 20px 40px -24px rgba(150, 18, 34, 0.6);
}
.band-track {
  display: flex; align-items: center; width: max-content;
  font: 800 clamp(1.5rem, 1rem + 1.6vw, 2.4rem)/1 var(--font-display); letter-spacing: -0.025em;
  white-space: nowrap; animation: marquee 46s linear infinite;
}
.band-track > * { margin-right: 30px; flex: none; }
.band-track i { width: 0.42em; height: 0.42em; border-radius: 50%; background: var(--sun); }
.band:hover .band-track { animation-play-state: paused; }

/* Sections */
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section + .section { padding-top: 0; }
.kicker {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 700; letter-spacing: 0.01em; color: var(--red-ink);
}
.kicker::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--sun); box-shadow: 0 0 0 3px color-mix(in srgb, var(--sun) 30%, transparent); }
h2 {
  margin: 14px 0 18px;
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(2.3rem, 1.35rem + 3.1vw, 3.9rem);
  line-height: 0.98; letter-spacing: -0.04em; text-wrap: balance;
}
.section-head { max-width: 760px; }
.section-head p:not(.kicker) { font-size: 1.15rem; color: var(--muted); }

.feature {
  display: grid; grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  gap: clamp(32px, 6vw, 88px); align-items: center;
}
.feature.flip .feature-copy { order: 2; }
.feature-copy > p:not(.kicker) { font-size: 1.15rem; color: var(--muted); max-width: 31em; text-wrap: pretty; }
.feature-copy .aside-note { margin-top: 16px; font-size: 0.95rem; }
.ticks { display: grid; gap: 12px; margin-top: 26px; }
.ticks li { position: relative; padding-left: 34px; font-weight: 550; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 1px; width: 23px; height: 23px; border-radius: 50%;
  background: color-mix(in srgb, var(--red) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D91F31' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6.5 12.5 3.5 3.5 7.5-8'/%3E%3C/svg%3E") center / 15px no-repeat;
}

/* Demo cards */
.demo {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: clamp(20px, 3vw, 30px); box-shadow: var(--shadow-2);
}
.demo-label {
  position: absolute; top: -15px; left: 26px; z-index: 2;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 13px 7px 10px; border-radius: 999px;
  background: var(--text); color: var(--bg);
  font-size: 13px; font-weight: 650;
  box-shadow: var(--shadow-1);
}
.demo-dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--sun); }
.demo-dot::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 2px solid var(--sun); opacity: 0; animation: ping 2.2s var(--ease) infinite; }
.demo-reset {
  display: block; margin: 16px auto 0; border: 0; background: none; cursor: pointer;
  color: var(--muted); font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}

/* To do demo */
.upnext { padding: 18px 20px 16px; border-radius: 22px; background: var(--surface-2); }
.upnext-label { font-size: 14.5px; color: var(--muted); }
.upnext-title { font: 700 1.45rem/1.2 var(--font); letter-spacing: -0.015em; margin-top: 2px; }
.upnext-meta { font-size: 16px; color: var(--muted); }
.upnext-meta .hot, .when.hot { color: var(--red-ink); }
.segments { display: flex; gap: 6px; margin: 14px 0 10px; }
.segments i { flex: 1; height: 10px; border-radius: 99px; background: var(--line-2); overflow: hidden; position: relative; }
.segments i::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; background: #DD5B33;
  transform-origin: left; scale: 0 1; transition: scale 0.5s var(--ease);
}
.segments i.on::after { scale: 1 1; }
.upnext-week { font-size: 16px; color: var(--muted); }
.upnext-week.is-done { color: var(--good); font-weight: 650; }
.todo-list { margin-top: 10px; display: grid; gap: 2px; }
.todo-list label {
  position: relative; display: grid; grid-template-columns: 26px 4px minmax(0, 1fr) auto;
  gap: 12px; align-items: center; padding: 12px 10px; border-radius: 16px; cursor: pointer;
  transition: background-color 0.2s;
}
.todo-list label:hover { background: var(--surface-2); }
.todo-list input { position: absolute; opacity: 0; width: 26px; height: 26px; margin: 0; cursor: pointer; }
.box {
  position: relative; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--line-2); transition: border-color 0.2s, background-color 0.25s;
}
.box::after {
  content: ""; position: absolute; left: 7px; top: 3px; width: 7px; height: 12px;
  border: solid #FFFFFF; border-width: 0 2.5px 2.5px 0; rotate: 45deg; scale: 0;
  transition: scale 0.35s var(--spring);
}
.todo-list input:checked + .box { background: var(--red-strong); border-color: var(--red-strong); animation: pop 0.4s var(--spring); }
.todo-list input:checked + .box::after { scale: 1; }
.todo-list input:focus-visible + .box { outline: 3px solid var(--red-ink); outline-offset: 3px; }
.bar { width: 4px; height: 38px; border-radius: 4px; background: var(--c); }
.todo-text { display: grid; min-width: 0; }
.todo-text strong {
  font-size: 16.5px; font-weight: 650; width: fit-content;
  background: linear-gradient(currentColor, currentColor) no-repeat 0 55% / 0% 2px;
  transition: background-size 0.4s var(--ease), color 0.3s;
}
.todo-text span { font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.when { font-size: 15px; font-weight: 650; white-space: nowrap; }
.when.warm { color: var(--warm); }
.todo-list input:checked ~ .todo-text strong { background-size: 100% 2px; color: var(--muted); }
.todo-list input:checked ~ .when, .todo-list input:checked ~ .bar { opacity: 0.35; }
.when, .bar { transition: opacity 0.3s; }

/* Fine print demo */
.doc {
  position: relative; padding: 18px 20px 20px; border-radius: 18px;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--line), 0 18px 30px -24px rgba(35, 22, 26, 0.4);
  font: 15.5px/1.65 ui-serif, "New York", Georgia, "Times New Roman", serif;
  rotate: -1.2deg;
}
.doc p + p { margin-top: 10px; }
.doc-head {
  display: flex; align-items: center; gap: 9px; margin-bottom: 10px;
  font: 600 13px/1.2 var(--font); color: var(--muted);
}
.doc-icon {
  width: 26px; height: 30px; border-radius: 4px; background: var(--red);
  position: relative; flex: none;
}
.doc-icon::after {
  content: "PDF"; position: absolute; inset: auto 0 5px; text-align: center;
  font: 800 8px/1 var(--font); color: #FFFFFF; letter-spacing: 0.04em;
}
.doc mark {
  color: inherit; padding: 0 2px; border-radius: 3px;
  background: linear-gradient(transparent 52%, color-mix(in srgb, var(--sun) 80%, transparent) 52%) no-repeat 0 0 / 0% 100%;
  transition: background-size 0.9s var(--ease);
}
.doc mark + mark { transition-delay: 0.5s; }
.fine-demo.is-in .doc mark { background-size: 100% 100%; }
.fine-demo.is-in .doc p + p mark { transition-delay: 0.45s; }
.found { margin-top: 16px; display: grid; gap: 8px; }
.found-label { font-size: 15px; font-weight: 650; color: var(--red-ink); }
.found-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 11px 12px 11px 16px; border-radius: 16px; background: var(--surface-2);
  transition: opacity 0.5s var(--ease), translate 0.5s var(--ease), grid-template-rows 0.4s var(--ease);
}
.js .fine-demo:not(.is-in) .found-item { opacity: 0; translate: 0 10px; }
.fine-demo.is-in .found-item { transition-delay: 0.9s; }
.fine-demo.is-in .found-item + .found-item { transition-delay: 1.05s; }
.fine-demo.is-touched .found-item, .fine-demo.is-touched .found-item + .found-item { transition-delay: 0s; }
.found-item > span:first-child { display: grid; min-width: 0; }
.found-item strong { font-size: 16px; font-weight: 650; }
.found-item small { font-size: 13.5px; color: var(--muted); }
.found-actions { display: flex; gap: 6px; flex: none; }
.found-item.is-added { background: color-mix(in srgb, var(--good) 13%, transparent); }
.found-item .done-note { font-size: 14px; font-weight: 650; color: var(--good); display: inline-flex; align-items: center; gap: 6px; }
.found-item.is-gone { opacity: 0; translate: 16px 0; }
.conflict {
  margin-top: 12px; padding: 14px 16px; border-radius: 16px;
  border: 1px solid var(--line-2);
}
.conflict-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.conflict-title strong { font-size: 16.5px; font-weight: 650; }
.conflict-title > span { font-size: 14px; color: var(--muted); }
.conflict-title [data-conflict-date] { display: inline-block; }
.conflict-title [data-conflict-date].flip { animation: flip-in 0.6s var(--ease); color: var(--good); font-weight: 650; }
.conflict-warn { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14.5px; font-weight: 600; color: var(--warm); }
.conflict-warn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.conflict-quote { margin-top: 3px; font-size: 14.5px; color: var(--muted); }
.conflict-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.conflict-done { margin-top: 8px; font-size: 14.5px; font-weight: 650; color: var(--good); }

/* What-if demo */
.wi-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.wi-course { font-size: 14.5px; color: var(--muted); }
.wi-grade { display: flex; align-items: baseline; gap: 10px; margin-top: 2px; }
.wi-grade [data-wi-grade] {
  font: 800 clamp(2.6rem, 2rem + 2vw, 3.4rem)/1 var(--font-display); letter-spacing: -0.04em;
  color: var(--grade-color, var(--good)); font-variant-numeric: tabular-nums; transition: color 0.3s;
}
.wi-letter { font-size: 1.6rem; font-weight: 650; color: var(--muted); }
.wi-ring { width: 92px; height: 92px; flex: none; rotate: -90deg; }
.wi-ring circle { fill: none; stroke-width: 10; }
.wi-ring-track { stroke: var(--line); }
.wi-ring-fill {
  stroke: var(--grade-color, var(--good)); stroke-linecap: round;
  stroke-dasharray: 314.16; stroke-dashoffset: 41;
  transition: stroke-dashoffset 0.5s var(--ease), stroke 0.3s;
}
.wi-target { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 18px; }
.wi-target span { font-size: 14.5px; color: var(--muted); margin-right: 4px; }
.wi-target button {
  min-width: 46px; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: transparent; font-size: 14.5px; font-weight: 650;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s, transform 0.2s var(--spring);
}
.wi-target button:hover { transform: translateY(-1px); }
.wi-target button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.wi-need { margin-top: 14px; font-size: 17px; }
.wi-need strong { font-variant-numeric: tabular-nums; }
.wi-sofar { margin-top: 2px; font-size: 14px; color: var(--muted); }
.wi-rows { margin-top: 16px; padding: 4px 16px; border-radius: 20px; background: var(--surface-2); }
.wi-row {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) 50px;
  gap: 14px; align-items: center; padding: 11px 0;
}
.wi-row + .wi-row { border-top: 1px solid var(--line); }
.wi-row label { font-size: 15.5px; font-weight: 550; line-height: 1.25; }
.wi-row label small { display: block; font-size: 12.5px; font-weight: 400; color: var(--muted); }
.wi-row output { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.wi-row:not(.is-set) output { color: var(--muted); font-weight: 500; font-size: 14px; }
.wi-row input[type="range"] {
  --p: 50%; --fill: var(--red);
  -webkit-appearance: none; appearance: none; width: 100%; height: 28px; margin: 0;
  background: transparent; cursor: pointer;
}
.wi-row:not(.is-set) input[type="range"] { --fill: color-mix(in srgb, var(--muted) 55%, transparent); }
.wi-row input[type="range"]::-webkit-slider-runnable-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(to right, var(--fill) var(--p), var(--line-2) var(--p));
}
.wi-row input[type="range"]::-moz-range-track {
  height: 6px; border-radius: 99px;
  background: linear-gradient(to right, var(--fill) var(--p), var(--line-2) var(--p));
}
.wi-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; width: 22px; height: 22px; margin-top: -8px;
  border-radius: 50%; background: #FFFFFF; border: 2.5px solid var(--fill);
  box-shadow: 0 2px 6px rgba(35, 22, 26, 0.25); transition: transform 0.2s var(--spring);
}
.wi-row input[type="range"]::-moz-range-thumb {
  width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; border: 2.5px solid var(--fill);
  box-shadow: 0 2px 6px rgba(35, 22, 26, 0.25);
}
.wi-row input[type="range"]:active::-webkit-slider-thumb { transform: scale(1.18); }
.wi-row input[type="range"]:focus-visible { outline: none; }
.wi-row input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 4px color-mix(in srgb, var(--red) 30%, transparent); }
.wi-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 14px; font-size: 14px; color: var(--muted); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.card {
  position: relative; overflow: hidden;
  padding: 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
  transition: translate 0.8s var(--ease), opacity 0.8s var(--ease), box-shadow 0.3s;
}
.card:hover { box-shadow: var(--shadow-2); }
.card h3 { font: 750 1.4rem/1.15 var(--font-display); letter-spacing: -0.025em; margin-bottom: 8px; }
.card p { font-size: 15.5px; color: var(--muted); text-wrap: pretty; }
.card-schedule { grid-column: span 2; display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 24px; }
.sched-days { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.sched-days button {
  display: grid; justify-items: center; gap: 1px; padding: 8px 0 7px; cursor: pointer;
  border: 0; border-radius: 14px; background: var(--surface-2);
  transition: background-color 0.2s, color 0.2s, transform 0.2s var(--spring);
}
.sched-days button:hover { transform: translateY(-2px); }
.sched-days button span { font-size: 12.5px; color: var(--muted); }
.sched-days button strong { font: 750 1.3rem/1.1 var(--font-display); }
.sched-days button small { font-size: 12px; color: var(--muted); }
.sched-days button[aria-pressed="true"] { background: color-mix(in srgb, var(--red) 13%, transparent); color: var(--red-ink); }
.sched-days button[aria-pressed="true"] span, .sched-days button[aria-pressed="true"] small { color: var(--red-ink); }
.sched-list { margin-top: 14px; display: grid; gap: 4px; min-height: 236px; align-content: start; }
.sched-list li {
  display: grid; grid-template-columns: 66px 4px minmax(0, 1fr) auto; gap: 12px; align-items: stretch;
  padding: 6px 0; animation: rise 0.45s var(--ease) both;
}
.sched-list li:nth-child(2) { animation-delay: 0.05s; }
.sched-list li:nth-child(3) { animation-delay: 0.1s; }
.sched-list li:nth-child(4) { animation-delay: 0.15s; }
.sched-time { display: flex; flex-direction: column; justify-content: space-between; text-align: right; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sched-time b { font-weight: 600; color: var(--text); font-size: 13.5px; }
.sched-bar { border-radius: 4px; background: var(--c); }
.sched-what { display: grid; min-width: 0; line-height: 1.3; }
.sched-what strong { font: 750 1.05rem/1.25 var(--font-display); letter-spacing: -0.01em; }
.sched-what span { font-size: 13.5px; color: var(--muted); }
.sched-len { font-size: 13px; color: var(--muted); white-space: nowrap; }
.card-final .count { margin-top: 18px; padding: 16px 18px; border-radius: 20px; background: var(--surface-2); }
.count-label { font-size: 14px; color: var(--muted); }
.card .count-num { display: flex; align-items: baseline; color: var(--text); font: 800 2.35rem/1.1 var(--font-display); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.count-num span { display: inline-block; }
.count-num span.tick { animation: tick 0.4s var(--ease); }
.count-num small { font-size: 0.95rem; font-weight: 600; color: var(--muted); margin: 0 7px 0 2px; letter-spacing: 0; }
.count-what { margin-top: 4px; font-size: 14.5px; }
.count-what span { color: var(--muted); }
.notes { position: relative; height: 176px; margin-top: 18px; }
.notes .note {
  position: absolute; left: 0; right: 0; top: 0;
  transition: translate 0.7s var(--ease), scale 0.7s var(--ease), opacity 0.7s var(--ease);
}
.notes .note[data-pos="0"] { z-index: 3; }
.notes .note[data-pos="1"] { z-index: 2; translate: 0 62px; scale: 0.96; opacity: 0.85; }
.notes .note[data-pos="2"] { z-index: 1; translate: 0 112px; scale: 0.92; opacity: 0.6; }
.notes .note.is-entering { translate: 0 -24px; opacity: 0; scale: 1.02; transition: none; }
.labs-cal { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 5px; margin: 16px 0 16px; }
.labs-cal b { font-size: 11.5px; font-weight: 600; color: var(--muted); text-align: center; }
.labs-cal i { position: relative; height: 26px; border-radius: 8px; background: var(--surface-2); }
.labs-cal i::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px;
  border-radius: 50%; background: var(--c, transparent); scale: 0; transition: scale 0.4s var(--spring) var(--d, 0s);
}
.labs-cal i.on::after { scale: 1; }
.card-labs .pill { margin-top: auto; align-self: flex-start; }
.card-labs { display: flex; flex-direction: column; }
.sync-pill {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 18px;
  padding: 9px 15px; border-radius: 999px; background: var(--surface-2);
  font-size: 14px; font-weight: 600; color: var(--text) !important;
}
.sync-pill svg { width: 18px; height: 18px; fill: none; stroke: var(--red); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.card-sync:hover .sync-pill svg, .card-sync.is-in .sync-pill svg { animation: spin 1.2s var(--ease); }

/* Privacy */
.privacy-card {
  position: relative; overflow: hidden;
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center;
  padding: clamp(28px, 5.5vw, 72px); border-radius: 40px;
  background: var(--privacy-bg); color: var(--cream);
  border: 1px solid var(--line);
}
.privacy-card::before {
  content: ""; position: absolute; width: 520px; aspect-ratio: 1; border-radius: 50%;
  right: -180px; top: -220px; background: radial-gradient(circle, rgba(229, 41, 58, 0.45), transparent 65%);
  pointer-events: none;
}
.privacy-copy { position: relative; }
.privacy-copy > p:not(.kicker) { color: rgba(255, 246, 236, 0.78); font-size: 1.12rem; max-width: 32em; }
.kicker-light { color: var(--sun); }
.label-card {
  margin: 26px 0 20px; padding: 16px 18px; max-width: 420px; border-radius: 18px;
  background: rgba(255, 246, 236, 0.06); border: 1px solid rgba(255, 246, 236, 0.13);
}
.label-head { font-size: 12.5px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255, 246, 236, 0.6); }
.label-big { display: flex; align-items: center; gap: 10px; margin: 6px 0 2px; font: 750 1.35rem/1.2 var(--font-display); }
.label-big svg { width: 26px; height: 26px; fill: none; stroke: var(--sun); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.label-small { font-size: 14px; color: rgba(255, 246, 236, 0.7); }
.privacy .text-link { color: var(--sun); }
.flow { position: relative; display: grid; justify-items: center; }
.flow-node { display: grid; justify-items: center; gap: 10px; text-align: center; font-size: 15px; font-weight: 600; }
.flow-node small { display: block; font-weight: 600; color: var(--sun); font-size: 14px; margin-top: -4px; }
.flow-icon {
  width: 68px; height: 68px; border-radius: 20px; display: grid; place-items: center;
  background: rgba(255, 246, 236, 0.07); border: 1px solid rgba(255, 246, 236, 0.14);
}
.flow-icon svg { width: 32px; height: 32px; fill: none; stroke: var(--cream); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.flow-icon-app { width: 76px; height: 76px; background: none; border: 0; filter: drop-shadow(0 14px 24px rgba(229, 41, 58, 0.5)); }
.flow-icon-app svg { width: 76px; height: 76px; border-radius: 18px; stroke: none; }
.flow-line {
  position: relative; width: 2px; height: 70px; margin: 10px 0;
  background: repeating-linear-gradient(to bottom, rgba(255, 246, 236, 0.35) 0 5px, transparent 5px 10px);
}
.flow-line i {
  position: absolute; left: 50%; top: 0; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%;
  background: var(--sun); box-shadow: 0 0 12px var(--sun); animation: flow 2.4s linear infinite;
}
.flow-line i:nth-child(2) { animation-delay: -0.8s; }
.flow-line i:nth-child(3) { animation-delay: -1.6s; }
.flow-line-cut { background: repeating-linear-gradient(to bottom, rgba(255, 246, 236, 0.16) 0 5px, transparent 5px 10px); }
.flow-line-cut b {
  position: absolute; left: 50%; top: 50%; translate: -50% -50%;
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--red); color: #FFFFFF; font: 700 20px/1 var(--font); box-shadow: 0 0 0 5px var(--privacy-bg);
}
.flow-server { opacity: 0.6; }
.flow-server .flow-icon { border-style: dashed; }

/* Schools */
.schools .section-head { margin-inline: auto; text-align: center; }
.finder { max-width: 900px; margin: 34px auto 0; text-align: center; }
.finder-box { position: relative; max-width: 540px; margin-inline: auto; }
.finder-box svg {
  position: absolute; left: 22px; top: 50%; translate: 0 -50%; width: 22px; height: 22px;
  fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; pointer-events: none;
}
.finder-box input {
  width: 100%; height: 62px; padding: 0 24px 0 56px; border-radius: 999px;
  border: 1px solid var(--line-2); background: var(--surface); box-shadow: var(--shadow-1);
  font-size: 18px; outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
.finder-box input::placeholder { color: var(--muted); }
.finder-box input:focus { border-color: var(--red); box-shadow: 0 0 0 5px color-mix(in srgb, var(--red) 16%, transparent), var(--shadow-1); }
.finder-result { max-width: 560px; margin: 16px auto 0; text-align: left; }
.finder-result:empty { display: none; }
.result-card {
  display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 14px; align-items: start;
  padding: 16px 18px; border-radius: 22px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--shadow-2); animation: rise 0.45s var(--ease);
}
.result-check {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  background: color-mix(in srgb, var(--good) 15%, transparent);
}
.result-check svg { width: 22px; height: 22px; fill: none; stroke: var(--good); stroke-width: 2.8; stroke-linecap: round; stroke-linejoin: round; }
.result-card.is-miss .result-check { background: color-mix(in srgb, var(--red) 13%, transparent); }
.result-card.is-miss .result-check svg { stroke: var(--red-ink); }
.result-card h3 { font: 750 1.2rem/1.25 var(--font-display); letter-spacing: -0.015em; }
.result-card p { font-size: 15px; color: var(--muted); margin-top: 2px; }
.result-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.result-tags span {
  padding: 5px 10px; border-radius: 999px; font-size: 13px; font-weight: 600;
  background: var(--surface-2); color: var(--text);
}
.school-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 26px; }
.school-cloud button {
  padding: 8px 14px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line-2); background: var(--surface);
  font-size: 14.5px; font-weight: 600;
  transition: border-color 0.2s, background-color 0.2s, color 0.2s, transform 0.25s var(--spring), opacity 0.2s;
}
.school-cloud button:hover { border-color: var(--red); transform: translateY(-2px); }
.school-cloud button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.finder-foot { margin-top: 24px; color: var(--muted); }

/* Download */
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.dl-card {
  display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3.4vw, 36px);
  border-radius: 32px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-1);
}
.peek {
  position: relative; height: 290px; overflow: hidden; border-radius: 18px;
  display: flex; justify-content: center;
  background:
    radial-gradient(circle at 84% 22%, var(--sun) 0 64px, transparent 65px),
    linear-gradient(160deg, #EE3949, #D91F31);
}
.peek-phone {
  position: relative; align-self: flex-start; width: 236px; margin-top: 34px;
  padding: 9px 9px 0; border-radius: 42px 42px 0 0; background: #140C0F;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.1), 0 30px 50px -18px rgba(70, 0, 10, 0.7);
  transition: translate 0.6s var(--ease);
}
.dl-ios:hover .peek-phone { translate: 0 -10px; }
.peek-phone img { width: 100%; height: auto; border-radius: 33px 33px 0 0; }
.peek-island { position: absolute; top: 19px; left: 50%; translate: -50% 0; width: 70px; height: 20px; border-radius: 99px; background: #050304; }
.dl-head { display: flex; align-items: center; gap: 16px; }
.dl-icon { width: 68px; height: 68px; flex: none; border-radius: 16px; box-shadow: 0 14px 26px -14px rgba(229, 41, 58, 0.9); }
.dl-card h3 { font: 750 1.6rem/1.15 var(--font-display); letter-spacing: -0.025em; }
.dl-head p { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.dl-card > p, .dl-copy > p { color: var(--muted); font-size: 16px; }
.dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 26px; margin-top: auto; }
.qr { display: flex; align-items: center; gap: 14px; }
.qr img { width: 112px; height: 112px; border-radius: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-1); background: #FFFFFF; }
.qr figcaption { font-size: 14px; color: var(--muted); max-width: 9.5em; line-height: 1.35; }
.dl-chrome { gap: 22px; }
.browser {
  border-radius: 18px; overflow: hidden; border: 1px solid var(--line-2);
  background: #16161B; box-shadow: var(--shadow-1);
}
.browser-bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 12px; background: #26262D; }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #FF5F57; }
.browser-bar i:nth-child(2) { background: #FEBC2E; }
.browser-bar i:nth-child(3) { background: #28C840; }
.browser-url {
  flex: 1; height: 24px; margin-left: 10px; padding: 0 12px; border-radius: 99px;
  display: flex; align-items: center; background: #16161B; color: #8E8E96; font-size: 12px;
}
.browser-ext { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: rgba(229, 41, 58, 0.25); }
.browser-ext svg { width: 16px; height: 16px; fill: #FF8A94; }
.browser-body {
  position: relative; height: 250px; overflow: hidden; display: flex; justify-content: flex-end; padding-right: 16px;
  background: radial-gradient(ellipse at 20% 30%, rgba(90, 81, 201, 0.35), transparent 60%), #111115;
}
.browser-body::after {
  content: ""; position: absolute; inset: auto 0 0; height: 70px;
  background: linear-gradient(transparent, #111115);
}
.browser-body img { width: 290px; height: auto; align-self: flex-start; margin-top: -1px; border-radius: 0 0 14px 14px; box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5); }
.dl-copy { display: flex; flex-direction: column; gap: 14px; }

/* FAQ */
.faq { max-width: 860px; }
.faq .section-head { text-align: center; margin-inline: auto; }
.faq-list { margin-top: 34px; border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  position: relative; list-style: none; cursor: pointer;
  padding: 22px 52px 22px 4px;
  font: 700 clamp(1.1rem, 1rem + 0.4vw, 1.3rem)/1.3 var(--font-display); letter-spacing: -0.015em;
  border-radius: 10px;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 34px; height: 34px; margin-top: -17px;
  border-radius: 50%; background: var(--surface-2) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23D91F31' stroke-width='2.4' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: rotate 0.35s var(--spring), background-color 0.2s;
}
.faq-list summary:hover::after { background-color: color-mix(in srgb, var(--red) 14%, transparent); }
.faq-list details[open] summary::after { rotate: 45deg; }
.faq-list details p { padding: 0 52px 24px 4px; color: var(--muted); font-size: 1.05rem; max-width: 42em; }
.faq-list details::details-content {
  block-size: 0; overflow: hidden;
  transition: block-size 0.4s var(--ease), content-visibility 0.4s allow-discrete;
}
.faq-list details[open]::details-content { block-size: auto; }

/* Closing call */
.cta {
  position: relative; overflow: clip; text-align: center;
  padding: clamp(80px, 11vw, 150px) 0;
  background: var(--red-strong); color: var(--cream);
}
.cta::before, .cta::after {
  content: ""; position: absolute; border-radius: 50%; pointer-events: none;
}
.cta::before { width: 420px; aspect-ratio: 1; left: -140px; bottom: -220px; background: var(--sun); opacity: 0.95; animation: drift 12s ease-in-out infinite; }
.cta::after { width: 240px; aspect-ratio: 1; right: -60px; top: -90px; border: 34px solid rgba(255, 246, 236, 0.12); animation: drift 14s ease-in-out -5s infinite reverse; }
.cta-inner { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; }
.cta-mark { width: 88px; height: auto; margin-bottom: 18px; overflow: visible; }
.cta h2 { font-size: clamp(2.8rem, 1.3rem + 5.6vw, 6rem); line-height: 0.92; margin: 0 0 18px; }
.cta p { font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); max-width: 30em; color: var(--cream); }
.cta .ctas { justify-content: center; margin-top: 32px; }
.cta :focus-visible { outline-color: var(--sun); }

/* Footer */
.site-footer { padding: 56px 0 44px; }
.foot { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 26px 40px; align-items: start; }
.foot-brand p { margin-top: 12px; color: var(--muted); font-size: 15px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 24px; justify-content: flex-end; }
.foot-links a { color: var(--muted); text-decoration: none; font-weight: 550; font-size: 15px; }
.foot-links a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.fine { grid-column: 1 / -1; font-size: 13px; color: var(--muted); max-width: 72em; }
.fine + .fine { margin-top: -14px; }

/* Scroll reveal (only with JavaScript, so nothing stays hidden without it) */
.js .reveal { opacity: 0; translate: 0 30px; transition: opacity 0.9s var(--ease), translate 0.9s var(--ease), box-shadow 0.3s; }
.js .reveal.is-in { opacity: 1; translate: 0 0; }
.js .bento .reveal:nth-child(2), .js .dl-grid .reveal:nth-child(2) { transition-delay: 0.08s; }
.js .bento .reveal:nth-child(3) { transition-delay: 0.04s; }
.js .bento .reveal:nth-child(4) { transition-delay: 0.12s; }
.js .bento .reveal:nth-child(5) { transition-delay: 0.2s; }

/* 404 */
.lost {
  min-height: 100vh; min-height: 100dvh; padding: 40px 24px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center;
}
.lost-mark { width: 84px; height: auto; margin-bottom: 26px; overflow: visible; }
.lost-mark .logo-dot { animation: logo-hop 2.8s var(--ease) 0.6s infinite; }
.lost .display { font-size: clamp(2.6rem, 1.4rem + 5vw, 5rem); }
.lost .ctas { justify-content: center; }

/* Theme switch: the new theme grows out of the button */
::view-transition-old(root), ::view-transition-new(root) { animation: none; mix-blend-mode: normal; }

/* Confetti */
.confetti { position: fixed; z-index: 90; width: 10px; height: 10px; border-radius: 50%; pointer-events: none; }

/* Motion */
@keyframes dot-hop {
  0%, 60%, 100% { transform: translateY(0) scale(1, 1); }
  68% { transform: translateY(-0.32em) scale(0.92, 1.08); }
  80% { transform: translateY(0) scale(1.18, 0.82); }
  88% { transform: translateY(-0.07em) scale(0.97, 1.03); }
}
.brand:hover .logo-dot { animation: logo-hop 0.9s var(--ease); }
.cta-mark .logo-dot { animation: logo-hop 2.8s var(--ease) 1s infinite; }
@keyframes logo-hop {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  30% { transform: translateY(-38%) scale(0.92, 1.08); }
  60% { transform: translateY(0) scale(1.16, 0.84); }
  80% { transform: translateY(-6%) scale(0.98, 1.02); }
}
@keyframes hop-small { 0%, 70%, 100% { translate: 0 0; } 80% { translate: 0 -5px; } 90% { translate: 0 0; } }
@keyframes ping { 0% { scale: 0.6; opacity: 0.9; } 80%, 100% { scale: 1.8; opacity: 0; } }
@keyframes hint { 0% { scale: 0.96; opacity: 0.95; } 70%, 100% { scale: 1.12; opacity: 0; } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-9px); } }
@keyframes drift { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(-14px, 12px); } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes ring { to { stroke-dashoffset: 0; } }
@keyframes pop { 40% { scale: 1.2; } 100% { scale: 1; } }
@keyframes rise { from { opacity: 0; translate: 0 10px; } to { opacity: 1; translate: 0 0; } }
@keyframes tick { from { translate: 0 -0.25em; opacity: 0.2; } to { translate: 0 0; opacity: 1; } }
@keyframes flip-in { 0% { transform: rotateX(90deg); } 100% { transform: rotateX(0); } }
@keyframes flow { from { top: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 5px); opacity: 0; } }
@keyframes spin { to { rotate: 360deg; } }

/* Narrower screens */
@media (max-width: 1080px) and (min-width: 921px) {
  .float-note { left: -30%; width: 228px; }
  .float-grade { right: -24%; }
  .float-sticker { left: -22%; }
}
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .stage { margin-top: 64px; }
  .hero-copy { text-align: center; display: flex; flex-direction: column; align-items: center; }
  .lede { margin-inline: auto; }
  .ctas, .trust { justify-content: center; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); }
  .feature.flip .feature-copy { order: 0; }
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card-schedule { grid-column: 1 / -1; }
  .privacy-card { grid-template-columns: minmax(0, 1fr); }
  .flow { grid-template-columns: repeat(5, auto); align-items: center; justify-content: center; gap: 0; }
  .flow-line { width: 56px; height: 2px; margin: 0 10px 30px; background: repeating-linear-gradient(to right, rgba(255, 246, 236, 0.35) 0 5px, transparent 5px 10px); }
  .flow-line-cut { background: repeating-linear-gradient(to right, rgba(255, 246, 236, 0.16) 0 5px, transparent 5px 10px); }
  .flow-line i { top: 50%; left: 0; margin: -4.5px 0 0 0; animation-name: flow-x; }
  .flow-node { font-size: 13.5px; max-width: 8.5em; }
  .dl-grid { grid-template-columns: minmax(0, 1fr); }
}
@keyframes flow-x { from { left: -4px; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 5px); opacity: 0; } }
@media (max-width: 640px) {
  :root { --screen-w: 238px; --screen-r: 34px; --bezel: 9px; }
  body { font-size: 16px; }
  .wrap { padding-inline: 16px; }
  .rename-bar { font-size: 13px; }
  .rename-more { display: none; }
  .nav { height: 60px; gap: 12px; }
  .brand-icon { width: 32px; height: 32px; }
  .brand-word { height: 22px; }
  .theme-toggle { width: 38px; height: 38px; }
  .display { margin: 18px 0; }
  .float-note { width: 196px; left: -12%; top: -8%; padding: 9px 10px; font-size: 12px; }
  .float-note .note-icon { width: 28px; height: 28px; border-radius: 7px; }
  .float-note .note-text strong { font-size: 12.5px; }
  .float-grade { right: -14%; top: 60%; padding: 8px 12px 8px 8px; }
  .grade-ring { width: 34px; height: 34px; }
  .grade-ring span { width: 27px; height: 27px; }
  .float-grade strong { font-size: 18px; }
  .float-sticker { left: -10%; bottom: 1%; font-size: 13px; padding: 9px 12px; }
  .screen-tabs button { padding: 9px 11px; font-size: 13.5px; }
  .bento { grid-template-columns: minmax(0, 1fr); }
  .card-schedule { grid-template-columns: minmax(0, 1fr); }
  .card { padding: 22px; }
  .todo-list label { grid-template-columns: 26px 4px minmax(0, 1fr); }
  .todo-list .when { grid-column: 3; margin-top: -8px; font-size: 13.5px; }
  .wi-row { grid-template-columns: minmax(0, 1fr) 46px; gap: 4px 12px; }
  .wi-row input[type="range"] { grid-column: 1 / -1; grid-row: 2; }
  .wi-row output { grid-row: 1; grid-column: 2; }
  .wi-ring { width: 74px; height: 74px; }
  .flow-line { width: 26px; margin: 0 6px 30px; }
  .flow-icon { width: 54px; height: 54px; border-radius: 16px; }
  .flow-icon svg { width: 26px; height: 26px; }
  .flow-icon-app, .flow-icon-app svg { width: 60px; height: 60px; }
  .flow-node { font-size: 12.5px; max-width: 7em; }
  .found-item { flex-wrap: wrap; }
  .qr { display: none; }
  .foot { grid-template-columns: minmax(0, 1fr); }
  .foot-links { justify-content: flex-start; }
  .band { padding: 14px 0; }
}
@media (hover: none) and (pointer: coarse) {
  .qr { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
    animation-delay: 0s !important; transition-duration: 0.001ms !important; transition-delay: 0s !important;
  }
  .band-track { animation: none; }
}
