/* Learnfold landing. Matches the iOS app: black and white system surfaces,
   SF Pro, and the system blue accent used for Start course and Continue. */
:root {
  --bg: #f5f5f7;
  --bg-2: #ebebf0;
  --card: #ffffff;
  --ink: #1d1d1f;
  --ink-2: #6e6e73;
  --ink-3: #8e8e93;
  --line: rgba(0, 0, 0, 0.08);
  --line-2: rgba(0, 0, 0, 0.14);
  --black: #000000;
  --blue: #0a84ff;
  --blue-ink: #0066cc;
  --blue-light: #64b5ff;
  --blue-wash: #eaf3ff;
  --green: #30d158;
  --danger: #c62828;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", system-ui, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --radius: 28px;
  --radius-md: 20px;
  --radius-sm: 14px;
  --pill: 999px;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.05), 0 12px 40px -12px rgba(0, 0, 0, 0.16);
  --header-bg: rgba(245, 245, 247, 0.8);
  --frame-bg: linear-gradient(180deg, #eef0f5, #f7f7f9);
  --rail-bg: #f9f9fb;
  --hover: rgba(0, 0, 0, 0.05);
  --wash-hover: #d8e9ff;
  --tag-bg: #ffffff;
  --panel-line: transparent;
  --inverse: #ffffff;
  --stage-bg: #ffffff;
  color-scheme: light;
}

