/*
Theme Name:  RoamVitals
Theme URI:   https://roamvitals.com
Description: RoamVitals marketing theme - Kadence child theme. Smart RV monitoring.
Author:      RoamVitals LLC
Author URI:  https://roamvitals.com
Template:    kadence
Version:     1.0.0
License:     Proprietary
Text Domain: roamvitals
Tags:        marketing, one-page, full-width-template
*/

/* ============================================================
   BRAND TOKENS - override Kadence CSS custom properties
   ============================================================ */

:root {
  /* --- Colors --- */
  --rv-navy:        #0D1B2A;
  --rv-navy-80:     rgba(13, 27, 42, 0.80);
  --rv-navy-60:     rgba(13, 27, 42, 0.60);
  --rv-orange:      #E8572A;
  --rv-orange-dark: #C94520;
  --rv-teal:        #2AABAB;
  --rv-teal-dark:   #1E8080;
  --rv-slate:       #5C6B7A;
  --rv-fog:         #F4F2EE;
  --rv-fog-dark:    #E8E5E0;
  --rv-green:       #2DBD6E;
  --rv-white:       #FFFFFF;

  /* --- Typography --- */
  --rv-font-display: 'Plus Jakarta Sans', system-ui, sans-serif;
  --rv-font-body:    'Inter', system-ui, sans-serif;
  --rv-font-mono:    'JetBrains Mono', 'Courier New', monospace;

  /* --- Spacing --- */
  --rv-space-xs:  0.5rem;
  --rv-space-sm:  1rem;
  --rv-space-md:  1.5rem;
  --rv-space-lg:  2.5rem;
  --rv-space-xl:  4rem;
  --rv-space-2xl: 6rem;
  --rv-space-3xl: 8rem;

  /* --- Layout --- */
  --rv-max-width:       1200px;
  --rv-content-width:   760px;
  --rv-border-radius:   8px;
  --rv-border-radius-lg: 16px;
  --rv-shadow-sm:  0 1px 3px rgba(13, 27, 42, 0.12);
  --rv-shadow-md:  0 4px 16px rgba(13, 27, 42, 0.16);
  --rv-shadow-lg:  0 12px 40px rgba(13, 27, 42, 0.20);

  /* --- Transitions --- */
  --rv-transition: 200ms ease;

  /* --- Kadence overrides --- */
  --global-palette1: #0D1B2A;
  --global-palette2: #E8572A;
  --global-palette3: #2AABAB;
  --global-palette4: #5C6B7A;
  --global-palette5: #F4F2EE;
  --global-palette6: #2DBD6E;
  --global-palette7: #FFFFFF;
  --global-palette8: #0D1B2A;
  --global-palette9: #F4F2EE;
  --global-body-font-family: 'Inter', system-ui, sans-serif;
  --global-display-font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ============================================================
   GOOGLE FONTS
   Loaded by wp_enqueue_style in functions.php, not by @import.
   An @import here is only discovered after this file has been
   downloaded and parsed, so it serialises the requests:
   HTML -> style.css -> fonts.googleapis.com -> the font files.
   That chain is a direct hit to LCP, and Lighthouse >= 90 is an
   acceptance criterion. Enqueuing flattens one level out of it.
   ============================================================ */

/* ============================================================
   BASE RESETS + BODY
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
}

body {
  font-family: var(--rv-font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--rv-navy);
  background-color: var(--rv-fog);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ============================================================
   TYPOGRAPHY
   ============================================================ */

h1, h2, h3, h4, h5, h6,
.wp-block-heading {
  font-family: var(--rv-font-display);
  font-weight: 700;
  line-height: 1.15;
  color: var(--rv-navy);
  letter-spacing: -0.02em;
}

h1, .rv-h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 800; }
h2, .rv-h2 { font-size: clamp(1.6rem, 3.5vw, 2.25rem); }
h3, .rv-h3 { font-size: clamp(1.25rem, 2.5vw, 1.5rem); }
h4, .rv-h4 { font-size: 1.125rem; }

p {
  max-width: 68ch;
  line-height: 1.7;
  color: var(--rv-slate);
}

p.rv-lead {
  font-size: 1.2rem;
  line-height: 1.6;
  color: var(--rv-navy);
}

a {
  color: var(--rv-teal);
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
  transition: color var(--rv-transition);
}
a:hover { color: var(--rv-teal-dark); }

strong { font-weight: 600; color: var(--rv-navy); }

code, .rv-code {
  font-family: var(--rv-font-mono);
  font-size: 0.875em;
  background: var(--rv-fog-dark);
  padding: 0.15em 0.4em;
  border-radius: 4px;
}

/* ============================================================
   LAYOUT UTILITIES
   ============================================================ */

