/* Students landing page (students.html) — same rules as index.css.
   Tokens and components come from shared/site.css. */

/* Marketing background canvas — subtle, behind content; hidden entirely
   under prefers-reduced-motion (see shared/site.css). */
#bg-canvas {
  position: fixed;
  top: 0; left: 0;
  width: 100vw; height: 100vh;
  z-index: 0;
  pointer-events: none;
}

main { position: relative; z-index: 1; }

/* ── Stats strip ──────────────────────────────────────────────────── */

.stats-strip {
  border-bottom: 1px solid var(--border);
  background: var(--surface);
}

.stats-strip .wrap {
  display: flex;
  justify-content: space-between;
  gap: var(--sp-16);
  flex-wrap: wrap;
  padding-top: var(--sp-12);
  padding-bottom: var(--sp-12);
}

.stat { display: flex; align-items: baseline; gap: var(--sp-8); }
.stat strong { font-family: var(--font-mono); font-size: 1.1rem; color: var(--text); }
.stat span { font-size: 12px; color: var(--text-muted); }

/* ── Hero ─────────────────────────────────────────────────────────── */

.hero { padding: var(--sp-64) 0; }

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1px 1.3fr;
  gap: 0 var(--sp-48);
  align-items: start;
}

.hero-divider {
  background: var(--border);
  width: 1px;
  height: 100%;
  min-height: 420px;
}

.hero-text h1 {
  font-size: clamp(32px, 3.4vw, var(--fs-display));
  line-height: 1.15;
  margin-bottom: var(--sp-16);
}

.lede {
  font-size: 17px;
  line-height: 28px;
  color: var(--text-muted);
  margin-bottom: var(--sp-24);
  max-width: 560px;
}

.hero-actions {
  display: flex;
  gap: var(--sp-12);
  flex-wrap: wrap;
}

/* ── Preview (right column) ───────────────────────────────────────── */

.page-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  margin-bottom: var(--sp-12);
  width: fit-content;
  max-width: 100%;
}

.page-pill {
  background: transparent;
  border: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: var(--fs-small);
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}

.page-pill:hover { color: var(--text); }

.page-pill.active {
  background: var(--surface-2);
  color: var(--text);
  box-shadow: inset 0 -2px 0 var(--accent);
}

.preview-frame {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.preview-browser {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
  background: var(--surface-2);
}

.preview-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }

.preview-url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-muted);
  margin-left: var(--sp-8);
}

#preview-img { width: 100%; height: auto; display: none; }

.preview-placeholder {
  min-height: 340px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--sp-8);
  padding: var(--sp-32);
}

.ph-icon { color: var(--text-muted); line-height: 0; }
.ph-icon .ui-icon { width: 28px; height: 28px; }
.ph-label { font-family: var(--font-display); font-size: 1.1rem; color: var(--text); }
.ph-hint { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }

/* ── Rigor section — two-column feature rows, not an icon-card grid ── */

.rigor {
  padding: var(--sp-64) 0;
  border-top: 1px solid var(--border);
  background: var(--surface);
}

.rigor-title {
  font-size: clamp(26px, 2.6vw, var(--fs-h1));
  line-height: 1.2;
  margin-bottom: var(--sp-32);
  max-width: 720px;
}

.rigor-title span { color: inherit; }

.rigor-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-32) var(--sp-48);
}

.rigor-card {
  display: grid;
  grid-template-columns: 24px 1fr;
  column-gap: var(--sp-16);
  align-items: start;
  padding-top: var(--sp-24);
  border-top: 1px solid var(--border);
}

.rigor-icon {
  grid-row: span 2;
  color: var(--text);
  line-height: 0;
  padding-top: 2px;
}
.rigor-icon .ui-icon { width: 24px; height: 24px; }

.rigor-card h3 {
  font-size: var(--fs-h3);
  line-height: var(--lh-h3);
  margin-bottom: var(--sp-4);
}

.rigor-card p {
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--text-muted);
  max-width: 460px;
}

@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--sp-32);
  }
  .hero-divider { display: none; }
  .hero { padding: var(--sp-32) 0 var(--sp-48); }
}

@media (max-width: 700px) {
  .rigor-grid { grid-template-columns: 1fr; gap: var(--sp-24); }
  .rigor { padding: var(--sp-48) 0; }
  .stats-strip .wrap { justify-content: flex-start; }
}

/* ── How revision works (students page) ─────────────────────────────── */
.how-it-works { padding: 64px 0; border-top: 1px solid var(--border); }
.how-it-works h2 { font-size: clamp(26px, 2.6vw, var(--fs-h1)); margin-bottom: var(--sp-32); }
.hiw-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-24); }
.hiw-step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.hiw-num {
  font-family: var(--font-mono); font-size: 13px; font-weight: 600;
  width: 34px; height: 34px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
}
.hiw-step h3 { font-size: 17px; }
.hiw-step p { font-size: 14px; line-height: 22px; color: var(--text-muted); }

/* ── Coming soon — BIG cards (mirrors index.css) ────────────────────── */
.coming-soon { padding: 72px 0; border-top: 1px solid var(--border); background: var(--surface); }
.cs-head { max-width: 640px; margin-bottom: var(--sp-32); }
.cs-head h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; margin: 0 0 12px; }
.cs-head p { color: var(--text-muted); font-size: 16px; line-height: 26px; margin: 0; }
.cs-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-24); }
.cs-card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 12px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.cs-card:hover { transform: translateY(-4px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.cs-card-icon {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  color: var(--accent-text);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
}
.cs-card h3 { font-size: 20px; margin: 4px 0 0; }
.cs-card p { color: var(--text-muted); font-size: 14px; line-height: 22px; margin: 0; flex: 1; }
.cs-soon-tag {
  align-self: flex-start;
  font-family: var(--font-mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent-text);
  border: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  padding: 5px 12px; border-radius: 100px;
}

/* ── FAQ teaser ─────────────────────────────────────────────────────── */
.faq-teaser { padding: 72px 0; border-top: 1px solid var(--border); }
.faq-teaser h2 { font-size: clamp(26px, 2.6vw, var(--fs-h1)); margin-bottom: var(--sp-32); }
.faq-teaser-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-24); }
.faq-teaser-item {
  display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}
.faq-teaser-item:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.faq-teaser-item h3 { font-size: 17px; color: var(--text); }
.faq-teaser-item p { font-size: 14px; line-height: 22px; color: var(--text-muted); margin: 0; flex: 1; }
.faq-more { color: var(--accent-text); font-weight: 600; font-size: 13px; }
.faq-teaser-more { margin-top: var(--sp-24); text-align: center; }
.faq-teaser-more .btn { width: auto; }

@media (max-width: 900px) {
  .hiw-grid, .cs-cards, .faq-teaser-grid { grid-template-columns: 1fr; }
  .coming-soon, .faq-teaser, .how-it-works { padding: 56px 0; }
}
