/* ================================================================
   DESIGN TOKENS
   ================================================================ */
:root {
  --accent:       #0D59F2;
  --accent-2:     #7B2CFF;
  --grad:         linear-gradient(90deg, var(--accent) 0%, var(--accent-2) 100%);
  --grad-radial:  linear-gradient(140deg, var(--accent) 0%, var(--accent-2) 100%);

  --bg:           #ffffff;
  --soft-bg:      #f8fafc;
  --line:         #e9eaee;
  --ink:          #0a0a0a;
  --sub:          #5f5d56;
  --muted:        #9a978f;

  --font-display: "Newsreader", Georgia, serif;
  --font-body:    "Geist", ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    "Geist Mono", ui-monospace, monospace;

  --radius-card:  16px;
  --radius-sm:    10px;
  --section-pad:  88px 56px;
}

/* ================================================================
   RESET + BASE
   ================================================================ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; cursor: pointer; }

/* ================================================================
   UTILITIES
   ================================================================ */
.gradient-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  display: inline;
}

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ================================================================
   STORE BADGES
   ================================================================ */
.store-badges {
  display: flex;
  justify-content: center;
  gap: 12px;
}

.store-badge {
  display: inline-flex;
  text-decoration: none;
  flex-shrink: 0;
}

.store-badge svg {
  display: block;
  width: 140px;
  height: 44px;
}

/* ================================================================
   PILL FORM (shared: hero waitlist + final CTA)
   ================================================================ */
.pill-form {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border: 1.5px solid var(--ink);
  border-radius: 999px;
  background: var(--bg);
  width: 100%;
  max-width: 440px;
  box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--accent) 25%, transparent);
}

.pill-form input[type="email"] {
  flex: 1;
  min-width: 0;
  height: 40px;
  padding: 0 16px;
  border: none;
  background: transparent;
  font-size: 14.5px;
  outline: none;
  font-family: inherit;
  color: var(--ink);
}

.pill-form input[type="email"]::placeholder { color: var(--muted); }

.pill-form button[type="submit"] {
  flex-shrink: 0;
  height: 40px;
  padding: 0 20px;
  background: var(--grad);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  transition: opacity 0.15s;
}

.pill-form button[type="submit"]:hover { opacity: 0.88; }

/* Waitlist success state */
.pill-form--success {
  border-color: var(--accent);
  gap: 10px;
  justify-content: center;
  padding: 12px 18px;
}

.pill-form--success .success-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.pill-form--success .success-text {
  font-size: 14px;
  color: var(--ink);
}

/* ================================================================
   PILL NAV
   ================================================================ */
.pill-nav {
  position: relative;
  z-index: 10;
  margin: 0 0 0 56px;
  width: fit-content;
}

.pill-nav__logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.05), 0 2px 6px rgba(2,6,23,0.03);
  text-decoration: none;
}

.pill-nav__logo img { width: 32px; height: 32px; }

.pill-nav__logo span {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.02em;
}

/* Footer reuses the logo style at smaller size */
.site-footer .pill-nav__logo img { width: 22px; height: 22px; }
.site-footer .pill-nav__logo span { font-size: 16px; }

/* ================================================================
   HERO
   ================================================================ */
.hero {
  position: relative;
  padding: 24px 0 80px;
  background: linear-gradient(180deg, #ffffff 0%, var(--soft-bg) 80%);
  overflow: hidden;
}

.hero__inner {
  position: relative;
  z-index: 5;
  display: grid;
  grid-template-columns: 1fr 420px;
  gap: 56px;
  align-items: center;
  padding: 70px 80px 0;
  max-width: 1100px;
  margin: 0 auto;
}

.hero__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -0.035em;
  line-height: 1.0;
  color: var(--ink);
}

.hero__headline span { display: block; }

.hero__tagline {
  display: inline-block;
  margin-top: 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.02em;
  line-height: 1.15;
}

.hero__body {
  font-size: 17px;
  color: var(--sub);
  line-height: 1.6;
  margin-top: 18px;
  max-width: 560px;
}

.hero__art {
  position: relative;
  display: flex;
  justify-content: center;
}

