/* ─── DESIGN TOKENS ─────────────────────────────────── */
:root {
  /* Brand gradient — matches the app icon */
  --grad-start: #6A4BEB;        /* purple/blue */
  --grad-mid:   #A03BD6;        /* violet */
  --grad-end:   #E91E63;        /* hot pink */
  --grad: linear-gradient(135deg, var(--grad-start) 0%, var(--grad-mid) 50%, var(--grad-end) 100%);
  --grad-soft: linear-gradient(135deg, rgba(106,75,235,0.08) 0%, rgba(233,30,99,0.08) 100%);

  /* Neutrals */
  --ink-900: #0E0B1F;
  --ink-700: #2A2440;
  --ink-500: #5C5577;
  --ink-300: #9A95B0;
  --ink-100: #E7E3F0;
  --ink-50:  #F6F4FB;
  --white:   #FFFFFF;

  /* Surface */
  --bg:        #FFFFFF;
  --bg-alt:    #F9F7FD;
  --border:    #ECE7F5;

  /* Type */
  --font-display: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* Layout */
  --container-max: 1120px;
  --container-narrow-max: 760px;
  --section-padding: clamp(72px, 9vw, 120px) 0;
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(14,11,31,0.06), 0 1px 1px rgba(14,11,31,0.04);
  --shadow-md: 0 8px 24px rgba(14,11,31,0.08);
  --shadow-lg: 0 24px 48px rgba(14,11,31,0.12);
  --shadow-grad: 0 18px 40px rgba(160,59,214,0.35);
}

/* ─── RESET ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* offset sticky header on anchor jumps */
  -webkit-text-size-adjust: 100%;
}

/* ─── GLOBAL FOCUS RING (keyboard accessibility) ────── */
*:focus { outline: none; } /* suppress default; we provide our own below */
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--grad-mid);
  outline-offset: 3px;
  border-radius: 4px;
}
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
input { font: inherit; }
ol, ul { padding: 0; margin: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-display); font-weight: 700; line-height: 1.15; letter-spacing: -0.02em; }
p { margin: 0; }

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

/* ─── LAYOUT ────────────────────────────────────────── */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: var(--container-narrow-max); }

.section-eyebrow {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
  margin-bottom: 16px;
}

.section-title {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 48px;
  max-width: 16ch;
}

.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}

/* ─── BUTTONS ───────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  text-align: center;
  white-space: nowrap;
  transition: transform 120ms ease, box-shadow 180ms ease, opacity 180ms ease;
  position: relative;
}
.btn-sm { padding: 10px 18px; font-size: 14px; }
.btn-gradient {
  color: var(--white);
  background: var(--grad);
  background-size: 150% 150%;
  background-position: 0% 50%;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.18),         /* outer ring — subtle separation */
    inset 0 1px 0 rgba(255,255,255,0.22),     /* inner top highlight — adds dimension */
    var(--shadow-grad);                        /* existing drop shadow */
}
.btn-gradient:hover {
  transform: translateY(-1px);
  background-position: 100% 50%;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.28),
    inset 0 1px 0 rgba(255,255,255,0.28),
    var(--shadow-grad);
}
.btn-gradient:active { transform: translateY(0); }

/* White button variant — solid white bg with gradient text. */
/* Best for use on the gradient hero where the colored gradient button blends in. */
.btn-white {
  background: var(--white);
  color: transparent; /* fallback if background-clip not supported */
  box-shadow:
    0 1px 2px rgba(14,11,31,0.08),
    0 6px 16px rgba(14,11,31,0.10);
}
.btn-white .btn-label {
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  font-weight: 700;
}
.btn-white:hover {
  transform: translateY(-1px);
  box-shadow:
    0 2px 4px rgba(14,11,31,0.12),
    0 14px 32px rgba(160,59,214,0.28);
}
.btn-white:active { transform: translateY(0); }
.btn-white .btn-spinner {
  border: 2px solid rgba(160,59,214,0.2);
  border-top-color: var(--grad-mid);
}
.btn[disabled],
.btn.is-loading {
  opacity: 0.85;
  cursor: progress;
  pointer-events: none;
}
.btn .btn-spinner {
  display: none;
  width: 16px; height: 16px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,0.45);
  border-top-color: var(--white);
  animation: spin 0.7s linear infinite;
}
.btn.is-loading .btn-spinner { display: inline-block; }
.btn.is-loading .btn-label { opacity: 0.85; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ─── HEADER ────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(14px);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 120ms ease;
}
.logo:hover { opacity: 0.85; }
.logo-mark {
  width: 36px; height: 36px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}
.logo-wordmark,
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.header-nav {
  display: flex;
  align-items: center;
  gap: 28px;
}
.header-nav a:not(.btn) {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-700);
  transition: color 120ms ease;
}
.header-nav a:not(.btn):hover { color: var(--ink-900); }
.header-nav .btn { color: var(--white); }
@media (max-width: 720px) {
  .header-nav a:not(.btn) { display: none; }
}

