/* AGB Scoreboard Pro - public website. Clean corporate look: white page, grey bands, red accent, navy boxes. */

@font-face { font-family: 'Roboto'; src: url('../assets/fonts/Roboto-Regular.ttf') format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('../assets/fonts/Roboto-Medium.ttf') format('truetype'); font-weight: 500; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('../assets/fonts/Roboto-Bold.ttf') format('truetype'); font-weight: 700; font-display: swap; }
@font-face { font-family: 'Roboto'; src: url('../assets/fonts/Roboto-Black.ttf') format('truetype'); font-weight: 900; font-display: swap; }

:root {
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --surface-2: #f8f9fb;
  --line: #e7e9ee;
  --line-strong: #d5d9e0;
  --text: #1c2331;
  --heading: #141a26;
  --muted: #6b7380;
  --red: #d5232f;
  --red-dark: #b81c27;
  --red-soft: rgba(213, 35, 47, .08);
  --navy: #1e3157;
  --navy-dark: #15233f;
  --blue: #2f6fe0;
  --green: #12965f;
  --amber: #b97700;
  --shadow: 0 2px 4px rgba(20, 26, 38, .04), 0 8px 24px -10px rgba(20, 26, 38, .14);
  --shadow-lg: 0 24px 50px -22px rgba(20, 26, 38, .35);
  --radius: 8px;
  --radius-sm: 6px;
  --wrap: 1170px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.7 'Roboto', 'Segoe UI', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--red); text-decoration: none; }
