/* Terminal Drill — terminaldrill.com
   Dark, terminal-inspired marketing site.
   Palette and typography mirror the iOS app. */

:root {
  --bg:        #0B0F10;
  --bg-2:     #0E1314;
  --surface:  #141A1C;
  --surface-2:#192022;
  --hairline: #1F2A2D;
  --hairline-2:#2A3539;
  --text:     #E6EDED;
  --text-dim: #9AA8AB;
  --text-faint:#6B797D;
  --accent:   #3DFFA3;
  --accent-2: #2BD988;
  --accent-glow: rgba(61, 255, 163, 0.18);
  --warn:     #FFB84D;
  --error:    #FF6B6B;

  --radius-sm: 10px;
  --radius:    16px;
  --radius-lg: 22px;

  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Roboto Mono", monospace;
  --sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  --display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", system-ui, sans-serif;

  --maxw: 1120px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  min-height: 100vh;
  line-height: 1.55;
  font-size: 16px;
  position: relative;
}

/* Ambient layers — soft aurora + faint dot grid for depth.
   Fixed so they don't scroll, sit behind everything. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -2;
  background:
    radial-gradient(1100px 620px at 78% -8%, rgba(61, 255, 163, 0.10), transparent 60%),
    radial-gradient(900px 520px at -6% 18%, rgba(61, 255, 163, 0.06), transparent 65%),
    radial-gradient(700px 600px at 50% 110%, rgba(61, 255, 163, 0.05), transparent 60%);
}
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  background-image:
    radial-gradient(circle at 1px 1px, rgba(255,255,255,0.035) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 80%);
  opacity: 0.7;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover { text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent); color: #001509; }

.container {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 15, 16, 0.65);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid color-mix(in srgb, var(--hairline) 70%, transparent);
}
.nav::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--accent) 25%, transparent), transparent);
  opacity: 0.5;
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.01em;
}
.brand:hover { text-decoration: none; }
.brand-logo {
  width: 30px; height: 30px;
  border-radius: 8px;
  display: inline-block;
  background-image: url('assets/app-icon.png');
  background-size: cover;
  box-shadow: 0 0 0 1px var(--hairline);
}
.brand-name {
  font-family: var(--display);
  font-weight: 700;
}
.brand-name .dot { color: var(--accent); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
}
.nav-links a {
  color: var(--text-dim);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

.nav-cta {
  background: linear-gradient(180deg, #4DFFB0 0%, #3DFFA3 50%, #2BD988 100%);
  color: #001509;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13.5px;
  box-shadow:
    0 6px 20px -8px rgba(61,255,163,0.45),
    inset 0 1px 0 rgba(255,255,255,0.25);
}
.nav-cta:hover {
  background: linear-gradient(180deg, #5FFFB8 0%, #45FFA9 50%, #33E08F 100%);
  text-decoration: none;
  box-shadow:
    0 8px 24px -8px rgba(61,255,163,0.55),
    inset 0 1px 0 rgba(255,255,255,0.3);
}

/* ---------- Section primitives ---------- */
section {
  padding: 104px 0;
  position: relative;
}
/* Soft gradient hairline between sections instead of a hard border */
section + section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(960px, 90%);
  height: 1px;
  background: linear-gradient(90deg,
    transparent,
    color-mix(in srgb, var(--hairline-2) 90%, transparent) 30%,
    color-mix(in srgb, var(--accent) 30%, transparent) 50%,
    color-mix(in srgb, var(--hairline-2) 90%, transparent) 70%,
    transparent);
  opacity: 0.55;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--mono);
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: 999px;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 12%, transparent), color-mix(in srgb, var(--accent) 4%, transparent));
  box-shadow:
    0 0 0 1px rgba(0,0,0,0.2) inset,
    0 6px 22px -10px rgba(61,255,163,0.4);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

h1, h2, h3, h4 {
  font-family: var(--display);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
  color: var(--text);
}
h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.04; }
h2 { font-size: clamp(28px, 3.6vw, 44px); line-height: 1.1; }
h3 { font-size: 20px; }

.section-head {
  max-width: 720px;
  margin: 0 auto 56px;
  text-align: center;
}
.section-head p {
  color: var(--text-dim);
  font-size: 18px;
  margin: 12px 0 0;
}

p { color: var(--text-dim); }

code, .mono { font-family: var(--mono); }
.k { color: var(--accent); }

