/* EachStudent website — tokens mirror lib/core/theme (AppColors, AppSpacing). */
@font-face { font-family: "Outfit"; src: url("fonts/Outfit.ttf") format("truetype"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "DM Sans"; src: url("fonts/DMSans.ttf") format("truetype"); font-weight: 100 1000; font-display: swap; }

:root {
  --primary: #5B3DF5;
  --primary-dark: #4527C9;
  --primary-container: #E6DFFF;
  --highlight: #FFC933;
  --on-highlight: #1B1340;
  --paper: #FFF8EC;
  --surface: #FFFFFF;
  --border: #E7DEF5;
  --ink: #1B1340;
  --text: #1B1340;
  --text-2: #574F78;
  --on-ink-muted: #C4BCE6;
  --success: #136B3A; --success-c: #D3F7DF;
  --warning: #8A4300; --warning-c: #FFEBB8;
  --error: #B0124A; --error-c: #FFDCE6;
  --info: #14509E; --info-c: #D9ECFF;
  --violet: #DCD2FF; --pink: #FFCFE0; --mint: #BDF2DC; --butter: #FFE680;
  --peach: #FFD3B3; --sky: #BFE3FF; --lime: #D9F29A; --orchid: #F3C9F7;
  --r-card: 24px; --r-row: 18px; --r-sheet: 32px;
  --pop: 4px 4px 0 var(--ink);
  --soft: 0 4px 14px rgba(20, 42, 110, .07);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--paper); color: var(--text);
  font: 500 17px/1.6 "DM Sans", system-ui, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--primary); }
h1, h2, h3 { font-family: "Outfit", system-ui, sans-serif; line-height: 1.1; margin: 0; letter-spacing: -.01em; }
h1 { font-size: clamp(40px, 6vw, 68px); font-weight: 800; }
h2 { font-size: clamp(32px, 4.2vw, 48px); font-weight: 700; }
h3 { font-size: 20px; font-weight: 600; }
p { margin: 0; }
.num { font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
section { padding: 96px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font: 700 14px/1 "DM Sans", sans-serif; color: var(--text-2); text-transform: uppercase; letter-spacing: .08em;
}
.eyebrow::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--highlight); box-shadow: 0 0 0 2px var(--ink); }
.lead { font-size: 19px; color: var(--text-2); max-width: 620px; }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head p { margin-top: 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }
.center .lead { margin-left: auto; margin-right: auto; }
mark { background: linear-gradient(transparent 58%, var(--highlight) 58%); color: inherit; padding: 0 2px; }

/* buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 56px; padding: 0 28px; border-radius: 999px; border: 2px solid var(--ink);
  font: 800 16px/1 "DM Sans", sans-serif; text-decoration: none; cursor: pointer;
  transition: transform .11s ease, box-shadow .11s ease;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--highlight); color: var(--on-highlight); box-shadow: var(--pop); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 4px 4px 0 var(--highlight); }
.btn-ink:hover { box-shadow: 6px 6px 0 var(--highlight); }
.btn-ghost { background: var(--surface); color: var(--ink); box-shadow: var(--pop); }
.btn svg { width: 22px; height: 22px; flex: none; }
.btn small { display: block; font: 600 11px/1.2 "DM Sans", sans-serif; opacity: .8; }
.btn .stack { text-align: left; line-height: 1.15; }

/* header */
.site-header { position: sticky; top: 0; z-index: 20; background: rgba(255, 248, 236, .9); backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.site-header.scrolled { border-bottom-color: var(--border); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 76px; gap: 24px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font: 700 22px/1 "Outfit", sans-serif; }
.brand img { width: 40px; height: 40px; border-radius: 12px; border: 2px solid var(--ink); }
.nav-links { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--text-2); text-decoration: none; font-weight: 700; font-size: 15px; }
.nav-links a:hover { color: var(--ink); }
.nav .btn { min-height: 46px; padding: 0 20px; font-size: 15px; }

