﻿/* Evening Stake — utility-led stylesheet */
@import url("https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap");

:root {
  --bg: #eef1f6;
  --bg-soft: #e4e9f2;
  --surface: #f7f8fb;
  --ink: #1a2332;
  --ink-muted: #4a5568;
  --cobalt: #3b6fd9;
  --accent: #ff6b5b;
  --line: rgba(26, 35, 50, 0.12);
  --radius: 1.25rem;
  --radius-lg: 2rem;
  --radius-xl: 3rem;
  --space-1: 0.35rem;
  --space-2: 0.7rem;
  --space-3: 1.1rem;
  --space-4: 1.75rem;
  --space-5: 2.75rem;
  --space-6: 4.5rem;
  --max: 42rem;
  --wide: 58rem;
  --font: "Lora", "Georgia", "Times New Roman", serif;
  --shadow-one: 0 10px 28px rgba(59, 111, 217, 0.12);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--bg);
  padding-bottom: 3.25rem;
  position: relative;
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 50%;
  opacity: 0.18;
}

body::before {
  width: 18rem;
  height: 18rem;
  background: var(--cobalt);
  top: -6rem;
  left: -5rem;
  clip-path: polygon(20% 0%, 80% 8%, 100% 45%, 78% 100%, 18% 88%, 0% 40%);
}

body::after {
  width: 14rem;
  height: 14rem;
  background: var(--accent);
  bottom: 4rem;
  right: -4rem;
  opacity: 0.12;
  clip-path: polygon(30% 0%, 100% 20%, 85% 100%, 0% 70%);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

a:not(.btn)::after {
  content: " ›";
  font-weight: 700;
}

a:hover {
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

a.btn::after,
a.logo::after,
a.nav__link::after,
a.safety-card::after,
.age-bar a::after,
.cookie-banner a::after,
.site-footer a::after,
.masthead a.logo::after {
  content: none;
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

h1 .accent-word,
h2 .accent-word,
.display .accent-word {
  color: var(--accent);
}

p {
  margin: 0 0 var(--space-3);
}

ul,
ol {
  margin: 0 0 var(--space-3);
  padding-left: 1.2rem;
}

/* Layout utilities */
.wrap {
  width: min(100% - 2rem, var(--wide));
  margin-inline: auto;
  position: relative;
  z-index: 1;
}

.wrap--narrow {
  width: min(100% - 2rem, var(--max));
}

.stack {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.stack--tight {
  gap: var(--space-2);
}

.stack--loose {
  gap: var(--space-5);
}

.cluster {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: var(--space-2);
}

.cluster--between {
  justify-content: space-between;
}

.cluster--center {
  justify-content: center;
}

.flow > * + * {
  margin-top: var(--space-3);
}

.prose {
  max-width: 65ch;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

/* Surfaces & organic bands */
.band {
  position: relative;
  padding: var(--space-5) 0;
}

.band--soft {
  background: var(--bg-soft);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  margin-top: var(--space-4);
}

.band--curve {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: var(--space-5) var(--space-4);
  border: 1px solid var(--line);
}

.band--tint {
  background: color-mix(in srgb, var(--cobalt) 8%, var(--bg));
  border-radius: var(--radius-xl) 0 var(--radius-xl) var(--radius-xl);
  padding: var(--space-5) 0;
}

.rule {
  border: 0;
  border-top: 1px solid var(--line);
  margin: var(--space-5) 0;
}

.card {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--line);
  padding: var(--space-4) 0;
  border-radius: 0;
}

.card:last-child {
  border-bottom: 0;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.7rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  background: transparent;
}

.score {
  font-weight: 700;
  color: var(--cobalt);
  font-size: 1.35rem;
  letter-spacing: -0.03em;
}

.score__label {
  display: block;
  font-size: 0.75rem;
  color: var(--ink-muted);
  font-weight: 500;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.7rem 1.15rem;
  border-radius: 999px;
  border: 1px solid var(--accent);
  background: var(--accent);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none;
  line-height: 1.2;
}

.btn svg {
  width: 0.95rem;
  height: 0.95rem;
  flex-shrink: 0;
}

.btn--ghost {
  background: transparent;
  color: var(--accent);
}

.btn:hover {
  filter: brightness(0.96);
  text-decoration: none;
}

.btn:active {
  transform: scale(0.98);
}

.display {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  margin: 0 0 var(--space-3);
  font-weight: 700;
}

.kicker {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--cobalt);
  font-weight: 600;
  margin-bottom: var(--space-2);
}

.muted {
  color: var(--ink-muted);
}

.small {
  font-size: 0.88rem;
}

.tiny {
  font-size: 0.78rem;
  color: var(--ink-muted);
}

/* Age bar */
.age-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  background: var(--ink);
  color: #f3f5f9;
  font-size: 0.82rem;
  padding: 0.55rem 1rem;
  border-top: 1px solid color-mix(in srgb, var(--accent) 50%, transparent);
}

.age-bar a {
  color: var(--accent);
  font-weight: 600;
}

.age-bar .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
  justify-content: space-between;
}

/* Cookie banner */
.cookie-banner {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 3.6rem;
  z-index: 70;
  max-width: 28rem;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  box-shadow: var(--shadow-one);
}

.cookie-banner[hidden] {
  display: none !important;
}

/* Masthead */
.masthead {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, white);
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: blur(8px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  font-weight: 700;
  font-size: 1.15rem;
  text-decoration: none;
}

.logo img {
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.9rem;
}

.nav__link {
  color: var(--ink);
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
}

.nav__link:hover {
  color: var(--accent);
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.4rem 0.8rem;
  font-family: inherit;
  font-weight: 600;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding-top: var(--space-2);
  }

  .nav.is-open {
    display: flex;
  }
}