/* Dark mode follows the system unless the visitor picked a theme (data-theme on <html>). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #000000;
    --bg-2: #0e0e10;
    --card: #1c1c1e;
    --ink: #f5f5f7;
    --ink-2: #a1a1a6;
    --ink-3: #86868b;
    --line: rgba(255, 255, 255, 0.1);
    --line-2: rgba(255, 255, 255, 0.16);
    --blue-ink: #4da3ff;
    --blue-wash: rgba(10, 132, 255, 0.16);
    --shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 16px 40px -16px rgba(0, 0, 0, 0.8);
    --header-bg: rgba(0, 0, 0, 0.72);
    --frame-bg: linear-gradient(180deg, #2c2c2e, #1c1c1e);
    --rail-bg: #161618;
    --hover: rgba(255, 255, 255, 0.07);
    --wash-hover: rgba(10, 132, 255, 0.26);
    --tag-bg: #1c1c1e;
    --panel-line: rgba(255, 255, 255, 0.12);
    --inverse: #000000;
    --stage-bg: #000000;
    --danger: #ff6b6b;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #000000;
  --bg-2: #0e0e10;
  --card: #1c1c1e;
  --ink: #f5f5f7;
  --ink-2: #a1a1a6;
  --ink-3: #86868b;
  --line: rgba(255, 255, 255, 0.1);
  --line-2: rgba(255, 255, 255, 0.16);
  --blue-ink: #4da3ff;
  --blue-wash: rgba(10, 132, 255, 0.16);
  --shadow: 0 0 0 1px rgba(255, 255, 255, 0.04), 0 16px 40px -16px rgba(0, 0, 0, 0.8);
  --header-bg: rgba(0, 0, 0, 0.72);
  --frame-bg: linear-gradient(180deg, #2c2c2e, #1c1c1e);
  --rail-bg: #161618;
  --hover: rgba(255, 255, 255, 0.07);
  --wash-hover: rgba(10, 132, 255, 0.26);
  --tag-bg: #1c1c1e;
  --panel-line: rgba(255, 255, 255, 0.12);
  --inverse: #000000;
  --stage-bg: #000000;
  --danger: #ff6b6b;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  overflow-x: clip;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  color: var(--ink);
  background: var(--bg);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

::selection { color: var(--ink); background: rgba(10, 132, 255, 0.25); }

button, a, input { font: inherit; }
button { color: inherit; }
a { color: inherit; }
img { display: block; max-width: 100%; height: auto; }

h1, h2, h3, p { margin-top: 0; }
h1, h2, h3 {
  margin-bottom: 0;
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.06;
}
h2 { font-size: clamp(2.1rem, 4.4vw, 3.5rem); }
h3 { font-size: 1.25rem; letter-spacing: -0.015em; line-height: 1.2; }
em { font-style: normal; }

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

.shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }

.eyebrow {
  margin-bottom: 14px;
  color: var(--blue-ink);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--pill);
  color: #fff;
  background: var(--blue);
  font-weight: 700;
}
.skip-link:focus { top: 12px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  color: var(--ink);
  background: var(--header-bg);
  border-bottom: 1px solid transparent;
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  transition: background 0.25s, border-color 0.25s;
}
.site-header.scrolled { border-bottom-color: var(--line); }

.nav-shell {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-size: 1.15rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand img { width: 32px; height: 32px; border-radius: 8px; }

.site-nav { display: flex; align-items: center; gap: 26px; }
.nav-tools { display: flex; align-items: center; gap: 6px; }

.theme-toggle {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  cursor: pointer;
  opacity: 0.85;
}
.theme-toggle:hover { opacity: 1; background: rgba(127, 127, 127, 0.16); }
.theme-toggle svg { width: 20px; height: 20px; }
.theme-toggle .icon-sun { display: none; }
html:not(.js) .theme-toggle { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .icon-sun { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .icon-moon { display: none; }
}
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.site-nav a { font-size: 0.95rem; font-weight: 500; text-decoration: none; opacity: 0.78; }
.site-nav a:hover { opacity: 1; }

.nav-cta,
.site-nav a.nav-cta {
  padding: 9px 16px;
  border-radius: var(--pill);
  color: #fff;
  background: var(--blue);
  font-weight: 700;
  opacity: 1;
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 0;
  border-radius: var(--pill);
  background: transparent;
  cursor: pointer;
}
.menu-toggle span {
  display: block;
  width: 20px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: currentColor;
  transition: transform 0.2s;
}
.menu-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 26px;
  border: 0;
  border-radius: 18px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.15s, filter 0.15s, background 0.15s;
}
.button:active { transform: scale(0.98); }
.button-primary { color: #fff; background: var(--blue); }
.button-primary:hover { background: #0077ed; }
.button-blue { color: #fff; background: var(--blue); }
.button-blue:hover { background: #0077ed; }
.button svg { width: 18px; height: 18px; }

/* Apple's official App Store badge: black on light pages, white on dark. */
.app-store-badge { display: inline-flex; flex: none; line-height: 0; transition: opacity 0.15s; }
.app-store-badge:hover { opacity: 0.85; }
.app-store-badge img { width: auto; height: 54px; }
.app-store-badge .badge-dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .app-store-badge .badge-light { display: none; }
  :root:not([data-theme="light"]) .app-store-badge .badge-dark { display: block; }
}
:root[data-theme="dark"] .app-store-badge .badge-light { display: none; }
:root[data-theme="dark"] .app-store-badge .badge-dark { display: block; }
.site-nav a.nav-badge { opacity: 1; }
.site-nav a.nav-badge:hover { opacity: 0.85; }
.nav-badge img { height: 40px; }

.text-link { display: inline-flex; align-items: center; min-height: 44px; font-weight: 600; text-underline-offset: 4px; }

/* Hero */
.hero {
  position: relative;
  margin-top: -69px;
  padding-top: 69px;
  overflow: hidden;
  color: var(--ink);
  background: radial-gradient(70% 80% at 85% 100%, rgba(10, 132, 255, 0.22), rgba(10, 132, 255, 0) 60%), var(--stage-bg);
  border-bottom: 1px solid var(--line);
}
.hero::before {
  content: "";
  position: absolute;
  right: -18%;
  bottom: -55%;
  width: 90vw;
  max-width: 1100px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.22), rgba(10, 132, 255, 0) 62%);
  pointer-events: none;
}

.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  align-items: center;
  gap: 48px;
  padding: 72px 0 0;
}