/* hero */
.hero { padding: 40px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 span { color: var(--primary); }
.hero .lead { margin-top: 24px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 36px; }
.hero-note { margin-top: 20px; font-size: 14px; color: var(--text-2); display: flex; gap: 18px; flex-wrap: wrap; }
.hero-note span::before { content: "✓"; color: var(--success); font-weight: 900; margin-right: 6px; }
.hero-art { position: relative; }
.hero-art > img { border-radius: 40px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.float {
  position: absolute; background: var(--surface); border: 2px solid var(--ink); border-radius: 20px;
  box-shadow: var(--pop); padding: 14px 16px; font-size: 14px;
}
.float-status { left: -34px; bottom: 64px; display: flex; gap: 12px; align-items: center; }
.float-trend { right: -24px; top: 40px; width: 190px; }
.float-trend .label { font-weight: 700; color: var(--text-2); font-size: 12px; }
.mini-bars { display: flex; align-items: flex-end; gap: 8px; height: 64px; margin-top: 8px; }
.mini-bars i { flex: 1; border-radius: 6px 6px 3px 3px; background: var(--primary-container); }
.mini-bars i:last-child { background: var(--primary); }
.mini-legend { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-2); font-weight: 700; margin-top: 4px; }

/* avatars, pills */
.avatar {
  width: 44px; height: 44px; border-radius: 14px; flex: none; display: grid; place-items: center;
  font: 600 15px/1 "Outfit", sans-serif; color: var(--ink);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px;
  font: 800 12px/1.2 "DM Sans", sans-serif; white-space: nowrap;
}
.pill.up { background: var(--success-c); color: var(--success); }
.pill.steady { background: var(--info-c); color: var(--info); }
.pill.down { background: var(--warning-c); color: var(--warning); }
.pill.alert { background: var(--error-c); color: var(--error); }

/* trust strip */
.strip { padding: 0 0 24px; }
.strip-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.strip-item {
  background: var(--surface); border-radius: var(--r-card); padding: 20px; box-shadow: var(--soft);
  display: flex; gap: 14px; align-items: center; font-weight: 700; font-size: 15px;
}
.sticker {
  width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; flex: none;
  border: 2px solid var(--ink); transform: rotate(-6deg);
}
.sticker svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* problem */
.problem { background: var(--ink); color: #fff; border-radius: 48px; margin: 0 16px; }
.problem .eyebrow { color: var(--on-ink-muted); }
.problem .lead { color: var(--on-ink-muted); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.seats { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; margin-top: 40px; max-width: 460px; }
.seats i { aspect-ratio: 1; border-radius: 10px; background: rgba(255, 255, 255, .14); }
.seats i.her { background: var(--highlight); box-shadow: 0 0 0 4px rgba(255, 201, 51, .35); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 10px rgba(255, 201, 51, 0); } }
.seat-caption { margin-top: 16px; font-size: 14px; color: var(--on-ink-muted); }

/* phone mockup */
.phone {
  width: 330px; max-width: 100%; margin: 0 auto; background: var(--ink); border-radius: 48px; padding: 12px;
  box-shadow: 10px 10px 0 var(--highlight);
}
.screen { background: var(--paper); border-radius: 38px; padding: 26px 18px 22px; color: var(--text); min-height: 560px; }
.screen-title { font: 700 24px/1.1 "Outfit", sans-serif; }
.screen-sub { font-size: 13px; color: var(--text-2); font-weight: 600; margin: 4px 0 16px; }
.row {
  background: var(--surface); border-radius: var(--r-row); padding: 12px; display: flex; gap: 12px; align-items: center;
  box-shadow: var(--soft); margin-bottom: 8px;
}
.row .who { flex: 1; min-width: 0; }
.row .name { font-weight: 700; font-size: 15px; }
.row .why { font-size: 12px; color: var(--text-2); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chips { display: flex; gap: 6px; margin-bottom: 14px; flex-wrap: wrap; }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--surface); font-size: 12px; font-weight: 700; }
.chip.on { background: var(--primary-container); border-color: transparent; color: var(--primary-dark); }

/* journey */
.journey-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
.step {
  background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-card); box-shadow: var(--pop);
  padding: 28px 24px; position: relative; counter-increment: step;
}
.step::before {
  content: counter(step); position: absolute; top: -18px; right: 20px; width: 40px; height: 40px; border-radius: 50%;
  background: var(--highlight); border: 2px solid var(--ink); display: grid; place-items: center; font: 700 18px/1 "Outfit", sans-serif;
}
.step .sticker { margin-bottom: 20px; }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--text-2); font-size: 15px; }