/* ─── HERO ──────────────────────────────────────────── */
.hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  color: var(--white);
  padding: var(--section-padding);
  text-align: center;
}
.hero-bg {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(60% 60% at 80% 20%, rgba(233,30,99,0.85) 0%, transparent 60%),
    radial-gradient(70% 70% at 20% 80%, rgba(106,75,235,0.95) 0%, transparent 60%),
    linear-gradient(135deg, #4F2EC9 0%, #8E2BC9 50%, #C7227A 100%);
  z-index: -1;
}
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(1px 1px at 20% 30%, rgba(255,255,255,0.35) 50%, transparent 51%),
    radial-gradient(1px 1px at 70% 65%, rgba(255,255,255,0.25) 50%, transparent 51%),
    radial-gradient(1px 1px at 40% 80%, rgba(255,255,255,0.2)  50%, transparent 51%);
  background-size: 240px 240px, 320px 320px, 200px 200px;
  pointer-events: none;
  opacity: 0.6;
  z-index: -1;
}
.hero-inner { max-width: 800px; margin: 0 auto; }
.hero-title {
  font-size: clamp(40px, 7vw, 76px);
  letter-spacing: -0.03em;
  margin-bottom: 24px;
}
.hero-title .grad-text {
  background: linear-gradient(180deg, #FFFFFF 0%, #FFE4F1 100%);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
}
.hero-tagline {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(15px, 1.4vw, 19px);
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.88);
  margin: 0 0 20px;
}
.hero-sub {
  font-size: clamp(17px, 1.6vw, 20px);
  color: rgba(255,255,255,0.92);
  margin: 0 auto 36px;
  max-width: 620px;
}
.hero-foot {
  margin-top: 16px;
  font-size: 13px;
  color: rgba(255,255,255,0.7);
}

/* ─── FORM ──────────────────────────────────────────── */
.waitlist-form {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 12px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.25);
  border-radius: 22px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: border-color 120ms ease, box-shadow 180ms ease;
}
.waitlist-form:focus-within {
  border-color: rgba(255,255,255,0.55);
  box-shadow: 0 0 0 4px rgba(255,255,255,0.14);
}
.waitlist-form input[type="email"]:focus-visible { outline: none; }
.waitlist-form input[type="email"] {
  width: 100%;
  background: rgba(255,255,255,0.10);
  border: 0;
  outline: 0;
  height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  color: var(--white);
  font-size: 16px;
  line-height: 1;
  text-align: center;
  min-width: 0;
}
.waitlist-form input[type="email"]::placeholder { color: rgba(255,255,255,0.6); }
/* Button sits on its own centered row, sized to its label */
.waitlist-form .btn { height: 46px; padding: 0 28px; line-height: 1; align-self: center; }

