/* ===================================================================
   Train Ultra - Marketing design system
   "Vercel × Nike": stark/technical/monochrome base + athletic display
   energy. Dark. Purple-free.

   Self-contained and namespaced under `body.mkt` so it never touches the
   authenticated dashboard (which links style.css + dashboard.css). Every
   marketing page links ONLY this file.

   Tokens are the single source of truth for the marketing palette,
   type scale, spacing, radius, and hairline borders.
   =================================================================== */

/* -------------------------------------------------------------------
   Design tokens (scoped to the marketing layer)
   ------------------------------------------------------------------- */
body.mkt {
  /* Canvas + surfaces - monochrome-forward (Vercel) */
  --bg: #0a0a0b; /* primary near-black canvas */
  --bg-pure: #000000; /* deepest bands */
  --bg-raised: #19191c; /* hairline-bordered cards */
  --bg-raised-2: #202024; /* nested / inputs */
  --bg-elevated: #0e0e10; /* alt section band */

  /* Text */
  --text: #fafafa; /* primary white */
  --text-secondary: #a1a1aa; /* muted gray (~7:1 on canvas - AA) */
  --text-muted: #8b8b93; /* quiet labels (~5:1 on canvas - AA for small text) */
  --text-faint: #52525b; /* decorative only (not for body copy) */

  /* Hairline borders - low-alpha white, not heavy shadows */
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.14);
  --border-faint: rgba(255, 255, 255, 0.05);

  /* Accents - used sparingly, earn attention because they are rare */
  --accent: #38bdf8; /* electric blue - links, focus, technical cues */
  --accent-strong: #0ea5e9; /* hover / pressed */
  --accent-soft: rgba(56, 189, 248, 0.12); /* tinted fills */
  --energy: #ff6a1a; /* warm orange - athletic energy pop */
  --energy-strong: #fc4c02; /* Strava-adjacent */
  --energy-soft: rgba(255, 106, 26, 0.12);
  --success: #34d399; /* quiet semantic green */

  /* Type families */
  --font-display: 'Archivo', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-sans:
    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Fluid type scale (mobile-first, clamp-based) */
  --fs-display-xl: clamp(2.85rem, 1.4rem + 6.2vw, 6rem); /* hero */
  --fs-display-l: clamp(2rem, 1.1rem + 3.6vw, 3.5rem); /* section titles */
  --fs-display-m: clamp(1.6rem, 1.1rem + 2vw, 2.4rem);
  --fs-lead: clamp(1.05rem, 0.95rem + 0.6vw, 1.3rem); /* subheads */
  --fs-body: 1.0625rem;
  --fs-sm: 0.9375rem;
  --fs-eyebrow: 0.75rem;

  /* Spacing scale (4px base) */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.5rem;
  --space-6: 2rem;
  --space-8: 3rem;
  --space-10: 4rem;
  --space-12: 5rem;
  --section-y: clamp(4.5rem, 2rem + 9vw, 8.5rem);

  /* Radius */
  --r-sm: 8px;
  --r-md: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --r-pill: 999px;

  /* Layout */
  --container: 1180px;
  --container-narrow: 760px;

  /* Motion */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --speed: 0.2s;
}

/* -------------------------------------------------------------------
   Reset / base (scoped to the marketing layer)
   ------------------------------------------------------------------- */
body.mkt *,
body.mkt *::before,
body.mkt *::after {
  box-sizing: border-box;
}

body.mkt {
  margin: 0;
  padding: 0;
  background-color: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

body.mkt main {
  flex: 1 0 auto;
}

/* Base element rules use :where() so they carry minimal (element-only)
   specificity - this lets single-class component rules (.mkt-btn, .mkt-brand,
   .mkt-nav__link, etc.) win cleanly instead of being overridden by the
   body.mkt-scoped base. */
:where(body.mkt) img,
:where(body.mkt) svg {
  display: block;
  max-width: 100%;
}

:where(body.mkt) a {
  color: var(--accent);
  text-decoration: none;
  transition: color var(--speed) var(--ease);
}

:where(body.mkt) a:hover {
  color: var(--text);
}

:where(body.mkt) h1,
:where(body.mkt) h2,
:where(body.mkt) h3,
:where(body.mkt) h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.02;
  color: var(--text);
}

:where(body.mkt) p {
  margin: 0;
}

:where(body.mkt) strong {
  color: var(--text);
  font-weight: 600;
}

/* Visible, on-brand focus states (a11y - FR-14.1) */
body.mkt :focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

body.mkt ::selection {
  background: var(--accent);
  color: #04121b;
}

/* -------------------------------------------------------------------
   Layout primitives
   ------------------------------------------------------------------- */
.mkt-container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1.25rem, 1rem + 1.5vw, 2.5rem);
}

.mkt-container--narrow {
  max-width: var(--container-narrow);
}

.mkt-section {
  padding-block: var(--section-y);
  position: relative;
}

.mkt-section--alt {
  background: var(--bg-elevated);
  border-block: 1px solid var(--border);
}

