:root {
  color-scheme: light;
  --ink: #16213a;
  --muted: #5b667c;
  --paper: #f6f8fc;
  --surface: #ffffff;
  --line: #e7ecf4;
  --blue: #2f7bf6;
  --blue-dark: #1d5fd1;
  --blue-soft: #e3eeff;
  --mint: #dff5ea;
  --mint-ink: #1b6b47;
  --warm: #fff3d6;
  --shadow: 0 24px 70px rgba(22, 33, 58, 0.12);
  font-family: Inter, "Hiragino Sans", "Yu Gothic", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-size: 16px;
  line-height: 1.75;
}
a { color: inherit; }
img { display: block; max-width: 100%; }
button, a { -webkit-tap-highlight-color: transparent; }

.site-header {
  position: sticky;
  z-index: 20;
  top: 0;
  border-bottom: 1px solid rgba(231, 236, 244, 0.9);
  background: rgba(246, 248, 252, 0.86);
  backdrop-filter: blur(18px);
}
.nav-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: 72px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 19px;
  font-weight: 800;
  letter-spacing: -0.03em;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a {
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}
.nav-links a:hover, .nav-links a:focus-visible { color: var(--blue-dark); }
.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
}

.hero {
  position: relative;
  overflow: hidden;
  padding: 92px 0 84px;
}
.hero::before {
  position: absolute;
  width: 620px;
  height: 620px;
  top: -340px;
  right: -160px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(47, 123, 246, 0.22), rgba(47, 123, 246, 0));
  content: "";
}
.hero-grid {
  position: relative;
  width: min(1120px, calc(100% - 40px));
  margin: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(330px, 0.75fr);
  align-items: center;
  gap: 72px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--blue-dark);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