.hero-copy { padding-bottom: 72px; }

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 28px;
  color: var(--ink-2);
  font-size: 0.88rem;
  font-weight: 600;
}
.status-pulse {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(48, 209, 88, 0.22);
}

.hero h1 {
  max-width: 11ch;
  font-size: clamp(3rem, 7.4vw, 6rem);
  letter-spacing: -0.045em;
  line-height: 0.98;
}
.hero h1 em { color: var(--blue); }

.hero-lede {
  max-width: 34rem;
  margin: 28px 0 0;
  color: var(--ink-2);
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.5;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 24px;
  margin-top: 36px;
}
.hero-actions .text-link { color: var(--ink); }

.focus-line {
  margin: 28px 0 0;
  color: var(--ink-3);
  font-size: 0.95rem;
}

.hero-stage {
  position: relative;
  min-height: 760px;
}

/* Phone frames around real app captures */
.phone {
  margin: 0;
  padding: 10px;
  border-radius: 54px;
  background: #0b0b10;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset, 0 40px 80px -30px rgba(9, 6, 40, 0.65);
}
.phone img {
  width: 100%;
  border-radius: 44px;
  background: #fff;
}
.phone-sm { padding: 7px; border-radius: 38px; }
.phone-sm img { border-radius: 31px; }

.hero-stage .phone-front {
  position: absolute;
  left: 4%;
  bottom: 48px;
  width: min(300px, 58%);
  z-index: 2;
  transform: rotate(-3deg);
}
.hero-stage .phone-back {
  position: absolute;
  right: 0;
  bottom: 120px;
  width: min(264px, 50%);
  transform: rotate(5deg);
  opacity: 0.96;
}

.hero-tag {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 10px 4px 4px;
  border-radius: var(--pill);
  color: var(--ink);
  background: color-mix(in srgb, var(--tag-bg) 70%, transparent);
  font-size: 0.86rem;
  font-style: italic;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}
.hero-tag i {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  font-style: normal;
  font-size: 0.8rem;
}
.hero-tag-a { left: -4%; top: 34%; }
.hero-tag-b { right: 2%; top: 14%; }
.hero-tag-b i { background: var(--blue); }

/* Sections */
.section { padding: 120px 0; }
.section-intro { max-width: 720px; }
.section-intro > p:last-child {
  margin: 20px 0 0;
  color: var(--ink-2);
  font-size: 1.15rem;
}
.section-intro.center { margin: 0 auto; text-align: center; }

.proof-note {
  margin: 28px 0 0;
  color: var(--ink-3);
  font-size: 0.85rem;
}

/* Explore section */
.explore-section { background: var(--card); }
.explore-section .eyebrow { color: var(--blue-ink); }

.explore-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
  margin-top: 64px;
}

.explore-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.explore-card .shot,
.step-frame {
  display: flex;
  justify-content: center;
  padding: 28px;
  background: var(--frame-bg);
}
.explore-card .shot .phone { width: 100%; max-width: 270px; }
.step-frame .phone { width: 100%; max-width: 236px; }
.explore-copy { padding: 26px 28px 30px; }
.explore-copy h3 { margin-bottom: 8px; }
.explore-copy p { margin: 0; color: var(--ink-2); }

.door-list {
  display: grid;
  gap: 10px;
  margin: 36px 0 0;
  padding: 0;
  list-style: none;
}
.door-list li {
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 4px 12px;
  padding: 14px 18px;
  border-left: 3px solid var(--blue);
  border-radius: 4px 16px 16px 4px;
  background: transparent;
}
.door-list svg { grid-row: span 2; width: 22px; height: 22px; margin-top: 2px; color: var(--blue); }
.door-list strong { font-family: var(--display); font-size: 1.05rem; }
.door-list span { color: var(--ink-2); font-size: 0.93rem; }

.explore-lead {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 64px;
  align-items: end;
}

