/* ============================================================
 * UCAT Genius — global stylesheet
 * Single file, no inline styles, CSP-compliant.
 * ============================================================ */

/* ---- Font face (self-hosted Inter Variable) ---- */
@font-face {
  font-family: "Inter";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/Inter-Variable.woff2") format("woff2-variations"),
       url("/fonts/Inter-Variable.woff2") format("woff2");
}

/* ---- Design tokens ---- */
:root {
  --bg-1: #08131F;
  --bg-2: #07192E;
  --bg-3: #02050C;
  --bg-deep: #02050C;
  --surface: #081426;
  --surface-raised: #0D1A31;
  --surface-soft: #12213B;
  --border: rgba(116, 154, 209, 0.24);
  --border-strong: rgba(62, 139, 255, 0.58);

  --text: #F4F8FF;
  --text-muted: #B8C6DA;
  --text-dim: #7188A6;

  --brand-blue: #3D8BFF;
  --cyan: #22D3EE;
  --teal: #28D8D4;
  --mint: #5EF2C1;
  --purple: #8B5CF6;
  --amber: #FF9F43;
  --red: #FB4C7A;

  --vr: var(--brand-blue);
  --dm: var(--purple);
  --qr: var(--mint);
  --sj: var(--amber);

  --grad-hero: linear-gradient(180deg, #08131F 0%, #07192E 50%, #02050C 100%);
  --grad-page: radial-gradient(70% 42% at 50% 0%, rgba(61,139,255,0.20), transparent 70%),
               linear-gradient(180deg, #07192E 0%, var(--bg-deep) 34%, var(--bg-deep) 100%);
  --grad-title: linear-gradient(180deg, #FFFFFF 0%, #C8DCFF 100%);
  --grad-card: linear-gradient(180deg, #0D1A31 0%, #081426 100%);
  --glow-blue: 0 30px 80px -20px rgba(61, 139, 255, 0.45);
  --glow-purple: 0 30px 80px -20px rgba(139, 92, 246, 0.45);

  --fs-12: 0.75rem;
  --fs-14: 0.875rem;
  --fs-16: 1rem;
  --fs-18: 1.125rem;
  --fs-20: 1.25rem;
  --fs-24: 1.5rem;
  --fs-30: 1.875rem;
  --fs-36: 2.25rem;
  --fs-48: 3rem;
  --fs-60: 3.75rem;
  --fs-72: 4.5rem;

  --lh-tight: 1.05;
  --lh-snug: 1.2;
  --lh-body: 1.6;

  --tracking-tight: -0.02em;
  --tracking-normal: 0;
  --tracking-wide: 0.04em;

  --font-sans: "Inter", "SF Pro Text", -apple-system, BlinkMacSystemFont,
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-num: "Inter", ui-monospace, SFMono-Regular, Menlo, monospace;
  --font-feature-num: "tnum" 1, "cv11" 1;

  --s-1: 0.25rem;
  --s-2: 0.5rem;
  --s-3: 0.75rem;
  --s-4: 1rem;
  --s-5: 1.5rem;
  --s-6: 2rem;
  --s-7: 3rem;
  --s-8: 4rem;
  --s-9: 6rem;
  --s-10: 8rem;

  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 20px;
  --r-2xl: 24px;
  --r-full: 999px;

  --shadow-sm: 0 1px 2px rgba(0,0,0,0.35);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.45);
  --shadow-lg: 0 24px 60px rgba(0,0,0,0.55);

  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
  --dur-fast: 160ms;
  --dur-base: 240ms;
  --dur-slow: 360ms;

  --container: 100%;
  --nav-h: 64px;
}

/* ---- Reset / base ---- */
*, *::before, *::after { box-sizing: border-box; }
html {
  color-scheme: dark;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--nav-h) + 16px);
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-16);
  line-height: var(--lh-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

@keyframes pageFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes pageRiseIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes navDropIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (prefers-reduced-motion: no-preference) {
  body {
    animation: pageFadeIn 240ms var(--ease-out) both;
  }
  .nav {
    animation: navDropIn 300ms var(--ease-out) both;
  }
  main > section,
  .not-found {
    animation: pageRiseIn 380ms var(--ease-out) both;
    animation-delay: 40ms;
  }
  .footer {
    animation: pageRiseIn 340ms var(--ease-out) both;
    animation-delay: 80ms;
  }
}
img, svg, picture, video { display: block; max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }
ul, ol { margin: 0; padding: 0; list-style: none; }
p { margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; line-height: var(--lh-snug); letter-spacing: var(--tracking-tight); font-weight: 700; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}
.no-scroll { overflow: hidden; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
}

/* ---- Skip link ---- */
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
}
.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  padding: .5rem 1rem;
  background: var(--surface-raised);
  color: var(--text);
  border-radius: var(--r-sm);
  outline: 2px solid var(--brand-blue);
  outline-offset: 2px;
}

/* ---- In-app browser banner ---- */
.iab-banner {
  position: sticky;
  top: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  gap: .75rem;
  padding: .625rem 1rem;
  background: #FFF3CD;
  color: #07192E;
  font-family: var(--font-sans);
  font-size: var(--fs-14);
  line-height: 1.35;
  border-bottom: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}
