/* ===== Apex Student — shared styles =====
   Design language: Apple-style "product first" chassis (one accent, hairline
   cards, tight 600-weight display type, shadow only on product imagery),
   in Apex brand colors. */

:root {
  --pine: #0d1f17;
  --ink: #101b15;
  --leaf: #2e7d57;
  --leaf-deep: #245f43;
  --sprout: #e6f0e9;
  --antenna: #f2c744;
  --cream: #faf8f2;
  --mist: #f0ede4;
  --paper: #ffffff;
  --slate: #4c5a52;

  --bg: var(--cream);
  --bg-alt: var(--mist);
  --bg-dark: var(--pine);
  --surface: var(--paper);
  --text: var(--ink);
  --muted: var(--slate);
  --accent: var(--leaf);
  --accent-press: var(--leaf-deep);
  --on-accent: #ffffff;
  --accent-soft: var(--sprout);
  --line: rgba(16, 27, 21, 0.09);
  --chip: rgba(16, 27, 21, 0.06);
  --focus: #2e7d57;
  /* The one shadow in the system: product imagery resting on a surface. */
  --shadow-product: 3px 5px 30px rgba(0, 0, 0, 0.22);

  --font-display: "Space Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --radius-sm: 12px;
  --max: 1160px;
  --gutter: clamp(16px, 4vw, 32px);
  --header-h: 60px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0b1912;
    --bg-alt: #0f2219;
    --bg-dark: #050d09;
    --surface: #132a1f;
    --text: #eef3ef;
    --muted: #a8b8ae;
    --accent: #5fbf8c;
    --accent-press: #4fa87a;
    --on-accent: #06130c;
    --accent-soft: rgba(95, 191, 140, 0.14);
    --line: rgba(238, 243, 239, 0.1);
    --chip: rgba(238, 243, 239, 0.08);
    --focus: #7fd3a6;
    --shadow-product: 3px 5px 30px rgba(0, 0, 0, 0.55);
    color-scheme: dark;
  }
  .logo img { filter: invert(1); }
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 20px);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem; /* 17px body, Apple's reading pace */
  line-height: 1.5;
  letter-spacing: -0.006em;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: 0.18em; }
a, button { touch-action: manipulation; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: 1.08;
  letter-spacing: -0.025em;
  margin: 0 0 0.5em;
  text-wrap: balance;
}
h1 { font-size: clamp(2.5rem, 6.4vw, 4.6rem); letter-spacing: -0.035em; }
h2 { font-size: clamp(2rem, 4.2vw, 3rem); letter-spacing: -0.03em; }
h3 { font-size: 1.2rem; line-height: 1.2; letter-spacing: -0.015em; }
p { margin: 0 0 1em; text-wrap: pretty; }
strong, b { font-weight: 600; }

