/* ============================================================
   Kubb Club — Marketing site styles
   Layered on top of colors_and_type.css (the design tokens).
   ============================================================ */

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--kc-bg); color: var(--kc-fg); overflow-x: hidden; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 780px; margin: 0 auto; padding: 0 32px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  height: 52px; padding: 0 24px; border-radius: 14px; border: 0;
  font-family: var(--kc-font-ui); font-weight: 700; font-size: 16px;
  letter-spacing: -0.01em; cursor: pointer; transition: transform var(--kc-dur-fast) var(--kc-ease-standard), background var(--kc-dur-fast) var(--kc-ease-standard);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--kc-meadow-600); color: var(--kc-on-primary); box-shadow: var(--kc-shadow-2); }
.btn-primary:hover { background: var(--kc-meadow-700); }
.btn-ink { background: var(--kc-stone-900); color: var(--kc-chalk-50); }
.btn-ink:hover { background: #000; }
.btn-ghost { background: transparent; color: var(--kc-fg); box-shadow: inset 0 0 0 1.5px var(--kc-stone-300); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--kc-stone-900); }
.btn-sm { height: 42px; padding: 0 16px; font-size: 14px; border-radius: 11px; }

/* ---------- Eyebrow / section heads ---------- */
.eyebrow {
  font-family: var(--kc-font-mono); font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--kc-meadow-600);
  display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow.on-dark { color: var(--kc-wood-300); }