/* profile showcase */
.showcase-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.profile-head { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.profile-head .avatar { width: 56px; height: 56px; border-radius: 18px; font-size: 18px; }
.card { background: var(--surface); border-radius: 20px; padding: 14px; box-shadow: var(--soft); margin-bottom: 10px; }
.card-title { font: 600 13px/1 "Outfit", sans-serif; color: var(--text-2); margin-bottom: 10px; }
.term-bars { display: flex; align-items: flex-end; gap: 14px; height: 110px; padding: 0 6px; }
.term-bars div { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; }
.term-bars b { font-size: 12px; }
.term-bars i { width: 100%; border-radius: 8px 8px 4px 4px; background: var(--violet); }
.term-bars div:last-child i { background: var(--primary); }
.term-bars span { font-size: 11px; color: var(--text-2); font-weight: 700; }
.topic { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 700; padding: 6px 0; }
.goal { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; font-weight: 600; padding: 4px 0; }
.tick { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--ink); flex: none; margin-top: 1px; display: grid; place-items: center; font-size: 11px; font-weight: 900; }
.tick.done { background: var(--highlight); }
.checklist { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.checklist li { display: flex; gap: 16px; }
.checklist strong { display: block; font: 600 19px/1.3 "Outfit", sans-serif; margin-bottom: 2px; }
.checklist span { color: var(--text-2); font-size: 16px; }

/* features */
.features { background: var(--surface); border-radius: 48px; margin: 0 16px; }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { border-radius: var(--r-card); padding: 28px; }
.feature .sticker { margin-bottom: 18px; background: var(--surface); }
.feature h3 { margin-bottom: 8px; }
.feature p { font-size: 15px; color: var(--ink); opacity: .82; }

/* split sections with illustration */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split.flip > :first-child { order: 2; }
.art-frame img { border-radius: 40px; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink); }
.split .lead { margin-top: 20px; }

/* report preview */
.report {
  margin-top: 32px; background: var(--surface); border: 2px solid var(--ink); border-radius: var(--r-card);
  box-shadow: var(--pop); padding: 24px; max-width: 480px;
}
.report-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 12px; }
.report-top b { font: 700 18px/1.2 "Outfit", sans-serif; }
.report-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 14px; }
.report-cols h4 { margin: 0 0 6px; font: 600 13px/1 "Outfit", sans-serif; color: var(--text-2); }
.report-cols ul { margin: 0; padding-left: 18px; }
.share-row { display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap; }

/* privacy */
.privacy-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.privacy-card { background: var(--surface); border-radius: var(--r-card); padding: 24px; box-shadow: var(--soft); }
.privacy-card h3 { font-size: 18px; margin: 16px 0 6px; }
.privacy-card p { font-size: 15px; color: var(--text-2); }

/* faq */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border-radius: var(--r-row); box-shadow: var(--soft); margin-bottom: 12px; }
.faq summary {
  cursor: pointer; list-style: none; padding: 22px 24px; font: 600 18px/1.3 "Outfit", sans-serif;
  display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; color: var(--primary); transition: transform .22s cubic-bezier(.33, 1, .68, 1); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--text-2); }

/* final cta */
.cta-band {
  background: var(--primary); color: #fff; border-radius: 48px; padding: 72px 48px; text-align: center;
  position: relative; overflow: hidden; border: 3px solid var(--ink); box-shadow: 8px 8px 0 var(--ink);
}
.cta-band::before { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: var(--highlight); top: -110px; right: -60px; }
.cta-band::after { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; border: 6px dashed rgba(255, 255, 255, .35); bottom: -60px; left: 40px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band p { color: #E6DFFF; font-size: 19px; margin: 18px auto 32px; max-width: 560px; }
.cta-band .hero-cta { justify-content: center; margin-top: 0; }

/* footer */
footer { padding: 56px 0 40px; color: var(--text-2); font-size: 15px; }
.foot { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.foot nav { display: flex; gap: 24px; flex-wrap: wrap; }
.foot a { color: var(--text-2); text-decoration: none; font-weight: 700; }
.foot a:hover { color: var(--ink); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s cubic-bezier(.33, 1, .68, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .seats i.her { animation: none; }
  .btn { transition: none; }
}

:focus-visible { outline: 3px solid var(--primary); outline-offset: 3px; border-radius: 8px; }

/* responsive */
@media (max-width: 1020px) {
  .nav-links { display: none; }
  .hero-grid, .problem-grid, .showcase-grid, .split { grid-template-columns: 1fr; gap: 48px; }
  .split.flip > :first-child { order: 0; }
  .journey-grid, .privacy-grid { grid-template-columns: repeat(2, 1fr); row-gap: 32px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .strip-row { grid-template-columns: repeat(2, 1fr); }
  .hero-art { max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .wrap { padding: 0 16px; }
  section { padding: 64px 0; }
  .problem, .features { margin: 0 8px; border-radius: 32px; }
  .journey-grid, .privacy-grid, .feature-grid, .strip-row { grid-template-columns: 1fr; }
  .float-status { left: 8px; bottom: -28px; }
  .float-trend { right: 8px; top: -24px; width: 160px; }
  .float-trend .mini-bars { height: 44px; }
  .hero { padding-bottom: 80px; }
  .cta-band { padding: 56px 20px; border-radius: 32px; }
  .report-cols { grid-template-columns: 1fr; }
  .nav .btn { padding: 0 16px; }
  .hero-cta .btn { width: 100%; }
}
