/* Wedgey website. One stylesheet for every page. Mobile first. */

:root {
  --bg: #0d0f0e;
  --card: #151917;
  --line: #22302a;
  --green: #4ade80;
  --green-dk: #2a7a48;
  --cream: #FFF8EC;
  --text: #f2f5f3;
  --muted: #93a09a;
  --ink: #0d0d0d;
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --radius: 26px;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { overflow-x: hidden; overflow-x: clip; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', 'Trebuchet MS', system-ui, sans-serif;
  font-weight: 800;
  font-size: 18px;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--green); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--cream);
  outline-offset: 3px;
  border-radius: 12px;
}
h1, h2, h3 { font-weight: 900; letter-spacing: -0.03em; line-height: 1; margin: 0; }
p { margin: 0; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 50;
  background: var(--cream); color: var(--ink); padding: 10px 16px; border-radius: 12px;
}
.skip:focus { top: 12px; }

/* ── Stickers: cards, pills, buttons ─────────────────────────────── */
.card {
  background: var(--card);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--line);
}
.tilt-l { transform: rotate(-2deg); }
.tilt-r { transform: rotate(2deg); }
.tilt-l2 { transform: rotate(-3.5deg); }
.tilt-r2 { transform: rotate(3deg); }

.pill {
  display: inline-block;
  padding: 10px 20px;
  border-radius: 999px;
  background: var(--cream);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 4px 4px 0 var(--green-dk);
  font-weight: 900;
  font-size: 17px;
  line-height: 1.2;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 56px;
  padding: 0 30px;
  border-radius: 999px;
  background: var(--green);
  color: var(--ink);
  border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--green-dk);
  font: inherit;
  font-weight: 900;
  font-size: 20px;
  text-decoration: none;
  cursor: pointer;
  transition: transform 180ms var(--spring), box-shadow 180ms var(--spring);
}
.btn:hover { transform: translate(-1px, -2px) rotate(-1deg); box-shadow: 6px 7px 0 var(--green-dk); }
.btn:active { transform: translate(4px, 4px) scale(.98, .94); box-shadow: 1px 1px 0 var(--green-dk); }

/* Confetti from site.js */
.burst {
  position: fixed; width: 9px; height: 9px; border-radius: 3px; pointer-events: none; z-index: 60;
  animation: burst 520ms var(--spring) forwards;
}
@keyframes burst {
  from { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  to { transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.3) rotate(160deg); opacity: 0; }
}

/* ── Header (inner pages) ────────────────────────────────────────── */
.topbar { padding: 18px 0 8px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.topbar-logo { display: inline-flex; min-height: 44px; align-items: center; }
.topbar-logo img { width: 150px; height: auto; }
.topbar-mascot { width: 64px; height: auto; animation: bob 3.2s ease-in-out infinite; }

/* ── Hero ────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 36px 0 24px; isolation: isolate; }
.hero .wrap { position: relative; display: grid; gap: 22px; justify-items: center; text-align: center; }
.hero-copy { display: grid; gap: 20px; justify-items: center; }
.hero-logo { width: min(250px, 70vw); height: auto; }
.hero h1 { font-size: 44px; max-width: 12ch; }
.hero-sub { color: var(--muted); font-size: 19px; max-width: 30ch; }
.hero-mascot { width: min(330px, 82vw); height: auto; animation: bob 3.4s ease-in-out infinite; transform-origin: 50% 100%; }
.word-pop { display: inline-block; color: var(--green); transform: rotate(-4deg); animation: wiggle 5s ease-in-out infinite; }
.word-tilt { display: inline-block; transform: rotate(3deg); }

.deco { position: absolute; z-index: -1; pointer-events: none; }
.deco-ball { width: 30px; animation: float 7s ease-in-out infinite; }
.deco-ball.b1 { left: 4%; top: 18%; }
.deco-ball.b2 { right: 6%; top: 8%; width: 22px; animation-delay: -2s; }
.deco-ball.b3 { right: 12%; bottom: 14%; width: 26px; animation-delay: -4s; }
.deco-flag { left: 7%; bottom: 10%; width: 54px; animation: sway 6s ease-in-out infinite; transform-origin: 20% 100%; }
.deco-spark { width: 22px; animation: twinkle 4.5s ease-in-out infinite; }
.deco-spark.s1 { left: 18%; top: 6%; }
.deco-spark.s2 { right: 22%; top: 40%; width: 16px; animation-delay: -1.5s; }
.deco-spark.s3 { left: 12%; top: 52%; width: 14px; animation-delay: -3s; }

/* ── Sections, hills, trail ──────────────────────────────────────── */
.section { position: relative; padding: 40px 0 56px; }
.section--card { background: var(--card); }
.section-head { display: grid; gap: 12px; justify-items: center; text-align: center; margin-bottom: 30px; }
.section h2 { font-size: 40px; max-width: 14ch; }
.section-lede { color: var(--muted); max-width: 34ch; }
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink); background: var(--green); border: 3px solid var(--ink); border-radius: 999px;
  padding: 4px 12px;
}
.hills { display: block; width: 100%; height: 70px; margin-bottom: -1px; }
.hills .back { fill: var(--line); }
.hills .front { fill: var(--card); }
.hills--to-bg .front { fill: var(--bg); }
.hills--to-bg .back { fill: var(--line); }
.trail { display: flex; justify-content: center; margin: -8px 0 18px; }
.trail svg { width: 70px; height: 96px; }

