:root {
  --indigo: #5B5FE6;
  --indigo-dark: #4338CA;
  --indigo-soft: #8B8DF0;
  --tint-1: #E5E5FB;
  --tint-2: #F0DCF7;
  --tint-3: #F8F8FE;
  --tint-4: #DCEEC9;
  --tint-5: #FCE7A2;
  --ink: #111827;
  --ink-muted: #374151;
  --ink-subtle: #6B7280;
  --white: #FFFFFF;
  --border: #E5E7EB;

  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;

  --shadow-sm: 0 1px 2px rgba(17, 24, 39, 0.04);
  --shadow-md: 0 4px 16px rgba(91, 95, 230, 0.08);
  --shadow-lg: 0 12px 32px rgba(91, 95, 230, 0.12);

  --container: 1080px;
  --narrow: 720px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--ink);
}

h1 {
  font-size: clamp(2rem, 5vw + 0.5rem, 3.75rem);
  line-height: 1.1;
  font-weight: 700;
  margin: 0 0 1.5rem;
}

h2 {
  font-size: clamp(1.5rem, 2.5vw + 0.5rem, 2.25rem);
  line-height: 1.2;
  margin: 0 0 1rem;
}

h3 {
  font-size: 1.25rem;
  line-height: 1.3;
  margin: 0 0 0.5rem;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: var(--indigo); text-decoration: none; }
a:hover { text-decoration: underline; }

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.carousel:focus-visible {
  outline: 3px solid var(--indigo);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 1rem;
  background: var(--indigo);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
  z-index: 100;
}
.skip-link:focus {
  top: 1rem;
}

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

.container.narrow {
  max-width: var(--narrow);
}

.eyebrow {
  font-size: 0.875rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--indigo);
  margin: 0 0 1rem;
}

.section-lede {
  font-size: 1.125rem;
  color: var(--ink-muted);
  max-width: 56ch;
  margin: 0 0 2rem;
}

/* ─── Header ────────────────────────────────────────────── */
.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  max-width: var(--container);
  margin: 0 auto;
}

.wordmark {
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.wordmark:hover { text-decoration: none; }

.site-header nav {
  display: flex;
  gap: 1.5rem;
}

.site-header nav a {
  color: var(--ink-muted);
  font-size: 0.95rem;
  font-weight: 500;
}

@media (max-width: 480px) {
  .site-header nav a:first-child { display: none; }
}

/* ─── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.875rem 1.5rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  font-family: inherit;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary {
  background: var(--indigo);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover {
  background: var(--indigo-dark);
  box-shadow: var(--shadow-lg);
}

.btn-secondary {
  background: var(--white);
  color: var(--ink);
  border-color: var(--border);
}
.btn-secondary:hover {
  border-color: var(--indigo);
  color: var(--indigo);
}

.btn-large {
  padding: 1.125rem 2rem;
  font-size: 1.0625rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* ─── Hero ──────────────────────────────────────────────── */
.hero {
  position: relative;
  padding: 3rem 0 5rem;
  overflow: hidden;
}

.hero-blob {
  position: absolute;
  top: -200px;
  right: -200px;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, var(--tint-2) 0%, var(--tint-1) 40%, transparent 70%);
  border-radius: 50%;
  z-index: -1;
  filter: blur(20px);
  pointer-events: none;
}

.hero .lede {
  font-size: 1.25rem;
  color: var(--ink-muted);
  max-width: 56ch;
  line-height: 1.5;
}

@media (min-width: 768px) {
  .hero { padding: 5rem 0 7rem; }
  .hero .lede { font-size: 1.375rem; }
}

/* ─── Intro ─────────────────────────────────────────────── */
.intro {
  background: var(--tint-3);
  padding: 5rem 0;
}

.intro p {
  font-size: 1.125rem;
  color: var(--ink-muted);
}

/* ─── Carousel ──────────────────────────────────────────── */
.carousel-section {
  padding: 5rem 0 6rem;
}

.carousel-wrap {
  position: relative;
  margin-top: 2rem;
}

