/* ============================================================
   YurLeague — theme overrides (beyond theme.json)
   Premium SaaS w/ a sports-broadcast edge.
   ============================================================ */

:root {
  --yl-shadow-card: 0 18px 50px rgba(0,0,0,.45);
  --yl-shadow-soft: 0 10px 30px rgba(14,17,22,.10);
  --yl-tracking-label: 0.18em;
  --yl-ring: 0 0 0 3px rgba(61,245,154,.45);
}

html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }

/* Anchor offset so the sticky header never covers section tops. */
:where(.wp-block-group)[id] { scroll-margin-top: 90px; }

/* ---------- Utility: ALL-CAPS eyebrow label ---------- */
.yl-eyebrow {
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: var(--yl-tracking-label);
  text-transform: uppercase;
  color: var(--wp--preset--color--turf);
  margin: 0 0 .25rem;
}
.yl-eyebrow.is-ink { color: var(--wp--preset--color--turf-ink); }
.yl-eyebrow.is-gold { color: var(--wp--preset--color--gold); }

/* Gradient turf text (for select headline words). */
.yl-grad {
  background: var(--wp--preset--gradient--turf);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* Tabular numerics for stats. */
.yl-num { font-variant-numeric: tabular-nums; font-feature-settings: "tnum"; }

/* ============================================================
   HEADER — sticky, transparent over hero, solid on scroll
   ============================================================ */
.yl-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  transition: background-color .25s ease, border-color .25s ease, backdrop-filter .25s ease;
  border-bottom: 1px solid transparent;
}
.yl-header.is-scrolled {
  background: rgba(14,17,22,.97);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom-color: var(--wp--preset--color--steel);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
}
.yl-header .wp-block-navigation { gap: clamp(.75rem, 2vw, 1.75rem); }
.yl-header .wp-block-navigation a {
  color: var(--wp--preset--color--cloud) !important;
  font-weight: 600;
  font-size: .98rem;
}
.yl-header .wp-block-navigation a:hover { color: var(--wp--preset--color--turf) !important; }
.yl-header .yl-logo img,
.yl-header .yl-logo svg { height: 38px; width: auto; display: block; }
.yl-header .wp-block-site-logo img { height: 38px; width: auto; }

/* Header CTA button stays compact. */
.yl-header .wp-block-button__link { padding: .55rem 1.1rem; font-size: .95rem; }

/* ============================================================
   BUTTONS
   ============================================================ */
.wp-block-button__link { transition: transform .12s ease, background-color .2s ease, box-shadow .2s ease; }
.wp-block-button__link:hover { transform: translateY(-1px); }
.wp-block-button__link:focus-visible { outline: none; box-shadow: var(--yl-ring); }

/* Ghost button (outline) — for dark sections. */
.is-style-ghost .wp-block-button__link,
.wp-block-button.is-style-ghost .wp-block-button__link {
  background: transparent !important;
  color: var(--wp--preset--color--cloud) !important;
  border: 1.5px solid var(--wp--preset--color--steel);
}
.is-style-ghost .wp-block-button__link:hover {
  border-color: var(--wp--preset--color--turf);
  color: var(--wp--preset--color--turf) !important;
  background: rgba(25,230,140,.07) !important;
}

/* Gold button — prestige CTA only. */
.is-style-gold .wp-block-button__link {
  background: var(--wp--preset--gradient--gold) !important;
  color: #2A2103 !important;
}

/* ============================================================
   SECTION RHYTHM
   ============================================================ */
