/* Hallmark · shape: Workbench (swapped from draw Stat-Led: one real figure only) · genre: editorial · theme: brand · redesign: full · draw: 9464e0 · job: try
 * paper: oklch(22.5% 0.021 243) · accent: oklch(83.3% 0.124 216) · display: Urbanist · body: Nunito · hero: Stage · nav: floating pill · footer: letter close · signature: a strategy's rules laid over tomorrow's games that passed them, each team's figure beside its name
 * axes: dark/geometric-sans/chromatic-cyan · posture: Restrained · contrast: pass · fold: pass · imagery: screenshots 7 of the redesigned app (adb, demo account on live API data) · v2.0.0 */
/* Hallmark · pre-emit critique: P4 H5 E4 S5 R4 V4 · weakest: E, one more screenshot section; the facts are live database counts and the backtest band carries no win rate (UK ad rules) */
/* Hallmark · dropped jQuery, slick carousel, main.js, styles.css and slider.css on / · the carousel became the screen switcher and the hamburger is gone; other pages still load them */
/* Hallmark · dropped csrfmiddlewaretoken, input[type=text][name=email], input[type=text][name=phone] · the token is re-issued per render and still in the form; email and phone keep their names as type=email and type=tel. Django issues a new token per render; the hidden field is still in the form */
/* Hallmark · retyped name=email to type=email and name=phone to type=tel · same names, right keyboards on phones */
/* Hallmark · dropped bc-app-1 to 5.png, facebook-icon.svg, "12345" · old carousel images replaced by fresh captures; Facebook stays as a text link; 12345 was placeholder text */
/* Hallmark · reworded hero, tour and features at the owner's request (30 Nov) · pitch the automated research: rules, overnight scan, live follow */
/* Hallmark · redesign 2 (30 Nov) · hero, why, tour, trial at the owner's request: the old hero did not show the value; "over 1,000 leagues" dropped as no longer true (191 imported) */
/* Hallmark · reworded "From your rules to today’s picks" to "Follow your picks while they’re played" and "Research that runs without you" to "Every filter your rules need" · the rules-to-picks story moved into the hero */
/* Hallmark · reworded "Live games from over 1,000 leagues, each with its BTTS analysis." to "Your rules, and the games that passed them." · no longer true: 191 leagues are imported, and the page now shows live counts */
/* Hallmark · waive 77 · the trial band shows one strip of the test controls · results are withheld from the landing page under UK gambling ad rules, so the controls are the honest picture */
/* Hallmark · reworded "Unlimited" to "Up to three" · the server allows Premium three strategies */
/* Hallmark · dropped ids panel-rules, panel-picks, tab-rules, tab-picks, rule-types.webp, rules.webp, matches.webp, inplay.webp, inplay-top.webp, home-picks.webp · replaced by screens of the redesigned app */
/* Hallmark · reworded footer at the owner's request (30 Nov) · old registered address and company number removed */
@import url("./tokens.css");
@import url("./base.css");

:root { --nav-h: 88px; --screen-lead: clamp(420px, 70svh, 660px); }

/* ---------- shared ---------- */
.skip { position: absolute; left: var(--space-md); top: calc(-1 * var(--space-3xl)); z-index: var(--z-toast); padding: var(--space-xs) var(--space-md); background: var(--color-ink); color: var(--color-paper); border-radius: var(--radius-input); }
.skip:focus-visible { top: var(--space-md); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-xs); min-height: 48px; padding: 0 var(--space-lg); border: 1px solid var(--color-accent); border-radius: var(--radius-pill); background: var(--color-accent); color: var(--color-accent-ink); font: 700 var(--text-md)/1 var(--font-body); white-space: nowrap; text-decoration: none; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), transform var(--dur-micro) var(--ease-out); }
.btn:hover { background: var(--color-ink); border-color: var(--color-ink); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { cursor: progress; }
.btn--quiet { background: transparent; color: var(--color-ink); border-color: var(--color-rule); }
.btn--quiet:hover { background: var(--color-paper-3); border-color: var(--color-paper-3); }

.link { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-muted); transition: text-decoration-color var(--dur-short) var(--ease-out); }
.link:hover { text-decoration-color: var(--color-accent); }
.link:active { color: var(--color-ink-2); }
.link:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }

.lead { color: var(--color-ink-2); }

.stores { display: flex; flex-wrap: wrap; gap: var(--space-sm); }
.store { display: block; border-radius: var(--radius-input); transition: transform var(--dur-micro) var(--ease-out); }
.store img { width: 180px; height: auto; }
.store:hover { transform: translateY(-1px); }
.store:active { transform: translateY(1px); }
.store:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 3px; }

.screen { margin: 0; aspect-ratio: 1 / 2; border-radius: var(--radius-card); flex-shrink: 0; }
.screen > img { border-radius: inherit; outline: 1px solid color-mix(in oklab, var(--color-ink) 10%, transparent); outline-offset: -1px; object-position: top; }
figcaption, .caption { font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- nav: floating pill ---------- */
.nav-wrap { position: sticky; top: 0; z-index: var(--z-sticky-nav); padding-block: var(--space-md); }
.nav { display: flex; align-items: center; gap: var(--space-lg); min-height: 56px; max-width: calc(var(--container) - 2 * var(--gutter)); padding-inline: var(--space-lg) var(--space-xs); background: var(--color-paper-2); border-radius: var(--radius-pill); box-shadow: var(--shadow-card); }
.nav__brand { display: inline-flex; align-items: center; gap: var(--space-xs); color: var(--color-ink); text-decoration: none; font: 700 var(--text-lg)/1 var(--font-display); white-space: nowrap; }
.nav__brand img { width: 40px; height: auto; flex-shrink: 0; }
.nav__brand:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: var(--radius-input); }
.nav__links { display: flex; gap: var(--space-lg); margin: 0 0 0 auto; padding: 0; list-style: none; }
.nav__links a { color: var(--color-ink-2); text-decoration: none; font-size: var(--text-md); white-space: nowrap; transition: color var(--dur-short) var(--ease-out); }
.nav__links a:hover { color: var(--color-accent); }
.nav__links a:active { color: var(--color-ink); }
.nav__links a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 4px; border-radius: 2px; }
.nav__cta { min-height: 44px; }

/* ---------- hero: Stage ---------- */
.hero { min-height: calc(100svh - var(--nav-h)); display: grid; align-items: center; padding-block: var(--space-xl) var(--space-2xl); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.hero__text { display: grid; gap: var(--space-lg); }
.hero__text h1 { max-width: 15ch; }
.hero__text .stores { margin-top: var(--space-md); }
/* The rule sits beside the picks and tucks 16px into the screen's padding only: no text on either is covered. */
.hero__stage { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--space-sm) 0; margin: 0; }
.hero__picks { grid-column: 2; grid-row: 1; height: var(--screen-lead); aspect-ratio: 3 / 5; }
.hero__rules { grid-column: 1; grid-row: 1; justify-self: end; position: relative; z-index: var(--z-raised); width: min(100%, 360px); margin-right: calc(-1 * var(--space-md)); aspect-ratio: 3 / 2; box-shadow: var(--shadow-lift); }
.hero__stage figcaption { grid-column: 1 / -1; justify-self: end; color: var(--color-ink-2); font-size: var(--text-md); }
@media (max-width: 85rem) { .hero__rules { width: min(100%, 300px); } }
.hero__free { color: var(--color-muted); }