.skip-link {
  position: absolute;
  left: 12px;
  top: -100px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { max-width: var(--max); margin: 0 auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(72px, 10vw, 120px); }
.section--alt { background: var(--bg-alt); }
.section--dark {
  background: var(--bg-dark);
  color: #eef3ef;
  --text: #eef3ef;
  --muted: #a8b8ae;
  --accent: #5fbf8c;
  --on-accent: #06130c;
  --surface: #132a1f;
  --line: rgba(238, 243, 239, 0.12);
  --chip: rgba(238, 243, 239, 0.08);
  --focus: #7fd3a6;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.lead {
  font-size: clamp(1.125rem, 2vw, 1.35rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--muted);
  max-width: 44rem;
}
.section-head { max-width: 46rem; margin-bottom: clamp(40px, 6vw, 64px); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .lead { margin-inline: auto; }
.section-head--row {
  max-width: none;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}
.section-head--row h2 { margin-bottom: 0; }
.hl { color: var(--accent); }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
.logo { display: flex; align-items: center; }
.logo img { height: 32px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a {
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  opacity: 0.78;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.nav-links a:hover, .nav-links a[aria-current="page"] { opacity: 1; }
.nav-links a[aria-current="page"] { color: var(--accent); }
.nav-toggle {
  display: none;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-right: -10px;
  background: none;
  border: 0;
  border-radius: 999px;
  color: var(--text);
  cursor: pointer;
}
.nav-toggle svg { width: 24px; height: 24px; }

@media (max-width: 820px) {
  .nav-toggle { display: grid; }
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px var(--gutter) 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links > li > a { display: block; padding: 13px 0; font-size: 1.05rem; }
  .nav-links > li + li > a:not(.btn) { border-top: 1px solid var(--line); }
  .nav-links > li > .btn { display: flex; margin-top: 12px; justify-content: center; padding-block: 12px; }
}

/* About dropdown */
.has-menu { position: relative; }
.nav-menu-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--text);
  opacity: 0.78;
  cursor: pointer;
  transition: opacity 0.15s ease, color 0.15s ease;
}
.nav-menu-btn svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.nav-menu-btn:hover, .has-menu.open .nav-menu-btn { opacity: 1; }
.nav-menu-btn[data-current] { color: var(--accent); opacity: 1; }
.has-menu.open .nav-menu-btn svg { transform: rotate(180deg); }
.nav-menu {
  list-style: none;
  margin: 0;
  padding: 8px;
  min-width: 240px;
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  translate: -50% -4px;
  background: color-mix(in srgb, var(--surface) 94%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.25);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.15s ease, translate 0.15s ease, visibility 0.15s;
}
/* Bridges the gap so the menu stays open while the pointer travels to it */
.nav-menu::before { content: ""; position: absolute; left: 0; right: 0; top: -16px; height: 16px; }
.has-menu.open .nav-menu { opacity: 1; visibility: visible; translate: -50% 0; }
@media (hover: hover) and (pointer: fine) and (min-width: 821px) {
  .has-menu:hover .nav-menu { opacity: 1; visibility: visible; translate: -50% 0; }
  .has-menu:hover .nav-menu-btn { opacity: 1; }
  .has-menu:hover .nav-menu-btn svg { transform: rotate(180deg); }
}
.nav-menu a {
  display: block;
  padding: 9px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  opacity: 1;
  white-space: nowrap;
}
.nav-menu a:hover { background: var(--chip); color: var(--accent); }

@media (max-width: 820px) {
  .nav-menu-btn { width: 100%; justify-content: space-between; padding: 13px 0; font-size: 1.05rem; opacity: 1; }
  .nav-menu-btn svg { width: 18px; height: 18px; }
  .nav-menu {
    position: static;
    translate: none;
    min-width: 0;
    padding: 0 0 10px 12px;
    background: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    display: none;
    opacity: 1;
    visibility: visible;
  }
  .nav-menu::before { display: none; }
  .has-menu.open .nav-menu { display: block; translate: none; }
  .nav-menu a { padding: 10px 12px; font-size: 1rem; color: var(--muted); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 36px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  background: var(--accent);
  color: var(--on-accent) !important;
  opacity: 1 !important;
  transition: background-color 0.15s ease, transform 0.12s ease;
}
.btn:hover { background: var(--accent-press); }
.btn:active { transform: scale(0.95); }
.btn--ghost { background: transparent; color: var(--accent) !important; box-shadow: inset 0 0 0 1px var(--accent); }
.btn--ghost:hover { background: var(--accent-soft); }

.appstore {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 20px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.16);
  transition: transform 0.12s ease, background-color 0.15s ease;
}
.appstore:hover { background: #1a1a1a; }
.appstore:active { transform: scale(0.96); }
.appstore svg { width: 30px; height: 30px; flex: none; }
.appstore span { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.appstore small { font-size: 0.72rem; letter-spacing: 0.02em; }
.appstore strong { font-size: 1.45rem; font-weight: 600; letter-spacing: -0.015em; }
.appstore--lg { padding: 14px 28px 14px 22px; }
.appstore--lg svg { width: 34px; height: 34px; }
.appstore--lg strong { font-size: 1.6rem; }

.icon-btn {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  flex: none;
  border: 0;
  border-radius: 999px;
  background: var(--chip);
  color: var(--text);
  cursor: pointer;
  transition: background-color 0.15s ease, transform 0.12s ease, opacity 0.15s ease;
}
.icon-btn:hover { background: color-mix(in srgb, var(--text) 12%, transparent); }
.icon-btn:active { transform: scale(0.92); }
.icon-btn:disabled { opacity: 0.35; cursor: default; transform: none; }
.icon-btn svg { width: 20px; height: 20px; }

/* ===== Hero ===== */
/* Split layout: copy on the left; LOLA summiting in front of the app on the
   right, with the mountain's base resting on the hero's bottom edge. */
.hero { padding-top: clamp(40px, 6vw, 72px); overflow: hidden; }
.hero-split {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(24px, 3vw, 48px);
  align-items: end;
}
.hero-copy { align-self: center; padding-bottom: clamp(48px, 6vw, 88px); }
.hero h1 {
  font-size: clamp(2.2rem, 3.7vw, 3.35rem);
  line-height: 1.07;
  max-width: 21ch;
  margin-bottom: 0.45em;
}
.hero .lead { max-width: 34rem; margin-bottom: 1.8rem; font-size: clamp(1.08rem, 1.6vw, 1.22rem); }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 22px;
  margin-top: 22px;
  font-size: 0.9rem;
  color: var(--muted);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 6px; }
.stars { color: var(--antenna); letter-spacing: 2px; }

.hero-art {
  position: relative;
  height: clamp(440px, 42vw, 580px);
  isolation: isolate;
}
/* Soft sun behind the summit */
.hero-art::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 78%;
  aspect-ratio: 1;
  right: 2%;
  top: 6%;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 13%, transparent);
}
.hero-art .phone { position: absolute; }
.phone--back {
  width: 41%;
  right: 41%;
  top: 9%;
  transform: rotate(-7deg);
  z-index: 1;
}
.phone--front {
  width: 47%;
  right: 3%;
  top: 2%;
  transform: rotate(5deg);
  z-index: 2;
}
.hero-lola {
  position: absolute;
  z-index: 3;
  left: 4%;
  bottom: 0;
  width: 40%;
  height: auto;
  filter: drop-shadow(0 18px 30px rgba(16, 27, 21, 0.22));
}

@media (max-width: 900px) {
  .hero-split { grid-template-columns: 1fr; gap: 0; }
  .hero-copy { padding-bottom: 40px; }
  .hero h1 { max-width: 20ch; }
  .hero-art { width: min(100%, 520px); margin-inline: auto; height: clamp(380px, 100vw, 560px); }
}

/* ===== Phone frame ===== */
.phone {
  aspect-ratio: 720 / 1431;
  max-width: 100%;
  border-radius: 40px;
  padding: 9px;
  background: #0a0f0c;
  box-shadow: var(--shadow-product), inset 0 0 0 2px #2a332e;
}
.phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  border-radius: 31px;
}