.hero__glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 14%, transparent), transparent 70%);
  pointer-events: none;
  z-index: -1;
}

.hero__screenshot {
  position: relative;
  z-index: 1;
  border-radius: 36px;
}

/* ================================================================
   WAITLIST SECTION
   ================================================================ */
.waitlist-section {
  padding: 56px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.form-note {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.04em;
  margin-top: -4px;
}

/* ================================================================
   HOW IT WORKS
   ================================================================ */
.how-section {
  padding: var(--section-pad);
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.how-section__head {
  text-align: center;
  margin-bottom: 48px;
}

.how-section__head h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -0.035em;
  line-height: 1.1;
  margin: 12px auto 0;
  max-width: 780px;
}

.how-section__body {
  max-width: 820px;
  margin: 0 auto;
}

.how-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  list-style: none;
  position: relative;
}

/* Dashed connectors between step cards */
.how-steps::before,
.how-steps::after {
  content: '';
  position: absolute;
  top: 50%;
  height: 1px;
  border-top: 1px dashed var(--muted);
  pointer-events: none;
  opacity: 0.5;
}

.how-steps::before { left: 33%; width: 2%; }
.how-steps::after  { left: 65%; width: 2%; }

.step-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  padding: 24px 24px 26px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.step-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.02em;
  margin-top: 16px;
}

.step-card p {
  font-size: 14.5px;
  color: var(--sub);
  margin-top: 8px;
  line-height: 1.55;
}

.step-badge {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 600;
}

.step-badge--blue   { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.step-badge--purple { background: color-mix(in srgb, var(--accent-2) 10%, transparent); color: var(--accent-2); }

.how-callout {
  margin-top: 24px;
  padding: 22px 26px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  display: flex;
  align-items: center;
  gap: 18px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.02);
}

.how-callout__icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  background: var(--grad);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 18px -6px color-mix(in srgb, var(--accent) 40%, transparent);
}

.how-callout p {
  font-size: 15.5px;
  line-height: 1.55;
  color: var(--ink);
}

.how-callout strong { font-weight: 600; }

/* ================================================================
   STAGGER ANIMATION — HOW IT WORKS
   ================================================================ */
.animate-card {
  opacity: 0;
  transform: translateY(36px) scale(0.95);
  transition:
    opacity    800ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms),
    transform  800ms cubic-bezier(0.2, 0.8, 0.2, 1) var(--delay, 0ms);
}

.how-section--visible .animate-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (prefers-reduced-motion: reduce) {
  .animate-card {
    opacity: 0;
    transform: none;
    transition: opacity 200ms linear var(--delay, 0ms);
  }
  .how-section--visible .animate-card {
    opacity: 1;
  }
}

/* ================================================================
   FEATURE SECTIONS
   ================================================================ */
.feature-section {
  padding: var(--section-pad);
  border-top: 1px solid var(--line);
  background: var(--bg);
}

.feature__inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 880px;
  margin: 0 auto;
}

.feature-section--soft { background: var(--soft-bg); }

.feature__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 46px;
  letter-spacing: -0.035em;
  line-height: 1.05;
  margin-bottom: 16px;
  display: inline-block;
}

.soon-chip {
  display: inline-block;
  padding: 4px 9px;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  font-size: 10px;
  letter-spacing: 0.1em;
  font-weight: 600;
  font-family: var(--font-mono);
  margin-bottom: 14px;
}

.feature__desc {
  font-size: 17px;
  color: var(--sub);
  line-height: 1.55;
  max-width: 440px;
}

.feature__bullets {
  list-style: none;
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.feature__bullets li {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 15px;
  color: var(--ink);
}

.check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 10%, transparent);
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ================================================================
   FEATURE ART — SCAN & LIBRARY (screenshot + overlays)
   ================================================================ */
.feature__art {
  position: relative;
  height: 520px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.feature__screenshot {
  position: relative;
  z-index: 1;
  border-radius: 34px;
  height: auto; /* always override the HTML height attribute */
  display: block;
}

/* Floating cards */
.float-card {
  position: absolute;
  z-index: 2;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.08);
  padding: 12px 14px;
}

.float-card--langs {
  left: -10px;
  top: 60px;
  width: 150px;
}

