/* ============================================================
   OzSlope — Pre-Launch page layer
   Everything specific to this page lives here. The design-system
   files under css/tokens/ stay byte-faithful so they can be
   re-synced from the Claude Design project without losing work.
   Loads after styles.css, so it may override component defaults.
   ============================================================ */

/* --- Shared primitives ------------------------------------- */

.section { padding: clamp(72px, 10vw, 110px) 0; }
.section--flush { padding: 0; }
.section--sunken { background: var(--surface-sunken); }
.section--dark { background: var(--oz-ink); color: var(--oz-paper); }
.section--dark .lead { color: var(--oz-graphite-200); }
.section--dark p { color: var(--oz-graphite-300); }
.section--dark .eyebrow { color: var(--oz-green); }
.section--dark h2, .section--dark h3 { color: var(--oz-paper); }

/* Two-up / three-up grids that collapse on their own content width. */
.grid { display: grid; gap: clamp(32px, 5vw, 64px); }
.grid--split { grid-template-columns: repeat(auto-fit, minmax(min(100%, 330px), 1fr)); }
.grid--split-sm { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid--cards { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 28px; }
.grid--center { align-items: center; }

.measure { max-width: 46ch; }
.measure-sm { max-width: 42ch; }
.stack { display: flex; flex-direction: column; gap: 18px; }

/* Honeypot. Bots fill in every field they can find; people never see this one.
   Kept in the DOM and off-screen rather than display:none or type=hidden,
   which the better bots know to skip. */
.hp {
  position: absolute; left: -9999px; top: 0;
  width: 1px; height: 1px; overflow: hidden;
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--oz-green); color: var(--oz-ink);
  padding: 12px 20px; font: 700 15px var(--font-display);
}
.skip-link:focus { left: 0; }

/* Visible keyboard focus — the design system leaves this to the app. */
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--oz-green);
  outline-offset: 3px;
  border-radius: 2px;
}
.section--dark a:focus-visible,
nav.top a:focus-visible,
nav.top button:focus-visible { outline-color: var(--oz-green); }
#register a:focus-visible,
#register button:focus-visible { outline-color: var(--oz-ink); }

/* The slope glyph, used as an icon and as a watermark. */
.glyph { display: block; flex: none; color: currentColor; }
.glyph--watermark {
  position: absolute; right: -26px; bottom: -20px;
  width: 150px; color: var(--oz-green); opacity: 0.12;
  pointer-events: none;
}

/* --- Media blocks ------------------------------------------
   A .media is any image well. Drop an <img> inside to fill it;
   the .media__placeholder is what shows until a photo exists. */

.media { position: relative; overflow: hidden; background: var(--oz-graphite-100); }
.media > img { display: block; width: 100%; height: 100%; object-fit: cover; }
.media--rounded { border-radius: 14px; }
.media--rounded-sm { border-radius: 12px; }
.media--tall { height: clamp(300px, 42vw, 460px); }
.media--feature { height: clamp(280px, 40vw, 440px); }
.media--kids { height: clamp(300px, 42vw, 440px); }
.media--card { height: 200px; }
.media--sliced { clip-path: polygon(0 0, 100% 6%, 100% 100%, 0 94%); }

/* Bottom scrim so overlaid text and section edges stay legible. */
.media__scrim {
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(
    180deg,
    oklch(19% 0.018 260 / 0) 40%,
    oklch(19% 0.018 260 / 0.30) 72%,
    oklch(19% 0.018 260 / 0.62) 100%
  );
}

