/* Win the Day Planner - sample landing page
   Radius system: pill buttons, 14px surfaces, 10px inputs. Single accent: gold. */

@font-face {
  font-family: "Outfit";
  src: url("assets/fonts/Outfit.woff2") format("woff2");
  font-weight: 300 600;
  font-display: swap;
}
@font-face {
  font-family: "Cormorant Garamond";
  src: url("assets/fonts/CormorantGaramond.woff2") format("woff2");
  font-weight: 500 600;
  font-display: swap;
}

:root {
  --bg: #121317;
  --bg-raise: #191b20;
  --charcoal: #3c4048;
  --navy: #27385b;
  --line: rgba(242, 242, 248, 0.1);
  --text: #f2f2f8;
  --muted: #a8acb6;
  --gold: #e2c470;
  --gold-soft: rgba(226, 196, 112, 0.14);
  --ink: #17181c;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Outfit", system-ui, -apple-system, sans-serif;
  --wrap: 1160px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  font-weight: 300;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { font-weight: 500; line-height: 1.1; }
h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 4vw, 2.9rem);
  letter-spacing: 0.01em;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-block;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0.85rem 1.9rem;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #ecd28a; }
.btn-ghost { border-color: var(--line); color: var(--text); }
.btn-ghost:hover { border-color: rgba(242, 242, 248, 0.35); }
.btn-sm { padding: 0.55rem 1.25rem; font-size: 0.88rem; }
.btn-block { width: 100%; text-align: center; }

/* ---------- nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  padding: 0 clamp(1rem, 4vw, 2.5rem);
  background: rgba(18, 19, 23, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--text);
  text-decoration: none;
  font-family: var(--serif);
  font-size: 1.22rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.nav-brand em { color: var(--gold); font-style: italic; text-transform: none; letter-spacing: 0.04em; }
.nav-brand img { width: 44px; height: auto; }

/* ---------- hero ---------- */
.hero {
  background:
    radial-gradient(900px 480px at 78% 12%, rgba(226, 196, 112, 0.07), transparent 60%),
    linear-gradient(180deg, #1c1d21 0%, var(--bg) 78%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: clamp(3rem, 7vh, 5.5rem) clamp(1rem, 4vw, 2.5rem) clamp(3rem, 7vh, 5rem);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.eyebrow {
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1.2rem;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(2.7rem, 5.6vw, 4.3rem);
  letter-spacing: 0.015em;
}
.hero h1 .gold { color: var(--gold); }
.hero-sub {
  margin: 1.4rem 0 2.1rem;
  max-width: 30rem;
  font-size: 1.08rem;
  color: var(--muted);
}
.hero-cta { display: flex; gap: 0.9rem; flex-wrap: wrap; }
.hero-visual { display: flex; justify-content: center; }
.cover-frame {
  position: relative;
  max-width: 330px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow:
    0 30px 70px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(226, 196, 112, 0.25);
  transform: rotate(2deg);
  transition: transform 0.4s ease;
}
.cover-frame:hover { transform: rotate(0deg); }

/* ---------- planner-in-motion demo ---------- */
/* Source clip is 334px wide — keep display near native so it stays sharp. */
.pages-demo {
  max-width: 400px;
  margin: 0 auto 3rem;
}
.pages-demo-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(226, 196, 112, 0.28);
  box-shadow: 0 22px 60px rgba(0, 0, 0, 0.55);
  background: #0d0d0f;
}
.pages-demo figcaption {
  margin-top: 0.9rem;
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- the case (marquee) ---------- */
.case { overflow: hidden; }
.marquee {
  position: relative;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.marquee-track {
  display: flex;
  gap: 1.4rem;
  width: max-content;
  animation: case-scroll 70s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track img {
  width: clamp(320px, 42vw, 480px);
  height: auto;
  flex: 0 0 auto;
  border-radius: 14px;
  border: 1px solid var(--line);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.45);
}
@keyframes case-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .marquee { overflow-x: auto; }
  .marquee-track { animation: none; }
}

/* ---------- word of the week (animated) ---------- */
.wotw {
  background: var(--bg-raise);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.wotw-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.wotw-copy { text-align: left; }
.wotw-clip { margin: 0; justify-self: center; max-width: 340px; width: 100%; }
.wotw-video {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
  border: 1px solid rgba(226, 196, 112, 0.28);
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.5);
  background: #0d0d0f;
}
.wotw-word {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 7vw, 4.6rem);
  line-height: 1.05;
  color: var(--gold);
  margin: 0.4rem 0 0.9rem;
  min-height: 1.1em;
}
.wotw-word span {
  display: inline-block;
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.wotw-word.swap span { opacity: 0; transform: translateY(-0.35em); }
.wotw-sub { color: var(--muted); max-width: 34rem; margin: 0 auto; font-size: 0.98rem; }

/* ---------- sections shared ---------- */
section { padding: clamp(3.5rem, 9vh, 6.5rem) clamp(1rem, 4vw, 2.5rem); }
.section-head { max-width: var(--wrap); margin: 0 auto 2.8rem; }
.section-head p { color: var(--muted); margin-top: 0.8rem; max-width: 36rem; }

/* ---------- every-sport band ---------- */
.roster {
  padding: clamp(1.8rem, 4vh, 2.6rem) clamp(1rem, 4vw, 2.5rem);
  background: var(--bg-raise);
  border-bottom: 1px solid var(--line);
}
.roster-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: clamp(1.2rem, 4vw, 2.8rem);
  justify-content: center;
}
.roster img { width: clamp(210px, 30vw, 330px); opacity: 0.9; }
.roster p {
  font-size: 0.98rem;
  color: var(--muted);
  max-width: 24rem;
}