.iab-banner__msg {
  flex: 1 1 auto;
}
.iab-banner__open {
  flex: 0 0 auto;
  padding: .375rem .75rem;
  background: #07192E;
  color: #FFFFFF;
  text-decoration: none;
  font-weight: 600;
  border-radius: var(--r-sm);
}
.iab-banner__open:hover,
.iab-banner__open:focus {
  background: var(--brand-blue);
  color: #FFFFFF;
}
.iab-banner__close {
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  color: inherit;
  border: 0;
  border-radius: var(--r-sm);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  padding: 0;
}
.iab-banner__close:hover,
.iab-banner__close:focus {
  background: rgba(0, 0, 0, 0.08);
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-2);
  padding: 0.75rem 1.125rem;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: var(--fs-16);
  line-height: 1;
  border: 1px solid transparent;
  text-decoration: none;
  transition: transform var(--dur-fast) var(--ease-out),
              box-shadow var(--dur-base) var(--ease-out),
              background var(--dur-base) var(--ease-out);
  will-change: transform;
  min-height: 44px;
}
.btn:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.btn:active { transform: translateY(1px); }
.btn--primary {
  color: #07192E;
  background: linear-gradient(180deg, #5BA0FF, #2F7AF0);
  box-shadow: 0 14px 32px -10px rgba(61,139,255,0.55);
}
.btn--primary:hover { box-shadow: 0 18px 44px -10px rgba(61,139,255,0.7); }
.btn--ghost {
  color: var(--text);
  background: transparent;
  border-color: var(--border-strong);
}
.btn--ghost:hover { background: rgba(62,139,255,0.08); }

/* ---- Eyebrows / pills ---- */
.eyebrow {
  font-size: var(--fs-12);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  margin-bottom: var(--s-3);
}
.eyebrow-pill {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: var(--r-full);
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #BCD6FF;
  background: rgba(61,139,255,0.10);
  border: 1px solid rgba(61,139,255,0.32);
}

/* =========================================================
 * NAV
 * ========================================================= */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(8, 19, 31, 0.78);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--dur-base) var(--ease-out);
}
@supports not ((backdrop-filter: blur(14px)) or (-webkit-backdrop-filter: blur(14px))) {
  .nav { background: rgba(8, 19, 31, 0.96); }
}
.nav.is-scrolled { background: rgba(8, 19, 31, 0.92); }
.nav__inner {
  height: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--s-5);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--s-4);
}
.nav__logo {
  display: inline-flex;
  align-items: center;
  gap: var(--s-2);
  text-decoration: none;
  color: var(--text);
}
.nav__logo:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; border-radius: var(--r-sm); }
.nav__logo-mark {
  display: inline-flex;
  flex: 0 0 auto;
  filter: drop-shadow(0 4px 12px rgba(61,139,255,0.35));
}
.nav__logo-text {
  font-size: var(--fs-20);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.nav__logo-accent { color: var(--brand-blue); }
.nav__links {
  display: flex;
  align-items: center;
  gap: var(--s-5);
  margin-left: auto;
}
.nav__links a {
  color: var(--text-muted);
  font-size: var(--fs-14);
  font-weight: 500;
  padding: 8px 4px;
  border-radius: var(--r-sm);
  transition: color var(--dur-fast) var(--ease-out);
}
.nav__links a:hover { color: var(--text); }
.nav__links a:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; }
.nav__cta {
  padding: 0.55rem 0.9rem;
  font-size: var(--fs-14);
  min-height: 40px;
}
.nav__toggle {
  display: none;
  background: none;
  border: 0;
  width: 44px;
  height: 44px;
  padding: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.nav__toggle:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; border-radius: var(--r-sm); }
.nav__toggle-bar {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  position: relative;
  transition: transform var(--dur-base) var(--ease-out), opacity var(--dur-base) var(--ease-out);
}
.nav__toggle-bar + .nav__toggle-bar { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] .nav__toggle-bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

@media (max-width: 767px) {
  .nav {
    height: 56px;
    background: #08131F;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    animation: none;
    transform: none;
  }
  .nav__toggle { display: inline-flex; }
  .nav__cta { display: none; }
  .nav__links {
    position: fixed;
    top: 56px;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 49;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    gap: 0;
    padding: var(--s-5);
    background: #02050C;
    border-top: 1px solid var(--border);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: opacity var(--dur-base) var(--ease-out), transform var(--dur-base) var(--ease-out);
  }
  .nav__links.is-open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }
  .nav__links a {
    padding: var(--s-4) 0;
    font-size: var(--fs-18);
    border-bottom: 1px solid var(--border);
    color: var(--text);
  }
}

/* =========================================================
 * HERO
 * ========================================================= */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + var(--s-9)) 0 var(--s-9);
  overflow: hidden;
}
.hero__bg {
  position: absolute;
  inset: 0;
  background: var(--grad-hero);
  z-index: 0;
}
.hero__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(116,154,209,0.06) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(116,154,209,0.06) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 50%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000 50%, transparent 100%);
}
.hero__glow {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 60%;
  background: radial-gradient(ellipse at center, rgba(61,139,255,0.18) 0%, transparent 60%);
  filter: blur(40px);
}
.hero__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-8);
  align-items: center;
}
.hero__copy { max-width: 640px; }
.hero__app-icon {
  display: inline-flex;
  width: 112px;
  height: 112px;
  border-radius: 26px;
  overflow: hidden;
  margin-bottom: var(--s-4);
  box-shadow:
    0 18px 40px rgba(61, 139, 255, 0.35),
    0 6px 18px rgba(0, 0, 0, 0.45);
}
.hero__app-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero__h1 {
  font-size: clamp(2.5rem, 5vw + 1rem, 4.5rem);
  line-height: var(--lh-tight);
  letter-spacing: var(--tracking-tight);
  margin: var(--s-4) 0 var(--s-4);
  background: linear-gradient(180deg, #FFFFFF 0%, #C8DCFF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero__sub {
  font-size: var(--fs-20);
  color: var(--text-muted);
  margin-bottom: var(--s-6);
  max-width: 560px;
}
.hero__trust {
  margin-top: var(--s-5);
  font-size: var(--fs-14);
  color: var(--text-dim);
  max-width: 440px;
}

.store-badges {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.store-badges a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 188px;
  height: 56px;
  flex: 0 0 auto;
}
.store-badges img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.store-badges a:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
    gap: clamp(var(--s-4), 3vw, var(--s-7));
    align-items: center;
    padding-left: clamp(var(--s-7), 5vw, var(--s-10));
  }
  .hero__copy {
    justify-self: start;
  }
  .hero__device {
    grid-column: 2;
    width: min(100%, 980px);
    margin: 0;
    display: flex;
    justify-content: flex-end;
    justify-self: end;
  }
  .hero__phones--trio {
    margin: 0;
    transform: translateX(clamp(24px, 3vw, 72px));
  }
}

/* ---- Hero animations ---- */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.hero .eyebrow-pill { animation: fadeUp 320ms var(--ease-out) both; animation-delay: 40ms; }
.hero__app-icon { animation: fadeUp 320ms var(--ease-out) both; animation-delay: 60ms; }
.hero__h1 { animation: fadeUp 320ms var(--ease-out) both; animation-delay: 140ms; }
.hero__sub { animation: fadeUp 320ms var(--ease-out) both; animation-delay: 200ms; }
.store-badges { animation: fadeUp 320ms var(--ease-out) both; animation-delay: 280ms; }
.hero__trust { animation: fadeUp 320ms var(--ease-out) both; animation-delay: 360ms; }

/* =========================================================
 * DEVICE FRAME (shared)
 * ========================================================= */
.device-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  aspect-ratio: 9 / 19.5;
  background: linear-gradient(160deg, #1a2640 0%, #0a1322 100%);
  border-radius: 38px;
  padding: 10px;
  box-shadow:
    inset 0 0 0 1px rgba(255,255,255,0.05),
    0 30px 80px -20px rgba(0,0,0,0.65),
    0 8px 24px rgba(0,0,0,0.4);
}
.device-frame--sm { max-width: 260px; }
.device-screen {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: var(--bg-deep);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,0.06);
}
.device-notch {
  position: absolute;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 26px;
  background: #050a14;
  border-radius: 14px;
  z-index: 2;
}

