/* ============================================================
   RunOrJog — POLISH LAYER (loads after styles.css)
   Elevates typography, hierarchy, surfaces, spacing & detail.
   Preserves every existing class, the Mapbox bg & all JS hooks.
   ============================================================ */

/* ---------- Type system ---------- */
:root {
  --font-display: "Sora", system-ui, sans-serif;
  --font-body: "Space Grotesk", system-ui, sans-serif;
  --font-mono: "Space Mono", ui-monospace, monospace;

  --surface: rgba(17, 19, 36, 0.60);
  --surface-2: rgba(24, 26, 48, 0.46);
  --stroke: rgba(255, 255, 255, 0.085);
  --stroke-2: rgba(255, 255, 255, 0.16);
  --shadow: 0 26px 60px -34px rgba(0, 0, 0, 0.9);
  --maxw: 1180px;
}

body {
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  background: radial-gradient(140% 100% at 50% -10%, #0a0c1c 0%, #06060e 60%);
}
::selection { background: rgba(0, 220, 255, 0.28); color: #fff; }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, h4, .section-title, .brand,
.showcase h3, .feature h3, .bento-card h4, .bento-head h3,
.tier h3, .faq-q, .final-cta h2, .bento-card .big, .tier .price {
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}

/* monospace data readouts */
.stat .n, .calc-card .cn, .calc-row .val, .am-endo, .eyebrow,
.tier .per, .calc-card .cl, .footer-col h4, .lang-switch button {
  font-family: var(--font-mono);
}

/* ---------- Nav ---------- */
.nav { backdrop-filter: blur(2px); }
.nav.scrolled { background: rgba(7, 7, 17, 0.72); backdrop-filter: blur(16px) saturate(1.2); }
.nav-inner { height: 70px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; }
.brand-icon { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 0 0 1px var(--stroke-2), 0 6px 18px -6px rgba(0, 220, 255, 0.5); }
.nav-links { display: flex; gap: 26px; margin-inline: auto; }
.nav-links a { color: var(--text-70); font-size: 14.5px; font-weight: 500; letter-spacing: 0; position: relative; padding: 4px 0; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 2px; background: linear-gradient(90deg, var(--cyan), var(--green)); transition: right 0.28s ease; border-radius: 2px; }
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { right: 0; }
.lang-switch { gap: 0; border: 1px solid var(--stroke-2); border-radius: 11px; overflow: hidden; padding: 3px; background: rgba(0, 0, 0, 0.25); }
.lang-switch button { border: 0; border-radius: 8px; padding: 6px 11px; font-size: 11.5px; letter-spacing: 0.06em; }
.lang-switch button:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.lang-switch button.active { background: var(--cyan); color: #06060e; box-shadow: 0 0 18px -4px var(--cyan); }
@media (max-width: 940px) { .nav-links { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: 76px 0 110px; position: relative; }
/* readability scrim so copy stays legible over the live map */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(115% 90% at 22% 42%, rgba(4, 5, 13, 0.88), rgba(4, 5, 13, 0.4) 46%, transparent 72%),
    linear-gradient(180deg, rgba(4,5,13,.35), transparent 30%);
}
.hero-grid { gap: 48px; position: relative; z-index: 1; }
.hero h1 {
  font-weight: 800; line-height: 1.02; letter-spacing: -0.035em; margin-bottom: 22px;
  font-size: clamp(40px, 6.6vw, 70px);
  background: linear-gradient(102deg, #ffffff 26%, var(--cyan) 52%, var(--green) 82%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 4px 30px rgba(0, 220, 255, 0.18));
}
.hero .sub { font-size: clamp(16px, 1.5vw, 19px); line-height: 1.62; color: #cfd6e6; max-width: 540px; margin-bottom: 34px; text-shadow: 0 1px 14px rgba(0, 0, 0, 0.55); }

/* eyebrow tag above the headline (built from existing pill marquee vibe) */
.hero-grid > div:first-child::before {
  content: ""; /* placeholder, replaced by .hero-kicker if present */
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 20px;
  padding: 8px 15px 8px 13px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em; color: var(--text-70);
  background: rgba(12, 13, 28, 0.6); border: 1px solid var(--stroke-2); backdrop-filter: blur(10px);
}
.hero-kicker .hk-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); animation: pulse-dot 2s ease-in-out infinite; }
@keyframes pulse-dot { 0%, 100% { opacity: 1; } 50% { opacity: 0.4; } }
@media (max-width: 820px) { .hero-kicker { margin-inline: auto; } }

/* Floating hero chips — moved clear of the headline, clustered round the phone */
.float-card {
  padding: 10px 14px; border-radius: 13px; font-size: 13px; font-weight: 600;
  background: rgba(12, 13, 28, 0.66); border: 1px solid color-mix(in srgb, var(--fc, var(--cyan)) 55%, transparent);
  box-shadow: 0 14px 34px -16px rgba(0, 0, 0, 0.8), 0 0 22px -12px var(--fc, var(--cyan));
  backdrop-filter: blur(12px) saturate(1.1);
}
.float-card .ico { width: 17px; height: 17px; }
.fc-a { top: 12%; right: 31%; left: auto; --fc: var(--green); }
.fc-b { top: 22%; right: 2%; left: auto; --fc: var(--gold); }
.fc-c { bottom: 25%; right: 33%; left: auto; --fc: var(--pink); }
.fc-d { bottom: 16%; right: 3%; left: auto; --fc: var(--cyan); }
@media (max-width: 1080px) { .fc-a { right: 36%; } .fc-c { right: 38%; } }

/* CTA buttons */
.btn { font-family: var(--font-body); font-weight: 600; border-radius: 14px; padding: 15px 26px; font-size: 15.5px; }
.btn-primary {
  background: linear-gradient(120deg, var(--cyan), color-mix(in srgb, var(--cyan) 76%, #073a48) 55%, color-mix(in srgb, var(--cyan) 52%, #062430));
  color: #04141a; box-shadow: 0 14px 38px -14px color-mix(in srgb, var(--cyan) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 18px 48px -12px color-mix(in srgb, var(--cyan) 85%, transparent), inset 0 1px 0 rgba(255, 255, 255, 0.4); }
.btn-ghost { border: 1px solid var(--stroke-2); border-radius: 14px; background: rgba(255, 255, 255, 0.025); }
.btn-ghost:hover { background: rgba(0, 220, 255, 0.06); }

/* store buttons (App Store / Google Play) */
.store-btn { display: inline-flex; align-items: center; gap: 11px; padding: 11px 20px 11px 16px; text-align: left; }
.store-btn .store-ico { width: 24px; height: 24px; flex: none; fill: currentColor; }
.store-btn .store-txt { display: flex; flex-direction: column; line-height: 1.05; }
.store-btn .store-txt small { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; opacity: 0.72; }
.store-btn .store-txt b { font-family: var(--font-display); font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.store-btn.alt { background: #0d0f1d; color: #fff; border: 1px solid var(--stroke-2); box-shadow: 0 14px 38px -18px rgba(0, 0, 0, 0.8); }
.store-btn.alt:hover { border-color: color-mix(in srgb, var(--green) 50%, transparent); box-shadow: 0 16px 44px -16px rgba(57, 255, 20, 0.4); }
.store-btn.alt .store-ico { fill: var(--green); }

/* Phone mockup — crisper frame & brand ring */
.phone {
  width: 290px; border-radius: 42px;
  background: linear-gradient(160deg, #20223c, #0a0b15);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 40px 100px -36px rgba(0, 0, 0, 0.8), 0 0 0 1.5px rgba(0, 220, 255, 0.12), 0 0 80px -30px rgba(0, 220, 255, 0.5);
}

/* ---------- Section rhythm & titles ---------- */
section { padding: 88px 0; }
.section-title { font-weight: 800; letter-spacing: -0.025em; font-size: clamp(28px, 4.4vw, 42px); margin-bottom: 16px; }
.section-title.reveal + .section-sub, .section-sub { font-size: 16px; color: var(--text-45); }
/* gradient accent bar under centered section titles */
.section-title { position: relative; padding-bottom: 18px; }
.section-title::after {
  content: ""; position: absolute; left: 50%; bottom: 0; transform: translateX(-50%);
  width: 54px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, var(--cyan), var(--green)); box-shadow: 0 0 16px -2px var(--cyan);
}

/* ---------- Stats ---------- */
.stats { padding: 30px 0; }
.stats .container { background: var(--card-bg, var(--surface)); border: 1px solid var(--card-stroke, var(--stroke)); border-radius: 22px; padding: 34px 26px; backdrop-filter: blur(var(--card-blur, 10px)); -webkit-backdrop-filter: blur(var(--card-blur, 10px)); box-shadow: var(--shadow); }
.stats-grid { gap: 18px; }
.stat { position: relative; }
.stat + .stat { }
.stat .n { font-size: clamp(32px, 5vw, 50px); font-weight: 700; line-height: 1; background: linear-gradient(180deg, #fff, var(--cyan)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.stat .l { color: var(--text-70); font-size: 13px; margin-top: 10px; letter-spacing: 0.01em; }

/* ---------- Feature cards ---------- */
.features { gap: 20px; }
.feature { border-radius: 20px; padding: 28px; background: var(--card-bg, var(--surface)); border: var(--card-border-w, 1px) solid var(--card-stroke, var(--stroke)); backdrop-filter: blur(var(--card-blur, 10px)); -webkit-backdrop-filter: blur(var(--card-blur, 10px)); box-shadow: var(--shadow); }
.feature:hover { border-color: color-mix(in srgb, var(--cyan) 50%, transparent); box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7), 0 0 50px -28px var(--cyan); }
.feature h3 { font-size: 20px; margin-bottom: 9px; letter-spacing: -0.01em; }
.feature p { font-size: 15px; line-height: 1.6; }
.icon-badge { width: 54px; height: 54px; border-radius: 15px; }

/* ---------- Showcase ---------- */
.showcase-row { gap: 56px; margin-bottom: 104px; }
/* eyebrow → expressive badge card */
.showcase .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-mono); font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 700; color: #fff;
  padding: 9px 16px 9px 9px; margin-bottom: 20px; border-radius: 999px;
  background:
    linear-gradient(120deg, color-mix(in srgb, var(--accent, var(--cyan)) 22%, transparent), color-mix(in srgb, var(--accent, var(--cyan)) 6%, transparent)),
    rgba(10, 11, 24, 0.7);
  border: 1px solid color-mix(in srgb, var(--accent, var(--cyan)) 45%, transparent);
  box-shadow: 0 10px 30px -14px color-mix(in srgb, var(--accent, var(--cyan)) 80%, transparent),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px); position: relative; overflow: hidden;
}
.showcase .eyebrow::after { /* sheen sweep */
  content: ""; position: absolute; top: 0; left: -60%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.18), transparent);
  transform: skewX(-18deg); animation: eb-sheen 5.5s ease-in-out infinite;
}
@keyframes eb-sheen { 0%, 65% { left: -60%; } 100% { left: 130%; } }
.showcase .eyebrow .ico {
  width: 28px; height: 28px; flex: none; padding: 6px; border-radius: 9px;
  stroke: var(--accent, var(--cyan)); position: relative; z-index: 1;
  background: color-mix(in srgb, var(--accent, var(--cyan)) 16%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent, var(--cyan)) 35%, transparent);
}
.showcase .eyebrow > span { position: relative; z-index: 1; }
@media (prefers-reduced-motion: reduce) { .showcase .eyebrow::after { animation: none; display: none; } }
.showcase h3 { font-size: clamp(24px, 3.4vw, 32px); margin-bottom: 16px; line-height: 1.12; }
.showcase .lead { font-size: 16.5px; line-height: 1.6; color: var(--text-70); margin-bottom: 22px; }
.showcase ul.checks li { font-size: 15px; padding-left: 30px; }
.showcase ul.checks li::before { top: 6px; }
.device { border-radius: 40px; border: 1px solid rgba(255, 255, 255, 0.14); box-shadow: 0 30px 80px -34px rgba(0, 0, 0, 0.7), 0 0 70px -22px var(--accent, var(--cyan)); }
.device-chip { border-radius: 12px; font-size: 12px; font-weight: 600; background: rgba(11, 12, 26, 0.8); backdrop-filter: blur(10px); }

/* ---------- Bento ---------- */
.bento { gap: 18px; }
.bento-card { border-radius: 20px; padding: 24px; background: var(--card-bg, var(--surface)); border: var(--card-border-w, 1px) solid var(--card-stroke, var(--stroke)); backdrop-filter: blur(var(--card-blur, 10px)); -webkit-backdrop-filter: blur(var(--card-blur, 10px)); box-shadow: var(--shadow); }
.bento-card:hover { box-shadow: 0 30px 70px -32px rgba(0, 0, 0, 0.7), 0 0 50px -26px var(--bc); }
.bento-card h4 { font-size: 18px; letter-spacing: -0.01em; }
.bento-card .big { font-size: clamp(30px, 5vw, 46px); font-weight: 800; letter-spacing: -0.03em; }
.bento-head h3 { letter-spacing: -0.02em; }

/* ---------- Pricing tiers ---------- */
.tiers { gap: 20px; }
.tier { border-radius: 22px; padding: 30px 26px; background: var(--card-bg, var(--surface)); border: var(--card-border-w, 1px) solid var(--card-stroke, var(--stroke)); backdrop-filter: blur(var(--card-blur, 10px)); -webkit-backdrop-filter: blur(var(--card-blur, 10px)); box-shadow: var(--shadow); }
.tier:hover { box-shadow: 0 30px 70px -30px rgba(0, 0, 0, 0.7), 0 0 56px -26px var(--tc); }
.tier.featured { background: linear-gradient(180deg, color-mix(in srgb, var(--gold) 9%, var(--card-bg, var(--surface))), var(--card-bg, var(--surface))); box-shadow: 0 30px 80px -28px rgba(255, 215, 0, 0.35), 0 0 0 1px var(--gold); transform: translateY(-8px); }
.tier h3 { font-size: 15px; text-transform: uppercase; letter-spacing: 0.14em; color: var(--tc); font-family: var(--font-mono); }
.tier .price { font-size: clamp(30px, 4.2vw, 40px); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.tier .per { font-size: 12.5px; letter-spacing: 0.04em; }
.tier li { font-size: 14.5px; }
.tier .tier-cta { border-radius: 14px; font-family: var(--font-body); font-weight: 700; transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s; }
.tier:hover .tier-cta { box-shadow: 0 10px 30px -12px var(--tc); }
.tier.featured:hover .tier-cta { box-shadow: 0 12px 34px -10px var(--gold); }

/* ---------- Calculator ---------- */
.calc { border-radius: 22px; padding: 34px; background: var(--card-bg, var(--surface)); border: var(--card-border-w, 1px) solid var(--card-stroke, var(--stroke)); backdrop-filter: blur(var(--card-blur, 10px)); -webkit-backdrop-filter: blur(var(--card-blur, 10px)); box-shadow: var(--shadow); }
.calc-row .val { font-size: 19px; font-weight: 700; }
.calc input[type="range"] { height: 7px; background: linear-gradient(90deg, var(--cyan), rgba(255, 255, 255, 0.06)); }
.calc input[type="range"]::-webkit-slider-thumb { width: 22px; height: 22px; box-shadow: 0 0 0 5px rgba(0, 220, 255, 0.18), 0 0 14px var(--cyan); }
.calc-card { border-radius: 16px; padding: 20px; }
.calc-card .cn { font-size: clamp(24px, 4vw, 32px); font-weight: 700; }

/* ---------- FAQ ---------- */
.faq-search { border-radius: 14px; background: var(--card-bg, var(--surface)); border: 1px solid var(--card-stroke, var(--stroke)); font-size: 15px; }
.faq-item { border-radius: 14px; border: var(--card-border-w, 1px) solid var(--card-stroke, var(--stroke)); background: var(--card-bg, var(--surface)); backdrop-filter: blur(var(--card-blur, 10px)); -webkit-backdrop-filter: blur(var(--card-blur, 10px)); margin-bottom: 12px; transition: border-color 0.2s; }
.faq-item:hover { border-color: var(--stroke-2); }
.faq-item.open { border-color: color-mix(in srgb, var(--cyan) 45%, transparent); }
.faq-q { font-family: var(--font-display); font-weight: 600; font-size: 16px; letter-spacing: -0.01em; padding: 19px 22px; }
.faq-a { font-size: 15px; line-height: 1.6; }

/* ---------- Pill marquee ---------- */
.pill-marquee { padding: 28px 0; background: rgba(0, 0, 0, 0.3); }
.pill { border-radius: 30px; padding: 11px 19px; font-size: 14.5px; font-weight: 600; background: rgba(255, 255, 255, 0.035); border: 1px solid color-mix(in srgb, var(--pc, var(--cyan)) 45%, transparent); }

/* ---------- Steps ---------- */
.step { padding: 26px 22px; }
.step .num { font-family: var(--font-display); width: 56px; height: 56px; line-height: 56px; font-size: 22px; box-shadow: 0 0 30px -10px var(--cyan); }
.step p { color: var(--text-70); font-size: 15px; }

/* ---------- Video ---------- */
.video-frame { border-radius: 22px; border: 1px solid var(--stroke); box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.7), 0 0 80px -40px var(--cyan); }

/* ---------- Final CTA ---------- */
.final-cta { padding: 104px 0; }
.final-cta h2 { font-weight: 800; letter-spacing: -0.03em; font-size: clamp(30px, 5.2vw, 50px); margin-bottom: 22px; }

/* ---------- Footer ---------- */
.footer { padding: 60px 0 36px; }
.footer-brand .brand { display: inline-flex; align-items: center; gap: 10px; }
.footer-col h4 { font-size: 11px; letter-spacing: 0.16em; }
.footer-col a { font-size: 14px; transition: color 0.18s, transform 0.18s; }
.footer-col a:hover { transform: translateX(2px); }
.footer-bottom { font-family: var(--font-mono); font-size: 12.5px; letter-spacing: 0.02em; }

/* ---------- Scroll progress ---------- */
.scroll-progress { height: 3px; background: linear-gradient(90deg, var(--cyan), var(--green), var(--gold)); }

/* ---------- Custom scrollbar ---------- */
* { scrollbar-width: thin; scrollbar-color: rgba(0, 220, 255, 0.5) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: linear-gradient(180deg, var(--cyan), var(--purple)); border-radius: 10px; border: 2px solid #06060e; }
*::-webkit-scrollbar-track { background: transparent; }
