/* ==========================================================================
 LOOMI Sports - marketing site
   Brand: Pure Black + Soft White foundation, energetic colour used sparingly.
   Flat colours only (no gradients), bold geometric type, generous breathing room.
   Palette + wordmark taken from the LOOMI Brand Guidelines (Figma).
   ========================================================================== */

:root {
  /* Core */
 --black: #000000;
 --bg: #0d0d0d;
 --bg-alt: #090909;
 --fg: #f5f2ee; /* soft white */
 --muted: #a9a29e; /* grey 400 */
 --muted-2: #8a837e; /* grey 500 */
 --line: rgba(245, 242, 238, 0.10);
 --line-2: rgba(245, 242, 238, 0.16);
 --surface: rgba(245, 242, 238, 0.035);
 --surface-2: rgba(245, 242, 238, 0.06);
 --charcoal: #332f2d;

  /* Accent (Orange 500 / basketball) */
 --accent: #f5511e;
 --accent-600: #ab401a;
 --accent-fg: #ffffff;

  /* Sport hues (Brand Guidelines 2.4/2.5, 500 values) */
 --baseball: #f5271f;
 --basketball: #f5511e;
 --football: #b4245a;
 --golf: #6ef0b0;
 --tennis: #d6f229;
 --icehockey: #67b6d9;
 --soccer: #43a047;
 --swimming: #2962ff;
 --volleyball: #f5a800;

 --radius: 26px;
 --radius-sm: 16px;
 --wrap: 1180px;
 --ease: cubic-bezier(0.22, 1, 0.36, 1);

 --font: "General Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
 font-family: var(--font);
 background: var(--bg);
 color: var(--fg);
 line-height: 1.55;
 font-weight: 400;
 -webkit-font-smoothing: antialiased;
 text-rendering: optimizeLegibility;
 overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.skip-link {
 position: absolute; left: -999px; top: 0; z-index: 200;
 background: var(--fg); color: var(--black); padding: 10px 16px; border-radius: 0 0 12px 0;
}
.skip-link:focus { left: 0; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 820px; }

/* ---- Reveal animation ---- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* ---- Typography ---- */
h1, h2, h3, h4 { line-height: 1.05; letter-spacing: -0.02em; font-weight: 600; }
h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); letter-spacing: -0.035em; font-weight: 700; }
h2 { font-size: clamp(2rem, 4vw, 3.1rem); letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; letter-spacing: -0.02em; }
.eyebrow, .kicker {
 font-size: 0.8rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
 color: var(--accent);
}
.accent-word { color: var(--accent); }

/* ---- Buttons ---- */
.btn {
 display: inline-flex; align-items: center; justify-content: center; gap: 8px;
 font-family: inherit; font-weight: 600; font-size: 0.98rem; letter-spacing: -0.01em;
 padding: 12px 22px; border-radius: 999px; border: 1px solid transparent; cursor: pointer;
 transition: transform 0.2s var(--ease), background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
 white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-fg); }
.btn-primary:hover { background: #ff6234; }
.btn-ghost { background: transparent; color: var(--fg); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--fg); background: var(--surface); }
.btn-lg { padding: 15px 30px; font-size: 1.05rem; }
.btn-block { display: flex; width: 100%; margin-top: 20px; }

/* ==========================================================================
   Header
   ========================================================================== */
.site-header {
 position: sticky; top: 0; z-index: 100;
  background: rgba(13, 13, 13, 0.72);
 backdrop-filter: saturate(140%) blur(14px);
 -webkit-backdrop-filter: saturate(140%) blur(14px);
 border-bottom: 1px solid transparent;
 transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
.site-header.scrolled { border-bottom-color: var(--line); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.wordmark { height: 26px; width: auto; color: var(--fg); }
.brand { display: inline-flex; align-items: center; }
.nav { display: flex; gap: 30px; margin-left: auto; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; transition: color 0.2s; }
.nav a:hover { color: var(--fg); }
.header-cta { margin-left: 8px; }

.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 8px; }
.menu-toggle span { width: 22px; height: 2px; background: var(--fg); border-radius: 2px; transition: transform 0.3s var(--ease), opacity 0.2s; }
.menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 24px 24px; border-top: 1px solid var(--line); }
.mobile-menu a { padding: 14px 4px; color: var(--fg); font-weight: 500; border-bottom: 1px solid var(--line); }
.mobile-menu a.btn { border: 1px solid transparent; margin-top: 14px; justify-content: center; }

