/* ============================================================
   Revvlift Atlas — marketing site
   Brand tokens match dashboard/src/theme.css so the product and
   the site that sells it don't look like two different companies.
   ============================================================ */

:root {
  --forest:      #1a4732;
  --deep-teal:   #004c3f;
  --teal:        #3ec9a7;
  --teal-hover:  #35b795;
  --mint:        #67d4b4;
  --pale-mint:   #d6f0e8;

  --ink:         #12261d;
  --ink-2:       #46564e;
  --ink-3:       #6c7d74;
  --line:        #e2e8e4;
  --line-soft:   #eef2f0;
  --white:       #ffffff;
  --off:         #f7faf8;

  --star:        #E8A33D;

  --sp-1: 4px;  --sp-2: 8px;  --sp-3: 12px; --sp-4: 16px;
  --sp-5: 24px; --sp-6: 32px; --sp-7: 48px; --sp-8: 72px;

  --wrap: 1120px;
  --radius: 14px;
  --radius-sm: 9px;

  --shadow-sm: 0 1px 2px rgba(18, 38, 29, .05), 0 2px 8px rgba(18, 38, 29, .04);
  --shadow-lg: 0 2px 4px rgba(18, 38, 29, .04), 0 18px 48px rgba(18, 38, 29, .10);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--white);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: var(--deep-teal); text-underline-offset: 2px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-5); }
.narrow { max-width: 760px; }

h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(2.3rem, 5.2vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.16rem; font-weight: 700; letter-spacing: -0.01em; }
p  { margin: 0; }

.lede { font-size: 1.16rem; color: var(--ink-2); max-width: 62ch; }
.muted { color: var(--ink-3); }
.small { font-size: 0.92rem; }

.eyebrow {
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.13em;
  text-transform: uppercase; color: var(--deep-teal);
}

.stack   { display: flex; flex-direction: column; gap: var(--sp-5); }
.stack-s { display: flex; flex-direction: column; gap: var(--sp-3); }

section { padding: var(--sp-8) 0; }
.section-head { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 66ch; }

/* ---------- buttons ---------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  font: inherit; font-weight: 650; font-size: 1rem;
  padding: 13px 22px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.btn-primary { background: var(--forest); color: #fff; }
.btn-primary:hover { background: var(--deep-teal); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--forest); }
.btn-light { background: var(--teal); color: #06322614; color: #063326; }
.btn-light:hover { background: var(--mint); }
.btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }

/* ---------- header ---------- */

.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line-soft);
}
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-5); height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); }
.brand img { height: 24px; width: auto; }
.brand .sub {
  font-size: .95rem; font-weight: 700; color: var(--deep-teal);
  padding-left: 10px; margin-left: 2px; border-left: 1px solid var(--line);
}
.nav-links { display: flex; align-items: center; gap: var(--sp-5); }
/* :not(.btn) matters. `.nav-links a` is more specific than `.btn-primary`, so
   without it the nav link colour wins over the button's white text and the
   CTA renders dark-on-dark. */
.nav-links a:not(.btn) { color: var(--ink-2); text-decoration: none; font-size: .96rem; font-weight: 550; }
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links .btn { text-decoration: none; }
@media (max-width: 800px) { .nav-links .hide-sm { display: none; } }

/* ---------- hero ---------- */

.hero { padding: var(--sp-8) 0 var(--sp-7); }
.hero-grid {
  display: grid; gap: var(--sp-7);
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
}
@media (max-width: 940px) { .hero-grid { grid-template-columns: 1fr; } }
.hero h1 span { color: var(--deep-teal); }
.hero-points { display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); padding: 0; margin: 0; list-style: none; }
.hero-points li { display: flex; align-items: center; gap: 7px; font-size: .95rem; color: var(--ink-2); }
.tick { width: 17px; height: 17px; flex: none; border-radius: 50%; background: var(--pale-mint); display: grid; place-items: center; }
.tick::after { content: ""; width: 6px; height: 3px; border-left: 2px solid var(--deep-teal); border-bottom: 2px solid var(--deep-teal); transform: rotate(-45deg) translate(1px, -1px); }

/* ---------- generic cards ---------- */

.card {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); padding: var(--sp-5);
  display: flex; flex-direction: column; gap: var(--sp-3);
}
.grid { display: grid; gap: var(--sp-4); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); }

