/* localcricket.club promo page. Brand: cap navy + ball-leather cherry (as the brochure);
   the device mock-ups use the example club's teal + orange to show "your colours". */
:root {
  color-scheme: light;
  --ink: #14233b;
  --ink-soft: #34435b;
  --muted: #5d6878;
  --line: #d7dde6;
  --mist: #eef2f6;
  --paper: #ffffff;
  --seam: #c3282f;
  --seam-dark: #a11f25;
  --seam-light: #ff8c91;
  --bezel: #1c2433;
  --steel: #b4bcc8;
  --kp: #0d7682;
  --kp-deep: #09535c;
  --kp-sun: #f29a2e;
  --kp-wash: #fdf1e2;
  --ok: #1f9d55;
  --maybe: #e29a0c;
  --no: #d63c3c;
  --font-display: 'Barlow Condensed', 'Arial Narrow', Arial, sans-serif;
  --font-body: 'Barlow', 'Segoe UI', Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-body); font-size: 17px; line-height: 1.55; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a { color: var(--seam); text-underline-offset: 3px; }
a:hover { color: var(--seam-dark); }
:focus-visible { outline: 3px solid var(--kp-sun); outline-offset: 2px; }
img { max-width: 100%; }

.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }
@media (min-width: 720px) { .wrap { padding-left: 28px; padding-right: 28px; } }

.seam {
  height: 7px; border-top: 1px solid var(--seam); border-bottom: 1px solid var(--seam);
  background: repeating-linear-gradient(90deg, var(--seam) 0 7px, transparent 7px 12px) center / 100% 1.5px no-repeat;
}

/* Cricket ball: red leather, one raised seam with a row of stitches either side */
.ball {
  width: 34px; height: 34px; flex-shrink: 0;
  background: url("ball.svg") center / contain no-repeat;
}

/* ── Buttons ─────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: .7em 1.35em; border: 2px solid var(--seam); border-radius: 6px;
  background: var(--seam); color: var(--paper); text-decoration: none; cursor: pointer;
  font-family: var(--font-display); font-weight: 700; font-size: 1.15rem; letter-spacing: .05em; text-transform: uppercase; line-height: 1.1;
}
.btn:hover { background: var(--seam-dark); border-color: var(--seam-dark); color: var(--paper); }
.btn small { font-weight: 600; font-size: .8em; opacity: .8; }
.btn-line { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-line:hover { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.btn-sm { padding: .45em .9em; font-size: 1rem; }
.btn-wide { width: 100%; }
.btn[disabled] { opacity: .7; cursor: progress; }
.spin { display: none; width: 1em; height: 1em; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.busy .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }

.eyebrow { margin: 0 0 .6em; font-family: var(--font-display); font-weight: 600; font-size: 1rem; letter-spacing: .16em; text-transform: uppercase; color: var(--seam); }
h1 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.6rem, 6.4vw, 4.2rem); line-height: .95; letter-spacing: -.005em; margin-bottom: .35em; }
h2 { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 4.4vw, 2.75rem); line-height: 1; margin-bottom: .7em; }

/* ── Header ──────────────────────────────── */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .97); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 10px; padding-bottom: 10px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.brand:hover { color: var(--ink); }
.brand-name { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.brand-url { display: block; font-size: .8rem; color: var(--muted); letter-spacing: .02em; }
.top-nav { display: flex; align-items: center; gap: 22px; }
.top-nav a:not(.btn) { color: var(--ink-soft); font-weight: 600; text-decoration: none; }
.top-nav a:not(.btn):hover { color: var(--seam); }
@media (max-width: 760px) { .top-nav a:not(.btn) { display: none; } }
@media (max-width: 400px) { .brand-name { font-size: 1.1rem; letter-spacing: .03em; } .brand .ball { width: 28px; height: 28px; } }

/* ── Hero ────────────────────────────────── */
.hero { padding: 44px 0 56px; }
.hero-in { display: grid; gap: 36px; align-items: center; }
@media (min-width: 980px) { .hero-in { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 48px; } }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 36em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.6em 0 1.2em; }
.hero-demo { color: var(--muted); font-weight: 500; }
.hero-demo a { font-weight: 600; }

/* ── Device mock-ups ─────────────────────── */
/* Everything inside .mock is sized in em, and .mock's font-size follows the
   stage's width, so the whole drawing scales as one. */
