/* =====================================================================
   RevRent — marketing site styles
   Imports the SAME design tokens as the brand guide so the two
   stay visually identical. Mobile-first.
   ===================================================================== */
/* Absolute path so it resolves both in-app (FastAPI serves /brand) and on the
   standalone static host (build copies brand/tokens.css to <publish>/brand/). */
@import url("/brand/tokens.css");

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

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--color-text);
  background: var(--color-bg);
  line-height: var(--leading-normal);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: var(--leading-tight);
  letter-spacing: var(--tracking-tight);
  margin: 0 0 var(--space-4);
}
p { margin: 0 0 var(--space-4); }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }

.container { max-width: var(--container-max); margin: 0 auto; padding-left: var(--container-pad); padding-right: var(--container-pad); }

/* Skip link */
.skip-link { position: absolute; left: -999px; top: 0; background: var(--color-primary); color: #fff; padding: var(--space-3) var(--space-4); border-radius: 0 0 var(--radius-md) 0; z-index: 200; }
.skip-link:focus { left: 0; }

/* Focus visibility everywhere */
a:focus-visible, button:focus-visible, input:focus-visible, summary:focus-visible, .faq-q:focus-visible {
  outline: none; box-shadow: var(--shadow-focus); border-radius: var(--radius-sm);
}

.eyebrow { display: inline-block; font-size: var(--text-xs); font-weight: var(--weight-bold); text-transform: uppercase; letter-spacing: var(--tracking-wide); color: var(--color-accent); margin-bottom: var(--space-3); }
.section-head { text-align: center; max-width: 44ch; margin: 0 auto var(--space-12); }
.section-head h2 { font-size: var(--text-3xl); font-weight: var(--weight-extra); }
.section-head p { color: var(--color-text-muted); font-size: var(--text-lg); margin: 0; }
.muted { color: var(--color-text-muted); }
.placeholder-note { font-size: var(--text-xs); color: var(--color-text-muted); font-style: italic; }

/* ---------- Buttons ---------- */
.btn {
  font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-base);
  border-radius: var(--radius-full); padding: 0.8em 1.5em; border: 2px solid transparent;
  cursor: pointer; transition: transform var(--transition-fast), background var(--transition), box-shadow var(--transition);
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em; text-decoration: none; white-space: nowrap;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--color-primary); color: #fff; box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--color-primary-hover); box-shadow: var(--shadow-md); }
/* Signal lime = the single highest-intent "convert" action; dark ink text for contrast. */
.btn-signal { background: var(--color-accent); color: var(--neutral-900); box-shadow: var(--shadow-sm); }
.btn-signal:hover { background: var(--color-accent-hover); color: #fff; box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--color-primary-soft); color: var(--color-primary); }
.btn-secondary:hover { background: var(--indigo-100); }
.btn-ghost { background: transparent; color: var(--color-primary); border-color: var(--color-border-strong); }
.btn-ghost:hover { border-color: var(--color-primary); background: var(--color-primary-soft); }
.btn-lg { font-size: var(--text-lg); padding: 0.9em 1.8em; }
.btn-on-dark.btn-ghost { color: #fff; border-color: rgba(255,255,255,0.4); }
.btn-on-dark.btn-ghost:hover { background: rgba(255,255,255,0.12); border-color: #fff; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 100; background: rgba(255,255,255,0.9);
  backdrop-filter: saturate(150%) blur(10px); border-bottom: 1px solid var(--color-border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: var(--space-4); }
.brand { display: inline-flex; align-items: center; gap: 0.55em; font-family: var(--font-display); font-weight: var(--weight-extra); font-size: 1.25rem; letter-spacing: var(--tracking-tight); }
.brand:hover { text-decoration: none; }
.brand .w1 { color: var(--neutral-900); }
.brand .w2 { color: var(--indigo-600); }
.brand svg { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: var(--space-6); }
.nav-links a { color: var(--neutral-700); font-weight: var(--weight-medium); font-size: var(--text-base); }
.nav-links a:hover { color: var(--color-primary); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: var(--space-3); }
.nav-toggle { display: none; background: none; border: 1px solid var(--color-border-strong); border-radius: var(--radius-md); width: 44px; height: 40px; cursor: pointer; align-items: center; justify-content: center; }
.nav-toggle svg { width: 22px; height: 22px; }

@media (max-width: 860px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: inline-flex; }
  .mobile-menu { display: none; border-bottom: 1px solid var(--color-border); background: #fff; }
  .mobile-menu.open { display: block; }
  .mobile-menu ul { padding: var(--space-3) 0; }
  .mobile-menu a { display: block; padding: var(--space-3) var(--container-pad); color: var(--neutral-700); font-weight: var(--weight-medium); }
  .mobile-menu .btn { margin: var(--space-3) var(--container-pad); display: flex; }
}
@media (min-width: 861px) { .mobile-menu { display: none; } }

/* ---------- Hero ---------- */
.hero { padding: var(--space-20) 0 var(--space-16); background:
  radial-gradient(1200px 500px at 80% -10%, var(--indigo-50), transparent 60%),
  radial-gradient(900px 500px at -10% 10%, var(--signal-50), transparent 55%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: var(--space-12); align-items: center; }
.hero h1 { font-size: var(--text-5xl); font-weight: var(--weight-extra); margin-bottom: var(--space-5); }
.hero .sub { font-size: var(--text-xl); color: var(--neutral-600); max-width: 32ch; margin-bottom: var(--space-8); }
.hero-tag { display: inline-flex; align-items: center; gap: 0.5em; background: var(--indigo-50); color: var(--indigo-700); border: 1px solid var(--indigo-100); font-weight: var(--weight-bold); font-size: var(--text-sm); padding: 0.35em 0.9em; border-radius: var(--radius-full); margin-bottom: var(--space-5); }
.hero-actions { display: flex; gap: var(--space-3); flex-wrap: wrap; }
.hero-trust { margin-top: var(--space-6); font-size: var(--text-sm); color: var(--color-text-muted); }

@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-10); }
  .hero { padding: var(--space-12) 0; }
}

/* Product mockup */
.mockup { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); overflow: hidden; }
.mockup-bar { display: flex; align-items: center; gap: 6px; padding: var(--space-3) var(--space-4); background: var(--neutral-50); border-bottom: 1px solid var(--color-border); }
.mockup-bar i { width: 11px; height: 11px; border-radius: 50%; display: inline-block; }
.mockup-bar .addr { margin-left: var(--space-3); font-family: var(--font-mono); font-size: var(--text-xs); color: var(--color-text-muted); }
.mockup-body { padding: var(--space-5); }
.mockup-row { display: flex; align-items: center; justify-content: space-between; padding: var(--space-3); border: 1px solid var(--color-border); border-radius: var(--radius-md); margin-bottom: var(--space-3); }
.mockup-row:last-child { margin-bottom: 0; }
.mockup-cart { display: flex; align-items: center; gap: var(--space-3); }
.mockup-cart .ico { width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--indigo-100); display: grid; place-items: center; }
.mockup-cart b { font-family: var(--font-display); }
.mockup-price { text-align: right; }
.mockup-price b { font-family: var(--font-display); font-size: var(--text-lg); }
.nudge { font-size: var(--text-xs); color: var(--signal-600); font-weight: var(--weight-semibold); }