/* ---------- Hero ---------- */
.hero {
  padding: 96px 0 80px;
  border-top: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 56px;
  align-items: center;
}
.hero-copy h1 {
  margin-top: 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #C7D1D2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-copy h1 .accent {
  background: linear-gradient(180deg, #BFFFE0 0%, #3DFFA3 60%, #2BD988 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 0 50px var(--accent-glow);
  filter: drop-shadow(0 4px 24px rgba(61,255,163,0.18));
}
.hero-sub {
  font-size: 19px;
  color: var(--text-dim);
  margin: 18px 0 32px;
  max-width: 520px;
}
.hero-cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 22px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(180deg, #4DFFB0 0%, #3DFFA3 50%, #2BD988 100%);
  color: #001509;
  box-shadow:
    0 10px 32px -10px rgba(61,255,163,0.45),
    0 1px 0 rgba(255,255,255,0.25) inset,
    0 0 0 1px rgba(0,0,0,0.08) inset;
}
.btn-primary:hover {
  background: linear-gradient(180deg, #5FFFB8 0%, #45FFA9 50%, #33E08F 100%);
  box-shadow:
    0 14px 40px -8px rgba(61,255,163,0.55),
    0 1px 0 rgba(255,255,255,0.3) inset,
    0 0 0 1px rgba(0,0,0,0.08) inset;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hairline-2);
}
.btn-ghost:hover { border-color: var(--text-faint); }

.hero-meta {
  margin-top: 28px;
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  color: var(--text-faint);
  font-size: 13px;
  font-family: var(--mono);
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 rgba(61,255,163, 0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(61,255,163, 0.45); }
  70% { box-shadow: 0 0 0 12px rgba(61,255,163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(61,255,163, 0); }
}

/* ---------- Phone preview (real screenshot) ---------- */
.hero-art {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
}
.phone-preview {
  position: relative;
  width: 320px;
  filter: drop-shadow(0 60px 90px rgba(0,0,0,0.55))
          drop-shadow(0 0 60px rgba(61,255,163,0.08));
  transition: transform .35s ease, filter .35s ease;
}
.phone-preview:hover {
  transform: translateY(-4px);
  filter: drop-shadow(0 70px 110px rgba(0,0,0,0.65))
          drop-shadow(0 0 80px rgba(61,255,163,0.14));
}
.phone-preview img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 28px;
  /* Subtle hairline edge so the phone reads cleanly against the dark bg */
  box-shadow: 0 0 0 1px rgba(255,255,255,0.04);
  transition: opacity .25s ease;
}

/* Invisible click hotspots aligned to the tab bar in the screenshot.
   Coordinates are percentages so they scale with the responsive image. */
.phone-hotspots {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hotspot {
  position: absolute;
  top: 87.5%;
  height: 7.5%;
  background: transparent;
  border: 0;
  cursor: pointer;
  pointer-events: auto;
  appearance: none;
  border-radius: 14px;
  transition: background .15s ease, transform .12s ease;
}
.hotspot:hover {
  background: rgba(61, 255, 163, 0.10);
}
.hotspot:active {
  transform: scale(0.96);
}
.hotspot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  background: rgba(61, 255, 163, 0.08);
}
.tab-today   { left: 3%;  width: 19%; }
.tab-drill   { left: 22%; width: 19%; }
.tab-path    { left: 41%; width: 19%; }
.tab-codex   { left: 60%; width: 19%; }
.tab-profile { left: 78%; width: 19%; }

.phone-chips {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  flex-wrap: wrap;
  justify-content: center;
}
.phone-chips button {
  appearance: none;
  border: 0;
  background: transparent;
  cursor: pointer;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-dim);
  padding: 6px 12px;
  border-radius: 999px;
  transition: color .15s ease, background .15s ease;
}
.phone-chips button:hover { color: var(--text); }
.phone-chips button.active {
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
}
.phone-chips button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 920px) {
  .phone-preview { width: 280px; }
}
@media (max-width: 620px) {
  .phone-preview { width: 240px; }
}

/* ---------- HTML/CSS Phone Mockup (live, navigable) ---------- */
.phone {
  position: relative;
  width: 320px;
  margin: 0 auto;
  background: #06090A;
  border-radius: 46px;
  border: 1px solid var(--hairline);
  box-shadow:
    0 60px 120px -40px rgba(0,0,0,0.7),
    inset 0 0 0 6px #0a1011,
    inset 0 0 0 7px var(--hairline);
  padding: 6px;
  transition: transform .35s ease;
}
.phone:hover { transform: translateY(-3px); }
/* Dynamic Island */
.phone::before {
  content: "";
  position: absolute;
  top: 16px; left: 50%;
  transform: translateX(-50%);
  width: 96px; height: 24px;
  background: #000;
  border-radius: 999px;
  z-index: 5;
}
.phone-screen {
  width: 100%;
  background: var(--bg);
  border-radius: 40px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
  height: 660px;
}
.phone-statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 28px 4px;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.phone-statusbar .status-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  opacity: 0.95;
}

.phone-screen-body {
  flex: 1;
  min-height: 0;
  padding: 4px 16px 14px;
  overflow-y: auto;
  overflow-x: hidden;
  animation: phoneFade .22s ease;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.phone-screen-body::-webkit-scrollbar { display: none; }

/* Phone screen header (per-tab title + optional gear) */
.phone-header {
  position: relative;
  text-align: center;
  padding: 14px 0 10px;
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}
.phone-header .gear {
  position: absolute;
  right: 4px; top: 4px;
  width: 30px; height: 30px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: grid; place-items: center;
  color: var(--text-dim);
}

/* Tab bar — real interactive controls */
.phone-tabbar {
  margin: 6px 12px 6px;
  background: var(--bg-2);
  border: 1px solid var(--hairline);
  border-radius: 22px;
  padding: 6px;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 2px;
}
.phone-tabbar > button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 7px 4px;
  text-align: center;
  font-size: 9.5px;
  color: var(--text-faint);
  font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  font-family: inherit;
  border-radius: 14px;
  transition: color .15s ease, background .15s ease, transform .12s ease;
}
.phone-tabbar > button .ico {
  width: 18px; height: 18px;
  transition: transform .2s ease;
}
.phone-tabbar > button:hover { color: var(--text-dim); }
.phone-tabbar > button.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.phone-tabbar > button.active .ico { transform: scale(1.05); }
.phone-tabbar > button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}
.phone-tabbar > button:active { transform: scale(0.97); }

.phone-home-indicator {
  width: 110px; height: 4px;
  background: rgba(255,255,255,0.85);
  border-radius: 999px;
  margin: 0 auto 6px;
}