/* ---------- tour: Switcher ---------- */
.tour { padding-block: var(--section-gap); }
.tour__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.tour__body { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: start; }
.tour__screens { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-lg); grid-column: 1 / -1; }
.tour__tabs { display: none; }
.js .tour__screens { grid-template-columns: minmax(0, 1fr); grid-column: auto; justify-items: center; }
.js .tour__screens .screen { height: var(--screen-lead); }
.js .tour__tabs { display: grid; border-top: 1px solid var(--color-rule); }
.tab { display: grid; gap: var(--space-2xs); padding: var(--space-lg) var(--space-lg) var(--space-lg) var(--space-md); border: 0; border-bottom: 1px solid var(--color-rule); border-left: 3px solid transparent; background: transparent; color: var(--color-ink-2); text-align: left; cursor: pointer; transition: background-color var(--dur-short) var(--ease-out), color var(--dur-short) var(--ease-out); }
.tab:hover { background: var(--color-paper-2); color: var(--color-ink); }
.tab:active { background: var(--color-paper-3); }
.tab:focus-visible { outline: 2px solid var(--color-focus); outline-offset: -2px; }
.tab[aria-selected="true"] { border-left-color: var(--color-accent); background: var(--color-paper-2); color: var(--color-ink); }
.tab:disabled { opacity: 0.55; cursor: not-allowed; }
.tab__title { font: 700 var(--text-title)/1.2 var(--font-display); color: var(--color-ink); }
.tab__line { font-size: var(--text-md); }

/* ---------- features: Rows ---------- */
.features { padding-block: var(--section-gap-s) var(--section-gap); }
.features__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: var(--gap-columns); align-items: start; }
.features__head { display: grid; gap: var(--space-xl); justify-items: start; }
.rows { margin: 0; border-top: 1px solid var(--color-rule); }
.row { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 5fr); gap: var(--gap-columns); align-items: baseline; padding-block: var(--space-xl); border-bottom: 1px solid var(--color-rule); }
.row dt { font: 700 var(--text-title)/1.2 var(--font-display); color: var(--color-ink); }
.row dd { margin: 0; font-size: var(--text-lead); line-height: 1.45; color: var(--color-ink-2); max-width: 44ch; }

/* ---------- plans: Table (a change of paper) ---------- */
.plans { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.plans__head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--gap-columns); align-items: end; margin-bottom: var(--space-2xl); }
.plans__table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.plans__table th, .plans__table td { padding: var(--space-lg) var(--space-md) var(--space-lg) 0; border-bottom: 1px solid var(--color-rule); text-align: left; white-space: nowrap; }
.plans__table thead th { font: 700 var(--text-title)/1.2 var(--font-display); color: var(--color-ink); }
.plans__table thead th:last-child { color: var(--color-accent); }
.plans__table tbody th { font-weight: 700; color: var(--color-ink); width: 34%; }
.plans__table td { font-size: var(--text-lead); color: var(--color-ink-2); width: 33%; }

/* ---------- contact: Form ---------- */
.contact { padding-block: var(--section-gap-l) var(--section-gap); }
.contact__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--gap-columns); align-items: start; }
.contact__head { display: grid; gap: var(--space-md); max-width: 28rem; }
.contact__alt { color: var(--color-muted); }
.contact__alt a { color: var(--color-ink); }
.contact__alt a:hover { color: var(--color-accent); }
.contact__alt a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }
.form { display: grid; gap: var(--space-lg); justify-items: start; }
.form__pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-lg); width: 100%; }
.field { display: grid; gap: var(--space-xs); width: 100%; }
.field label { font-size: var(--text-sm); color: var(--color-ink-2); }
.field input, .field textarea { width: 100%; min-height: 48px; padding: var(--space-sm) var(--space-md); border: 1px solid var(--color-muted); border-radius: var(--radius-input); background: var(--color-paper); color: var(--color-ink); font-size: var(--text-md); outline: 2px solid transparent; outline-offset: -3px; }
.field textarea { min-height: 160px; resize: vertical; }
.field input:hover, .field textarea:hover { border-color: var(--color-ink-2); }
.field input:focus-visible, .field textarea:focus-visible { outline-color: var(--color-focus); }
.field input:disabled, .field textarea:disabled { opacity: 0.55; cursor: not-allowed; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--color-error); }
.form__error { color: var(--color-ink); border: 1px solid var(--color-error); border-radius: var(--radius-input); padding: var(--space-sm) var(--space-md); }

