/* ============ Tokens ============ */
:root {
  --blue-700: #1d4ed8;
  --blue-600: #2563eb;
  --blue-500: #3b82f6;
  --blue-50:  #eff5ff;
  --blue-100: #dbe8ff;

  --ink-900: #0f172a;
  --ink-700: #334155;
  --ink-500: #64748b;
  --line:    #e2e8f0;
  --surface: #ffffff;
  --surface-alt: #f7f9fc;

  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;

  --container: 1120px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 12px 32px rgba(15, 23, 42, .06);
}

/* ============ Base ============ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--ink-900);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
}

img, svg { max-width: 100%; display: block; }

h1, h2, h3 { margin: 0 0 .6em; line-height: 1.15; letter-spacing: -0.02em; font-weight: 700; }
h1 { font-size: clamp(2rem, 4.4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.2rem; }
p  { margin: 0 0 1em; color: var(--ink-700); }

a { color: var(--blue-700); }

ul { margin: 0; padding: 0; list-style: none; }

.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 20px;
}

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--blue-700);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius-sm) 0;
  z-index: 100;
}
.skip-link:focus { left: 0; }

:focus-visible {
  outline: 3px solid var(--blue-500);
  outline-offset: 2px;
  border-radius: 4px;
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  padding: 15px 26px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background-color .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.btn-primary {
  background: var(--blue-700);
  color: #fff;
}
.btn-primary:hover { background: var(--blue-600); }

.btn-outline {
  background: #fff;
  color: var(--blue-700);
  border-color: var(--blue-100);
}
.btn-outline:hover { border-color: var(--blue-700); background: var(--blue-50); }

.btn-ghost {
  background: transparent;
  color: var(--ink-900);
  border-color: var(--line);
}
.btn-ghost:hover { border-color: var(--blue-600); color: var(--blue-700); }

.btn-sm { padding: 11px 20px; font-size: .94rem; }
.btn-lg { padding: 17px 32px; font-size: 1.02rem; }
.btn-block { width: 100%; }

/* ============ Header ============ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink-900);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-right: auto;
}
.logo-mark {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: var(--blue-700);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1rem;
  font-weight: 700;
}
.logo-text { font-size: 1.12rem; }

.nav-list {
  display: flex;
  gap: 26px;
  font-size: .95rem;
}
.nav-list a {
  color: var(--ink-700);
  text-decoration: none;
  font-weight: 500;
}
.nav-list a:hover { color: var(--blue-700); }

/* ============ Hero ============ */
.hero {
  padding: clamp(40px, 7vw, 84px) 0 clamp(36px, 6vw, 72px);
  background:
    radial-gradient(900px 420px at 85% -10%, var(--blue-50), transparent 70%);
}

.hero-inner {
  display: grid;
  gap: clamp(32px, 5vw, 60px);
  grid-template-columns: 1.05fr .95fr;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-700);
  background: var(--blue-50);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0 0 18px;
}

.lead {
  font-size: 1.08rem;
  max-width: 56ch;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 30px;
}

.hero-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 36px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.hero-facts li { display: flex; flex-direction: column; }
.hero-facts strong { font-size: 1.3rem; letter-spacing: -0.02em; }
.hero-facts span { font-size: .88rem; color: var(--ink-500); }

/* ============ Media placeholders ============ */
.media {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-lg);
  background: linear-gradient(140deg, var(--blue-100) 0%, #f4f8ff 55%, #e7f0ff 100%);
  border: 1px solid var(--blue-100);
  box-shadow: var(--shadow);
}

.media-16x9 { aspect-ratio: 16 / 9; width: 100%; }
.media-4x3  { aspect-ratio: 4 / 3;  width: 100%; }

.media img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.media-shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(160deg, var(--blue-500), var(--blue-700));
  opacity: .16;
}
.media-shape-1 { width: 46%; aspect-ratio: 1; right: -8%; bottom: -22%; }
.media-shape-2 { width: 26%; aspect-ratio: 1; left: 8%; top: 12%; opacity: .22; }
.media-shape-3 { width: 42%; aspect-ratio: 1; left: -10%; bottom: -18%; }
.media-shape-4 { width: 24%; aspect-ratio: 1; right: 12%; top: 14%; opacity: .22; }

.media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--blue-700), var(--blue-500));
  opacity: .5;
}

.media-badge {
  position: absolute;
  left: 18px;
  bottom: 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, .94);
  border: 1px solid var(--blue-100);
  border-radius: 999px;
  padding: 8px 15px;
  font-size: .82rem;
  font-weight: 600;
  color: var(--ink-700);
}
.media-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue-600);
}