/* ===== About / stats ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: start;
}
.about-grid p { color: var(--muted); }
.about-grid p strong { color: var(--text); }
.about-grid .lead { margin-bottom: 0; }
.about-grid p.about-kicker {
  margin-top: 1.8em;
  padding-left: 18px;
  border-left: 3px solid var(--antenna);
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  line-height: 1.35;
  letter-spacing: -0.015em;
  color: var(--text);
}
.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 32px;
}
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px 16px;
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.stat span { font-size: 0.85rem; line-height: 1.35; color: var(--muted); }
@media (max-width: 820px) { .about-grid { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .stat-row { grid-template-columns: 1fr; } }

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  counter-reset: step;
  list-style: none;
  margin: 0;
  padding: 0;
}
.steps li {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  counter-increment: step;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 20px;
}
.steps p { color: var(--muted); font-size: 0.96rem; margin: 0; }
@media (max-width: 960px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .steps { grid-template-columns: 1fr; } }

/* ===== Feature groups ===== */
.feature-jump {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 48px;
}
.feature-jump a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 18px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--text);
  border-radius: 999px;
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  transition: box-shadow 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.feature-jump a:hover { color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.feature-jump a:active { transform: scale(0.96); }

.feature-group {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: clamp(24px, 4vw, 64px);
  padding-block: 48px;
  border-top: 1px solid var(--line);
}
.feature-group:first-of-type { border-top: 0; padding-top: 0; }
.group-intro { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; }
.group-intro img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 18px; }
.group-intro h3 { font-size: 1.5rem; letter-spacing: -0.025em; }
.group-intro p { color: var(--muted); font-size: 0.98rem; }
.group-num {
  display: block;
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
@media (prefers-color-scheme: dark) {
  .group-intro img { filter: invert(1); }
}

.feature-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px 24px 22px;
}
.feature h3 { display: flex; align-items: center; gap: 12px; font-size: 1.12rem; }
.feature h3 .ico {
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
}
.feature h3 .ico svg { width: 18px; height: 18px; }
.feature p { color: var(--muted); font-size: 0.96rem; margin: 0; }
.feature ul { margin: 12px 0 0; padding-left: 18px; color: var(--muted); font-size: 0.92rem; }
.feature ul li { margin-bottom: 3px; }
.feature ul li::marker { color: var(--accent); }
.tag {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--antenna);
  color: #1d1a0c;
  margin-left: auto;
}

