/* Landing page (/). Tokens, reset and brand come from base.css. */

.wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 50;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--accent);
  color: var(--accent-text);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 76px; }

h1, h2, h3 { letter-spacing: -.02em; }

/* ---- buttons (links styled as buttons) ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 650;
  text-decoration: none;
  border-radius: 12px;
  border: 1px solid transparent;
  padding: 10px 18px;
  transition: background .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-sm { padding: 8px 14px; font-size: 14px; border-radius: 10px; }
.btn-lg { padding: 14px 24px; font-size: 16px; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--accent) 30%, transparent);
}
.btn-primary:hover { background: var(--accent-hover); }

.btn-secondary {
  background: var(--surface);
  border-color: var(--border);
  color: var(--text);
}
.btn-secondary:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--border)); }

.btn-light { background: #fff; color: #312e81; }
.btn-light:hover { background: #eef0ff; }

.count {
  min-width: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: var(--bad);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
}

/* ---- header ---- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.header-inner { display: flex; align-items: center; gap: 14px; height: 62px; }
/* If a language's labels are long, the section links give way, never the
   sign-in button. */
.site-nav { display: flex; gap: 2px; margin-left: auto; min-width: 0; overflow: hidden; }
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-weight: 550;
  font-size: 14px;
  padding: 7px 8px;
  border-radius: 8px;
  white-space: nowrap;
}
.site-nav a:hover { color: var(--text); background: var(--surface-2); }
.header-signin {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  font-size: 14px;
  white-space: nowrap;
}
.header-signin:hover { color: var(--text); }
.header-cta { white-space: nowrap; }

/* ---- hero ---- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 0 88px;
  background:
    radial-gradient(55% 65% at 85% 15%, color-mix(in srgb, var(--accent) 22%, transparent), transparent 70%),
    radial-gradient(40% 45% at 5% 55%, color-mix(in srgb, var(--good) 10%, transparent), transparent 70%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: clamp(44px, 7vw, 76px);
  line-height: 1.02;
  margin: 0 0 20px;
  letter-spacing: -.04em;
}
.hero h1 .accent {
  background: linear-gradient(100deg, var(--accent), color-mix(in srgb, var(--accent) 55%, var(--good)));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-lead { font-size: 19px; color: var(--muted); max-width: 34em; margin: 0 0 30px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin: 16px 0 0; color: var(--muted); font-size: 14px; }
.pool-status { margin: 18px 0 0; color: var(--muted); font-size: 14px; }
.pool-status strong { color: var(--text); }

/* demo card */

.hero-visual { position: relative; padding: 24px 0; }
.demo-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 24px;
  box-shadow: 0 24px 60px color-mix(in srgb, var(--accent) 18%, transparent), var(--shadow);
  transform: rotate(-1.5deg);
  animation: float-in .7s ease-out both;
}
.demo-meta { display: flex; gap: 6px; align-items: center; margin-bottom: 14px; flex-wrap: wrap; }
.chip {
  font-size: 12px;
  font-weight: 650;
  padding: 2px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--muted);
}
.demo-tag { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 600; }
.demo-prompt { font-size: 18px; font-weight: 650; line-height: 1.45; margin: 0 0 16px; }
.demo-options { display: grid; gap: 8px; }
.demo-option {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-weight: 550;
}
.demo-option kbd {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--surface-2);
  font: 600 12px var(--font);
  color: var(--muted);
}
.demo-option.is-correct { border-color: var(--good); background: var(--good-soft); }
.demo-feedback {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 12px;
  align-items: center;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--good-soft);
  font-size: 14px;
}
.demo-feedback strong { color: var(--good); }
.demo-next { flex-basis: 100%; color: var(--muted); }

.demo-float {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 14px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
  animation: float-in .7s ease-out both;
}
.demo-float-a { top: -2px; right: -8px; animation-delay: .25s; }
.demo-float-b { bottom: -4px; left: -16px; animation-delay: .4s; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot-due { background: var(--bad); }
.dot-good { background: var(--good); }

@keyframes float-in {
  from { opacity: 0; translate: 0 12px; }
  to { opacity: 1; translate: 0 0; }
}

/* ---- sections ---- */

.section { padding: 88px 0; }
.section-alt { background: var(--surface); border-block: 1px solid var(--border); }
.section h2 { font-size: clamp(28px, 4vw, 40px); line-height: 1.12; margin: 0 0 14px; }
.section-lead { color: var(--muted); font-size: 17px; max-width: 40em; margin: 0 0 36px; }

/* learning loop */

.loop {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
}
.loop-step {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 22px;
  box-shadow: var(--shadow);
}
.loop-step:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 44px;
  right: -15px;
  width: 12px;
  height: 12px;
  border-top: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  transform: rotate(45deg);
  opacity: .6;
}
.loop-step:last-child {
  background: linear-gradient(160deg, var(--accent-soft), var(--surface) 70%);
  border-color: color-mix(in srgb, var(--accent) 40%, var(--border));
}
.step-num {
  position: absolute;
  top: 18px;
  right: 20px;
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: color-mix(in srgb, var(--accent) 16%, transparent);
}
.step-icon, .feature svg {
  width: 40px;
  height: 40px;
  padding: 9px;
  border-radius: 12px;
  background: var(--accent-soft);
  stroke: var(--accent);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}