/* ---- Hero device float ---- */
@keyframes deviceFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}
.hero__device {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero__device .device-frame {
  animation: deviceFloat 6s var(--ease-in-out) infinite;
}
.device-glow {
  position: absolute;
  inset: 0;
  filter: blur(60px);
  z-index: 0;
}
.device-glow--blue {
  background: radial-gradient(ellipse at center, rgba(61,139,255,0.40) 0%, transparent 65%);
}

/* =========================================================
 * MOCKUP — HOME (hero device)
 * ========================================================= */
.mock {
  width: 100%;
  height: 100%;
  padding: 0;
  background: linear-gradient(180deg, #07192E 0%, #02050C 100%);
  font-size: 11px;
  line-height: 1.35;
  color: var(--text);
  position: relative;
  overflow: hidden;
}
.mock__statusbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 22px 6px;
  font-size: 11px;
  font-weight: 600;
  position: relative;
  z-index: 1;
}
.mock__statusbar-icons {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.mock__app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 16px 14px;
}
.mock__brand {
  display: flex;
  align-items: center;
  gap: 8px;
}
.mock__brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #5BA0FF, #3D8BFF);
  position: relative;
}
.mock__brand-mark::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid #07192E;
  border-top: 0;
  border-radius: 0 0 999px 999px;
}
.mock__brand-name {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: -0.01em;
}
.mock__brand-tag {
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--brand-blue);
  margin-top: 1px;
}
.mock__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3D8BFF 0%, #8B5CF6 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #07192E;
  font-weight: 700;
  font-size: 12px;
}

.mock__hero-card {
  margin: 4px 16px;
  padding: 14px;
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(61,139,255,0.18) 0%, rgba(13,26,49,0.7) 100%);
  border: 1px solid rgba(61,139,255,0.30);
  position: relative;
  overflow: hidden;
}
.mock__hero-card::before {
  content: "";
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  background: radial-gradient(circle, rgba(61,139,255,0.30) 0%, transparent 70%);
}
.mock__hero-greet {
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.mock__hero-title {
  font-size: 14px;
  font-weight: 700;
  margin: 4px 0 4px;
  letter-spacing: -0.01em;
}
.mock__hero-sub {
  font-size: 10px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.mock__streak {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(94,242,193,0.12);
  border: 1px solid rgba(94,242,193,0.35);
  color: var(--mint);
  font-size: 9px;
  font-weight: 600;
  margin-bottom: 10px;
}
.mock__streak-dot {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 8px var(--mint);
}
.mock__continue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(7,25,46,0.7);
  border: 1px solid var(--border);
}
.mock__continue-label {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}
.mock__continue-target {
  font-size: 11px;
  font-weight: 600;
  margin-top: 2px;
}
.mock__continue-arrow {
  color: var(--brand-blue);
  font-size: 18px;
  line-height: 1;
}

.mock__sections {
  margin: 14px 16px 0;
  padding: 12px;
  border-radius: 14px;
  background: rgba(13,26,49,0.5);
  border: 1px solid var(--border);
}
.mock__sections-title {
  font-size: 10px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}
.mock__progress-list { display: flex; flex-direction: column; gap: 8px; }
.mock__progress-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 10px;
}
.mock__chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 18px;
  border-radius: 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  flex: 0 0 auto;
}
.mock__chip--vr { background: rgba(61,139,255,0.18); color: var(--vr); border: 1px solid rgba(61,139,255,0.45); }
.mock__chip--dm { background: rgba(139,92,246,0.18); color: var(--dm); border: 1px solid rgba(139,92,246,0.45); }
.mock__chip--qr { background: rgba(94,242,193,0.18); color: var(--qr); border: 1px solid rgba(94,242,193,0.45); }
.mock__chip--sj { background: rgba(255,159,67,0.18); color: var(--sj); border: 1px solid rgba(255,159,67,0.45); }

.mock__bar {
  flex: 1 1 auto;
  height: 6px;
  border-radius: 999px;
  background: rgba(116,154,209,0.18);
  overflow: hidden;
}
.mock__bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #3D8BFF, #5BA0FF);
}
.mock__pct {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
  min-width: 30px;
  text-align: right;
}

/* width utility classes (used in place of inline width styles to satisfy CSP) */
.w-46 { width: 46%; }
.w-54 { width: 54%; }
.w-58 { width: 58%; }
.w-62 { width: 62%; }
.w-71 { width: 71%; }
.w-72 { width: 72%; }
.w-74 { width: 74%; }
.w-81 { width: 81%; }
.w-84 { width: 84%; }
.w-88 { width: 88%; }
.w-91 { width: 91%; }

/* =========================================================
 * MOCKUP — PRACTICE QUESTION
 * ========================================================= */
.mock--practice { padding-top: 14px; }
.mock__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
  font-size: 11px;
}
.mock__back, .mock__share, .mock__pulse, .mock__calc {
  font-size: 16px;
  color: var(--text-muted);
  width: 22px;
  text-align: center;
}
.mock__topbar-title { font-weight: 600; }
.mock__timer {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  color: var(--brand-blue);
  letter-spacing: 0.04em;
}
.mock__qmeta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px 6px;
  font-size: 10px;
  color: var(--text-dim);
}
.mock__qtext {
  padding: 6px 16px 12px;
  font-size: 11px;
  color: var(--text);
}
.mock__options {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.mock__options li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(13,26,49,0.5);
  font-size: 11px;
}
.mock__options li.is-selected {
  border-color: var(--brand-blue);
  background: rgba(61,139,255,0.15);
  box-shadow: 0 0 0 1px rgba(61,139,255,0.5) inset;
}
.mock__opt-letter {
  width: 18px; height: 18px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(116,154,209,0.16);
  font-size: 9px; font-weight: 700;
}
.mock__options li.is-selected .mock__opt-letter {
  background: var(--brand-blue);
  color: #07192E;
}
.mock__qfoot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  margin-top: auto;
  font-size: 10px;
  color: var(--text-dim);
}
.mock__next {
  background: linear-gradient(180deg, #5BA0FF, #2F7AF0);
  color: #07192E;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
}

/* =========================================================
 * MOCKUP — RESULTS
 * ========================================================= */
.mock--results .mock__total {
  text-align: center;
  padding: 20px 16px 12px;
}
.mock__total-label {
  font-size: 9px;
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.mock__total-num {
  font-size: 36px;
  font-weight: 700;
  margin: 4px 0;
  letter-spacing: -0.02em;
  background: linear-gradient(180deg, #FFFFFF 0%, #5BA0FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.mock__total-num span {
  font-size: 14px;
  -webkit-text-fill-color: var(--text-dim);
  color: var(--text-dim);
  font-weight: 500;
}
.mock__total-pill {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 600;
  background: rgba(94,242,193,0.14);
  color: var(--mint);
  border: 1px solid rgba(94,242,193,0.35);
}
.mock__score-list {
  padding: 0 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 8px;
}
.mock__score-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(13,26,49,0.5);
  border: 1px solid var(--border);
  font-size: 10px;
}
.mock__score {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.mock__sj-band {
  margin: 12px 16px 0;
  padding: 10px 12px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,159,67,0.16) 0%, rgba(13,26,49,0.5) 100%);
  border: 1px solid rgba(255,159,67,0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.mock__sj-label {
  font-size: 10px;
  color: var(--text-muted);
}
.mock__sj-band-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--sj);
}

/* =========================================================
 * MOCKUP — TUTOR
 * ========================================================= */
.mock__pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--mint);
  position: relative;
  align-self: center;
}
.mock__pulse span {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  background: rgba(94,242,193,0.30);
  animation: pulse 2s var(--ease-in-out) infinite;
}
@keyframes pulse {
  0% { transform: scale(0.6); opacity: 0.8; }
  100% { transform: scale(1.6); opacity: 0; }
}