.stage { container: stage / inline-size; min-width: 0; }
.mock { position: relative; font-size: 8px; font-size: calc(100cqi / 57); width: 56em; height: 33em; margin: 0 auto; line-height: 1.3; }
.laptop { position: absolute; left: 0; top: 0; width: 44em; }
.screen {
  font-size: .85em; height: 30.5em; overflow: hidden; background: var(--paper);
  border: .65em solid var(--bezel); border-bottom-width: .8em; border-radius: 1em 1em 0 0;
  display: flex; flex-direction: column;
}
.laptop-base { height: 1.2em; width: 112%; margin-left: -6%; border-radius: 0 0 1.4em 1.4em; background: linear-gradient(var(--steel), #8e98a6); }
.bbar { display: flex; align-items: center; gap: .55em; padding: .4em .7em; background: var(--mist); border-bottom: 1px solid var(--line); }
.bbar i { width: .65em; height: .65em; border-radius: 50%; background: var(--steel); flex-shrink: 0; }
.url { flex: 1; min-width: 0; background: var(--paper); border: 1px solid var(--line); border-radius: 1em; padding: .1em .9em; color: var(--muted); font-size: .95em; white-space: nowrap; overflow: hidden; }
.snav { display: flex; align-items: center; gap: .65em; padding: .6em .9em; background: var(--kp); color: var(--paper); }
.crest { width: 2em; height: 2em; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--kp-sun); color: var(--kp-deep); font-family: var(--font-display); font-weight: 700; font-size: .95em; }
.snav b { font-family: var(--font-display); font-size: 1.35em; letter-spacing: .03em; text-transform: uppercase; white-space: nowrap; }
.slinks { margin-left: auto; display: flex; gap: 1.1em; font-weight: 600; font-size: .9em; letter-spacing: .04em; text-transform: uppercase; opacity: .92; }
.ticker { display: flex; gap: 1.1em; padding: .35em .9em; background: var(--kp-deep); color: var(--paper); font-size: .9em; white-space: nowrap; overflow: hidden; }
.ticker b { font-weight: 600; opacity: .7; text-transform: uppercase; letter-spacing: .06em; }
.res { display: inline-block; width: 1.3em; text-align: center; border-radius: .2em; font-weight: 700; margin-right: .25em; color: var(--paper); }
.res.w { background: var(--ok); }
.res.l { background: var(--no); }
.mile { padding: .45em .9em; background: var(--kp-wash); color: var(--kp-deep); font-weight: 600; border-bottom: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mile span { color: var(--kp-sun); }
.sbody { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: .8em; padding: .8em .9em; background: var(--mist); }
.live { background: var(--paper); border: 1px solid var(--line); border-radius: .5em; padding: .7em .8em; display: flex; flex-direction: column; gap: .5em; min-width: 0; }
.live-head { display: flex; align-items: center; gap: .6em; color: var(--muted); font-size: .9em; white-space: nowrap; }
.pill-live { background: var(--no); color: var(--paper); font-weight: 700; font-size: .85em; letter-spacing: .08em; padding: .1em .5em; border-radius: .3em; }
.lrow { display: flex; align-items: baseline; gap: .6em; }
.lrow span { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow b { font-family: var(--font-display); font-size: 2.1em; line-height: 1; font-variant-numeric: tabular-nums; }
.lrow small { color: var(--muted); font-size: .85em; width: 4.4em; text-align: right; flex-shrink: 0; }
.lrow.them span, .lrow.them b { color: var(--muted); }
.lrow.them b { font-size: 1.5em; }
.need { background: var(--kp); color: var(--paper); font-weight: 600; text-align: center; padding: .25em; border-radius: .3em; }
.crease { display: flex; justify-content: space-between; gap: .5em; padding-top: .2em; border-top: 1px solid var(--mist); font-variant-numeric: tabular-nums; }
.crease span:last-child { color: var(--muted); }
.next { display: flex; flex-direction: column; gap: .5em; min-width: 0; }
.next h4 { font-family: var(--font-display); font-size: 1.15em; letter-spacing: .08em; text-transform: uppercase; color: var(--kp-deep); }
.game { background: var(--paper); border: 1px solid var(--line); border-left: .3em solid var(--kp-sun); border-radius: .4em; padding: .45em .6em; }
.game b, .game span { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.game b { font-size: .95em; }
.game span { color: var(--muted); font-size: .85em; }

.phone {
  position: absolute; right: 0; top: 3.2em; font-size: .78em; width: 19.2em; height: 37.4em;
  border: .6em solid var(--bezel); border-radius: 2.5em; background: var(--paper); overflow: hidden;
  box-shadow: 0 1.2em 3em rgba(20, 35, 59, .28);
}
.p-head { background: var(--kp); color: var(--paper); padding: 1.7em 1em .7em; }
.p-head b { display: block; font-family: var(--font-display); font-size: 1.4em; letter-spacing: .03em; text-transform: uppercase; }
.p-head span { font-size: .85em; opacity: .9; }
.p-totals { display: grid; grid-template-columns: repeat(3, 1fr); margin: .7em; border: 1px solid var(--line); border-radius: .5em; }
.p-totals div { text-align: center; padding: .35em 0; }
.p-totals div + div { border-left: 1px solid var(--line); }
.p-totals b { display: flex; align-items: center; justify-content: center; gap: .3em; font-family: var(--font-display); font-size: 1.6em; line-height: 1; font-variant-numeric: tabular-nums; }
.p-totals small { font-size: .62em; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.p-row { display: flex; align-items: center; gap: .6em; padding: .5em 1em; border-bottom: 1px solid var(--mist); font-weight: 600; white-space: nowrap; }
.p-row em { font-style: normal; width: 1em; text-align: right; color: var(--muted); font-size: .85em; }
.p-row.me { background: var(--kp-wash); }
.dot { display: inline-block; width: .65em; height: .65em; border-radius: 50%; flex-shrink: 0; }
.dot.ok { background: var(--ok); }
.dot.maybe { background: var(--maybe); }
.dot.no { background: var(--no); }
.switch { position: relative; width: 3.6em; height: 1.45em; border-radius: 99px; flex-shrink: 0; background: rgba(31, 157, 85, .16); border: 1px solid var(--line); }
.switch::after {
  content: '\2713'; position: absolute; right: 0; top: 0; width: 1.25em; height: 1.25em; border-radius: 50%;
  background: var(--ok); color: var(--paper); font-size: .9em; font-weight: 700; display: grid; place-items: center;
}
.stage-note { margin: 1.2em 0 0; font-size: .85rem; color: var(--muted); text-align: center; }

/* A narrow stage: just the phone, bigger */
@container stage (max-width: 540px) {
  .mock { font-size: calc(100cqi / 21); width: auto; height: auto; }
  .laptop { display: none; }
  .phone { position: relative; top: 0; margin: 0 auto; }
}

/* ── Bands and sections ──────────────────── */
.band { background: var(--mist); padding: 64px 0; }
.band-ink { background: var(--ink); color: var(--paper); }
.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 8px; padding: 20px 22px 18px; }
.card .kick { display: block; font-family: var(--font-display); font-weight: 600; font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; color: var(--seam); margin-bottom: .2em; }
.card h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.45rem; line-height: 1.05; margin-bottom: .4em; }
.card p { margin: 0; color: var(--ink-soft); font-size: 1rem; }

.cols3 { display: grid; gap: 32px; padding-top: 60px; padding-bottom: 60px; }
@media (min-width: 820px) { .cols3 { grid-template-columns: repeat(3, 1fr); } }
.cols3 h3 { font-family: var(--font-display); font-weight: 700; font-size: 1.35rem; letter-spacing: .05em; text-transform: uppercase; padding-bottom: .3em; margin-bottom: .7em; border-bottom: 2px solid var(--ink); }
.ticks li { position: relative; padding-left: 20px; color: var(--ink-soft); }
.ticks li + li { margin-top: .5em; }
.ticks li::before { content: ''; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--seam); }

.duo { display: grid; gap: 40px; }
@media (min-width: 860px) { .duo { grid-template-columns: 1fr 1fr; gap: 64px; } }
.band-ink h2 { font-size: clamp(1.8rem, 3.6vw, 2.3rem); margin-bottom: .6em; }
.checks li { position: relative; padding-left: 26px; }
.checks li + li { margin-top: .55em; }
.checks li::before { content: '\2713'; position: absolute; left: 0; top: 0; color: var(--seam-light); font-weight: 700; }
.steps { counter-reset: step; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 30px 1fr; gap: 12px; align-items: start; }
.steps li + li { margin-top: .8em; }
.steps li::before {
  content: counter(step); width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--paper); color: var(--ink); font-family: var(--font-display); font-weight: 700; font-size: 1.1rem;
}
.steps b { font-weight: 700; }

.pricing { display: grid; gap: 32px; align-items: center; padding-top: 64px; padding-bottom: 64px; }
@media (min-width: 820px) { .pricing { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; } }
.price-box { border: 2px solid var(--ink); border-radius: 10px; padding: 26px 28px; }
.price-box h2 { font-size: 2rem; margin-bottom: .5em; }
.price-box p { margin: 0 0 1em; color: var(--ink-soft); }
.price-box .price-lead { font-size: 1.2rem; font-weight: 600; color: var(--ink); }
.price-side p:not(.eyebrow) { color: var(--ink-soft); font-size: 1.1rem; }

/* ── Enquiry ─────────────────────────────── */
.enquire { display: grid; gap: 32px; align-items: start; }
@media (min-width: 900px) { .enquire { grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 48px; } }
.enquire-copy > p { color: var(--ink-soft); font-size: 1.1rem; }
.enquire-copy a { overflow-wrap: anywhere; }
.brochure { display: flex; align-items: center; gap: 14px; margin-top: 14px; padding: 14px 16px; background: var(--paper); border: 1.5px solid var(--line); border-radius: 8px; color: var(--ink); text-decoration: none; }
.brochure:hover { border-color: var(--ink); color: var(--ink); }
.brochure b { display: block; font-weight: 700; }
.brochure small { display: block; color: var(--muted); font-size: .9rem; }
.brochure-ic { width: 46px; height: 46px; border-radius: 6px; flex-shrink: 0; display: grid; place-items: center; background: var(--seam); color: var(--paper); font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .05em; }
.brochure-ic-demo { background: var(--kp); font-size: 1.1rem; }

.form-card { background: var(--paper); border: 1px solid var(--line); border-radius: 10px; padding: 24px 20px; box-shadow: 0 10px 30px rgba(20, 35, 59, .08); }
@media (min-width: 560px) { .form-card { padding: 28px 30px; } }
.grid2 { display: grid; column-gap: 16px; }
@media (min-width: 560px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.field { margin: 0 0 14px; min-width: 0; }
fieldset.field { border: 0; padding: 0; }
.field label, .field legend { display: block; font-weight: 600; font-size: .95rem; margin-bottom: 5px; padding: 0; }
.req { color: var(--seam); }
.field input, .field select, .field textarea {
  display: block; width: 100%; padding: .6em .75em; font: inherit; font-size: 1rem; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: 6px;
}
.field textarea { resize: vertical; min-height: 6.5em; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(20, 35, 59, .14); }
.field.invalid input, .field.invalid select, .field.invalid textarea { border-color: var(--no); }
.field input::placeholder { color: #8a93a1; }
.err { margin: 4px 0 0; color: #b42323; font-size: .9rem; font-weight: 600; }
.err:empty { display: none; }
.choices { display: flex; flex-wrap: wrap; gap: 8px; }
.choice { position: relative; cursor: pointer; margin: 0 !important; font-weight: 600 !important; }
.choice input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.choice span { display: inline-block; padding: .45em 1.05em; border: 1.5px solid var(--line); border-radius: 99px; background: var(--paper); }
.choice input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.choice input:focus-visible + span { outline: 3px solid var(--kp-sun); outline-offset: 2px; }
.field.invalid .choice span { border-color: var(--no); }
/* The honeypot: off screen, out of the tab order, hidden from screen readers */
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.privacy { font-size: .9rem; color: var(--muted); margin-bottom: .9em; }
.form-msg { display: none; margin-bottom: 1em; padding: .7em .9em; border-radius: 6px; background: #fdecec; color: #8e1b1b; font-weight: 600; }
.form-msg.show { display: block; }
.sent { text-align: center; padding: 28px 8px; }
.sent-ic { display: inline-grid; place-items: center; width: 60px; height: 60px; border-radius: 50%; background: var(--ok); color: var(--paper); font-size: 30px; font-weight: 700; margin-bottom: 12px; }
.sent h3 { font-family: var(--font-display); font-size: 2rem; margin-bottom: .3em; }
.sent p { color: var(--ink-soft); max-width: 30em; margin: 0 auto; }

/* ── Footer ──────────────────────────────── */
.foot { padding-bottom: 28px; }
.foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 20px; padding-top: 18px; color: var(--muted); font-size: .95rem; }
.foot-in b { color: var(--ink); }
.foot-in a { overflow-wrap: anywhere; }