.carousel {
  list-style: none;
  margin: 0;
  padding: 0 1.5rem;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: min(85%, 360px);
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-padding: 1.5rem;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.carousel::-webkit-scrollbar { display: none; }

@media (min-width: 768px) {
  .carousel {
    padding: 0 max(1.5rem, calc((100vw - var(--container)) / 2 + 1.5rem));
    grid-auto-columns: 360px;
  }
}

.card {
  scroll-snap-align: start;
  padding: 2rem;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  min-height: 280px;
  box-shadow: var(--shadow-sm);
}

.card-num {
  font-family: 'Inter', monospace;
  font-feature-settings: 'tnum';
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--indigo);
  letter-spacing: 0.08em;
  margin-bottom: 1.5rem;
}

.card h3 {
  font-size: 1.375rem;
  margin-bottom: 0.75rem;
}

.card p {
  color: var(--ink-muted);
  font-size: 1rem;
  line-height: 1.55;
}

.card-tint-1 { background: var(--tint-1); }
.card-tint-2 { background: var(--tint-2); }
.card-tint-3 { background: var(--tint-3); border: 1px solid var(--border); }
.card-tint-4 { background: var(--tint-4); }
.card-tint-5 { background: var(--tint-5); }

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--ink);
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: var(--shadow-md);
  padding: 0;
}
.carousel-arrow svg { width: 22px; height: 22px; }
.carousel-arrow:hover { color: var(--indigo); border-color: var(--indigo); }
.carousel-arrow:disabled { opacity: 0.3; cursor: not-allowed; }
.carousel-prev { left: 0.5rem; }
.carousel-next { right: 0.5rem; }

@media (min-width: 768px) {
  .carousel-arrow { display: inline-flex; }
  .carousel-prev { left: 1rem; }
  .carousel-next { right: 1rem; }
}

/* ─── Founders ──────────────────────────────────────────── */
.founders {
  padding: 5rem 0;
  background: var(--tint-3);
}

.founder {
  margin-top: 2rem;
  padding-top: 2rem;
  border-top: 1px solid var(--border);
}
.founder:first-of-type { border-top: none; padding-top: 0; }

.founder p {
  color: var(--ink-muted);
  font-size: 1.0625rem;
}

.founder h3 {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.5rem 0.75rem;
}

.founder h3 .role {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--indigo);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

/* ─── Sign-up form ──────────────────────────────────────── */
.signup {
  padding: 5rem 0;
}

#signup-form {
  margin-top: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.field label {
  font-weight: 500;
  font-size: 0.95rem;
}

.req { color: var(--indigo); }
.opt { color: var(--ink-subtle); font-weight: 400; font-size: 0.875rem; }

.field input,
.field select {
  padding: 0.875rem 1rem;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  font-size: 1rem;
  font-family: inherit;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s ease;
}
.field input:hover,
.field select:hover { border-color: var(--indigo-soft); }
.field input:focus,
.field select:focus { border-color: var(--indigo); outline: none; box-shadow: 0 0 0 3px rgba(91, 95, 230, 0.15); }

.field input.invalid {
  border-color: #B91C1C;
}

#signup-form .btn {
  align-self: flex-start;
  margin-top: 0.5rem;
}

.form-note {
  font-size: 0.875rem;
  color: var(--ink-subtle);
  margin-top: 0.25rem;
}

.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 0.5rem;
  padding: 0;
  font-size: 0.95rem;
  min-height: 1.5rem;
}
.form-status.success {
  background: var(--tint-4);
  color: #16803C;
  padding: 1rem;
  border-radius: var(--radius-sm);
}
.form-status.error {
  background: #FEE2E2;
  color: #B91C1C;
  padding: 1rem;
  border-radius: var(--radius-sm);
}

/* ─── Talk to Kayla ─────────────────────────────────────── */
.talk {
  padding: 5rem 0;
  background: linear-gradient(135deg, var(--tint-1) 0%, var(--tint-2) 100%);
  text-align: center;
}

.talk .container { display: flex; flex-direction: column; align-items: center; }
.talk h2 { text-align: center; }
.talk .section-lede { text-align: center; margin-bottom: 2rem; }

/* ─── Footer ────────────────────────────────────────────── */
.site-footer {
  padding: 2.5rem 0;
  border-top: 1px solid var(--border);
  color: var(--ink-subtle);
  font-size: 0.9rem;
}
.site-footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}
.site-footer p { margin: 0; }
.site-footer a { color: var(--ink-muted); }