.mock__chat {
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1 1 auto;
  overflow: hidden;
}
.mock__bubble {
  padding: 10px 12px;
  border-radius: 14px;
  font-size: 11px;
  line-height: 1.45;
  max-width: 88%;
}
.mock__bubble--user {
  align-self: flex-end;
  background: linear-gradient(180deg, #5BA0FF, #2F7AF0);
  color: #07192E;
  border-bottom-right-radius: 4px;
  font-weight: 500;
}
.mock__bubble--tutor {
  align-self: flex-start;
  background: rgba(13,26,49,0.8);
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.mock__bubble--tutor p { margin: 0 0 6px; }
.mock__bubble--tutor p:last-child { margin: 0; }
.mock__bubble--tutor em { color: var(--brand-blue); font-style: normal; font-weight: 600; }
.mock__bubble--tutor strong { color: var(--mint); }

.mock__typing {
  align-self: flex-start;
  display: inline-flex;
  gap: 4px;
  padding: 8px 12px;
  background: rgba(13,26,49,0.8);
  border: 1px solid var(--border);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}
.mock__typing span {
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: typing 1.5s var(--ease-in-out) infinite;
}
.mock__typing span:nth-child(2) { animation-delay: 0.2s; }
.mock__typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing {
  0%, 80%, 100% { opacity: 0.3; transform: translateY(0); }
  40% { opacity: 1; transform: translateY(-3px); }
}

.mock__composer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: auto 14px 14px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(13,26,49,0.7);
  border: 1px solid var(--border);
  font-size: 10px;
  color: var(--text-dim);
}
.mock__send {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--brand-blue);
  color: #07192E;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
}

/* =========================================================
 * SCREENS STRIP
 * ========================================================= */
.screens {
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--surface) 60%, var(--bg-deep) 100%);
  padding: var(--s-9) 0;
  position: relative;
}
.screens__list {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: end;
}
.screens__item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-4);
}
.screens__glow {
  position: absolute;
  top: 10%;
  left: 50%;
  transform: translateX(-50%);
  width: 80%;
  height: 70%;
  filter: blur(50px);
  z-index: 0;
}
.screens__glow--blue { background: radial-gradient(ellipse at center, rgba(61,139,255,0.40) 0%, transparent 65%); }
.screens__glow--purple { background: radial-gradient(ellipse at center, rgba(139,92,246,0.40) 0%, transparent 65%); }
.screens__glow--mint { background: radial-gradient(ellipse at center, rgba(94,242,193,0.30) 0%, transparent 65%); }
.screens__item .device-frame { position: relative; z-index: 1; }
.screens__caption {
  position: relative;
  z-index: 1;
  text-align: center;
  font-size: var(--fs-16);
  color: var(--text-muted);
  max-width: 280px;
}

@media (min-width: 768px) {
  .screens__list {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-5);
  }
}

/* =========================================================
 * SECTION HEADERS (shared)
 * ========================================================= */
.section-head {
  text-align: center;
  margin-bottom: var(--s-8);
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.section-head h2 {
  font-size: clamp(2rem, 3vw + 0.75rem, 3rem);
  margin-bottom: var(--s-4);
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.section-head h1,
.about__inner > h1,
.ai-tutor h1 {
  font-size: clamp(2rem, 3vw + 0.75rem, 3rem);
  margin-bottom: var(--s-4);
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-wrap: balance;
}
.section-head p {
  font-size: var(--fs-18);
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* =========================================================
 * FEATURES
 * ========================================================= */
.features { padding: var(--s-9) 0; background: var(--bg-deep); }
.features--showcase {
  padding-top: calc(var(--nav-h) + var(--s-8));
  background: var(--grad-page);
}
.features--showcase .container {
  max-width: 1120px;
}
.feature-showcase__head {
  margin-bottom: var(--s-6);
}
.feature-showcase__head h1 {
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  margin-bottom: var(--s-4);
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.feature {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-6);
  align-items: center;
  padding: var(--s-6) 0;
}
.feature--spotlight {
  min-height: auto;
  border-top: 1px solid rgba(116,154,209,0.16);
}
.feature--spotlight:last-of-type {
  border-bottom: 1px solid rgba(116,154,209,0.16);
}
.feature__copy {
  max-width: 520px;
  min-width: 0;
}
.feature__kicker {
  display: inline-flex;
  width: fit-content;
  margin-bottom: var(--s-4);
  padding: 0.4rem 0.7rem;
  border: 1px solid rgba(61,139,255,0.38);
  border-radius: var(--r-full);
  background: rgba(61,139,255,0.10);
  color: #8BB9FF;
  font-size: var(--fs-12);
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}
.feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(61,139,255,0.10);
  border: 1px solid rgba(61,139,255,0.30);
  margin-bottom: var(--s-4);
}
.feature h3 {
  font-size: var(--fs-30);
  margin-bottom: var(--s-3);
  letter-spacing: -0.015em;
}
.feature__copy p {
  font-size: var(--fs-18);
  color: var(--text-muted);
  overflow-wrap: break-word;
}
.feature__bullets {
  display: grid;
  gap: var(--s-3);
  margin-top: var(--s-5);
}
.feature__bullets li {
  position: relative;
  padding-left: var(--s-5);
  color: var(--text);
  font-size: var(--fs-16);
}
.feature__bullets li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.72em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand-blue);
  box-shadow: 0 0 0 5px rgba(61,139,255,0.13);
}
.feature__actions {
  margin-top: var(--s-6);
}
.feature__visual {
  display: flex;
  justify-content: center;
  min-width: 0;
}

@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr); gap: clamp(var(--s-6), 5vw, var(--s-8)); padding: var(--s-8) 0; }
  .feature--right .feature__copy { order: 1; }
  .feature--right .feature__visual { order: 2; }
  .feature--left { grid-template-columns: minmax(320px, 0.78fr) minmax(0, 1fr); }
  .feature--left .feature__copy { order: 2; justify-self: end; }
  .feature--left .feature__visual { order: 1; }
}

