/* ─── MindStep · website ─────────────────────────────────────────────────────
   Same glass system as the app (src/index.css + src/ui/ui.css): frosted white
   cards on a soft gradient, SF Pro, black pill actions, thin rings.
   ─────────────────────────────────────────────────────────────────────────── */

:root {
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro Display',
          'Helvetica Neue', system-ui, sans-serif;

  --ink:   #0E0F13;
  --ink-2: #3B3F48;
  --ink-3: #868B95;
  --ink-4: #B9BDC6;
  --on-bg:   #FFFFFF;
  --on-bg-2: rgba(255, 255, 255, 0.7);

  --card:       rgba(255, 255, 255, 0.86);
  --tray:       rgba(255, 255, 255, 0.52);
  --glass:      rgba(255, 255, 255, 0.22);
  --card-line:  rgba(255, 255, 255, 0.8);
  --hair:       rgba(14, 15, 19, 0.07);
  --card-shadow: 0 30px 60px -28px rgba(18, 26, 70, 0.35), 0 2px 8px rgba(18, 26, 70, 0.06);
  --blur:       blur(28px) saturate(150%);

  --pill: #0B0B0E;
  --pill-text: #FFFFFF;
  --yt: #FF0033;
  --good: #2FB36A;
  --bad: #E5484D;

  --r-card: 28px;
  --r-inner: 18px;
  --r-pill: 999px;
  --pad: 24px;
  --page: #F1F1F4;
  --max: 1160px;
  --side: 32px;

  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --out:  cubic-bezier(0.16, 1, 0.3, 1);
  --t-fast: 0.15s var(--ease);
  --t-base: 0.28s var(--ease);

  /* Mist (default) */
  --hero:
    radial-gradient(70% 45% at 18% 0%, rgba(255, 255, 255, 0.24) 0%, transparent 70%),
    linear-gradient(180deg, #87AAC1 0%, #6B92AE 14%, #6083AB 30%, #6B83B6 44%,
      #A9B5D2 60%, #DFE3EC 78%, #EDEEF2 90%, var(--page) 100%);
  --band:
    linear-gradient(180deg, var(--page) 0%, #DFE3EC 14%, #A9B5D2 36%, #6B83B6 62%, #6083AB 80%, #5A7DA6 100%);
  --accent-ui: #4E6F98;
  --dip:
    linear-gradient(180deg, var(--page) 0%, #DFE3EC 12%, #A9B5D2 30%, #6B83B6 52%, #A9B5D2 76%, #DFE3EC 90%, var(--page) 100%);
}

[data-theme='night'] {
  --hero:
    radial-gradient(70% 34% at 30% 52%, rgba(62, 98, 255, 0.5) 0%, transparent 70%),
    linear-gradient(180deg, #03040A 0%, #060A1E 14%, #0F2380 32%, #3459EC 47%,
      #9DB0F4 64%, #DDE3F6 80%, #EEEFF5 92%, var(--page) 100%);
  --band:
    linear-gradient(180deg, var(--page) 0%, #DDE3F6 14%, #9DB0F4 34%, #3459EC 56%, #0F2380 76%, #060A1E 100%);
  --accent-ui: #3D5BF5;
  --dip:
    linear-gradient(180deg, var(--page) 0%, #DDE3F6 12%, #9DB0F4 28%, #3459EC 48%, #0F2380 60%, #3459EC 74%, #9DB0F4 86%, var(--page) 100%);
}

/* ─── Reset ───────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
html, body { overflow-x: hidden; }
body {
  background: var(--page);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg, video { max-width: 100%; display: block; }
button, input { font-family: inherit; font-size: inherit; color: inherit; }
button { background: none; border: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid var(--accent-ui); outline-offset: 3px; border-radius: 6px; }
::selection { background: rgba(78, 111, 152, 0.25); }

.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--side); }
.glyph { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }

/* ─── Shared pieces (mirroring the app) ───────────────────────────────────── */

.pill {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px;
  border-radius: var(--r-pill);
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  white-space: nowrap;
  transition: transform var(--t-fast), opacity var(--t-fast), background var(--t-fast);
}
.pill:active { transform: scale(0.97); }
.pill--dark  { background: var(--pill); color: var(--pill-text); }
.pill--dark:hover { background: #24252B; }
.pill--glass {
  background: var(--glass); color: var(--on-bg);
  border: 1px solid rgba(255, 255, 255, 0.35);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.pill--glass:hover { background: rgba(255, 255, 255, 0.32); }
.pill--light { background: rgba(14, 15, 19, 0.06); color: var(--ink); }
.pill--light:hover { background: rgba(14, 15, 19, 0.1); }
.pill--white { background: #fff; color: var(--ink); }
.pill--block { width: 100%; min-height: 52px; }
.pill--sm { min-height: 38px; padding: 0 16px; font-size: 14px; }
.pill.has-lead { padding-left: 8px; }
.pill-icon {
  width: 30px; height: 30px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255, 255, 255, 0.14);
}
.pill-trail { font-weight: 400; opacity: 0.55; }

.yt {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  background: #fff;
}
.yt svg { width: 17px; height: 12px; }

.card {
  position: relative;
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: var(--r-card);
  padding: var(--pad);
  box-shadow: var(--card-shadow);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  color: var(--ink);
}
.tray {
  background: var(--tray);
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: var(--r-card);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 20px 40px -24px rgba(18, 26, 70, 0.25);
}
.small { font-size: 13px; color: var(--ink-3); }
.label { font-size: 14px; color: var(--ink-3); }
.kbd {
  display: inline-flex; align-items: center;
  padding: 3px 8px; border-radius: 8px;
  background: rgba(14, 15, 19, 0.06);
  font: 500 12px/1.3 ui-monospace, 'SF Mono', Menlo, monospace;
  color: var(--ink-2);
  letter-spacing: 0;
}
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-flex; gap: 6px; align-items: baseline;
  padding: 6px 11px; border-radius: 12px;
  background: rgba(14, 15, 19, 0.045);
  font-size: 13px; color: var(--ink-2);
}
.chip b { font-weight: 600; color: var(--ink); }
.ts {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 500; color: var(--ink-2);
}
.ts::before {
  content: ''; width: 16px; height: 11px; border-radius: 3.5px;
  background: var(--yt) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 11'%3E%3Cpath d='M6.5 3l4 2.5-4 2.5z' fill='white'/%3E%3C/svg%3E") center/100% no-repeat;
}

/* ring (shared by phone + sections) */
.ring { position: relative; display: inline-block; flex-shrink: 0; vertical-align: middle; }
.ring svg { transform: rotate(-90deg); }
.ring circle { fill: none; }
.ring .track { stroke: rgba(14, 15, 19, 0.08); }
.ring .fill  { stroke: var(--ink); stroke-linecap: round; transition: stroke-dashoffset 1.4s var(--out); }
.ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center;
}
.ring-value { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }

/* segmented (frost) */
.seg {
  display: inline-flex; padding: 3px; gap: 2px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.7);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.seg button {
  min-height: 34px; padding: 0 16px;
  border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--ink-2);
  transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast);
}
.seg button[aria-pressed='true'], .seg button[aria-selected='true'] {
  background: #fff; color: var(--ink);
  box-shadow: 0 4px 12px -6px rgba(18, 26, 70, 0.35);
}
.seg--glass { background: var(--glass); border-color: rgba(255, 255, 255, 0.3); }
.seg--glass button { color: var(--on-bg-2); }
.seg--glass button[aria-pressed='true'] { color: var(--ink); }

/* logo */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--on-bg); }
.logo-badge {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.28);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.logo-badge svg { width: 24px; height: 24px; }
.logo-word { font-size: 17px; font-weight: 600; letter-spacing: -0.02em; }

/* ─── Nav ─────────────────────────────────────────────────────────────────── */

.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background var(--t-base), box-shadow var(--t-base), backdrop-filter var(--t-base);
}
.nav-inner { display: flex; align-items: center; gap: 24px; height: 76px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a {
  padding: 8px 14px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 500; color: var(--on-bg-2);
  transition: color var(--t-fast), background var(--t-fast);
}
.nav-links a:hover { color: var(--on-bg); background: rgba(255, 255, 255, 0.12); }
.nav .pill { min-height: 40px; padding: 0 18px; font-size: 14px; }
.nav.is-solid {
  background: rgba(241, 241, 244, 0.72);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  box-shadow: 0 1px 0 var(--hair);
}
.nav.is-solid .logo, .nav.is-solid .nav-links a { color: var(--ink); }
.nav.is-solid .nav-links a { color: var(--ink-3); }
.nav.is-solid .nav-links a:hover { color: var(--ink); background: rgba(14, 15, 19, 0.05); }
.nav.is-solid .logo-badge { background: var(--pill); border-color: transparent; color: #fff; }

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

.hero {
  position: relative;
  background: var(--hero);
  padding: 150px 0 110px;
  overflow: hidden;
}
.hero-grid {
  display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 40px; align-items: start;
}
.hero-copy { padding-top: 40px; color: var(--on-bg); }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 8px; border-radius: var(--r-pill);
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  font-size: 13px; font-weight: 500; color: var(--on-bg);
}
.eyebrow i {
  font-style: normal; padding: 2px 8px; border-radius: var(--r-pill);
  background: #fff; color: var(--ink); font-size: 11px; font-weight: 600;
}
.hero h1 {
  margin: 28px 0 22px;
  font-size: clamp(48px, 7.4vw, 92px);
  font-weight: 500;
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.hero h1 span { color: var(--on-bg-2); }
.hero-sub {
  max-width: 470px;
  font-size: 19px; line-height: 1.45; color: rgba(255, 255, 255, 0.86);
  letter-spacing: -0.015em;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 34px; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--on-bg-2); }

.hero-stage { position: relative; display: flex; justify-content: center; }

/* floating cards beside the phone */
.float {
  position: absolute; z-index: 3;
  width: 268px; padding: 18px;
  border-radius: 24px;
  animation: bob 7s ease-in-out infinite;
}
.float--step { left: calc(50% - 372px); top: 430px; width: 250px; }
.float--build { left: calc(50% + 116px); top: 560px; width: 236px; animation-delay: -3s; }
.float-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.float h4 { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.3; margin-bottom: 12px; }
.float .kbd { margin-top: 12px; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

.phases { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.phase { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--ink-2); }
.phase-dot {
  width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--ink); color: #fff;
}
.phase-dot .glyph { width: 11px; height: 11px; stroke-width: 2; }
.phase.is-live .phase-dot { background: none; }
.phase.is-wait { color: var(--ink-4); }
.phase.is-wait .phase-dot { background: rgba(14, 15, 19, 0.08); }

.spinner {
  width: 16px; height: 16px; border-radius: 50%;
  border: 2px solid rgba(14, 15, 19, 0.12); border-top-color: var(--ink);
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── Phone (renders at true app size, scaled) ────────────────────────────── */

.phone-wrap {
  --ps: 0.78;
  position: relative; z-index: 2;
  width: calc(390px * var(--ps)); height: calc(844px * var(--ps));
  flex-shrink: 0;
}
.phone {
  position: absolute; top: 0; left: 0;
  width: 390px; height: 844px;
  transform: scale(var(--ps)); transform-origin: 0 0;
  border-radius: 58px;
  padding: 12px;
  background: linear-gradient(145deg, #2A2C33, #0B0B0E 40%, #1C1D22);
  box-shadow:
    0 60px 120px -40px rgba(10, 18, 60, 0.55),
    0 30px 60px -30px rgba(10, 18, 60, 0.4),
    inset 0 0 0 1.5px rgba(255, 255, 255, 0.12);
}
.screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 47px; overflow: hidden;
  background: var(--hero);
  font-size: 15px; line-height: 1.45;
}
.screen-scroll { position: absolute; inset: 0; padding: 0 16px 120px; }
.island {
  position: absolute; top: 11px; left: 50%; transform: translateX(-50%); z-index: 5;
  width: 120px; height: 35px; border-radius: 20px; background: #000;
}
.status {
  display: flex; justify-content: space-between; align-items: center;
  height: 54px; padding: 4px 30px 0 34px;
  font-size: 16px; font-weight: 600; color: #fff;
}
.status-icons { display: flex; gap: 6px; align-items: center; }
.status-icons i { display: block; background: #fff; border-radius: 2px; }

.ph-head { display: flex; justify-content: space-between; align-items: center; padding: 6px 8px 0; color: #fff; }
.ph-head .logo-badge { width: 44px; height: 44px; }
.ph-round {
  width: 44px; height: 44px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.25);
  color: #fff;
}
.ph-title { padding: 18px 8px 18px; color: #fff; }
.ph-title b { display: block; font-size: 30px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; }
.ph-title span { font-size: 15px; color: rgba(255, 255, 255, 0.66); }

.week { padding: 16px 10px 10px; border-bottom: 1px solid rgba(255, 255, 255, 0.5); }
.week-head { display: flex; justify-content: space-between; padding: 0 14px 10px; font-size: 14px; color: var(--ink-3); }
.week-head b { font-weight: 500; color: var(--ink); }
.week-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.wd {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 12px 0 10px; border-radius: var(--r-inner);
}
.wd.is-on {
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 20px -10px rgba(18, 26, 70, 0.35);
}
.wd span { font-size: 13px; color: var(--ink-3); }
.wd b { font-size: 18px; font-weight: 500; letter-spacing: -0.01em; }
.wd i { width: 4px; height: 4px; border-radius: 50%; background: transparent; }
.wd.has-dot i { background: var(--ink); }

.ph-progress { display: flex; align-items: center; gap: 10px; padding: 16px 24px 14px; font-size: 14px; }
.ph-progress span { flex: 1; font-weight: 500; }
.ph-progress b { font-weight: 600; }

.wins { display: flex; flex-direction: column; gap: 10px; padding: 0 0 2px; }
.win {
  background: var(--card);
  border: 1px solid var(--card-line);
  border-radius: 24px;
  box-shadow: 0 10px 26px -18px rgba(18, 26, 70, 0.35), 0 1px 3px rgba(18, 26, 70, 0.05);
}
.win.is-focus { background: rgba(255, 255, 255, 0.95); box-shadow: var(--card-shadow); margin: 6px 0; }
.win-bar { display: flex; align-items: center; gap: 12px; padding: 16px; }
.win-thumb { width: 46px; height: 46px; border-radius: 14px; overflow: hidden; flex-shrink: 0; background: rgba(14, 15, 19, 0.06); }
.win-thumb img { width: 100%; height: 100%; object-fit: cover; }
.win.is-building .win-thumb img { filter: saturate(0.4); opacity: 0.8; }
.win-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.win-label {
  align-self: flex-start; margin-bottom: 4px; padding: 3px 9px;
  border-radius: var(--r-pill); background: var(--pill); color: #fff;
  font-size: 11px; font-weight: 600; letter-spacing: 0;
}
.win-label--soft { background: rgba(14, 15, 19, 0.08); color: var(--ink-2); }
.win-title { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win-meta { font-size: 13px; color: var(--ink-3); }
.win-pct { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.win-pct span { font-size: 11px; color: var(--ink-3); }
.win-more { padding: 0 24px 20px; }
.win-more p { font-size: 14px; color: var(--ink-2); }
.win-actions { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.win-actions .pill { min-height: 46px; padding-right: 22px; }
.time { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; color: var(--ink-3); }
.win-open { display: block; margin-top: 14px; font-size: 14px; font-weight: 500; }

.composer {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%); z-index: 4;
  width: 176px; height: 46px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 10px 30px -10px rgba(18, 26, 70, 0.35);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  font-size: 15px; color: var(--ink-3);
}
.composer::before {
  content: ''; position: absolute; inset: -1px; z-index: -1; border-radius: inherit;
  background: conic-gradient(from 200deg, rgba(120, 160, 255, 0.55), rgba(255, 170, 220, 0.4), rgba(140, 240, 220, 0.45), rgba(120, 160, 255, 0.55));
  filter: blur(10px); opacity: 0.55;
}
.home-bar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: rgba(14, 15, 19, 0.85); z-index: 6; }

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

section { position: relative; }
.sec { padding: 140px 0; }
.sec-head { max-width: 760px; margin-bottom: 64px; }
.sec-head--center { margin-left: auto; margin-right: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 500; color: var(--ink-3);
  margin-bottom: 18px;
}
.kicker b { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.h2 {
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 500; line-height: 1.03; letter-spacing: -0.04em;
}
.h2 span { color: var(--ink-3); }
.lede { margin-top: 22px; font-size: 19px; line-height: 1.5; color: var(--ink-2); max-width: 600px; }
.sec-head--center .lede { margin-left: auto; margin-right: auto; }

/* statement */
.statement { padding: 70px 0 40px; }
.statement p {
  font-size: clamp(30px, 4.2vw, 52px);
  font-weight: 500; line-height: 1.12; letter-spacing: -0.035em;
  max-width: 980px;
}
.statement p span { color: var(--ink-4); transition: color 0.6s var(--ease); }
.statement p span.is-lit { color: var(--ink); }

/* how it works */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.step { display: flex; flex-direction: column; min-height: 460px; padding: 28px; }
.step-num { font-size: 13px; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; }
.step h3 { margin: 10px 0 8px; font-size: 24px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.15; }
.step p { font-size: 15px; color: var(--ink-2); }
.step-vis {
  margin-top: auto; padding-top: 28px;
}
.vis-box {
  border-radius: 20px; padding: 16px;
  background: linear-gradient(180deg, #6B83B6, #A9B5D2);
}
[data-theme='night'] .vis-box { background: linear-gradient(180deg, #0F2380, #3459EC 70%, #9DB0F4); }
.sharesheet { background: rgba(246, 247, 249, 0.96); border-radius: 16px; padding: 14px 12px 12px; }
.sharesheet-link { display: flex; gap: 10px; align-items: center; padding: 0 4px 12px; border-bottom: 1px solid var(--hair); }
.sharesheet-link img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; }
.sharesheet-link b { display: block; font-size: 13px; font-weight: 600; line-height: 1.25; }
.sharesheet-apps { display: flex; justify-content: space-between; padding: 14px 4px 0; }
.app-ic { display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 10.5px; color: var(--ink-2); width: 56px; }
.app-ic i {
  width: 50px; height: 50px; border-radius: 13px; display: flex; align-items: center; justify-content: center;
  background: #DADDE3;
}
.app-ic.is-ms i {
  background: linear-gradient(180deg, #87AAC1, #6083AB 45%, #A9B5D2);
  box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink);
  animation: pulse 2.4s var(--ease) infinite;
}
.app-ic.is-ms i svg { width: 30px; height: 30px; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--ink); } 50% { box-shadow: 0 0 0 3px #fff, 0 0 0 8px rgba(14,15,19,0.18); } }
.vis-win { background: var(--card); border-radius: 18px; padding: 14px; }
.vis-win .win-bar { padding: 0 0 12px; border-bottom: 1px solid var(--hair); }
.vis-learn { display: flex; flex-direction: column; gap: 10px; }
.vis-learn .card { padding: 16px; border-radius: 18px; box-shadow: none; }
.vis-learn-row { display: flex; align-items: center; gap: 14px; }
.vis-learn-row b { display: block; font-size: 15px; font-weight: 500; }

/* course showcase */
.course-grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; align-items: start; }
.inside { margin-top: 36px; display: flex; flex-direction: column; }
.inside li {
  list-style: none; display: grid; grid-template-columns: 28px 1fr; gap: 12px;
  padding: 16px 0; border-top: 1px solid var(--hair);
}
.inside li:last-child { border-bottom: 1px solid var(--hair); }
.inside .n { font-size: 13px; font-weight: 600; color: var(--ink-3); padding-top: 2px; font-variant-numeric: tabular-nums; }
.inside b { display: block; font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.inside span { font-size: 14px; color: var(--ink-3); }

.course-demo {
  position: sticky; top: 100px;
  border-radius: 34px; padding: 14px;
  background: var(--hero);
  box-shadow: 0 50px 100px -50px rgba(18, 26, 70, 0.6);
}
.cd-head { display: flex; gap: 14px; align-items: center; padding: 14px 14px 18px; color: #fff; }
.cd-head img { width: 64px; height: 64px; border-radius: 18px; object-fit: cover; }
.cd-head b { display: block; font-size: 19px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.2; }
.cd-head span { font-size: 13px; color: rgba(255, 255, 255, 0.7); }
.cd-head .ring { margin-left: auto; }
.cd-head .ring .track { stroke: rgba(255, 255, 255, 0.2); }
.cd-head .ring .fill { stroke: #fff; }
.cd-head .ring-value { font-size: 13px; color: #fff; }
.cd-tabs { display: flex; padding: 0 4px 12px; }
.cd-tabs .seg { width: 100%; }
.cd-tabs .seg button { flex: 1; padding: 0 8px; }
.cd-pane { display: none; flex-direction: column; gap: 10px; min-height: 560px; }
.cd-pane.is-on { display: flex; animation: paneIn 0.45s var(--out); }
@keyframes paneIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.cd-pane .card { padding: 22px; border-radius: 24px; }

.lesson-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.lesson h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; margin: 8px 0 14px; }
.goal { padding: 12px 14px; border-radius: 16px; background: rgba(14, 15, 19, 0.04); font-size: 14px; color: var(--ink-2); margin-bottom: 14px; }
.goal b { font-weight: 600; color: var(--ink); margin-right: 4px; }
.lesson p + p { margin-top: 10px; }
.lesson p { font-size: 15px; color: var(--ink-2); }
.concepts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.concept { padding: 12px; border-radius: 16px; background: rgba(14, 15, 19, 0.04); }
.concept b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 3px; }
.concept span { font-size: 12.5px; line-height: 1.4; color: var(--ink-3); display: block; }
.callout { display: flex; gap: 12px; padding: 14px 16px; border-radius: 18px; font-size: 14px; color: var(--ink-2); }
.callout b { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.callout--warn { background: rgba(229, 72, 77, 0.07); }
.callout--tip { background: rgba(47, 179, 106, 0.08); }
.callout--fix { background: rgba(255, 184, 0, 0.12); }

.do { display: flex; flex-direction: column; }
.do-row {
  display: grid; grid-template-columns: 30px 1fr; gap: 12px;
  padding: 16px 0; border-top: 1px solid var(--hair); text-align: left; width: 100%;
}
.do-row:first-of-type { border-top: 0; padding-top: 4px; }
.do-check {
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink-4); color: transparent;
  transition: background var(--t-fast), border-color var(--t-fast), color var(--t-fast);
}
.do-row.is-done .do-check { background: var(--ink); border-color: var(--ink); color: #fff; }
.do-row.is-done .do-title { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--ink-4); }
.do-title { font-size: 16px; font-weight: 500; letter-spacing: -0.015em; }
.do-detail { font-size: 14px; color: var(--ink-2); margin: 3px 0 10px; }
.do-meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; }
.progress-bar { height: 4px; border-radius: 2px; background: rgba(14, 15, 19, 0.08); overflow: hidden; margin-top: 4px; }
.progress-bar i { display: block; height: 100%; background: var(--ink); border-radius: 2px; transition: width 0.5s var(--out); }
.steps-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }

.quiz-q { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; line-height: 1.3; margin: 8px 0 16px; }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opt {
  display: flex; gap: 12px; align-items: flex-start; text-align: left;
  padding: 14px 16px; border-radius: 16px;
  background: rgba(14, 15, 19, 0.04);
  font-size: 14.5px; color: var(--ink-2);
  transition: background var(--t-fast), color var(--t-fast);
}
.quiz-opt:hover { background: rgba(14, 15, 19, 0.07); }
.quiz-opt i {
  font-style: normal; width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--ink-4); font-size: 11px; font-weight: 600;
}
.quiz-opt.is-right { background: rgba(47, 179, 106, 0.12); color: var(--ink); }
.quiz-opt.is-right i { background: var(--good); border-color: var(--good); color: #fff; }
.quiz-opt.is-wrong { background: rgba(229, 72, 77, 0.1); }
.quiz-opt.is-wrong i { border-color: var(--bad); color: var(--bad); }
.quiz-why { display: none; margin-top: 14px; font-size: 14px; color: var(--ink-2); }
.quiz-why.is-on { display: block; animation: paneIn 0.4s var(--out); }

.flash { perspective: 1000px; cursor: pointer; }
.flash-inner { position: relative; height: 150px; transition: transform 0.7s var(--out); transform-style: preserve-3d; }
.flash.is-flipped .flash-inner { transform: rotateY(180deg); }
.flash-face {
  position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center; gap: 6px;
  border-radius: 24px; padding: 20px;
  background: var(--card); border: 1px solid var(--card-line);
}
.flash-face b { font-size: 18px; font-weight: 500; letter-spacing: -0.02em; }
.flash-back { transform: rotateY(180deg); background: var(--pill); color: #fff; border-color: transparent; }
.flash-back .small { color: rgba(255, 255, 255, 0.55); }

.cheat { display: flex; flex-direction: column; }
.cheat-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.cheat-row:first-child { border-top: 0; padding-top: 4px; }
.cheat-row .kbd { white-space: normal; text-align: right; max-width: 60%; }
.gloss { display: flex; flex-direction: column; gap: 12px; }
.gloss div { font-size: 14px; color: var(--ink-2); }
.gloss b { font-weight: 600; color: var(--ink); margin-right: 6px; }

/* features bento */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > .card { padding: 30px; display: flex; flex-direction: column; overflow: hidden; }
.b-3 { grid-column: span 3; }
.b-2 { grid-column: span 2; }
.b-4 { grid-column: span 4; }
.bento h3 { font-size: 22px; font-weight: 500; letter-spacing: -0.025em; line-height: 1.2; margin-bottom: 8px; }
.bento h3 + p { font-size: 15px; color: var(--ink-2); max-width: 440px; }
.b-vis { margin-top: auto; padding-top: 28px; }

.follow-demo { border-radius: 24px; padding: 22px; background: var(--pill); color: #fff; }
.follow-demo .small { color: rgba(255, 255, 255, 0.5); }
.follow-demo h4 { font-size: 20px; font-weight: 500; letter-spacing: -0.02em; margin: 6px 0 12px; }
.follow-demo .chip { background: rgba(255, 255, 255, 0.1); color: rgba(255, 255, 255, 0.75); }
.follow-demo .chip b { color: #fff; }
.follow-demo .kbd { background: rgba(255, 255, 255, 0.12); color: #fff; }
.follow-bar { display: flex; gap: 4px; margin-bottom: 18px; }
.follow-bar i { flex: 1; height: 3px; border-radius: 2px; background: rgba(255, 255, 255, 0.18); }
.follow-bar i.on { background: #fff; }
.follow-actions { display: flex; gap: 8px; margin-top: 20px; }
.follow-actions .pill { flex: 1; min-height: 44px; }

.fix-demo { display: flex; flex-direction: column; gap: 10px; }
.fix-claim { padding: 14px 16px; border-radius: 18px; background: rgba(14, 15, 19, 0.04); font-size: 14px; color: var(--ink-3); }
.fix-claim s { color: var(--ink-2); text-decoration-color: var(--bad); text-decoration-thickness: 1.5px; }

.prog-demo { display: flex; flex-direction: column; gap: 8px; }
.prog-mod { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 18px; background: rgba(14, 15, 19, 0.04); }
.prog-mod img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; }
.prog-mod b { display: block; font-size: 14px; font-weight: 500; }
.prog-num { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; display: flex; align-items: center; justify-content: center; background: var(--ink); color: #fff; font-size: 12px; font-weight: 600; }
.prog-link { display: flex; align-items: center; gap: 8px; padding: 2px 0 2px 24px; font-size: 13px; color: var(--ink-3); }
.prog-link::before { content: ''; width: 1.5px; height: 18px; background: var(--ink-4); margin-right: 10px; }
.prog-out { display: flex; align-items: center; gap: 12px; margin-top: 6px; padding: 12px; border-radius: 18px; border: 1.5px dashed rgba(14, 15, 19, 0.12); font-size: 13px; color: var(--ink-3); }
.prog-out img { width: 44px; height: 44px; border-radius: 12px; object-fit: cover; filter: grayscale(1); opacity: 0.5; }

.learn-demo { display: flex; flex-direction: column; gap: 10px; }
.learn-input {
  display: flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 6px 0 20px; border-radius: var(--r-pill);
  background: #fff; box-shadow: 0 10px 30px -14px rgba(18, 26, 70, 0.35);
  font-size: 15px;
}
.learn-input > span:first-child { flex: 1; }
.learn-input .caret { display: inline-block; width: 1.5px; height: 18px; background: var(--accent-ui); vertical-align: -3px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.learn-send { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--pill); color: #fff; }
.stage { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 18px; background: rgba(14, 15, 19, 0.04); }
.stage-n { font-size: 12px; font-weight: 600; color: var(--ink-3); width: 54px; flex-shrink: 0; padding-top: 2px; }
.stage b { display: block; font-size: 14px; font-weight: 500; }
.stage span { font-size: 13px; color: var(--ink-3); }

.week-demo { padding: 14px 6px 6px; border-radius: 24px; background: var(--tray); border: 1px solid rgba(255,255,255,0.6); }
.week-demo .wd { padding: 10px 0 8px; }
.stat-row { display: flex; gap: 10px; margin-top: 10px; }
.stat { flex: 1; padding: 14px 16px; border-radius: 18px; background: rgba(14, 15, 19, 0.04); }
.stat b { display: block; font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }

.sharecard {
  aspect-ratio: 4 / 5; max-width: 230px; margin: 0 auto;
  border-radius: 22px; padding: 20px;
  background: var(--hero);
  display: flex; flex-direction: column; color: #fff;
  box-shadow: 0 30px 60px -30px rgba(18, 26, 70, 0.6);
  transform: rotate(-3deg);
}
.sharecard .logo { gap: 6px; }
.sharecard .logo-badge { width: 26px; height: 26px; }
.sharecard .logo-badge svg { width: 16px; height: 16px; }
.sharecard .logo-word { font-size: 12px; }
.sharecard-body { margin-top: auto; background: rgba(255, 255, 255, 0.9); color: var(--ink); border-radius: 16px; padding: 14px; }
.sharecard-body .small { font-size: 10.5px; }
.sharecard-body b { display: block; font-size: 14px; font-weight: 500; line-height: 1.25; margin: 4px 0 8px; letter-spacing: -0.015em; }
.sharecard-body .kbd { font-size: 10px; }

.ask-demo { display: flex; flex-direction: column; gap: 8px; }
.bubble { max-width: 86%; padding: 12px 16px; border-radius: 20px; font-size: 14px; line-height: 1.4; }
.bubble--me { align-self: flex-end; background: var(--pill); color: #fff; border-bottom-right-radius: 6px; }
.bubble--ai { align-self: flex-start; background: rgba(14, 15, 19, 0.05); color: var(--ink-2); border-bottom-left-radius: 6px; }
.bubble--ai .src { display: block; margin-top: 6px; font-size: 12px; color: var(--ink-3); }

.private-demo { display: flex; flex-direction: column; gap: 10px; }
.private-row { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--ink-2); }
.private-row i { width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: rgba(14, 15, 19, 0.05); color: var(--ink); flex-shrink: 0; }

/* library strip */
.library-strip {
  --inset: max(var(--side), calc((100vw - var(--max)) / 2 + var(--side)));
  display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 var(--inset);
  padding: 4px var(--inset) 30px; scrollbar-width: none;
}
.library-strip::after { content: ''; flex: 0 0 1px; }
.library-strip::-webkit-scrollbar { display: none; }
.lib-card { scroll-snap-align: start; flex: 0 0 300px; padding: 0; overflow: hidden; }
.lib-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.lib-card-body { padding: 18px 20px 20px; }
.lib-card-body b { display: block; font-size: 16px; font-weight: 500; letter-spacing: -0.015em; line-height: 1.25; margin: 4px 0 12px; }
.lib-card-foot { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-3); margin-bottom: 8px; }

/* pricing */
.pricing { background: var(--dip); padding-bottom: 180px; }
.pricing .h2, .pricing .lede, .pricing .kicker { position: relative; }
.price-toggle { display: flex; justify-content: center; margin: -24px 0 40px; }
.price-toggle .save { margin-left: 6px; font-size: 11px; font-weight: 600; padding: 2px 7px; border-radius: var(--r-pill); background: rgba(47, 179, 106, 0.15); color: #1C7A46; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; padding: 32px; }
.plan-name { display: flex; justify-content: space-between; align-items: center; font-size: 15px; font-weight: 600; }
.plan-tag { font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill); background: rgba(255, 255, 255, 0.14); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 22px 0 4px; }
.plan-price b { font-size: 56px; font-weight: 500; letter-spacing: -0.045em; line-height: 1; font-variant-numeric: tabular-nums; }
.plan-price > span { font-size: 15px; color: var(--ink-3); }
.plan-bill { font-size: 13px; color: var(--ink-3); min-height: 20px; }
.plan-desc { margin: 18px 0 22px; font-size: 15px; color: var(--ink-2); }
.plan ul { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.plan li { display: flex; gap: 10px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.plan li .glyph { margin-top: 2px; color: var(--ink); }
.plan li.is-soon { color: var(--ink-3); }
.plan li.is-soon em { font-style: normal; font-size: 11px; font-weight: 600; padding: 1px 7px; margin-left: 4px; border-radius: var(--r-pill); background: rgba(14, 15, 19, 0.06); vertical-align: 1px; }
.plan .pill { margin-top: auto; }
.plan--pro { background: rgba(11, 11, 14, 0.94); color: #fff; border-color: rgba(255, 255, 255, 0.08); box-shadow: 0 50px 100px -40px rgba(10, 18, 60, 0.7); }
.plan--pro .plan-price > span, .plan--pro .plan-bill { color: rgba(255, 255, 255, 0.5); }
.plan--pro .plan-desc, .plan--pro li { color: rgba(255, 255, 255, 0.78); }
.plan--pro li .glyph { color: #fff; }
.plan--pro li.is-soon { color: rgba(255, 255, 255, 0.5); }
.plan--pro li.is-soon em { background: rgba(255, 255, 255, 0.12); }
.price-note { margin-top: 28px; text-align: center; font-size: 13px; color: var(--ink-3); }
.price-val { display: inline-block; transition: opacity 0.2s, transform 0.3s var(--out); }
.price-val.is-swap { opacity: 0; transform: translateY(6px); }

/* faq */
.faq { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 56px; }
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq details { border-radius: 24px; padding: 0; overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 24px; font-size: 17px; font-weight: 500; letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .glyph { transition: transform var(--t-base); color: var(--ink-3); }
.faq details[open] summary .glyph { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; font-size: 15px; color: var(--ink-2); max-width: 620px; }

/* final cta */
.final { background: var(--band); padding: 40px 0 0; }
.final-card {
  position: relative; overflow: hidden;
  padding: 80px 40px; border-radius: 40px; text-align: center;
  background: var(--glass); border: 1px solid rgba(255, 255, 255, 0.3);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  color: #fff;
}
.final-card .logo-badge { width: 72px; height: 72px; margin: 0 auto 28px; }
.final-card .logo-badge svg { width: 40px; height: 40px; }
.final-card .h2 { color: #fff; }
.final-card .lede { color: rgba(255, 255, 255, 0.8); margin-left: auto; margin-right: auto; }
.final-card .hero-cta { justify-content: center; }

.foot { background: var(--band); background-size: 100% 1px; background: #5A7DA6; color: rgba(255, 255, 255, 0.7); padding: 80px 0 40px; font-size: 14px; }
[data-theme='night'] .foot { background: #060A1E; }
.foot-grid { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.foot-links { display: flex; gap: 48px; }
.foot-links div { display: flex; flex-direction: column; gap: 10px; }
.foot-links b { color: #fff; font-weight: 500; margin-bottom: 4px; }
.foot-links a:hover { color: #fff; }
.foot-base { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 64px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, 0.16); font-size: 13px; }

/* ─── Onboarding sheet ────────────────────────────────────────────────────── */

.scrim {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  background: rgba(14, 18, 40, 0.35);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 0; pointer-events: none; transition: opacity 0.3s var(--ease);
}
.scrim.is-open { opacity: 1; pointer-events: auto; }
.sheet {
  position: relative; width: 100%; max-width: 520px; max-height: calc(100dvh - 40px); overflow: auto;
  border-radius: 34px; padding: 14px;
  background: var(--hero);
  box-shadow: 0 60px 120px -40px rgba(10, 18, 60, 0.6);
  transform: translateY(24px) scale(0.98); transition: transform 0.45s var(--out);
}
.scrim.is-open .sheet { transform: none; }
.sheet-top { display: flex; align-items: center; justify-content: space-between; padding: 8px 8px 18px; color: #fff; }
.dots { display: flex; gap: 6px; }
.dots i { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, 0.3); transition: background var(--t-base), width var(--t-base); }
.dots i.on { background: #fff; width: 34px; }
.sheet-btn { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--glass); border: 1px solid rgba(255,255,255,0.3); color: #fff; }
.sheet-btn[hidden] { visibility: hidden; display: flex; }
.ob-step { display: none; }
.ob-step.is-on { display: block; animation: paneIn 0.45s var(--out); }
.ob-step .card { padding: 26px; }
.ob-step h3 { font-size: 26px; font-weight: 500; letter-spacing: -0.03em; line-height: 1.12; margin: 6px 0 8px; }
.ob-step h3 + p { font-size: 15px; color: var(--ink-2); margin-bottom: 22px; }
.ob-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ob-chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-pill);
  background: rgba(14, 15, 19, 0.05); font-size: 15px; font-weight: 500; color: var(--ink-2);
  transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast);
}
.ob-chip:active { transform: scale(0.96); }
.ob-chip[aria-pressed='true'] { background: var(--pill); color: #fff; }
.ob-other { margin-top: 14px; width: 100%; height: 50px; padding: 0 18px; border-radius: var(--r-pill); border: 1px solid var(--hair); background: #fff; font-size: 15px; outline: none; }
.ob-other:focus { border-color: var(--accent-ui); box-shadow: 0 0 0 4px rgba(78, 111, 152, 0.15); }
.ob-times { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.ob-time {
  display: flex; flex-direction: column; align-items: flex-start; gap: 2px; text-align: left;
  padding: 18px; border-radius: 20px; background: rgba(14, 15, 19, 0.05);
  transition: background var(--t-fast), color var(--t-fast);
}
.ob-time b { font-size: 22px; font-weight: 500; letter-spacing: -0.02em; }
.ob-time span { font-size: 13px; color: var(--ink-3); }
.ob-time[aria-pressed='true'] { background: var(--pill); color: #fff; }
.ob-time[aria-pressed='true'] span { color: rgba(255, 255, 255, 0.6); }
.ob-actions { margin-top: 22px; }
.plan-preview { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.plan-preview .win { box-shadow: none; background: rgba(14, 15, 19, 0.035); border-color: transparent; }
.plan-preview .win-bar { padding: 12px; }
.ob-sum { display: flex; gap: 8px; margin-bottom: 18px; }
.ob-sum .stat b { font-size: 20px; }
.ob-email { display: flex; gap: 8px; }
.ob-email input { flex: 1; min-width: 0; height: 52px; padding: 0 20px; border-radius: var(--r-pill); border: 1px solid var(--hair); background: #fff; font-size: 16px; outline: none; }
.ob-email input:focus { border-color: var(--accent-ui); box-shadow: 0 0 0 4px rgba(78, 111, 152, 0.15); }
.ob-err { min-height: 20px; margin-top: 8px; font-size: 13px; color: var(--bad); }
.ob-done { text-align: center; padding: 20px 6px 8px; }
.ob-done .ring { display: block; margin: 0 auto 20px; }

/* ─── Scroll reveal ───────────────────────────────────────────────────────── */

.reveal { opacity: 0; transform: translateY(30px) scale(0.985); transition: opacity 0.9s var(--out), transform 1s var(--out); transition-delay: var(--d, 0s); }
.reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .float, .app-ic.is-ms i, .spinner { animation: none; }
  html { scroll-behavior: auto; }
}

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

@media (max-width: 1080px) {
  .float--step { left: calc(50% - 300px); }
  .float--build { left: calc(50% + 90px); }
  .bento .b-2 { grid-column: span 3; }
  .bento .b-4 { grid-column: span 6; }
}
@media (max-width: 920px) {
  :root { --side: 24px; }
  .hero { padding-top: 120px; }
  .hero-grid { grid-template-columns: 1fr; gap: 64px; }
  .hero-copy { padding-top: 10px; }
  .steps { grid-template-columns: 1fr; }
  .step { min-height: 0; }
  .course-grid, .faq { grid-template-columns: 1fr; gap: 40px; }
  .course-demo { position: relative; top: 0; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .nav-links { display: none; }
  .nav-inner > .pill { margin-left: auto; }
  .sec { padding: 100px 0; }
}
@media (max-width: 640px) {
  :root { --side: 16px; }
  .nav-inner { height: 64px; gap: 12px; }
  .nav .seg { display: none; }
  .hero { padding: 100px 0 70px; }
  .hero h1 { font-size: 50px; }
  .hero-sub { font-size: 17px; }
  .hero-cta .pill { flex: 1; }
  .hero-stage { flex-direction: column; align-items: center; }
  .hero-stage .phone-wrap { order: -1; }
  .phone-wrap { --ps: 0.74; }
  .float { position: relative; left: auto; right: auto; top: auto; width: 100%; max-width: 340px; animation: none; margin-top: 12px; }
  .float--build { display: none; }
  .bento > .card { padding: 24px; }
  .bento .b-2, .bento .b-3, .bento .b-4 { grid-column: span 6; }
  .concepts { grid-template-columns: 1fr; }
  .course-demo { padding: 8px; border-radius: 28px; margin: 0 -4px; }
  .cd-tabs .seg button { font-size: 13px; padding: 0 4px; }
  .plan { padding: 26px; }
  .final-card { padding: 56px 22px; border-radius: 32px; }
  .foot-links { gap: 32px; }
  .sheet { padding: 10px; border-radius: 28px; }
  .ob-step .card { padding: 22px; }
  .ob-email { flex-direction: column; }
  .ob-email input { flex: none; }
  .statement { padding: 40px 0 10px; }
  .sec { padding: 84px 0; }
  .sec-head { margin-bottom: 44px; }
}
.prog-ph { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; background: linear-gradient(135deg, #1C1D22, #4E6F98 60%, #A9B5D2); }

/* Night: the top of the gradient is near-black, so primary pills there turn white */
[data-theme='night'] .hero .pill--dark,
[data-theme='night'] .nav:not(.is-solid) .pill--dark { background: #fff; color: var(--ink); }
[data-theme='night'] .hero .pill--dark:hover,
[data-theme='night'] .nav:not(.is-solid) .pill--dark:hover { background: rgba(255, 255, 255, 0.86); }

/* ─── Buddy (the tutor's face) ────────────────────────────────────────────── */
.buddy { display: block; color: var(--ink); overflow: visible; flex-shrink: 0; }
.buddy-eyes, .buddy-body { transform-box: fill-box; transform-origin: center; }
.buddy--idle .buddy-eyes { animation: buddyBlink 5.5s infinite; }
.buddy--thinking .buddy-eyes { animation: buddyLook 1.8s ease-in-out infinite; }
@keyframes buddyBlink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }
@keyframes buddyLook { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-1.4px, -0.3px); } 60% { transform: translate(1.4px, -0.3px); } }
.kicker .buddy { display: inline-block; vertical-align: -5px; }

/* hero phone: the two floating circles */
.ph-fab {
  position: absolute; right: 14px; z-index: 4;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.ph-fab--keys { top: 196px; background: var(--pill); color: #fff; box-shadow: 0 14px 30px -10px rgba(10, 18, 60, 0.55); }
.ph-fab--keys .glyph { stroke-width: 1.5; }
.ph-fab--buddy, .td-fab {
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.42), rgba(255, 255, 255, 0.16));
  border: 1px solid rgba(255, 255, 255, 0.65);
  box-shadow: 0 10px 26px -12px rgba(10, 18, 60, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px) saturate(160%); -webkit-backdrop-filter: blur(6px) saturate(160%);
}
.ph-fab--buddy { top: 262px; }

/* ─── AI tutor section ────────────────────────────────────────────────────── */
.tutor-grid { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.tutor-stage {
  position: sticky; top: 100px;
  border-radius: 34px; padding: 40px 28px 0;
  background: var(--hero);
  box-shadow: 0 50px 100px -50px rgba(18, 26, 70, 0.6);
  overflow: hidden;
}
.td-fab {
  position: absolute; top: 18px; right: 18px;
  width: 54px; height: 54px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  animation: bob 6s ease-in-out infinite;
}
.td-sheet {
  margin-top: 40px;
  background: #F6F7F9; border-radius: 28px 28px 0 0;
  box-shadow: 0 -20px 60px -20px rgba(10, 18, 60, 0.4);
  display: flex; flex-direction: column;
}
.td-head { display: flex; gap: 12px; align-items: flex-start; padding: 22px 22px 6px; }
.td-head .buddy { margin-top: 2px; }
.td-head b { display: block; font-size: 17px; font-weight: 500; letter-spacing: -0.02em; }
.td-scopes { display: flex; gap: 6px; padding: 8px 22px 4px; }
.td-scopes span { padding: 6px 12px; border-radius: var(--r-pill); background: rgba(14, 15, 19, 0.06); font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.td-scopes .is-on { background: var(--pill); color: #fff; }
.td-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 22px 18px; min-height: 520px; }
.td-msg { opacity: 0; transform: translateY(8px); transition: opacity 0.45s var(--out), transform 0.5s var(--out); }
.td-msg.is-on { opacity: 1; transform: none; }
.td-msg.is-gone { display: none; }
.td-user {
  align-self: flex-end; max-width: 84%;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 10px 15px; border-radius: 20px 20px 6px 20px;
  background: var(--pill); color: #fff; font-size: 14.5px; line-height: 1.4;
}
.td-answer { display: flex; flex-direction: column; gap: 6px; }
.td-answer p { font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.td-label { font-size: 11px; font-weight: 600; letter-spacing: 0.03em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.td-setting { display: flex; justify-content: space-between; padding: 10px 14px; border-radius: 14px; background: #fff; font-size: 14px; }
.td-setting span { color: var(--ink-3); }
.td-foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 2px; }
.td-watch { padding: 5px 10px; border-radius: var(--r-pill); background: #fff; box-shadow: inset 0 0 0 1px var(--hair); font-size: 12.5px; font-weight: 600; }
.td-tag { font-size: 12px; color: var(--ink-3); }
.td-think { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-3); }
.td-chips { display: flex; gap: 6px; padding: 10px 22px 4px; border-top: 1px solid var(--hair); overflow: hidden; }
.td-chips span { flex-shrink: 0; padding: 7px 12px; border-radius: var(--r-pill); background: rgba(14, 15, 19, 0.06); font-size: 12.5px; font-weight: 500; color: var(--ink-2); }
.td-input { display: flex; align-items: center; gap: 8px; padding: 10px 18px 22px; }
.td-mic, .td-send { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.td-mic { background: rgba(14, 15, 19, 0.06); }
.td-send { background: var(--pill); color: #fff; opacity: 0.3; }
.td-field { flex: 1; min-width: 0; height: 44px; display: flex; align-items: center; padding: 0 16px; border-radius: var(--r-pill); background: #fff; border: 1px solid var(--hair); font-size: 14.5px; color: var(--ink-3); white-space: nowrap; overflow: hidden; }

/* shortcut sheet feature card */
.b-6 { grid-column: span 6; }
.sc-card { display: grid !important; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 32px; align-items: center; }
.sc-badge { width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: var(--pill); color: #fff; margin-bottom: 18px; box-shadow: 0 14px 30px -10px rgba(10, 18, 60, 0.55); }
.sc-demo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.sc-col { display: flex; flex-direction: column; padding: 16px 18px; border-radius: 20px; background: rgba(14, 15, 19, 0.035); }
.sc-r { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--hair); font-size: 14px; }
.sc-col .td-label + .sc-r { border-top: 0; }
.sc-r > span:first-child { color: var(--ink-2); }
.sc-r > span:last-child { flex-shrink: 0; color: var(--ink-3); font-size: 12px; }

@media (max-width: 920px) {
  .tutor-grid { grid-template-columns: 1fr; gap: 40px; }
  .tutor-stage { position: relative; top: 0; order: 2; }
  .sc-card { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .tutor-stage { padding: 30px 10px 0; border-radius: 28px; margin: 0 -4px; }
  .td-body { min-height: 0; }
  .sc-demo { grid-template-columns: 1fr; }
  .b-6 { grid-column: span 6; }
}
@media (prefers-reduced-motion: reduce) {
  .td-msg { opacity: 1; transform: none; }
  .td-think { display: none; }
  .buddy-eyes { animation: none !important; }
}

/* pricing: what a plan doesn't include, and the slim Studio row */
.plan li.is-no { color: var(--ink-4); }
.plan li.is-no .glyph { color: var(--ink-4); }
.studio-row {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  margin-top: 16px; padding: 20px 24px; border-radius: 24px;
  background: rgba(255, 255, 255, 0.72); border: 1px solid var(--card-line);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
}
.studio-row b { display: block; font-size: 15px; font-weight: 600; margin-bottom: 2px; }
.studio-row span { font-size: 14px; color: var(--ink-2); }
@media (max-width: 920px) { .studio-row { flex-direction: column; align-items: flex-start; max-width: 480px; margin: 16px auto 0; } }
.tutor-plan { margin-top: 14px; font-size: 14px; color: var(--ink-3); } .tutor-plan a { color: var(--ink); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* ─── Animated tutor demo ─────────────────────────────────────────────────── */
.tutor-grid { position: relative; }
.td-body {
  height: 470px; min-height: 0; overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 22px);
          mask-image: linear-gradient(180deg, transparent 0, #000 22px);
}
.td-body > * { flex-shrink: 0; }
.td-in { animation: tdIn 0.45s var(--out) both; }
@keyframes tdIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.td-user.td-in { transform-origin: 100% 100%; animation: tdPop 0.42s var(--out) both; }
@keyframes tdPop { from { opacity: 0; transform: translateY(14px) scale(0.92); } to { opacity: 1; transform: none; } }
.td-out { animation: tdOut 0.4s var(--ease) both; }
@keyframes tdOut { to { opacity: 0; transform: translateY(-12px); } }
.td-word { opacity: 0; animation: tdWord 0.25s var(--ease) forwards; }
@keyframes tdWord { to { opacity: 1; } }
.td-opts { display: flex; flex-wrap: wrap; gap: 6px; }
.td-opt { padding: 8px 13px; border-radius: var(--r-pill); background: var(--pill); color: #fff; font-size: 13px; font-weight: 500; transition: transform 0.15s, background 0.2s, opacity 0.3s; }
.td-opt.is-press { transform: scale(0.94); background: var(--accent-ui); }
.td-opt.is-dim { opacity: 0.35; }
.td-steps { padding-left: 20px; display: flex; flex-direction: column; gap: 5px; font-size: 14px; color: var(--ink-2); }
.td-quiz { padding: 13px 15px; border-radius: 16px; background: #fff; border: 1.5px solid var(--ink); font-size: 14.5px; font-weight: 500; line-height: 1.4; }
.td-sugg { display: flex; flex-wrap: wrap; gap: 6px; }
.td-sugg span { padding: 6px 11px; border-radius: var(--r-pill); background: rgba(14, 15, 19, 0.06); font-size: 12.5px; color: var(--ink-2); }
.td-chips span, .td-scopes span { transition: background 0.2s, color 0.2s, transform 0.15s; }
.td-chips span.is-press { background: var(--pill); color: #fff; transform: scale(0.95); }
.td-field { position: relative; gap: 0; }
.td-field [data-field-text] { color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.td-ph { color: var(--ink-3); }
.td-caret { display: none; width: 1.5px; height: 18px; margin-left: 1px; background: var(--accent-ui); animation: blink 1s steps(1) infinite; flex-shrink: 0; }
.td-field.is-typing .td-caret { display: block; }
.td-field.is-typing .td-ph, .td-field.has-text .td-ph { display: none; }
.td-send { transition: opacity 0.2s, transform 0.15s; }
.td-send.is-ready { opacity: 1; }
.td-send.is-press { transform: scale(0.88); }
.td-mic { position: relative; transition: background 0.2s, color 0.2s; }
.td-mic.is-on { background: var(--bad); color: #fff; }
.td-mic.is-on::after { content: ''; position: absolute; inset: -5px; border-radius: 50%; border: 2px solid rgba(229, 72, 77, 0.45); animation: tuPulse 1.2s ease-out infinite; }
@keyframes tuPulse { from { transform: scale(0.85); opacity: 1; } to { transform: scale(1.3); opacity: 0; } }
.buddy--listening .buddy-body { animation: buddyBreathe 1.1s ease-in-out infinite; }
@keyframes buddyBreathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* the big bot that wanders around the section */
.tutor-bot {
  position: absolute; z-index: 6;
  left: 46%; top: 2%;
  width: 112px; height: 112px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.55), rgba(255, 255, 255, 0.18));
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 24px 50px -18px rgba(10, 18, 60, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(8px) saturate(160%); -webkit-backdrop-filter: blur(8px) saturate(160%);
  animation: botWander 26s ease-in-out infinite;
  cursor: pointer;
}
.tutor-bot:hover { animation-play-state: paused; }
.tutor-bot:active .tutor-bot-face { transform: scale(0.92); }
.tutor-bot-face { display: flex; transition: transform 0.2s var(--spring); }
.tutor-bot-face .buddy { filter: drop-shadow(0 6px 10px rgba(10, 18, 60, 0.25)); }
.tutor-bot.is-thinking .tutor-bot-face { animation: botHop 0.9s ease-in-out infinite; }
@keyframes botHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.tutor-bot.is-listening::after { content: ''; position: absolute; inset: -8px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.8); animation: tuPulse 1.3s ease-out infinite; }
.tutor-bot-tip {
  position: absolute; bottom: calc(100% + 6px); left: 50%; transform: translateX(-50%);
  padding: 6px 12px; border-radius: var(--r-pill);
  background: var(--pill); color: #fff; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  opacity: 0; transition: opacity 0.3s;
}
.tutor-bot-tip.is-on { opacity: 1; }
.tutor-bot:hover .tutor-bot-tip { opacity: 1; }
@keyframes botWander {
  0%   { left: 45%; top: 3%; }
  14%  { left: 88%; top: 1%; }
  30%  { left: 93%; top: 34%; }
  46%  { left: 86%; top: 72%; }
  62%  { left: 47%; top: 86%; }
  78%  { left: 44%; top: 46%; }
  100% { left: 45%; top: 3%; }
}
@media (max-width: 920px) {
  .tutor-bot { width: 92px; height: 92px; }
  @keyframes botWander {
    0%   { left: 70%; top: 44%; }
    30%  { left: 76%; top: 58%; }
    60%  { left: 2%; top: 52%; }
    100% { left: 70%; top: 44%; }
  }
}
@media (max-width: 640px) {
  .td-body { height: 440px; }
}
@media (prefers-reduced-motion: reduce) {
  .tutor-bot { animation: none; left: 82%; top: 2%; }
}
.tutor-stage, .td-body, .td-sheet { overflow-anchor: none; }
.td-body { scroll-behavior: smooth; overscroll-behavior: contain; }

/* tutor section layout: heading + short points left, demo right (demo second on phones) */
.tutor-grid { grid-template-areas: "copy stage" "points stage"; grid-template-rows: auto 1fr; row-gap: 28px; }
.tutor-copy { grid-area: copy; }
.tutor-stage { grid-area: stage; }
.tutor-points { grid-area: points; align-self: start; list-style: none; display: flex; flex-direction: column; }
.tutor-points li { display: flex; gap: 12px; align-items: baseline; padding: 14px 0; border-top: 1px solid var(--hair); font-size: 16px; }
.tutor-points li:last-child { border-bottom: 1px solid var(--hair); }
.tutor-points li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); flex-shrink: 0; transform: translateY(-2px); }
.tutor-points b { font-weight: 500; letter-spacing: -0.015em; }
@media (max-width: 920px) {
  .tutor-grid { grid-template-areas: "copy" "stage" "points"; grid-template-rows: auto; row-gap: 32px; }
}

/* hero: the AI tutor pop-up */
.float--tutor { left: calc(50% + 120px); top: 300px; width: 240px; animation-delay: -5s; }
.ft-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.ft-user { margin-left: auto; width: fit-content; max-width: 90%; padding: 8px 12px; border-radius: 16px 16px 5px 16px; background: var(--pill); color: #fff; font-size: 13px; line-height: 1.35; }
.ft-answer { margin: 10px 0 8px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.ft-answer b { font-weight: 600; color: var(--ink); }
@media (max-width: 1080px) { .float--tutor { left: calc(50% + 96px); } }
.statement p span { display: block; }

/* course tiles: MindStep's own artwork instead of video thumbnails */
.tile { display: flex; align-items: center; justify-content: center; width: 100%; height: 100%; color: #fff; flex-shrink: 0; }
.tile svg { width: 60%; height: 60%; }
.tile--40 { width: 40px; height: 40px; border-radius: 10px; }
.tile--44 { width: 44px; height: 44px; border-radius: 12px; }
.tile--64 { width: 64px; height: 64px; border-radius: 18px; }
.tile--muted { filter: grayscale(1); opacity: 0.45; }
.tile[data-variant="2"] { filter: hue-rotate(-25deg) brightness(0.85); }