/* ============ Sections ============ */
.section { padding: clamp(52px, 8vw, 96px) 0; }
.section-alt { background: var(--surface-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin: 0 0 clamp(32px, 4vw, 48px); }
.section-sub { color: var(--ink-500); margin: 0; }

/* ============ Benefits ============ */
.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 26px;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.card:hover { border-color: var(--blue-100); box-shadow: var(--shadow); }
.card h3 { margin-bottom: .5em; }
.card p { margin: 0; }

.card-icon {
  display: inline-grid;
  place-items: center;
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border-radius: 12px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 700;
  font-size: .9rem;
  margin-bottom: 18px;
}

/* ============ Lessons ============ */
.lessons-inner {
  display: grid;
  grid-template-columns: .9fr 1.1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
}

.lessons-copy .btn { margin-top: 10px; }

.check-list { display: grid; gap: 12px; margin: 0 0 26px; }
.check-list li {
  position: relative;
  padding-left: 32px;
  color: var(--ink-700);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--blue-50);
  border: 1px solid var(--blue-100);
}
.check-list li::after {
  content: "";
  position: absolute;
  left: 6px;
  top: 11px;
  width: 6px;
  height: 10px;
  border-right: 2px solid var(--blue-700);
  border-bottom: 2px solid var(--blue-700);
  transform: rotate(45deg);
}

/* ============ Pricing ============ */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

.plan {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  position: relative;
}
.plan h3 { margin-bottom: .35em; }
.plan-desc { font-size: .95rem; color: var(--ink-500); min-height: 48px; }

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin: 6px 0 22px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.price-value { font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink-900); }
.price-period { color: var(--ink-500); font-size: .95rem; }

.plan-features { display: grid; gap: 12px; margin: 0 0 26px; }
.plan-features li {
  position: relative;
  padding-left: 26px;
  font-size: .95rem;
  color: var(--ink-700);
}
.plan-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 10px;
  height: 6px;
  border-left: 2px solid var(--blue-600);
  border-bottom: 2px solid var(--blue-600);
  transform: rotate(-45deg);
}

.plan-btn { margin-top: auto; width: 100%; }

.plan-featured {
  border-color: var(--blue-600);
  box-shadow: var(--shadow);
}
.plan-tag {
  position: absolute;
  top: -13px;
  left: 26px;
  margin: 0;
  background: var(--blue-700);
  color: #fff;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
}

/* ============ Lead form ============ */
.lead-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: start;
}

.lead-form {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: clamp(24px, 3vw, 34px);
  box-shadow: var(--shadow);
  display: grid;
  gap: 16px;
}

.field { display: grid; gap: 7px; }
.field label { font-size: .92rem; font-weight: 600; color: var(--ink-900); }
.req { color: var(--blue-700); }

.field input[type="text"],
.field select {
  font: inherit;
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  color: var(--ink-900);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.field input::placeholder { color: #9aa7b8; }
.field input:focus, .field select:focus {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 3px var(--blue-50);
  outline: none;
}

.field-check {
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
}
.field-check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--blue-700); }
.field-check label { font-size: .88rem; font-weight: 400; color: var(--ink-700); }
.field-check .error { grid-column: 2; }

.error { margin: 0; font-size: .85rem; color: #b91c1c; }

.field.has-error input[type="text"],
.field.has-error select { border-color: #dc2626; }
.field.has-error input:focus { box-shadow: 0 0 0 3px #fee2e2; }

.form-note { margin: 0; font-size: .92rem; min-height: 1.2em; }
.form-note.is-success { color: #15803d; font-weight: 600; }
.form-note.is-error { color: #b91c1c; font-weight: 600; }

/* ============ Footer ============ */
.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 30px 0;
}
.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
}
.footer-brand { margin: 0; color: #e2e8f0; font-weight: 600; }
.footer-brand strong { color: #fff; }
.footer-meta { margin: 0; font-size: .9rem; color: #94a3b8; }
.footer-meta a { color: #bfdbfe; text-decoration: none; }
.footer-meta a:hover { text-decoration: underline; }

/* ============ Responsive ============ */
@media (max-width: 960px) {
  .hero-inner,
  .lessons-inner,
  .lead-inner { grid-template-columns: 1fr; }

  .lessons-media { order: -1; }
  .benefits-grid { grid-template-columns: 1fr 1fr; }
  .benefits-grid .card:last-child { grid-column: 1 / -1; }
  .pricing-grid { grid-template-columns: 1fr 1fr; }
  .plan-featured { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .nav { display: none; }
  .header-cta { padding: 10px 18px; }
}

@media (max-width: 640px) {
  body { font-size: 16px; }
  .benefits-grid,
  .pricing-grid { grid-template-columns: 1fr; }
  .benefits-grid .card:last-child,
  .plan-featured { grid-column: auto; }
  .hero-actions .btn { width: 100%; }
  .btn-lg { padding: 15px 22px; }
  .hero-facts { gap: 12px 24px; }
}

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