/* ---- Feature visual cards ---- */
.feature-card {
  width: 100%;
  max-width: 440px;
  padding: var(--s-5);
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  box-shadow: var(--shadow-md);
  position: relative;
}
.feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(255,255,255,0.04) 0%, transparent 30%);
}
.feature-card__eyebrow {
  font-size: var(--fs-12);
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: var(--s-2);
}
.feature-card__title {
  font-size: var(--fs-20);
  font-weight: 700;
  margin-bottom: var(--s-4);
  letter-spacing: -0.01em;
}
.feature-card__title--small { font-size: var(--fs-16); margin-bottom: var(--s-3); }
.feature-card__title--big {
  font-size: var(--fs-48);
  margin: var(--s-2) 0 var(--s-1);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
  background: linear-gradient(180deg, #FFFFFF 0%, #5BA0FF 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.feature-card__title--big span { font-size: var(--fs-20); color: var(--text-dim); -webkit-text-fill-color: var(--text-dim); font-weight: 500; }
.feature-card__sub { font-size: var(--fs-14); color: var(--text-muted); margin-bottom: var(--s-4); }
.feature-card__steps {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.feature-card__steps li {
  display: flex;
  align-items: flex-start;
  gap: var(--s-3);
  font-size: var(--fs-14);
  color: var(--text-muted);
}
.feature-card__steps li span {
  flex: 0 0 auto;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: rgba(61,139,255,0.18);
  color: var(--brand-blue);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 700;
  font-size: var(--fs-12);
  border: 1px solid rgba(61,139,255,0.45);
}
.feature-card__steps li em { color: var(--text); font-style: normal; font-weight: 600; }
.feature-card__cta {
  display: inline-flex;
  align-items: center;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--brand-blue);
  padding-top: var(--s-2);
  border-top: 1px solid var(--border);
}
.feature-card__row {
  display: flex;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.feature-card__meta { font-size: var(--fs-12); color: var(--text-dim); letter-spacing: 0.04em; }
.feature-card__bars {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
}
.feature-card__bars li {
  display: grid;
  grid-template-columns: 1fr 100px 36px;
  align-items: center;
  gap: var(--s-3);
  font-size: var(--fs-14);
  color: var(--text-muted);
}
.feature-card__bars li span { text-align: right; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.feature-card__bars li p { margin: 0; }
.feature-card__bars .mock__bar { height: 8px; }
.feature-card__hint {
  font-size: var(--fs-12);
  color: var(--brand-blue);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.feature-card__chips {
  display: flex;
  gap: var(--s-3);
  flex-wrap: wrap;
  margin: var(--s-4) 0;
}
.feature-card__chips li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: var(--r-md);
  background: rgba(13,26,49,0.6);
  border: 1px solid var(--border);
  font-size: var(--fs-14);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}
.feature-card__band {
  font-size: var(--fs-14);
  color: var(--text-muted);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.feature-card__band strong { color: var(--sj); font-weight: 700; }
.feature-card__chat {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
}
.feature-card__chat .mock__bubble { font-size: var(--fs-14); max-width: 92%; }
.feature-card__chart { margin-bottom: var(--s-3); }
.feature-card__weak {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-top: var(--s-3);
  border-top: 1px solid var(--border);
}
.feature-card__weak li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: var(--fs-14);
  color: var(--text-muted);
}
.feature-card__weak-pct {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* =========================================================
 * UCAT SECTIONS
 * ========================================================= */
.ucat-sections {
  padding: var(--s-9) 0;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--surface) 100%);
}
.section-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-5);
  margin-bottom: var(--s-7);
}
@media (min-width: 768px) {
  .section-grid { grid-template-columns: 1fr 1fr; gap: var(--s-5); }
}

.card {
  background: var(--grad-card);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: var(--s-5);
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 30%);
  pointer-events: none;
}
.card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(61,139,255,0.10);
  margin-bottom: var(--s-4);
  color: currentColor;
}
.card__title {
  font-size: var(--fs-24);
  margin-bottom: var(--s-1);
  letter-spacing: -0.015em;
}
.card__stats {
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--text-muted);
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
  margin-bottom: var(--s-3);
}
.card__lead {
  font-size: var(--fs-16);
  color: var(--text);
  margin-bottom: var(--s-3);
  font-weight: 500;
}
.card__body {
  font-size: var(--fs-14);
  color: var(--text-muted);
}

.card--vr {
  border-color: rgba(61,139,255,0.45);
  box-shadow: 0 24px 60px -28px rgba(61,139,255,0.45);
  color: var(--vr);
}
.card--vr .card__icon { background: rgba(61,139,255,0.14); border: 1px solid rgba(61,139,255,0.35); }
.card--dm {
  border-color: rgba(139,92,246,0.45);
  box-shadow: 0 24px 60px -28px rgba(139,92,246,0.45);
  color: var(--dm);
}
.card--dm .card__icon { background: rgba(139,92,246,0.14); border: 1px solid rgba(139,92,246,0.35); }
.card--qr {
  border-color: rgba(94,242,193,0.40);
  box-shadow: 0 24px 60px -28px rgba(94,242,193,0.35);
  color: var(--qr);
}
.card--qr .card__icon { background: rgba(94,242,193,0.14); border: 1px solid rgba(94,242,193,0.35); }
.card--sj {
  border-color: rgba(255,159,67,0.45);
  box-shadow: 0 24px 60px -28px rgba(255,159,67,0.40);
  color: var(--sj);
}
.card--sj .card__icon { background: rgba(255,159,67,0.14); border: 1px solid rgba(255,159,67,0.35); }
.card__title, .card__stats, .card__lead, .card__body { color: var(--text); }
.card__stats { color: var(--text-muted); }
.card__body { color: var(--text-muted); }

.ucat-sections__footnote {
  text-align: center;
  font-size: var(--fs-14);
  color: var(--text-muted);
  max-width: 720px;
  margin: 0 auto;
  padding: var(--s-5);
  border-radius: var(--r-md);
  background: rgba(13,26,49,0.4);
  border: 1px solid var(--border);
}

/* =========================================================
 * AI TUTOR
 * ========================================================= */