.step-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  margin-top: 64px;
}
.step-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.step-copy { padding: 22px 24px 28px; }
.step-label {
  margin: 0 0 10px;
  color: var(--blue-ink);
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.step-copy h3 { margin-bottom: 10px; }
.step-copy p:last-child { margin: 0; color: var(--ink-2); font-size: 0.97rem; }

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin-top: 56px;
}
.feature-card {
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}
.feature-card.span-2 { grid-column: span 2; }
.feature-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  border-radius: 14px;
  color: var(--blue-ink);
  background: rgba(10, 132, 255, 0.09);
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-icon.violet { color: var(--blue); background: var(--blue-wash); }
.feature-icon.blue { color: var(--blue); background: rgba(10, 132, 255, 0.1); }
.feature-icon.green { color: var(--green); background: rgba(31, 157, 85, 0.1); }
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin: 0; color: var(--ink-2); }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.chip {
  padding: 6px 12px;
  border-radius: var(--pill);
  color: var(--ink);
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.85rem;
  font-weight: 600;
}

/* Agents */
.agent-section { background: var(--bg-2); }
.agent-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
  margin-top: 56px;
}
.agent-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--card);
}
.agent-card h3 { font-size: 1.15rem; }
.agent-card p { margin: 0; color: var(--ink-2); font-size: 0.95rem; }
.agent-card p.agent-plan { margin-top: 12px; color: var(--ink); font-size: 0.88rem; font-weight: 600; }
.agent-badge {
  align-self: flex-start;
  padding: 4px 10px;
  border-radius: var(--pill);
  color: var(--blue-ink);
  background: rgba(10, 132, 255, 0.09);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

/* Why / quote */
.why-card {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 48px;
  align-items: end;
  padding: clamp(36px, 6vw, 72px);
  border-radius: 36px;
  color: #fff;
  background: linear-gradient(135deg, #0a84ff, #0040dd);
}
.why-card .eyebrow { color: rgba(255, 255, 255, 0.75); }
.why-card h2 { font-size: clamp(2rem, 4vw, 3.2rem); }
.why-card h2 em { color: #fff; }
.why-card > p { margin: 0; color: rgba(255, 255, 255, 0.8); font-size: 1.12rem; }

/* Interactive demo */
.demo-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 56px;
  align-items: start;
}
.demo-copy > p:not(.eyebrow) { margin: 20px 0 0; color: var(--ink-2); font-size: 1.1rem; }
.signal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.signal-tab {
  min-height: 44px;
  color: var(--ink);
  padding: 0 16px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: transparent;
  font-size: 0.93rem;
  font-weight: 600;
  cursor: pointer;
}
.signal-tab:hover { background: var(--hover); }
.signal-tab.active { color: var(--inverse); border-color: var(--ink); background: var(--ink); }
.demo-disclaimer { margin-top: 22px !important; color: var(--ink-3) !important; font-size: 0.9rem !important; }

.branch-demo {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow);
}
.receipt-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 22px;
  border-bottom: 1px solid var(--line);
  font-weight: 700;
}
.receipt-status {
  padding: 3px 10px;
  border-radius: var(--pill);
  color: var(--blue-ink);
  background: var(--blue-wash);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.branch-demo-body { display: grid; grid-template-columns: 230px minmax(0, 1fr); min-height: 420px; }
.course-tree { padding: 20px 14px; border-right: 1px solid var(--line); background: var(--rail-bg); }
.rail-label {
  margin: 0 8px 12px;
  color: var(--ink-3);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.course-tree ol { margin: 0; padding: 0; list-style: none; }
.course-tree ol ol {
  margin: 4px 0 4px 14px;
  padding-left: 10px;
  border-left: 2px dotted rgba(10, 132, 255, 0.45);
}
.course-tree li { margin: 2px 0; }
.course-tree button,
.course-tree li > span {
  display: block;
  width: 100%;
  padding: 8px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 0.9rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.course-tree button:hover { background: var(--hover); }
.course-tree button[aria-current="page"] { color: var(--blue-ink); background: var(--blue-wash); }
.branch-reader { padding: 28px 30px; }
.reader-breadcrumb { margin-bottom: 10px; color: var(--ink-3); font-size: 0.85rem; }
.branch-reader h3 { margin-bottom: 14px; font-size: 1.6rem; }
.branch-reader h3:focus { outline: none; }
.branch-reader > p:not(.reader-breadcrumb) { color: var(--ink-2); }
.question-choices { display: grid; gap: 10px; margin-top: 22px; }
.question-choices::before {
  content: "Where next?";
  margin-bottom: 2px;
  font-family: var(--display);
  font-size: 1.05rem;
  font-weight: 700;
}
.question-choices:empty::before { content: none; }
.question-choices button {
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 52px;
  padding: 12px 16px;
  border: 0;
  border-radius: 16px;
  background: var(--blue-wash);
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}
.question-choices button::after { content: "↘"; color: var(--blue); font-weight: 700; }
.question-choices button:hover { background: var(--wash-hover); }
.demo-end { margin-top: 20px; padding: 14px 16px; border-radius: 14px; color: var(--ink-2); background: var(--bg); }
.reader-back {
  margin-top: 16px;
  padding: 8px 14px;
  border: 0;
  border-radius: var(--pill);
  color: var(--blue-ink);
  background: rgba(10, 132, 255, 0.1);
  font-weight: 600;
  cursor: pointer;
}
.branch-demo-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 14px 22px;
  border-top: 1px solid var(--line);
}
.branch-demo-footer p { margin: 0; color: var(--ink-3); font-size: 0.88rem; }
.branch-demo-footer button {
  min-height: 36px;
  color: var(--ink);
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--pill);
  background: transparent;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
}

/* FAQ */
.faq-section {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr);
  gap: 56px;
}
.faq-list { border-top: 1px solid var(--line-2); }
.faq-list details { border-bottom: 1px solid var(--line-2); }
.faq-list summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 22px 0;
  font-family: var(--display);
  font-size: 1.12rem;
  font-weight: 700;
  list-style: none;
  cursor: pointer;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary span {
  flex: none;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  color: var(--ink);
  background: var(--hover);
  transition: transform 0.2s;
}
.faq-list details[open] summary span { transform: rotate(45deg); }
.faq-list details p { max-width: 62ch; margin: -6px 0 24px; color: var(--ink-2); }
.faq-list .faq-body { max-width: 62ch; margin: -6px 0 24px; color: var(--ink-2); }
.faq-list .faq-body p { margin: 0 0 12px; }
.faq-list .faq-body p:last-child { margin-bottom: 0; }
.price-list { margin: 0 0 12px; padding-left: 20px; }
.price-list li { margin: 0 0 8px; }
.price-list strong { color: var(--ink); }
.faq-list details a { color: var(--blue-ink); }