/* Pitch */
.pitch { display: grid; gap: 18px; max-width: 760px; margin: 0 auto; }
.pitch-card { padding: 24px 22px; }
.pitch-card p { font-size: 20px; }
.pitch-card p + p { margin-top: 12px; }
.pitch-card strong { color: var(--green); font-weight: 900; }

/* Features */
.features { display: grid; gap: 26px; }
.feature { padding: 26px 22px; display: grid; gap: 12px; align-content: start; }
.badge {
  width: 72px; height: 72px; border-radius: 50%;
  background: var(--green); border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--green-dk);
  display: grid; place-items: center; transform: rotate(-8deg);
  transition: transform 300ms var(--spring);
}
.feature:hover .badge { transform: rotate(6deg) scale(1.08); }
.badge svg { width: 38px; height: 38px; }
.feature h3 { font-size: 28px; }
.feature p { color: var(--muted); }

/* Coaches: each card is a button that flips to show what the coach is like. */
.coaches { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 14px; list-style: none; margin: 0; padding: 0; }
.coach-slot { display: grid; }
.coach {
  display: grid; width: 100%; padding: 0; margin: 0; border: 0; background: none;
  font: inherit; color: inherit; text-align: center; cursor: pointer;
  perspective: 1000px; -webkit-tap-highlight-color: transparent; border-radius: var(--radius);
}
.coach-flipper {
  display: grid; transform-style: preserve-3d;
  transition: transform 520ms var(--spring);
}
.coach.is-flipped .coach-flipper { transform: rotateY(180deg); }
.coach-face {
  grid-area: 1 / 1; position: relative;
  display: grid; justify-items: center; align-content: start; gap: 8px;
  padding: 14px 10px 16px;
  background: var(--card); border: 3px solid var(--ink); border-radius: var(--radius);
  box-shadow: 6px 6px 0 var(--line);
  -webkit-backface-visibility: hidden; backface-visibility: hidden;
}
.coach-back {
  transform: rotateY(180deg); align-content: center; gap: 10px;
  padding-top: 46px; /* clear of the flip badge */
  background: var(--green); color: var(--ink); box-shadow: 6px 6px 0 var(--green-dk);
}
.coach img { width: 100%; height: auto; transform-origin: 50% 100%; }
.coach-name { font-size: 22px; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.coach-tag {
  font-size: 12px; letter-spacing: .14em; text-transform: uppercase; font-weight: 900;
  background: var(--cream); border: 3px solid var(--ink); border-radius: 999px; padding: 3px 10px;
}
.coach-about { font-size: 15px; line-height: 1.35; }
.flip-hint {
  position: absolute; right: 8px; top: 8px; width: 30px; height: 30px; border-radius: 50%;
  background: var(--cream); border: 2.5px solid var(--ink); display: grid; place-items: center;
}
.flip-hint svg { width: 17px; height: 17px; }
.coach-back .flip-hint { background: var(--cream); }
.bubble {
  position: relative; background: var(--cream); color: var(--ink); border: 3px solid var(--ink);
  border-radius: 18px; padding: 8px 10px; font-size: 15px; line-height: 1.3; font-weight: 900;
  box-shadow: 3px 3px 0 var(--green-dk); transform-origin: 50% 0;
}
.bubble::before {
  content: ''; position: absolute; left: 50%; top: -12px; width: 18px; height: 18px;
  background: var(--cream); border-left: 3px solid var(--ink); border-top: 3px solid var(--ink);
  transform: translateX(-50%) rotate(45deg); border-radius: 3px 0 0 0;
}
@media (hover: hover) {
  .coach:not(.is-flipped):hover .coach-front img { animation: hop 520ms var(--spring); }
  .coach:not(.is-flipped):hover .bubble { animation: pop 420ms var(--spring); }
}
.coach:active .coach-flipper { scale: .97; }

/* Lefty */
.lefty { padding: 26px 22px; display: grid; gap: 14px; justify-items: center; text-align: center; max-width: 640px; margin: 0 auto; }
.lefty-ws { display: flex; gap: 18px; align-items: flex-end; }
.lefty-ws img { width: 92px; height: auto; }
.lefty-ws .flip { transform: scaleX(-1); }
.lefty h2 { font-size: 34px; }
.lefty p { color: var(--muted); max-width: 30ch; }

.soon { display: grid; justify-items: center; gap: 18px; text-align: center; margin-top: 56px; }
.soon h2 { font-size: 40px; max-width: 13ch; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer { background: var(--card); padding: 18px 0 34px; }
.footer .wrap { display: grid; gap: 16px; justify-items: center; text-align: center; }
.footer-logo { width: 130px; height: auto; }
.footer-home { display: inline-flex; align-items: center; min-height: 48px; }
/* Standalone email links get a full-size tap target. */
.tap { display: inline-block; padding: 10px 4px; }
.footer nav ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 6px; }
.footer nav a, .footer-mail {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px;
  color: var(--text); text-decoration: none; border-radius: 12px;
}
.footer nav a:hover, .footer-mail:hover { color: var(--green); }
.footer-copy { color: var(--muted); font-size: 15px; }
.socials { display: flex; gap: 14px; justify-content: center; }
.social {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--green-dk);
  transition: transform 200ms var(--spring);
}
.social:hover { transform: translateY(-3px) rotate(-6deg); }
.social svg { width: 22px; height: 22px; }