.float-card__label {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.06em;
}

.float-card__stat {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin-top: 4px;
  color: var(--ink);
}

.float-card__stat span {
  font-size: 18px;
  color: var(--muted);
  font-weight: 600;
  margin-left: 2px;
}

.float-card--saved {
  right: -10px;
  bottom: 60px;
  width: 200px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.float-card__icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.float-card__icon--check {
  background: var(--accent);
  color: #fff;
}

.float-card__title {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink);
}

.float-card__sub {
  font-size: 10.5px;
  color: var(--muted);
  margin-top: 2px;
}

/* Library labels card */
.float-card--labels {
  left: -10px;
  top: 80px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.label-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 160px;
}

.label-chip {
  padding: 3px 8px;
  color: #fff;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 500;
  font-family: var(--font-mono);
}

.label-chip--blue   { background: var(--accent); }
.label-chip--purple { background: var(--accent-2); }
.label-chip--dark   { background: var(--ink); }

/* ================================================================
   FEATURE ART — AI CONNECTIONS
   ================================================================ */
.ai-art {
  position: relative;
  height: 440px;
}

.ai-note {
  position: absolute;
  width: calc(50% - 16px);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
  padding: 14px 16px;
  z-index: 2;
}

.ai-note--left  { left: 0;  top: 20px; }
.ai-note--right { right: 0; top: 20px; }

.ai-note__source {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.ai-note__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 600;
  flex-shrink: 0;
}

.ai-note__dot--blue   { background: color-mix(in srgb, var(--accent) 10%, transparent); color: var(--accent); }
.ai-note__dot--purple { background: color-mix(in srgb, var(--accent-2) 10%, transparent); color: var(--accent-2); }

.ai-note__quote {
  font-size: 14px;
  margin-top: 8px;
  line-height: 1.4;
  color: var(--ink);
}

.ai-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  overflow: visible;
}

.ai-hub {
  position: absolute;
  left: 50%;
  top: 155px;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  z-index: 2;
}

.ai-hub__circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--grad-radial);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 8px  color-mix(in srgb, var(--accent) 10%, transparent),
    0 0 0 18px color-mix(in srgb, var(--accent)  5%, transparent),
    0 14px 30px -8px color-mix(in srgb, var(--accent) 40%, transparent);
}