.band { background: var(--off); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.band-dark { background: var(--forest); color: #eaf5f0; }
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark .lede, .band-dark p { color: #c2d9ce; }
.band-dark .eyebrow { color: var(--mint); }

/* ---------- feature rows ---------- */

.feature {
  display: grid; gap: var(--sp-7); align-items: center;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr);
  padding: var(--sp-7) 0;
  border-top: 1px solid var(--line-soft);
}
.feature:first-of-type { border-top: none; }
.feature.flip .feature-visual { order: -1; }
@media (max-width: 940px) {
  .feature { grid-template-columns: 1fr; gap: var(--sp-5); }
  .feature.flip .feature-visual { order: 0; }
}
.feature-copy { display: flex; flex-direction: column; gap: var(--sp-3); }
.feature-copy ul { margin: var(--sp-2) 0 0; padding-left: 1.1em; color: var(--ink-2); }
.feature-copy li { margin-bottom: 6px; }

/* ---------- product mockups (built, not screenshotted) ---------- */

.mock {
  background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg);
  overflow: hidden; font-size: .84rem;
}
.mock-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 9px 13px; background: var(--off); border-bottom: 1px solid var(--line);
}
.dot { width: 9px; height: 9px; border-radius: 50%; background: #d7dedb; }
.mock-title { margin-left: 7px; font-size: .74rem; color: var(--ink-3); font-weight: 600; }
.mock-body { padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-4); }

.score-row { display: flex; align-items: center; gap: var(--sp-5); }
.ring {
  --pct: 74;
  width: 108px; height: 108px; flex: none; border-radius: 50%;
  background: conic-gradient(var(--teal) calc(var(--pct) * 1%), var(--line-soft) 0);
  display: grid; place-items: center;
}
.ring::after {
  content: ""; grid-area: 1/1; width: 82px; height: 82px; border-radius: 50%; background: #fff;
}
.ring b { grid-area: 1/1; z-index: 1; font-size: 1.85rem; font-weight: 800; letter-spacing: -.03em; }
.subscores { display: flex; flex-direction: column; gap: 9px; flex: 1; min-width: 0; }
.sub { display: grid; grid-template-columns: 1fr auto; gap: 3px 10px; font-size: .8rem; }
.sub span { color: var(--ink-2); }
.sub b { font-variant-numeric: tabular-nums; }
.meter { grid-column: 1 / -1; height: 5px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 99px; background: var(--teal); }