/* Follow block (closing section) */
.follow { display: grid; gap: 16px; justify-items: center; margin-top: 10px; }
.follow-line { font-size: 21px; font-weight: 900; max-width: 22ch; }
.follow-btns { display: flex; flex-wrap: wrap; gap: 16px 18px; justify-content: center; }
.btn-social svg { width: 24px; height: 24px; margin-right: 10px; flex: none; }
.btn-cream { background: var(--cream); }
.follow-btns .tilt-l { transform: rotate(-2deg); }
.follow-btns .tilt-r { transform: rotate(2deg); }
.follow-btns .btn:hover { transform: translate(-1px, -2px) rotate(0deg); }
.follow-btns .btn:active { transform: translate(4px, 4px) scale(.98, .94); }

/* ── Legal pages: calm reading ───────────────────────────────────── */
.legal { max-width: 680px; margin: 0 auto; padding: 18px 20px 56px; font-size: 18px; line-height: 1.6; }
.legal h1 { font-size: 40px; line-height: 1.05; margin-bottom: 10px; }
.legal .updated { color: var(--muted); font-size: 16px; margin-bottom: 26px; }
.legal h2 { font-size: 24px; line-height: 1.2; letter-spacing: -0.01em; margin: 34px 0 10px; }
.legal h3 { font-size: 19px; line-height: 1.3; letter-spacing: 0; margin: 20px 0 6px; }
.legal p, .legal ul, .legal ol { margin: 0 0 14px; }
.legal ul, .legal ol { padding-left: 24px; }
.legal li { margin-bottom: 6px; }
.legal .note { background: var(--card); border: 3px solid var(--ink); border-radius: 20px; padding: 16px 18px; }
.legal table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 16px; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 8px; border-bottom: 2px solid var(--line); }
.legal th { color: var(--muted); font-weight: 900; }

/* ── Support FAQ ─────────────────────────────────────────────────── */
.faq-list { display: grid; gap: 18px; max-width: 720px; margin: 0 auto; padding: 0 20px 48px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between;
  gap: 14px; min-height: 64px; padding: 14px 20px; font-size: 21px; font-weight: 900; line-height: 1.2;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  background: var(--green); color: var(--ink); border: 3px solid var(--ink); font-size: 24px; line-height: 1;
  transition: transform 260ms var(--spring);
}
.faq[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 20px 20px; color: var(--text); font-size: 18px; line-height: 1.6; }
.faq-body p + p, .faq-body ol, .faq-body ul { margin-top: 10px; }
.faq-body ol, .faq-body ul { padding-left: 22px; margin-bottom: 0; }
.faq[open] .faq-body { animation: drop 360ms var(--spring); }
.page-title { text-align: center; padding: 10px 20px 28px; display: grid; gap: 10px; justify-items: center; }
.page-title h1 { font-size: 44px; }
.page-title p { color: var(--muted); max-width: 32ch; }
.stuck { text-align: center; padding: 0 20px 56px; }