.media__placeholder {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 24px; text-align: center;
  background: var(--oz-green-soft);
  color: var(--oz-green-deep);
  font: var(--text-caption);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.media__placeholder svg { width: 46px; opacity: 0.5; }
.media__placeholder span { max-width: 26ch; }
/* The scrim is there to keep photos legible — an empty slot doesn't need it. */
.media__placeholder + .media__scrim { display: none; }

/* --- Top navigation ----------------------------------------- */

nav.top .logo { height: 34px; display: block; width: auto; }

.nav-toggle {
  display: none;
  align-items: center; justify-content: center;
  width: 42px; height: 42px; padding: 0;
  background: transparent; border: 1.5px solid var(--oz-graphite-700);
  border-radius: var(--radius-sm); color: var(--oz-paper); cursor: pointer;
}
.nav-toggle svg { width: 22px; height: 22px; }
.nav-toggle .icon-close,
nav.top[data-nav-open='true'] .nav-toggle .icon-open { display: none; }
nav.top[data-nav-open='true'] .nav-toggle .icon-close { display: block; }

/* The inline link row stops fitting next to the logo and CTA well before the
   design system's 720px breakpoint, so the drawer takes over at 900px. */
@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  nav.top { gap: 12px; }
  nav.top .nav-cta { padding: 9px 16px; font-size: 13px; white-space: nowrap; }
  nav.top .logo { height: 30px; }
  /* The design system hides the link row on small screens; here it becomes a
     drawer instead, so the sections are still reachable on a phone. */
  nav.top .links {
    display: flex;
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; gap: 0;
    padding: 4px 24px 18px;
    background: var(--oz-ink);
    border-bottom: 1px solid var(--oz-graphite-700);
    opacity: 0; transform: translateY(-8px); pointer-events: none;
    transition: opacity var(--duration-base) var(--ease-out),
                transform var(--duration-base) var(--ease-out);
  }
  nav.top .links a {
    padding: 14px 0;
    border-top: 1px solid oklch(100% 0 0 / 0.08);
  }
  nav.top[data-nav-open='true'] .links {
    opacity: 1; transform: none; pointer-events: auto;
  }
}
/* Below ~480px the logo, CTA and menu button stop fitting on one line. The
   CTA drops out — the drawer and the hero both still lead to #register. */
@media (max-width: 480px) {
  nav.top .nav-cta { display: none; }
}

@media (min-width: 901px) {
  nav.top .links { opacity: 1; transform: none; pointer-events: auto; }
}

/* --- Hero ---------------------------------------------------- */

.hero { position: relative; background: var(--oz-ink); overflow: hidden; }
.hero__inner {
  position: relative;
  display: flex; flex-wrap: wrap; align-items: center;
  gap: clamp(40px, 6vw, 72px);
  padding-top: clamp(56px, 8vw, 96px);
  padding-bottom: clamp(120px, 14vw, 150px);
}
.hero__copy { flex: 1 1 360px; min-width: 0; }
.hero__eyebrow {
  display: flex; align-items: center; gap: 14px;
  color: var(--oz-green);
}
.hero__eyebrow .glyph { width: 32px; height: 21px; }
.hero__title {
  color: var(--oz-paper);
  max-width: 13ch;
  margin-top: 22px;
  text-wrap: balance;
}
.hero__taglines { container-type: inline-size; margin-top: 26px; }
.hero__taglines-row {
  display: flex; gap: 0.6em; flex-wrap: nowrap; white-space: nowrap;
  font-size: clamp(13px, 3.9cqi, 30px);
}
.hero__taglines-row span { font-size: inherit; color: var(--oz-paper); }
.hero__taglines-row span:nth-child(2) { color: var(--oz-green); }
.hero__lead { color: var(--oz-graphite-200); max-width: 46ch; margin-top: 26px; }
.hero__actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }

.hero__media { position: relative; flex: 1 1 290px; min-width: 0; padding: 0 0 28px 28px; }
.hero__media-plate {
  position: absolute; left: 0; bottom: 0;
  width: 62%; height: 58%;
  background: var(--oz-green); border-radius: 14px;
}
.hero__media-frame {
  position: relative; border-radius: 14px; overflow: hidden;
  box-shadow: 0 40px 90px -24px oklch(0% 0 0 / 0.85),
              0 2px 0 oklch(100% 0 0 / 0.08) inset;
}
.hero__media-frame img {
  display: block; width: 100%;
  height: clamp(300px, 42vw, 470px); object-fit: cover;
  /* The render is portrait; biasing the crop upward keeps the skyline and the
     top of the run in frame rather than centring on the middle of the slope. */
  object-position: 50% 42%;
}
/* Once the hero stacks, the frame goes full-width and the design's height would
   letterbox the render down to a strip. Taller here keeps the whole venue readable. */