a:hover { color: var(--red-dark); }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; color: var(--heading); font-weight: 700; letter-spacing: -.01em; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid rgba(213, 35, 47, .45); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 16px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.ico { width: 20px; height: 20px; flex: none; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 26px; border-radius: var(--radius-sm); border: 2px solid transparent; font-weight: 700; font-size: 15px; cursor: pointer; text-decoration: none !important; white-space: nowrap; transition: background-color .15s ease, border-color .15s ease, color .15s ease, transform .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--red); border-color: var(--red); color: #fff !important; }
.btn-primary:hover { background: var(--red-dark); border-color: var(--red-dark); }
.btn-ghost { background: transparent; color: var(--heading) !important; border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--red); color: var(--red) !important; }
.btn-light { background: transparent; color: #fff !important; border-color: rgba(255,255,255,.75); }
.btn-light:hover { background: #fff; color: var(--heading) !important; }
.btn-upper { text-transform: uppercase; letter-spacing: .06em; font-size: 13px; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.btn-lg { min-height: 54px; padding: 0 30px; font-size: 16px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .ico { width: 18px; height: 18px; }

/* Top info strip */
.infobar { background: var(--surface); border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.infobar-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 40px; }
.infobar span, .infobar a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); }
.infobar a:hover { color: var(--red); }
.infobar .ico { width: 15px; height: 15px; color: var(--red); }
.infobar-right { display: flex; gap: 22px; }

/* Header */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .97); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.topbar.scrolled { box-shadow: 0 6px 20px -12px rgba(20, 26, 38, .25); }
.topbar-in { display: flex; align-items: center; gap: 24px; height: 76px; }
.brand { display: flex; align-items: center; flex: none; }
.logo { height: 30px; width: auto; }
.logo-dark { display: none; }
.mainnav { display: flex; gap: 2px; margin-left: auto; }
.mainnav a { color: var(--heading); font-weight: 500; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; padding: 10px 14px; }
.mainnav a:hover { color: var(--red); }
.mainnav a[aria-current="page"] { color: var(--red); }
.nav-cta-mobile { display: none; }
.topbar-tools { display: flex; align-items: center; gap: 6px; }
.iconbtn { display: inline-flex; align-items: center; gap: 6px; height: 40px; min-width: 40px; justify-content: center; padding: 0 10px; border-radius: 6px; border: 1px solid transparent; background: transparent; color: var(--heading); cursor: pointer; }
.iconbtn:hover { color: var(--red); }
.langcode { font-size: 13px; font-weight: 700; }
.langpick { position: relative; }
.langmenu { position: absolute; right: 0; top: 46px; min-width: 170px; list-style: none; margin: 0; padding: 6px; background: #fff; border: 1px solid var(--line); border-radius: 8px; box-shadow: var(--shadow-lg); }
.langmenu a { display: block; padding: 9px 12px; border-radius: 6px; color: var(--heading); font-size: 14px; }
.langmenu a:hover { background: var(--bg-alt); color: var(--red); }
.langmenu a[aria-current="true"] { font-weight: 700; color: var(--red); }
.menubtn { display: none; }
.menubtn .ico-close { display: none; }

@media (max-width: 960px) {
  .infobar-left { display: none; }
  .infobar-in { justify-content: center; }
  .menubtn { display: inline-flex; }
  .nav-cta { display: none; }
  .topbar-tools { margin-left: auto; }
  .mainnav { position: fixed; inset: 76px 0 auto 0; margin: 0; flex-direction: column; gap: 0; padding: 8px 20px 20px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow-lg); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .18s ease; }
  .mainnav a { padding: 14px 4px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .mainnav .nav-cta-mobile { display: inline-flex; margin-top: 14px; border-bottom: 0; }
  body.menu-open .mainnav { transform: none; opacity: 1; visibility: visible; }
  body.menu-open .menubtn .ico-open { display: none; }
  body.menu-open .menubtn .ico-close { display: block; }
}

/* Section basics */
.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-map { background-color: var(--bg-alt); background-image: radial-gradient(rgba(30, 49, 87, .09) 1.2px, transparent 1.3px); background-size: 14px 14px; }
.eyebrow { display: block; font-size: 13px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.section-head { max-width: 700px; margin-bottom: 50px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2, .h2 { font-size: clamp(28px, 3.4vw, 40px); font-weight: 700; margin-top: 10px; }
.section-head p, .lead-text { color: var(--muted); font-size: 17px; margin-top: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }

/* Hero: a dark "photo" made of the court and a glowing board, text centred on it */
.hero { position: relative; overflow: hidden; color: #fff; text-align: center; isolation: isolate; padding: 110px 0 210px;
  background: radial-gradient(70% 90% at 50% 0%, rgba(47, 111, 224, .28), transparent 60%), radial-gradient(60% 60% at 85% 100%, rgba(213, 35, 47, .25), transparent 60%), linear-gradient(180deg, #0b1220 0%, #0e1830 55%, #111c35 100%); }
.hero-photo { position: absolute; inset: 0; z-index: -1; overflow: hidden; }
.hero-photo svg { position: absolute; left: 50%; bottom: -8%; width: 1700px; max-width: none; transform: translateX(-50%); opacity: .5; }
.hero-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(8, 12, 22, .35), rgba(8, 12, 22, .55)); }
.hero-glow { position: absolute; left: 50%; top: 4%; transform: translateX(-50%); width: 760px; max-width: 92vw; opacity: .16; filter: blur(2px); }
.hero-kicker { font-size: 19px; color: #e6ebf3; font-weight: 400; }
.hero h1 { color: #fff; font-size: clamp(36px, 6vw, 68px); font-weight: 900; text-transform: uppercase; letter-spacing: -.01em; line-height: 1.08; margin: 16px auto 0; max-width: 960px; }
.hero h1 .accent { color: #fff; }
.hero-lead { font-size: 18px; color: #cfd7e4; margin: 24px auto 0; max-width: 700px; }
.hero-ticks { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 30px; margin: 30px 0 0; padding: 0; list-style: none; color: #fff; font-size: 15px; font-weight: 500; }
.hero-ticks li { display: flex; align-items: center; gap: 8px; }
.hero-ticks .ico { width: 18px; height: 18px; padding: 2px; border: 1.5px solid #fff; border-radius: 50%; }
.hero-cta { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }

/* Picture cards overlapping the hero (like destination cards) */
.pics { position: relative; z-index: 3; margin-top: -150px; }
.pic-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.pic { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 40px -20px rgba(20, 26, 38, .45); border: 1px solid var(--line); transition: transform .25s ease, box-shadow .25s ease; }
.pic:hover { transform: translateY(-4px); box-shadow: 0 26px 50px -22px rgba(20, 26, 38, .5); }
.pic-img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; }
.pic-img img { width: 100%; height: 100%; object-fit: cover; }
.pic-img.light { background: linear-gradient(180deg, #eef2f8, #dfe6f1); padding: 18px; }
.pic-img.light img { object-fit: contain; filter: drop-shadow(0 16px 18px rgba(20, 26, 38, .3)); }
.pic-img.dark { background: radial-gradient(90% 90% at 50% 30%, #1a2742, #0b111f); padding: 20px; }
.pic-body { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 20px; }
.pic-body h3 { font-size: 18px; }
.pic-body p { color: var(--muted); font-size: 14px; line-height: 1.5; margin-top: 2px; }
.pic-badge { flex: none; width: 40px; height: 40px; border-radius: 6px; display: grid; place-items: center; background: var(--red-soft); color: var(--red); }
.pic-badge .ico { width: 22px; height: 22px; }
.console-more { margin-top: 26px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }
.chip { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 500; font-size: 13px; color: var(--heading); }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(18,150,95,.1); color: var(--green); }
.badge .ico { width: 14px; height: 14px; }

/* Seven-segment boards (hero backdrop, picture card, banner) */
.board { position: relative; border-radius: 14px; padding: 18px 18px 14px; background: linear-gradient(180deg, #121620, #07090d); border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.06); width: 100%; }
.board-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }
.board-team { text-align: center; }
.board-name { font-size: 10px; font-weight: 900; letter-spacing: .16em; color: #ffd27a; text-shadow: 0 0 8px rgba(255,180,60,.5); }
.board-score { display: flex; justify-content: center; margin-top: 6px; }
.board-mid { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.board-label { font-size: 8px; font-weight: 700; letter-spacing: .2em; color: #7d8799; }
.board-bottom { display: flex; justify-content: space-between; align-items: end; margin-top: 12px; padding-top: 10px; border-top: 1px dashed rgba(255,255,255,.08); }
.board-stat { display: flex; flex-direction: column; align-items: center; gap: 3px; }
.seg { display: inline-flex; gap: 4px; }
.seg svg { height: 100%; width: auto; overflow: visible; }
.seg .on { filter: drop-shadow(0 0 3px currentColor); }
.seg .off { opacity: .07; }
.seg-score { height: 50px; color: #ff3b30; }
.seg-clock { height: 38px; color: #ffbf2f; }
.seg-shot { height: 28px; color: #ff3b30; }
.seg-small { height: 20px; color: #2fff9a; }
.seg-colon { display: flex; flex-direction: column; justify-content: center; gap: 9px; padding: 0 2px; }
.seg-colon i { width: 5px; height: 5px; border-radius: 2px; background: #ffbf2f; box-shadow: 0 0 6px #ffbf2f; }
.board.paused .seg-colon i { opacity: .25; box-shadow: none; }
.possession { width: 0; height: 0; border: 6px solid transparent; opacity: .12; transition: opacity .2s; }
.possession.left { border-right-color: #2fff9a; }
.possession.right { border-left-color: #2fff9a; }
.possession.on { opacity: 1; filter: drop-shadow(0 0 4px #2fff9a); }

/* A broadcast picture with the score graphic */
.tv { position: relative; width: 100%; height: 100%; min-height: 180px; overflow: hidden; background: linear-gradient(180deg, rgba(4,8,16,0) 40%, rgba(4,8,16,.6)), radial-gradient(120% 90% at 50% 120%, #c98b4e 0%, #a86d36 40%, #6a4222 80%); }
.tv::before { content: ""; position: absolute; left: 50%; bottom: -55%; width: 110%; height: 120%; transform: translateX(-50%); border: 2px solid rgba(255,255,255,.5); border-radius: 50%; }
.tv::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.4); }
.tv-live { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 4px; background: var(--red); color: #fff; font-size: 10px; font-weight: 900; letter-spacing: .1em; }
.tv-live::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #fff; animation: blink 1.2s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .2; } }
.bug { position: absolute; left: 12px; bottom: 12px; z-index: 2; display: flex; align-items: stretch; border-radius: 4px; overflow: hidden; font-weight: 900; box-shadow: 0 10px 24px -8px rgba(0,0,0,.6); font-size: 13px; }
.bug > span { display: flex; align-items: center; padding: 5px 9px; }
.bug .t-home { background: var(--navy); color: #fff; }
.bug .t-away { background: var(--red); color: #fff; }
.bug .t-score { background: #fff; color: #141a26; min-width: 34px; justify-content: center; font-variant-numeric: tabular-nums; }
.bug .t-clock { background: #141a26; color: #fff; font-variant-numeric: tabular-nums; gap: 6px; }
.bug .t-clock small { color: #ffbf2f; font-size: 10px; }
.bug .flash { animation: flash .9s ease; }
@keyframes flash { 0% { background: #ffd27a; } }
.tv-apps { position: absolute; left: 12px; top: 10px; z-index: 2; display: flex; gap: 5px; flex-wrap: wrap; }
.tv-apps span { font-size: 10px; font-weight: 700; color: #fff; background: rgba(0,0,0,.35); padding: 2px 7px; border-radius: 999px; }

/* Two columns: heading left, 2x2 cards right */
.split { display: grid; grid-template-columns: 0.9fr 1.3fr; gap: 50px; align-items: center; }
.split .section-head { margin-bottom: 0; }
.mini-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.mini { display: flex; gap: 16px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); transition: box-shadow .2s, border-color .2s; }
.mini:hover { box-shadow: var(--shadow); border-color: transparent; }
.mini .ico { width: 42px; height: 42px; color: var(--red); stroke-width: 1.3; }
.mini h3 { font-size: 18px; }
.mini p { color: var(--muted); font-size: 14px; line-height: 1.6; margin-top: 6px; }

/* About: picture collage left, text right */
.about { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.collage { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
.collage > * { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); min-width: 0; }
.collage .c1 { grid-row: span 2; }
.collage .c2 { margin-top: 40px; }
.collage img { width: 100%; height: auto; }
.collage .dark { background: radial-gradient(90% 90% at 50% 30%, #1a2742, #0b111f); padding: 16px; }
.collage .light { background: linear-gradient(180deg, #eef2f8, #dfe6f1); padding: 16px; }
.collage .tvbox { aspect-ratio: 4 / 3; }
.bullets { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.bullets li { position: relative; padding-left: 26px; color: var(--muted); }
.bullets li::before { content: ""; position: absolute; left: 0; top: 8px; width: 10px; height: 10px; border: 2px solid var(--red); border-radius: 50%; }
.bullets strong { color: var(--heading); }

/* Banner: picture on the right, navy box with text */
.banner { position: relative; min-height: 440px; display: flex; align-items: stretch; background: #0b111f; overflow: hidden; }
.banner-pic { position: absolute; inset: 0 0 0 40%; display: grid; place-items: center; padding: 40px; background: radial-gradient(80% 80% at 60% 40%, #1d2c4b, #0b111f); }
.banner-pic .board { max-width: 560px; transform: perspective(900px) rotateY(-10deg); box-shadow: 0 40px 70px -30px rgba(0,0,0,.9); }
.banner .wrap { position: relative; display: flex; }
.banner-box { width: 460px; max-width: 100%; background: var(--navy); color: #fff; padding: 60px 48px; display: flex; flex-direction: column; justify-content: center; }
.banner-box .eyebrow { color: #aebbd6; }
.banner-box h2 { color: #fff; font-size: clamp(26px, 3vw, 36px); margin-top: 12px; }
.banner-box p { color: #c9d3e6; margin-top: 16px; }
.banner-box .btn { align-self: flex-start; margin-top: 28px; }

/* Tabs */
.tabs-nav { display: flex; justify-content: center; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 50px; flex-wrap: wrap; }
.tabs-nav button { background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; padding: 14px 20px; font-weight: 500; font-size: 16px; color: var(--muted); cursor: pointer; }
.tabs-nav button[aria-selected="true"] { color: var(--red); border-bottom-color: var(--red); }
.tabs-nav button:hover { color: var(--heading); }
.tab-panel { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.tab-panel[hidden] { display: none !important; }
.tab-panel h3 { font-size: clamp(24px, 2.6vw, 32px); }
.tab-panel p { color: var(--muted); margin-top: 16px; }
.tab-pic { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-lg); }
.tab-pic.light { background: linear-gradient(180deg, #eef2f8, #dfe6f1); padding: 26px; }
.tab-pic.dark { background: radial-gradient(90% 90% at 50% 30%, #1a2742, #0b111f); padding: 26px; }
.tab-pic .tv { min-height: 280px; }
.tab-list { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.tab-list li { display: flex; gap: 12px; align-items: flex-start; }
.tab-list .ico { width: 22px; height: 22px; color: var(--red); margin-top: 2px; }
.tab-list strong { display: block; color: var(--heading); }
.tab-list span { color: var(--muted); font-size: 15px; }

/* Counters */
.counters { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; text-align: center; }
.counter b { display: block; font-size: 52px; font-weight: 700; line-height: 1; color: var(--heading); }
.counter b small { color: var(--red); font-size: 34px; }
.counter span { display: block; margin-top: 12px; color: var(--muted); }

/* Sports */
.sports { display: grid; grid-template-columns: repeat(7, 1fr); gap: 14px; }
.sport { padding: 22px 10px; text-align: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.sport-emoji { font-size: 32px; line-height: 1; }
.sport strong { display: block; margin-top: 12px; font-size: 14px; font-weight: 500; line-height: 1.4; color: var(--heading); }
.note { color: var(--muted); font-size: 14px; margin-top: 18px; text-align: center; }

/* Screens from the app */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.shot { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.shot img { width: 100%; height: auto; border-bottom: 1px solid var(--line); }
.shot figcaption { padding: 16px 20px; font-weight: 700; color: var(--heading); }
.shot figcaption span { display: block; font-weight: 400; color: var(--muted); font-size: 14px; }

/* Pricing */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; align-items: stretch; }
.plan { padding: 34px 30px; display: flex; flex-direction: column; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.plan-top { position: absolute; top: -13px; left: 30px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 12px; border-radius: 4px; text-transform: uppercase; letter-spacing: .05em; }
.plan.featured { border: 2px solid var(--red); box-shadow: var(--shadow-lg); }
.plan h3 { font-size: 20px; }
.plan-desc { color: var(--muted); font-size: 15px; margin-top: 6px; min-height: 50px; }
.plan-price { margin-top: 16px; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.plan-price b { font-size: 40px; font-weight: 700; color: var(--heading); }
.plan-price span { color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; font-size: 15px; }
.plan li .ico { width: 18px; height: 18px; color: var(--red); margin-top: 4px; }
.plan .btn { margin-top: auto; width: 100%; }
.currency-switch { display: inline-flex; padding: 4px; border-radius: 8px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.25); margin-top: 22px; }
.currency-switch a { padding: 8px 16px; border-radius: 6px; font-weight: 700; font-size: 14px; color: #dfe6f2; }
.currency-switch a[aria-current="true"] { background: var(--red); color: #fff; }
.pay-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 44px; }
.pay-item { padding: 24px; display: flex; gap: 16px; }
.pay-item .ico { width: 34px; height: 34px; color: var(--red); stroke-width: 1.4; }
.pay-item strong { display: block; color: var(--heading); }
.pay-item span { color: var(--muted); font-size: 15px; }

/* FAQ */
.faq-split { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 56px; align-items: start; }
.faq { display: grid; gap: 12px; }
.faq-page .faq { max-width: 860px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 500; font-size: 17px; color: var(--heading); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { transition: transform .2s ease; color: var(--muted); }
.faq details[open] summary { color: var(--red); }
.faq details[open] summary .ico { transform: rotate(180deg); color: var(--red); }
.faq .answer { padding: 0 22px 20px; color: var(--muted); }
.faq .answer p + p { margin-top: 10px; }
.faq-more { margin-top: 26px; }

/* Final call to action */
.cta-band { position: relative; overflow: hidden; border-radius: var(--radius); padding: 56px 60px; color: #fff; display: grid; grid-template-columns: 1.3fr auto; gap: 30px; align-items: center; background: linear-gradient(120deg, var(--navy) 0%, var(--navy-dark) 100%); }
.cta-band::after { content: ""; position: absolute; right: -80px; top: -80px; width: 280px; height: 280px; border-radius: 50%; border: 40px solid rgba(213, 35, 47, .35); }
.cta-band h2 { color: #fff; font-size: clamp(26px, 3.2vw, 36px); position: relative; z-index: 1; }
.cta-band p { color: #c9d3e6; margin-top: 12px; font-size: 17px; position: relative; z-index: 1; }
.cta-band .btn { position: relative; z-index: 1; }

/* Inner page heads */
.page-head { position: relative; padding: 90px 0 70px; color: #fff; text-align: center; overflow: hidden; isolation: isolate; background: radial-gradient(60% 120% at 50% 0%, rgba(47,111,224,.25), transparent 60%), linear-gradient(180deg, #0b1220, #111c35); }
.page-head::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .35; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.2px); background-size: 16px 16px; mask-image: linear-gradient(180deg, #000, transparent); -webkit-mask-image: linear-gradient(180deg, #000, transparent); }
.page-head .eyebrow { color: #aebbd6; }
.page-head h1 { color: #fff; font-size: clamp(32px, 4.6vw, 52px); font-weight: 900; text-transform: uppercase; margin-top: 12px; }
.page-head p { color: #cfd7e4; font-size: 17px; margin: 16px auto 0; max-width: 720px; }

/* Download */
.dl { display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: start; }
.dl-box { padding: 36px; }
.dl-box h2 { font-size: 26px; }
.dl-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); margin: 14px 0 24px; font-size: 15px; }
.dl-meta span { display: inline-flex; align-items: center; gap: 6px; }
.dl-meta .ico { width: 16px; height: 16px; color: var(--red); }
.dl-steps { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 18px; counter-reset: dl; }
.dl-steps li { display: grid; grid-template-columns: 38px 1fr; gap: 14px; counter-increment: dl; }
.dl-steps li::before { content: counter(dl); width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--red-soft); color: var(--red); font-weight: 700; }
.dl-steps strong { display: block; color: var(--heading); }
.dl-steps span { color: var(--muted); font-size: 15px; }
.req { padding: 28px; }
.req h3 { font-size: 18px; margin-bottom: 14px; }
.req ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.req li { display: flex; gap: 10px; color: var(--muted); }
.req li .ico { width: 18px; height: 18px; color: var(--red); margin-top: 4px; }
.req + .req { margin-top: 20px; }

/* Forms */
.form-card { padding: 36px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
.field label { font-weight: 500; font-size: 14px; color: var(--heading); }
.field .hint { color: var(--muted); font-size: 13px; font-weight: 400; }
.input, .select, .textarea { width: 100%; min-height: 50px; padding: 12px 15px; border-radius: 6px; border: 1px solid var(--line-strong); background: #fff; color: var(--text); transition: border-color .15s, box-shadow .15s; }
.textarea { min-height: 130px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--red); box-shadow: 0 0 0 4px var(--red-soft); }
.input-code { font-size: 28px; letter-spacing: .5em; text-align: center; font-weight: 700; font-variant-numeric: tabular-nums; }
.row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg { display: none; margin-top: 14px; padding: 12px 15px; border-radius: 6px; font-size: 15px; }
.msg.show { display: block; }
.msg.err { background: rgba(213,35,47,.07); color: var(--red-dark); border: 1px solid rgba(213,35,47,.2); }
.msg.ok { background: rgba(18,150,95,.08); color: var(--green); border: 1px solid rgba(18,150,95,.22); }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--muted); margin: 6px 0 18px; }
.check input { width: 18px; height: 18px; margin-top: 3px; accent-color: var(--red); flex: none; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--red); cursor: pointer; font-weight: 500; }

/* Order */
.order { display: grid; grid-template-columns: 1.35fr 1fr; gap: 30px; align-items: start; }
.stepper { display: flex; gap: 8px; margin-bottom: 28px; }
.stepper span { flex: 1; height: 4px; border-radius: 4px; background: var(--line); transition: background .3s; }
.stepper span.on { background: var(--red); }
.order-step { display: none; }
.order-step.active { display: block; }
.order-step h2 { font-size: 24px; margin-bottom: 6px; }
.order-step > p.lead { color: var(--muted); margin-bottom: 22px; }
.plan-pick { display: grid; gap: 10px; margin-bottom: 18px; }
.plan-opt { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 6px; border: 1.5px solid var(--line-strong); cursor: pointer; background: #fff; transition: border-color .15s, background .15s; }
.plan-opt:hover { border-color: var(--red); }
.plan-opt input { accent-color: var(--red); width: 18px; height: 18px; }
.plan-opt:has(input:checked) { border-color: var(--red); background: var(--red-soft); }
.plan-opt .po-name { font-weight: 700; color: var(--heading); }
.plan-opt .po-sub { color: var(--muted); font-size: 14px; }
.plan-opt .po-price { margin-left: auto; font-weight: 700; font-size: 18px; white-space: nowrap; color: var(--heading); }
.summary { padding: 28px; position: sticky; top: 100px; }
.summary h3 { font-size: 18px; margin-bottom: 16px; }
.summary dl { margin: 0; display: grid; gap: 10px; }
.summary dl div { display: flex; justify-content: space-between; gap: 12px; }
.summary dt { color: var(--muted); }
.summary dd { margin: 0; font-weight: 700; text-align: right; color: var(--heading); }
.summary .total { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 6px; font-size: 20px; }
.summary-notes { list-style: none; margin: 22px 0 0; padding: 18px 0 0; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.summary-notes li { display: flex; gap: 10px; color: var(--muted); font-size: 14px; }
.summary-notes .ico { width: 18px; height: 18px; color: var(--red); margin-top: 2px; }
.bankbox { border-radius: 6px; border: 1px solid var(--line); background: var(--surface-2); padding: 4px 18px; margin: 18px 0; }
.bankrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.bankrow:last-child { border-bottom: 0; }
.bankrow span { color: var(--muted); font-size: 14px; }
.bankrow b { font-size: 16px; word-break: break-all; text-align: right; color: var(--heading); }
.bankrow .mono { font-family: Consolas, 'SF Mono', Menlo, monospace; }
.copybtn { flex: none; border: 1px solid var(--line-strong); background: #fff; color: var(--muted); border-radius: 6px; height: 32px; padding: 0 10px; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; font-weight: 500; }
.copybtn:hover { color: var(--red); border-color: var(--red); }
.copybtn .ico { width: 15px; height: 15px; }
.bankrow-val { display: flex; align-items: center; gap: 10px; min-width: 0; }
.order-code { text-align: center; padding: 22px; border-radius: 6px; background: var(--red-soft); border: 1px dashed rgba(213,35,47,.4); }
.order-code span { display: block; color: var(--muted); font-size: 13px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; }
.order-code b { display: block; font-size: 30px; font-weight: 700; letter-spacing: .06em; margin-top: 4px; font-family: Consolas, 'SF Mono', Menlo, monospace; color: var(--heading); }
.status-pill { display: inline-flex; align-items: center; padding: 5px 12px; border-radius: 999px; font-weight: 700; font-size: 13px; background: rgba(185,119,0,.1); color: var(--amber); }
.status-pill.paid { background: rgba(18,150,95,.1); color: var(--green); }
.status-pill.cancelled { background: rgba(213,35,47,.08); color: var(--red); }

/* Contact */
.contact { display: grid; grid-template-columns: 1fr 1.3fr; gap: 30px; align-items: start; }
.contact-info { padding: 32px; display: grid; gap: 24px; }
.contact-info > div { display: flex; gap: 16px; }
.contact-info .ico { width: 26px; height: 26px; color: var(--red); margin-top: 2px; }
.contact-info strong { display: block; color: var(--heading); }
.contact-info span, .contact-info a { color: var(--muted); }

/* Legal text */
.legal { max-width: 820px; margin: 0 auto; }
.legal h2 { font-size: 22px; margin: 38px 0 12px; }
.legal p, .legal li { color: var(--muted); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 20px; display: grid; gap: 6px; }
.legal .meta { font-size: 14px; color: var(--muted); }
.legal table { width: 100%; border-collapse: collapse; margin-top: 10px; }
.legal td { padding: 9px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.legal td:first-child { color: var(--muted); width: 38%; }

/* Footer */
.footer { padding: 70px 0 0; background: var(--bg-alt); border-top: 1px solid var(--line); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.2fr; gap: 40px; }
.footer h3 { font-size: 18px; margin-bottom: 18px; }
.footer p, .footer li { color: var(--muted); font-size: 15px; }
.footer-brand .logo-light { height: 30px; margin-bottom: 18px; }
.footer-brand p { margin-bottom: 16px; max-width: 340px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-contact a { color: var(--muted); }
.footer-contact a:hover { color: var(--red); }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer ul a { color: var(--muted); }
.footer ul a:hover { color: var(--red); }
.footer-cta p { margin-bottom: 18px; }
.footer-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin-top: 56px; padding: 24px 20px; border-top: 1px solid var(--line-strong); color: var(--muted); font-size: 14px; }
.footer-langs { display: flex; gap: 16px; flex-wrap: wrap; }
.footer-langs a { color: var(--muted); }
.footer-langs a[aria-current="true"] { color: var(--red); font-weight: 700; }
.to-top { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 42px; height: 42px; border-radius: 6px; border: 0; background: var(--heading); color: #fff; display: grid; place-items: center; cursor: pointer; opacity: 0; visibility: hidden; transition: opacity .2s; }
.to-top.show { opacity: .9; visibility: visible; }
.to-top .ico { transform: rotate(180deg); }

/* Language hint */
.langhint { position: fixed; left: 16px; bottom: 16px; z-index: 50; display: flex; align-items: center; gap: 6px; padding: 6px 6px 6px 16px; border-radius: 8px; background: #fff; border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); max-width: calc(100vw - 90px); }
.langhint a { font-weight: 700; font-size: 14px; }

/* Reveal on scroll */
/* Hidden only while the script is running the effect (html.reveal-on); without it everything stays visible */
.reveal-on .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.reveal-on .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal-on .reveal { opacity: 1; transform: none; transition: none; }
  .tv-live::before { animation: none; }
}

/* Responsive */
@media (max-width: 1080px) {
  .split, .about, .faq-split { grid-template-columns: 1fr; gap: 40px; }
  .tab-panel { grid-template-columns: 1fr; gap: 32px; }
  .sports { grid-template-columns: repeat(4, 1fr); }
  .counters { grid-template-columns: repeat(3, 1fr); row-gap: 36px; }
  .order, .dl, .contact { grid-template-columns: 1fr; }
  .summary { position: static; }
  .banner { flex-direction: column; min-height: 0; }
  .banner-pic { position: relative; inset: auto; padding: 40px 20px; }
  .banner .wrap { padding: 0; }
  .banner-box { width: 100%; padding: 48px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .section { padding: 70px 0; }
  .hero { padding: 70px 0 170px; }
  .hero-kicker { font-size: 16px; }
  .hero-lead { font-size: 16px; }
  .hero-cta .btn { flex: 1 1 100%; }
  .pics { margin-top: -120px; }
  .pic-grid, .mini-grid, .shots, .pay-row { grid-template-columns: 1fr; }
  .collage { grid-template-columns: 1fr 1fr; gap: 10px; }
  .collage .c2 { margin-top: 20px; }
  .sports { grid-template-columns: repeat(2, 1fr); }
  .counters { grid-template-columns: repeat(2, 1fr); }
  .counter b { font-size: 42px; }
  .cta-band { grid-template-columns: 1fr; padding: 40px 24px; }
  .cta-band .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .row-2 { grid-template-columns: 1fr; }
  .form-card, .dl-box, .summary { padding: 22px; }
  .page-head { padding: 60px 0 46px; }
  .bankrow { flex-direction: column; align-items: flex-start; gap: 4px; }
  .bankrow b { text-align: left; }
  .plan-opt { flex-wrap: wrap; }
  .tabs-nav button { padding: 12px 10px; font-size: 14px; }
  .seg-score { height: 40px; }
  .seg-clock { height: 30px; }
}

/* Boards shrink with the box they sit in (cards, collage, phones) */
.board { container-type: inline-size; }
@container (max-width: 420px) {
  .board-row { gap: 6px; }
  .seg { gap: 3px; }
  .seg-score { height: 36px; }
  .seg-clock { height: 28px; }
  .seg-shot { height: 21px; }
  .seg-small { height: 16px; }
  .seg-colon { gap: 7px; }
  .seg-colon i { width: 4px; height: 4px; }
  .board-name { font-size: 9px; letter-spacing: .08em; white-space: nowrap; }
}
@container (max-width: 300px) {
  .seg-score { height: 26px; }
  .seg-clock { height: 21px; }
  .seg-shot { height: 16px; }
  .seg-small { height: 13px; }
  .board-name { font-size: 8px; letter-spacing: .04em; }
  .board-label { font-size: 7px; letter-spacing: .1em; }
}
.tv { container-type: inline-size; }
@container (max-width: 360px) {
  .bug { font-size: 11px; left: 8px; bottom: 8px; }
  .bug > span { padding: 4px 6px; }
  .bug .t-score { min-width: 26px; }
  .bug .t-clock small { display: none; }
}

/* Screens from the program */
.collage .c1.wide { grid-column: 1 / -1; grid-row: auto; }
.collage .c1.wide + .c2 { margin-top: 0; }
.collage .c1.wide img { width: 100%; }
.tab-pic.shot { background: #fff; border: 1px solid var(--line); padding: 0; }
.tab-pic.shot img { width: 100%; }
.shot img { aspect-ratio: 1400 / 748; object-fit: cover; object-position: top; }
.order.closed { grid-template-columns: 1fr; max-width: 640px; }

/* ===================== Features: menu, detail pages ===================== */
.ico-sm { width: 14px; height: 14px; }
.navdrop { position: relative; }
.navdrop-top { display: inline-flex !important; align-items: center; gap: 4px; }
.navdrop-menu { position: absolute; left: -10px; top: 100%; width: 340px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease; z-index: 50; }
.navdrop:hover .navdrop-menu, .navdrop:focus-within .navdrop-menu { opacity: 1; visibility: visible; transform: none; }
.navdrop-menu a { display: flex !important; gap: 12px; align-items: flex-start; padding: 10px !important; border-radius: 8px; text-transform: none !important; letter-spacing: 0 !important; }
.navdrop-menu a:hover { background: var(--bg-alt); }
.navdrop-menu strong { display: block; font-size: 15px; color: var(--heading); font-weight: 700; }
.navdrop-menu small { display: block; font-size: 13px; color: var(--muted); font-weight: 400; line-height: 1.4; margin-top: 2px; }
.navdrop-ico { flex: none; width: 36px; height: 36px; border-radius: 8px; background: var(--red-soft); color: var(--red); display: grid; place-items: center; }
.navdrop-ico .ico { width: 20px; height: 20px; }
@media (max-width: 960px) {
  /* inherit: while the mobile menu is closed (hidden) its sub-menu must stay hidden and untouchable too */
  .navdrop-menu { position: static; width: auto; opacity: 1; visibility: inherit; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .navdrop-menu a { border-bottom: 0 !important; padding: 8px 4px !important; }
  .navdrop-menu small { display: none; }
  .navdrop-top .ico { display: none; }
}

.fhead { position: relative; color: #fff; overflow: hidden; isolation: isolate; padding: 70px 0 80px; background: radial-gradient(60% 100% at 80% 0%, rgba(47,111,224,.3), transparent 60%), radial-gradient(50% 70% at 0% 100%, rgba(213,35,47,.2), transparent 60%), linear-gradient(180deg, #0b1220, #111c35); }
.fhead::before { content: ""; position: absolute; inset: 0; z-index: -1; opacity: .3; background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1.2px); background-size: 16px 16px; mask-image: linear-gradient(90deg, #000, transparent 70%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 70%); }
.fhead-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 50px; align-items: center; }
.fhead .eyebrow { color: #aebbd6; margin-top: 18px; }
.fhead h1 { color: #fff; font-size: clamp(32px, 4.4vw, 52px); font-weight: 900; margin-top: 12px; line-height: 1.1; }
.fhead-lead { color: #cfd7e4; font-size: 18px; margin-top: 18px; }
.fhead .crumbs { font-size: 13px; color: #aebbd6; }
.fhead .crumbs a { color: #dfe6f2; }
.fhead .crumbs a:hover { color: #fff; }
.fhead-pic .fpic { box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); transform: perspective(1400px) rotateY(-6deg); }

.fpic { margin: 0; border-radius: 10px; overflow: hidden; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.fpic-bar { display: flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; background: #eef1f6; border-bottom: 1px solid var(--line); }
.fpic-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d5d9e0; }
.fpic-bar i:first-child { background: #ff5f57; }
.fpic-bar i:nth-child(2) { background: #febc2e; }
.fpic-bar i:nth-child(3) { background: #28c840; }
.fpic-bar span { margin-left: 8px; font-size: 12px; color: var(--muted); font-weight: 500; }
.fpic img { width: 100%; height: auto; }
.fpic-draw { border-radius: 10px; overflow: hidden; box-shadow: var(--shadow-lg); }

.fhigh { background: #fff; border-bottom: 1px solid var(--line); }
.fhigh-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.fhigh-item { display: flex; gap: 16px; padding: 34px 26px; border-right: 1px solid var(--line); }
.fhigh-item:last-child { border-right: 0; }
.fhigh-item > .ico { width: 40px; height: 40px; color: var(--red); stroke-width: 1.4; }
.fhigh-item h2 { font-size: 18px; }
.fhigh-item p { color: var(--muted); font-size: 15px; margin-top: 6px; line-height: 1.6; }

.fblock { display: grid; grid-template-columns: 1fr 1.15fr; gap: 60px; align-items: center; }
.fblock.flip .fblock-text { order: 2; }
.fblock.solo { grid-template-columns: 1fr; max-width: 820px; }
.fblock-text .lead-text + .lead-text { margin-top: 12px; }

.spec { max-width: 900px; margin: 0 auto; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.spec-row { display: grid; grid-template-columns: 0.8fr 1.2fr; border-bottom: 1px solid var(--line); }
.spec-row:last-child { border-bottom: 0; }
.spec-row:nth-child(even) { background: var(--surface-2); }
.spec-k { padding: 14px 20px; font-weight: 700; color: var(--heading); }
.spec-v { padding: 14px 20px; color: var(--muted); }

.fnext-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 16px; }
.fnext-item { display: flex; align-items: center; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; color: var(--heading); transition: border-color .15s, box-shadow .15s; }
.fnext-item:hover { border-color: var(--red); box-shadow: var(--shadow); color: var(--heading); }
.fnext-item > .ico:first-child { width: 28px; height: 28px; color: var(--red); }
.fnext-item span { flex: 1; }
.fnext-item strong { display: block; font-size: 15px; }
.fnext-item small { display: block; color: var(--muted); font-size: 13px; line-height: 1.4; }

/* Code and data samples on the integrations page */
.code { margin: 0; background: #0b1220; color: #d7e2f5; border-radius: var(--radius); padding: 18px 20px; font: 13.5px/1.65 Consolas, 'SF Mono', Menlo, monospace; overflow-x: auto; white-space: pre; border: 1px solid #1d2a44; }
.code .c { color: #7f8ea8; }
.code .k { color: #ff9f7a; }
.code .s { color: #8fd18f; }
.code .n { color: #ffd27a; }
.api-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.api-card { padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.api-card h3 { font-size: 19px; display: flex; align-items: center; gap: 10px; }
.api-card h3 .ico { color: var(--red); width: 24px; height: 24px; }
.api-card p { color: var(--muted); font-size: 15px; }
.api-card code { font: 13px Consolas, Menlo, monospace; background: var(--bg-alt); padding: 2px 6px; border-radius: 4px; color: var(--heading); word-break: break-all; }
.api-tag { align-self: flex-start; font-size: 12px; font-weight: 700; color: var(--red); background: var(--red-soft); padding: 3px 9px; border-radius: 999px; }
.code-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.code-cols h3 { font-size: 18px; margin-bottom: 10px; }
.code-cols p { color: var(--muted); font-size: 15px; margin-bottom: 12px; }

/* Overlay design previews */
.ov-gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.ov-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.ov-stage { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: linear-gradient(180deg, rgba(4,8,16,0) 30%, rgba(4,8,16,.55)), radial-gradient(120% 90% at 50% 120%, #c98b4e 0%, #a86d36 40%, #6a4222 80%); container-type: inline-size; }
.ov-stage::before { content: ""; position: absolute; left: 50%; bottom: -55%; width: 110%; height: 120%; transform: translateX(-50%); border: 2px solid rgba(255,255,255,.45); border-radius: 50%; }
.ov-stage::after { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 2px; background: rgba(255,255,255,.35); }
.ov-body { padding: 16px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ov-body h3 { font-size: 17px; }
.ov-body p { color: var(--muted); font-size: 14px; }
.ov-soon { flex: none; font-size: 12px; font-weight: 700; color: var(--amber); background: rgba(185,119,0,.1); padding: 4px 10px; border-radius: 999px; }
.ov1, .ov2, .ov3, .ov4 { z-index: 1; }
.ov1 { position: absolute; left: 4%; top: 6%; display: flex; font: 900 2.3cqw/1 'Roboto', sans-serif; border-radius: .4em; overflow: hidden; box-shadow: 0 .6em 1.4em rgba(0,0,0,.45); }
.ov1 > span { padding: .55em .7em; display: flex; align-items: center; }
.ov1 .h { background: var(--navy); color: #fff; }
.ov1 .a { background: var(--red); color: #fff; }
.ov1 .s { background: #fff; color: #141a26; min-width: 2.2em; justify-content: center; }
.ov1 .t { background: #141a26; color: #fff; gap: .5em; }
.ov1 .t small { color: #ffbf2f; font-size: .7em; }
.ov2 { position: absolute; left: 8%; right: 8%; bottom: 8%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: stretch; font: 900 2.6cqw/1 'Roboto', sans-serif; color: #fff; filter: drop-shadow(0 .5em 1em rgba(0,0,0,.5)); }
.ov2 .side { display: flex; align-items: center; justify-content: space-between; padding: .5em .8em; }
.ov2 .home { background: linear-gradient(90deg, #1e3157, #2f6fe0); clip-path: polygon(0 0, 100% 0, 100% 100%, 4% 100%); }
.ov2 .away { background: linear-gradient(90deg, #d5232f, #8f1018); clip-path: polygon(0 0, 100% 0, 96% 100%, 0 100%); }
.ov2 .mid { background: #0b1220; padding: .5em .9em; text-align: center; min-width: 5.5em; }
.ov2 .mid small { display: block; color: #ffbf2f; font-size: .5em; margin-top: .3em; letter-spacing: .1em; }
.ov2 b { font-size: 1.3em; }
.ov3 { position: absolute; right: 4%; top: 6%; width: 30%; background: rgba(11,18,32,.92); border-radius: .6em; color: #fff; font: 700 1.7cqw/1.2 'Roboto', sans-serif; overflow: hidden; border: 1px solid rgba(255,255,255,.12); }
.ov3 .row { display: flex; justify-content: space-between; align-items: center; padding: .55em .8em; border-bottom: 1px solid rgba(255,255,255,.08); }
.ov3 .row b { font-size: 1.6em; font-weight: 900; }
.ov3 .row i { font-style: normal; color: #aebbd6; font-size: .8em; }
.ov3 .clock { background: var(--red); justify-content: center; gap: .8em; font-weight: 900; font-size: 1.2em; }
.ov4 { position: absolute; inset: 18% 20%; background: rgba(11,18,32,.9); border-radius: .8em; color: #fff; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; text-align: center; font: 900 4cqw/1 'Roboto', sans-serif; border-top: .25em solid var(--red); }
.ov4 small { display: block; font-size: .32em; letter-spacing: .15em; color: #aebbd6; margin-bottom: .5em; font-weight: 700; }
.ov4 .mid { font-size: .55em; color: #ffbf2f; }

/* Firebase: one source, readers around the world */
.fb-map { position: relative; border-radius: var(--radius); overflow: hidden; background: radial-gradient(70% 90% at 50% 50%, #17264a, #0b1220); padding: 30px; color: #fff; }
.fb-map svg { width: 100%; height: auto; }
.fb-legend { display: flex; flex-wrap: wrap; gap: 10px 24px; justify-content: center; margin-top: 14px; font-size: 14px; color: #cfd7e4; }
.fb-legend span { display: inline-flex; align-items: center; gap: 8px; }
.fb-legend i { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
@keyframes fbdash { to { stroke-dashoffset: -28; } }
.fb-line { stroke-dasharray: 6 8; animation: fbdash 1.1s linear infinite; }
@keyframes fbping { 0% { transform: scale(.4); opacity: .9; } 100% { transform: scale(2.6); opacity: 0; } }
.fb-ping { transform-box: fill-box; transform-origin: center; animation: fbping 2.2s ease-out infinite; }

/* Features hub */
.fhub { display: grid; grid-template-columns: repeat(2, 1fr); gap: 26px; }
.fhub-card { display: grid; grid-template-rows: auto 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; color: var(--text); transition: box-shadow .2s, transform .2s; }
.fhub-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); color: var(--text); }
.fhub-img { aspect-ratio: 16 / 8; overflow: hidden; background: var(--bg-alt); border-bottom: 1px solid var(--line); position: relative; }
.fhub-img img { width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.fhub-img .ov-stage { aspect-ratio: auto; height: 100%; }
.fhub-body { padding: 24px 26px; }
.fhub-body h2 { font-size: 22px; display: flex; gap: 10px; align-items: center; }
.fhub-body h2 .ico { color: var(--red); width: 26px; height: 26px; }
.fhub-body p { color: var(--muted); margin-top: 8px; }
.fhub-body .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: var(--red); font-weight: 700; }

@media (max-width: 1080px) {
  .fhead-grid, .fblock, .code-cols { grid-template-columns: 1fr; gap: 36px; }
  .fblock.flip .fblock-text { order: 0; }
  .fhead-pic .fpic { transform: none; }
  .fnext-grid { grid-template-columns: repeat(2, 1fr); }
  .api-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .fhead { padding: 46px 0 56px; }
  .fhigh-grid { grid-template-columns: 1fr; }
  .fhigh-item { border-right: 0; border-bottom: 1px solid var(--line); padding: 24px 0; }
  .fnext-grid, .api-grid, .ov-gallery, .fhub { grid-template-columns: 1fr; }
  .spec-row { grid-template-columns: 1fr; }
  .spec-k { padding-bottom: 0; }
  .fb-map { padding: 16px 10px; }
  .code { font-size: 12px; padding: 14px; }
}
.code-cols > *, .fblock > *, .fhead-grid > * { min-width: 0; }

/* The closed mobile menu takes no taps at all; footer links get finger-sized tap areas */
@media (max-width: 960px) {
  .mainnav { pointer-events: none; }
  body.menu-open .mainnav { pointer-events: auto; }
  .footer ul { gap: 2px; }
  .footer ul a, .footer-contact a { display: inline-block; padding: 8px 0; }
  .footer-langs { gap: 4px 6px; }
  .footer-langs a { display: inline-block; padding: 8px 6px; }
}
/* Info strip: one line always; on phones only the e-mail (the generic ".infobar span" rule must not show the hidden parts) */
.infobar span, .infobar a { white-space: nowrap; }
@media (max-width: 960px) {
  .infobar .infobar-left, .infobar .infobar-right > span { display: none; }
  .infobar-in { height: 36px; }
}
@media (max-width: 960px) { .mainnav { overflow-y: auto; overscroll-behavior: contain; } }