.mkt-section--pure {
  background: var(--bg-pure);
}

/* -------------------------------------------------------------------
   Eyebrow label - small mono, uppercase, accent tick (the Vercel cue)
   ------------------------------------------------------------------- */
.mkt-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-mono);
  font-size: var(--fs-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--text-secondary);
  margin: 0;
}

.mkt-eyebrow::before {
  content: '';
  width: 18px;
  height: 1px;
  background: var(--energy);
}

.mkt-eyebrow--center {
  justify-content: center;
}

/* -------------------------------------------------------------------
   Display headlines + leads
   ------------------------------------------------------------------- */
.mkt-display {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display-xl);
  letter-spacing: -0.03em;
  line-height: 0.98;
}

.mkt-title {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--fs-display-l);
  letter-spacing: -0.025em;
  line-height: 1.02;
}

.mkt-lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-secondary);
}

.mkt-accent-text {
  color: var(--accent);
}
.mkt-energy-text {
  color: var(--energy);
}

/* -------------------------------------------------------------------
   Buttons - white primary (the confident move), ghost secondary
   ------------------------------------------------------------------- */
.mkt-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  border-radius: var(--r-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition:
    transform 0.15s var(--ease),
    background-color var(--speed) var(--ease),
    border-color var(--speed) var(--ease),
    color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}

.mkt-btn:active {
  transform: translateY(1px);
}

.mkt-btn--primary {
  background: var(--text);
  color: #0a0a0b;
}

.mkt-btn--primary:hover {
  background: #ffffff;
  color: #0a0a0b;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}

.mkt-btn--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}

.mkt-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--text-muted);
  color: var(--text);
}

.mkt-btn--accent {
  background: var(--accent);
  color: #04121b;
}

.mkt-btn--accent:hover {
  background: var(--accent-strong);
  color: #04121b;
}

.mkt-btn--lg {
  padding: 1.05rem 2rem;
  font-size: 1.0625rem;
}

.mkt-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.mkt-btn--sm {
  padding: 0.6rem 1.05rem;
  font-size: 0.9rem;
}

.mkt-btn .mkt-btn__arrow {
  transition: transform 0.18s var(--ease);
}
.mkt-btn:hover .mkt-btn__arrow {
  transform: translateX(3px);
}

/* -------------------------------------------------------------------
   Hairline-bordered card (no heavy shadow)
   ------------------------------------------------------------------- */
.mkt-card {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--space-6);
  transition:
    border-color var(--speed) var(--ease),
    transform var(--speed) var(--ease);
}

.mkt-card:hover {
  border-color: var(--border-strong);
}

/* -------------------------------------------------------------------
   Mono numeric data treatment (pace / distance / HR / splits)
   ------------------------------------------------------------------- */
.mkt-data {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* -------------------------------------------------------------------
   Atmosphere: faint dot-grid + restrained glow (composable backgrounds)
   ------------------------------------------------------------------- */
.mkt-dotgrid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 28px 28px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 0%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 0%, transparent 75%);
}

.mkt-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(20px);
}

/* -------------------------------------------------------------------
   Skip link (a11y)
   ------------------------------------------------------------------- */
.mkt-skip-link {
  position: absolute;
  left: 1rem;
  top: -3rem;
  z-index: 200;
  background: var(--text);
  color: #0a0a0b;
  padding: 0.6rem 1rem;
  border-radius: var(--r-sm);
  font-weight: 600;
  transition: top 0.18s var(--ease);
}
.mkt-skip-link:focus {
  top: 1rem;
  color: #0a0a0b;
}

/* -------------------------------------------------------------------
   Brand lockup (icon + Archivo wordmark)
   ------------------------------------------------------------------- */
.mkt-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  text-decoration: none;
}
.mkt-brand:hover {
  color: var(--text);
}
.mkt-brand__mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  flex: none;
}
.mkt-brand__name {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 1.18rem;
  letter-spacing: -0.02em;
}

/* -------------------------------------------------------------------
   Header
   ------------------------------------------------------------------- */
.mkt-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 10, 11, 0.6);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid transparent;
  transition:
    border-color var(--speed) var(--ease),
    background-color var(--speed) var(--ease);
}
.mkt-header.is-scrolled {
  background: rgba(8, 8, 9, 0.82);
  border-bottom-color: var(--border);
}
.mkt-header__inner {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  height: 68px;
}
.mkt-nav {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-inline: auto;
}
.mkt-nav__link {
  display: inline-flex;
  align-items: center;
  padding: 0.5rem 0.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: var(--r-sm);
  transition:
    color var(--speed) var(--ease),
    background-color var(--speed) var(--ease);
}
.mkt-nav__link:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}
.mkt-nav__link.is-active {
  color: var(--text);
}
.mkt-nav__link.is-active::after {
  content: '';
  margin-left: 0.45rem;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--energy);
}
.mkt-header__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.mkt-header__login {
  color: var(--text);
}