/* Notice strip */
.notice {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--space-2) var(--space-3);
  background: var(--surface);
  font-size: 0.9rem;
}

.notice--accent {
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
}

.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-2);
}

.stat {
  text-align: center;
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.stat__num {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--cobalt);
}

/* Showcase rows */
.showcase {
  border-top: 1px solid var(--line);
}

.row {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
  opacity: 0;
  transform: translateY(12px);
}

.row.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.row:nth-child(1).is-in { transition-delay: 0.05s; }
.row:nth-child(2).is-in { transition-delay: 0.12s; }
.row:nth-child(3).is-in { transition-delay: 0.19s; }
.row:nth-child(4).is-in { transition-delay: 0.26s; }
.row:nth-child(5).is-in { transition-delay: 0.33s; }

@media (min-width: 720px) {
  .row {
    grid-template-columns: 5.5rem 1fr auto;
    align-items: center;
  }
}

.row__logo {
  width: 4.5rem;
  height: 4.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  display: grid;
  place-items: center;
  padding: 0.4rem;
  overflow: hidden;
}

.row__logo img {
  max-height: 3.2rem;
  max-width: 100%;
  object-fit: contain;
}

.row__logo-fallback {
  font-weight: 700;
  color: var(--cobalt);
  font-size: 0.85rem;
  text-align: center;
}

.row__action {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-2);
}

@media (min-width: 720px) {
  .row__action {
    align-items: flex-end;
    min-width: 10rem;
  }
}

/* Criterion blocks */
.criterion {
  padding: var(--space-4) 0;
  border-bottom: 1px solid var(--line);
}

.criterion ol {
  list-style: none;
  padding: 0;
  margin: var(--space-3) 0 0;
  counter-reset: rank;
}

.criterion li {
  counter-increment: rank;
  display: grid;
  grid-template-columns: 2rem 1fr auto;
  gap: var(--space-2);
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px dashed var(--line);
}

.criterion li::before {
  content: counter(rank);
  font-weight: 700;
  color: var(--accent);
  font-size: 1.15rem;
}

/* Safety cards */
.safety-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-3);
}

@media (min-width: 640px) {
  .safety-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.safety-card {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
}

.safety-card:hover {
  border-color: var(--accent);
  text-decoration: none;
}

.safety-card img {
  width: 3.2rem;
  height: 3.2rem;
  object-fit: contain;
}

/* FAQ */
.faq-block + .faq-block {
  margin-top: var(--space-4);
}

.faq-item {
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--line);
}

.faq-item h3 {
  margin: 0 0 var(--space-2);
  font-size: 1.1rem;
}

/* Footer */
.site-footer {
  margin-top: var(--space-6);
  padding: var(--space-5) 0 var(--space-6);
  background: color-mix(in srgb, var(--cobalt) 10%, var(--bg));
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: 1px solid var(--line);
  position: relative;
}

.site-footer::before {
  content: "";
  position: absolute;
  inset: auto 8% -1.5rem auto;
  width: 6rem;
  height: 6rem;
  background: url("/assets/images/mark.svg") center / contain no-repeat;
  opacity: 0.12;
  pointer-events: none;
}

.footer-grid {
  display: grid;
  gap: var(--space-4);
}

@media (min-width: 700px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
  }
}

.site-footer a {
  color: var(--ink);
  font-weight: 600;
}

.site-footer a:hover {
  color: var(--accent);
}

.footer-mark {
  width: 2.5rem;
  height: 2.5rem;
  opacity: 0.85;
}

/* Forms */
.form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.form input,
.form textarea,
.form select {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 1rem;
  background: #fff;
  color: var(--ink);
  margin-bottom: var(--space-3);
}

.form textarea {
  min-height: 8rem;
  resize: vertical;
}

/* Quiz */
.quiz-q {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: var(--surface);
  margin-bottom: var(--space-3);
}

.quiz-q fieldset {
  border: 0;
  padding: 0;
  margin: 0;
}

.quiz-q legend {
  font-weight: 700;
  margin-bottom: var(--space-2);
  padding: 0;
}

.quiz-q label {
  display: block;
  padding: 0.45rem 0;
  cursor: pointer;
}

.quiz-result {
  border: 1px solid var(--accent);
  border-radius: var(--radius-lg);
  padding: var(--space-3);
  background: color-mix(in srgb, var(--accent) 8%, white);
}

/* Timeline */
.timeline {
  list-style: none;
  padding: 0;
  margin: 0;
  border-left: 1px solid var(--line);
}

.timeline li {
  position: relative;
  padding: 0 0 var(--space-4) var(--space-4);
}

.timeline li::before {
  content: "";
  position: absolute;
  left: -0.4rem;
  top: 0.35rem;
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 50%;
  background: var(--accent);
  border: 1px solid #fff;
}

.timeline strong {
  color: var(--cobalt);
}

/* Decor images */
.decor {
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 1px solid var(--line);
}

.decor img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}

.decor--square img {
  aspect-ratio: 1;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .row {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:active {
    transform: none;
  }
}