/* ==========================================================================
   Hero
   ========================================================================== */
.hero { padding: clamp(48px, 8vw, 96px) 0 40px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero-copy .eyebrow { display: block; margin-bottom: 20px; }
.hero-copy h1 { margin-bottom: 24px; }
.lede { font-size: clamp(1.05rem, 1.6vw, 1.25rem); color: var(--muted); max-width: 34ch; margin-bottom: 34px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-trust { font-size: 0.9rem; color: var(--muted-2); }

/* Phone mockup */
.hero-art { display: flex; justify-content: center; }
.phone {
 position: relative; width: 300px; max-width: 78vw; aspect-ratio: 300 / 620;
 background: #050505; border: 1px solid var(--line-2); border-radius: 44px; padding: 12px;
 box-shadow: 0 40px 80px -40px rgba(0, 0, 0, 0.9);
}
.phone-notch { position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #050505; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-screen { height: 100%; background: var(--bg); border-radius: 33px; overflow: hidden; display: flex; align-items: center; justify-content: center; padding: 18px; }

.post-card { width: 100%; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 12px; }
.post-media { position: relative; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--sport, var(--accent)); transition: background 0.6s var(--ease); }
.post-figure { position: absolute; inset: 0; }
.post-figure::after {
  content: ""; position: absolute; inset: 0; background: rgba(5, 5, 5, 0.30);
 -webkit-mask: var(--figure) center bottom / 66% no-repeat; mask: var(--figure) center bottom / 66% no-repeat;
}
.post-live { position: absolute; top: 10px; left: 10px; font-size: 0.68rem; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: rgba(5, 5, 5, 0.55); color: var(--fg); }
.post-meta { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px 8px; }
.post-sport { font-weight: 600; font-size: 0.95rem; }
.post-style { font-size: 0.78rem; color: var(--muted); }
.post-actions { display: flex; gap: 6px; padding: 0 2px 2px; }
.pill { flex: 1; text-align: center; font-size: 0.72rem; font-weight: 500; padding: 8px 0; border-radius: 999px; background: var(--surface-2); color: var(--muted); }
.pill-accent { background: var(--accent); color: var(--accent-fg); }

/* Stat band */
.stat-band {
 display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: clamp(48px, 7vw, 88px);
 padding: 30px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
.stat { text-align: center; }
.stat strong { display: block; font-size: clamp(1.5rem, 2.4vw, 2rem); font-weight: 700; letter-spacing: -0.03em; }
.stat span { font-size: 0.85rem; color: var(--muted); }

/* ==========================================================================
   Sections
   ========================================================================== */
.section { padding: clamp(72px, 11vw, 130px) 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 6vw, 68px); text-align: center; }
.section-head .kicker { display: block; margin-bottom: 16px; }
.section-head h2 { margin-bottom: 16px; }
.section-sub { color: var(--muted); font-size: 1.08rem; }

/* Steps */
.steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px 28px; background: var(--surface); }
.step-num { display: inline-block; font-size: 0.85rem; font-weight: 700; letter-spacing: 0.1em; color: var(--accent); margin-bottom: 22px; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
 border: 1px solid var(--line); border-radius: var(--radius); padding: 30px; background: var(--surface);
 transition: border-color 0.3s var(--ease), transform 0.3s var(--ease), background 0.3s var(--ease);
}
.card:hover { border-color: var(--line-2); transform: translateY(-3px); background: var(--surface-2); }
.card-wide { grid-column: span 2; }
.card-tall { grid-row: span 2; grid-column: span 1; display: flex; flex-direction: column; }
.card-icon {
 width: 46px; height: 46px; border-radius: 13px; background: var(--surface-2);
 display: flex; align-items: center; justify-content: center; margin-bottom: 22px; color: var(--accent);
}
.card-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }
.ticks { list-style: none; margin-top: 18px; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; color: var(--fg); font-size: 0.95rem; }
.ticks li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 15px; height: 9px;
 border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg);
}
.ticks-lg li { font-size: 1.02rem; margin-bottom: 2px; }