.rv-container {
  width: 100%;
  max-width: var(--rv-max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

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

.rv-section {
  padding-block: var(--rv-space-2xl);
}

.rv-section--lg {
  padding-block: var(--rv-space-3xl);
}

.rv-section--sm {
  padding-block: var(--rv-space-lg);
}

/* ============================================================
   BUTTONS
   ============================================================ */

.wp-block-button__link,
.rv-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  font-family: var(--rv-font-body);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.875rem 1.75rem;
  border-radius: var(--rv-border-radius);
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color var(--rv-transition),
              color var(--rv-transition),
              border-color var(--rv-transition),
              box-shadow var(--rv-transition),
              transform var(--rv-transition);
  white-space: nowrap;
}
.rv-btn:focus-visible,
.wp-block-button__link:focus-visible {
  outline: 3px solid var(--rv-orange);
  outline-offset: 3px;
}

/* Primary CTA - Signal Orange */
.wp-block-button.is-style-primary .wp-block-button__link,
.rv-btn--primary {
  background-color: var(--rv-orange);
  color: var(--rv-white);
  border-color: var(--rv-orange);
}
.wp-block-button.is-style-primary .wp-block-button__link:hover,
.rv-btn--primary:hover {
  background-color: var(--rv-orange-dark);
  border-color: var(--rv-orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(232, 87, 42, 0.40);
}

/* Secondary CTA - Outline Teal */
.wp-block-button.is-style-secondary .wp-block-button__link,
.rv-btn--secondary {
  background-color: transparent;
  color: var(--rv-teal);
  border-color: var(--rv-teal);
}
.wp-block-button.is-style-secondary .wp-block-button__link:hover,
.rv-btn--secondary:hover {
  background-color: var(--rv-teal);
  color: var(--rv-white);
  transform: translateY(-1px);
}

/* Ghost - on dark backgrounds */
.wp-block-button.is-style-ghost .wp-block-button__link,
.rv-btn--ghost {
  background-color: rgba(255,255,255,0.10);
  color: var(--rv-white);
  border-color: rgba(255,255,255,0.35);
}
.wp-block-button.is-style-ghost .wp-block-button__link:hover,
.rv-btn--ghost:hover {
  background-color: rgba(255,255,255,0.18);
  border-color: rgba(255,255,255,0.60);
}

/* Large button modifier */
.rv-btn--lg,
.wp-block-button.is-style-primary .wp-block-button__link.rv-btn--lg {
  font-size: 1.125rem;
  padding: 1rem 2.25rem;
}

/* ============================================================
   NAVIGATION
   ============================================================ */

/* The header is navy at rest, not transparent.
 *
 * Transparent was written for a header floating over the hero, which never
 * happened: position:sticky reserves its own space in normal flow, so the
 * header sits in a band ABOVE the hero rather than on top of it, and that band
 * shows the body background (--rv-fog, #F4F2EE). White nav text on fog is
 * invisible, and it stayed invisible until you scrolled 60px and the JS added
 * .is-scrolled. The whole navigation was unreadable at the top of every page,
 * which is the only place a first-time visitor ever is.
 *
 * Making it solid costs nothing visually: --rv-navy is the exact colour of
 * .rv-hero and .rv-bg-navy, and every template except blog.html opens with one
 * of those, so the header still reads as part of the hero. On the pages that
 * do not, it reads as a navy bar instead of as nothing.
 *
 * If the floating look is ever wanted for real, sticky is the wrong tool: the
 * header has to leave the flow (fixed or absolute) with matching padding on
 * main, and every light-topped template needs a variant. Do not just set this
 * back to transparent.
 */
.rv-site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background-color: var(--rv-navy);
  transition: box-shadow var(--rv-transition);
}

/* Depth once the page has moved under it. The background is already set above,
   so this only lifts the header off the content. */
.rv-site-header.is-scrolled {
  box-shadow: var(--rv-shadow-md);
}

.rv-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1rem;
  max-width: var(--rv-max-width);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

.rv-nav__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  font-family: var(--rv-font-display);
  font-size: 1.375rem;
  font-weight: 800;
  color: var(--rv-white);
  letter-spacing: -0.02em;
}
.rv-nav__logo span { color: var(--rv-teal); }

.rv-nav__links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.rv-nav__links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: rgba(255,255,255,0.85);
  text-decoration: none;
  transition: color var(--rv-transition);
}
.rv-nav__links a:hover { color: var(--rv-white); }

.rv-nav__cta {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.rv-nav__signin {
  font-size: 0.875rem;
  font-weight: 500;
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  transition: color var(--rv-transition);
}
.rv-nav__signin:hover { color: var(--rv-white); }

/* Mobile nav */
.rv-nav__toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  color: var(--rv-white);
}

@media (max-width: 768px) {
  .rv-nav__links,
  .rv-nav__signin {
    display: none;
  }
  .rv-nav__toggle {
    display: flex;
  }
  .rv-nav.is-open .rv-nav__links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--rv-navy);
    padding: 1.5rem;
    gap: 1rem;
    border-top: 1px solid rgba(255,255,255,0.1);
  }
}

/* ============================================================
   HERO
   ============================================================ */

.rv-hero {
  background-color: var(--rv-navy);
  position: relative;
  overflow: hidden;
  min-height: 80vh;
  display: flex;
  align-items: center;
}

.rv-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 70% 40%, rgba(42,171,171,0.12) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 80%, rgba(232,87,42,0.10) 0%, transparent 50%);
  pointer-events: none;
}

.rv-hero__inner {
  position: relative;
  z-index: 1;
  width: 100%;
}

.rv-hero__eyebrow {
  /* block, NOT inline-block. This sits as a direct child of a constrained
     group, and WordPress centres those with:
       .is-layout-constrained > :where(...) { margin-left:auto !important;
                                             margin-right:auto !important }
     Auto margins resolve to ZERO on an inline-block, so the label ignored the
     centring and pinned itself to the left edge of the full-width group while
     the h1 beside it centred normally. On a wide screen that left the label
     floating alone at the edge of the viewport. Block makes the auto margins
     apply, so it lines up with the heading it labels. */
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rv-teal);
  margin-bottom: 1rem;
}

.rv-hero h1 {
  color: var(--rv-white);
  max-width: 16ch;
  margin-bottom: 1.25rem;
}

.rv-hero__sub {
  font-size: 1.2rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.80);
  max-width: 52ch;
  margin-bottom: 2rem;
}

.rv-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.rv-hero__scroll {
  color: rgba(255,255,255,0.55);
  font-size: 0.875rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  margin-top: 2rem;
  transition: color var(--rv-transition);
}
.rv-hero__scroll:hover { color: rgba(255,255,255,0.85); }

/* ============================================================
   TRUST / STATUS BAR
   ============================================================ */

.rv-trust-bar {
  background-color: var(--rv-navy);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-block: 0.875rem;
  text-align: center;
}
.rv-trust-bar p {
  color: rgba(255,255,255,0.60);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.03em;
  margin: 0;
  max-width: none;
}
.rv-trust-bar strong {
  color: var(--rv-teal);
  font-weight: 600;
}

/* ============================================================
   SECTION LABELS + DIVIDERS
   ============================================================ */

.rv-section-label {
  /* block, NOT inline-block. This sits as a direct child of a constrained
     group, and WordPress centres those with:
       .is-layout-constrained > :where(...) { margin-left:auto !important;
                                             margin-right:auto !important }
     Auto margins resolve to ZERO on an inline-block, so the label ignored the
     centring and pinned itself to the left edge of the full-width group while
     the h1 beside it centred normally. On a wide screen that left the label
     floating alone at the edge of the viewport. Block makes the auto margins
     apply, so it lines up with the heading it labels. */
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rv-orange);
  margin-bottom: 0.75rem;
}

