@font-face {
  font-family: "Anton";
  src: url("fonts/anton.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Space Grotesk";
  src: url("fonts/space-grotesk.woff2") format("woff2");
  font-weight: 300 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --night: #0B0B0F;
  --paper: #F5F5F0;
  --muted: #CFCFC8;
  --muted-2: #B5B5AE;
  --accent: #FFE14D;
  --red: #FF4D3D;
  --line: #33333A;
  --line-2: #26262C;
  --display: "Anton", Impact, "Arial Narrow", sans-serif;
  --sans: "Space Grotesk", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --wrap: 1360px;
  --gutter: clamp(16px, 4vw, 32px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--night);
  color: var(--paper);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.55;
  overflow-wrap: break-word;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); }
@media (hover: hover) {
  a:hover { color: #FFFFFF; }
}
a:focus-visible, summary:focus-visible, button:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px var(--night), 0 0 0 6px var(--accent);
}

.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.display { font-family: var(--display); font-weight: 400; text-transform: uppercase; }
.hl { color: var(--accent); }

/* Header */
.site-header .wrap { padding-top: 18px; padding-bottom: 18px; display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 16px; }
.logo { font-family: var(--display); font-size: 34px; letter-spacing: 0.02em; text-transform: uppercase; color: var(--paper); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
.main-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 0 24px; font-weight: 500; }
.main-nav a { color: var(--paper); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; padding: 10px 0; }
.main-nav .nav-cta { background: var(--accent); color: var(--night); font-weight: 700; padding: 10px 22px; border-radius: 999px; touch-action: manipulation; }
@media (hover: hover) {
  .main-nav a:hover { color: var(--accent); }
  .main-nav .nav-cta:hover { background: #FFFFFF; color: var(--night); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; min-height: 52px; padding: 14px 30px; border-radius: 999px; font-weight: 700; text-decoration: none; touch-action: manipulation; transition: background-color .2s ease, color .2s ease; }
.btn-accent { background: var(--accent); color: var(--night); }
.btn-ghost { color: var(--paper); box-shadow: inset 0 0 0 2px var(--paper); }
@media (hover: hover) {
  .btn-accent:hover { background: #FFFFFF; color: var(--night); }
  .btn-ghost:hover { background: var(--paper); color: var(--night); }
}

/* Hero */
.hero .wrap { padding-top: 24px; padding-bottom: 80px; display: flex; flex-wrap: wrap; gap: 32px; align-items: stretch; }
.hero-copy { flex: 1.1 1 460px; min-width: 0; display: flex; flex-direction: column; justify-content: center; }
.badge { margin: 0 0 16px; align-self: flex-start; background: var(--red); color: var(--night); padding: 6px 14px; font-weight: 700; border-radius: 999px; font-size: 16px; }
.hero h1 { margin: 0; font-size: clamp(56px, 9vw, 148px); line-height: 0.92; }
.hero-lead { margin: 28px 0 32px; max-width: 28em; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 16px; }
.hero-media { flex: 1 1 420px; min-width: 0; position: relative; }
.hero-media img { width: 100%; height: clamp(380px, 46vw, 640px); object-fit: cover; border-radius: 32px; }
.sticker { position: absolute; right: 12px; bottom: 32px; margin: 0; background: var(--accent); color: var(--night); font-family: var(--display); font-size: clamp(24px, 3vw, 34px); text-transform: uppercase; padding: 10px 22px; transform: rotate(-6deg); }

/* Ticker */
.ticker { background: var(--accent); color: var(--night); padding: 18px 0; overflow: hidden; white-space: nowrap; font-family: var(--display); font-size: clamp(22px, 3vw, 32px); text-transform: uppercase; letter-spacing: 0.02em; margin: 0; }

/* Sections */
.section { padding-top: clamp(72px, 9vw, 112px); padding-bottom: clamp(72px, 9vw, 112px); }
.section-title { margin: 0; font-size: clamp(42px, 6vw, 88px); line-height: 0.95; }

/* Nerve-o-meter */
.nerve .intro { margin: 12px 0 40px; color: var(--muted); max-width: 34em; }
.levels { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 48px; }
.levels[hidden] { display: none; }
.level-btn { min-height: 52px; padding: 14px 28px; border-radius: 999px; border: 2px solid var(--paper); background: transparent; color: var(--paper); font: inherit; font-weight: 700; cursor: pointer; touch-action: manipulation; transition: background-color .2s ease, color .2s ease; }
.level-btn[aria-pressed="true"] { background: var(--paper); color: var(--night); }
.level { display: flex; flex-wrap: wrap; gap: 32px 48px; align-items: center; }
.level + .level { margin-top: 64px; }
.js .level + .level { margin-top: 0; }
.level[hidden] { display: none; }
.level img { flex: 1 1 420px; min-width: 0; width: 100%; height: clamp(260px, 32vw, 420px); object-fit: cover; border-radius: 24px; }
.level-copy { flex: 1 1 380px; min-width: 0; }
.level-copy .score { margin: 0; font-family: var(--display); font-size: clamp(80px, 10vw, 120px); line-height: 1; color: var(--accent); }
.level-copy h3 { margin: 8px 0 12px; font-size: clamp(32px, 4vw, 44px); line-height: 1; }
.level-copy p { margin: 0 0 20px; color: var(--muted); }
.level-copy .height { margin: 0; color: var(--paper); font-weight: 700; }

/* Coaster types */
.types { background: var(--paper); color: var(--night); }
.types .section-title { margin-bottom: 48px; }
.type-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 40px 32px; }
.type-grid img { width: 100%; aspect-ratio: 4 / 3; height: auto; object-fit: cover; border-radius: 20px; }
.type-grid h3 { margin: 18px 0 6px; font-size: 32px; line-height: 1.05; }
.type-grid p { margin: 0; }

/* Story */
.story .wrap { display: flex; flex-wrap: wrap; gap: 40px 64px; }
.story .section-title { flex: 1 1 360px; min-width: 0; font-size: clamp(42px, 5.6vw, 84px); }
.story-body { flex: 1.3 1 460px; min-width: 0; color: var(--muted); }
.story-body p { margin: 0 0 18px; }
.story-body .promise { margin: 0; color: var(--paper); font-weight: 700; font-size: 22px; }

/* Rules */
.rules { border-top: 2px solid var(--line-2); border-bottom: 2px solid var(--line-2); }
.rules .wrap { padding-top: 96px; padding-bottom: 96px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 40px; }
.rules .num { margin: 0; font-family: var(--display); font-size: 56px; line-height: 1.1; color: var(--accent); }
.rules h3 { margin: 4px 0 8px; font-size: 22px; }
.rules p:last-child { margin: 0; color: var(--muted); }

/* FAQ */
.faq { max-width: 880px; margin: 0 auto; padding: 96px var(--gutter) 112px; }
.faq .section-title { margin-bottom: 24px; font-size: clamp(40px, 5vw, 64px); }
.faq details { border-bottom: 1px solid var(--line); padding: 10px 0; }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 700; min-height: 44px; padding: 8px 0; }
.faq summary::-webkit-details-marker { display: none; }
.faq .arr { font-size: 13px; color: var(--accent); transition: transform .2s ease; flex: none; }
.faq details[open] .arr { transform: rotate(180deg); }
.faq details p { margin: 6px 0 14px; color: var(--muted); }

/* Inner pages */
.page-band { background: var(--paper); color: var(--night); }
.page-band a { color: var(--night); }
.page-band a:focus-visible { box-shadow: 0 0 0 3px var(--paper), 0 0 0 6px var(--night); }
.page { padding-top: 40px; padding-bottom: 96px; }
.back { display: inline-flex; align-items: center; min-height: 44px; margin-bottom: 16px; font-weight: 700; }
.legal { max-width: 860px; font-size: 17px; line-height: 1.7; }
.legal h1 { margin: 0 0 8px; font-size: clamp(40px, 6vw, 64px); line-height: 1; }
.legal h2 { font-size: 22px; margin: 36px 0 8px; }
.legal .updated { margin: 0 0 32px; color: #4A4A50; }
.table-wrap { margin: 28px 0; }
.legal table { width: 100%; max-width: 100%; border-collapse: collapse; font-size: 16px; }
.legal th { text-align: left; padding: 12px 12px 12px 0; border-bottom: 2px solid var(--night); }
.legal td { padding: 12px 12px 12px 0; border-bottom: 1px solid #D6D6CF; vertical-align: top; }
.legal td:first-child { font-weight: 700; }
@media (max-width: 560px) {
  .legal thead { display: none; }
  .legal tr { display: block; padding: 12px 0; border-bottom: 1px solid #D6D6CF; }
  .legal td { display: block; padding: 2px 0; border: 0; }
}

/* Footer */
.footer-top { padding-top: 64px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 40px 48px; justify-content: space-between; }
.footer-brand { flex: 1 1 320px; min-width: 0; }
.footer-brand .logo-text { margin: 0 0 10px; font-family: var(--display); font-size: 40px; text-transform: uppercase; }
.footer-brand p:last-child { margin: 0; color: var(--muted); max-width: 24em; }
.footer-nav { flex: 1 1 380px; min-width: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 32px; align-content: start; }
.footer-nav a { color: var(--paper); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; }
@media (hover: hover) {
  .footer-nav a:hover { color: var(--accent); }
}
.footer-bottom { padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); font-size: 14px; color: var(--muted-2); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; }

@media (max-width: 480px) {
  .footer-nav { grid-template-columns: minmax(0, 1fr); }
  .main-nav { gap: 0 16px; font-size: 16px; }
  .logo { font-size: 30px; }
}

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