@media (max-width: 800px) {
  .hero__media-frame img { height: clamp(320px, 62vw, 560px); }
}
.hero__media-frame .media__scrim {
  background: linear-gradient(180deg, oklch(0% 0 0 / 0) 60%, oklch(0% 0 0 / 0.55) 100%);
}

/* The green wedge that hands the eye off to the next section. */
.hero__slope {
  position: absolute; left: 0; right: 0; bottom: 0; height: 120px;
  background: var(--oz-green);
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  pointer-events: none;
}
.hero__scroll {
  position: absolute; left: 50%; bottom: 34px; transform: translateX(-50%);
  color: var(--oz-ink);
  animation: bob 2.4s ease-in-out infinite;
  pointer-events: none;
}

/* --- Intro --------------------------------------------------- */

.intro { padding: clamp(64px, 9vw, 96px) 0 40px; }
.intro .grid { align-items: start; }
.intro h2 { max-width: 14ch; text-wrap: balance; }

/* --- Pillars ------------------------------------------------- */

.pillars { padding: 56px 0 clamp(64px, 9vw, 96px); }
.pillars .grid { gap: 32px; }
.pillar__icon-panel {
  position: relative; height: 220px; margin-bottom: 22px;
  border-radius: 10px; background: var(--oz-green-soft);
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.pillar__icon-panel > svg:last-child {
  position: relative; width: 78px; height: 78px;
}
.pillar p { color: var(--text-muted); margin-top: 10px; }

/* --- Feature (dark, angled) ---------------------------------- */

.feature {
  position: relative;
  background: var(--oz-ink); color: var(--oz-paper);
  clip-path: var(--slope-cut-both);
  padding: clamp(90px, 12vw, 130px) 0;
}
.feature h2 { color: var(--oz-paper); margin-top: 16px; }
.feature__lead { color: var(--oz-graphite-200); margin-top: 22px; max-width: 44ch; }
.feature__stats { display: flex; gap: 40px; margin-top: 38px; flex-wrap: wrap; }
.feature__stat-value { color: var(--oz-green); }
.feature__stat-label { color: var(--oz-graphite-300); font: var(--text-body-sm); }
.feature__note {
  color: var(--oz-graphite-300); margin-top: 30px;
  max-width: 46ch; font: var(--text-body-sm);
}

/* --- What you'll ride ---------------------------------------- */

.ride__head { margin-bottom: 40px; }
.ride__head h2 { margin-top: 12px; }
.apres {
  display: flex; align-items: center; gap: 28px; flex-wrap: wrap;
  background: var(--surface-sunken);
  border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 26px 30px; margin-bottom: 36px;
}
.apres .glyph { width: 34px; color: var(--oz-green-deep); }
.apres__body { flex: 1; min-width: 260px; }
.apres__body p { color: var(--text-muted); margin-top: 6px; max-width: 60ch; }
.ride-card {
  background: var(--surface-card); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); box-shadow: var(--shadow-card); overflow: hidden;
}
.ride-card__body { padding: 22px; }
.ride-card__body h3 { margin-top: 6px; }
.ride-card__body p { color: var(--text-muted); margin: 8px 0 0; }

/* --- Lessons -------------------------------------------------- */

.lessons__media { order: 1; }
.lessons__copy { order: 2; }
.lessons__copy h2 { margin-top: 16px; }
.lessons__copy .lead { margin-top: 22px; }
.badge-row { display: flex; gap: 10px; margin-top: 26px; flex-wrap: wrap; }

/* --- Kids ----------------------------------------------------- */