.rv-section-intro {
  max-width: 52ch;
}

/* ============================================================
   CARDS
   ============================================================ */

.rv-card {
  background: var(--rv-white);
  border-radius: var(--rv-border-radius-lg);
  padding: 2rem;
  box-shadow: var(--rv-shadow-sm);
  border: 1px solid rgba(13, 27, 42, 0.06);
  transition: box-shadow var(--rv-transition), transform var(--rv-transition);
}
.rv-card:hover {
  box-shadow: var(--rv-shadow-md);
  transform: translateY(-2px);
}

.rv-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background-color: rgba(42,171,171,0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  font-size: 1.5rem;
}

.rv-card--problem {
  border-top: 3px solid var(--rv-orange);
}

.rv-card--feature {
  border-top: 3px solid var(--rv-teal);
}

/* ============================================================
   STEPS (How It Works)
   ============================================================ */

.rv-steps {
  counter-reset: rv-step;
}

.rv-step {
  display: grid;
  grid-template-columns: 4rem 1fr;
  gap: 1.5rem;
  align-items: flex-start;
  padding-block: 2rem;
  border-bottom: 1px solid var(--rv-fog-dark);
}
.rv-step:last-child { border-bottom: none; }

.rv-step__number {
  counter-increment: rv-step;
  width: 4rem;
  height: 4rem;
  border-radius: 50%;
  background-color: var(--rv-navy);
  color: var(--rv-white);
  font-family: var(--rv-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
}
.rv-step__number::after {
  content: counter(rv-step);
}

.rv-step__content h3 {
  margin-bottom: 0.5rem;
  font-size: 1.2rem;
}

/* ============================================================
   PRICING TABLE
   ============================================================ */

.rv-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.rv-plan {
  background: var(--rv-white);
  border: 1px solid var(--rv-fog-dark);
  border-radius: var(--rv-border-radius-lg);
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: box-shadow var(--rv-transition);
}
.rv-plan:hover { box-shadow: var(--rv-shadow-md); }

.rv-plan--featured {
  border-color: var(--rv-teal);
  box-shadow: 0 0 0 2px var(--rv-teal);
  position: relative;
}
.rv-plan--featured::before {
  content: 'Most Popular';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--rv-teal);
  color: var(--rv-white);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.25rem 0.875rem;
  border-radius: 100px;
}

.rv-plan__name {
  font-family: var(--rv-font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--rv-navy);
}

.rv-plan__price {
  font-family: var(--rv-font-display);
  font-size: 2rem;
  font-weight: 800;
  color: var(--rv-navy);
  line-height: 1;
}
.rv-plan__price span {
  font-size: 1rem;
  font-weight: 400;
  color: var(--rv-slate);
}

.rv-plan__coming {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rv-slate);
  padding: 0.4rem 0;
  border-top: 1px solid var(--rv-fog-dark);
  border-bottom: 1px solid var(--rv-fog-dark);
}

.rv-plan__features {
  list-style: none;
  margin: 0;
  padding: 0;
  flex: 1;
}
.rv-plan__features li {
  font-size: 0.9rem;
  color: var(--rv-slate);
  padding-block: 0.4rem;
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
}
.rv-plan__features li::before {
  content: '✓';
  color: var(--rv-green);
  font-weight: 700;
  flex-shrink: 0;
}

/* ============================================================
   EMAIL CAPTURE / WAITLIST
   ============================================================ */

.rv-waitlist {
  background: linear-gradient(135deg, var(--rv-navy) 0%, #1a3048 100%);
  border-radius: var(--rv-border-radius-lg);
  padding: clamp(2rem, 6vw, 4rem);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.rv-waitlist::before {
  content: '';
  position: absolute;
  top: -60px;
  right: -60px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(42,171,171,0.10);
  pointer-events: none;
}

.rv-waitlist h2 { color: var(--rv-white); }

.rv-waitlist p {
  color: rgba(255,255,255,0.75);
  max-width: none;
}

.rv-waitlist-form {
  display: flex;
  gap: 0.75rem;
  max-width: 480px;
  margin-inline: auto;
  flex-wrap: wrap;
  justify-content: center;
}

.rv-waitlist-form input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 0.875rem 1.25rem;
  border: 1.5px solid rgba(255,255,255,0.20);
  border-radius: var(--rv-border-radius);
  background: rgba(255,255,255,0.08);
  color: var(--rv-white);
  font-family: var(--rv-font-body);
  font-size: 1rem;
  outline: none;
  transition: border-color var(--rv-transition);
}
.rv-waitlist-form input[type="email"]::placeholder { color: rgba(255,255,255,0.45); }
.rv-waitlist-form input[type="email"]:focus { border-color: var(--rv-teal); }

.rv-waitlist-form button[type="submit"] {
  background-color: var(--rv-orange);
  color: var(--rv-white);
  border: 2px solid var(--rv-orange);
  border-radius: var(--rv-border-radius);
  padding: 0.875rem 1.5rem;
  font-family: var(--rv-font-body);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color var(--rv-transition), transform var(--rv-transition);
}
.rv-waitlist-form button[type="submit"]:hover {
  background-color: var(--rv-orange-dark);
  transform: translateY(-1px);
}

.rv-waitlist__microcopy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.45);
  margin-top: 0.75rem;
  margin-bottom: 0;
}

/* ============================================================
   STATUS BADGE
   ============================================================ */

.rv-status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(45, 189, 110, 0.12);
  color: var(--rv-green);
  border: 1px solid rgba(45, 189, 110, 0.30);
  padding: 0.3rem 0.75rem;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
}
.rv-status-badge::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: var(--rv-green);
  animation: rv-pulse 2s ease-in-out infinite;
}

@keyframes rv-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.8); }
}

/* ============================================================
   DASHBOARD MOCKUP (sensor reading cards)
   ============================================================ */