/* Split (video) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split-copy .kicker { display: block; margin-bottom: 16px; }
.split-copy h2 { margin-bottom: 16px; }
.split-copy .btn { margin-top: 28px; }
.split-art { display: flex; justify-content: center; }
.video-frame {
 position: relative; width: 100%; max-width: 440px; aspect-ratio: 4 / 5; border-radius: var(--radius);
 overflow: hidden; background: var(--football); border: 1px solid var(--line-2);
}
.video-figure { position: absolute; inset: 0; }
.video-figure::after {
  content: ""; position: absolute; inset: 0; background: rgba(5, 5, 5, 0.28);
 -webkit-mask: var(--figure) center bottom / 62% no-repeat; mask: var(--figure) center bottom / 62% no-repeat;
}
.video-scrub { position: absolute; left: 18px; right: 18px; bottom: 20px; height: 5px; border-radius: 999px; background: rgba(5, 5, 5, 0.4); overflow: hidden; }
.video-progress { display: block; height: 100%; width: 42%; background: var(--fg); border-radius: 999px; animation: scrub 6s linear infinite; }
@keyframes scrub { 0% { width: 6%; } 100% { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .video-progress { animation: none; width: 62%; } }
.video-badge { position: absolute; top: 16px; right: 16px; font-size: 0.72rem; font-weight: 600; padding: 5px 12px; border-radius: 999px; background: rgba(5, 5, 5, 0.55); color: var(--fg); }

/* Sports grid */
.sports-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.sport-card {
 position: relative; border-radius: var(--radius-sm); padding: 22px; min-height: 132px;
 display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
 color: var(--sport-fg, #000); background: var(--sport-bg, #333);
}
.sport-card .sport-name { font-weight: 600; font-size: 1.15rem; letter-spacing: -0.02em; }
.sport-card .sport-ico { width: 34px; height: 34px; stroke: currentColor; opacity: 0.9; }
.sport-card.fg-white { color: #fff; }

/* Small cycling sport icon on the hero post card */
.post-sport { display: inline-flex; align-items: center; gap: 6px; }
.post-icon { display: inline-flex; }
.post-icon .sport-ico { width: 16px; height: 16px; stroke: currentColor; }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: start; }
.price-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; background: var(--surface); }
.price-card-feature { border-color: var(--accent); background: rgba(245, 81, 30, 0.06); position: relative; }
.price-flag { position: absolute; top: 20px; right: 20px; font-size: 0.7rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.price-card h3 { margin-bottom: 14px; }
.price { display: flex; align-items: baseline; gap: 8px; margin-bottom: 12px; }
.price strong { font-size: clamp(2.2rem, 3.4vw, 2.8rem); font-weight: 700; letter-spacing: -0.03em; }
.price span { color: var(--muted); font-weight: 500; }
.price-sub { color: var(--muted); margin-bottom: 6px; }

/* FAQ */
.faq { display: grid; gap: 12px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); overflow: hidden; }
.faq-item summary {
 list-style: none; cursor: pointer; padding: 22px 24px; font-weight: 600; font-size: 1.05rem;
 display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.chev { position: relative; width: 14px; height: 14px; flex-shrink: 0; }
.chev::before, .chev::after { content: ""; position: absolute; top: 6px; width: 9px; height: 2px; background: var(--muted); border-radius: 2px; transition: transform 0.25s var(--ease); }
.chev::before { left: 0; transform: rotate(45deg); }
.chev::after { right: 0; transform: rotate(-45deg); }
.faq-item[open] .chev::before { transform: rotate(-45deg); }
.faq-item[open] .chev::after { transform: rotate(45deg); }
.faq-item p { padding: 0 24px 24px; color: var(--muted); max-width: 62ch; }

/* CTA */
.cta { padding: clamp(80px, 12vw, 140px) 0; text-align: center; background: var(--bg-alt); border-top: 1px solid var(--line); }
.cta-inner { max-width: 640px; margin: 0 auto; }
.cta h2 { margin-bottom: 16px; }
.cta p { color: var(--muted); font-size: 1.1rem; margin-bottom: 30px; }
.cta-form { display: flex; gap: 12px; max-width: 480px; margin: 0 auto 16px; }
.cta-form input {
 flex: 1; font-family: inherit; font-size: 1rem; color: var(--fg); background: var(--surface);
 border: 1px solid var(--line-2); border-radius: 999px; padding: 14px 22px; outline: none;
}
.cta-form input::placeholder { color: var(--muted-2); }
.cta-form input:focus { border-color: var(--accent); }
.cta-fine { font-size: 0.85rem; color: var(--muted-2); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg); }
.footer-grid { display: grid; grid-template-columns: 1.2fr 2fr; gap: 48px; margin-bottom: 48px; }
.footer-brand .wordmark-sm { height: 24px; margin-bottom: 16px; }
.footer-brand p { color: var(--muted); max-width: 26ch; }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.footer-links h4 { font-size: 0.8rem; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 16px; font-weight: 600; }
.footer-links a { display: block; color: var(--muted); padding: 6px 0; font-size: 0.95rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--fg); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); }
.footer-bottom p { font-size: 0.85rem; color: var(--muted-2); }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 960px) {
 .nav, .header-cta { display: none; }
 .menu-toggle { display: flex; }
 .mobile-menu { display: flex; }
 .mobile-menu[hidden] { display: none; }
 .hero-grid { grid-template-columns: 1fr; gap: 44px; }
 .hero-art { order: -1; }
 .lede { max-width: none; }
 .bento, .steps, .price-grid { grid-template-columns: 1fr 1fr; }
 .card-wide, .card-tall { grid-column: auto; grid-row: auto; }
 .split { grid-template-columns: 1fr; gap: 36px; }
 .split-art { order: -1; }
 .footer-grid { grid-template-columns: 1fr; gap: 32px; }
}

