/* Fonts are self-hosted (no Google requests, better for privacy) */
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Bricolage Grotesque'; font-style: normal; font-weight: 800; font-display: swap; src: url('/fonts/bricolage-grotesque-latin-800-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fonts/dm-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fonts/dm-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'DM Sans'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fonts/dm-sans-latin-700-normal.woff2') format('woff2'); }

:root {
  --serve-coral: #FF5A5F;
  --coral-dark: #E8434A;
  /* Accessible coral for copy and white-labelled controls; brand coral stays decorative. */
  --coral-text: #B3262D;
  --coral-button: #B3262D;
  --coral-button-hover: #982027;
  --input-border: #84716F;
  --blush: #FFE3DF;
  --court-navy: #1F2440;
  --navy-soft: #4A4F6A;
  --ball-yellow: #E6F45A;
  --cream: #FFF8F2;
  --white: #FFFFFF;
  --radius: 16px;
  --heading: 'Bricolage Grotesque', 'Arial Rounded MT Bold', system-ui, sans-serif;
  --body: 'DM Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  color: var(--court-navy);
  background: var(--blush);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--coral-text); text-underline-offset: 3px; }
a:hover { color: var(--court-navy); }
:focus-visible { outline: 3px solid var(--court-navy); outline-offset: 3px; border-radius: 4px; }

.skip { position: absolute; left: -9999px; top: 8px; background: var(--court-navy); color: var(--white); padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.container { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }

h1, h2, h3 { font-family: var(--heading); line-height: 1.1; margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(40px, 9vw, 76px); font-weight: 800; }
h2 { font-size: clamp(30px, 5.5vw, 44px); font-weight: 800; }
h3 { font-size: 22px; font-weight: 600; }
p { margin: 0 0 12px; }
.small { font-size: 14px; }
.muted { color: var(--navy-soft); }

/* Buttons */
.btn {
  display: inline-block;
  background: var(--coral-button);
  color: var(--white);
  font-family: var(--heading);
  font-weight: 600;
  font-size: 19px;
  text-decoration: none;
  padding: 14px 30px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 6px 0 var(--coral-dark);
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { color: var(--white); background: var(--coral-button-hover); transform: translateY(2px); box-shadow: 0 4px 0 #C9353C; }
.btn:active { transform: translateY(6px); box-shadow: none; }
.btn-small { font-size: 15px; padding: 9px 18px; box-shadow: 0 4px 0 var(--coral-dark); }
.btn-block { width: 100%; margin-top: 8px; }
.btn[disabled] { opacity: .7; cursor: wait; }

.badge {
  display: inline-block;
  background: var(--ball-yellow);
  color: var(--court-navy);
  font-weight: 700;
  font-size: 15px;
  padding: 6px 14px;
  border-radius: 999px;
  transform: rotate(-2deg);
  margin-bottom: 18px;
}

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 227, 223, .92);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(31, 36, 64, .08);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: 12px; }
.logo { display: flex; align-items: center; min-width: 0; text-decoration: none; }
.logo-image { display: block; width: 230px; max-width: 100%; height: auto; }
.header-inner > .btn { flex-shrink: 0; }
@media (max-width: 440px) { .logo-image { width: 185px; } .btn-small { padding: 8px 14px; font-size: 14px; } }
@media (max-width: 340px) { .btn-small { font-size: 13px; padding: 7px 10px; } }

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 88px; }
.court-lines {
  position: absolute; right: -60px; top: -40px; width: 420px; height: 820px;
  fill: none; stroke: var(--serve-coral); stroke-width: 3; opacity: .22;
  transform: rotate(12deg);
}
.hero-inner { position: relative; }
.hero h1 { max-width: 14ch; }
.hero .accent { color: var(--coral-text); }
.lead { font-size: clamp(18px, 2.4vw, 22px); max-width: 34ch; margin-bottom: 28px; }
.hero .small { margin-top: 22px; }
@media (max-width: 600px) { .court-lines { right: -220px; opacity: .15; } .hero { padding: 48px 0 64px; } }

/* Sections */
.section { padding: 72px 0; }
.section-cream { background: var(--cream); }
.section-coral { background: var(--serve-coral); color: var(--court-navy); }
.section-title { margin-bottom: 14px; }
.section-lead { font-size: 19px; color: var(--navy-soft); max-width: 46ch; }
.center .section-lead { margin-left: auto; margin-right: auto; }
.light { color: var(--white); }
.light-text { color: var(--white); font-size: 19px; max-width: 34ch; }
.section-coral .light, .section-coral .light-text { color: inherit; }