/* Download */
.final-cta { padding: 40px 0 120px; }
.final-copy {
  position: relative;
  overflow: clip;
  padding: clamp(40px, 7vw, 88px) 24px;
  border-radius: 40px;
  color: var(--ink);
  border: 1px solid var(--line);
  background: radial-gradient(80% 90% at 50% 120%, rgba(10, 132, 255, 0.3), rgba(10, 132, 255, 0) 65%), var(--stage-bg);
  box-shadow: var(--shadow);
  text-align: center;
}
.final-copy::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -70%;
  width: 900px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(10, 132, 255, 0.2), rgba(10, 132, 255, 0) 62%);
  transform: translateX(-50%);
  pointer-events: none;
}
.final-copy > * { position: relative; }
.final-mark { width: 72px; height: 72px; margin: 0 auto 24px; border-radius: 17px; box-shadow: 0 16px 40px -12px rgba(0, 0, 0, 0.45); }
.final-copy .eyebrow { color: var(--blue-ink); }
.final-copy h2 { font-size: clamp(2.4rem, 5vw, 4rem); }
.final-copy > p { max-width: 34rem; margin: 18px auto 0; color: var(--ink-2); font-size: 1.12rem; }

.final-download { margin-top: 32px; }

/* Footer */
.site-footer { padding: 36px 0 48px; border-top: 1px solid var(--line); }
.footer-grid { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px 32px; }
.footer-grid p { margin: 0; color: var(--ink-2); font-size: 0.93rem; }
.footer-grid > div { display: flex; flex-wrap: wrap; gap: 22px; }
.footer-grid > div a { display: inline-block; padding: 10px 0; color: var(--ink-2); font-size: 0.93rem; text-decoration: none; }
.footer-grid > div a:hover { color: var(--ink); }