.kids__head { text-align: center; max-width: 60ch; margin: 0 auto 52px; }
.kids__head h2 { margin-top: 16px; }
.kids__head .lead { margin-top: 18px; }
.kids .grid--split-sm { gap: clamp(32px, 5vw, 56px); }
.kids__points { display: flex; flex-direction: column; gap: 26px; }
.kids__point { display: flex; gap: 18px; align-items: flex-start; }
.kids__point svg { width: 30px; flex: none; margin-top: 2px; color: var(--oz-green); }
.kids__point p { color: var(--oz-graphite-300); margin-top: 8px; }
.kids__badges { display: flex; gap: 12px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.kids__badges .badge-line { color: var(--oz-paper); border-color: var(--oz-graphite-500); }
.kids__cta { text-align: center; margin-top: 34px; }

/* --- Schools --------------------------------------------------- */

.schools-panel {
  position: relative; background: var(--oz-ink);
  border-radius: 14px; padding: clamp(28px, 4vw, 40px); overflow: hidden;
}
.schools-panel .glyph--watermark {
  right: -40px; bottom: -34px; width: 190px; opacity: 0.05;
}
.schools-panel__grid {
  position: relative;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 130px), 1fr));
  gap: clamp(18px, 3vw, 26px);
}
.schools-tile {
  background: oklch(24% 0.014 260);
  border: 1px solid oklch(100% 0 0 / 0.12);
  border-radius: 10px; padding: 22px 18px;
  color: var(--oz-green); background-clip: padding-box;
}
.schools-tile svg { width: 32px; height: 32px; }
.schools-tile__title {
  color: var(--oz-paper); font: 700 15px var(--font-display);
  margin-top: 14px; min-height: 2.6em;
}
.schools-tile__note { color: var(--oz-graphite-300); font: var(--text-body-sm); margin-top: 4px; }
.schools__copy h2 { margin-top: 16px; }
.schools__copy .lead { margin-top: 22px; }
.callout {
  margin-top: 22px; padding: 20px 22px;
  background: var(--oz-green-soft);
  border-left: 4px solid var(--oz-green);
  border-radius: var(--radius-sm); max-width: 46ch;
}
.callout__title { font: 700 16px var(--font-display); letter-spacing: -0.01em; }
.callout p { color: var(--text-muted); font: var(--text-body-sm); margin-top: 6px; }

/* --- Eco -------------------------------------------------------- */

.eco h2 { margin-top: 14px; }
.eco .lead { margin-top: 20px; }
.eco__list { display: flex; flex-direction: column; gap: 16px; }
.eco__row {
  display: flex; gap: 20px; align-items: center;
  background: var(--oz-green-soft); border-radius: 12px; padding: 24px 26px;
}
.eco__row svg { width: 32px; height: 32px; }
.eco__row-icon { color: var(--oz-green-deep); flex: none; display: block; }
.eco__row-title { font: 700 17px var(--font-display); letter-spacing: -0.01em; }
.eco__row-note { color: var(--text-muted); font: var(--text-body-sm); margin-top: 4px; }
.eco__media { margin-top: 24px; height: clamp(180px, 24vw, 260px); }

/* --- Register (green band) --------------------------------------- */

.register {
  position: relative; background: var(--oz-green);
  clip-path: var(--slope-cut-top);
  padding: clamp(110px, 14vw, 150px) 0 clamp(80px, 11vw, 120px);
}
.register .eyebrow { color: var(--oz-ink); opacity: 0.7; }
.register h2 { margin-top: 14px; }
.register__lead { font: var(--text-body-lg); color: var(--oz-ink); margin-top: 20px; max-width: 42ch; }
.register__perks { margin-top: 30px; display: flex; flex-direction: column; gap: 14px; }
.register__perk {
  display: flex; gap: 12px; align-items: center;
  font: var(--text-body); color: var(--oz-ink);
}
.register__perk .glyph { width: 22px; color: var(--oz-ink); }