.ai-hub__label {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ai-result {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  border: 1px dashed var(--accent);
  border-radius: 12px;
  padding: 14px 16px;
  z-index: 2;
}

.ai-result__tag {
  font-family: var(--font-mono);
  font-size: 10.5px;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.ai-result__text {
  font-size: 14px;
  margin-top: 6px;
  line-height: 1.45;
  color: var(--ink);
}

/* ================================================================
   FEATURE ART — SECOND BRAIN (MIND MAP)
   ================================================================ */
.mind-art {
  height: 440px;
  position: relative;
}

.mind-frame {
  position: absolute;
  inset: 0;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius-card);
  box-shadow: 0 10px 30px rgba(2,6,23,0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.mind-frame__header {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-shrink: 0;
}

.mind-frame__title {
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}

.mind-frame__count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.mind-frame__canvas {
  position: relative;
  flex: 1;
  background: var(--soft-bg);
  overflow: hidden;
}

.mind-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.mind-note {
  position: absolute;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 6px 16px rgba(2,6,23,0.06);
  padding: 10px 12px;
  z-index: 2;
}

.mind-note__source {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 9.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

.mind-note__source::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.mind-note__source--blue::before   { background: var(--accent); }
.mind-note__source--purple::before { background: var(--accent-2); }

.mind-note__quote {
  font-family: var(--font-display);
  font-size: 12.5px;
  margin-top: 5px;
  line-height: 1.3;
  color: var(--ink);
  font-style: italic;
}

/* ================================================================
   FINAL CTA
   ================================================================ */
.final-cta {
  padding: 100px 56px;
  background: linear-gradient(180deg, var(--bg) 0%, var(--soft-bg) 100%);
  border-top: 1px solid var(--line);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.final-cta__circles {
  position: absolute;
  left: 50%;
  top: 40%;
  transform: translate(-50%, -50%);
  width: 900px;
  height: 900px;
  pointer-events: none;
  opacity: 0.4;
}

.final-cta__content {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.final-cta__headline {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 72px;
  letter-spacing: -0.035em;
  line-height: 1.0;
  max-width: 820px;
  color: var(--ink);
}

.final-cta__headline span { display: block; }

/* ================================================================
   FOOTER
   ================================================================ */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 28px 56px;
  background: var(--bg);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 13.5px;
  color: var(--sub);
}

.footer-links a {
  color: var(--sub);
  text-decoration: none;
  transition: color 0.15s;
}

.footer-links a:hover { color: var(--ink); }

.footer-links span { color: var(--muted); }

/* ================================================================
   RESPONSIVE — TABLET (< 960px)
   ================================================================ */
@media (max-width: 960px) {
  :root { --section-pad: 64px 40px; }

  .hero__inner {
    grid-template-columns: 1fr;
    padding: 48px 40px 0;
    text-align: center;
  }

  .hero__headline { font-size: 56px; }

  .hero__body { margin-left: auto; margin-right: auto; }

  .hero__art { margin-top: 40px; }

  .pill-nav { margin-left: 40px; }

  .feature-section { padding: 64px 40px; }

  .feature__inner {
    grid-template-columns: 1fr;
  }

  /* art always below text on smaller screens */
  .feature-section--flipped .feature__art { order: 2; }
  .feature-section--flipped .feature__text { order: 1; }

  .feature__title { font-size: 38px; }

  .feature__desc { max-width: 100%; }

  .how-section__head h2 { font-size: 36px; }

  .final-cta__headline { font-size: 52px; }

  /* screenshot containers: let image dictate height, hide floating overlays */
  .feature__art {
    height: auto;
    align-items: flex-start;
    justify-content: center;
    padding: 16px 0;
  }

  .float-card { display: none; }

  .ai-art { height: 420px; }

  .mind-art { height: 380px; }
}

/* ================================================================
   RESPONSIVE — MOBILE (< 640px)
   ================================================================ */
@media (max-width: 640px) {
  :root { --section-pad: 48px 24px; }

  .pill-nav { margin-left: 24px; }

  .hero__inner { padding: 40px 24px 0; }

  .hero__headline { font-size: 44px; }

  .hero__tagline { font-size: 22px; }

  .how-steps { grid-template-columns: 1fr; }

  .how-steps::before,
  .how-steps::after { display: none; }

  .how-section__head h2 { font-size: 30px; }

  .feature-section { padding: 48px 24px; }

  .feature__title { font-size: 32px; }

  .final-cta { padding: 72px 24px; }

  .final-cta__headline { font-size: 38px; }

  .site-footer { padding: 24px; flex-direction: column; align-items: flex-start; }

  .waitlist-section { padding: 40px 24px; }

  .pill-form { max-width: 100%; flex-direction: column; border-radius: 16px; }

  .pill-form input[type="email"] { width: 100%; }

  .pill-form button[type="submit"] { width: 100%; justify-content: center; }

  .store-badges { flex-wrap: wrap; }

  .feature__art { height: auto; padding: 16px 0; }

  .ai-art { height: 460px; }

  .ai-note { width: calc(50% - 8px); }

  .ai-note--left  { left: 0; }
  .ai-note--right { right: 0; }

  .mind-art { height: 320px; }
}

/* ================================================================
   FAQ SECTION
   ================================================================ */
.faq-section {
  background: var(--soft-bg);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 80px 24px;
}

.faq__inner {
  max-width: 720px;
  margin: 0 auto;
}

.faq__head {
  text-align: center;
  margin-bottom: 48px;
}

.faq__head h2 {
  font-family: var(--font-display);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--ink);
  margin-top: 8px;
}

.faq__list {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.faq__item {
  border-top: 1px solid var(--line);
  padding: 24px 0;
}

.faq__item:last-child {
  border-bottom: 1px solid var(--line);
}

.faq__item dt {
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 10px;
  line-height: 1.4;
}

.faq__item dd {
  font-size: 15px;
  color: var(--sub);
  line-height: 1.65;
  margin: 0;
}