.rv-dashboard-preview {
  background: var(--rv-navy);
  border-radius: var(--rv-border-radius-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 0.875rem;
}

.rv-reading-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--rv-border-radius);
  padding: 1rem;
}
.rv-reading-card__label {
  font-size: 0.75rem;
  font-weight: 500;
  color: rgba(255,255,255,0.50);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 0.4rem;
}
.rv-reading-card__value {
  font-family: var(--rv-font-mono);
  font-size: 1.625rem;
  font-weight: 500;
  color: var(--rv-white);
  line-height: 1;
}
.rv-reading-card__unit {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.50);
}
.rv-reading-card--ok .rv-reading-card__value { color: var(--rv-green); }
.rv-reading-card--warn .rv-reading-card__value { color: var(--rv-orange); }

/* ============================================================
   NOTIFICATION CALLOUT
   ============================================================ */

.rv-notification {
  display: inline-flex;
  align-items: flex-start;
  gap: 0.75rem;
  background: var(--rv-white);
  border-left: 3px solid var(--rv-orange);
  border-radius: var(--rv-border-radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--rv-shadow-md);
  text-align: left;
}
.rv-notification__icon { font-size: 1.25rem; flex-shrink: 0; }
.rv-notification__title { font-weight: 600; font-size: 0.9rem; color: var(--rv-navy); }
.rv-notification__body  { font-size: 0.8125rem; color: var(--rv-slate); margin: 0; }

/* ============================================================
   CALLOUT BOXES
   ============================================================ */

.rv-callout {
  border-radius: var(--rv-border-radius);
  padding: 1.25rem 1.5rem;
  border-left: 4px solid;
  margin-block: 1.5rem;
}

.rv-callout--info {
  background: rgba(42,171,171,0.08);
  border-color: var(--rv-teal);
}
.rv-callout--info p { color: var(--rv-navy); }

.rv-callout--warning {
  background: rgba(232,87,42,0.08);
  border-color: var(--rv-orange);
}

.rv-callout--note {
  background: var(--rv-fog-dark);
  border-color: var(--rv-slate);
}

.rv-callout p { margin: 0; max-width: none; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */

.rv-faq-item {
  border-bottom: 1px solid var(--rv-fog-dark);
}

.rv-faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-block: 1.25rem;
  cursor: pointer;
  font-family: var(--rv-font-display);
  font-weight: 600;
  font-size: 1rem;
  color: var(--rv-navy);
  list-style: none;
  gap: 1rem;
  transition: color var(--rv-transition);
}
.rv-faq-item summary:hover { color: var(--rv-teal); }
.rv-faq-item summary::after {
  content: '+';
  font-size: 1.25rem;
  font-weight: 400;
  color: var(--rv-slate);
  flex-shrink: 0;
  transition: transform var(--rv-transition);
}
.rv-faq-item[open] summary::after {
  content: '−';
}

.rv-faq-item__body {
  padding-bottom: 1.25rem;
  padding-top: 0.25rem;
}
.rv-faq-item__body p {
  font-size: 0.95rem;
  color: var(--rv-slate);
}

/* ============================================================
   BLOG
   ============================================================ */

.rv-post-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.rv-post-card {
  background: var(--rv-white);
  border-radius: var(--rv-border-radius-lg);
  overflow: hidden;
  box-shadow: var(--rv-shadow-sm);
  border: 1px solid rgba(13,27,42,0.06);
  display: flex;
  flex-direction: column;
  transition: box-shadow var(--rv-transition), transform var(--rv-transition);
}
.rv-post-card:hover { box-shadow: var(--rv-shadow-md); transform: translateY(-2px); }

.rv-post-card__thumb {
  aspect-ratio: 16 / 9;
  background: var(--rv-navy);
  overflow: hidden;
}
.rv-post-card__thumb img { width: 100%; height: 100%; object-fit: cover; }

.rv-post-card__body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.rv-post-card__tag {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rv-orange);
  margin-bottom: 0.5rem;
}

.rv-post-card h3 {
  font-size: 1.125rem;
  margin-bottom: 0.5rem;
}

.rv-post-card p {
  font-size: 0.9rem;
  color: var(--rv-slate);
  flex: 1;
}

.rv-post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--rv-fog-dark);
}

/* ============================================================
   FOOTER
   ============================================================ */

.rv-footer {
  background-color: var(--rv-navy);
  color: rgba(255,255,255,0.70);
  padding-block: var(--rv-space-2xl);
}

.rv-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: var(--rv-space-xl);
}

@media (max-width: 768px) {
  .rv-footer__grid {
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
}
@media (max-width: 480px) {
  .rv-footer__grid { grid-template-columns: 1fr; }
}

.rv-footer__brand .rv-nav__logo {
  margin-bottom: 0.75rem;
}

.rv-footer__tagline {
  font-size: 0.875rem;
  color: rgba(255,255,255,0.50);
  margin-bottom: 1.25rem;
  max-width: 28ch;
}

.rv-footer__col-title {
  font-family: var(--rv-font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.40);
  margin-bottom: 1rem;
}

.rv-footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.625rem;
}
.rv-footer__links a {
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  transition: color var(--rv-transition);
}
.rv-footer__links a:hover { color: var(--rv-white); }

.rv-footer__bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: var(--rv-space-md);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.rv-footer__copy {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  margin: 0;
  max-width: none;
}

.rv-footer__legal-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.rv-footer__legal-links a {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--rv-transition);
}
.rv-footer__legal-links a:hover { color: rgba(255,255,255,0.70); }

/* Inline footer email capture */
.rv-footer__capture {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.5rem;
}
.rv-footer__capture input {
  flex: 1;
  padding: 0.625rem 0.875rem;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--rv-border-radius);
  background: rgba(255,255,255,0.06);
  color: var(--rv-white);
  font-size: 0.875rem;
  font-family: var(--rv-font-body);
  outline: none;
}
.rv-footer__capture input::placeholder { color: rgba(255,255,255,0.35); }
.rv-footer__capture input:focus { border-color: var(--rv-teal); }
.rv-footer__capture button {
  padding: 0.625rem 1rem;
  background: var(--rv-teal);
  border: none;
  border-radius: var(--rv-border-radius);
  color: var(--rv-white);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  font-family: var(--rv-font-body);
  transition: background-color var(--rv-transition);
}
.rv-footer__capture button:hover { background-color: var(--rv-teal-dark); }

/* ============================================================
   ACCESSIBILITY
   ============================================================ */