/* ---------- Social proof ---------- */
.proof { padding: var(--space-12) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.proof p.k { text-align: center; color: var(--color-text-muted); font-size: var(--text-sm); font-weight: var(--weight-semibold); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: var(--space-6); }
.logos { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: var(--space-8); opacity: 0.75; }
.logos span { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--neutral-500); }
.quote-row { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-5); margin-top: var(--space-10); max-width: 800px; margin-left: auto; margin-right: auto; }
.quote { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-5); box-shadow: var(--shadow-sm); }
.quote blockquote { margin: 0 0 var(--space-4); font-size: var(--text-base); }
.quote .who { display: flex; align-items: center; gap: var(--space-3); }
.quote .av { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient-intent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; }
.quote .who b { font-size: var(--text-sm); }
.quote .who span { font-size: var(--text-xs); color: var(--color-text-muted); display: block; }
@media (max-width: 860px) { .quote-row { grid-template-columns: 1fr; } }

/* ---------- Features ---------- */
.section { padding: var(--space-24) 0; }
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.feature { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-lg); padding: var(--space-6); transition: transform var(--transition), box-shadow var(--transition); }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.feature .ico { width: 48px; height: 48px; border-radius: var(--radius-md); background: var(--color-primary-soft); color: var(--color-primary); display: grid; place-items: center; margin-bottom: var(--space-4); }
.feature .ico svg { width: 26px; height: 26px; }
.feature.accent .ico { background: var(--signal-100); color: var(--signal-600); }
.feature h3 { font-size: var(--text-xl); }
.feature p { color: var(--color-text-muted); margin: 0; }
@media (max-width: 860px) { .features-grid { grid-template-columns: 1fr; } }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-8); counter-reset: step; }
.step { text-align: center; }
.step .num { width: 56px; height: 56px; border-radius: 50%; background: var(--gradient-intent); color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: var(--text-xl); margin: 0 auto var(--space-4); }
.step h3 { font-size: var(--text-lg); }
.step p { color: var(--color-text-muted); margin: 0; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; gap: var(--space-10); } }