/* ---------- close: Band ---------- */
.close { padding-block: var(--section-gap-s); background: var(--color-paper-2); }
.close__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.close__text { display: grid; gap: var(--space-xl); }
.screen--wide { aspect-ratio: 6 / 5; width: 100%; max-width: 400px; justify-self: center; }

/* ---------- footer: letter close ---------- */
.footer { padding-block: var(--space-3xl) var(--space-2xl); }
.footer__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 3fr) minmax(0, 3fr); gap: var(--gap-columns); }
.footer__letter { display: grid; gap: var(--space-sm); color: var(--color-ink-2); }
.footer__signoff { font: 700 var(--text-xl)/1.3 var(--font-display); color: var(--color-ink); max-width: 30ch; }
.footer a { color: var(--color-ink-2); text-decoration: none; transition: color var(--dur-short) var(--ease-out); }
.footer__signoff a { color: var(--color-ink); text-decoration: underline; text-decoration-color: var(--color-muted); }
.footer a:hover { color: var(--color-accent); }
.footer a:active { color: var(--color-ink); }
.footer a:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; border-radius: 2px; }
.footer__links { display: grid; gap: var(--space-sm); align-content: start; margin: 0; padding: 0; list-style: none; }
.footer__legal { grid-column: 1 / -1; padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); font-size: var(--text-sm); color: var(--color-muted); }

/* ---------- cookie banner (cookielaw markup, kept) ---------- */
#CookielawBanner { position: fixed; inset: auto var(--space-md) var(--space-3xl) auto; z-index: var(--z-toast); max-width: 26rem; padding: var(--space-lg); background: var(--color-paper-3); color: var(--color-ink); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
#CookielawBanner .column-title { font: 700 var(--text-md)/1.3 var(--font-display); }
#CookielawBanner .column-text { margin-top: var(--space-xs); font-size: var(--text-sm); color: var(--color-ink-2); }
#CookielawBanner .cookie-buttons { display: flex; flex-wrap: wrap; gap: var(--space-xs); margin-top: var(--space-md); }
#CookielawBanner .cookie-button { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-md); border: 1px solid var(--color-rule); border-radius: var(--radius-pill); color: var(--color-ink); text-decoration: none; font-size: var(--text-sm); white-space: nowrap; transition: background-color var(--dur-short) var(--ease-out); }
#CookielawBanner .cookie-button:hover { background: var(--color-paper-2); }
#CookielawBanner .cookie-button:active { background: var(--color-paper); }
#CookielawBanner .cookie-button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- narrow ---------- */
@media (max-width: 60rem) {
  :root { --nav-h: 80px; --screen-lead: clamp(360px, 60svh, 520px); }
  .nav__plans { display: none; }
  .hero { min-height: 0; }
  .hero__grid, .tour__head, .tour__body, .features__grid, .plans__head, .contact__grid, .close__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .features__head { position: static; }
  .tour__screens { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .js .tour__tabs { order: -1; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 0; border-bottom: 1px solid var(--color-rule); }
  .tab { padding: var(--space-sm) var(--space-xs); border-bottom: 0; border-left: 0; border-top: 3px solid transparent; text-align: center; }
  .tab[aria-selected="true"] { border-top-color: var(--color-accent); }
  .tab__title { font-size: var(--text-md); white-space: nowrap; }
  .tab__line { display: none; }
  .row { grid-template-columns: minmax(0, 1fr); gap: var(--space-xs); padding-block: var(--space-lg); }
  .screen--wide { justify-self: start; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__letter { grid-column: 1 / -1; }
}
@media (max-width: 40rem) {
  .nav__brand span { display: none; }
  .form__pair { grid-template-columns: minmax(0, 1fr); }
  .footer__grid { grid-template-columns: minmax(0, 1fr); }
  .footer__links a { white-space: nowrap; }
  .plans__table th, .plans__table td { white-space: normal; }
  #CookielawBanner { inset: auto var(--space-xs) var(--space-xs) var(--space-xs); max-width: none; }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .store, .tab, .link, .nav__links a, .footer a, #CookielawBanner .cookie-button { transition: none; }
  .btn:active, .store:hover, .store:active { transform: none; }
}

/* features: the rule list sits under the heading, inside the sticky column */
.screen--side { width: min(100%, 300px); }
@media (max-width: 60rem) { .screen--side { width: min(100%, 360px); justify-self: center; } }
.contact__sent { color: var(--color-ink); border: 1px solid var(--color-accent); border-radius: var(--radius-input); padding: var(--space-sm) var(--space-md); max-width: 28rem; }
#CookielawBanner button.cookie-button { background: transparent; border-color: var(--color-accent); color: var(--color-ink); font: inherit; font-weight: 700; font-size: var(--text-sm); cursor: pointer; }
#CookielawBanner button.cookie-button:hover { background: var(--color-paper-2); }
#CookielawBanner .cookie-button:focus-visible { outline: 2px solid var(--color-focus); outline-offset: 2px; }

/* ---------- why: one pick's working, with live counts ---------- */
.why { padding-block: var(--section-gap-s) var(--space-2xl); }
.why__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: var(--space-3xl); align-items: center; }
.why__screen { width: 100%; max-width: 420px; aspect-ratio: 720 / 933; justify-self: center; }
.why__text { display: grid; gap: var(--space-lg); }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--gap-columns); margin: var(--space-lg) 0 0; padding-top: var(--space-lg); border-top: 1px solid var(--color-rule); }
.facts dt { font: 700 var(--text-display)/1 var(--font-display); color: var(--color-ink); font-variant-numeric: tabular-nums; }
.facts dd { margin: var(--space-xs) 0 0; color: var(--color-ink-2); font-size: var(--text-sm); max-width: 18ch; }