/* Hamburger (mobile) */
.mkt-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 42px;
  height: 42px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.mkt-hamburger span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin-inline: auto;
  background: var(--text);
  border-radius: 2px;
}

/* -------------------------------------------------------------------
   Mobile overlay
   ------------------------------------------------------------------- */
.mkt-mobile {
  position: fixed;
  inset: 0;
  z-index: 150;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition:
    opacity 0.2s var(--ease),
    transform 0.2s var(--ease),
    visibility 0.2s var(--ease);
}
.mkt-mobile.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.mkt-mobile__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  flex: none;
}
.mkt-mobile__close {
  width: 44px;
  height: 44px;
  font-size: 1.8rem;
  line-height: 1;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  cursor: pointer;
}
.mkt-mobile__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding-top: 1.5rem;
}
.mkt-mobile__link {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: var(--text);
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border-faint);
}
.mkt-mobile__link.is-active {
  color: var(--accent);
}
.mkt-mobile__cta {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 2rem;
}

/* -------------------------------------------------------------------
   Footer
   ------------------------------------------------------------------- */
.mkt-footer {
  background: var(--bg-pure);
  border-top: 1px solid var(--border);
  padding-top: clamp(3rem, 6vw, 5rem);
  margin-top: auto;
}
.mkt-footer__grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-bottom: 3rem;
}
.mkt-footer__brand {
  max-width: 340px;
}
.mkt-footer__tagline {
  margin-top: 1rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}
.mkt-footer__strava {
  display: inline-block;
  margin-top: 1.5rem;
  opacity: 0.7;
  transition: opacity var(--speed) var(--ease);
}
.mkt-footer__strava:hover {
  opacity: 1;
}
.mkt-footer__col {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.mkt-footer__heading {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--text-muted);
  margin: 0 0 0.3rem;
}
.mkt-footer__col a {
  color: var(--text-secondary);
  font-size: 0.95rem;
}
.mkt-footer__col a:hover {
  color: var(--text);
}
.mkt-footer__note {
  color: var(--text-muted);
  font-size: 0.82rem;
  margin-top: 0.4rem;
}
.mkt-footer__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding-block: 1.5rem;
  border-top: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.85rem;
}
.mkt-footer__bottom-links {
  display: flex;
  gap: 1.25rem;
}
.mkt-footer__bottom-links a {
  color: var(--text-muted);
}
.mkt-footer__bottom-links a:hover {
  color: var(--text);
}

/* Live "Download on the App Store" badge. Rendered white to match the site's
   primary-CTA convention (.mkt-btn--primary) so it reads as the lead action,
   and instantly recognizable as the official App Store lockup. */
.mkt-appbadge {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.55rem 1.1rem;
  border: 1px solid transparent;
  border-radius: var(--r-md);
  color: #0a0a0b;
  background: var(--text);
  width: max-content;
  max-width: 100%;
  text-decoration: none;
}
.mkt-appbadge--link {
  transition:
    transform 0.15s var(--ease),
    background-color var(--speed) var(--ease),
    box-shadow var(--speed) var(--ease);
}
.mkt-appbadge--link:hover {
  background: #ffffff;
  /* Hold the lockup dark on hover. The global `body.mkt a:hover` rule otherwise
     repaints link text white, which vanishes against the white badge. */
  color: #0a0a0b;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.08);
}
.mkt-appbadge--link:active {
  transform: translateY(1px);
}
.mkt-appbadge__apple {
  flex: none;
  color: #0a0a0b;
}
.mkt-appbadge__text {
  display: flex;
  flex-direction: column;
  line-height: 1.05;
  text-align: left;
}
.mkt-appbadge__small {
  font-size: 0.62rem;
  letter-spacing: 0.02em;
  opacity: 0.72;
}
.mkt-appbadge__big {
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: -0.01em;
}
/* Larger lockup for the hero lead CTA and the dedicated app band. */
.mkt-appbadge--lg {
  padding: 0.72rem 1.35rem;
  gap: 0.7rem;
}
.mkt-appbadge--lg .mkt-appbadge__apple {
  width: 26px;
  height: 26px;
}
.mkt-appbadge--lg .mkt-appbadge__small {
  font-size: 0.68rem;
}
.mkt-appbadge--lg .mkt-appbadge__big {
  font-size: 1.3rem;
}
/* Compact lockup sized to sit beside the header's --sm buttons. Height is
   pinned to the button's border-box height (2 × 0.6rem padding + 0.9rem line
   + 2px border) so the two-line lockup lines up flush; vertical padding is
   dropped and the text centers inside. */
.mkt-appbadge--sm {
  height: calc(2.1rem + 2px);
  padding-block: 0;
  padding-inline: 0.85rem;
  gap: 0.45rem;
  border-radius: var(--r-sm);
}
.mkt-appbadge--sm .mkt-appbadge__apple {
  width: 18px;
  height: 18px;
}
.mkt-appbadge--sm .mkt-appbadge__small {
  font-size: 0.55rem;
}
.mkt-appbadge--sm .mkt-appbadge__big {
  font-size: 0.92rem;
}
/* Center the lockup when it leads the stacked mobile-menu CTAs. */
.mkt-mobile__appbadge {
  display: flex;
  justify-content: center;
}

