/* Huddle marketing site. One stylesheet for every page; no build step.
   Colours follow the Huddle logo: navy #15256b and aqua #25cec8. */
:root {
  --navy: #15256b;
  --navy-deep: #0b1640;
  --aqua: #25cec8;
  --aqua-ink: #0e7f7b;
  --blue: #1968e6;
  --ink: #111936;
  --muted: #56607d;
  --paper: #f6f8fc;
  --white: #fff;
  --line: #e2e7f2;
  --soft: #eef3ff;
  --radius: 22px;
  --wrap: 1160px;
  --heading: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --body: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.6 var(--body); }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
/* Two-tone ring: navy reads on light backgrounds, the aqua halo on dark ones. */
a:focus-visible, button:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--navy-deep); outline-offset: 2px; box-shadow: 0 0 0 6px var(--aqua);
}
h1, h2, h3 { font-family: var(--heading); color: var(--navy); line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(38px, 6vw, 62px); font-weight: 800; }
h2 { font-size: clamp(30px, 4.2vw, 46px); font-weight: 800; }
h3 { font-size: 21px; font-weight: 800; }
p { margin: 0 0 1em; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 0; }
.skip:focus { left: 16px; top: 12px; z-index: 50; background: #fff; padding: 10px 14px; border-radius: 8px; }
.eyebrow { display: inline-block; font: 800 13px/1 var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--aqua-ink); margin-bottom: 14px; }
.lead { font-size: 20px; color: var(--muted); max-width: 640px; }
.small { font-size: 14px; color: var(--muted); }
section { padding: 88px 0; scroll-margin-top: 84px; }
section.tight { padding: 64px 0; }
.alt { background: var(--white); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.94); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; min-height: 72px; gap: 16px; }
.logo { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--navy); font: 800 26px/1 var(--heading); }
.logo img { width: auto; height: 36px; }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--blue); }
.menu-toggle { display: none; min-width: 44px; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; background: #fff; color: var(--navy); font-size: 22px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 16px; text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #0f1c55; }
.btn-aqua { background: var(--aqua); color: var(--navy-deep); }
.btn-aqua:hover { background: #3ad9d3; }
.btn-ghost { border-color: currentColor; color: var(--navy); background: transparent; }
.btn-ghost-light { border-color: rgba(255,255,255,.55); color: #fff; }
.nav .btn { color: #fff; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

/* Hero */
.hero { position: relative; overflow: hidden; background: var(--navy); color: #fff; padding: 72px 0 84px; }
.hero::before { /* pitch lines: a halfway line and a centre circle, drawn faintly */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .12;
  background:
    radial-gradient(circle at 78% 50%, transparent 158px, #fff 159px, #fff 161px, transparent 162px),
    linear-gradient(90deg, transparent calc(78% - 1px), #fff calc(78% - 1px), #fff calc(78% + 1px), transparent calc(78% + 1px));
}
.hero h1, .hero h2 { color: #fff; }
.hero .eyebrow { color: var(--aqua); }
.hero .lead { color: #d3dbf6; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; }
.hero-shot { justify-self: center; }
.proof { background: var(--navy-deep); color: #dfe6ff; }
.proof ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; font-weight: 600; font-size: 15px; }
.proof li { display: flex; gap: 10px; align-items: flex-start; }
.proof li::before { content: ""; flex: none; width: 10px; height: 10px; margin-top: 7px; border-radius: 50%; border: 3px solid var(--aqua); }
.proof strong { color: #fff; }

/* Phone frame and screenshots */
.phone { margin-inline: auto; width: min(300px, 78vw); aspect-ratio: 9 / 17; border-radius: 36px; border: 9px solid #0d1840; background: #0d1840; overflow: hidden; box-shadow: 0 30px 60px rgba(9, 18, 60, .28); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; border-radius: 27px; }
.phone.sm { width: min(250px, 70vw); }
.shot-caption { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.hero .shot-caption, .dark .shot-caption { color: rgba(255, 255, 255, .9); }
.notify { max-width: 520px; border-radius: 26px; overflow: hidden; box-shadow: 0 18px 40px rgba(9,18,60,.18); }
.shots { display: flex; gap: 28px; justify-content: center; align-items: flex-start; flex-wrap: wrap; }

/* Layout helpers */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip > :first-child { order: 2; }
.head { max-width: 760px; margin-bottom: 44px; }
.head.center { text-align: center; margin-inline: auto; }
.head.center .lead { margin-inline: auto; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.alt .card { background: var(--paper); }
.card p:last-child { margin-bottom: 0; }
.card h3 { margin-bottom: 8px; }
a.card { display: block; text-decoration: none; color: inherit; transition: transform .2s ease, box-shadow .2s ease; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(21,37,107,.1); }
.card .more { display: inline-block; margin-top: 10px; color: var(--blue); font-weight: 700; font-size: 15px; }
.icon { width: 44px; height: 44px; border-radius: 14px; background: var(--soft); color: var(--navy); display: grid; place-items: center; margin-bottom: 16px; }
.icon svg { width: 24px; height: 24px; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; }
.ticks li { position: relative; padding-left: 32px; margin-bottom: 10px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 16px; height: 9px; border-left: 3px solid var(--aqua-ink); border-bottom: 3px solid var(--aqua-ink); transform: rotate(-45deg); }

/* Before / after */
.compare { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.compare div { padding: 20px 24px; border-top: 1px solid var(--line); }
.compare .th { border-top: 0; font: 800 14px/1.2 var(--body); letter-spacing: .1em; text-transform: uppercase; }
.compare .before { background: #fbf6f4; color: #6d4b44; }
.compare .after { background: #f0fbfa; color: var(--ink); }
.compare .th.before { color: #a24a37; }
.compare .th.after { color: var(--aqua-ink); }

/* Steps */
.steps { counter-reset: step; display: grid; gap: 14px; }
.step { counter-increment: step; display: grid; grid-template-columns: 48px 1fr; gap: 16px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.step::before { content: counter(step); width: 40px; height: 40px; border-radius: 50%; background: var(--navy); color: #fff; display: grid; place-items: center; font: 800 18px/1 var(--heading); }
.step h3 { font-size: 19px; margin-bottom: 4px; }
.step p { margin: 0; color: var(--muted); }
.dark .step { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.14); }
.dark .step::before { background: var(--aqua); color: var(--navy-deep); }
.dark .step h3 { color: #fff; }
.dark .step p { color: #c9d2f2; }
.dark { background: var(--navy); color: #fff; }
.dark h2 { color: #fff; }
.dark .lead { color: #c9d2f2; }
.dark .eyebrow { color: var(--aqua); }
.dark .small { color: #aab6e2; }

/* Products */
.product { position: relative; overflow: hidden; border-radius: 26px; padding: 34px; color: #fff; min-height: 260px; display: flex; flex-direction: column; justify-content: flex-end; text-decoration: none; }
.product.sports { background: linear-gradient(150deg, var(--navy), #1b4fb8); }
.product.tournaments { background: linear-gradient(150deg, #0b4d58, #0e7f7b); }
.product h3 { color: #fff; font-size: 28px; }
.product p { color: #e3ebff; max-width: 420px; }
.product .more { color: var(--aqua); font-weight: 700; }
.product.tournaments .more { color: #c8fffb; }
.product:hover { box-shadow: 0 18px 40px rgba(9,18,60,.25); }

/* CTA */
.cta { background: linear-gradient(130deg, var(--navy), #163d8f); color: #fff; border-radius: 30px; padding: 56px; position: relative; overflow: hidden; }
.cta h2 { color: #fff; max-width: 720px; }
.cta p { color: #d3dbf6; max-width: 620px; }

/* FAQ */
.faq-group { max-width: 820px; }
details { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 12px; }
summary { cursor: pointer; list-style: none; padding: 18px 54px 18px 22px; font-weight: 700; position: relative; min-height: 44px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 22px; top: 14px; font: 400 26px/1 var(--body); color: var(--blue); }
details[open] summary::after { content: "–"; }
details > div { padding: 0 22px 18px; color: var(--muted); }
details > div ul { margin: 0 0 1em; padding-left: 22px; }
details > div li { margin-bottom: 6px; }
details > div p:last-child, details > div ul:last-child { margin-bottom: 0; }

/* Contact form */
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; }
.field { margin-bottom: 18px; }
.field label, .field legend { display: block; font-weight: 700; margin-bottom: 6px; font-size: 15px; }
.field .opt { font-weight: 400; color: var(--muted); }
input[type="text"], input[type="email"], input[type="tel"], textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid #c9d1e6; border-radius: 12px; font: inherit; background: #fff; color: var(--ink); }
textarea { min-height: 120px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 18px; }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 1px solid #c9d1e6; border-radius: 999px; font-weight: 600; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.side { display: grid; gap: 16px; align-content: start; }

/* Notice and legal */
.notice { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 40px; max-width: 760px; }
.legal { max-width: 780px; }
.legal h2 { font-size: 24px; margin-top: 32px; }

/* Footer */
.site-footer { background: var(--navy-deep); color: #c8d0ee; padding: 56px 0 28px; margin-top: 24px; }
.site-footer .logo { color: #fff; }
.foot { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 32px; }
.site-footer a { color: #fff; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.site-footer li a { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer h3 { color: #fff; font-size: 15px; letter-spacing: .08em; text-transform: uppercase; }
.fine { border-top: 1px solid rgba(255,255,255,.12); margin-top: 36px; padding-top: 20px; font-size: 13px; color: #95a0c8; }

/* Gentle reveal, only when scripts run, never with reduced motion */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
  a.card { transition: none; }
}

@media (max-width: 960px) {
  .hero::before { display: none; }
  .hero-grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .split.flip > :first-child { order: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  body { font-size: 16px; }
  section { padding: 64px 0; }
  .wrap { width: min(100% - 32px, var(--wrap)); }
  .js .menu-toggle { display: inline-block; }
  .nav { flex-wrap: wrap; gap: 4px 18px; }
  .js .nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 16px 20px; background: #fff; border-bottom: 1px solid var(--line); }
  .js .nav.open { display: flex; }
  .js .nav a { padding: 12px 4px; min-height: 44px; }
  .js .nav .btn { margin-top: 8px; }
  .bar { position: relative; flex-wrap: wrap; }
  .proof ul { grid-template-columns: 1fr; gap: 10px; }
  .grid-2, .grid-3, .grid-4, .compare { grid-template-columns: 1fr; }
  .compare .th.after { display: none; }
  .compare .after::before { content: "With Huddle: "; font-weight: 800; color: var(--aqua-ink); }
  .compare .before::before { content: "Before: "; font-weight: 800; color: #a24a37; }
  .compare .th.before { display: none; }
  .compare div:nth-child(3) { border-top: 0; }
  .cta { padding: 36px 24px; }
  .form, .notice { padding: 22px; }
  .foot { grid-template-columns: 1fr; }
  .actions .btn { width: 100%; }
  .lead { font-size: 18px; }
}