/* ---------- trial: test before you trust ---------- */
.trial { padding-block: var(--space-2xl); background: var(--color-paper-2); }
.trial__grid { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: var(--space-3xl); align-items: center; }
.trial__text { display: grid; gap: var(--space-md); }
.trial__screen { width: 100%; max-width: 480px; aspect-ratio: 720 / 333; justify-self: end; }

@media (max-width: 60rem) {
  .hero__stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .hero__rules, .hero__picks { grid-column: 1; grid-row: auto; }
  .hero__rules { justify-self: start; width: min(80%, 340px); margin: 0 0 calc(-1 * var(--space-2xl)); }
  .hero__stage figcaption { justify-self: center; }
  .why__grid, .trial__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-xl); }
  .why__screen { order: 1; }
  .trial__screen { justify-self: start; }
}
@media (max-width: 40rem) {
  .facts { grid-template-columns: minmax(0, 1fr); }
  .facts div { display: flex; align-items: baseline; gap: var(--space-sm); }
}

/* The tour's screens are the redesigned app's 3:5 captures. */
.tour__screens .screen { aspect-ratio: 3 / 5; }

/* Cookie notice: a slim bar along the bottom, so it never sits on the hero's pictures. */
#CookielawBanner { inset: auto var(--space-md) var(--space-md) var(--space-md); max-width: none; margin-inline: auto; width: min(100% - 2 * var(--space-md), 56rem); padding: var(--space-sm) var(--space-md); }
#CookielawBanner .cookie-content { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-sm) var(--space-lg); }
#CookielawBanner .column-text { margin-top: 0; }
#CookielawBanner .cookie-buttons { margin-top: 0; }
@media (min-width: 60rem) { #CookielawBanner { right: calc(var(--space-3xl) + var(--space-2xl)); } }
.close__screen { width: 100%; max-width: 340px; aspect-ratio: 720 / 1127; justify-self: center; }
