@font-face {
  font-family: "Bricolage";
  src: url("fonts/bricolage.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-stretch: 75% 100%;
  font-display: swap;
}

:root {
  --paper: #f4f6fa;
  --card: #ffffff;
  --ink: #101c30;
  --slate: #52617a;
  --rule: #d9e0ea;
  --mark: #ffd84d;
  --panel: #0b1830;
  --panel-ink: #e8edf5;
  --panel-muted: #9aa8bf;
  --amber: #f5a30b;
  --focus: #2f6fed;
  --radius-lg: 18px;
  --radius-sm: 8px;
  --wrap: 1120px;
}

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

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 1.125rem;
  line-height: 1.55;
  font-variation-settings: "opsz" 14;
}

img { max-width: 100%; height: auto; display: block; }

a { color: inherit; }

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

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

.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: var(--card); padding: 8px 12px; z-index: 10; }

/* Header */
.site-head { padding: 20px 0; }
.site-head .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-stretch: 90%; font-size: 1.05rem; }
.brand img { width: 36px; height: 36px; border-radius: 9px; }
.site-nav { display: flex; align-items: center; gap: 28px; font-size: 1rem; }
.site-nav a:not(.btn) { text-decoration: none; color: var(--slate); }
.site-nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font: inherit; font-weight: 650; font-size: 1rem; text-decoration: none; cursor: pointer;
  border: 2px solid var(--ink); transition: background-color .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #22324d; border-color: #22324d; }
.btn-secondary { background: transparent; color: var(--ink); }
.btn-secondary:hover { background: var(--card); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .95rem; }

/* Hero */
.hero { padding: 48px 0 88px; }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.hero h1 {
  font-size: clamp(2.6rem, 5.4vw, 4.4rem);
  line-height: 1.02; letter-spacing: -0.015em;
  font-weight: 800; font-stretch: 80%;
  font-variation-settings: "opsz" 96;
  margin: 0 0 24px; max-width: 13ch;
}
.lede { font-size: 1.25rem; color: var(--slate); max-width: 34rem; margin: 0 0 32px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 16px; }
.price-note { font-size: .98rem; color: var(--slate); margin: 0; }

/* STAR answer sheet */
.sheet-wrap { position: relative; padding-bottom: 40px; }
.sheet {
  margin: 0;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg);
  padding: 28px 28px 76px; box-shadow: 0 1px 0 var(--rule), 0 24px 48px -32px rgba(16, 28, 48, .35);
}
.sheet-principle { font-size: .95rem; color: var(--slate); margin: 0 0 6px; }
.sheet-q { font-weight: 700; font-stretch: 90%; font-size: 1.3rem; line-height: 1.3; margin: 0 0 20px; font-variation-settings: "opsz" 32; }
.star { list-style: none; margin: 0; padding: 0; }
.star li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--rule); font-size: 1.02rem; line-height: 1.5; }
.star b { font-weight: 800; font-stretch: 75%; font-size: 1.6rem; line-height: 1; font-variation-settings: "opsz" 96; padding-top: 2px; }
.star abbr { text-decoration: none; }
.mark {
  background-image: linear-gradient(transparent 12%, var(--mark) 12%, var(--mark) 88%, transparent 88%);
  background-repeat: no-repeat; background-size: 100% 100%;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 2px; animation: sweep 900ms 500ms cubic-bezier(.3,.7,.2,1) both;
}
@keyframes sweep { from { background-size: 0% 100%; } to { background-size: 100% 100%; } }

.coach {
  position: absolute; right: -16px; bottom: 0; width: min(330px, 88%);
  background: var(--panel); color: var(--panel-ink);
  border-radius: 14px; padding: 16px 18px; font-size: .98rem; line-height: 1.45;
  box-shadow: 0 18px 40px -20px rgba(11, 24, 48, .6);
}
.coach-who { display: flex; align-items: center; gap: 8px; font-weight: 650; color: var(--amber); margin: 0 0 6px; font-size: .95rem; }
.coach-who svg { flex: none; }
.coach p { margin: 0; }

/* Sections */
section { scroll-margin-top: 16px; }
.section { padding: 88px 0; border-top: 1px solid var(--rule); }
.section h2, .screens h2, .closing h2 {
  font-size: clamp(1.9rem, 3.4vw, 2.6rem); line-height: 1.1; letter-spacing: -0.01em;
  font-weight: 760; font-stretch: 85%; font-variation-settings: "opsz" 72;
  margin: 0 0 16px; max-width: 22ch;
}
.section-intro { color: var(--slate); max-width: 40rem; margin: 0 0 48px; }

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px; counter-reset: step; }
.steps li { counter-increment: step; border-top: 3px solid var(--ink); padding-top: 18px; }
.steps li::before { content: counter(step); display: block; font-weight: 800; font-stretch: 75%; font-size: 2.2rem; line-height: 1; margin-bottom: 12px; font-variation-settings: "opsz" 96; }
.steps h3 { font-size: 1.2rem; font-weight: 700; margin: 0 0 8px; line-height: 1.25; }
.steps p { margin: 0; color: var(--slate); font-size: 1.02rem; }

