/* ===================================================================
   Homepage (landing.html). A short, conventional page: navy hero with a
   stream picture, logos, feature cards, a testimonial, three steps, tabs
   by role, pricing cards and a closing band. Only this page loads it.
   =================================================================== */
body.home {
  --navy: #0a1628;
  --navy-2: #131f33;
  --red: #b8222f;
  --red-hover: #9d1c27;
  --ink: #0f172a;
  --text: #1e293b;
  --muted: #475569;
  --line: #e2e8f0;
  --grey: #f5f6f8;
  --m: clamp(16px, 4vw, 48px);

  margin: 0;
  background: #fff;
  color: var(--text);
  font: 400 17px/1.6 "Albert Sans", system-ui, -apple-system, sans-serif;
}
body.home h1, body.home h2, body.home h3 { margin: 0; color: var(--ink); line-height: 1.15; letter-spacing: -0.01em; }
body.home p, body.home ul, body.home ol, body.home figure, body.home blockquote { margin: 0; }
body.home ul, body.home ol { padding: 0; list-style: none; }
body.home img { display: block; max-width: 100%; height: auto; }
body.home a { color: inherit; }
body.home :focus-visible { outline: 3px solid #f5c242; outline-offset: 3px; }

/* Buttons */
.lp-btn {
  display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding: 10px 22px;
  border-radius: 8px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
.lp-btn-red { background: var(--red); color: #fff !important; }
.lp-btn-red:hover { background: var(--red-hover); }
.lp-btn-ghost { border-color: rgba(255, 255, 255, .6); color: #fff !important; }
.lp-btn-ghost:hover { background: rgba(255, 255, 255, .1); }
.lp-btn-white { background: #fff; color: var(--navy) !important; }
.lp-btn-white:hover { background: #e8ecf2; }
.lp-btn-line { border-color: var(--ink); color: var(--ink) !important; }
.lp-btn-line:hover { background: var(--grey); }
.lp-btn-off { border-color: var(--line); color: var(--muted); }

/* Header */
.lp-top {
  position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 12px var(--m); background: var(--navy);
}
.lp-logo img { width: 150px; }
.lp-nav { display: flex; align-items: center; gap: 24px; font-weight: 700; font-size: 15px; color: #fff; }
.lp-nav a:not(.lp-btn) { text-decoration: none; }
.lp-nav a:not(.lp-btn):hover { text-decoration: underline; }
.lp-nav .lp-btn { min-height: 40px; padding: 8px 16px; }

/* Hero */
.lp-hero {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 48px; align-items: center;
  padding: 72px var(--m) 88px; background: var(--navy); color: #e2e8f0;
}
body.home .lp-hero h1 { color: #fff; font-size: clamp(32px, 4vw, 52px); font-weight: 800; }
body.home .lp-hero-text > p { margin-top: 18px; font-size: 19px; max-width: 34em; }
.lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
body.home .lp-ticks { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 20px; font-size: 15px; }
.lp-ticks li::before { content: "✓ "; color: #4ade80; font-weight: 700; }
/* Real Scoreline screens in devices.css frames (MacBook Pro, iPad Pro,
   iPhone 14 Pro). The stage is drawn at 1000 x 630 and scaled by home.js to
   the column's width; a little perspective gives the 3D look. */
.lp-stage-wrap { position: relative; width: 100%; aspect-ratio: 1000 / 630; }
.lp-stage { position: absolute; left: 0; top: 0; width: 1000px; height: 630px; transform-origin: 0 0; perspective: 2200px; }
.lp-dev { position: absolute; }
/* Soft floor shadows. A filter: drop-shadow() here would make the browser
   rasterise the 3D-transformed devices at low resolution (blurry). */
.lp-stage::before, .lp-stage::after { content: ""; position: absolute; border-radius: 50%; background: rgba(0, 0, 0, .55); filter: blur(22px); }
.lp-stage::before { left: 150px; right: 120px; bottom: 180px; height: 40px; }
.lp-stage::after { left: 0; right: 0; bottom: -14px; height: 34px; }
.lp-dev-laptop { left: 130px; top: 0; transform: rotateX(4deg); transform-origin: 50% 100%; }
.lp-dev-tablet { right: 0; bottom: 0; transform-origin: 100% 100%; transform: scale(.5) rotateY(-16deg); }
/* devices.css only has a portrait iPad Pro; same frame, turned landscape. */
.device-ipad-pro.lp-landscape, .lp-landscape .device-frame { width: 778px; height: 560px; }
.lp-landscape .device-screen { width: 724px; height: 506px; }
/* The tablet's own screens crossfade: all tables, then Pool Player mode. */
.lp-tab-frame { position: relative; overflow: hidden; background: #06101f; }
.lp-tab-frame .lp-tab-shot { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity .6s ease; }
.lp-tab-frame .lp-tab-shot.is-on { opacity: 1; }
.lp-dev-phone { left: 0; bottom: 0; transform-origin: 0 100%; transform: scale(.45) rotateY(16deg); }
.lp-shot-frame { position: relative; overflow: hidden; background: #06101f; }
.device .lp-shot, .device .lp-shot img { display: block; }
.device-screen img { object-fit: cover; object-position: 50% 0; }
/* A faint reflection across the laptop screen, so it reads as glass. */
.lp-glass::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 2;
  background: linear-gradient(115deg, rgba(255, 255, 255, .08) 0%, rgba(255, 255, 255, .02) 30%, rgba(255, 255, 255, 0) 45%);
}
.lp-shot { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity 600ms ease, visibility 0s 600ms; }
.lp-shot.is-on { opacity: 1; visibility: visible; transition: opacity 600ms ease; }
body.home .lp-shot img { width: 100%; height: 100%; object-fit: contain; }
/* The darts overlay is a wide bar: sit it on the same dark as its own background. */
.lp-shot-darts { background: #2c333f; }
body.home .lp-shot-darts img { object-fit: contain; padding: 0 4%; }
.lp-shot figcaption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
body.home .lp-shot-cap { margin-top: 14px; text-align: center; color: #fff; font-weight: 700; font-size: 15px; min-height: 1.6em; }
.lp-dots { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.lp-dots button { width: 32px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; display: grid; place-items: center; }
.lp-dots button::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .35); transition: background-color 150ms, transform 150ms; }
.lp-dots button:hover::before { background: rgba(255, 255, 255, .7); }
.lp-dots button[aria-current="true"]::before { background: #fff; transform: scale(1.2); }
@media (prefers-reduced-motion: reduce) { .lp-shot, .lp-shot.is-on, .lp-tab-frame .lp-tab-shot { transition: none; } }

/* Push notifications on the phone's screen, set large so they can be read at this size. */
body.home .lp-notes { position: absolute; left: 31px; right: 31px; top: 84px; margin: 0; padding: 0; list-style: none; display: grid; gap: 12px; z-index: 3; }
body.home .lp-note { display: flex; gap: 16px; align-items: flex-start; padding: 18px 20px; border-radius: 30px; background: rgba(242, 242, 247, .94); color: #111; box-shadow: 0 10px 30px rgba(0, 0, 0, .45); font: 24px/1.25 -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; animation: lp-note .5s ease-out both; }
body.home .lp-note + .lp-note { animation-delay: .25s; }
body.home .lp-note img { width: 52px; height: 52px; border-radius: 12px; flex: none; }
body.home .lp-note div { flex: 1; min-width: 0; }
body.home .lp-note p { margin: 0; color: #111; font-size: 24px; }
body.home .lp-note-top { display: flex; justify-content: space-between; gap: 10px; }
body.home .lp-note-top span { color: #6b6b70; font-size: 20px; }
@keyframes lp-note { from { opacity: 0; transform: translateY(-20px); } }
@media (prefers-reduced-motion: reduce) { body.home .lp-note { animation: none; } }

/* Logos: one row, always moving (paused on hover and under reduced motion). */
.lp-logos { padding: 40px 0 48px; text-align: center; background: var(--navy-2); overflow: hidden; }
body.home .lp-logos h2 { font-size: 16px; font-weight: 700; color: #e2e8f0; letter-spacing: 0; margin-bottom: 28px; }
.logos-track { display: flex; width: max-content; animation: logos 40s linear infinite; }
.lp-logos:hover .logos-track { animation-play-state: paused; }
body.home .logos-set { display: flex; align-items: center; gap: clamp(40px, 5vw, 80px); padding: 0 clamp(20px, 2.5vw, 40px); }
body.home .logos-set img { height: clamp(64px, 6vw, 88px); width: auto; }
body.home .logos-set img.is-wordmark { height: clamp(36px, 3.6vw, 52px); }
body.home .logos-set img.is-card { border-radius: 8px; }
body.home .logos-set img.is-wide { height: clamp(44px, 4.4vw, 64px); }
@keyframes logos { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .logos-track { animation: none; width: auto; }
  body.home .logos-set { flex-wrap: wrap; justify-content: center; row-gap: 28px; }
  .logos-set[aria-hidden] { display: none; }
}

/* Sections */
.lp-sec { padding: 80px var(--m); }
.lp-grey { background: var(--grey); }
.lp-band { background: var(--navy); color: #e2e8f0; }
body.home .lp-band h2, body.home .lp-band b { color: #fff; }
.lp-head { text-align: center; max-width: 640px; margin: 0 auto 40px; }
.lp-head h2 { font-size: clamp(26px, 3vw, 36px); font-weight: 800; }
body.home .lp-head p { margin-top: 10px; }
.lp-center { text-align: center; justify-content: center; }
.lp-note { margin-top: 28px; font-size: 15px; }

/* Feature cards */
.lp-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
.lp-card { padding: 28px; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.lp-card h3 { font-size: 20px; margin: 16px 0 8px; }
.lp-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: #fde8ea; }
.lp-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--red); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Testimonial */
body.home .lp-quotes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; }
body.home .lp-quote { margin: 0; padding: 32px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-align: center; }
.lp-quote p { font-size: 18px; color: var(--ink); }
body.home .lp-quote figcaption { margin-top: 14px; font-size: 15px; color: var(--muted); }

/* Steps */
body.home .lp-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; max-width: 1000px; margin: 0 auto 36px; counter-reset: step; text-align: center; }
.lp-steps li { counter-increment: step; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.lp-steps li::before {
  content: counter(step); display: grid; place-items: center; width: 52px; height: 52px; margin-bottom: 6px;
  border-radius: 50%; background: var(--red); color: #fff; font-size: 22px; font-weight: 800;
}
.lp-steps b { font-size: 19px; }

/* Tabs by role */
.lp-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 28px; }
.lp-tabs button {
  font: inherit; font-size: 15px; font-weight: 700; padding: 10px 18px; min-height: 44px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--line); background: #fff; color: var(--ink); transition: background-color 150ms, color 150ms;
}
.lp-tabs button:hover { background: var(--grey); }
.lp-tabs button[aria-selected="true"] { background: var(--navy); border-color: var(--navy); color: #fff; }
.lp-panel {
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; align-items: center;
  max-width: 1000px; margin: 0 auto; padding: 32px; border: 1px solid var(--line); border-radius: 12px;
}
.lp-panel[hidden] { display: none; }
.lp-panel ul { display: grid; gap: 14px; }
.lp-panel li { padding-left: 28px; position: relative; color: var(--ink); }
.lp-panel li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.lp-panel img { border-radius: 8px; }

/* Pricing */
.lp-plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; max-width: 1100px; margin: 0 auto; align-items: start; }
.lp-plan { display: flex; flex-direction: column; gap: 16px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.lp-plan-pro { border: 2px solid var(--red); }
.lp-plan h3 { font-size: 20px; }
.lp-price { font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1; }
.lp-price small { font-size: 15px; font-weight: 400; color: var(--muted); }
body.home .lp-plan ul { display: grid; gap: 10px; margin-bottom: 8px; }
.lp-plan li { padding-left: 24px; position: relative; font-size: 16px; }
.lp-plan li::before { content: "✓"; position: absolute; left: 0; color: var(--red); font-weight: 800; }
.lp-plan .lp-btn { margin-top: auto; }

/* The shared footer sits on navy here. */
body.home .site-footer { margin-top: 0; background: var(--navy); }

@media (max-width: 860px) {
  .lp-hide { display: none; }
  .lp-logo img { width: 120px; }
  .lp-nav { gap: 14px; }
  .lp-hero { grid-template-columns: 1fr; padding: 40px 16px 56px; gap: 32px; }
  .lp-sec { padding: 56px 16px; }
  .lp-cards, body.home .lp-steps, .lp-plans, body.home .lp-quotes { grid-template-columns: 1fr; }
  .lp-panel { grid-template-columns: 1fr; padding: 20px; gap: 24px; }
  .lp-actions .lp-btn { flex: 1 1 auto; }
}