.skip-link {
  position: absolute;
  top: -100%;
  left: 1rem;
  background: var(--rv-orange);
  color: var(--rv-white);
  padding: 0.75rem 1.25rem;
  border-radius: var(--rv-border-radius);
  font-weight: 600;
  text-decoration: none;
  z-index: 9999;
  transition: top 0.2s;
}
.skip-link:focus { top: 1rem; }

:focus-visible {
  outline: 3px solid var(--rv-orange);
  outline-offset: 3px;
  border-radius: 3px;
}

/* Screen reader only */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

/* ============================================================
   UTILITIES
   ============================================================ */

.rv-text-center { text-align: center; }
.rv-text-white  { color: var(--rv-white) !important; }
.rv-text-teal   { color: var(--rv-teal) !important; }
.rv-text-orange { color: var(--rv-orange) !important; }
.rv-text-slate  { color: var(--rv-slate) !important; }

.rv-bg-navy  { background-color: var(--rv-navy); }
.rv-bg-fog   { background-color: var(--rv-fog); }
.rv-bg-white { background-color: var(--rv-white); }

.rv-mt-0  { margin-top: 0; }
.rv-mb-0  { margin-bottom: 0; }
.rv-mb-sm { margin-bottom: var(--rv-space-sm); }
.rv-mb-md { margin-bottom: var(--rv-space-md); }
.rv-mb-lg { margin-bottom: var(--rv-space-lg); }

.rv-max-p  { max-width: var(--rv-content-width); margin-inline: auto; }
.rv-center { display: flex; flex-direction: column; align-items: center; text-align: center; }

/* ============================================================
   REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================================
   PRINT
   ============================================================ */

@media print {
  .rv-site-header,
  .rv-waitlist,
  .rv-footer__capture {
    display: none;
  }
}

/* ============================================================
   HIDDEN ATTRIBUTE
   The UA rule for [hidden] is display:none, but any author rule
   that sets display beats it. .rv-btn is display:inline-flex and
   tr is display:table-row, so without this the Clear filters
   button and every filtered-out row would stay visible.
   ============================================================ */

[hidden] { display: none !important; }

/* ============================================================
   LINK-STYLED BUTTON
   For controls that must be a button for behaviour but should
   read as a link in running text (cookie settings, clear filters).
   ============================================================ */

.rv-link-button {
  background: none;
  border: 0;
  padding: 0;
  font: inherit;
  color: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.rv-link-button:hover { color: var(--rv-teal); }

.rv-footer__legal-links .rv-link-button {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.35);
  text-decoration: none;
  transition: color var(--rv-transition);
}
.rv-footer__legal-links .rv-link-button:hover { color: rgba(255,255,255,0.70); }

/* ============================================================
   STATUS BADGE TONES
   Tone is set from the catalog support status, never by hand, so
   nothing can be badged more positively than the catalog allows.
   ============================================================ */

.rv-status-badge--ok      { background: rgba(45,189,110,0.12); color: var(--rv-green);  border-color: rgba(45,189,110,0.30); }
.rv-status-badge--ok::before      { background-color: var(--rv-green); }

.rv-status-badge--pending { background: rgba(232,87,42,0.10);  color: var(--rv-orange); border-color: rgba(232,87,42,0.28); }
.rv-status-badge--pending::before { background-color: var(--rv-orange); }

.rv-status-badge--info    { background: rgba(42,171,171,0.10); color: var(--rv-teal);   border-color: rgba(42,171,171,0.28); }
.rv-status-badge--info::before    { background-color: var(--rv-teal); }

.rv-status-badge--muted   { background: var(--rv-fog-dark);    color: var(--rv-slate);  border-color: rgba(92,107,122,0.25); }
.rv-status-badge--muted::before   { background-color: var(--rv-slate); }

/* A table of pulsing dots is noise, not signal. */
.rv-status-badge--static::before { animation: none; }

/* ============================================================
   COMPATIBILITY ARCHIVE
   ============================================================ */

.rv-compat__filters {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  padding: 1.25rem;
  background: var(--rv-white);
  border: 1px solid var(--rv-fog-dark);
  border-radius: var(--rv-border-radius-lg);
  margin-bottom: 1.25rem;
}

.rv-compat__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1 1 12rem;
  min-width: 0;
}
.rv-compat__field--search { flex: 2 1 18rem; }

.rv-compat__field label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rv-slate);
}

.rv-compat__field input,
.rv-compat__field select {
  width: 100%;
  padding: 0.625rem 0.75rem;
  font-family: var(--rv-font-body);
  font-size: 0.9375rem;
  color: var(--rv-navy);
  background: var(--rv-white);
  border: 1.5px solid var(--rv-fog-dark);
  border-radius: var(--rv-border-radius);
  outline: none;
  transition: border-color var(--rv-transition);
}
.rv-compat__field input:focus,
.rv-compat__field select:focus { border-color: var(--rv-teal); }

.rv-compat__clear { flex: 0 0 auto; padding-block: 0.6rem; }

.rv-compat__count {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--rv-slate);
  margin: 0 0 0.75rem;
  max-width: none;
}

.rv-compat__empty {
  padding: 2rem;
  text-align: center;
  color: var(--rv-slate);
  background: var(--rv-white);
  border: 1px dashed var(--rv-fog-dark);
  border-radius: var(--rv-border-radius-lg);
  max-width: none;
}

/* Wide tables scroll inside their own box rather than the page. */
.rv-compat__table-wrap {
  overflow-x: auto;
  background: var(--rv-white);
  border: 1px solid var(--rv-fog-dark);
  border-radius: var(--rv-border-radius-lg);
}
.rv-compat__table-wrap:focus-visible {
  outline: 3px solid var(--rv-orange);
  outline-offset: 2px;
}

.rv-compat-table {
  width: 100%;
  min-width: 44rem;
  border-collapse: collapse;
  font-size: 0.9375rem;
}

/* No position:sticky on the header row. The wrapper is a scroll container, so a
   sticky header would stick to it rather than to the viewport and never move,
   and the site header is already sticky above it. */
.rv-compat-table thead th {
  background: var(--rv-fog);
  font-family: var(--rv-font-display);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rv-slate);
  text-align: left;
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--rv-fog-dark);
  white-space: nowrap;
}