/* ---------- pages ---------- */
.pages { background: var(--bg); }
.pages-row {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.2rem, 2.5vw, 2rem);
  align-items: start;
}
.page-card { margin: 0; }
.page-card img {
  border-radius: 14px;
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.5);
  border: 1px solid var(--line);
}
.page-card-lift { transform: translateY(-1.6rem); }
.page-card figcaption {
  margin-top: 1rem;
  font-size: 0.92rem;
  color: var(--muted);
  padding: 0 0.2rem;
}
.page-card figcaption strong {
  display: block;
  color: var(--text);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

/* ---------- habits ---------- */
.habits { background: var(--bg-raise); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.habits .section-head { margin-bottom: 2.2rem; }
.habits-grid {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2.4rem clamp(1.5rem, 3vw, 3rem);
}
.habit h3 {
  font-family: var(--serif);
  font-size: 1.45rem;
  color: var(--gold);
  margin-bottom: 0.4rem;
}
.habit p { color: var(--muted); font-size: 0.98rem; max-width: 26rem; }

/* ---------- quote ---------- */
.quote { text-align: center; }
.quote blockquote { max-width: 46rem; margin: 0 auto; }
.quote p {
  font-family: var(--serif);
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  font-style: italic;
  line-height: 1.35;
  padding-bottom: 0.25rem;
}
.quote cite {
  display: block;
  margin-top: 1.6rem;
  font-style: normal;
  font-size: 0.95rem;
  color: var(--gold);
}
.quote cite span { display: block; color: var(--muted); font-size: 0.85rem; margin-top: 0.15rem; }

/* ---------- who ---------- */
.who { background: var(--charcoal); }
.who-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.who-copy p { color: #cfd2d9; margin-top: 1rem; max-width: 28rem; }
.who-list { list-style: none; }
.who-list li {
  padding: 1.35rem 0;
  color: #cfd2d9;
  border-top: 1px solid rgba(242, 242, 248, 0.14);
  font-size: 0.98rem;
}
.who-list li:last-child { border-bottom: 1px solid rgba(242, 242, 248, 0.14); }
.who-list strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.35rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.25rem;
}

/* ---------- prevention resources ---------- */
.prevention { background: var(--navy); }
.prevention-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.prevention-copy p { color: #ccd3e2; margin-top: 1rem; max-width: 30rem; }
.topics {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.5rem 0 0;
}
.topics li {
  border: 1px solid rgba(226, 196, 112, 0.45);
  border-radius: 999px;
  padding: 0.32rem 0.9rem;
  font-size: 0.85rem;
  color: var(--gold);
}
.credit {
  margin-top: 1.5rem;
  font-size: 0.82rem;
  line-height: 1.55;
  color: rgba(204, 211, 226, 0.72);
  border-left: 2px solid rgba(226, 196, 112, 0.5);
  padding-left: 0.9rem;
}
.prevention-art { position: relative; display: flex; justify-content: center; }
.prevention-art img {
  width: 60%;
  border-radius: 12px;
  border: 1px solid rgba(242, 242, 248, 0.14);
  box-shadow: 0 22px 55px rgba(0, 0, 0, 0.45);
}
.prevention-art img:first-child { transform: rotate(-3deg) translateX(12%); z-index: 2; }
.prevention-art img:last-child {
  position: absolute;
  right: 4%;
  top: 8%;
  transform: rotate(4deg);
  z-index: 1;
}

/* ---------- coach testimonials ---------- */
.voices { background: var(--bg); }
.voices-list {
  max-width: var(--wrap);
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.voice {
  margin: 0;
  padding: clamp(1.6rem, 3vw, 2.2rem) 0;
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: 3rem 1fr 16rem;
  gap: clamp(1rem, 3vw, 2.5rem);
  align-items: start;
}
.voice::before {
  content: "\201C";
  font-family: var(--serif);
  font-size: 3.4rem;
  line-height: 0.8;
  color: var(--gold);
  opacity: 0.55;
}
.voice blockquote {
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--text);
}
.voice figcaption { padding-top: 0.2rem; }
.voice figcaption strong {
  display: block;
  font-family: var(--serif);
  font-size: 1.2rem;
  font-weight: 500;
  color: var(--gold);
}
.voice figcaption span {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.85rem;
  color: var(--muted);
}

/* ---------- sample form ---------- */
.sample {
  background:
    radial-gradient(720px 420px at 18% 20%, rgba(226, 196, 112, 0.06), transparent 60%),
    var(--bg);
}
.sample-inner {
  max-width: var(--wrap);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.sample-copy p { color: var(--muted); margin-top: 1rem; max-width: 30rem; }
.sample-points { list-style: none; margin-top: 1.6rem; }
.sample-points li {
  position: relative;
  padding: 0.35rem 0 0.35rem 1.7rem;
  color: var(--text);
  font-size: 0.98rem;
}
.sample-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.95rem;
  width: 0.9rem;
  height: 1px;
  background: var(--gold);
}

.sample-form {
  background: var(--bg-raise);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: clamp(1.5rem, 3vw, 2.2rem);
  display: grid;
  gap: 1.1rem;
}
.field { display: grid; gap: 0.45rem; }
.field label { font-size: 0.88rem; font-weight: 500; color: var(--text); }
.field label .optional {
  font-weight: 300;
  font-size: 0.78rem;
  color: var(--muted);
  margin-left: 0.3rem;
}
.field input,
.field select {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 300;
  color: var(--text);
  background: var(--bg);
  border: 1px solid rgba(242, 242, 248, 0.18);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  width: 100%;
  transition: border-color 0.15s ease;
}
.field select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 1.15rem) 50%, calc(100% - 0.85rem) 50%; background-size: 0.3rem 0.3rem; background-repeat: no-repeat; }
.field input:focus,
.field select:focus {
  outline: 2px solid var(--gold);
  outline-offset: 1px;
  border-color: transparent;
}
.field-error { display: none; font-size: 0.82rem; color: #f0a9a3; }
.field.invalid input, .field.invalid select { border-color: #c96b62; }
.field.invalid .field-error { display: block; }
.hp { position: absolute; left: -6000px; top: -6000px; }

.btn-busy { display: none; }
.sample-form.busy .btn-label { display: none; }
.sample-form.busy .btn-busy { display: inline; }
.sample-form.busy button { opacity: 0.75; pointer-events: none; }
.form-note { font-size: 0.82rem; color: var(--muted); }
.form-fail { display: none; font-size: 0.88rem; color: #f0a9a3; }
.sample-form.failed .form-fail { display: block; }

.sample-success {
  background: var(--bg-raise);
  border: 1px solid rgba(226, 196, 112, 0.35);
  border-radius: 14px;
  padding: clamp(2rem, 4vw, 3rem);
  text-align: center;
}
.sample-success img { margin: 0 auto 1rem; }
.sample-success h3 { font-family: var(--serif); font-size: 1.7rem; margin-bottom: 0.6rem; }
.sample-success p { color: var(--muted); }
.sample-success a { color: var(--gold); }
.success-sub { margin-top: 1rem; font-size: 0.9rem; }

/* ---------- footer ---------- */
.footer {
  border-top: 1px solid var(--line);
  padding: 2.5rem clamp(1rem, 4vw, 2.5rem) 3rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.1rem;
  text-align: center;
}
.footer-links { display: flex; gap: 1.8rem; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--muted); text-decoration: none; font-size: 0.92rem; }
.footer-links a:hover { color: var(--gold); }
.footer-fine { color: rgba(168, 172, 182, 0.6); font-size: 0.8rem; }

/* ---------- reveal motion ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal {
    opacity: 0;
    transform: translateY(22px);
    transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
  }
  .reveal.in { opacity: 1; transform: none; }
  .page-card-lift.reveal.in { transform: translateY(-1.6rem); }
}

/* ---------- mobile ---------- */
@media (max-width: 860px) {
  .hero-inner, .who-inner, .sample-inner, .prevention-inner, .wotw-inner { grid-template-columns: 1fr; }
  .wotw-copy { text-align: center; }
  .wotw-clip { max-width: 480px; margin: 0 auto; }
  .roster-inner { flex-direction: column; text-align: center; gap: 1rem; }
  .roster p { max-width: 26rem; }
  .prevention-art { display: block; max-width: 320px; margin: 0 auto; height: 300px; }
  .prevention-art img { width: 74%; }
  .prevention-art img:first-child { transform: rotate(-3deg); }
  .prevention-art img:last-child { right: 0; top: 6%; }
  .voice { grid-template-columns: 2rem 1fr; gap: 0.8rem; }
  .voice figcaption { grid-column: 2; padding-top: 0.9rem; }
  .hero-visual { order: -1; }
  .cover-frame { max-width: 210px; transform: none; }
  .pages-row { grid-template-columns: 1fr; max-width: 420px; }
  .page-card-lift { transform: none; }
  .page-card-lift.reveal.in { transform: none; }
  .habits-grid { grid-template-columns: 1fr; gap: 1.8rem; }
  .nav .btn { padding: 0.5rem 1rem; font-size: 0.82rem; }
  .nav-brand span { font-size: 1.05rem; }
}
@media (min-width: 861px) and (max-width: 1080px) {
  .habits-grid { grid-template-columns: repeat(2, 1fr); }
}