h1, h2, h3, p { margin-top: 0; }
h1 {
  max-width: 720px;
  margin-bottom: 22px;
  font-size: clamp(42px, 6.2vw, 76px);
  line-height: 1.08;
  letter-spacing: -0.055em;
}
.hero-copy { max-width: 620px; color: var(--muted); font-size: 18px; }
.hero-actions { margin-top: 30px; display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.button {
  min-height: 48px;
  padding: 11px 20px;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  color: var(--ink);
  font-weight: 750;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease;
}
.button:hover, .button:focus-visible { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(22, 33, 58, 0.1); }
.button.primary { border-color: var(--blue); background: var(--blue); color: white; }
.release-note { color: var(--muted); font-size: 13px; }

.phone {
  width: min(360px, 100%);
  margin: auto;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 44px;
  background: #101827;
  box-shadow: var(--shadow);
  transform: rotate(2deg);
}
.phone-screen {
  min-height: 650px;
  padding: 30px 20px 18px;
  border-radius: 34px;
  background: var(--paper);
}
.phone-date { color: var(--muted); font-size: 12px; }
.phone-title { margin: 2px 0 20px; font-size: 24px; font-weight: 800; }
.next-class { padding: 17px; border-radius: 20px; background: var(--blue-soft); }
.card-kicker { color: var(--blue-dark); font-size: 12px; font-weight: 800; }
.class-line { margin-top: 10px; display: flex; align-items: center; gap: 12px; }
.period {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--blue);
  color: white;
  font-size: 13px;
  font-weight: 800;
}
.class-name { font-weight: 800; }
.class-meta { color: var(--muted); font-size: 11px; }
.mini-grid { margin-top: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.mini-card { padding: 14px; border-radius: 16px; background: var(--surface); }
.mini-label { color: var(--muted); font-size: 11px; }
.mini-value { display: block; margin-top: 3px; color: #b3261e; font-size: 25px; font-weight: 850; }
.phone-section-title { margin: 24px 0 8px; font-size: 14px; font-weight: 800; }
.task { margin-top: 8px; padding: 12px; border-radius: 14px; display: flex; gap: 10px; background: var(--surface); }
.task-dot { width: 9px; height: 9px; margin-top: 7px; border-radius: 50%; background: var(--blue); }
.task strong { display: block; font-size: 13px; }
.task span { color: var(--muted); font-size: 11px; }

.section { padding: 96px 0; }
.section.alt { background: var(--surface); }
.section-shell { width: min(1040px, calc(100% - 40px)); margin: auto; }
.section-heading { max-width: 700px; margin-bottom: 42px; }
.section-heading h2 { margin-bottom: 14px; font-size: clamp(30px, 4vw, 46px); line-height: 1.2; letter-spacing: -0.04em; }
.section-heading p { color: var(--muted); }
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-card { min-height: 220px; padding: 24px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.alt .feature-card { background: var(--paper); }
.feature-icon { width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue-dark); font-weight: 850; }
.feature-card h3 { margin: 34px 0 8px; font-size: 18px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 14px; }
.privacy-panel {
  padding: clamp(28px, 5vw, 56px);
  border-radius: 30px;
  display: grid;
  grid-template-columns: 1fr 0.75fr;
  align-items: center;
  gap: 54px;
  background: #14213a;
  color: white;
}
.privacy-panel p { color: #c4cede; }
.privacy-list { display: grid; gap: 12px; }
.privacy-item { padding: 16px; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; background: rgba(255,255,255,0.06); }
.privacy-item strong { display: block; }
.privacy-item span { color: #c4cede; font-size: 13px; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step { position: relative; padding-top: 62px; }
.step::before { counter-increment: step; content: "0" counter(step); position: absolute; top: 0; color: var(--blue); font-size: 36px; font-weight: 850; }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); }
.notice { padding: 20px; border-radius: 18px; background: var(--warm); }
.notice p:last-child { margin-bottom: 0; }

.legal-hero { padding: 72px 0 42px; }
.legal-shell { width: min(760px, calc(100% - 40px)); margin: auto; }
.legal-hero h1 { margin-bottom: 12px; font-size: clamp(36px, 7vw, 56px); }
.legal-meta { color: var(--muted); }
.legal-body { padding: 20px 0 100px; }
.legal-body section { margin-top: 42px; }
.legal-body h2 { font-size: 21px; letter-spacing: -0.02em; }
.legal-body h3 { font-size: 16px; }
.legal-body p, .legal-body li { color: #3f4b63; }
.legal-body li + li { margin-top: 8px; }
.contact-card { padding: clamp(24px, 6vw, 48px); border: 1px solid var(--line); border-radius: 26px; background: var(--surface); }

.site-footer { padding: 44px 0; border-top: 1px solid var(--line); }
.footer-shell { width: min(1120px, calc(100% - 40px)); margin: auto; display: flex; justify-content: space-between; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 13px; text-decoration: none; }
.copyright { color: var(--muted); font-size: 13px; }

:focus-visible { outline: 3px solid rgba(47, 123, 246, 0.45); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 820px) {
  .hero { padding-top: 64px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy-area { text-align: center; }
  .hero-copy { margin-inline: auto; }
  .hero-actions { justify-content: center; }
  .phone { transform: none; }
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .privacy-panel { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .nav-shell { width: min(100% - 28px, 1120px); }
  .menu-toggle { display: block; }
  .nav-links {
    position: absolute;
    top: 64px;
    right: 14px;
    width: min(270px, calc(100% - 28px));
    padding: 18px;
    border: 1px solid var(--line);
    border-radius: 16px;
    display: none;
    align-items: stretch;
    flex-direction: column;
    background: var(--surface);
    box-shadow: var(--shadow);
  }
  .nav-links[data-open] { display: flex; }
  .hero-grid, .section-shell, .legal-shell { width: min(100% - 28px, 1040px); }
  h1 { font-size: 43px; }
  .phone-screen { min-height: 590px; }
  .section { padding: 72px 0; }
  .footer-shell { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}