/* ── 404 ─────────────────────────────────────────────────────────── */
.lost { display: grid; justify-items: center; gap: 18px; text-align: center; padding: 24px 20px 60px; }
.lost-scene { width: min(420px, 92vw); height: auto; }
.lost h1 { font-size: 46px; }
.lost p { color: var(--muted); max-width: 28ch; }
.lost-w { transform-box: fill-box; transform-origin: 50% 100%; animation: lostlook 3.6s ease-in-out infinite; }

/* ── Pop in on scroll (only when site.js adds .js-pop) ───────────── */
.js-pop [data-pop] { opacity: 0; transform: translateY(26px) scale(.94); }
.js-pop [data-pop].in { animation: popin 520ms var(--spring) forwards; }
.js-pop [data-pop].tilt-l.in { --end: rotate(-2deg); }
.js-pop [data-pop].tilt-r.in { --end: rotate(2deg); }
.js-pop [data-pop].tilt-l2.in { --end: rotate(-3.5deg); }
.js-pop [data-pop].tilt-r2.in { --end: rotate(3deg); }

/* ── Motion ──────────────────────────────────────────────────────── */
@keyframes popin {
  from { opacity: 0; transform: translateY(26px) scale(.94); }
  to { opacity: 1; transform: var(--end, none); }
}
@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  45% { transform: translateY(-10px) scale(.99, 1.02); }
  55% { transform: translateY(-10px) scale(.99, 1.02); }
  92% { transform: translateY(0) scale(1.03, .97); }
}
@keyframes hop {
  0% { transform: translateY(0) scale(1, 1); }
  18% { transform: translateY(0) scale(1.12, .86); }
  48% { transform: translateY(-22px) scale(.92, 1.1); }
  78% { transform: translateY(0) scale(1.08, .92); }
  100% { transform: translateY(0) scale(1, 1); }
}
@keyframes pop {
  0% { transform: scale(.82) rotate(-3deg); }
  60% { transform: scale(1.08) rotate(2deg); }
  100% { transform: scale(1) rotate(0); }
}
@keyframes wiggle {
  0%, 82%, 100% { transform: rotate(-4deg); }
  88% { transform: rotate(3deg) scale(1.06); }
  94% { transform: rotate(-6deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes sway {
  0%, 100% { transform: rotate(-3deg); }
  50% { transform: rotate(4deg); }
}
@keyframes twinkle {
  0%, 100% { opacity: .35; transform: scale(.8) rotate(0); }
  50% { opacity: 1; transform: scale(1.1) rotate(20deg); }
}
@keyframes drop {
  from { opacity: 0; transform: translateY(-8px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes lostlook {
  0%, 100% { transform: rotate(-6deg); }
  50% { transform: rotate(5deg); }
}

/* ── Bigger screens ──────────────────────────────────────────────── */
@media (min-width: 760px) {
  .hero { padding: 60px 0 40px; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; justify-items: start; text-align: left; gap: 30px; }
  .hero-copy { gap: 24px; justify-items: start; }
  .hero-mascot { width: 100%; max-width: 440px; justify-self: center; }
  .hero h1 { font-size: 72px; }
  .hero-sub { font-size: 21px; }
  .deco-flag { left: auto; right: 3%; bottom: 4%; }
  .section { padding: 56px 0 80px; }
  .section h2 { font-size: 60px; }
  .features { grid-template-columns: repeat(3, 1fr); }
  .coaches { grid-template-columns: repeat(4, 1fr); gap: 24px; }
  .coach-face { padding: 18px 14px 20px; }
  .coach-about { font-size: 16px; }
  .bubble { font-size: 16px; }
  .lefty h2 { font-size: 44px; }
  .soon h2 { font-size: 60px; }
  .hills { height: 110px; }
  .legal h1 { font-size: 52px; }
  .page-title h1 { font-size: 64px; }
  .lost h1 { font-size: 64px; }
}
@media (min-width: 1100px) {
  .hero h1 { font-size: 80px; }
}
@media (max-width: 420px) {
  .pill { font-size: 15px; padding: 9px 14px; }
}
@media (max-width: 380px) {
  .hero h1 { font-size: 40px; }
  .section h2 { font-size: 36px; }
  .coach-name { font-size: 19px; }
  .coach-about { font-size: 14px; }
  .bubble { font-size: 14px; padding: 7px 8px; }
}

/* ── Reduced motion: everything still, everything visible ────────── */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .js-pop [data-pop] { opacity: 1; transform: none; }
  .js-pop [data-pop].tilt-l { transform: rotate(-2deg); }
  .js-pop [data-pop].tilt-r { transform: rotate(2deg); }
  .js-pop [data-pop].tilt-l2 { transform: rotate(-3.5deg); }
  .js-pop [data-pop].tilt-r2 { transform: rotate(3deg); }
  .burst { display: none; }
}
