/* Traffic Betting - Editorial Sportsbook
   Light paper base, ink navy type, pitch-green accent.
   ------------------------------------------------------------------ */

:root {
  --tb-paper: #F7F5F0;
  --tb-paper-2: #EFEBE2;
  --tb-grass: #E8EEFA;
  --tb-ink: #13213A;
  --tb-ink-2: #5B6577;
  --tb-pitch: #2457C5;
  --tb-pitch-dark: #1A43A0;
  --tb-pitch-light: #4A7BE0;
  --tb-amber: #E0A526;
  --tb-line: #D9D5CC;
  --tb-white: #FFFFFF;
  --tb-radius: 18px;
  --tb-ease: cubic-bezier(.2,.7,.2,1);
}

html { scroll-behavior: smooth; }
body { background: var(--tb-paper); color: var(--tb-ink); -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; height: auto; display: block; }
::selection { background: #C4D4F2; color: var(--tb-ink); }

/* Typography helpers ------------------------------------------------ */
.tb-lead { font-size: 1.2rem; color: var(--tb-ink-2); }
.tb-muted { color: var(--tb-ink-2); }
h2.tb-h2 { max-width: 20ch; margin: 0 0 1.25rem; }
.tb-h2 + p { margin-top: 0; }
p { max-width: 68ch; }

/* Sections ------------------------------------------------------------ */
.tb-section { padding-top: clamp(3.5rem, 8vw, 6.5rem); padding-bottom: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.tb-section--grass { background: var(--tb-grass); }
.tb-section--grass::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--tb-line), transparent);
}
.tb-section--line { border-top: 1px solid var(--tb-line); }
.tb-section--pitch { background: linear-gradient(135deg, #1A43A0 0%, #4A7BE0 100%); color: var(--tb-white); }
.tb-section--pitch h2, .tb-section--pitch p, .tb-section--pitch label { color: var(--tb-white); }

/* Header ---------------------------------------------------------------- */
.tb-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--tb-paper) 86%, transparent);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s var(--tb-ease), box-shadow .3s var(--tb-ease);
  padding-top: .9rem; padding-bottom: .9rem;
}
.tb-header.is-stuck { border-bottom-color: var(--tb-line); box-shadow: 0 10px 30px -20px rgba(19,33,58,.25); }
.tb-logo { display: inline-flex; align-items: center; gap: .55rem; text-decoration: none; color: var(--tb-ink); }
.tb-logo__mark {
  width: 34px; height: 34px; border-radius: 10px;
  background: linear-gradient(135deg, #1A43A0, #4A7BE0);
  display: grid; place-items: center; flex: none;
}
.tb-logo__text { white-space: nowrap; font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 1.15rem; letter-spacing: -.02em; line-height: 1; }
.tb-logo__text b { color: var(--tb-pitch); font-weight: inherit; }
.tb-nav .wp-block-navigation-item__content { font-weight: 500; font-size: .95rem; color: var(--tb-ink-2); padding: .4rem .2rem; position: relative; }
.tb-nav .wp-block-navigation-item__content::after {
  content: ""; position: absolute; left: .2rem; right: .2rem; bottom: .1rem; height: 2px;
  background: var(--tb-pitch); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--tb-ease);
}
.tb-nav .wp-block-navigation-item__content:hover { color: var(--tb-ink); }
.tb-nav .wp-block-navigation-item__content:hover::after { transform: scaleX(1); }
.tb-header .wp-block-buttons { margin: 0; }
.tb-btn-sm .wp-block-button__link { padding: .6rem 1.15rem; font-size: .9rem; }

/* Mobile overlay menu */
.tb-nav .wp-block-navigation__responsive-container.is-menu-open { background: var(--tb-paper); }
.tb-nav .wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation-item__content { font-size: 1.3rem; color: var(--tb-ink); font-family: var(--wp--preset--font-family--display); font-weight: 700; }
.tb-nav .wp-block-navigation__responsive-container-open, .tb-nav .wp-block-navigation__responsive-container-close { color: var(--tb-ink); }

/* Buttons -------------------------------------------------------------- */
.wp-block-button__link {
  transition: transform .25s var(--tb-ease), box-shadow .25s var(--tb-ease), background .25s var(--tb-ease);
  box-shadow: 0 8px 20px -12px rgba(26,67,160,.6);
}
.wp-block-button__link:hover { transform: translateY(-1px); box-shadow: 0 14px 26px -14px rgba(26,67,160,.7); }
.wp-block-button.is-style-outline .wp-block-button__link,
.tb-btn-outline .wp-block-button__link {
  background: transparent; color: var(--tb-ink); border: 1.5px solid var(--tb-line); box-shadow: none;
}
.tb-btn-outline .wp-block-button__link:hover { border-color: var(--tb-ink); background: var(--tb-white); }
.tb-btn-arrow .wp-block-button__link::after {
  content: "→"; display: inline-block; margin-left: .5rem; transition: transform .25s var(--tb-ease);
}
.tb-btn-arrow .wp-block-button__link:hover::after { transform: translateX(4px); }
.tb-section--pitch .wp-block-button__link { background: var(--tb-white); color: var(--tb-pitch-dark); }
.tb-section--pitch .wp-block-button__link:hover { background: var(--tb-paper); }