.ai-tutor {
  position: relative;
  padding: calc(var(--nav-h) + var(--s-8)) 0 var(--s-8);
  overflow: hidden;
}
.ai-tutor__bg {
  position: absolute;
  inset: 0;
  background: var(--grad-page);
  z-index: 0;
}
.ai-tutor__inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-7);
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
}
@media (min-width: 1024px) {
  .ai-tutor__inner {
    grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
    gap: clamp(var(--s-5), 4vw, var(--s-7));
  }
  .ai-tutor__copy {
    justify-self: end;
    max-width: 560px;
  }
}
.ai-tutor h1,
.ai-tutor h2 {
  font-size: clamp(2rem, 3vw + 0.75rem, 3rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-4);
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.ai-tutor__copy > p {
  font-size: var(--fs-18);
  color: var(--text-muted);
  margin-bottom: var(--s-5);
}
.ai-tutor__list {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  margin-bottom: var(--s-6);
}
.ai-tutor__list li {
  font-size: var(--fs-16);
  padding-left: var(--s-6);
  position: relative;
  color: var(--text);
}
.ai-tutor__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.6em;
  width: 16px; height: 16px;
  background: linear-gradient(135deg, #5BA0FF, #8B5CF6);
  border-radius: 50%;
  box-shadow: 0 0 12px rgba(139,92,246,0.5);
}
.ai-tutor__list li::after {
  content: "✓";
  position: absolute;
  left: 4px; top: 0.5em;
  width: 16px; height: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #07192E;
  display: flex; align-items: center; justify-content: center;
}

.ai-tutor__disclaimer {
  margin-top: var(--s-5);
  padding: var(--s-3) var(--s-4);
  font-size: var(--fs-14);
  line-height: 1.5;
  color: var(--text-muted);
  background: rgba(13,26,49,0.4);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.ai-tutor__disclaimer a {
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.ai-tutor__disclaimer a:hover {
  color: var(--text);
}

.ai-tutor__chat {
  display: flex;
  justify-content: center;
}
@media (min-width: 1024px) {
  .ai-tutor__chat {
    justify-content: flex-start;
  }
}
.ai-chat-card {
  width: 100%;
  max-width: 460px;
  background: rgba(7,25,46,0.85);
  border: 1px solid var(--border);
  border-radius: var(--r-2xl);
  overflow: hidden;
  box-shadow: 0 30px 80px -20px rgba(0,0,0,0.65), var(--glow-purple);
  -webkit-backdrop-filter: blur(20px);
  backdrop-filter: blur(20px);
}
.ai-chat-card__head {
  display: flex;
  align-items: center;
  gap: var(--s-2);
  padding: var(--s-3) var(--s-4);
  background: rgba(13,26,49,0.7);
  border-bottom: 1px solid var(--border);
}
.ai-chat-card__dot {
  width: 10px; height: 10px;
  border-radius: 50%;
}
.ai-chat-card__dot--r { background: #FB4C7A; }
.ai-chat-card__dot--y { background: #FFC557; }
.ai-chat-card__dot--g { background: #5EF2C1; }
.ai-chat-card__title {
  margin-left: var(--s-3);
  font-size: var(--fs-12);
  color: var(--text-dim);
  font-weight: 600;
  letter-spacing: 0.04em;
}
.ai-chat-card__body {
  padding: var(--s-5);
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
}
.ai-chat-card__body .mock__bubble { font-size: var(--fs-16); max-width: 92%; padding: var(--s-3) var(--s-4); }

/* =========================================================
 * ABOUT
 * ========================================================= */
.about {
  padding: calc(var(--nav-h) + var(--s-8)) 0 var(--s-8);
  background: var(--grad-page);
}
.about__inner {
  max-width: 720px;
  text-align: left;
}
.about__inner > .eyebrow,
.about__inner > h1,
.about__cta {
  text-align: center;
}
.about h2 {
  font-size: clamp(1.75rem, 3vw + 0.75rem, 2.5rem);
  margin: var(--s-3) 0 var(--s-5);
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about__lead {
  font-size: var(--fs-18);
  color: var(--text-muted);
  margin: 0 0 var(--s-4);
  line-height: 1.6;
}
.about__lead--emphasis {
  color: var(--text);
  margin-top: var(--s-2);
  margin-bottom: var(--s-2);
}
.about__cta {
  margin-top: var(--s-6);
}
.about__pills {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: var(--s-3);
}
.about__pills li {
  font-size: var(--fs-14);
  color: var(--text);
  padding: 8px 14px;
  border-radius: var(--r-full);
  background: rgba(61, 139, 255, 0.08);
  border: 1px solid rgba(61, 139, 255, 0.28);
}
.about__block {
  margin-top: var(--s-6);
  text-align: left;
}
.about__block h2 {
  font-size: clamp(1.25rem, 1.6vw + 0.7rem, 1.5rem);
  margin: 0 0 var(--s-3);
  background: var(--grad-title);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.about__block p {
  font-size: var(--fs-16);
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

/* =========================================================
 * FAQ
 * ========================================================= */
.faq {
  padding: calc(var(--nav-h) + var(--s-8)) 0 var(--s-8);
  background: var(--grad-page);
}
.faq__list {
  max-width: 780px;
  margin: 0 auto;
}
.faq-item {
  border-top: 1px solid var(--border);
  padding: var(--s-4) 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s-3);
  font-weight: 600;
  font-size: var(--fs-18);
  padding: var(--s-2) 0;
  color: var(--text);
  min-height: 44px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  color: var(--text-dim);
  font-size: var(--fs-24);
  font-weight: 400;
  flex: 0 0 auto;
  transition: transform var(--dur-base) var(--ease-out), color var(--dur-base) var(--ease-out);
}
.faq-item[open] summary::after {
  content: "−";
  color: var(--brand-blue);
}
.faq-item summary:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 4px;
  border-radius: var(--r-sm);
}
.faq-item summary:hover { color: var(--brand-blue); }
.faq-item p {
  margin-top: var(--s-3);
  color: var(--text-muted);
  line-height: var(--lh-body);
  font-size: var(--fs-16);
  max-width: 680px;
}

/* =========================================================
 * FOOTER
 * ========================================================= */
.footer {
  background: var(--bg-deep);
  padding: var(--s-7) 0 var(--s-6);
  text-align: center;
}
.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
}
.footer__brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s-3);
  margin-bottom: var(--s-4);
  text-decoration: none;
  color: var(--text);
}
.footer__brand:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 6px;
  border-radius: var(--r-md);
}
.footer__wordmark {
  font-size: var(--fs-24);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.footer__wordmark span { color: var(--brand-blue); }
.footer__links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: var(--s-2) var(--s-3);
  font-size: var(--fs-14);
  color: var(--text-muted);
  margin-bottom: var(--s-4);
}
.footer__links a { color: var(--text-muted); transition: color var(--dur-fast) var(--ease-out); }
.footer__links a:hover { color: var(--brand-blue); }
.footer__links a:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 3px; border-radius: var(--r-sm); }
.footer__attr {
  font-size: var(--fs-12);
  color: var(--text-dim);
  max-width: 720px;
  margin: 0 auto;
  line-height: 1.5;
}
.footer__copy {
  font-size: var(--fs-14);
  color: var(--text-muted);
  margin-top: var(--s-4);
}

/* =========================================================
 * SCROLL REVEAL
 * ========================================================= */
.feature, .card, .ai-chat-card, .faq__list, .feature-card {
  /* Reveal handled by IntersectionObserver in app.js via .is-visible class */
}
@media (prefers-reduced-motion: no-preference) {
  .feature, .card, .ai-chat-card, .feature-card {
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 360ms var(--ease-out), transform 360ms var(--ease-out);
  }
  .feature.is-visible, .card.is-visible, .ai-chat-card.is-visible, .feature-card.is-visible {
    opacity: 1;
    transform: translateY(0);
  }
  .features--showcase .feature {
    opacity: 1;
    transform: none;
  }
}

/* =========================================================
 * REDUCED MOTION (global)
 * ========================================================= */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  .hero__grid { display: none; }
  .hero__device .device-frame { animation: none; }
  .mock__pulse span { animation: none; opacity: 0.4; }
  .mock__typing span { animation: none; opacity: 0.6; transform: none; }
}

/* =========================================================
 * NOT FOUND (404)
 * ========================================================= */
.not-found {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--grad-hero);
  text-align: center;
  padding: var(--s-7) var(--s-5);
}
.not-found .eyebrow-pill { margin-bottom: var(--s-5); }
.not-found .hero__h1 {
  font-size: clamp(2.5rem, 7vw, 4rem);
  margin-bottom: var(--s-4);
}
.not-found .hero__sub { margin-bottom: var(--s-6); }