/* Cards */
.cards { display: grid; gap: 18px; grid-template-columns: repeat(3, 1fr); margin-top: 32px; }
@media (max-width: 820px) { .cards { grid-template-columns: 1fr; } }
.card { background: var(--white); border-radius: var(--radius); padding: 26px; box-shadow: 0 2px 0 rgba(31, 36, 64, .06); }
.card p { color: var(--navy-soft); margin: 0; }
.card-icon {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--blush); color: var(--serve-coral);
  display: grid; place-items: center;
  font-family: var(--heading); font-weight: 800; font-size: 20px; margin-bottom: 14px;
}

/* Timeline */
.timeline { list-style: none; padding: 0; margin: 28px 0 0; position: relative; }
.timeline::before { content: ''; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: repeating-linear-gradient(var(--serve-coral) 0 6px, transparent 6px 12px); }
.timeline li { display: flex; gap: 20px; padding-bottom: 22px; position: relative; }
.timeline .dot { flex: 0 0 24px; height: 24px; border-radius: 50%; background: var(--ball-yellow); border: 3px solid var(--serve-coral); margin-top: 2px; position: relative; }
.timeline h3 { margin-bottom: 4px; font-size: 21px; }
.timeline p { margin: 0; color: var(--navy-soft); }

.stats-strip { background: var(--court-navy); color: var(--white); margin-top: 48px; padding: 28px 0; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); text-align: center; gap: 12px; }
.stats b { display: block; font-family: var(--heading); font-size: clamp(30px, 6vw, 44px); color: var(--ball-yellow); line-height: 1.1; }
.stats span { font-size: 15px; opacity: .9; }
@media (max-width: 560px) { .stats { grid-template-columns: repeat(2, 1fr); row-gap: 20px; } }
.section-cream:has(.stats-strip) { padding-bottom: 0; }