@media (max-width: 960px) {
  .feature-group { grid-template-columns: 1fr; }
  .group-intro { position: static; }
}
/* An odd card out spans the row rather than leaving a hole */
.feature-list > .feature:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (max-width: 600px) { .feature-list { grid-template-columns: 1fr; } }

/* ===== LOLA ===== */
.lola-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(32px, 6vw, 80px);
  align-items: center;
}
.lola-art { display: flex; justify-content: center; }
.lola-art img { width: min(280px, 60vw); filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.45)); }
.chat { display: flex; flex-direction: column; gap: 10px; margin: 32px 0; }
.bubble {
  max-width: 32rem;
  padding: 12px 17px;
  border-radius: 20px 20px 20px 6px;
  background: var(--surface);
  font-size: 0.98rem;
  line-height: 1.45;
}
.bubble--me {
  align-self: flex-end;
  border-radius: 20px 20px 6px 20px;
  background: var(--accent);
  color: var(--on-accent);
  font-weight: 500;
}
.lola-points {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px 28px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.lola-points li { padding-left: 24px; position: relative; color: var(--muted); font-size: 0.96rem; }
.lola-points li b { color: var(--text); display: block; margin-bottom: 2px; }
.lola-points li::before {
  content: "";
  position: absolute;
  left: 0; top: 8px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--antenna);
}
@media (max-width: 820px) {
  .lola-grid { grid-template-columns: 1fr; }
  .lola-points { grid-template-columns: 1fr; }
}

/* ===== Gallery ===== */
.gallery-controls { display: flex; gap: 10px; }
.gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(220px, 1fr);
  gap: 28px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  overscroll-behavior-x: contain;
  /* Full-bleed scroller whose first card lines up with the container */
  --inset: max(var(--gutter), calc((100vw - var(--max)) / 2 + var(--gutter)));
  width: 100vw;
  margin-inline: calc(50% - 50vw);
  margin-top: -12px;
  padding: 12px var(--inset) 28px;
  scroll-padding-inline: var(--inset);
  scrollbar-width: none;
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: start; }
.gallery figcaption { margin-top: 20px; }
.gallery figcaption b { display: block; font-family: var(--font-display); font-weight: 600; letter-spacing: -0.01em; }
.gallery figcaption span { font-size: 0.9rem; color: var(--muted); }
.gallery .phone { border-radius: 32px; padding: 8px; }
.gallery .phone img { border-radius: 25px; }
@media (max-width: 520px) {
  .gallery-controls { display: none; }
  .gallery { grid-auto-columns: 68%; gap: 20px; }
}