/* --- Per-screen content shared rules --- */
.phone-meta-row {
  display: flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
  margin: 0 0 10px;
}
.phone-meta-row svg { color: var(--accent); }

/* Generic card primitive used throughout */
.p-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.p-card.subtle {
  background: linear-gradient(160deg, #11181A 0%, #0D1314 100%);
}
.p-card-title {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  margin: 0 0 4px;
}
.p-card-sub {
  color: var(--text-dim);
  font-size: 11.5px;
}

.phone-greet {
  color: var(--text-dim);
  font-size: 12px;
  margin: 8px 0 4px;
  font-family: var(--mono);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.phone-greet b { color: var(--accent); font-weight: 600; }

.streak-card {
  background: linear-gradient(160deg, #0F1718 0%, #0B1112 100%);
  border: 1px solid var(--hairline-2);
  border-radius: 18px;
  padding: 16px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 10px 0 14px;
}
.flame {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: rgba(255, 184, 77, 0.12);
  color: #FFB84D;
  display: grid; place-items: center;
  font-size: 22px;
}
.streak-card .num { font-size: 22px; font-weight: 700; color: var(--text); }
.streak-card .lbl { font-size: 12px; color: var(--text-dim); }

.cta-card {
  background: var(--accent);
  color: #001509;
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 600;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
}
.cta-card svg { width: 18px; height: 18px; }

.objective {
  margin: 14px 0 12px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
}
.objective .row {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--text-dim); margin-bottom: 8px;
}
.objective .bar {
  height: 6px; border-radius: 999px; background: #0A1011; overflow: hidden;
}
.objective .bar > span {
  display: block; height: 100%;
  width: 40%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

.module-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  font-size: 13px;
}
.module-card .ico {
  width: 32px; height: 32px; border-radius: 8px;
  background: rgba(61,255,163,0.10);
  color: var(--accent);
  display: grid; place-items: center; font-size: 13px;
}
.module-card .lbl { color: var(--text); font-weight: 600; }
.module-card .pct { color: var(--text-dim); font-size: 11px; }

.tab-bar {
  border-top: 1px solid var(--hairline);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  padding: 10px 6px 14px;
  background: var(--bg-2);
}
.tab-bar > button {
  appearance: none;
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 6px 4px 4px;
  text-align: center;
  font-size: 10px;
  color: var(--text-faint);
  font-weight: 600;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: inherit;
  border-radius: 8px;
  transition: color .15s ease, background .15s ease;
}
.tab-bar > button .glyph { font-size: 18px; transition: transform .2s ease; }
.tab-bar > button:hover { color: var(--text-dim); }
.tab-bar > button.active {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}
.tab-bar > button.active .glyph { transform: scale(1.05); }

/* Phone-screen content variants (each tab) */
.phone-title {
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin: 0 0 8px;
}
.phone-greet .map-ico {
  color: var(--accent);
  margin-right: 4px;
}

/* --- Drill tab --- */
.seg {
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 3px;
  margin: 4px 0 6px;
}
.seg button {
  appearance: none; border: 0; cursor: default;
  font-family: inherit;
  background: transparent;
  color: var(--text-dim);
  padding: 6px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}
.seg button.active {
  background: var(--hairline-2);
  color: var(--text);
}
.seg-sub {
  font-size: 11px;
  color: var(--text-dim);
  margin: 0 4px 8px;
}
.quick-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 12px;
}
.quick-card .t { color: var(--text); font-weight: 600; font-size: 14px; }
.quick-card .s { color: var(--text-dim); font-size: 12px; margin: 2px 0 10px; }
.quick-card .start {
  appearance: none; border: 0; cursor: default;
  width: 100%;
  background: var(--accent);
  color: #001509;
  padding: 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
}
.mini-mod {
  display: flex; align-items: center; gap: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 8px 12px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text);
}
.mini-mod .g { color: var(--accent); font-size: 13px; }
.mini-mod .pct { margin-left: auto; color: var(--text-faint); font-family: var(--mono); font-size: 10px; }
.mini-mod .pr { margin-left: auto; color: #FFB84D; font-size: 11px; }
.mini-mod.premium { color: var(--text-dim); }

/* --- Daily challenge card on Today --- */
.daily-card {
  background: linear-gradient(160deg, #181F22 0%, #11181A 100%);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px;
  margin: 12px 0;
}
.daily-card .row { display: flex; align-items: flex-start; gap: 10px; }
.daily-card .cal {
  width: 32px; height: 32px;
  background: rgba(255,184,77,0.12);
  color: #FFB84D;
  border-radius: 8px;
  display: grid; place-items: center;
  font-size: 16px;
}
.daily-card .t { color: var(--text); font-weight: 600; font-size: 13px; }
.daily-card .s { color: var(--text-dim); font-size: 11.5px; margin-top: 2px; }
.daily-card .daily-btn {
  appearance: none; border: 0; cursor: default;
  width: 100%;
  background: var(--accent);
  color: #001509;
  margin-top: 10px;
  padding: 9px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 12px;
  font-family: inherit;
}

/* --- Path tab additions --- */
.path-item.locked {
  opacity: 0.55;
}
.path-item.premium {
  border-color: color-mix(in srgb, #FFB84D 35%, var(--hairline));
}
.path-item .pct.premium { color: #FFB84D; font-family: var(--mono); font-size: 10px; }
.path-item .meta {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-faint);
}

/* --- New: Today extras (Recent, Recommended) --- */
.objective .sub {
  font-size: 11px;
  color: var(--text-faint);
  margin-top: 6px;
}
.recent-card, .reco-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 8px;
}
.recent-card .t, .reco-card .t {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  margin-bottom: 4px;
}
.recent-card .s {
  color: var(--text-dim);
  font-size: 11.5px;
}
.reco-card .row {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 0 6px;
}
.reco-card .ico {
  width: 24px; height: 24px;
  display: grid; place-items: center;
  color: var(--accent);
  flex-shrink: 0;
}
.reco-card .info { flex: 1; min-width: 0; }
.reco-card .name { color: var(--text); font-weight: 600; font-size: 13px; }
.reco-card .desc { color: var(--text-dim); font-size: 11px; }
.reco-card .chev { color: var(--text-faint); flex-shrink: 0; }
.reco-card .bar {
  height: 3px; border-radius: 999px;
  background: #0A1011; overflow: hidden;
  margin-top: 4px;
}
.reco-card .bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}

/* --- Drill BY MODULE rows --- */
.mini-mod {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 9px 14px;
  margin-bottom: 6px;
  font-size: 12px;
  color: var(--text);
}
.mini-mod .ico {
  width: 18px; height: 18px;
  color: var(--accent);
  flex-shrink: 0;
  display: grid; place-items: center;
}
.mini-mod .name { font-weight: 600; flex: 1; }
.mini-mod .pct { color: var(--text-faint); font-family: var(--mono); font-size: 10px; }
.mini-mod .chev { color: var(--text-faint); }
.mini-mod.premium .ico { color: #FFB84D; }
.mini-mod.premium .name { color: var(--text-dim); }

/* --- Path full module cards (Path tab) --- */
.path-list { display: flex; flex-direction: column; gap: 8px; }
.path-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px 14px;
}
.path-card .head {
  display: flex; align-items: center; gap: 10px;
}
.path-card .ico {
  width: 28px; height: 28px;
  border-radius: 8px;
  background: rgba(61, 255, 163, 0.10);
  color: var(--accent);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.path-card .body { flex: 1; min-width: 0; }
.path-card .name {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: -0.01em;
}
.path-card .desc {
  color: var(--text-dim);
  font-size: 11px;
  margin-top: 1px;
  line-height: 1.35;
}
.path-card .right {
  display: flex; align-items: center; gap: 6px;
  flex-shrink: 0;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}
.path-card .right .pct { font-size: 11px; }
.path-card .right .pct.locked { color: var(--text-faint); }
.path-card .right .pct.premium { color: #FFB84D; font-weight: 700; letter-spacing: 0.1em; }
.path-card .pbar {
  height: 3px; border-radius: 999px;
  background: #0A1011; overflow: hidden;
  margin-top: 8px;
}
.path-card .pbar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.path-card .meta {
  margin-top: 8px;
  font-size: 10.5px;
  color: var(--text-faint);
  display: flex; align-items: center; gap: 6px;
}
.path-card.locked { opacity: 0.65; }
.path-card.locked .ico { background: rgba(255,255,255,0.04); color: var(--text-faint); }
.path-card.premium .ico { background: rgba(255,184,77,0.10); color: #FFB84D; }
.path-card.premium .meta { color: #FFB84D; }

/* --- Profile additions: Stats / Streak / Mastery card titles + bar --- */
.profile-card-title {
  font-weight: 700;
  color: var(--text);
  font-size: 14px;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.profile-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 10px;
}
.profile-card .row3 {
  display: grid; grid-template-columns: repeat(3, 1fr);
}
.profile-card .row2 {
  display: grid; grid-template-columns: repeat(2, 1fr);
}
.profile-card .stat-cell {
  position: relative;
}
.profile-card .stat-cell + .stat-cell {
  border-left: 1px solid var(--hairline);
  padding-left: 12px;
}
.profile-card .row3 .stat-cell + .stat-cell,
.profile-card .row2 .stat-cell + .stat-cell {
  padding-left: 12px;
}
.profile-card .stat-cell .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.profile-card .stat-cell .lbl {
  font-size: 10.5px;
  color: var(--text-dim);
  margin-top: 2px;
}
.mastery {
  display: flex; flex-direction: column;
  font-size: 12px;
  padding: 6px 0;
}
.mastery .row {
  display: flex; justify-content: space-between;
  margin-bottom: 6px;
}
.mastery .name { color: var(--text); }
.mastery .pct { color: var(--text-dim); font-family: var(--mono); font-size: 11px; }
.mastery .bar {
  height: 2px; border-radius: 999px;
  background: #0A1011; overflow: hidden;
}
.mastery .bar > span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--accent-2), var(--accent));
}
.mastery + .mastery { margin-top: 4px; }
.mastery-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.mastery-head .count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--text-dim);
}