@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
 .stat-band { grid-template-columns: 1fr 1fr; gap: 24px; padding: 26px; }
 .bento, .steps, .price-grid, .sports-grid { grid-template-columns: 1fr; }
 .sports-grid { grid-template-columns: 1fr 1fr; }
 .cta-form { flex-direction: column; }
 .cta-form .btn { width: 100%; }
 .footer-links { grid-template-columns: 1fr 1fr; }
 .footer-bottom { flex-direction: column; gap: 10px; text-align: center; }
}

/* ==========================================================================
   Legal pages (privacy / terms)
   ========================================================================== */
.legal { padding: clamp(48px, 8vw, 96px) 0 96px; }
.legal .wrap { max-width: 760px; }
.legal .back { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.legal .back:hover { color: var(--fg); }
.legal h1 { font-size: clamp(2rem, 4vw, 2.8rem); margin-bottom: 8px; }
.legal .updated { color: var(--muted-2); font-size: 0.9rem; margin-bottom: 40px; }
.legal h2 { font-size: 1.35rem; margin: 40px 0 12px; }
.legal p, .legal li { color: var(--muted); margin-bottom: 14px; }
.legal ul { padding-left: 22px; }
.legal a.inline { color: var(--accent); }
.legal .note { border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); padding: 18px 22px; color: var(--muted-2); font-size: 0.9rem; }