/* ---------- Pricing ---------- */
.pricing-wrap { background: var(--color-surface); }
.pricing { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); align-items: stretch; }
.tier { background: #fff; border: 1px solid var(--color-border); border-radius: var(--radius-xl); padding: var(--space-8) var(--space-6); display: flex; flex-direction: column; box-shadow: var(--shadow-sm); }
.tier.featured { border: 2px solid var(--color-accent); box-shadow: var(--shadow-lg); position: relative; }
.tier .badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--color-primary); color: #fff; font-size: var(--text-xs); font-weight: var(--weight-bold); padding: 0.3em 0.9em; border-radius: var(--radius-full); }
.tier h3 { font-size: var(--text-xl); margin-bottom: var(--space-2); }
.tier .price { font-family: var(--font-display); font-weight: var(--weight-extra); font-size: var(--text-4xl); line-height: 1; margin: var(--space-3) 0; }
.tier .price small { font-size: var(--text-base); font-weight: var(--weight-medium); color: var(--color-text-muted); }
.tier .desc { color: var(--color-text-muted); min-height: 3em; }
.tier ul.feats { margin: var(--space-5) 0; display: grid; gap: var(--space-3); }
.tier ul.feats li { display: flex; gap: var(--space-3); align-items: flex-start; font-size: var(--text-sm); }
.tier ul.feats li svg { width: 18px; height: 18px; color: var(--success); flex: none; margin-top: 2px; }
.tier .btn { margin-top: auto; width: 100%; }
@media (max-width: 860px) { .pricing { grid-template-columns: 1fr; } }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin: 0 auto; }
.faq-item { border-bottom: 1px solid var(--color-border); }
.faq-q { width: 100%; text-align: left; background: none; border: none; cursor: pointer; padding: var(--space-5) 0; display: flex; align-items: center; justify-content: space-between; gap: var(--space-4); font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-lg); color: var(--color-text); }
.faq-q .chev { flex: none; width: 22px; height: 22px; transition: transform var(--transition); color: var(--color-primary); }
.faq-q[aria-expanded="true"] .chev { transform: rotate(180deg); }
.faq-a { overflow: hidden; max-height: 0; transition: max-height var(--transition); }
.faq-a .inner { padding: 0 0 var(--space-5); color: var(--color-text-muted); }
.faq-a p { margin: 0; }

/* ---------- Final CTA ---------- */
.cta-band { background: var(--gradient-ink); color: #fff; border-radius: var(--radius-xl); padding: var(--space-16); text-align: center; box-shadow: var(--shadow-lg); }
.cta-band h2 { color: #fff; font-size: var(--text-4xl); font-weight: var(--weight-extra); }
.cta-band p { color: rgba(255,255,255,0.9); font-size: var(--text-lg); max-width: 46ch; margin: 0 auto var(--space-8); }
.cta-actions { display: flex; gap: var(--space-3); justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.footer { padding: var(--space-16) 0 var(--space-10); background: var(--neutral-900); color: var(--neutral-300); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-8); margin-bottom: var(--space-12); }
.footer .brand .w1, .footer .brand .w2 { color: #fff; }
.footer .brand .w2 { color: var(--indigo-300); }
.footer h4 { color: #fff; font-size: var(--text-sm); text-transform: uppercase; letter-spacing: var(--tracking-wide); margin-bottom: var(--space-4); }
.footer a { color: var(--neutral-300); font-size: var(--text-sm); display: block; padding: var(--space-1) 0; }
.footer a:hover { color: #fff; }
.footer .blurb { color: var(--neutral-400); font-size: var(--text-sm); max-width: 34ch; margin-top: var(--space-4); }
.socials { display: flex; gap: var(--space-3); margin-top: var(--space-5); }
.socials a { width: 38px; height: 38px; border-radius: var(--radius-md); background: var(--neutral-800); display: grid; place-items: center; padding: 0; }
.socials a:hover { background: var(--indigo-700); }
.socials svg { width: 18px; height: 18px; color: #fff; }
.footer-bottom { border-top: 1px solid var(--neutral-800); padding-top: var(--space-6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--space-3); font-size: var(--text-sm); color: var(--neutral-400); }
@media (max-width: 860px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* ---------- Proof stats strip (social proof) ---------- */
.proof-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); max-width: 720px; margin: 0 auto; text-align: center; }
.proof-stats .num { font-family: var(--font-display); font-weight: var(--weight-bold); font-size: var(--text-4xl); color: var(--color-primary); line-height: 1; }
.proof-stats .lbl { font-size: var(--text-sm); color: var(--color-text-muted); margin-top: var(--space-2); }
@media (max-width: 560px) { .proof-stats { grid-template-columns: 1fr; gap: var(--space-4); } }

/* ---------- Homepage comparison table ---------- */
.home-cmp-wrap { overflow-x: auto; max-width: 820px; margin: var(--space-6) auto 0; }
.home-cmp { width: 100%; border-collapse: collapse; font-size: var(--text-base); min-width: 560px; }
.home-cmp th, .home-cmp td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--color-border); text-align: left; }
.home-cmp thead th { font-family: var(--font-display); font-size: var(--text-sm); color: var(--color-text-muted); text-align: center; }
.home-cmp thead th.rev { color: var(--color-primary); }
.home-cmp td:not(:first-child) { text-align: center; color: var(--color-text-muted); }
.home-cmp td.rev { background: var(--indigo-50); color: var(--color-primary); font-weight: var(--weight-bold); }