/* Hero ------------------------------------------------------------------ */
.tb-hero { padding-top: clamp(2.5rem, 6vw, 5rem); overflow: hidden; }
.tb-hero__grid { align-items: center; }
.tb-hero h1 { position: relative; margin: 0 0 1.5rem; }
.tb-hero h1::after {
  content: ""; display: block; width: 72px; height: 6px; border-radius: 3px; margin-top: 1rem;
  background: linear-gradient(90deg, var(--tb-pitch), var(--tb-amber));
}
.tb-hero p { font-size: 1.1rem; }
.tb-hero .wp-block-buttons { margin-top: 1.75rem; }
.tb-hero__art { position: relative; }
.tb-hero__art::before {
  content: ""; position: absolute; inset: 10% -10% -10% 10%; z-index: -1; border-radius: 40px;
  background: radial-gradient(60% 60% at 50% 40%, #D6E1F6 0%, transparent 70%);
}
.tb-hero__art img { width: 100%; filter: drop-shadow(0 30px 40px rgba(19,33,58,.10)); }

/* Numbers --------------------------------------------------------------- */
.tb-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; margin-top: 2.25rem; }
.tb-stats__group {
  background: var(--tb-white); border: 1px solid var(--tb-line); border-radius: 22px; padding: 1.5rem;
  display: grid; gap: 1.25rem; align-content: start;
}
.tb-stats__title {
  margin: 0; font-size: .85rem; font-family: var(--wp--preset--font-family--mono); font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--tb-ink-2);
  display: flex; align-items: center; gap: .75rem;
}
.tb-stats__title::after { content: ""; flex: 1; height: 1px; background: var(--tb-line); }
.tb-stats__tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.tb-stat {
  position: relative; display: grid; gap: .5rem; align-content: start;
  background: linear-gradient(180deg, #F3F6FD 0%, var(--tb-grass) 100%);
  border: 1px solid #D6E1F6; border-radius: 16px; padding: 1.25rem 1.25rem 1.35rem;
}
.tb-stat__icon {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--tb-white); color: var(--tb-pitch-dark); border: 1px solid #D6E1F6;
}
.tb-stat__icon svg { width: 20px; height: 20px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tb-stat__num {
  font-family: var(--wp--preset--font-family--mono); font-weight: 700; font-size: 3rem; line-height: 1; letter-spacing: -.03em;
  color: var(--tb-pitch-dark); margin-top: .35rem;
}
.tb-stat__label { font-size: .95rem; line-height: 1.45; color: var(--tb-ink); }
.tb-stat__chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .25rem; }
/* Numbers are built from regular blocks, so reset the block gap margins */
.tb-stats > *, .tb-stats__group > *, .tb-stats__tiles > *, .tb-stat > * { margin-block: 0; }
.tb-stat > .tb-stat__num { margin-top: .35rem; }
.tb-stat > .tb-stat__chips { margin-top: .25rem; }
.tb-stat__chips i {
  font-style: normal; font-family: var(--wp--preset--font-family--mono); font-size: .72rem; font-weight: 600;
  padding: .22rem .55rem; border-radius: 999px; background: var(--tb-white); border: 1px solid #C4D4F2; color: var(--tb-pitch-dark);
}

/* Two-column text + art ------------------------------------------------- */
.tb-split { align-items: center; gap: clamp(1.5rem, 5vw, 4rem); }
.tb-split img { filter: drop-shadow(0 24px 34px rgba(19,33,58,.08)); }

/* Cards ------------------------------------------------------------------- */
.tb-cards { gap: 1.25rem; }
.tb-card {
  background: var(--tb-white); border: 1px solid var(--tb-line); border-radius: var(--tb-radius);
  padding: 1.75rem; height: 100%; position: relative; overflow: hidden;
  transition: box-shadow .3s var(--tb-ease);
}
.tb-card::before {
  content: ""; position: absolute; top: 0; left: 0; height: 4px; width: 56px;
  background: linear-gradient(90deg, var(--tb-pitch), var(--tb-pitch-light));
}
.tb-card:hover { box-shadow: 0 24px 40px -24px rgba(19,33,58,.25); }
.tb-card h3 { margin: 0 0 .75rem; }
.tb-card p { margin: 0; color: var(--tb-ink-2); }
.tb-card__icon {
  width: 48px; height: 48px; border-radius: 12px; margin-bottom: 1.1rem;
  background: var(--tb-grass); color: var(--tb-pitch-dark); display: grid; place-items: center;
}
.tb-card__icon svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tb-card--wide { padding: 2.25rem; }
.tb-card--wide .tb-card__icon { width: 56px; height: 56px; }