/* School dropdown — full-width field with centered text, stacked above email */
.waitlist-school {
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 48px;
  padding: 0 40px;
  background-color: rgba(255,255,255,0.10);
  border: 0;
  border-radius: 999px;
  outline: 0;
  color: var(--white);
  font-size: 16px;
  font-family: inherit;
  line-height: normal;
  cursor: pointer;
  text-align: center;
  text-align-last: center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
/* Native dropdown list renders on a light surface — keep its text readable */
.waitlist-school option { color: var(--ink-900); }

/* Light variant (final CTA on white) */
.waitlist-form-light .waitlist-school {
  color: var(--ink-900);
  background-color: rgba(14,11,31,0.05);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23A03BD6' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
}

/* Form feedback message — sits BELOW the form pill, never inside it.
   Color varies by surrounding section (light vs dark background). */
.form-message {
  text-align: center;
  margin: 12px auto 0;
  max-width: 520px;
  padding: 0 12px;
  font-size: 14px;
  line-height: 1.45;
}
.form-message:empty { display: none; }

/* Dark context (hero) */
.hero .form-message            { color: rgba(255,255,255,0.95); }
.hero .form-message.is-error   { color: #FFD8E2; }
.hero .form-message.is-success { color: #DBFFE5; font-weight: 500; }

/* Light context (final CTA) */
.cta-final .form-message            { color: var(--ink-500); }
.cta-final .form-message.is-error   { color: #B5174D; }
.cta-final .form-message.is-success { color: #156B33; font-weight: 500; }

/* Light variant for use on white sections */
.waitlist-form-light {
  background: var(--white);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
}
.waitlist-form-light:focus-within {
  border-color: var(--grad-mid);
  box-shadow: var(--shadow-md), 0 0 0 4px rgba(160,59,214,0.14);
}
.waitlist-form-light input[type="email"] {
  color: var(--ink-900);
  background: rgba(14,11,31,0.05);
}
.waitlist-form-light input[type="email"]::placeholder { color: var(--ink-300); }

@media (max-width: 520px) {
  .waitlist-form {
    border-radius: 18px;
  }
  .waitlist-form .btn { align-self: stretch; width: 100%; }
}

/* ─── HOW IT WORKS ──────────────────────────────────── */
.how {
  padding: var(--section-padding);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  counter-reset: step;
}
.step {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 32px 32px;
  position: relative;
  box-shadow: 0 2px 4px rgba(14,11,31,0.08), 0 8px 20px rgba(14,11,31,0.10);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.step:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.step-num {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(44px, 5vw, 60px);
  line-height: 1;
  letter-spacing: -0.03em;
  background: var(--grad);
  -webkit-background-clip: text;
          background-clip: text;
  color: transparent;
  margin: 0 0 14px;
  display: block;
}
.step h3 { font-size: 22px; margin-bottom: 10px; line-height: 1.2; }
.step p { color: var(--ink-500); font-size: 15.5px; line-height: 1.55; }
/* Arrow connector between cards (desktop only — gets hidden in the mobile media query) */
.step:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  transform: translate(-50%, -50%);
  width: 22px;
  height: 22px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%239A95B0' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><path d='M5 12h14M13 5l7 7-7 7'/></svg>") center / contain no-repeat;
  pointer-events: none;
  transition: transform 180ms ease; /* matches card transition for perfect cancellation */
}
/* Counter the card's -2px lift so the arrow visually stays put */
.step:not(:last-child):hover::after {
  transform: translate(-50%, calc(-50% + 2px));
}
@media (max-width: 880px) {
  .steps { grid-template-columns: 1fr; gap: 16px; }
  .step:not(:last-child)::after { display: none; }
}

/* ─── FEATURES ──────────────────────────────────────── */
.features {
  padding: var(--section-padding);
  background: var(--bg-alt);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 2px 4px rgba(14,11,31,0.08), 0 8px 20px rgba(14,11,31,0.10);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}
.feature:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  background: var(--grad-soft);
  color: var(--grad-mid);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { color: var(--ink-500); font-size: 15px; }
@media (max-width: 980px) { .feature-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .feature-grid { grid-template-columns: 1fr; } }

/* ─── OUR STORY ─────────────────────────────────────── */
.story {
  padding: var(--section-padding);
}
.story-text {
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.7;
  color: var(--ink-700);
  max-width: 60ch;
  margin-bottom: 2em;
}
.story-text:last-child { margin-bottom: 0; }
.story-text strong { color: var(--ink-900); font-weight: 600; }

/* ─── FAQ ───────────────────────────────────────────── */
.faq {
  padding: var(--section-padding);
}
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--white);
  box-shadow: 0 2px 4px rgba(14,11,31,0.08), 0 8px 20px rgba(14,11,31,0.10);
  transition: border-color 180ms ease, box-shadow 180ms ease;
}
.faq-item:hover { border-color: var(--ink-300); }
.faq-item[open] {
  border-color: transparent;
  box-shadow: 0 4px 8px rgba(14,11,31,0.10), 0 16px 36px rgba(14,11,31,0.12);
}
.faq-item[open]:hover { border-color: transparent; }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 17px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transition: color 120ms ease;
}
.faq-item summary:hover { color: var(--grad-mid); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-display);
  font-size: 22px;
  color: var(--ink-300);
  transition: transform 180ms ease, color 120ms ease;
}
.faq-item summary:hover::after { color: var(--grad-mid); }
.faq-item[open] summary::after { content: '–'; color: var(--grad-mid); }
.faq-item p {
  padding: 0 22px 22px;
  color: var(--ink-500);
}

/* ─── FINAL CTA ─────────────────────────────────────── */
.cta-final {
  padding: var(--section-padding);
  background: var(--bg-alt);
  text-align: center;
}
.cta-final .section-title {
  margin: 0 auto 16px;
  font-size: clamp(32px, 5vw, 48px);
}
.cta-sub {
  color: var(--ink-500);
  font-size: 18px;
  margin: 0 auto 32px;
  max-width: 560px;
}
.store-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 36px;
}
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 22px;
  border-radius: 14px;
  background: var(--ink-900);
  color: var(--white);
  opacity: 0.85;
  cursor: not-allowed;
  user-select: none;
}
.store-badge svg { width: 26px; height: 26px; }
.store-badge-text { display: flex; flex-direction: column; line-height: 1.1; text-align: left; }
.store-badge-eyebrow { font-size: 11px; opacity: 0.7; letter-spacing: 0.05em; text-transform: uppercase; }
.store-badge-name { font-family: var(--font-display); font-weight: 600; font-size: 16px; margin-top: 2px; }

/* ─── FOOTER ────────────────────────────────────────── */
.site-footer {
  background: var(--ink-900);
  color: var(--ink-100);
  padding: 56px 0 40px;
}
.footer-inner { display: flex; flex-direction: column; gap: 20px; align-items: center; text-align: center; }
.footer-brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-logo { width: 32px; height: 32px; }
.footer-wordmark { font-size: 20px; }
.footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
}
.footer-nav a {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-300);
  transition: color 120ms ease;
}
.footer-nav a:hover { color: var(--white); }
.footer-disclaimer {
  font-size: 13px;
  color: var(--ink-300);
  max-width: 540px;
  margin: 12px auto 0;
}
.footer-copy {
  font-size: 13px;
  color: var(--ink-300);
  margin-top: 4px;
}