/* ===== Personas ===== */
.personas {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.persona {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.persona h3 { font-size: 1.08rem; }
.persona p { color: var(--muted); font-size: 0.95rem; margin: 0; }

/* ===== Platform strip ===== */
.platform {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.platform div { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.platform b { display: block; font-family: var(--font-display); font-weight: 600; font-size: 1.08rem; letter-spacing: -0.015em; margin-bottom: 6px; }
.platform span { font-size: 0.92rem; color: var(--muted); }
@media (max-width: 820px) { .platform { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .platform { grid-template-columns: 1fr; } }

/* ===== CTA ===== */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta h2 { max-width: 16ch; margin-inline: auto; font-size: clamp(2.2rem, 5vw, 3.6rem); }
.cta .lead { margin: 0 auto 2.2rem; }
.cta img.lola { width: 120px; margin: 0 auto 28px; filter: drop-shadow(0 16px 32px rgba(0, 0, 0, 0.45)); }
.cta .appstore { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); }

/* ===== Page hero (inner pages) ===== */
.page-hero { padding-block: clamp(56px, 9vw, 104px) clamp(24px, 4vw, 40px); }
.page-hero h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); }
.page-hero .lead { margin: 0; }
.page-hero-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
}
.page-hero-art {
  width: auto;
  height: clamp(180px, 22vw, 260px);
  filter: drop-shadow(0 16px 28px rgba(16, 27, 21, 0.18));
}
@media (max-width: 720px) {
  .page-hero-grid { grid-template-columns: 1fr; gap: 20px; }
  .page-hero-art { order: -1; height: 130px; }
}

/* ===== FAQ ===== */
.faq-wrap { display: grid; grid-template-columns: 220px 1fr; gap: clamp(24px, 5vw, 64px); }
.faq-nav { position: sticky; top: calc(var(--header-h) + 32px); align-self: start; display: flex; flex-direction: column; gap: 4px; }
.faq-nav a { display: block; padding: 6px 0; color: var(--muted); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.faq-nav a:hover { color: var(--accent); }
.faq-group { margin-bottom: 56px; }
.faq-group h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-bottom: 16px; }
details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  margin-bottom: 10px;
}
summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 56px 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.01em;
  position: relative;
  border-radius: var(--radius-sm);
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+";
  position: absolute;
  right: 22px; top: 50%;
  transform: translateY(-50%);
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--accent);
  transition: transform 0.2s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details .answer { padding: 0 22px 20px; color: var(--muted); }
details .answer p:last-child { margin: 0; }
@media (max-width: 820px) {
  .faq-wrap { grid-template-columns: 1fr; }
  .faq-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 0 18px; }
  .faq-nav a { padding: 10px 0; }
}

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.contact-card {
  padding: 28px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
}
.contact-card p { color: var(--muted); font-size: 0.96rem; }
.contact-card .value {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  word-break: break-word;
  margin-top: auto;
}
.social-list { list-style: none; padding: 0; margin: auto 0 0; display: grid; gap: 2px; }
.social-list a { display: inline-block; padding: 4px 0; font-weight: 600; text-decoration: none; }
.help-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.help-list div { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); }
.help-list p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 860px) { .contact-grid, .help-list { grid-template-columns: 1fr; } }

/* ===== Legal ===== */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.5rem; letter-spacing: -0.02em; margin-top: 2.4em; }
.legal h3 { font-size: 1.08rem; margin-top: 1.6em; }
.legal p, .legal li { color: var(--muted); }
.legal li { margin-bottom: 0.4em; }
.toc {
  padding: 22px 26px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.toc h2 { margin-top: 0; font-size: 1rem; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { padding-block: 2px; }
.toc a { text-decoration: none; }
@media (max-width: 560px) { .toc ol { columns: 1; } }
.callout {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--accent);
  background: var(--accent-soft);
  color: var(--text);
  font-weight: 500;
  margin: 1em 0;
}
.provider {
  padding: 16px 20px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line);
  background: var(--surface);
  margin-bottom: 12px;
  color: var(--muted);
}
.provider strong { display: block; color: var(--text); }