/* Updated rank-card with XP */
.rank-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.rank-card .leaf {
  width: 36px; height: 36px;
  background: rgba(61,255,163,0.12);
  color: var(--accent);
  border-radius: 10px;
  display: grid; place-items: center;
}
.rank-card .body { flex: 1; min-width: 0; }
.rank-card .name { color: var(--text); font-weight: 700; font-size: 14px; }
.rank-card .lvl { color: var(--text-dim); font-size: 11px; margin-top: 1px; }
.rank-card .xp {
  color: var(--text-dim);
  font-family: var(--mono);
  font-size: 12px;
  flex-shrink: 0;
}

/* Updated streak card on Today (bigger flame, no streak yet) */
.streak-card {
  background: linear-gradient(160deg, #11181A 0%, #0B1112 100%);
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
  padding: 12px 14px;
  display: flex; align-items: center; gap: 12px;
  margin: 4px 0 10px;
}
.streak-card .flame {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--text-dim);
  display: grid; place-items: center;
}
.streak-card .num { font-size: 16px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.streak-card .lbl { font-size: 11.5px; color: var(--text-dim); margin-top: 1px; }

/* Updated cta-card to look like real app's CTA pill */
.cta-card {
  background: var(--accent);
  color: #001509;
  border-radius: 14px;
  padding: 12px 16px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  border: 0;
  cursor: pointer;
  font-family: inherit;
  width: 100%;
  margin-bottom: 8px;
  appearance: none;
}
.cta-card .term { display: inline-flex; align-items: center; gap: 8px; }

/* Codex command rows — show name + description vertically */
.codex-cmd {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 14px;
  margin-bottom: 6px;
  display: flex; align-items: center; gap: 10px;
}
.codex-cmd .info { flex: 1; min-width: 0; }
.codex-cmd .name { font-family: var(--mono); color: var(--accent); font-size: 14px; font-weight: 700; }
.codex-cmd .desc { font-size: 11px; color: var(--text-dim); margin-top: 1px; }
.codex-cmd .ex {
  font-family: var(--mono); color: var(--text-faint); font-size: 10px;
}
.codex-cmd .chev { color: var(--text-faint); flex-shrink: 0; }

/* --- Profile tab redesign --- */
.rank-card {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, transparent), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 12px;
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 10px;
}
.rank-card .leaf {
  width: 36px; height: 36px;
  background: rgba(61,255,163,0.10);
  color: var(--accent);
  border-radius: 10px;
  display: grid; place-items: center; font-size: 18px;
}
.rank-card .name { color: var(--text); font-weight: 600; font-size: 14px; }
.rank-card .lvl { color: var(--text-dim); font-size: 11px; }
.rank-card .xp { color: var(--text-dim); font-family: var(--mono); font-size: 12px; }

