:root {
  color-scheme: light;
  --ink: #171227;
  --muted: #665f76;
  --paper: #fbf9ff;
  --panel: #ffffff;
  --line: #e9e3f1;
  --purple: #6200b5;
  --purple-dark: #3d0075;
  --lilac: #eee3ff;
  --mint: #dff8ef;
  --shadow: 0 28px 80px rgba(50, 23, 82, .12);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 7%, rgba(181, 128, 255, .18), transparent 26rem),
    var(--paper);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header,
main,
footer {
  width: min(1180px, calc(100% - 40px));
  margin-inline: auto;
}
.site-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -.02em;
}
.brand img { border-radius: 12px; }
.safe-badge {
  padding: 9px 13px;
  border: 1px solid #ccebdd;
  border-radius: 999px;
  background: var(--mint);
  color: #205a46;
  font-size: .78rem;
  font-weight: 750;
}

.hero {
  min-height: 650px;
  display: grid;
  grid-template-columns: .88fr 1.12fr;
  align-items: center;
  gap: clamp(36px, 6vw, 86px);
  padding: 70px 0 100px;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--purple);
  font-size: .77rem;
  font-weight: 850;
  letter-spacing: .13em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  margin-bottom: 24px;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: .98;
  letter-spacing: -.065em;
  overflow-wrap: anywhere;
}
.lede {
  max-width: 610px;
  margin-bottom: 32px;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.7vw, 1.28rem);
  line-height: 1.65;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.button {
  display: inline-flex;
  min-height: 49px;
  align-items: center;
  justify-content: center;
  padding: 0 19px;
  border: 1px solid transparent;
  border-radius: 13px;
  text-decoration: none;
  font-weight: 800;
}
.button.primary { background: var(--purple); color: white; box-shadow: 0 12px 30px rgba(98, 0, 181, .2); }
.button.primary:hover { background: var(--purple-dark); }
.button.secondary { border-color: var(--line); background: rgba(255,255,255,.76); }
.privacy-note { margin: 17px 0 0; color: var(--muted); font-size: .82rem; }
.hero-visual {
  position: relative;
  margin: 0;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -4% -7% 10%;
  z-index: -1;
  border-radius: 40px;
  background: linear-gradient(145deg, #d7b9ff, #efe5ff 58%, #cceee3);
  filter: blur(2px);
  transform: rotate(2deg);
}
.hero-visual img,
.feature-card img {
  display: block;
  width: 100%;
  border: 1px solid rgba(83, 48, 111, .12);
  border-radius: 20px;
  background: white;
  box-shadow: var(--shadow);
}

.section { padding: 110px 0; border-top: 1px solid var(--line); }
.section-heading { max-width: 680px; margin-bottom: 42px; }
h2 { margin-bottom: 15px; font-size: clamp(2.15rem, 4vw, 3.8rem); line-height: 1.05; letter-spacing: -.045em; }
.section-heading > p:last-child, .handoff > p { color: var(--muted); line-height: 1.7; }
.flashcard-demo { max-width: 720px; margin-inline: auto; }
.flashcard {
  width: 100%;
  min-height: 330px;
  padding: clamp(32px, 7vw, 74px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 24px;
  border: 1px solid #ddcbed;
  border-radius: 28px;
  background: linear-gradient(145deg, white, #f7f0ff);
  color: var(--ink);
  box-shadow: var(--shadow);
  cursor: pointer;
  text-align: center;
}
.flashcard:focus-visible { outline: 4px solid rgba(98, 0, 181, .22); outline-offset: 4px; }
.flashcard.revealed { background: linear-gradient(145deg, #f1e7ff, #e0f8ef); }
.card-label { color: var(--purple); font-size: .75rem; font-weight: 850; letter-spacing: .13em; text-transform: uppercase; }
.flashcard strong { max-width: 590px; font-size: clamp(1.65rem, 4vw, 2.65rem); line-height: 1.25; letter-spacing: -.035em; }
.card-hint { color: var(--muted); font-size: .86rem; }
.card-controls { display: flex; justify-content: space-between; padding: 18px 8px 0; color: var(--muted); font-size: .9rem; }
.text-button { border: 0; background: transparent; color: var(--purple); font: inherit; font-weight: 850; cursor: pointer; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: var(--panel); }
.feature-card img { aspect-ratio: 16/10; border: 0; border-radius: 0; box-shadow: none; object-fit: cover; object-position: top; }
.feature-card > div { padding: 25px; }
.feature-card span { color: var(--purple); font-size: .75rem; font-weight: 900; }
.feature-card h3 { margin: 10px 0 9px; font-size: 1.35rem; }
.feature-card p { margin: 0; color: var(--muted); line-height: 1.55; }
.handoff { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; }
.handoff h2 { margin-bottom: 0; }
.handoff > p { margin-bottom: 5px; }
footer { min-height: 110px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: .85rem; }

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 50px; }
  .hero-copy { max-width: 720px; }
  .feature-grid { grid-template-columns: 1fr; }
  .feature-card { display: grid; grid-template-columns: .95fr 1.05fr; }
  .feature-card img { height: 100%; aspect-ratio: auto; }
  .handoff { grid-template-columns: 1fr; gap: 24px; }
}
@media (max-width: 600px) {
  .site-header, main, footer { width: min(calc(100% - 24px), 1180px); }
  .site-header { min-height: 0; padding: 14px 0 8px; flex-direction: column; align-items: flex-start; gap: 8px; }
  .safe-badge { display: inline-block; max-width: 100%; padding: 7px 9px; font-size: .7rem; text-align: center; }
  .hero { min-height: 0; padding: 56px 0 78px; }
  h1 { font-size: clamp(2.55rem, 12.5vw, 3.2rem); }
  .hero-actions { flex-direction: column; }
  .button { width: 100%; }
  .section { padding: 78px 0; }
  .flashcard { min-height: 290px; }
  .feature-card { display: block; }
  .feature-card img { aspect-ratio: 16/10; }
  footer { padding: 28px 0; flex-direction: column; align-items: flex-start; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