/* -------------------------------------------------------------------
   Section header (eyebrow + title + lead)
   ------------------------------------------------------------------- */
.mkt-sechead {
  max-width: 680px;
  margin-bottom: clamp(2.5rem, 5vw, 4rem);
}
.mkt-sechead--center {
  margin-inline: auto;
  text-align: center;
}
.mkt-sechead--center .mkt-eyebrow {
  justify-content: center;
}
.mkt-sechead .mkt-title {
  margin-top: 1.1rem;
}
.mkt-sechead .mkt-lead {
  margin-top: 1.1rem;
}

/* -------------------------------------------------------------------
   Hero
   ------------------------------------------------------------------- */
.mkt-hero {
  position: relative;
  padding-top: clamp(2.25rem, 3vw, 3.5rem);
  padding-bottom: clamp(3.5rem, 6vw, 6.5rem);
  overflow: hidden;
}
.mkt-hero__glow {
  top: -360px;
  left: 50%;
  width: 900px;
  height: 760px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.16) 0%, transparent 62%);
}
.mkt-hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(2.5rem, 5vw, 4.5rem);
  align-items: center;
}
.mkt-hero__copy {
  max-width: 600px;
}
.mkt-hero__title {
  margin-top: 1.35rem;
  font-size: clamp(2.6rem, 1.2rem + 4.6vw, 4.75rem);
  line-height: 1;
  letter-spacing: -0.03em;
}
.mkt-hero__sub {
  margin-top: 1.6rem;
  max-width: 540px;
}
.mkt-hero__cta {
  margin-top: 2.2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}
.mkt-hero__trust {
  margin-top: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  color: var(--text-muted);
}
/* Quiet tertiary affordance under the hero CTAs (App Store leads, "Start free"
   is the ghost secondary, so the scroll cue drops to a text link). */
.mkt-hero__how {
  display: inline-block;
  margin-top: 1.1rem;
  color: var(--text-secondary);
  font-size: 0.92rem;
  text-decoration: none;
  white-space: nowrap;
  transition: color var(--speed) var(--ease);
}
.mkt-hero__how:hover {
  color: var(--text);
}
.mkt-hero__how svg {
  display: inline-block;
  vertical-align: -2px;
  margin-left: 0.15rem;
  transition: transform 0.18s var(--ease);
}
.mkt-hero__how:hover svg {
  transform: translateY(2px);
}

/* -------------------------------------------------------------------
   Chat mockup (coach conversation) - reusable
   ------------------------------------------------------------------- */