/* Screens */
.screens { background: var(--panel); color: var(--panel-ink); padding: 88px 0 72px; }
.screens h2 { color: #fff; }
.screens .section-intro { color: var(--panel-muted); }
.shots {
  --edge: max(24px, calc((100vw - var(--wrap)) / 2 + 24px));
  display: grid; grid-auto-flow: column; grid-auto-columns: 240px; gap: 24px;
  overflow-x: auto; margin: 0; padding: 4px var(--edge) 24px; scroll-padding-inline: var(--edge);
  scroll-snap-type: x mandatory; list-style: none;
}
.shots li { scroll-snap-align: start; margin: 0; }
.shots img { border-radius: 22px; border: 1px solid rgba(255,255,255,.12); width: 100%; aspect-ratio: 560 / 1137; object-fit: cover; background: #0f1d38; }
.shots p { margin: 14px 2px 0; font-size: 1rem; color: var(--panel-ink); }

/* Compare */
.compare { width: 100%; max-width: 760px; border-collapse: collapse; font-size: 1.05rem; background: var(--card); border: 1px solid var(--rule); border-radius: var(--radius-lg); overflow: hidden; }
.compare th, .compare td { text-align: left; padding: 16px 20px; border-bottom: 1px solid var(--rule); vertical-align: top; }
.compare thead th { font-weight: 700; font-size: 1.1rem; background: var(--paper); }
.compare thead th:last-child { background: var(--ink); color: #fff; }
.compare tbody th { font-weight: 500; color: var(--slate); width: 40%; }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare .price { font-weight: 750; font-size: 1.25rem; }
.no { color: #8a96aa; }
.table-note { color: var(--slate); max-width: 40rem; margin: 20px 0 0; font-size: 1rem; }

/* Platforms */
.platforms { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.platforms li { background: var(--card); border: 1px solid var(--rule); border-radius: 12px; padding: 20px; }
.platforms h3 { margin: 0 0 6px; font-size: 1.15rem; }
.platforms p { margin: 0; color: var(--slate); font-size: 1rem; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { border-top: 1px solid var(--rule); padding: 4px 0; }
.faq details:last-child { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; font-weight: 650; font-size: 1.15rem; padding: 18px 32px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 14px; font-size: 1.6rem; font-weight: 400; color: var(--slate); }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 20px; color: var(--slate); max-width: 40rem; }

/* Closing call */
.closing { padding: 88px 0; border-top: 1px solid var(--rule); }
.closing h2 { margin-bottom: 24px; max-width: 20ch; }

/* Footer */
.site-foot { border-top: 1px solid var(--rule); padding: 40px 0 56px; font-size: .98rem; color: var(--slate); }
.site-foot .wrap { display: grid; gap: 16px; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 24px; }
.foot-links a { color: var(--ink); }
.site-foot p { margin: 0; max-width: 46rem; }

/* Legal pages */
.doc { max-width: 720px; padding: 32px 24px 88px; margin: 0 auto; }
.doc h1 { font-size: clamp(2.2rem, 4.5vw, 3.2rem); font-weight: 800; font-stretch: 82%; line-height: 1.05; margin: 16px 0 12px; font-variation-settings: "opsz" 96; }
.doc .updated { color: var(--slate); margin: 0 0 40px; }
.doc h2 { font-size: 1.35rem; font-weight: 720; margin: 40px 0 10px; line-height: 1.25; }
.doc p, .doc li { color: #2a3850; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 6px; }

/* Responsive */
@media (max-width: 960px) {
  .site-nav { gap: 20px; }
  .site-nav a:not(.btn) { white-space: nowrap; }
  .hero .wrap { grid-template-columns: 1fr; gap: 48px; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .platforms { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .site-nav a:not(.btn) { display: none; }
}
@media (max-width: 640px) {
  body { font-size: 1.0625rem; }
  .wrap { padding: 0 16px; }
  .site-nav a:not(.btn) { display: none; }
  .brand { font-size: .98rem; line-height: 1.25; }
  .actions .btn { white-space: normal; text-align: center; }
  .hero { padding: 24px 0 64px; }
  .lede { font-size: 1.125rem; }
  .actions .btn { flex: 1 1 100%; }
  .sheet { padding: 22px 18px 14px; }
  .sheet-wrap { padding-bottom: 0; }
  .coach { position: relative; right: auto; bottom: auto; width: auto; margin: -8px 12px 0; }
  .section, .closing, .screens { padding: 64px 0; }
  .steps, .platforms { grid-template-columns: 1fr; }
  .shots { --edge: 16px; grid-auto-columns: 70%; gap: 16px; }
  .compare th, .compare td { padding: 14px 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .mark { animation: none; }
  .btn { transition: none; }
}

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