.quote {
  font-style: italic;
  color: var(--text-dim);
  font-size: 12px;
  margin: 0 4px 12px;
  line-height: 1.45;
}
.profile-stats3 {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px;
  margin-bottom: 10px;
}
.profile-stats3 > div { text-align: center; }
.profile-stats3 .n { color: var(--text); font-weight: 700; font-family: var(--display); font-size: 18px; }
.profile-stats3 .l { color: var(--text-dim); font-size: 10px; margin-top: 2px; }
.mastery {
  display: flex; justify-content: space-between;
  font-size: 12px;
  padding: 6px 4px;
  border-bottom: 1px dashed color-mix(in srgb, var(--hairline) 60%, transparent);
  color: var(--text);
}
.mastery span:last-child { color: var(--text-dim); font-family: var(--mono); font-size: 11px; }

.phone-content {
  animation: phoneFade .2s ease;
}
@keyframes phoneFade {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Path tab */
.path-list { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.path-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 12px;
}
.path-item .head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; }
.path-item .head .name { color: var(--text); font-weight: 600; }
.path-item .head .pct { color: var(--text-dim); font-family: var(--mono); font-size: 11px; }
.path-item .pbar { height: 4px; border-radius: 999px; background: #0A1011; margin-top: 8px; overflow: hidden; }
.path-item .pbar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--accent-2), var(--accent)); }
.path-item.locked .head .name { color: var(--text-faint); }
.path-section-title {
  font-family: var(--mono);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--text-faint);
  margin: 8px 2px 6px;
}

/* Codex tab */
.codex-search {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 9px 12px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-faint);
  display: flex; align-items: center; gap: 8px;
  margin: 4px 0 10px;
}
.codex-cat {
  font-family: var(--mono);
  font-size: 9.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--text-faint);
  margin: 6px 2px 4px;
}
.codex-cmd {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 6px;
  display: flex; justify-content: space-between; align-items: center;
}
.codex-cmd .name { font-family: var(--mono); color: var(--accent); font-size: 13px; font-weight: 600; }
.codex-cmd .desc { font-size: 11px; color: var(--text-dim); margin-top: 2px; }

/* Profile tab */
.profile-id {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 10%, transparent), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 25%, var(--hairline));
  border-radius: 14px;
  padding: 14px;
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 10px;
}
.profile-id .avatar {
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg);
  display: grid; place-items: center;
  font-family: var(--mono); color: var(--accent); font-weight: 700;
}
.profile-id .name { color: var(--text); font-weight: 600; font-size: 14px; }
.profile-id .rank { color: var(--accent); font-family: var(--mono); font-size: 11px; }
.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.profile-stat {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 10px 12px;
}
.profile-stat .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 18px;
  color: var(--text);
  letter-spacing: -0.01em;
}
.profile-stat .num .accent { color: var(--accent); }
.profile-stat .lbl {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-faint);
  margin-top: 2px;
  font-family: var(--mono);
}