.form-card {
  background: var(--oz-ink); border-radius: var(--radius-md);
  padding: clamp(24px, 4vw, 34px) clamp(22px, 4vw, 34px) 36px;
  box-shadow: var(--shadow-card);
}
.form-card--outlined {
  background: var(--oz-ink-soft);
  border: 1px solid var(--oz-graphite-700);
  padding: clamp(22px, 4vw, 34px);
  box-shadow: none;
}
.form-card h3 { color: var(--oz-paper); }
.form-card form { display: flex; flex-direction: column; gap: 16px; }
.form-card .field > span { color: var(--oz-graphite-300); }
.form-card .field input,
.form-card .field select {
  background: var(--oz-ink-soft); border-color: var(--oz-graphite-700); color: var(--oz-paper);
}
.form-card--outlined .field input,
.form-card--outlined .field select { background: var(--oz-ink); }
.form-card .field input::placeholder { color: var(--oz-graphite-500); }
.form-card .btn { justify-content: center; width: 100%; }
.form-card__fineprint { font: var(--text-body-sm); color: var(--oz-graphite-500); margin: 0; }
.form-row { display: flex; gap: 14px; flex-wrap: wrap; }
.form-row .field:first-child { flex: 1 1 180px; }
.form-row .field:last-child { flex: 0 1 130px; }

.form-error { font: var(--text-body-sm); color: oklch(78% 0.16 25); }
.form-error:empty { display: none; }
.form-error--light { color: oklch(55% 0.19 25); }

.form-success {
  display: flex; flex-direction: column; align-items: flex-start;
  gap: 16px; padding: 14px 0;
}
.form-success__mark {
  width: 52px; height: 52px; border-radius: var(--radius-pill);
  background: var(--oz-green); color: var(--oz-ink);
  display: flex; align-items: center; justify-content: center;
}
.form-success p { font: var(--text-body); color: var(--oz-graphite-300); margin: 0; }
/* Success panels take focus so the confirmation is announced; they aren't
   interactive, so they don't need a focus ring. */
[data-success]:focus, [data-success]:focus-visible { outline: none; }
[hidden] { display: none !important; }

/* --- Schools register / mailing list ------------------------------ */

.register-school h2 { margin-top: 12px; }
.register-school__lead {
  color: var(--oz-graphite-200); margin-top: 16px;
  max-width: 42ch; font: var(--text-body-lg);
}
.mailing { padding: 80px 0; }
.mailing .grid { gap: 40px; }
.mailing h2 { margin-top: 12px; }
.mailing__note { color: var(--text-muted); margin-top: 12px; max-width: 40ch; }
.mailing form { display: flex; flex-direction: column; gap: 14px; }
.mailing__row { display: flex; gap: 12px; flex-wrap: wrap; }
.mailing__field { flex: 1 1 220px; }
.mailing__row input[type='email'] {
  padding: 15px 16px;
  border-radius: var(--radius-sm); border: 1.5px solid var(--border-default);
  background: var(--surface-card); color: var(--oz-ink);
  font: var(--text-body); outline: none;
}
.mailing__row input[type='email']:focus { border-color: var(--oz-green-deep); }
.mailing__row .btn { white-space: nowrap; }
.mailing__check {
  display: flex; align-items: center; gap: 10px;
  font: var(--text-body-sm); color: var(--text-muted); cursor: pointer;
}
.mailing__check input { width: 17px; height: 17px; accent-color: var(--oz-green-deep); }
.mailing__fineprint { font: var(--text-body-sm); color: var(--text-muted); margin: 0; }
.mailing__done { color: var(--oz-green-deep); font: 600 17px var(--font-body); margin: 0; }

/* --- Footer -------------------------------------------------------- */

.site-footer {
  background: var(--oz-ink); color: var(--oz-graphite-300);
  padding: 64px 0 48px;
}
.site-footer .grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 40px;
}
.site-footer__logo { height: 32px; width: auto; display: block; margin-bottom: 18px; }
.site-footer__blurb { max-width: 34ch; font: var(--text-body-sm); color: var(--oz-graphite-500); }
.site-footer__col { display: flex; flex-direction: column; gap: 10px; font: var(--text-body-sm); }
.site-footer__col a { color: var(--oz-graphite-300); }
.site-footer__col a:hover { color: var(--oz-paper); }
.site-footer__heading {
  color: var(--oz-paper); font: var(--text-caption);
  letter-spacing: 0.06em; text-transform: uppercase;
}
.site-footer__legal {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  margin-top: 48px; padding-top: 24px;
  border-top: 1px solid var(--oz-graphite-700);
  font: var(--text-body-sm); color: var(--oz-graphite-500);
}

/* --- Motion preferences --------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .btn:hover { transform: none; }
}