.mkt-chat {
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
}
.mkt-chat--hero {
  transform: rotate(0.4deg);
}
.mkt-chat__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.7rem 1rem;
  background: var(--bg-raised-2);
  border-bottom: 1px solid var(--border);
}
.mkt-chat__dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a2a2e;
}
.mkt-chat__dot:nth-child(1) {
  background: #ff5f57;
}
.mkt-chat__dot:nth-child(2) {
  background: #febc2e;
}
.mkt-chat__dot:nth-child(3) {
  background: #28c840;
}
.mkt-chat__label {
  margin-left: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  color: var(--text-muted);
}
.mkt-chat__body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mkt-msg {
  display: flex;
}
.mkt-msg--user {
  justify-content: flex-end;
}
.mkt-msg--coach {
  justify-content: flex-start;
}
.mkt-msg__bubble {
  max-width: 84%;
  padding: 0.8rem 1rem;
  border-radius: 16px;
  font-size: 0.95rem;
  line-height: 1.55;
}
.mkt-msg--user .mkt-msg__bubble {
  background: var(--accent);
  color: #04121b;
  border-bottom-right-radius: 5px;
  font-weight: 500;
}
.mkt-msg--coach .mkt-msg__bubble {
  background: var(--bg-raised-2);
  color: var(--text-secondary);
  border: 1px solid var(--border);
  border-bottom-left-radius: 5px;
}
.mkt-msg__bubble strong {
  color: var(--text);
}
.mkt-msg__chip {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 0.55rem;
  padding: 0.2rem 0.55rem;
  border-radius: var(--r-pill);
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mkt-data-em {
  color: var(--text);
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* -------------------------------------------------------------------
   Evaluation mockup (posted to Strava)
   ------------------------------------------------------------------- */
.mkt-eval {
  max-width: 720px;
  margin-inline: auto;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.mkt-eval__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1.25rem;
  background: var(--bg-raised-2);
  border-bottom: 1px solid var(--border);
}
.mkt-eval__src {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
}
.mkt-eval__src::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: var(--energy-strong);
}
.mkt-eval__verdict {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--r-pill);
  background: rgba(52, 211, 153, 0.12);
  color: var(--success);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.mkt-eval__body {
  padding: 1.5rem 1.6rem 1.75rem;
}
.mkt-eval__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
}
.mkt-eval__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.2rem;
  margin-top: 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-variant-numeric: tabular-nums;
  color: var(--text-muted);
}
.mkt-eval__meta b {
  color: var(--text-secondary);
  font-weight: 500;
}
.mkt-eval__text {
  margin-top: 1.15rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.mkt-eval__text .mkt-hl {
  color: var(--text);
  font-weight: 500;
}
.mkt-eval__text .mkt-num {
  font-family: var(--font-mono);
  color: var(--accent);
}

/* -------------------------------------------------------------------
   Coach feature row (alternating copy + mockup)
   ------------------------------------------------------------------- */
.mkt-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.mkt-split__copy .mkt-list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.mkt-list__item {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.mkt-list__tick {
  flex: none;
  margin-top: 0.15rem;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--accent-soft);
  color: var(--accent);
}
.mkt-list__tick svg {
  width: 13px;
  height: 13px;
}
.mkt-list__item p {
  color: var(--text-secondary);
  font-size: 0.98rem;
  line-height: 1.55;
}
.mkt-list__item p b {
  color: var(--text);
  font-weight: 600;
}

/* -------------------------------------------------------------------
   How it works - numbered steps
   ------------------------------------------------------------------- */
.mkt-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  counter-reset: step;
}
.mkt-step {
  position: relative;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
}
.mkt-step__num {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  color: var(--accent);
}
.mkt-step__title {
  margin-top: 0.9rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.25rem;
  letter-spacing: -0.01em;
}
.mkt-step__desc {
  margin-top: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

/* -------------------------------------------------------------------
   Capability grid
   ------------------------------------------------------------------- */
.mkt-caps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.mkt-cap {
  padding: 1.6rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  transition:
    border-color var(--speed) var(--ease),
    transform var(--speed) var(--ease);
}
.mkt-cap:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
}
.mkt-cap__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: var(--accent-soft);
  color: var(--accent);
  margin-bottom: 1.1rem;
}
.mkt-cap__icon svg {
  width: 22px;
  height: 22px;
}
.mkt-cap__title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.12rem;
  letter-spacing: -0.01em;
}
.mkt-cap__desc {
  margin-top: 0.5rem;
  color: var(--text-secondary);
  font-size: 0.93rem;
  line-height: 1.55;
}
.mkt-seeall {
  text-align: center;
  margin-top: 2.25rem;
}
.mkt-seeall a {
  color: var(--accent);
  font-weight: 500;
  font-size: 1rem;
}
.mkt-seeall a:hover {
  color: var(--text);
}

/* -------------------------------------------------------------------
   Titles-as-delight band
   ------------------------------------------------------------------- */
.mkt-titles {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}
.mkt-titles__tag {
  color: var(--energy);
}
.mkt-titles__demo {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.mkt-titlecard {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.1rem;
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-raised);
}
.mkt-titlecard__name {
  font-weight: 600;
  color: var(--text);
}
.mkt-titlecard__meta {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------
   Trust band
   ------------------------------------------------------------------- */
.mkt-trust {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 2rem;
  align-items: center;
  max-width: 900px;
}
.mkt-trust__icon {
  color: var(--accent);
}
.mkt-trust__icon svg {
  width: 72px;
  height: 72px;
}
.mkt-trust__text p {
  margin-top: 1rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* -------------------------------------------------------------------
   App band - "take your coach with you" (iOS is the #1 engagement path,
   so this is a focal, glow-lit moment, not just another alternating row)
   ------------------------------------------------------------------- */
.mkt-appcta {
  text-align: center;
  overflow: hidden;
}
.mkt-appcta__glow {
  top: 50%;
  left: 50%;
  width: 760px;
  height: 520px;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, transparent 62%);
}
.mkt-appcta__inner {
  position: relative;
  max-width: 680px;
  margin-inline: auto;
}
.mkt-appcta__title {
  margin-top: 1.1rem;
  font-size: var(--fs-display-l);
}
.mkt-appcta__sub {
  margin-top: 1.2rem;
}
.mkt-appcta__actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
}
.mkt-appcta__fine {
  margin-top: 1.3rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------
   Final CTA band
   ------------------------------------------------------------------- */
.mkt-ctaband {
  position: relative;
  text-align: center;
  overflow: hidden;
}
.mkt-ctaband__glow {
  bottom: -300px;
  left: 50%;
  width: 800px;
  height: 600px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.14) 0%, transparent 60%);
}
.mkt-ctaband__inner {
  position: relative;
  max-width: 720px;
  margin-inline: auto;
}
.mkt-ctaband__title {
  font-size: var(--fs-display-l);
}
.mkt-ctaband__sub {
  margin-top: 1.2rem;
}
.mkt-ctaband__actions {
  margin-top: 2rem;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.9rem;
}
.mkt-ctaband__fine {
  margin-top: 1.4rem;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* -------------------------------------------------------------------
   Scroll-reveal (progressive enhancement; no-JS shows everything)
   ------------------------------------------------------------------- */
body.mkt .mkt-reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.6s var(--ease),
    transform 0.6s var(--ease);
}
body.mkt .mkt-reveal.is-in {
  opacity: 1;
  transform: none;
}