/* Drill tab */
.drill-prompt {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 12px;
  font-size: 13px;
  color: var(--text);
  line-height: 1.4;
  margin: 6px 0 10px;
}
.drill-prompt .small {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 6px;
}
.drill-input {
  background: #06090A;
  border: 1px solid var(--hairline-2);
  border-radius: 10px;
  padding: 10px 12px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  display: flex; align-items: center; gap: 8px;
}
.drill-input .cursor {
  display: inline-block;
  width: 8px; height: 14px;
  background: var(--accent);
  margin-left: 2px;
  animation: blink 1.1s step-end infinite;
  vertical-align: middle;
}
@keyframes blink {
  50% { opacity: 0; }
}
.drill-actions {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 10px;
}
.drill-actions button {
  appearance: none; border: 0; cursor: default; font-family: inherit;
  border-radius: 999px;
  padding: 8px 10px;
  font-size: 11px; font-weight: 600;
}
.drill-actions .hint {
  background: transparent;
  color: var(--text-dim);
  border: 1px solid var(--hairline-2);
}
.drill-actions .check {
  background: var(--accent);
  color: #001509;
}
.drill-progress {
  display: flex; gap: 4px; justify-content: center; margin-top: 10px;
}
.drill-progress .d {
  width: 6px; height: 6px; border-radius: 50%; background: var(--hairline-2);
}
.drill-progress .d.done { background: var(--accent); }
.drill-progress .d.cur { background: var(--text); }

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.feature {
  position: relative;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 80%, transparent) 0%, var(--surface) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 26px 24px;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease, box-shadow .25s ease;
}
.feature::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 0%, transparent), color-mix(in srgb, var(--accent) 0%, transparent));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  transition: background .25s ease;
}
.feature::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  background: radial-gradient(220px 120px at 30% 0%, rgba(61,255,163,0.10), transparent 70%);
}
.feature:hover {
  border-color: transparent;
  transform: translateY(-3px);
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.7);
}
.feature:hover::before {
  background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 55%, transparent), color-mix(in srgb, var(--accent) 5%, transparent) 60%);
}
.feature:hover::after { opacity: 1; }
.feature .ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent) 6%, transparent));
  color: var(--accent);
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
.feature h3 { margin-bottom: 6px; font-size: 18px; }
.feature p { margin: 0; font-size: 14.5px; line-height: 1.6; }

/* ---------- Drill demo ---------- */
.demo-wrap {
  max-width: 720px;
  margin: 0 auto;
}
.demo {
  background:
    radial-gradient(700px 300px at 50% -50%, rgba(61,255,163,0.06), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 90%, transparent), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow:
    0 40px 100px -40px rgba(0,0,0,0.8),
    inset 0 1px 0 rgba(255,255,255,0.04);
  position: relative;
}
.demo-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.demo-progress { display: flex; gap: 6px; }
.demo-progress .dot {
  width: 9px; height: 9px; border-radius: 50%;
  background: var(--hairline-2);
}
.demo-progress .dot.done { background: var(--accent); }
.demo-progress .dot.active { background: var(--text); }

.demo-meta {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--text-dim);
}

.prompt {
  background: var(--bg);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 18px 20px;
  font-family: var(--display);
  font-size: 22px;
  color: var(--text);
  letter-spacing: -0.01em;
  line-height: 1.3;
}
.prompt code { color: var(--accent); font-size: 0.9em; }

.terminal-input {
  margin-top: 14px;
  background: #06090A;
  border: 1px solid var(--hairline-2);
  border-radius: 14px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--mono);
}
.terminal-input .ps1 {
  color: var(--accent);
  user-select: none;
  font-weight: 700;
}
.terminal-input input {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--text);
  font-family: var(--mono);
  font-size: 16px;
  flex: 1;
  caret-color: var(--accent);
}
.terminal-input input::placeholder { color: var(--text-faint); }

.demo-actions {
  display: flex; gap: 10px; margin-top: 14px;
}
.demo-actions .btn { flex: 1; justify-content: center; padding: 12px 16px; font-size: 14px; }

.feedback {
  margin-top: 14px;
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 14px;
  border: 1px solid transparent;
  display: none;
}
.feedback.show { display: block; }
.feedback.ok {
  background: color-mix(in srgb, var(--accent) 8%, transparent);
  border-color: color-mix(in srgb, var(--accent) 35%, transparent);
  color: var(--text);
}
.feedback.ok b { color: var(--accent); }
.feedback.bad {
  background: color-mix(in srgb, var(--error) 8%, transparent);
  border-color: color-mix(in srgb, var(--error) 35%, transparent);
  color: var(--text);
}
.feedback.bad b { color: var(--error); }
.feedback .explain {
  margin-top: 8px;
  color: var(--text-dim);
  font-size: 13px;
}
.feedback .answer {
  font-family: var(--mono);
  background: var(--bg);
  border: 1px solid var(--hairline);
  padding: 2px 8px; border-radius: 6px; color: var(--accent);
}

.demo-foot {
  margin-top: 16px;
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px;
  color: var(--text-faint);
  font-family: var(--mono);
}

/* ---------- Packs (grouped modules) ---------- */
.packs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.pack {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 80%, transparent) 0%, var(--surface) 100%);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 22px 22px 14px;
  position: relative;
  overflow: hidden;
  transition: border-color .2s ease, transform .2s ease;
}
.pack:hover {
  border-color: color-mix(in srgb, var(--accent) 28%, var(--hairline));
}
.pack-head {
  border-bottom: 1px solid var(--hairline);
  padding-bottom: 14px;
  margin-bottom: 6px;
}
.pack-head h3 {
  margin: 0 0 4px;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.pack-head p {
  margin: 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--accent);
  letter-spacing: 0.02em;
}
.pack-modules {
  list-style: none;
  margin: 0;
  padding: 0;
}
.pack-modules li {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "name tag" "sub tag";
  column-gap: 12px;
  padding: 12px 0;
  border-bottom: 1px dashed color-mix(in srgb, var(--hairline) 60%, transparent);
}
.pack-modules li:last-child { border-bottom: 0; }
.pack-modules .m-name {
  grid-area: name;
  color: var(--text);
  font-weight: 600;
  font-size: 14.5px;
}
.pack-modules .m-sub {
  grid-area: sub;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.5;
  margin-top: 2px;
}
.pack-modules .m-tag {
  grid-area: tag;
  align-self: center;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid var(--hairline-2);
  color: var(--text-faint);
  white-space: nowrap;
}
.pack-modules li.free .m-tag {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 8%, transparent);
}