/* Matching steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 30px; }
@media (max-width: 820px) { .steps { grid-template-columns: 1fr; } }
.step { background: var(--white); border-radius: var(--radius); padding: 26px; border-top: 6px solid var(--serve-coral); }
.step-num { font-family: var(--heading); font-weight: 800; color: var(--coral-text); font-size: 15px; letter-spacing: .1em; }
.step p { color: var(--navy-soft); margin: 0; }

/* Who */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center; }
@media (max-width: 820px) { .two-col { grid-template-columns: 1fr; } }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.ticks li { background: rgba(255, 255, 255, .14); border-radius: 12px; padding: 14px 16px 14px 50px; position: relative; font-size: 18px; }
.ticks li::before {
  content: ''; position: absolute; left: 16px; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  border-radius: 50%; background: var(--ball-yellow);
  -webkit-mask: radial-gradient(circle, #000 98%, transparent 100%);
}
.ticks li::after { content: ''; position: absolute; left: 23px; top: 50%; width: 6px; height: 11px; margin-top: -8px; border: solid var(--court-navy); border-width: 0 2.5px 2.5px 0; transform: rotate(45deg); }

/* FAQ */
.faq { margin-top: 24px; display: grid; gap: 10px; }
.faq details { background: var(--white); border-radius: 12px; padding: 0 20px; }
.faq summary { cursor: pointer; font-weight: 700; padding: 18px 30px 18px 0; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 0; top: 12px; font-size: 26px; color: var(--coral-text); font-weight: 400; transition: transform .15s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 18px; margin: 0; color: var(--navy-soft); }

/* Form */
.form-card { background: var(--white); border-radius: 24px; padding: clamp(24px, 5vw, 44px); box-shadow: 0 10px 0 var(--serve-coral); }
form { margin-top: 24px; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .row { grid-template-columns: 1fr; gap: 0; } }
.field { margin-bottom: 16px; }
label { display: block; font-weight: 700; margin-bottom: 6px; font-size: 16px; }
.optional { font-weight: 400; color: var(--navy-soft); font-size: 14px; }
input[type=text], input[type=email], select {
  width: 100%; font: inherit; font-size: 17px; color: var(--court-navy);
  padding: 12px 14px; border: 2px solid var(--input-border); border-radius: 12px; background: var(--cream);
  appearance: none; -webkit-appearance: none;
}
select { background-image: linear-gradient(45deg, transparent 50%, var(--court-navy) 50%), linear-gradient(135deg, var(--court-navy) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px; }
input:focus, select:focus { border-color: var(--coral-text); outline: none; box-shadow: 0 0 0 3px rgba(255, 90, 95, .25); }
input[aria-invalid=true], select[aria-invalid=true] { border-color: #C9353C; }
.prefix { display: flex; align-items: stretch; }
.prefix span { display: grid; place-items: center; padding: 0 12px; background: var(--blush); border: 2px solid var(--input-border); border-right: 0; border-radius: 12px 0 0 12px; font-weight: 700; }
.prefix input { border-radius: 0 12px 12px 0; }
.hint { font-size: 14px; color: var(--navy-soft); margin: 6px 0 0; }
.error { color: #B3262D; font-size: 14px; font-weight: 500; margin: 6px 0 0; min-height: 0; }
.error:empty { display: none; }
.checkbox { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; }
.checkbox input { width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--serve-coral); flex: 0 0 24px; }
.checkbox label { font-weight: 500; }
.hp { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.form-message { margin-top: 12px; font-weight: 600; color: #B3262D; }
.form-message:empty { display: none; }
.thanks { text-align: center; padding: 20px 0; }
.thanks:focus { outline: none; }
.thanks-x { width: 88px; height: 88px; margin: 0 auto 12px; fill: var(--serve-coral); animation: pop .5s cubic-bezier(.34, 1.56, .64, 1); }
.thanks .section-lead { margin: 0 auto; }
@keyframes pop { from { transform: scale(.4) rotate(-20deg); opacity: 0; } to { transform: none; opacity: 1; } }

/* Footer */
.site-footer { background: var(--court-navy); color: var(--white); padding: 44px 0 32px; }
.footer-inner { display: grid; grid-template-columns: 1fr auto; gap: 20px 32px; align-items: start; }
.footer-logo { font-family: var(--heading); font-weight: 800; font-size: 22px; margin-bottom: 4px; }
.footer-logo img { display: block; width: 230px; max-width: 100%; height: auto; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; text-align: right; }
.site-footer a { color: var(--white); }
.site-footer a:hover { color: var(--ball-yellow); }
.footer-legal {
  grid-column: 1 / -1;
  margin: 8px 0 0;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .18);
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
  letter-spacing: .02em;
  opacity: .7;
}
@media (max-width: 600px) { .footer-inner { grid-template-columns: 1fr; } .footer-links { text-align: left; } }

/* Simple page (privacy, 404) */
.page { padding: 56px 0 80px; }
.page .container { background: var(--white); border-radius: 24px; padding: clamp(24px, 5vw, 48px); max-width: 780px; }
.page h2 { font-size: 24px; margin-top: 28px; }
.page li { margin-bottom: 6px; }
.todo { background: var(--ball-yellow); padding: 12px 16px; border-radius: 12px; font-weight: 500; }

/* Small, consistent feedback makes the existing interface feel responsive. */
a {
  transition: color .18s ease, text-decoration-color .18s ease;
  text-decoration-thickness: 1px;
}
a:hover { text-decoration-thickness: 2px; }
a:active { color: var(--coral-button-hover); }

.btn {
  transition: transform .18s cubic-bezier(.2, .75, .25, 1),
    box-shadow .18s ease, background-color .18s ease;
}
.btn:hover { transform: translateY(2px); }
.btn:active { transform: translateY(6px) scale(.99); }
.btn:focus-visible {
  outline: 3px solid var(--court-navy);
  outline-offset: 5px;
}

.card, .step {
  transition: transform .2s ease, box-shadow .2s ease;
}
@media (hover: hover) and (pointer: fine) {
  .card:hover, .step:hover {
    transform: translateY(-3px);
    box-shadow: 0 7px 18px rgba(31, 36, 64, .09);
  }
}

input[type=text], input[type=email], select {
  transition: border-color .16s ease, box-shadow .16s ease, background-color .16s ease;
}
input:focus, select:focus {
  box-shadow: 0 0 0 4px rgba(179, 38, 45, .16);
}

.faq details {
  transition: background-color .18s ease, box-shadow .18s ease;
}
.faq details[open] {
  box-shadow: inset 3px 0 0 var(--serve-coral), 0 2px 9px rgba(31, 36, 64, .06);
}
.faq summary {
  transition: color .16s ease;
}
.faq summary:hover { color: var(--coral-text); }
.faq summary:focus-visible { outline-offset: 1px; }
.faq summary::after {
  transition: transform .2s cubic-bezier(.2, .75, .25, 1), color .18s ease;
}
.faq details[open] p {
  animation: faq-answer-in .22s ease both;
}
@keyframes faq-answer-in {
  from { opacity: .55; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Added only when an element enters view; without JS everything stays visible. */
.motion-in {
  animation: settle-in .42s cubic-bezier(.2, .75, .25, 1);
}
@keyframes settle-in {
  from { opacity: .72; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

.footer-instagram {
  display: inline-flex;
  min-width: 44px;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  color: var(--white);
  vertical-align: middle;
}
.footer-instagram svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  transition: transform .18s cubic-bezier(.2, .75, .25, 1);
}
.footer-instagram svg .instagram-dot {
  fill: currentColor;
  stroke: none;
}
.footer-instagram:hover svg { transform: scale(1.08); }
.footer-instagram:active svg { transform: scale(.94); }
.footer-instagram:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: 1px;
}
.site-footer a:active { color: var(--ball-yellow); }

.thanks-x { animation: pop .5s cubic-bezier(.34, 1.56, .64, 1); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
  .btn:hover, .btn:active,
  .card:hover, .step:hover,
  .footer-instagram:hover svg, .footer-instagram:active svg {
    transform: none;
  }
}
