/* ==========================================================================
   Rood — Record & share your routes.
   Page-specific styles for the Rood marketing site (/rood/index.html and
   its legal pages, privacy-policy.html / terms-of-use.html under /rood/).

   This file is loaded AFTER /css/styles.css, which already supplies design
   tokens, the reset, base type, the nav/header, the button system, the
   shared footer, legal-page styles, and the cookie-consent UI. None of that
   is duplicated here — this file only adds what's specific to Rood's own
   marketing sections, and reuses --rood / --rood-dark / --rood-tint /
   --rood-border (set in styles.css) as its accent throughout.
   ========================================================================== */

.rood-page {
  --rood-glow: rgba(230, 203, 0, 0.35);
}

/* ---------- Inert "coming soon" badges ----------
   No live App Store link exists yet, so these render as styled but
   non-interactive elements (span, not a/button) rather than a link that
   goes nowhere. Swap the tag for a real <a href> once Rood is live. */
.rd-store-badge {
  cursor: default;
}
.rd-store-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.7;
}
.rd-store-badge.btn-primary--rood {
  box-shadow: 0 10px 24px -8px var(--rood-glow);
}

/* ---------- Hero ---------- */
.rd-hero {
  padding-block: 64px 72px;
  border-bottom: 1px solid var(--border);
}
@media (min-width: 900px) {
  .rd-hero { padding-block: 92px 96px; }
}
.rd-hero-grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
@media (min-width: 900px) {
  .rd-hero-grid {
    grid-template-columns: 1.05fr 0.95fr;
    gap: 56px;
  }
}
.rd-hero-mark {
  margin-bottom: 28px;
}
.rd-hero-mark img {
  display: block;
  height: 1.5rem;
  width: auto;
}
.rd-hero-title {
  font-size: clamp(2.5rem, 1.65rem + 4.2vw, 4.75rem);
  letter-spacing: -0.03em;
  line-height: 1.05;
  color: var(--text);
  max-width: 14ch;
}
.rd-hero-sub {
  margin-top: 20px;
  font-size: 1.1875rem;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 38ch;
}
.rd-hero-actions {
  margin-top: 36px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}
.rd-hero-actions .link-arrow svg {
  width: 15px;
  height: 15px;
}
.rd-hero-visual {
  display: flex;
  justify-content: center;
}
.rd-hero-frame {
  width: 100%;
  max-width: 330px;
}
.rd-hero-frame img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 24px 40px rgba(22, 20, 15, 0.16));
}

/* Reuses the heroFadeUp keyframes already defined in styles.css for CUE's
   own hero, so both pages animate identically and share one definition. */
.rd-hero-mark, .rd-hero-title, .rd-hero-sub, .rd-hero-actions, .rd-hero-visual {
  animation: heroFadeUp 650ms var(--ease) both;
}
.rd-hero-title { animation-delay: 70ms; }
.rd-hero-sub { animation-delay: 140ms; }
.rd-hero-actions { animation-delay: 210ms; }
.rd-hero-visual { animation-delay: 180ms; }

@media print {
  .rd-hero-mark, .rd-hero-title, .rd-hero-sub, .rd-hero-actions, .rd-hero-visual {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }
}

/* ---------- Product / App visual slider ---------- */
.rd-slider-wrap {
  margin-top: 48px;
  position: relative;
}
.rd-slider {
  position: relative;
}
.rd-slider-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rd-slider-track::-webkit-scrollbar {
  display: none;
}
.rd-slide {
  flex: 0 0 100%;
  scroll-snap-align: center;
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-block: 4px 8px;
}
.rd-slide img {
  display: block;
  width: 100%;
  max-width: min(320px, 74vw);
  height: auto;
  border-radius: 22px;
  filter: drop-shadow(0 10px 28px rgba(22, 20, 15, 0.12));
}
.rd-slide figcaption {
  margin-top: 18px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-faint);
}
.rd-slider-btn {
  position: absolute;
  top: 45%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text);
  z-index: 2;
  transition: background var(--t-fast), border-color var(--t-fast);
}
.rd-slider-btn:hover {
  background: var(--bg-subtle);
  border-color: var(--border-strong);
}
.rd-slider-btn svg {
  width: 16px;
  height: 16px;
}
.rd-slider-prev { left: 0; }
.rd-slider-next { right: 0; }
@media (min-width: 860px) {
  .rd-slider-prev { left: -22px; }
  .rd-slider-next { right: -22px; }
}
.rd-slider-btn[hidden] {
  display: none;
}
.rd-slider-dots {
  margin-top: 24px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}