@media (max-width: 760px) {
  .packs { grid-template-columns: 1fr; }
}

/* ---------- Stats strip ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 80%, transparent), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
}
.stats::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(60% 120% at 50% -20%, rgba(61,255,163,0.08), transparent 70%);
}
.stat {
  padding: 32px 24px;
  border-right: 1px solid var(--hairline);
  text-align: center;
  position: relative;
  z-index: 1;
}
.stat:last-child { border-right: 0; }
.stat .num {
  font-family: var(--display);
  font-weight: 700;
  font-size: 40px;
  letter-spacing: -0.03em;
  background: linear-gradient(180deg, #BFFFE0 0%, #3DFFA3 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 12px rgba(61,255,163,0.18));
}
.stat .lbl {
  margin-top: 6px;
  color: var(--text-dim);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-family: var(--mono);
}

/* ---------- Privacy callout ---------- */
.privacy-block {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 36px;
  align-items: center;
}
.privacy-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px;
  font-family: var(--mono);
  font-size: 13.5px;
  line-height: 1.7;
  color: var(--text-dim);
}
.privacy-card .line { display: block; }
.privacy-card .line .label { color: var(--text); }
.privacy-card .line .val { color: var(--accent); }

/* ---------- Screenshots gallery ---------- */
.gallery {
  position: relative;
  margin-top: 8px;
  /* Full-bleed: lets the row touch the edges without container padding */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  overflow: hidden;
  /* Soft edge fade so cards feel like they continue off-screen */
  mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%);
}
.gallery-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  padding: 12px max(24px, calc(50vw - var(--maxw) / 2 + 24px)) 24px;
  /* Hide scrollbar — the drag affordance is visual, scrollbar would clutter */
  scrollbar-width: none;
  -ms-overflow-style: none;
  cursor: grab;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-track:active { cursor: grabbing; }

.shot {
  flex: 0 0 auto;
  margin: 0;
  width: 200px;
  scroll-snap-align: start;
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: 6px;
  overflow: hidden;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
  box-shadow: 0 24px 50px -28px rgba(0,0,0,0.6);
}
.shot:hover {
  transform: translateY(-3px);
  border-color: color-mix(in srgb, var(--accent) 25%, var(--hairline));
  box-shadow:
    0 32px 60px -28px rgba(0,0,0,0.7),
    0 0 24px -10px rgba(61,255,163,0.15);
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  background: var(--bg);
}

@media (min-width: 920px) {
  .shot { width: 230px; }
}

/* Prev/Next floating buttons */
.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(20, 26, 28, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--hairline-2);
  color: var(--text);
  cursor: pointer;
  display: grid;
  place-items: center;
  appearance: none;
  font-family: inherit;
  transition: background .15s ease, border-color .15s ease, opacity .2s ease, transform .15s ease;
  box-shadow: 0 10px 30px -8px rgba(0,0,0,0.5);
}
.gallery-nav.prev { left: max(16px, calc(50vw - var(--maxw) / 2)); }
.gallery-nav.next { right: max(16px, calc(50vw - var(--maxw) / 2)); }
.gallery-nav:hover:not(:disabled) {
  background: rgba(25, 32, 34, 0.95);
  border-color: color-mix(in srgb, var(--accent) 35%, var(--hairline-2));
  color: var(--accent);
  transform: translateY(-50%) scale(1.05);
}
.gallery-nav:active:not(:disabled) {
  transform: translateY(-50%) scale(0.96);
}
.gallery-nav:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.gallery-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

@media (max-width: 620px) {
  .gallery-nav { display: none; } /* touch-swipe is the better UX on mobile */
}