/* =========================================================
 * REAL APP ASSETS
 * ========================================================= */
.nav__logo-mark img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
}
.footer .nav__logo-mark img {
  width: 80px;
  height: 80px;
  border-radius: 18px;
}

.hero__device {
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

/* ---- Hero: angled phone mockups ---- */
.hero__phones {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 640px;
  height: 720px;
  margin: 0 auto;
}
.hero__phones--trio {
  width: 100%;
  max-width: 900px;
  height: 700px;
}
.hero-phone {
  position: absolute;
  display: block;
  margin: 0;
  width: 320px;
  height: 660px;
  background: linear-gradient(160deg, #1f2c46 0%, #0a1322 100%);
  border-radius: 44px;
  padding: 12px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 40px 80px -10px rgba(0, 0, 0, 0.7),
    0 14px 36px rgba(0, 0, 0, 0.45);
}
.hero-phone__frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 34px;
  overflow: hidden;
  background: #050a14;
}
.hero-phone__notch {
  position: absolute;
  top: 12px;
  left: 50%;
  transform: translateX(-50%);
  width: 96px;
  height: 24px;
  background: #050a14;
  border-radius: 14px;
  z-index: 2;
}
.hero-phone__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero-phone--back {
  top: 16px;
  right: 0;
  z-index: 1;
  transform: rotate(8deg);
  transform-origin: center;
}
.hero-phone--front {
  bottom: 16px;
  left: 0;
  z-index: 2;
  transform: rotate(-7deg);
  transform-origin: center;
}
/* Trio layout: center phone upright with one tilted phone on each side.
   Anchored to the right edge of the device column; side phones fan outward
   into the wide empty space to the right of the hero copy. */
.hero__phones--trio .hero-phone {
  width: clamp(236px, 14vw, 292px);
  height: clamp(486px, 29vw, 602px);
  left: 50%;
  top: 42px;
  right: auto;
  bottom: auto;
  margin-left: calc(clamp(236px, 14vw, 292px) / -2);
  transform-origin: center bottom;
}
.hero__phones--trio .hero-phone--center {
  z-index: 5;
  transform: none;
}
.hero__phones--trio .hero-phone--left {
  z-index: 3;
  top: 74px;
  transform: translateX(clamp(-230px, -11vw, -150px)) rotate(-12deg);
}
.hero__phones--trio .hero-phone--right {
  z-index: 3;
  top: 74px;
  transform: translateX(clamp(150px, 11vw, 230px)) rotate(12deg);
}
.hero__phones--trio .hero-phone--far-left {
  z-index: 2;
  top: 122px;
  transform: translateX(clamp(-390px, -19vw, -280px)) rotate(-18deg) scale(0.9);
}
.hero__phones--trio .hero-phone--far-right {
  z-index: 2;
  top: 122px;
  transform: translateX(clamp(280px, 19vw, 390px)) rotate(18deg) scale(0.9);
}
/* Hide the two outermost phones on narrower viewports so the original
   3-phone trio (and mobile layout) is preserved. */
@media (max-width: 1439px) {
  .hero__phones--trio .hero-phone--far-left,
  .hero__phones--trio .hero-phone--far-right {
    display: none;
  }
}
@media (max-width: 1100px) {
  .hero__phones {
    max-width: 540px;
    height: 620px;
  }
  .hero__phones--trio {
    max-width: 460px;
    height: 580px;
  }
  .hero-phone {
    width: 270px;
    height: 560px;
  }
  .hero__phones--trio .hero-phone {
    width: 210px;
    height: 440px;
    margin-left: -105px;
  }
  .hero__phones--trio .hero-phone--left {
    transform: translateX(-115px) rotate(-12deg);
  }
  .hero__phones--trio .hero-phone--right {
    transform: translateX(115px) rotate(12deg);
  }
}
@media (max-width: 900px) {
  .hero__phones {
    max-width: 460px;
    height: 540px;
  }
  .hero__phones--trio {
    max-width: 420px;
    height: 520px;
  }
  .hero-phone {
    width: 235px;
    height: 480px;
  }
  .hero__phones--trio .hero-phone {
    width: 190px;
    height: 400px;
    margin-left: -95px;
  }
  .hero__phones--trio .hero-phone--left {
    transform: translateX(-105px) rotate(-12deg);
  }
  .hero__phones--trio .hero-phone--right {
    transform: translateX(105px) rotate(12deg);
  }
}
@media (max-width: 600px) {
  .hero__phones {
    max-width: 340px;
    height: 440px;
  }
  .hero__phones--trio {
    max-width: 340px;
    height: 460px;
  }
  .hero-phone {
    width: 195px;
    height: 400px;
    border-radius: 36px;
    padding: 10px;
  }
  .hero__phones--trio .hero-phone {
    width: 175px;
    height: 360px;
    margin-left: -88px;
    border-radius: 32px;
    padding: 8px;
  }
  .hero__phones--trio .hero-phone--left {
    transform: translateX(-90px) rotate(-10deg);
  }
  .hero__phones--trio .hero-phone--right {
    transform: translateX(90px) rotate(10deg);
  }
  .hero-phone__frame { border-radius: 28px; }
}
.hero__device .device-glow {
  z-index: 0;
}

.screens .section-head {
  margin-bottom: var(--s-7);
}

/* ---- Screens strip: real screenshots in phone frames ---- */
.screen-phone {
  position: relative;
  z-index: 1;
  display: block;
  margin: 0;
  width: 260px;
  height: 540px;
  background: linear-gradient(160deg, #1f2c46 0%, #0a1322 100%);
  border-radius: 40px;
  padding: 11px;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.06),
    0 30px 70px -20px rgba(0, 0, 0, 0.7),
    0 12px 28px rgba(0, 0, 0, 0.4);
}
.screen-phone__frame {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 30px;
  overflow: hidden;
  background: #050a14;
}
.screen-phone__notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 22px;
  background: #050a14;
  border-radius: 13px;
  z-index: 2;
}
.screen-phone__frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@media (max-width: 600px) {
  .screen-phone {
    width: 220px;
    height: 460px;
    border-radius: 36px;
    padding: 10px;
  }
  .screen-phone__frame { border-radius: 26px; }
}
.app-shot,
.feature-shot,
.ai-tutor__phone {
  margin: 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(116,154,209,0.30);
  background: #02050C;
  box-shadow:
    0 22px 70px -30px rgba(61,139,255,0.55),
    0 18px 44px -30px rgba(0,0,0,0.8);
}
.app-shot {
  width: min(100%, 270px);
  aspect-ratio: 1280 / 2772;
}
.feature-shot {
  width: min(100%, 310px);
  aspect-ratio: 1280 / 2772;
}
.ai-tutor__phone {
  width: min(100%, 320px);
  aspect-ratio: 1280 / 2772;
}
.app-shot img,
.feature-shot img,
.ai-tutor__phone img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.feature__visual .feature-card,
.ai-tutor__chat .ai-chat-card {
  display: none;
}