/* Reveal on scroll (enabled by landing.js) */
.theme-switching *, .theme-switching *::before, .theme-switching *::after { transition: none !important; }
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-ready [data-reveal].visible { opacity: 1; transform: none; }

@media (max-width: 1080px) {
  .step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .agent-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 0; padding-top: 48px; }
  .hero-copy { padding-bottom: 48px; }
  /* One centered pair of full phones: the front one sets the height. */
  .hero-stage { width: min(500px, 100%); min-height: 0; margin: 0 auto; padding-bottom: 56px; }
  .hero-stage .phone-front { position: relative; left: auto; bottom: auto; width: 60%; }
  .hero-stage .phone-back { top: 40px; right: 0; bottom: auto; width: 50%; }
  .hero-tag-a { left: 0; }
  .explore-lead,
  .why-card,
  .demo-grid,
  .faq-section { grid-template-columns: 1fr; gap: 32px; }
  /* Full-height phone cards scroll sideways instead of stacking into a very long page. */
  .explore-grid,
  .step-grid {
    grid-template-columns: none;
    grid-auto-flow: column;
    grid-auto-columns: min(340px, 78%);
    gap: 16px;
    margin-inline: calc((100vw - 100%) / -2);
    padding: 4px calc((100vw - 100%) / 2) 20px;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scroll-padding-inline: calc((100vw - 100%) / 2);
    scrollbar-width: none;
  }
  .explore-grid::-webkit-scrollbar,
  .step-grid::-webkit-scrollbar { display: none; }
  .explore-grid > *,
  .step-grid > * { scroll-snap-align: start; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .feature-card.span-2 { grid-column: span 2; }
  .section { padding: 88px 0; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  html:not(.js) .menu-toggle { display: none; }
  html:not(.js) .site-nav { gap: 14px; font-size: 0.85rem; }
  .js .site-nav {
    position: absolute;
    top: 68px;
    left: 12px;
    right: 12px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 22px;
    color: var(--ink);
    background: var(--card);
    box-shadow: var(--shadow);
  }
  .js .site-nav.open { display: flex; }
  .site-nav a { padding: 12px 14px; border-radius: 12px; opacity: 1; }
  .site-nav a.nav-cta { text-align: center; }
  .site-nav a.nav-badge { justify-content: center; }
}

@media (max-width: 620px) {
  .shell { width: calc(100% - 32px); }
  body { font-size: 16px; }
  .hero-stage { padding-bottom: 44px; }
  .hero-stage .phone-front { width: 62%; }
  .hero-stage .phone-back { top: 32px; width: 50%; }
  .hero-tag { font-size: 0.78rem; padding: 7px 11px; }
  .hero-tag-b { display: none; }
  .phone { padding: 7px; border-radius: 40px; }
  .phone img { border-radius: 33px; }
  .agent-grid,
  .feature-grid { grid-template-columns: 1fr; }
  .explore-grid,
  .step-grid { grid-auto-columns: 82%; }
  .feature-card.span-2 { grid-column: auto; }
  .branch-demo-body { grid-template-columns: 1fr; }
  .course-tree { border-right: 0; border-bottom: 1px solid var(--line); }
  .branch-reader { padding: 22px; }
  .final-copy { border-radius: 28px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .reveal-ready [data-reveal] { opacity: 1; transform: none; }
}