/* Compliance ------------------------------------------------------------------ */
.tb-shield { display: grid; place-items: center; }
.tb-shield__ring {
  width: 160px; height: 160px; border-radius: 50%;
  background: var(--tb-white); border: 1px solid var(--tb-line);
  display: grid; place-items: center; position: relative;
  box-shadow: 0 30px 50px -30px rgba(19,33,58,.25);
}
.tb-shield__ring::before, .tb-shield__ring::after {
  content: ""; position: absolute; inset: -14px; border-radius: 50%; border: 1px dashed var(--tb-pitch); opacity: .5;
}
.tb-shield__ring::after { inset: -30px; opacity: .25; }
.tb-shield__ring svg { width: 72px; height: 72px; stroke: var(--tb-pitch); fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tb-badges { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.tb-badges { list-style: none; padding: 0; }
.tb-badges li {
  font-family: var(--wp--preset--font-family--mono); font-size: .8rem; font-weight: 600;
  padding: .45rem .85rem; border-radius: 999px; background: var(--tb-white); border: 1px solid var(--tb-line); color: var(--tb-ink);
}
.tb-badges li:first-child { border-color: var(--tb-amber); color: #8A6410; }

/* Markets list ------------------------------------------------------------- */
.tb-markets { list-style: none; margin: 1.5rem 0 0; padding: 0; border-top: 1px solid var(--tb-line); }
.tb-markets li { position: relative; margin: 0; padding: 1.1rem 0 1.1rem 2rem; border-bottom: 1px solid var(--tb-line); }
.tb-markets li::before { content: ""; position: absolute; left: 0; top: 1.65rem; width: 10px; height: 10px; border-radius: 50%; background: var(--tb-pitch); box-shadow: 0 0 0 4px var(--tb-grass); }
.tb-markets li strong { color: var(--tb-ink); }

/* Steps ---------------------------------------------------------------------- */
.tb-steps { gap: 1.25rem; }
.tb-step {
  position: relative; background: var(--tb-white); border: 1px solid var(--tb-line); border-radius: 18px;
  padding: 1.5rem 1.5rem 1.6rem; display: flex; flex-direction: column;
}
.tb-step::after {
  content: ""; position: absolute; top: 50%; right: -1.25rem; width: 1.25rem; height: 2px;
  background: linear-gradient(90deg, var(--tb-pitch) 0%, #B4C8EE 100%);
}
.tb-steps .wp-block-column:last-child .tb-step::after, .tb-step:last-child::after { display: none; }
.tb-step__head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 1.1rem; }
.tb-step__icon {
  width: 48px; height: 48px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--tb-pitch-dark), var(--tb-pitch-light)); color: var(--tb-white);
  box-shadow: 0 10px 20px -12px rgba(26,67,160,.7);
}
.tb-step__icon svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.tb-step__num {
  font-family: var(--wp--preset--font-family--display); font-weight: 800; font-size: 2.6rem; line-height: 1; letter-spacing: -.04em;
  color: var(--tb-grass); -webkit-text-stroke: 1px #C4D4F2;
}
.tb-step h3 { margin: 0 0 .55rem; font-size: 1.15rem; }
.tb-step p { margin: 0; color: var(--tb-ink-2); font-size: .97rem; }

/* FAQ --------------------------------------------------------------------------- */
.tb-faq { max-width: 820px; margin-left: auto; margin-right: auto; }
.tb-faq .wp-block-details {
  background: var(--tb-white); border: 1px solid var(--tb-line); border-radius: 14px;
  padding: 0; margin: 0 0 .75rem; overflow: hidden; transition: border-color .3s var(--tb-ease);
}
.tb-faq .wp-block-details[open] { border-color: var(--tb-pitch); }
.tb-faq summary {
  list-style: none; cursor: pointer; padding: 1.1rem 3.25rem 1.1rem 1.4rem; position: relative;
  font-family: var(--wp--preset--font-family--display); font-weight: 700; font-size: 1.08rem; line-height: 1.3;
}
.tb-faq summary::-webkit-details-marker { display: none; }
.tb-faq summary::after {
  content: ""; position: absolute; right: 1.2rem; top: 50%; width: 28px; height: 28px; border-radius: 50%;
  transform: translateY(-50%); background: var(--tb-grass);
  background-image: linear-gradient(var(--tb-pitch-dark), var(--tb-pitch-dark)), linear-gradient(var(--tb-pitch-dark), var(--tb-pitch-dark));
  background-size: 12px 2px, 2px 12px; background-position: center; background-repeat: no-repeat;
  transition: transform .3s var(--tb-ease);
}
.tb-faq .wp-block-details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.tb-faq .wp-block-details p { margin: 0; padding: 0 1.4rem 1.25rem; color: var(--tb-ink-2); max-width: none; }

/* CTA + form ------------------------------------------------------------------------ */

/* Messengers --------------------------------------------------------------------- */
.tb-msgr { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; position: relative; z-index: 1; }
.tb-msgr__btn {
  display: flex; align-items: center; gap: .75rem; text-decoration: none;
  padding: 1rem 1.25rem; border-radius: 14px; background: var(--tb-white); border: 1px solid var(--tb-line);
  color: var(--tb-ink); font-weight: 600; font-size: 1.02rem;
  transition: box-shadow .25s var(--tb-ease), border-color .25s var(--tb-ease), background .25s var(--tb-ease), color .25s var(--tb-ease);
}
.tb-msgr__btn svg { flex: none; }
.tb-msgr__btn span { flex: 1; }
.tb-msgr__btn::after { content: "→"; opacity: .45; }
.tb-msgr--whatsapp { color: #1DA851; }
.tb-msgr--telegram { color: #229ED9; }
.tb-msgr--signal   { color: #3A76F0; }
.tb-msgr--line     { color: #06A54A; }
.tb-msgr__btn:hover { box-shadow: 0 18px 30px -22px rgba(19,33,58,.35); border-color: currentColor; }
.tb-msgr--whatsapp:hover { background: #1DA851; color: #fff; }
.tb-msgr--telegram:hover { background: #229ED9; color: #fff; }
.tb-msgr--signal:hover   { background: #3A76F0; color: #fff; }
.tb-msgr--line:hover     { background: #06A54A; color: #fff; }

/* Footer -------------------------------------------------------------------------- */
.tb-footer { background: var(--tb-paper-2); border-top: 1px solid var(--tb-line); padding-top: 3rem; padding-bottom: 2rem; }
.tb-footer p { color: var(--tb-ink-2); font-size: .9rem; }
.tb-footer .tb-logo__text { font-size: 1.05rem; }
.tb-footer__meta { display: flex; flex-wrap: wrap; gap: 1rem 1.5rem; align-items: center; font-size: .85rem; color: var(--tb-ink-2); border-top: 1px solid var(--tb-line); padding-top: 1.25rem; margin-top: 2rem; }
.tb-18 {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%;
  border: 2px solid var(--tb-ink); font-family: var(--wp--preset--font-family--mono); font-weight: 700; font-size: .75rem; color: var(--tb-ink);
}
.tb-footer .wp-block-navigation-item__content { color: var(--tb-ink-2); font-size: .9rem; }
.tb-footer .wp-block-navigation-item__content:hover { color: var(--tb-ink); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition-duration: 0s !important; }
}

/* Responsive ------------------------------------------------------------------------ */
@media (max-width: 1024px) {
  .tb-step::after { display: none; }
  .tb-hero__art { max-width: 520px; margin: 0 auto; }
}
@media (max-width: 782px) {
  .wp-block-columns.tb-cards .wp-block-column, .wp-block-columns.tb-steps .wp-block-column { flex-basis: 100% !important; }
  .tb-steps { gap: 1rem; }
  .tb-hero h1 { font-size: 2.6rem; }
  .tb-stats { grid-template-columns: 1fr; }
  .tb-shield__ring { width: 130px; height: 130px; }
}
@media (max-width: 420px) {
  .tb-msgr { grid-template-columns: 1fr; }
  .tb-section { padding-top: 3rem; padding-bottom: 3rem; }
  .tb-hero h1 { font-size: 2.2rem; }
  .tb-hero h1::after { width: 52px; height: 5px; }
  h2.tb-h2 { font-size: 1.75rem; }
  .tb-card, .tb-stats__group, .tb-card--wide { padding: 1.1rem; }
  .tb-stats__tiles { grid-template-columns: 1fr; }
  .tb-stat__num { font-size: 2.5rem; }
  .tb-step { padding: 1.2rem; }
  .tb-faq summary { padding: 1rem 2.75rem 1rem 1.1rem; font-size: 1rem; }
  .tb-faq .wp-block-details p { padding: 0 1.1rem 1rem; }
  .tb-footer__meta { flex-direction: column; align-items: flex-start; }
  .tb-header .tb-btn-sm .wp-block-button__link { padding: .5rem .9rem; font-size: .85rem; }
  .wp-block-button__link { width: 100%; text-align: center; }
  .wp-block-buttons > .wp-block-button { width: 100%; }
}