/* -------------------------------------------------------------------
   Inner-page hero (Features / Pricing / FAQ / About / Blog)
   ------------------------------------------------------------------- */
.mkt-pagehero {
  position: relative;
  text-align: center;
  padding-top: clamp(3.5rem, 4vw, 5.5rem);
  padding-bottom: clamp(2.5rem, 4vw, 4rem);
  overflow: hidden;
}
.mkt-pagehero__glow {
  top: -340px;
  left: 50%;
  width: 820px;
  height: 700px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(56, 189, 248, 0.13) 0%, transparent 62%);
}
.mkt-pagehero__inner {
  position: relative;
  max-width: 760px;
  margin-inline: auto;
}
.mkt-pagehero__title {
  margin-top: 1.2rem;
  font-size: clamp(2.4rem, 1.3rem + 3.8vw, 4rem);
  letter-spacing: -0.03em;
}
.mkt-pagehero__lead {
  margin-top: 1.3rem;
}

/* -------------------------------------------------------------------
   Pricing
   ------------------------------------------------------------------- */
.mkt-pricing {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 920px;
  margin-inline: auto;
  align-items: start;
}
.mkt-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  background: var(--bg-raised);
}
.mkt-plan--featured {
  border-color: rgba(56, 189, 248, 0.45);
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(56, 189, 248, 0.08), transparent 60%), var(--bg-raised);
}
.mkt-plan__ribbon {
  position: absolute;
  top: -1px;
  right: 1.5rem;
  transform: translateY(-50%);
  padding: 0.3rem 0.7rem;
  border-radius: var(--r-pill);
  background: var(--accent);
  color: #04121b;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.mkt-plan__name {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mkt-plan__price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-top: 0.9rem;
}
.mkt-plan__amount {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 3rem;
  letter-spacing: -0.03em;
  line-height: 1;
}
.mkt-plan__period {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-muted);
}
.mkt-plan__sub {
  margin-top: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  min-height: 2.6em;
}
.mkt-plan__cta {
  margin-top: 1.5rem;
}
.mkt-plan__cta .mkt-btn {
  width: 100%;
}
.mkt-plan__owned {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.85rem 1.5rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  color: var(--text-secondary);
  font-weight: 600;
  font-size: 1rem;
}
.mkt-plan__list {
  list-style: none;
  margin: 1.75rem 0 0;
  padding: 1.6rem 0 0;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
.mkt-plan__feature {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.45;
}
.mkt-plan__feature svg {
  flex: none;
  margin-top: 0.15rem;
  width: 16px;
  height: 16px;
  color: var(--accent);
}
.mkt-plan__feature--muted {
  color: var(--text-muted);
}
.mkt-plan__feature--muted svg {
  color: var(--text-muted);
}
.mkt-pricing-note {
  max-width: 700px;
  margin: 2.5rem auto 0;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.6;
}

/* -------------------------------------------------------------------
   FAQ accordion
   ------------------------------------------------------------------- */
.mkt-faqgroup {
  max-width: 800px;
  margin-inline: auto;
}
.mkt-faqgroup + .mkt-faqgroup {
  margin-top: 3rem;
}
.mkt-faqgroup__title {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 1rem;
}
.mkt-faq {
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  background: var(--bg-raised);
  overflow: hidden;
}
.mkt-faq + .mkt-faq {
  margin-top: 0.75rem;
}
.mkt-faq[open] {
  border-color: var(--border-strong);
}
.mkt-faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.15rem 1.4rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
  color: var(--text);
}
.mkt-faq summary::-webkit-details-marker {
  display: none;
}
.mkt-faq summary::after {
  content: '+';
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--text-muted);
  transition: transform 0.2s var(--ease);
}
.mkt-faq[open] summary::after {
  content: '–';
  color: var(--accent);
}
.mkt-faq__body {
  padding: 0 1.4rem 1.3rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.mkt-faq__body a {
  color: var(--accent);
}
.mkt-faq__body a:hover {
  text-decoration: underline;
}
.mkt-faq__body ol,
.mkt-faq__body ul {
  margin: 0.25rem 0 0;
  padding-left: 1.3rem;
}
.mkt-faq__body li {
  margin-top: 0.4rem;
}

/* -------------------------------------------------------------------
   Changelog
   ------------------------------------------------------------------- */
.mkt-change {
  padding: 1.6rem 0;
  border-bottom: 1px solid var(--border);
}
.mkt-change:last-child {
  border-bottom: 0;
}
.mkt-change__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mkt-change__title {
  margin-top: 0.6rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: -0.02em;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.6rem;
}
.mkt-change__summary {
  margin-top: 0.6rem;
  color: var(--text-secondary);
  line-height: 1.65;
}
.mkt-tag {
  display: inline-block;
  padding: 0.2em 0.6em;
  font-family: var(--font-mono);
  font-size: 0.66rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  line-height: 1.4;
  border-radius: var(--r-pill);
  vertical-align: middle;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-secondary);
}
.mkt-tag--new {
  background: var(--accent-soft);
  color: var(--accent);
}
.mkt-tag--improvement {
  background: rgba(52, 211, 153, 0.14);
  color: var(--success);
}
.mkt-tag--fix {
  background: var(--energy-soft);
  color: var(--energy);
}