.section-title {
  font-family: var(--kc-font-display); font-weight: 700;
  font-size: clamp(32px, 4.5vw, 56px); line-height: 1.04; letter-spacing: -0.03em;
  margin: 14px 0 0; font-variation-settings: "opsz" 72; text-wrap: balance;
}
.section-lead {
  font-size: 19px; line-height: 1.55; color: var(--kc-fg-muted); margin: 18px 0 0;
  max-width: 620px; text-wrap: pretty;
}

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--kc-bg) 82%, transparent);
  backdrop-filter: blur(14px) saturate(1.2);
  border-bottom: 1px solid var(--kc-line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.nav-brand { display: flex; align-items: center; gap: 12px; }
.nav-brand img { width: 40px; height: 40px; }
.nav-brand .wm { font-family: var(--kc-font-display); font-weight: 700; font-size: 21px; letter-spacing: -0.025em; font-variation-settings: "opsz" 40; }
.nav-brand .wm .dot { color: var(--kc-meadow-600); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--kc-fg-muted); transition: color var(--kc-dur-fast), background var(--kc-dur-fast); }
.nav-links a:hover { color: var(--kc-fg); background: var(--kc-bg-sunken); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding: 72px 0 0; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px; align-items: center; }
.hero h1 {
  font-family: var(--kc-font-display); font-weight: 800;
  font-size: clamp(46px, 7vw, 86px); line-height: 0.98; letter-spacing: -0.04em;
  margin: 20px 0 0; font-variation-settings: "opsz" 144, "SOFT" 30; text-wrap: balance;
}
.hero h1 .accent { color: var(--kc-meadow-600); }
.hero-lead { font-size: 21px; line-height: 1.5; color: var(--kc-fg-muted); margin: 24px 0 0; max-width: 540px; text-wrap: pretty; }
.hero-cta { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta { display: flex; gap: 28px; margin-top: 34px; flex-wrap: wrap; }
.hero-meta .stat { }
.hero-meta .num { font-family: var(--kc-font-ui); font-weight: 800; font-size: 30px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.hero-meta .lab { font-family: var(--kc-font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--kc-fg-muted); margin-top: 2px; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 24px; } .hero-phone-wrap { justify-self: center; } }

/* decorative meadow field at hero base */
.hero-field { margin-top: 64px; height: 120px; background:
  radial-gradient(120% 100% at 50% 0%, transparent 40%, color-mix(in srgb, var(--kc-meadow-500) 8%, transparent) 100%);
  position: relative; }
.hero-field .ticks { position: absolute; bottom: 0; left: 0; right: 0; display: flex; justify-content: center; gap: 7px; align-items: flex-end; height: 40px; }
.hero-field .ticks i { width: 2px; background: var(--kc-meadow-400); opacity: 0.5; border-radius: 1px; }

/* ---------- Phone mockup ---------- */
.hero-phone-wrap { display: flex; justify-content: center; position: relative; }
.phone {
  width: 320px; height: 552px; border-radius: 46px; background: #0c0b07;
  padding: 11px; box-shadow: var(--kc-shadow-4), 0 40px 80px -20px rgba(12,11,7,0.4); position: relative;
}
.phone::before { content: ""; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 110px; height: 26px; background: #0c0b07; border-radius: 0 0 16px 16px; z-index: 5; }
.phone-screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: var(--kc-chalk-50); position: relative; }

/* ---------- Generic section ---------- */
.section { padding: 96px 0; }
.section-sunken { background: var(--kc-bg-sunken); }
.section-ink { background: var(--kc-stone-900); color: var(--kc-chalk-50); }
.section-ink .section-lead { color: var(--kc-stone-300); }
.section-head { max-width: 680px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head.center .section-lead { margin-left: auto; margin-right: auto; }

/* ---------- Feature cards ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; }
@media (max-width: 900px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
  background: var(--kc-bg-raised); border-radius: 20px; padding: 28px;
  box-shadow: var(--kc-shadow-1); border: 1px solid var(--kc-line);
  transition: transform var(--kc-dur-base) var(--kc-ease-standard), box-shadow var(--kc-dur-base) var(--kc-ease-standard);
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--kc-shadow-3); }
.feature .fi { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; color: var(--kc-chalk-50); margin-bottom: 18px; }
.feature h3 { font-family: var(--kc-font-ui); font-weight: 700; font-size: 22px; letter-spacing: -0.02em; margin: 0 0 8px; }
.feature p { font-size: 16px; line-height: 1.55; color: var(--kc-fg-muted); margin: 0; }
.feature .tag { display: inline-block; margin-top: 16px; font-family: var(--kc-font-mono); font-size: 11px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--kc-meadow-700); background: var(--kc-meadow-50); padding: 4px 10px; border-radius: 999px; }

/* ---------- Platforms ---------- */
.platform-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; margin-top: 56px; }
@media (max-width: 900px) { .platform-grid { grid-template-columns: repeat(2, 1fr); } }
.platform {
  background: var(--kc-bg-raised); border: 1px solid var(--kc-line); border-radius: 18px;
  padding: 26px 20px; text-align: center; transition: border-color var(--kc-dur-base), transform var(--kc-dur-base);
}
.section-ink .platform { background: rgba(255,255,255,0.04); border-color: rgba(255,255,255,0.1); }
.platform:hover { transform: translateY(-3px); border-color: var(--kc-meadow-500); }
.platform .pi { height: 44px; display: grid; place-items: center; margin-bottom: 14px; color: currentColor; }
.platform h4 { font-family: var(--kc-font-ui); font-weight: 700; font-size: 17px; margin: 0 0 4px; }
.platform .meta { font-family: var(--kc-font-mono); font-size: 11px; letter-spacing: 0.04em; color: var(--kc-fg-muted); }
.section-ink .platform .meta { color: var(--kc-stone-400); }
.platform .badge { display: inline-block; margin-top: 12px; font-family: var(--kc-font-mono); font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; }
.badge-live { background: var(--kc-meadow-600); color: #fff; }
.badge-beta { background: var(--kc-wood-400); color: var(--kc-stone-900); }
.badge-soon { background: var(--kc-stone-700); color: var(--kc-stone-200); }

/* ---------- Screenshot gallery ---------- */
.shots { display: flex; gap: 24px; overflow-x: auto; padding: 56px 32px 24px; scroll-snap-type: x mandatory; }
.shots::-webkit-scrollbar { height: 8px; }
.shots::-webkit-scrollbar-thumb { background: var(--kc-stone-300); border-radius: 999px; }
.shot { flex: 0 0 auto; scroll-snap-align: center; }

/* ---------- Split feature row ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split.flip .split-media { order: -1; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 32px; } .split.flip .split-media { order: 0; } }
.split + .split { margin-top: 88px; }
.split-list { margin: 26px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 14px; }
.split-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 16px; line-height: 1.5; }
.split-list .ck { flex-shrink: 0; width: 24px; height: 24px; border-radius: 999px; background: var(--kc-meadow-50); color: var(--kc-meadow-700); display: grid; place-items: center; margin-top: 1px; }

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(160deg, var(--kc-meadow-500) 0%, var(--kc-meadow-800) 100%); color: var(--kc-chalk-50); border-radius: 28px; padding: 64px 56px; text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { font-family: var(--kc-font-display); font-weight: 800; font-size: clamp(32px, 5vw, 52px); letter-spacing: -0.03em; margin: 16px 0 0; font-variation-settings: "opsz" 72; }
.cta-band p { font-size: 19px; color: rgba(251,250,246,0.85); margin: 16px auto 0; max-width: 520px; }
.cta-band .hero-cta { justify-content: center; }

/* ---------- Footer ---------- */
.footer { background: var(--kc-stone-900); color: var(--kc-stone-300); padding: 64px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 760px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
.footer h5 { font-family: var(--kc-font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--kc-stone-400); margin: 0 0 16px; }
.footer a { display: block; padding: 6px 0; color: var(--kc-stone-300); font-size: 15px; }
.footer a:hover { color: var(--kc-chalk-50); }
.footer-brand .wm { font-family: var(--kc-font-display); font-weight: 700; font-size: 22px; color: var(--kc-chalk-50); letter-spacing: -0.025em; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--kc-stone-700); font-family: var(--kc-font-mono); font-size: 12px; color: var(--kc-stone-400); flex-wrap: wrap; gap: 12px; }

/* ---------- Store badges ---------- */
.store-badge { display: inline-flex; align-items: center; gap: 11px; height: 56px; padding: 0 20px; border-radius: 13px; background: var(--kc-stone-900); color: var(--kc-chalk-50); transition: transform var(--kc-dur-fast); }
.store-badge:hover { transform: translateY(-2px); }
.store-badge .sb-sub { font-size: 11px; opacity: 0.8; line-height: 1; }
.store-badge .sb-main { font-family: var(--kc-font-ui); font-weight: 700; font-size: 18px; line-height: 1.1; letter-spacing: -0.01em; }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--kc-ease-emphasized), transform 0.7s var(--kc-ease-emphasized); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