/* ===== Tutorial ===== */
.tut-glance { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.tut-glance div {
  padding: 14px 20px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.tut-glance b { display: block; font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.tut-glance span { font-size: 0.85rem; color: var(--muted); }
.tut-section { padding-top: clamp(32px, 5vw, 56px); }
.tut-body { min-width: 0; }
.tut-body > .callout { margin: 0 0 56px; }
.tut-part { margin-bottom: clamp(64px, 9vw, 104px); }
.tut-part > h2 { font-size: clamp(1.8rem, 3.6vw, 2.5rem); }
.tut-intro { color: var(--muted); font-size: 1.08rem; max-width: 42rem; margin-bottom: 36px; }
.tut-more { color: var(--muted); margin-top: 24px; }

.tut-steps { list-style: none; margin: 0; padding: 0; counter-reset: tstep; }
.tut-step {
  counter-increment: tstep;
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  padding: 0 0 40px 56px;
}
.tut-step:has(.tut-shot) { grid-template-columns: 1fr 180px; align-items: start; }
.tut-step::before {
  content: counter(tstep);
  position: absolute;
  left: 0; top: -2px;
  display: grid;
  place-items: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.tut-step::after {
  content: "";
  position: absolute;
  left: 17px; top: 42px; bottom: 6px;
  width: 2px;
  border-radius: 2px;
  background: var(--line);
}
.tut-step:last-child { padding-bottom: 0; }
.tut-step:last-child::after { display: none; }
.tut-step h3 { font-size: 1.25rem; margin-bottom: 0.45em; }
.tut-step p, .tut-step li { color: var(--muted); }
.tut-step p strong, .tut-step li strong { color: var(--text); }
.tut-step ul { padding-left: 20px; margin: 0 0 1em; }
.tut-step li { margin-bottom: 4px; }
.tut-step li::marker { color: var(--accent); }
.tut-step > div > :last-child { margin-bottom: 0; }
.tut-tip {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent-soft);
  font-size: 0.95rem;
}
.tut-tip b { color: var(--text); }
.habit-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 4px 0 18px;
}
.habit-grid > div {
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--line);
}
.habit-grid h4 {
  font-size: 0.98rem;
  letter-spacing: -0.01em;
  margin-bottom: 8px;
  color: var(--text);
}
.habit-grid ul { margin: 0; padding-left: 18px; font-size: 0.93rem; }
.habit-grid li { margin-bottom: 4px; }
@media (max-width: 760px) { .habit-grid { grid-template-columns: 1fr; } }
.tut-shot { margin: 0; }
.tut-shot .phone { border-radius: 28px; padding: 7px; }
.tut-shot .phone img { border-radius: 22px; }

.routine { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.routine-card {
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
}
.routine-time {
  display: inline-block;
  margin-bottom: 14px;
  padding: 4px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.routine-card h3 { font-size: 1.12rem; }
.routine-card ol { margin: 0; padding-left: 20px; color: var(--muted); font-size: 0.95rem; }
.routine-card li { margin-bottom: 8px; }
.routine-card li::marker { color: var(--accent); font-weight: 600; }
.routine-card strong { color: var(--text); }
.tut-wide {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 24px;
  margin: 40px 0 0;
}
.tut-wide .phone { width: min(200px, 40%); border-radius: 30px; padding: 8px; }
.tut-wide .phone img { border-radius: 23px; }
.tut-wide figcaption { flex-basis: 100%; text-align: center; font-size: 0.9rem; color: var(--muted); }

.prompts {
  list-style: none;
  margin: 0 0 24px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.prompts li {
  padding: 10px 16px;
  border-radius: 18px 18px 6px 18px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 0.95rem;
  font-weight: 500;
}
#lola-prompts > p:last-child { color: var(--muted); }
#control .help-list h3 { font-size: 1.05rem; }
#trouble details { margin-bottom: 10px; }

.tut-cta {
  padding: clamp(32px, 5vw, 48px);
  border-radius: var(--radius);
  background: var(--pine);
  color: #eef3ef;
  text-align: center;
}
.tut-cta h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.tut-cta .appstore { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.28); margin-top: 8px; }

@media (max-width: 960px) {
  .routine { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .tut-step, .tut-step:has(.tut-shot) { grid-template-columns: 1fr; padding-left: 48px; }
  .tut-shot { max-width: 170px; }
}

/* ===== Footer ===== */
.site-footer {
  background: var(--bg-dark);
  color: #a8b8ae;
  padding-block: 64px calc(32px + env(safe-area-inset-bottom, 0px));
  font-size: 0.92rem;
  --focus: #7fd3a6;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.site-footer h4 { color: #eef3ef; font-size: 0.9rem; letter-spacing: -0.005em; margin-bottom: 10px; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; }
.site-footer li a { display: inline-block; padding: 5px 0; }
.site-footer a { color: #a8b8ae; text-decoration: none; transition: color 0.15s ease; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 36px; width: auto; filter: invert(1); margin-bottom: 16px; }
.footer-brand p { max-width: 22rem; }
.footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(238, 243, 239, 0.12);
  font-size: 0.82rem;
  color: #7f9186;
}
@media (max-width: 720px) { .footer-grid { grid-template-columns: 1fr; } }

/* ===== Reveal ===== */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1); }
.js .reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js .reveal { opacity: 1; transform: none; transition: none; }
  .btn:active, .appstore:active, .icon-btn:active, .feature-jump a:active { transform: none; }
}