/* -------------------------------------------------------------------
   Prose (About + blog post body)
   ------------------------------------------------------------------- */
.mkt-prose {
  max-width: 720px;
  margin-inline: auto;
  color: var(--text-secondary);
}
.mkt-prose h2 {
  font-size: clamp(1.5rem, 1.1rem + 1.6vw, 2rem);
  margin-top: 2.5rem;
  color: var(--text);
}
.mkt-prose h2:first-child {
  margin-top: 0;
}
.mkt-prose p {
  margin-top: 1.2rem;
  line-height: 1.8;
  font-size: 1.075rem;
}
.mkt-prose strong {
  color: var(--text);
}
.mkt-prose a {
  color: var(--accent);
}
.mkt-prose a:hover {
  text-decoration: underline;
}
.mkt-prose ul {
  margin-top: 1.2rem;
  padding-left: 1.2rem;
  line-height: 1.8;
}
.mkt-prose blockquote {
  margin: 1.6rem 0;
  padding: 0.4rem 0 0.4rem 1.4rem;
  border-left: 2px solid var(--accent);
  color: var(--text);
  font-size: 1.15rem;
  font-style: italic;
}

/* Legal documents (privacy / terms): denser, document-like prose. The inner
   legacy markup keeps its .section-title / .container classes (now style-less)
   and is restyled here without touching the legal text. */
.mkt-legal p {
  font-size: 1rem;
  line-height: 1.75;
}
.mkt-legal h2 {
  font-size: 1.3rem;
  margin-top: 2.25rem;
}
.mkt-legal a {
  color: var(--accent);
}
.mkt-legal a:hover {
  text-decoration: underline;
}
.mkt-legal ul {
  margin-top: 1rem;
}
.mkt-legal li {
  margin-top: 0.4rem;
}

/* -------------------------------------------------------------------
   Blog
   ------------------------------------------------------------------- */
.mkt-postlist {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 820px;
  margin-inline: auto;
}
.mkt-postcard {
  display: block;
  padding: 1.75rem;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  background: var(--bg-raised);
  transition:
    border-color var(--speed) var(--ease),
    transform var(--speed) var(--ease);
}
.mkt-postcard:hover {
  border-color: var(--border-strong);
  transform: translateY(-2px);
  color: inherit;
}
.mkt-postcard__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--text-muted);
  text-transform: uppercase;
}
.mkt-postcard__tag {
  color: var(--energy);
}
.mkt-postcard__title {
  margin-top: 0.7rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  color: var(--text);
}
.mkt-postcard__excerpt {
  margin-top: 0.6rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.mkt-postcard__more {
  display: inline-block;
  margin-top: 1rem;
  color: var(--accent);
  font-weight: 500;
  font-size: 0.95rem;
}
.mkt-blogempty {
  max-width: 560px;
  margin: 1rem auto 0;
  text-align: center;
  padding: 3rem 2rem;
  border: 1px dashed var(--border-strong);
  border-radius: var(--r-lg);
  color: var(--text-secondary);
}

.mkt-posthead {
  max-width: 720px;
  margin-inline: auto;
}
.mkt-posthead__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.mkt-posthead__title {
  margin-top: 1rem;
  font-size: clamp(2rem, 1.3rem + 2.6vw, 3rem);
  letter-spacing: -0.03em;
}
.mkt-backlink {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-bottom: 1.5rem;
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--text-muted);
}
.mkt-backlink:hover {
  color: var(--text);
}

/* -------------------------------------------------------------------
   Auth (login) - re-skinned onto the dark marketing layer
   ------------------------------------------------------------------- */