.review {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  padding: var(--sp-4); display: flex; flex-direction: column; gap: 9px;
}
.review-head { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); }
.who { display: flex; align-items: center; gap: 9px; }
.avatar {
  width: 30px; height: 30px; border-radius: 50%; flex: none;
  background: var(--pale-mint); color: var(--deep-teal);
  display: grid; place-items: center; font-size: .74rem; font-weight: 700;
}
.stars { color: var(--star); letter-spacing: 1px; font-size: .82rem; }
.tag {
  font-size: .68rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 99px; background: var(--pale-mint); color: var(--deep-teal);
}
.tag.warn { background: #FDF0DF; color: #8A5A0B; }
.draft {
  background: var(--off); border: 1px dashed var(--line);
  border-radius: var(--radius-sm); padding: var(--sp-3); color: var(--ink-2); font-size: .82rem;
}
.draft-label { font-size: .68rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--ink-3); display: block; margin-bottom: 5px; }
.mini-btns { display: flex; gap: 7px; }
.mini {
  font-size: .74rem; font-weight: 650; padding: 6px 11px;
  border-radius: 7px; border: 1px solid var(--line); background: #fff; color: var(--ink-2);
}
.mini.solid { background: var(--forest); border-color: var(--forest); color: #fff; }

.terms { display: flex; flex-direction: column; gap: 11px; }
.term { display: grid; grid-template-columns: minmax(0,1.3fr) minmax(60px,1fr) auto; gap: 12px; align-items: center; font-size: .82rem; }
.term span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.track { height: 6px; border-radius: 99px; background: var(--line-soft); overflow: hidden; }
.track i { display: block; height: 100%; border-radius: 99px; background: var(--teal); }
.term b { font-variant-numeric: tabular-nums; color: var(--ink-2); font-weight: 600; font-size: .78rem; }

.stat-row { display: flex; gap: var(--sp-5); flex-wrap: wrap; }
.stat { display: flex; flex-direction: column; gap: 1px; }
.stat b { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; }
.stat span { font-size: .76rem; color: var(--ink-3); }
.delta { font-size: .74rem; font-weight: 700; color: var(--deep-teal); }

/* ---------- steps ---------- */

.steps { counter-reset: s; display: grid; gap: var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.step-card { display: flex; flex-direction: column; gap: var(--sp-2); }
.step-card .n {
  counter-increment: s; width: 30px; height: 30px; border-radius: 50%;
  background: var(--pale-mint); color: var(--deep-teal);
  display: grid; place-items: center; font-weight: 800; font-size: .86rem;
}
.step-card .n::before { content: counter(s); }

/* ---------- data / trust ---------- */

.trust-grid { display: grid; gap: var(--sp-4); grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.trust {
  border: 1px solid rgba(255,255,255,.16); border-radius: var(--radius);
  padding: var(--sp-5); display: flex; flex-direction: column; gap: var(--sp-2);
  background: rgba(255,255,255,.04);
}
.trust h3 { font-size: 1rem; }

/* ---------- faq ---------- */

.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; padding: var(--sp-4) 0; font-weight: 650; font-size: 1.03rem;
  list-style: none; display: flex; justify-content: space-between; gap: var(--sp-4); align-items: center;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 500; font-size: 1.35rem; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq summary:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }
.faq .answer { padding: 0 0 var(--sp-4); color: var(--ink-2); max-width: 68ch; }

/* ---------- cta ---------- */

.cta-box {
  background: var(--forest); color: #fff; border-radius: var(--radius);
  padding: var(--sp-8) var(--sp-6); text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: var(--sp-4);
}
.cta-box h2 { color: #fff; }
.cta-box p { color: #c2d9ce; max-width: 52ch; }

/* ---------- footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding: var(--sp-7) 0 var(--sp-8); margin-top: var(--sp-7); }
.footer-grid { display: flex; flex-wrap: wrap; gap: var(--sp-6); justify-content: space-between; }
.footer-brand { display: flex; flex-direction: column; gap: var(--sp-3); max-width: 34ch; }
/* align-self stops the stretch. In a column flex container the cross axis is
   the width, and `align-items: stretch` is the default — so an image with
   `width: auto` is pulled to the full container width while its explicit
   height stays put, which distorts it. */
.footer-brand img { height: 22px; width: auto; align-self: flex-start; }
.footer-links { display: flex; gap: var(--sp-7); flex-wrap: wrap; }
.footer-col { display: flex; flex-direction: column; gap: var(--sp-2); }
.footer-col b { font-size: .78rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); font-weight: 700; }
.footer-col a { color: var(--ink-2); text-decoration: none; font-size: .95rem; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.legal-line { margin-top: var(--sp-6); padding-top: var(--sp-4); border-top: 1px solid var(--line-soft); font-size: .87rem; color: var(--ink-3); display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5); justify-content: space-between; }

/* ---------- legal pages ---------- */

.legal-page { padding: var(--sp-8) 0; }
.legal-page .doc { max-width: 72ch; display: flex; flex-direction: column; gap: var(--sp-5); }
.legal-page h2 { font-size: 1.35rem; margin-top: var(--sp-5); }
.legal-page h3 { font-size: 1.02rem; margin-top: var(--sp-3); }
.legal-page p, .legal-page li { color: var(--ink-2); }
.legal-page ul { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.legal-page .updated { font-size: .9rem; color: var(--ink-3); }
.legal-page .callout {
  background: var(--pale-mint); border-radius: var(--radius);
  padding: var(--sp-5); color: var(--deep-teal);
  display: flex; flex-direction: column; gap: var(--sp-2);
}
.legal-page .callout p { color: var(--deep-teal); }
.toc { background: var(--off); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4) var(--sp-5); }
.toc ol { margin: var(--sp-2) 0 0; padding-left: 1.3em; columns: 2; column-gap: var(--sp-6); }
.toc a { color: var(--ink-2); text-decoration: none; font-size: .93rem; }
.toc a:hover { text-decoration: underline; color: var(--ink); }
@media (max-width: 620px) { .toc ol { columns: 1; } }

.fill { background: #FDF0DF; color: #8A5A0B; padding: 1px 6px; border-radius: 4px; font-weight: 700; font-size: .85em; }