.rv-compat-table td,
.rv-compat-table tbody th {
  padding: 0.875rem 1rem;
  border-bottom: 1px solid var(--rv-fog-dark);
  vertical-align: top;
  text-align: left;
  font-weight: 400;
  color: var(--rv-slate);
}
.rv-compat-table tbody tr:last-child td,
.rv-compat-table tbody tr:last-child th { border-bottom: 0; }

.rv-compat-table tbody tr:hover { background: rgba(42,171,171,0.04); }

.rv-compat-table__device a {
  font-weight: 600;
  color: var(--rv-navy);
  text-decoration: none;
}
.rv-compat-table__device a:hover { color: var(--rv-teal); text-decoration: underline; }

.rv-compat-table__models {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--rv-slate);
}

.rv-compat-table__reads { max-width: 22rem; }

/* ============================================================
   DEVICE PAGE
   ============================================================ */

.rv-device__verdict {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1.5rem;
  border-radius: var(--rv-border-radius-lg);
  border-left: 4px solid var(--rv-slate);
  background: var(--rv-fog);
  margin-bottom: 2rem;
}
.rv-device__verdict p {
  margin: 0;
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--rv-navy);
  max-width: none;
}
.rv-device__verdict--ok      { border-left-color: var(--rv-green);  background: rgba(45,189,110,0.06); }
.rv-device__verdict--pending { border-left-color: var(--rv-orange); background: rgba(232,87,42,0.06); }
.rv-device__verdict--info    { border-left-color: var(--rv-teal);   background: rgba(42,171,171,0.06); }

.rv-device__facts {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 2rem;
  font-size: 0.9375rem;
}
.rv-device__facts th {
  width: 12rem;
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 1rem 0.75rem 0;
  font-family: var(--rv-font-display);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--rv-slate);
  border-bottom: 1px solid var(--rv-fog-dark);
}
.rv-device__facts td {
  padding: 0.75rem 0;
  vertical-align: top;
  color: var(--rv-navy);
  border-bottom: 1px solid var(--rv-fog-dark);
}
.rv-device__facts tr:last-child th,
.rv-device__facts tr:last-child td { border-bottom: 0; }

.rv-device__facts-note {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.8125rem;
  color: var(--rv-slate);
}

.rv-device__caveats ul { margin: 0.75rem 0 0; padding-left: 1.25rem; }
.rv-device__caveats li { margin-bottom: 0.5rem; color: var(--rv-navy); }
.rv-device__caveats li:last-child { margin-bottom: 0; }

.rv-device__disclaimer {
  font-size: 0.8125rem;
  color: var(--rv-slate);
  border-top: 1px solid var(--rv-fog-dark);
  padding-top: 1rem;
  margin-top: 2rem;
}

.rv-device__back { margin-top: 1.5rem; font-weight: 500; }

@media (max-width: 600px) {
  .rv-device__facts th,
  .rv-device__facts td { display: block; width: auto; border-bottom: 0; padding: 0; }
  .rv-device__facts th { padding-top: 1rem; }
  .rv-device__facts td { padding-bottom: 0.75rem; border-bottom: 1px solid var(--rv-fog-dark); }
}

/* ============================================================
   CONSENT BANNER
   Hidden by default via the hidden attribute, so a visitor with
   JavaScript off never sees a banner for a script that will
   never load.
   ============================================================ */

.rv-consent {
  position: fixed;
  left: 1rem;
  right: 1rem;
  bottom: 1rem;
  z-index: 9998;
  background: var(--rv-navy);
  color: rgba(255,255,255,0.85);
  border-radius: var(--rv-border-radius-lg);
  box-shadow: var(--rv-shadow-lg);
  border: 1px solid rgba(255,255,255,0.10);
}
.rv-consent[hidden] { display: none; }

.rv-consent__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  max-width: var(--rv-max-width);
  margin-inline: auto;
  padding: 1.25rem 1.5rem;
}

.rv-consent__copy { flex: 1 1 24rem; min-width: 0; }

.rv-consent__title {
  font-family: var(--rv-font-display);
  font-weight: 700;
  font-size: 0.9375rem;
  color: var(--rv-white);
  margin: 0 0 0.35rem;
  max-width: none;
}

.rv-consent__body {
  font-size: 0.875rem;
  line-height: 1.55;
  color: rgba(255,255,255,0.70);
  margin: 0;
  max-width: none;
}
.rv-consent__body a { color: var(--rv-teal); }

.rv-consent__actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  flex: 0 0 auto;
}
.rv-consent__actions .rv-btn { padding: 0.7rem 1.4rem; font-size: 0.9375rem; }

@media (max-width: 600px) {
  .rv-consent__actions { width: 100%; }
  .rv-consent__actions .rv-btn { flex: 1 1 auto; }
}

@media print {
  .rv-consent { display: none; }
}

/* Nominative-use notice under the compatibility table. Deliberately legible
   rather than fine print: a disclaimer nobody can read is not a disclaimer. */
.rv-compat__legal {
  margin-top: 1.5rem;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--rv-slate);
  max-width: none;
}

/* ============================================================
   PARTNER BADGE
   Square, no status dot, teal. Deliberately a different shape
   from .rv-status-badge: one says the hub decodes this device,
   the other says we have a relationship with the company that
   makes it. Those are independent claims and must not read as
   the same kind of thing.
   ============================================================ */

.rv-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  background: rgba(42,171,171,0.10);
  color: var(--rv-teal-dark);
  border: 1px solid rgba(42,171,171,0.35);
  border-radius: 4px;
  padding: 0.25rem 0.6rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.rv-partner-badge::before {
  content: '\2713';
  font-weight: 700;
}

/* In the table it sits under the device name, so it needs to break the line. */
.rv-compat-table__device .rv-partner-badge {
  display: inline-flex;
  margin-top: 0.4rem;
}

.rv-device__badges {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.rv-device__partner { margin-top: 1.5rem; }
.rv-device__partner p + p { margin-top: 0.6rem; }

.rv-device__partner-disclosure {
  font-size: 0.8125rem;
  color: var(--rv-slate);
}

/* ============================================================
   PRODUCTS
   Built on rv-card and rv-status-badge. No second card system.
   ============================================================ */

.rv-product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.5rem;
}

.rv-product-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1rem;
}

.rv-product-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.5rem;
}