.mkt-hidden {
  display: none !important;
}
.mkt-authwrap {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(2.5rem, 6vw, 5rem) 1.25rem;
}
.mkt-authcard {
  width: 100%;
  max-width: 420px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 2.5rem 2rem;
  text-align: center;
}
.mkt-auth__logo {
  width: 56px;
  height: 56px;
  margin: 0 auto 1.1rem;
  border-radius: 14px;
}
.mkt-auth__title {
  font-size: 1.6rem;
  letter-spacing: -0.02em;
}
.mkt-auth__subtitle {
  margin-top: 0.6rem;
  color: var(--text-secondary);
  font-size: 0.95rem;
  line-height: 1.5;
}
.mkt-auth__form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  text-align: left;
  margin-top: 1.6rem;
}
.mkt-auth__label {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.mkt-auth__input {
  width: 100%;
  box-sizing: border-box;
  padding: 0.8rem 0.9rem;
  font-size: 1rem;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--bg-raised-2);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition:
    border-color 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
}
.mkt-auth__input::placeholder {
  color: var(--text-muted);
}
.mkt-auth__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.mkt-auth__code {
  font-family: var(--font-mono);
  font-size: 1.4rem;
  letter-spacing: 0.4em;
  text-align: center;
  padding: 0.85rem 0.75rem;
}
.mkt-auth__submit {
  width: 100%;
  margin-top: 0.4rem;
}
.mkt-auth__sent {
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.5;
}
.mkt-auth__error {
  background: rgba(255, 106, 26, 0.1);
  color: var(--energy);
  border: 1px solid rgba(255, 106, 26, 0.3);
  border-radius: var(--r-sm);
  padding: 0.65rem 0.8rem;
  font-size: 0.9rem;
}
.mkt-auth__linkbtn {
  background: none;
  border: none;
  color: var(--accent);
  font-size: 0.9rem;
  font-weight: 500;
  font-family: var(--font-sans);
  padding: 0.5rem 0;
  cursor: pointer;
}
.mkt-auth__linkbtn:hover {
  text-decoration: underline;
}

/* -------------------------------------------------------------------
   404
   ------------------------------------------------------------------- */
.mkt-404 {
  text-align: center;
  padding-block: clamp(4rem, 10vw, 8rem);
}
.mkt-404__code {
  font-family: var(--font-mono);
  font-size: 1rem;
  letter-spacing: 0.3em;
  color: var(--accent);
}
.mkt-404__title {
  margin-top: 1rem;
  font-size: clamp(2.2rem, 1.4rem + 3vw, 3.4rem);
}
.mkt-404__text {
  margin-top: 1rem;
  color: var(--text-secondary);
}
.mkt-404__actions {
  margin-top: 2rem;
  display: flex;
  gap: 0.8rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* -------------------------------------------------------------------
   Responsive - inner pages
   ------------------------------------------------------------------- */
@media (max-width: 720px) {
  .mkt-pricing {
    grid-template-columns: 1fr;
    max-width: 440px;
  }
}

/* -------------------------------------------------------------------
   Responsive - shell (header / footer)
   Breakpoints: ≤480 / ≤768 / ≤880 (nav→hamburger) / ≤1024 / ≥1280
   ------------------------------------------------------------------- */
@media (max-width: 1024px) {
  .mkt-footer__grid {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .mkt-footer__brand {
    grid-column: 1 / -1;
    max-width: 460px;
  }
}

/* Collapse to the hamburger at 960px: the [Get started + App Store badge]
   action cluster is wider than the old [Log in + Start free], so the inline
   header needs more room before it would overflow the nav. */
@media (max-width: 960px) {
  .mkt-nav,
  .mkt-header__actions {
    display: none;
  }
  .mkt-hamburger {
    display: flex;
    margin-left: auto;
  }
}

@media (max-width: 560px) {
  .mkt-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem 1.5rem;
  }
  .mkt-footer__app {
    grid-column: 1 / -1;
  }
  .mkt-footer__bottom {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 380px) {
  .mkt-footer__grid {
    grid-template-columns: 1fr;
  }
}

/* Responsive - page sections */
@media (max-width: 980px) {
  .mkt-hero__inner,
  .mkt-split,
  .mkt-titles,
  .mkt-trust {
    grid-template-columns: 1fr;
  }
  .mkt-hero__copy {
    max-width: 640px;
  }
  .mkt-chat--hero {
    transform: none;
    max-width: 540px;
  }
  /* Copy before its mockup on mobile - the explanation should land before the
     second chat/eval visual, regardless of the desktop left/right arrangement. */
  .mkt-split__copy {
    order: -1;
  }
  .mkt-trust {
    text-align: center;
    justify-items: center;
  }
}

@media (max-width: 768px) {
  .mkt-steps,
  .mkt-caps {
    grid-template-columns: 1fr;
  }
  .mkt-titles__media {
    order: -1;
  }
}

@media (min-width: 560px) and (max-width: 768px) {
  .mkt-caps {
    grid-template-columns: 1fr 1fr;
  }
}

/* Short phones (e.g. 375×667, 320×568): tighten the hero so the primary CTA
   clears the fold. Height-gated so the roomy 390×844 hero is untouched. */
@media (max-width: 600px) and (max-height: 720px) {
  .mkt-hero {
    padding-top: 1.25rem;
    padding-bottom: 2.5rem;
  }
  .mkt-hero__title {
    font-size: clamp(1.95rem, 6.4vw, 2.4rem);
    margin-top: 0.85rem;
  }
  .mkt-hero__sub {
    margin-top: 0.95rem;
    font-size: 0.98rem;
  }
  .mkt-hero__cta {
    margin-top: 1.35rem;
  }
  .mkt-hero__trust {
    margin-top: 0.95rem;
  }
}

/* -------------------------------------------------------------------
   Reduced motion
   ------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  body.mkt *,
  body.mkt *::before,
  body.mkt *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}