.yl-dark { background: var(--wp--preset--color--midnight); color: var(--wp--preset--color--cloud); }
.yl-dark :where(h1,h2,h3,h4) { color: var(--wp--preset--color--cloud); }
.yl-dark p { color: #C7CFDA; }
.yl-slate { background: var(--wp--preset--color--slate); color: var(--wp--preset--color--cloud); }
.yl-light { background: var(--wp--preset--color--white); color: var(--wp--preset--color--ink); }
.yl-cloud { background: var(--wp--preset--color--cloud); color: var(--wp--preset--color--ink); }
.yl-muted { color: var(--wp--preset--color--fog) !important; }

/* Subtle turf glow behind dark hero/sections. */
.yl-glow { position: relative; overflow: clip; }
.yl-glow::before {
  content: "";
  position: absolute;
  inset: -20% 30% auto -10%;
  height: 60vh;
  background: radial-gradient(60% 60% at 30% 20%, rgba(25,230,140,.16), transparent 70%);
  pointer-events: none;
  z-index: 0;
}
.yl-glow > * { position: relative; z-index: 1; }

/* ============================================================
   HERO
   ============================================================ */
.yl-hero h1 { letter-spacing: -.03em; }
.yl-hero .yl-sub { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: #C7CFDA; max-width: 42ch; }

/* Hero product frame (browser chrome). */
.yl-frame {
  border: 1px solid var(--wp--preset--color--steel);
  border-radius: 16px;
  background: var(--wp--preset--color--slate);
  box-shadow: var(--yl-shadow-card);
  overflow: hidden;
}
.yl-frame__bar {
  display: flex;
  gap: 7px;
  align-items: center;
  padding: 11px 14px;
  background: #11161C;
  border-bottom: 1px solid var(--wp--preset--color--steel);
}
.yl-frame__bar span { width: 11px; height: 11px; border-radius: 50%; background: var(--wp--preset--color--steel); display: block; }
.yl-frame__bar span:nth-child(1) { background: #FF5C5C; }
.yl-frame__bar span:nth-child(2) { background: #F5C84B; }
.yl-frame__bar span:nth-child(3) { background: #19E68C; }
.yl-frame img { display: block; width: 100%; height: auto; }

/* ============================================================
   PROBLEM — scattered chips
   ============================================================ */
.yl-chips { display: flex; flex-wrap: wrap; gap: .6rem; justify-content: center; }
.yl-chip {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .5rem .9rem;
  border-radius: 999px;
  border: 1px solid var(--wp--preset--color--steel);
  background: #fff;
  box-shadow: var(--yl-shadow-soft);
  font-weight: 600; font-size: .92rem;
  color: var(--wp--preset--color--ink);
}
.yl-chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--wp--preset--color--fog); }
.yl-chip.is-you { border-color: var(--wp--preset--color--turf-ink); color: var(--wp--preset--color--turf-ink); }
.yl-chip.is-you .dot { background: var(--wp--preset--color--turf-ink); }

/* ============================================================
   FEATURES — module grid
   ============================================================ */
.yl-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.yl-feature {
  background: #fff;
  border: 1px solid #E6EAEF;
  border-radius: 18px;
  padding: 1.6rem;
  box-shadow: var(--yl-shadow-soft);
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.yl-feature:hover { transform: translateY(-3px); box-shadow: 0 16px 38px rgba(14,17,22,.14); border-color: #D3DBE3; }
.yl-feature__icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center;
  background: linear-gradient(145deg,#E9FBF2,#D2F6E4);
  color: var(--wp--preset--color--turf-ink);
  margin-bottom: 1rem;
}
.yl-feature__icon svg { width: 24px; height: 24px; }
.yl-feature h3 { margin: 0 0 .4rem; font-size: 1.18rem; }
.yl-feature p { margin: 0; color: #4C5560; font-size: 1rem; line-height: 1.55; }

/* ============================================================
   PROOF — screenshot cards (dark)
   ============================================================ */
.yl-proof { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.yl-shot {
  background: var(--wp--preset--color--slate);
  border: 1px solid var(--wp--preset--color--steel);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--yl-shadow-card);
}
.yl-shot img { display: block; width: 100%; height: auto; border-bottom: 1px solid var(--wp--preset--color--steel); }
.yl-shot__cap { padding: 1rem 1.25rem; font-size: .98rem; color: #C7CFDA; }
.yl-shot__cap strong { color: var(--wp--preset--color--cloud); display: block; margin-bottom: .15rem; }

/* ============================================================
   HOW IT WORKS — steps
   ============================================================ */
.yl-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; counter-reset: step; }
.yl-step {
  position: relative;
  padding: 1.75rem 1.5rem 1.5rem;
  border-radius: 18px;
  background: var(--wp--preset--color--cloud);
  border: 1px solid #E6EAEF;
}
.yl-step__n {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--wp--preset--color--midnight);
  color: var(--wp--preset--color--turf);
  font-weight: 800; font-size: 1.2rem;
  margin-bottom: .9rem;
}
.yl-step h3 { margin: 0 0 .4rem; font-size: 1.18rem; }
.yl-step p { margin: 0; color: #4C5560; }

/* ============================================================
   PRICING TIERS
   ============================================================ */
.yl-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
.yl-tier {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #E6EAEF;
  border-radius: 20px;
  padding: 2rem 1.75rem;
  box-shadow: var(--yl-shadow-soft);
}
.yl-tier--featured {
  border: 1.5px solid var(--wp--preset--color--turf);
  box-shadow: 0 24px 60px rgba(25,230,140,.18);
  position: relative;
  transform: translateY(-6px);
}
.yl-tier__badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--wp--preset--gradient--turf);
  color: #06231a; font-weight: 800; font-size: .72rem;
  letter-spacing: .12em; text-transform: uppercase;
  padding: .35rem .85rem; border-radius: 999px;
}
.yl-tier__name { font-weight: 800; font-size: 1.05rem; letter-spacing: -.01em; }
.yl-tier__for { color: var(--wp--preset--color--fog); font-size: .95rem; margin: .1rem 0 1rem; }
.yl-tier__price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.yl-tier__price span { font-size: 1rem; font-weight: 600; color: var(--wp--preset--color--fog); }
.yl-tier__rule { border: 0; border-top: 1px solid #E6EAEF; margin: 1.4rem 0; }
.yl-list { list-style: none; margin: 0 0 1.75rem; padding: 0; display: grid; gap: .65rem; }
.yl-list li { position: relative; padding-left: 1.7rem; color: #3B434D; line-height: 1.45; }
.yl-list li::before {
  content: ""; position: absolute; left: 0; top: .2em;
  width: 18px; height: 18px; border-radius: 50%;
  background: #E9FBF2 url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%230C9C5F' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/12px no-repeat;
}
.yl-tier .wp-block-button { margin-top: auto; }
.yl-tier .wp-block-button__link { width: 100%; text-align: center; }
.yl-tier--featured .wp-block-button__link { /* primary green default is fine */ }
.yl-tier__plus { color: var(--wp--preset--color--turf-ink); font-weight: 700; }

/* Add-ons strip. */
.yl-addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px,1fr)); gap: 1rem; }
.yl-addon {
  border: 1px solid var(--wp--preset--color--steel);
  border-radius: 14px; padding: 1.1rem 1.25rem;
  background: var(--wp--preset--color--slate);
}
.yl-addon strong { display: block; color: var(--wp--preset--color--cloud); }
.yl-addon span { color: var(--wp--preset--color--turf); font-weight: 700; }

/* ============================================================
   FAQ
   ============================================================ */
.yl-faq { max-width: 760px; margin-inline: auto; display: grid; gap: .75rem; }
.yl-faq details {
  border: 1px solid #E6EAEF;
  border-radius: 14px;
  background: #fff;
  padding: 0 1.25rem;
  box-shadow: var(--yl-shadow-soft);
}
.yl-faq summary {
  list-style: none; cursor: pointer;
  font-weight: 700; font-size: 1.08rem;
  padding: 1.1rem 0;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
.yl-faq summary::-webkit-details-marker { display: none; }
.yl-faq summary::after {
  content: "+"; font-weight: 800; font-size: 1.4rem; color: var(--wp--preset--color--turf-ink);
  transition: transform .2s ease; line-height: 1;
}
.yl-faq details[open] summary::after { transform: rotate(45deg); }
.yl-faq details > p { margin: 0 0 1.1rem; color: #4C5560; }

/* ============================================================
   DEMO FORM
   ============================================================ */
.yl-form { display: grid; gap: 1.1rem; max-width: 560px; }
.yl-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem; }
.yl-field { display: grid; gap: .35rem; text-align: left; }
.yl-field label { font-weight: 700; font-size: .92rem; color: var(--wp--preset--color--cloud); }
.yl-field input, .yl-field select, .yl-field textarea {
  width: 100%;
  background: #11161C;
  border: 1px solid var(--wp--preset--color--steel);
  border-radius: 10px;
  color: var(--wp--preset--color--cloud);
  padding: .8rem .9rem;
  font: inherit; font-size: 1rem;
}
.yl-field textarea { min-height: 120px; resize: vertical; }
.yl-field input:focus, .yl-field select:focus, .yl-field textarea:focus {
  outline: none; border-color: var(--wp--preset--color--turf); box-shadow: var(--yl-ring);
}
.yl-field select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%238A95A5' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right .9rem center; padding-right: 2.4rem; }
.yl-hp { position: absolute; left: -9999px; opacity: 0; }
.yl-submit button, button.yl-submit {
  background: var(--wp--preset--gradient--turf); color: #06231a;
  border: 0; border-radius: 12px; font-weight: 800; font-size: 1.05rem;
  padding: .95rem 1.6rem; cursor: pointer; transition: transform .12s ease;
}
.yl-submit button:hover { transform: translateY(-1px); }
.yl-alert { border-radius: 12px; padding: 1rem 1.25rem; font-weight: 600; margin-bottom: 1.5rem; }
.yl-alert.is-success { background: rgba(25,230,140,.12); border: 1px solid var(--wp--preset--color--turf); color: var(--wp--preset--color--turf); }
.yl-alert.is-error { background: rgba(255,92,92,.12); border: 1px solid #FF5C5C; color: #FF8585; }

/* ============================================================
   FOOTER
   ============================================================ */
.yl-footer { background: var(--wp--preset--color--midnight); color: var(--wp--preset--color--fog); }
.yl-footer a { color: var(--wp--preset--color--fog) !important; }
.yl-footer a:hover { color: var(--wp--preset--color--turf) !important; }
.yl-footer .yl-logo img { height: 34px; width: auto; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .yl-features, .yl-steps { grid-template-columns: repeat(2,1fr); }
  .yl-tiers { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .yl-tier--featured { transform: none; order: -1; }
  .yl-proof { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .yl-features, .yl-steps { grid-template-columns: 1fr; }
  .yl-form .row2 { grid-template-columns: 1fr; }
  /* Hide the text links on mobile but keep the CTA button visible. */
  .yl-header .wp-block-navigation a:not(.wp-block-button__link) { display: none; }
  .yl-header__inner { justify-content: space-between; }
  :where(.wp-block-group)[id] { scroll-margin-top: 72px; }
}