.rv-product-card__thumb {
  display: block;
  border-radius: var(--rv-border-radius);
  overflow: hidden;
  background: var(--rv-fog);
  aspect-ratio: 4 / 3;
}
.rv-product-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.rv-product-card__title {
  font-size: 1.0625rem;
  margin: 0;
}
.rv-product-card__title a {
  color: var(--rv-navy);
  text-decoration: none;
}
.rv-product-card__title a:hover { color: var(--rv-teal); }

.rv-product-card__prop {
  font-size: 0.9rem;
  color: var(--rv-slate);
  margin: 0;
  flex: 1;
}

.rv-product-card__price {
  font-family: var(--rv-font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rv-navy);
  margin: 0;
}

/* The compatibility badge is a link on a product card, so it needs to not inherit
   the underline every other link gets. */
.rv-product__compat {
  align-self: flex-start;
  text-decoration: none;
}
.rv-product__compat:hover { text-decoration: underline; }

.rv-product__action {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: auto;
}

.rv-product__buy { width: 100%; }

/* The FTC wants this adjacent to the link and legible, not hidden in a footer.
   Small, but not small enough to be deniable. */
.rv-product__disclosure {
  font-size: 0.75rem;
  line-height: 1.5;
  color: var(--rv-slate);
  margin: 0;
  max-width: none;
}

.rv-product__unavailable {
  font-size: 0.875rem;
  color: var(--rv-slate);
  margin: 0;
}

/* Single product buy panel */
.rv-product__panel {
  position: sticky;
  top: 6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: flex-start;
  background: var(--rv-white);
  border: 1px solid var(--rv-fog-dark);
  border-radius: var(--rv-border-radius-lg);
  padding: 1.75rem;
  box-shadow: var(--rv-shadow-sm);
}
.rv-product__panel .rv-product__action { width: 100%; margin-top: 0; }

.rv-product__note {
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--rv-slate);
  margin: 0;
  max-width: none;
}

@media (max-width: 781px) {
  .rv-product__panel { position: static; }
}

/* "Where to get one" on a device page */
.rv-device__buy {
  margin-top: 2.5rem;
  padding-top: 2rem;
  border-top: 1px solid var(--rv-fog-dark);
}
.rv-device__buy-title {
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}

/* ============================================================
   FORMS - contact, feature requests
   Shared field styling. The waitlist form keeps its own inline
   layout because it is a single row inside a dark hero.
   ============================================================ */

.rv-contact-form,
.rv-request-form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  max-width: 640px;
}

.rv-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}

.rv-field label {
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rv-navy);
}

.rv-field__optional {
  font-weight: 400;
  color: var(--rv-slate);
}

.rv-field input[type="text"],
.rv-field input[type="email"],
.rv-field select,
.rv-field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--rv-navy);
  background: var(--rv-white);
  border: 1px solid var(--rv-fog-dark);
  border-radius: var(--rv-border-radius);
  padding: 0.75rem 0.875rem;
  width: 100%;
  /* Without this a padded input overflows its flex parent on mobile. */
  box-sizing: border-box;
  transition: border-color var(--rv-transition), box-shadow var(--rv-transition);
}

.rv-field textarea {
  resize: vertical;
  min-height: 8rem;
  line-height: 1.6;
}

.rv-field input:focus,
.rv-field select:focus,
.rv-field textarea:focus {
  outline: none;
  border-color: var(--rv-teal);
  /* Ring rather than an outline swap, so focus is visible against both the
     white and fog section backgrounds without shifting layout. */
  box-shadow: 0 0 0 3px rgba(42, 171, 171, 0.18);
}

.rv-field__hint {
  font-size: 0.8125rem;
  color: var(--rv-slate);
  margin: 0;
}

.rv-form__status {
  font-size: 0.9375rem;
  margin: 0;
  min-height: 1.4em;
}
.rv-form__status:empty { min-height: 0; }

/* Turnstile renders a fixed-size iframe. Give it room so the submit button
   does not jump when the widget finishes loading. */
.rv-turnstile { min-height: 65px; }

/* The button is a plain <button> here rather than an <a class="rv-btn">, so it
   needs the alignment the anchor version gets from being inline-flex. */
.rv-contact-form .rv-btn,
.rv-request-form .rv-btn {
  align-self: flex-start;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
}
.rv-contact-form .rv-btn[disabled],
.rv-request-form .rv-btn[disabled] {
  opacity: 0.6;
  cursor: default;
}

/* ============================================================
   FEATURE REQUESTS
   ============================================================ */

.rv-fr-card {
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--rv-fog-dark);
  border-radius: var(--rv-border-radius);
  background: var(--rv-white);
  margin-bottom: 0.75rem;
  transition: border-color var(--rv-transition), box-shadow var(--rv-transition);
}
.rv-fr-card:hover {
  border-color: var(--rv-teal);
  box-shadow: var(--rv-shadow-sm);
}
.rv-fr-card .wp-block-post-title { margin: 0 0 0.375rem; }
.rv-fr-card .wp-block-post-title a { text-decoration: none; }
.rv-fr-card .wp-block-post-excerpt { margin: 0; }
.rv-fr-card p { margin: 0; }

/* Vote button. Deliberately understated: the owner's position is that traffic
   is the signal and votes are a secondary check, so this should not look like
   the main event on the page. */
.rv-vote {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rv-navy);
  background: var(--rv-white);
  border: 1px solid var(--rv-fog-dark);
  border-radius: var(--rv-border-radius);
  padding: 0.5rem 0.875rem;
  cursor: pointer;
  transition: border-color var(--rv-transition), background-color var(--rv-transition);
}
.rv-vote:hover:not([disabled]) {
  border-color: var(--rv-teal);
  background: var(--rv-fog);
}
.rv-vote.is-voted,
.rv-vote[disabled] {
  cursor: default;
  border-color: var(--rv-teal);
  color: var(--rv-teal-dark);
}
.rv-vote__arrow { font-size: 1rem; line-height: 1; }
.rv-vote__count { font-variant-numeric: tabular-nums; }