@media (min-width: 768px) {
  .screens__gallery {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--s-6) var(--s-5);
  }
  .app-shot {
    width: min(100%, 260px);
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(360px, 520px) minmax(0, 1fr);
  }
  .hero__showcase {
    max-width: 720px;
  }
}

@media (min-width: 1100px) {
  .screens__gallery {
    grid-template-columns: repeat(4, 1fr);
  }
  .app-shot {
    width: min(100%, 240px);
  }
}

/* =========================================================
 * RESPONSIVE (small tweaks)
 * ========================================================= */
@media (max-width: 600px) {
  .hero { padding-top: calc(var(--nav-h) + var(--s-7)); }
  .hero__inner,
  .hero__copy,
  .store-badges,
  .store-badges a {
    min-width: 0;
    max-width: 100%;
  }
  .hero__copy {
    inline-size: min(310px, calc(100vw - (var(--s-5) * 2)));
    max-inline-size: min(310px, calc(100vw - (var(--s-5) * 2)));
    padding-right: 0;
  }
  .hero__device {
    inline-size: min(340px, calc(100vw - (var(--s-5) * 2)));
    max-inline-size: min(340px, calc(100vw - (var(--s-5) * 2)));
    min-width: 0;
  }
  .hero__sub,
  .hero__trust {
    max-width: 100%;
  }
  .hero__h1 {
    font-size: clamp(1.9rem, 7.2vw, 2.15rem);
    overflow-wrap: break-word;
    text-wrap: balance;
  }
  .hero__sub { font-size: var(--fs-16); }
  .hero__app-icon {
    width: 84px;
    height: 84px;
    border-radius: 20px;
    margin-bottom: var(--s-3);
  }
  .store-badges {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .store-badges a {
    width: 178px;
    height: 53px;
  }
  .features--showcase { padding-top: calc(var(--nav-h) + var(--s-6)); }
  .feature--spotlight { min-height: auto; padding: var(--s-7) 0; }
  .feature__copy {
    width: min(100%, 330px);
    max-width: min(100%, 330px);
  }
  .feature h3 { font-size: var(--fs-24); }
  .feature__copy p { font-size: var(--fs-16); }
  .feature__bullets li { font-size: var(--fs-14); }
  .feature-shot { width: min(100%, 230px); }
  .section-head h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .feature-showcase__head h1 {
    font-size: clamp(2rem, 9vw, 2.7rem);
    overflow-wrap: break-word;
    text-wrap: balance;
  }
  .section-head {
    width: min(310px, calc(100vw - (var(--s-5) * 2)));
    max-width: min(310px, calc(100vw - (var(--s-5) * 2)));
  }
  .section-head h2 {
    overflow-wrap: break-word;
    text-wrap: balance;
  }
  .ai-tutor h1,
  .ai-tutor h2 { font-size: clamp(1.6rem, 6vw, 2rem); }
  .feature-card { padding: var(--s-4); }
  .feature-card__title--big { font-size: var(--fs-36); }
  .footer__links { flex-direction: column; }
  .footer__links span[aria-hidden] { display: none; }
}

/* =============================================================
 * Home nav cards — replaces the long scroll on the home page.
 * Each card links to a sub-page (Features, About, Support, AI Tutor).
 * ============================================================= */
.home-nav {
  padding: var(--s-7) 0 var(--s-8);
  position: relative;
}
.home-nav__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto var(--s-6);
}
.home-nav__head h2 {
  font-size: clamp(1.8rem, 4.4vw, 2.4rem);
  letter-spacing: -0.02em;
  margin-bottom: var(--s-2);
}
.home-nav__head p {
  color: var(--text-muted);
  font-size: var(--fs-16);
}
.home-nav__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--s-4);
}
@media (min-width: 720px) {
  .home-nav__grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .home-nav__grid { grid-template-columns: repeat(4, 1fr); }
}

.home-card {
  display: flex;
  flex-direction: column;
  gap: var(--s-3);
  padding: var(--s-5);
  border-radius: var(--r-xl);
  background: var(--grad-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
  transition: transform 200ms var(--ease-out), border-color 200ms var(--ease-out), box-shadow 200ms var(--ease-out);
}
.home-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.03) 0%, transparent 30%);
  pointer-events: none;
}
.home-card:hover {
  transform: translateY(-3px);
  border-color: rgba(61,139,255,0.55);
  box-shadow: 0 26px 60px -28px rgba(61,139,255,0.55);
}
.home-card:focus-visible {
  outline: 2px solid var(--brand-blue);
  outline-offset: 3px;
}
.home-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px; height: 48px;
  border-radius: 12px;
  background: rgba(61,139,255,0.14);
  border: 1px solid rgba(61,139,255,0.35);
  color: var(--brand-blue);
}
.home-card__title {
  font-size: var(--fs-24);
  letter-spacing: -0.015em;
  margin: 0;
}
.home-card__body {
  font-size: var(--fs-14);
  color: var(--text-muted);
  margin: 0;
}
.home-card__cta {
  margin-top: auto;
  font-size: var(--fs-14);
  font-weight: 600;
  color: var(--brand-blue);
  letter-spacing: 0.01em;
}
.home-card__cta::after {
  content: " ›";
}