.rd-slider-dots[hidden] {
  display: none;
}
.rd-slider-dot {
  width: 7px;
  height: 7px;
  padding: 0;
  border-radius: 50%;
  background: var(--border-strong);
  transition: background var(--t-fast), transform var(--t-fast);
}
.rd-slider-dot.is-active {
  background: var(--rood);
  transform: scale(1.35);
}

/* ---------- What Rood Does ---------- */
.rd-does {
  max-width: 620px;
}

/* ---------- Route -> Card ---------- */
.rd-transform {
  display: grid;
  gap: 44px;
  align-items: center;
}
@media (min-width: 900px) {
  .rd-transform {
    grid-template-columns: 1fr 1fr;
    gap: 64px;
  }
}
.rd-transform-copy .section-heading,
.rd-transform-copy .section-lede {
  margin-bottom: 0;
}
.rd-transform-copy .section-heading {
  margin-bottom: 18px;
}
.rd-transform-visual {
  display: flex;
  justify-content: center;
}
.rd-transform-visual svg {
  display: block;
  width: 100%;
  max-width: 440px;
  height: auto;
}

/* ---------- Features ---------- */
.rd-features {
  display: grid;
  gap: 32px;
  margin-top: 48px;
}
@media (min-width: 720px) {
  .rd-features {
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
  }
}
.rd-feature {
  padding-top: 22px;
  border-top: 2px solid var(--rood-border);
}
.rd-feature-title {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
  margin-bottom: 10px;
}
.rd-feature-text {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: var(--text-muted);
  max-width: 34ch;
}

/* ---------- Vehicle independent ---------- */
.rd-vehicles-section {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rd-vehicles {
  text-align: center;
  max-width: 640px;
  margin-inline: auto;
  padding-block: 20px;
}
.rd-vehicles-title {
  font-size: clamp(1.75rem, 1.4rem + 1.6vw, 2.5rem);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
  margin-bottom: 16px;
}
.rd-vehicles-text {
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--text-muted);
}

/* ---------- Privacy / Trust ---------- */
.rd-trust {
  max-width: 640px;
}
.rd-trust-p {
  margin-top: 16px;
  font-size: 1.0625rem;
  line-height: 1.7;
  color: var(--text-muted);
}
.rd-trust-links {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
}
.rd-trust-links .link-arrow svg {
  width: 15px;
  height: 15px;
}

/* ---------- Footer additions ---------- */
.rd-footer-bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px 24px;
}
.rd-footer-cue-link {
  font-size: 0.8125rem;
  color: var(--text-faint);
  border-bottom: 1px solid transparent;
  transition: color var(--t-fast), border-color var(--t-fast);
}
.rd-footer-cue-link:hover {
  color: var(--text-muted);
  border-color: var(--border-strong);
}

/* ---------- Support page ---------- */
.rd-support-box {
  padding: 20px 24px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
}
.rd-support-box p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.rd-support-box strong {
  color: var(--text);
}

/* ---------- Nav "Get the app" button (legal + support pages) ----------
   .nav-links a (styles.css) out-specifies .btn, so restore the button's own
   colour and padding when a .btn sits in the nav. */
.nav-links a.btn {
  color: var(--on-ink);
  padding: 10px 18px;
  font-weight: 600;
}
.nav-links a.btn:hover { color: var(--on-ink); }
.nav-links a.btn-primary--rood,
.nav-links a.btn-primary--rood:hover { color: var(--on-rood); }   /* 2.0 yellow: black text */