/* ---------- Pricing ---------- */
.pricing-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  align-items: stretch;
}
.price-card {
  position: relative;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 80%, transparent), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.price-card.featured {
  border-color: color-mix(in srgb, var(--accent) 50%, transparent);
  background:
    radial-gradient(700px 280px at 50% -50%, rgba(61,255,163,0.16), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 90%, transparent), var(--surface));
  box-shadow:
    0 40px 90px -40px rgba(61,255,163,0.18),
    inset 0 1px 0 rgba(255,255,255,0.05);
}
.price-flag {
  position: absolute;
  top: 14px; right: 14px;
  font-family: var(--mono);
  font-size: 10.5px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  padding: 4px 10px;
  border-radius: 999px;
}
.price-head h3 {
  margin: 0 0 12px;
  font-size: 18px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text-dim);
}
.price-card.featured .price-head h3 { color: var(--accent); }
.price {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 6px;
}
.price .amount {
  font-family: var(--display);
  font-weight: 700;
  font-size: 56px;
  letter-spacing: -0.03em;
  color: var(--text);
  line-height: 1;
}
.price-card.featured .price .amount {
  background: linear-gradient(180deg, #BFFFE0 0%, #3DFFA3 70%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 16px rgba(61,255,163,0.22));
}
.price .period {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
}
.price-sub {
  margin: 8px 0 22px;
  color: var(--text-dim);
  font-size: 14.5px;
}
.price-bullets {
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
  flex: 1;
}
.price-bullets li {
  position: relative;
  padding: 8px 0 8px 26px;
  color: var(--text-dim);
  font-size: 14px;
  line-height: 1.5;
  border-bottom: 1px dashed color-mix(in srgb, var(--hairline) 60%, transparent);
}
.price-bullets li:last-child { border-bottom: 0; }
.price-bullets li b { color: var(--text); font-weight: 600; }
.price-bullets li::before {
  content: "";
  position: absolute;
  left: 0; top: 14px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
}
.price-bullets li::after {
  content: "";
  position: absolute;
  left: 4px; top: 17px;
  width: 6px; height: 3px;
  border-left: 1.5px solid var(--accent);
  border-bottom: 1.5px solid var(--accent);
  transform: rotate(-45deg);
}
.price-cta {
  width: 100%;
  justify-content: center;
}
.pricing-foot {
  margin: 28px auto 0;
  max-width: 720px;
  text-align: center;
  font-size: 13px;
  color: var(--text-faint);
}

@media (max-width: 760px) {
  .pricing-grid { grid-template-columns: 1fr; }
}

/* ---------- Roadmap pillars ---------- */
.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1000px;
  margin: 0 auto;
}
.pillar {
  position: relative;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 80%, transparent), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 28px 24px;
  text-align: left;
  overflow: hidden;
  transition: border-color .25s ease, transform .25s ease;
}
.pillar::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity .25s ease;
  background: radial-gradient(220px 120px at 30% 0%, rgba(61,255,163,0.10), transparent 70%);
}
.pillar:hover {
  border-color: color-mix(in srgb, var(--accent) 30%, var(--hairline));
  transform: translateY(-2px);
}
.pillar:hover::after { opacity: 1; }
.pillar .ico {
  width: 42px; height: 42px;
  border-radius: 11px;
  display: grid; place-items: center;
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--accent) 18%, transparent), color-mix(in srgb, var(--accent) 6%, transparent));
  color: var(--accent);
  margin-bottom: 16px;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 25%, transparent);
}
.pillar h3 { margin: 0 0 6px; font-size: 18px; }
.pillar p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-dim);
}

@media (max-width: 920px) {
  .pillars { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 620px) {
  .pillars { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */
.faq {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq details {
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 70%, transparent), var(--surface));
  border: 1px solid var(--hairline);
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color .2s ease, background .2s ease;
}
.faq details:hover { border-color: var(--hairline-2); }
.faq details[open] {
  border-color: color-mix(in srgb, var(--accent) 25%, var(--hairline));
  background:
    radial-gradient(400px 200px at 50% -50%, rgba(61,255,163,0.06), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 80%, transparent), var(--surface));
}
.faq summary {
  list-style: none;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  color: var(--accent);
  font-family: var(--mono);
  font-size: 18px;
  transition: transform .15s ease;
}
.faq details[open] summary::after { content: "−"; }
.faq .answer {
  margin-top: 10px;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.6;
}

/* ---------- CTA banner ---------- */
.cta-banner {
  text-align: center;
  background:
    radial-gradient(900px 360px at 50% -20%, rgba(61,255,163,0.16), transparent 60%),
    radial-gradient(500px 320px at 50% 120%, rgba(61,255,163,0.06), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, var(--surface-2) 90%, transparent), var(--surface));
  border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--hairline));
  border-radius: var(--radius-lg);
  padding: 84px 24px;
  box-shadow:
    0 60px 140px -50px rgba(0,0,0,0.7),
    inset 0 1px 0 rgba(255,255,255,0.05);
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(circle at 1px 1px, rgba(61,255,163,0.06) 1px, transparent 0);
  background-size: 24px 24px;
  mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse 60% 80% at 50% 50%, #000 30%, transparent 80%);
  opacity: 0.5;
}
.cta-banner h2 { margin-bottom: 8px; }
.cta-banner p { font-size: 17px; margin: 0 auto 26px; max-width: 520px; }

/* ---------- Footer ---------- */
footer {
  border-top: 1px solid var(--hairline);
  padding: 40px 0 60px;
  color: var(--text-faint);
  font-size: 13px;
}
.footer-grid {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.footer-links { display: flex; gap: 22px; }
.footer-links a { color: var(--text-dim); font-size: 13px; }
.footer-brand { display: flex; align-items: center; gap: 10px; }

/* ---------- Generic page (privacy, support) ---------- */
.page {
  padding: 72px 0 80px;
}
.page article {
  max-width: 720px;
  margin: 0 auto;
}
.page h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 8px; }
.page .meta { font-family: var(--mono); color: var(--text-faint); font-size: 13px; margin-bottom: 28px; }
.page h2 { font-size: 22px; margin: 36px 0 10px; }
.page p, .page li { color: var(--text-dim); font-size: 16px; line-height: 1.7; }
.page ul { padding-left: 22px; }
.page strong { color: var(--text); }
.page a { color: var(--accent); }
.page code {
  background: var(--surface);
  border: 1px solid var(--hairline);
  padding: 1px 6px;
  border-radius: 6px;
  font-size: 0.9em;
  color: var(--accent);
}

/* ---------- Responsive ---------- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding-top: 64px; }
  .features { grid-template-columns: 1fr 1fr; }
  .modules { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--hairline); }
  .privacy-block { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  section { padding: 72px 0; }
  .nav-links { display: none; }
  .features { grid-template-columns: 1fr; }
  .modules { grid-template-columns: 1fr; }
  .prompt { font-size: 18px; padding: 14px 16px; }
  .demo { padding: 18px; }
  .stats { grid-template-columns: 1fr; }
  .stat { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .stat:last-child { border-bottom: 0; }
  .phone { width: 280px; height: 580px; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