.loop-step h3, .feature h3 { font-size: 18px; margin: 0 0 8px; }
.loop-step p, .feature p { color: var(--muted); margin: 0; }

/* scheduling */

.split {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 56px;
  align-items: center;
}
.points { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.points li {
  padding-left: 28px;
  position: relative;
  color: var(--muted);
}
.points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 4px var(--accent);
}
.points strong { color: var(--text); }

.chart-card {
  margin: 0;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 18px 14px;
}
.curve { width: 100%; height: auto; display: block; }
.curve .grid line { stroke: var(--border); stroke-width: 1; }
.curve .axis-labels text { fill: var(--muted); font: 500 12px var(--font); }
.curve .target { stroke: var(--good); stroke-width: 1.5; stroke-dasharray: 5 5; }
.curve .target-label { fill: var(--good); font: 700 12px var(--font); }
.curve .no-review { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 3 5; opacity: .7; }
.curve .with-review {
  fill: none;
  stroke: var(--accent);
  stroke-width: 3;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: draw 2.2s ease-out .3s forwards;
}
.curve .review-marks circle { fill: var(--surface); stroke: var(--accent); stroke-width: 2.5; }
@keyframes draw { to { stroke-dashoffset: 0; } }

.chart-card figcaption {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  margin-top: 10px;
  font-size: 13px;
  color: var(--muted);
}
.key { display: inline-block; width: 18px; height: 0; margin-right: 7px; vertical-align: middle; border-top: 3px solid var(--accent); }
.key-none { border-top: 2px dashed var(--muted); }

/* features */

.features {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.feature {
  padding: 24px 22px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: var(--surface);
  transition: border-color .2s, transform .2s;
}
.feature:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); transform: translateY(-2px); }

/* getting started */

.start-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 22px;
}
.start-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; }
.start-steps li { display: flex; gap: 14px; align-items: flex-start; }
.start-steps h3 { font-size: 17px; margin: 0 0 4px; }
.start-steps p { margin: 0; color: var(--muted); }
.start-num {
  flex: none;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 800;
}
.start-btn { justify-self: start; }

/* final CTA */

.cta-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
  padding: 44px 48px;
  border-radius: 24px;
  color: #fff;
  background:
    radial-gradient(80% 120% at 100% 0%, rgba(255, 255, 255, .18), transparent 60%),
    linear-gradient(120deg, #4338ca, #6d28d9);
}
.cta-band h2 { color: #fff; margin: 0 0 6px; }
.cta-band p { margin: 0; color: rgba(255, 255, 255, .85); font-size: 17px; }
.cta-band-action { display: grid; justify-items: center; gap: 10px; }
.cta-band .cta-note { font-size: 13px; color: rgba(255, 255, 255, .8); }

/* footer */

.site-footer { border-top: 1px solid var(--border); padding: 28px 0 40px; color: var(--muted); font-size: 14px; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-inner > span { display: inline-flex; align-items: center; gap: 8px; }
.footer-inner nav { display: flex; gap: 16px; }
.footer-inner nav a { color: var(--muted); text-decoration: none; font-weight: 550; }
.footer-inner nav a:hover { color: var(--text); }
.brand-mark-sm { width: 22px; height: 22px; font-size: 12px; border-radius: 6px; }

/* ---- responsive ---- */

@media (max-width: 960px) {
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .hero { padding: 48px 0 64px; }
  .hero-visual { max-width: 520px; }
  .loop { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .loop-step:not(:last-child)::after { display: none; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .site-nav { display: none; }
  /* With the nav hidden, the language picker takes its place on the right. */
  #lang-slot { margin-left: auto; }
}

@media (max-width: 600px) {
  .wrap { padding: 0 16px; }
  .section { padding: 60px 0; }
  .hero-lead { font-size: 17px; }
  .cta-row .btn { flex: 1 1 100%; }
  .loop, .features { grid-template-columns: 1fr; }
  .demo-card { transform: none; padding: 18px; }
  .demo-float-a { right: 0; }
  .demo-float-b { left: 0; }
  .cta-band { padding: 30px 24px; }
  .cta-band .btn { width: 100%; }
  .cta-band-action { width: 100%; }
  .start-btn { justify-self: stretch; }
  /* The chart scales down ~50% on phones; keep its labels readable. */
  .curve .axis-labels text, .curve .target-label { font-size: 20px; }
  .chart-card { padding: 14px 10px 10px; }
}

/* Narrow screens: the sign-in link goes first (the button signs in too),
   then on phones the header button (the hero's identical one is right
   below), so the longest label (French) never overflows. */
@media (max-width: 760px) {
  .header-signin { display: none; }
}
@media (max-width: 600px) {
  .header-cta { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .curve .with-review { stroke-dashoffset: 0; animation: none; }
  .btn:hover, .feature:hover { transform: none; }
}

/* The motto is the brand line: keep its own casing. */
.eyebrow.motto-line { text-transform: none; letter-spacing: .01em; font-size: 17px; }