.rv-fr-status {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.6rem;
  border-radius: 999px;
  background: var(--rv-fog-dark);
  color: var(--rv-slate);
}
.rv-fr-status--planned,
.rv-fr-status--in-progress { background: rgba(42,171,171,0.15); color: var(--rv-teal-dark); }
.rv-fr-status--shipped     { background: rgba(45,189,110,0.15); color: #1E7F49; }
.rv-fr-status--declined    { background: var(--rv-fog-dark);    color: var(--rv-slate); }

.rv-fr-meta__row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rv-fog-dark);
}

.rv-fr-related {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--rv-fog);
  border-radius: var(--rv-border-radius);
}
.rv-fr-related__title { font-size: 1rem; margin: 0 0 0.5rem; }
.rv-fr-related__intro { font-size: 0.875rem; margin: 0 0 0.75rem; }
.rv-fr-related ul { margin: 0; padding-left: 1.1rem; }
.rv-fr-related li { margin-bottom: 0.375rem; }
.rv-fr-related__votes { font-size: 0.8125rem; color: var(--rv-slate); }

/* The "this looks similar" block on the submission form. */
.rv-matches__list { list-style: none; margin: 1rem 0; padding: 0; }
.rv-matches__list li {
  padding: 0.75rem 0;
  border-top: 1px solid var(--rv-fog-dark);
}
.rv-matches__meta { font-size: 0.8125rem; color: var(--rv-slate); }
.rv-matches__vote {
  display: block;
  margin-top: 0.5rem;
  font-size: 0.875rem;
  padding: 0.5rem 1rem;
}
.rv-matches__different { font-size: 0.875rem; margin: 0; }

.rv-comment {
  padding: 1rem 0;
  border-bottom: 1px solid var(--rv-fog-dark);
}

/* ============================================================
   ANSWER WIDGET
   ============================================================ */

.rv-answers { max-width: 680px; }

.rv-answers__label {
  display: block;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--rv-navy);
  margin-bottom: 0.5rem;
}

.rv-answers__row {
  display: flex;
  gap: 0.5rem;
}

.rv-answers__input {
  flex: 1 1 auto;
  min-width: 0;
  font: inherit;
  font-size: 1rem;
  color: var(--rv-navy);
  background: var(--rv-white);
  border: 1px solid var(--rv-fog-dark);
  border-radius: var(--rv-border-radius);
  padding: 0.75rem 0.875rem;
}
.rv-answers__input:focus {
  outline: none;
  border-color: var(--rv-teal);
  box-shadow: 0 0 0 3px rgba(42,171,171,0.18);
}

.rv-answers__go { flex: 0 0 auto; border: none; cursor: pointer; font: inherit; font-weight: 600; }

.rv-answers__hint {
  font-size: 0.8125rem;
  color: var(--rv-slate);
  margin: 0.5rem 0 0;
}

.rv-answers__results { margin-top: 1.25rem; }
.rv-answers__results:empty { margin-top: 0; }

.rv-answer {
  padding: 1rem 1.25rem;
  border: 1px solid var(--rv-fog-dark);
  border-radius: var(--rv-border-radius);
  background: var(--rv-white);
  margin-bottom: 0.75rem;
}
/* The top hit gets the accent. Everything below it is "you might also mean". */
.rv-answer--top { border-color: var(--rv-teal); box-shadow: var(--rv-shadow-sm); }

.rv-answer__kind {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--rv-slate);
  margin-bottom: 0.375rem;
}
.rv-answer__kind--device { color: var(--rv-teal-dark); }

.rv-answer__title {
  font-family: var(--rv-font-display);
  font-weight: 700;
  color: var(--rv-navy);
  margin: 0 0 0.375rem;
}
.rv-answer__body { margin: 0 0 0.5rem; font-size: 0.9375rem; }
.rv-answer__link { font-size: 0.875rem; font-weight: 600; }

.rv-answers__none { font-size: 0.9375rem; margin: 0; }

/* ============================================================
   DEMO LINKS
   ============================================================ */

/* Ships with the hidden attribute and is revealed by main.js once a demo URL
   is confirmed. [hidden] is a UA rule that any author display wins against, so
   this repeats it rather than trusting the default. Same trap the .rv-btn
   rules hit. */
.rv-nav__demo[hidden] { display: none; }

.rv-nav__demo {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--rv-teal);
  text-decoration: none;
  white-space: nowrap;
  padding: 0.4rem 0.75rem;
  border: 1px solid rgba(42, 171, 171, 0.45);
  border-radius: var(--rv-border-radius);
  transition: background-color var(--rv-transition), border-color var(--rv-transition);
}
.rv-nav__demo:hover {
  background-color: rgba(42, 171, 171, 0.12);
  border-color: var(--rv-teal);
  color: var(--rv-teal);
}

@media (max-width: 900px) {
  /* The nav is already tight at six items plus two CTAs. The demo block in the
     page body carries this on small screens. */
  .rv-nav__demo { display: none; }
}

.rv-demo-cta {
  margin: 2.5rem 0;
  padding: 2rem;
  border: 1px solid var(--rv-fog-dark);
  border-left: 4px solid var(--rv-teal);
  border-radius: var(--rv-border-radius);
  background: var(--rv-white);
}

.rv-demo-cta__label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--rv-teal);
  margin: 0 0 0.5rem;
}

.rv-demo-cta__heading {
  font-size: 1.375rem;
  margin: 0 0 0.75rem;
}

.rv-demo-cta__body { margin: 0 0 1.25rem; }

.rv-demo-inline { margin: 1.5rem 0; }

/* ============================================================
   PRODUCT CARD THUMB
   A drawn category icon stands in for the photo we are not
   licensed to use. See inc/product-icons.php.
   ============================================================ */

.rv-product-card__thumb {
  display: block;
  margin: -0.5rem 0 1rem;
  border-radius: var(--rv-border-radius);
  overflow: hidden;
}
.rv-product-card__thumb img {
  display: block;
  width: 100%;
  height: auto;
}

.rv-product-card__thumb--icon {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 7;
  background: linear-gradient(135deg, var(--rv-fog) 0%, var(--rv-fog-dark) 100%);
  border: 1px solid rgba(13, 27, 42, 0.06);
  color: var(--rv-teal-dark);
}
.rv-product-card__thumb--icon:hover { color: var(--rv-orange); }

.rv-product-icon {
  width: 44px;
  height: 44px;
}
