/* ReclaimYourRev v2 styles. Mobile first. */

:root {
  /* Brand colors carried over from v1 */
  --dark: #131313;
  --dark-2: #201f1f;
  --dark-line: #353534;
  --darkest: #0e0e0e;
  --ink: #131313;
  --body: #3d3a45;
  --muted: #5f5a69;
  --line: #e6e1ef;
  --bg: #ffffff;
  --tint: #f7f4fc;
  --accent: #d0bcff;        /* lavender, for buttons and numbers on dark */
  --accent-2: #a078ff;      /* deeper violet, end of the button gradient */
  --accent-hover: #e9ddff;
  --accent-ink: #6d3bd7;    /* violet for icons and marks on light */
  --on-accent: #23005c;     /* text on lavender buttons */
  --bad: #f87171;
  --on-dark: #e5e2e1;
  --on-dark-muted: #cbc3d7;
  --radius: 8px;
  --header-h: 64px;
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: "Plus Jakarta Sans", "Inter", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
  -webkit-text-size-adjust: 100%;
}

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

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 {
  font-family: var(--font-head);
  text-wrap: balance;
  color: var(--ink);
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.6em;
  font-weight: 800;
}

h3 { font-size: 1.2rem; font-weight: 700; letter-spacing: -0.01em; }

p { margin: 0 0 1em; }

a { color: inherit; }

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

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  background: var(--accent);
  color: var(--on-accent);
  padding: 10px 16px;
  border-radius: var(--radius);
  font-weight: 700;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding-left: 20px;
  padding-right: 20px;
}
.narrow { max-width: 760px; }
.center { text-align: center; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 24px;
  border: 2px solid transparent;
  border-radius: var(--radius);
  font: inherit;
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-outline { border-color: var(--on-dark); color: var(--on-dark); background: transparent; }
.btn-outline:hover { background: var(--on-dark); color: var(--dark); }
.btn-sm { min-height: 42px; padding: 8px 18px; font-size: 0.95rem; }
.btn-lg { min-height: 56px; padding: 14px 28px; font-size: 1.0625rem; }

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--dark);
  border-bottom: 1px solid var(--dark-line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}
.logo {
  font-family: var(--font-head);
  font-weight: 800;
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  color: var(--on-dark);
  text-decoration: none;
  margin: 0;
}
.menu-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  color: var(--on-dark);
  cursor: pointer;
}
.menu-toggle .icon-close { display: none; }
.menu-toggle[aria-expanded="true"] .icon-open { display: none; }
.menu-toggle[aria-expanded="true"] .icon-close { display: block; }

.site-nav {
  display: none;
  position: absolute;
  top: var(--header-h);
  left: 0;
  right: 0;
  background: var(--dark);
  border-bottom: 1px solid var(--dark-line);
  padding: 8px 20px 20px;
}
.site-nav.is-open { display: block; }
.site-nav ul { list-style: none; margin: 0 0 12px; padding: 0; }
.site-nav li a {
  display: block;
  padding: 12px 0;
  color: var(--on-dark);
  text-decoration: none;
  font-weight: 500;
  border-bottom: 1px solid var(--dark-line);
}
.site-nav li a:hover { color: var(--accent); }
.site-nav .btn { width: 100%; }

/* Sections */
.section { padding: 72px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--dark); color: var(--on-dark-muted); }
.section-dark h1,
.section-dark h2 { color: var(--on-dark); }

.section-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  max-width: 22ch;
  margin-bottom: 40px;
}
.center .section-title,
.center h2 { margin-left: auto; margin-right: auto; }

.eyebrow {
  display: inline-block;
  font-size: 0.875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 20px;
}

.fine { font-size: 0.95rem; color: var(--muted); margin-top: 28px; }
.muted { color: var(--muted); }

/* Hero */
.hero { padding: 88px 0 96px; }
.hero h1 {
  font-size: clamp(2.4rem, 9vw, 4.25rem);
  max-width: 18ch;
  margin-bottom: 24px;
}
.lead {
  font-size: clamp(1.1rem, 2.6vw, 1.3rem);
  max-width: 38ch;
  margin-bottom: 36px;
  color: var(--on-dark-muted);
}

/* Problem cards */
.card-grid {
  display: grid;
  gap: 20px;
}
.card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.card p { margin: 0; }
.icon {
  width: 32px;
  height: 32px;
  fill: none;
  stroke: var(--accent-ink);
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
  flex-shrink: 0;
}

/* Sample report card */
.report {
  background: var(--dark);
  color: var(--on-dark-muted);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 12px 32px rgba(11, 20, 36, 0.18);
  max-width: 920px;
  margin: 0 auto 36px;
}
.report-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--dark-line);
}
.report-kicker { color: var(--on-dark); font-weight: 700; margin: 0; }
.report-period { font-size: 0.875rem; margin: 0; }
.report-tag {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  color: var(--on-dark-muted);
}
.report-grid { display: grid; gap: 12px; }
.report-panel {
  background: var(--dark-2);
  border-radius: var(--radius);
  padding: 20px;
}
.report-label {
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.report-big {
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 8px;
}
.accent { color: var(--accent); }
.report-sub { color: var(--on-dark); margin: 0; }

.stat-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.stat-num {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--on-dark);
  line-height: 1.1;
  margin: 0 0 4px;
}
.stat-warn { color: var(--accent); }
.stat-cap { font-size: 0.875rem; line-height: 1.4; margin: 0; }

.bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.bars li {
  display: grid;
  grid-template-columns: 6.5rem 1fr 3rem;
  align-items: center;
  gap: 12px;
  font-size: 0.9rem;
}
.bar-name { color: var(--on-dark); }
.bar-track {
  height: 14px;
  background: var(--dark-line);
  border-radius: var(--radius);
  overflow: hidden;
}
/* Bars are scaled so 50% fills the track */
.bar {
  display: block;
  height: 100%;
  width: calc(var(--v) * 2%);
  background: var(--accent);
  border-radius: var(--radius);
}
.bar-bad { background: var(--bad); }
.bar-val { text-align: right; font-weight: 700; color: var(--on-dark); }

/* Checklist */
.checklist { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.checklist li {
  position: relative;
  padding: 18px 20px 18px 56px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
}
.checklist li::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 50%;
  width: 22px;
  height: 22px;
  transform: translateY(-50%);
  background: no-repeat center / contain url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236d3bd7' stroke-width='2.25' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='9.5'/%3E%3Cpath d='M8 12.5l2.7 2.7L16 9.8'/%3E%3C/svg%3E");
}

/* Steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 20px; }
.step {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
}
.step p { margin: 0; }
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--accent);
  font-weight: 800;
  font-size: 1.2rem;
}

/* About */
.about { display: grid; gap: 32px; align-items: start; }
.about .section-title { margin-bottom: 24px; }
.headshot {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--line);
}

/* Data points */
.data-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.data-grid li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 500;
}
.data-grid .icon { margin: 0; }

/* Final CTA */
.final-cta { padding: 88px 0; }
.final-cta h2 {
  font-size: clamp(1.9rem, 6vw, 2.75rem);
  max-width: 20ch;
  margin-bottom: 32px;
}
.cta-note { margin: 20px 0 0; color: var(--on-dark-muted); }

/* Footer */
.site-footer {
  background: var(--darkest);
  border-top: 1px solid var(--dark-line);
  color: var(--on-dark-muted);
  padding: 48px 0;
  font-size: 0.95rem;
}
.footer-inner { display: grid; gap: 28px; }
.footer-tag { margin: 6px 0 0; }
.site-footer address { font-style: normal; line-height: 1.8; }
.site-footer a { color: var(--on-dark); text-decoration: underline; text-underline-offset: 3px; }
.site-footer a:hover { color: var(--accent); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 20px; align-items: baseline; }
.footer-legal p { margin: 0; width: 100%; }

/* Legal pages */
.legal-hero { padding: 64px 0 56px; }
.legal-hero h1 { font-size: clamp(2.2rem, 7vw, 3.25rem); margin-bottom: 12px; }
.legal-hero p { margin: 0; }
.legal { padding-top: 56px; padding-bottom: 80px; }
.legal section + section { margin-top: 44px; }
.legal h2 { font-size: 1.35rem; margin-bottom: 14px; }
.legal ul { padding-left: 1.25em; margin: 0 0 1em; }
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { color: var(--accent-ink); }
.contact-box {
  border: 1px solid var(--line);
  background: var(--tint);
  border-radius: var(--radius);
  padding: 20px 24px;
}
.contact-box p { margin: 0; }
.back-link { color: var(--on-dark); font-weight: 600; text-decoration: none; font-size: 0.95rem; }
.back-link:hover { color: var(--accent); }

/* Sample report page */
.report-page { background: var(--dark); color: var(--on-dark-muted); }
.report-page h1,
.report-page h2,
.report-page h3 { color: var(--on-dark); }
.report-page .header-inner { gap: 12px; }
.report-page .site-header .btn { padding: 8px 14px; font-size: 0.875rem; white-space: nowrap; }
.report-page .final-cta { border-top: 1px solid var(--dark-line); }

.bw { display: flex; flex-direction: column; gap: 48px; max-width: 1100px; padding-top: 40px; padding-bottom: 72px; }
.bw p { margin: 0; }
.bw-head { display: flex; flex-direction: column; gap: 8px; }
.bw-head h1 { font-size: clamp(2rem, 6vw, 3rem); margin: 0; }
.bw-eyebrow { font-size: 0.8rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: var(--accent); }
.bw-take { max-width: 60ch; color: var(--on-dark); }
.bw-sample {
  align-self: flex-start;
  margin-top: 4px !important;
  padding: 4px 10px;
  border: 1px dashed var(--dark-line);
  border-radius: var(--radius);
  font-size: 0.8rem;
}

.bw-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10.5rem), 1fr)); gap: 12px; }
.bw-kpi, .bw-card {
  background: var(--dark-2);
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  padding: 20px;
}
.bw-kpi { display: flex; flex-direction: column; gap: 6px; }
.bw-kpi-label, .bw-kpi-note { font-size: 0.85rem; }
.bw-kpi-val, .bw-leak-big, .bw-compare .num {
  font-family: var(--font-head);
  font-weight: 800;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  color: var(--on-dark);
}
.bw-kpi-val { font-size: clamp(1.6rem, 4vw, 2rem); }

.bw-section { display: flex; flex-direction: column; gap: 14px; }
.bw-section > h2 { font-size: clamp(1.35rem, 4vw, 1.75rem); margin: 0; }
.bw-sub { font-size: 0.9rem; margin-top: -6px !important; }
.bw-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 20rem), 1fr)); gap: 12px; }
.bw-card h3 { font-size: 1.1rem; margin: 0 0 4px; }
.bw-note { font-size: 0.875rem; margin-bottom: 14px !important; }
.bw-note b { color: var(--on-dark); }
.bw-leak { border-left: 4px solid var(--bad); }
.bw-leak-big { font-size: clamp(2rem, 6vw, 2.5rem); color: var(--bad); margin: 8px 0 6px !important; }
.bw-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--dark-line); }
.bw-compare div { display: flex; flex-direction: column; gap: 2px; }
.bw-compare .lbl { font-size: 0.8rem; }
.bw-compare .lbl:first-child { min-height: 2.6em; }
.bw-compare .num { font-size: 1.6rem; margin: 2px 0; }
.bw-compare .num.bad { color: var(--bad); }

/* Vertical bar chart */
.vbars {
  list-style: none;
  margin: 8px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  height: 240px;
  border-bottom: 1px solid var(--dark-line);
}
.vbars li { position: relative; display: flex; flex-direction: column; align-items: center; min-width: 0; outline-offset: 2px; }
.vb-val { font-size: 0.85rem; font-weight: 700; color: var(--on-dark); margin-bottom: 6px; }
.vb-col { flex: 1; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; }
.vb-bar { display: block; width: min(36px, 70%); height: calc(var(--h) * 1%); background: var(--accent); border-radius: var(--radius) var(--radius) 0 0; }
.vb-bad { background: var(--bad); }
.vb-name { position: absolute; top: 100%; margin-top: 8px; font-size: 0.75rem; text-align: center; line-height: 1.3; }
.vbars { margin-bottom: 44px; }
.vbars li::after {
  content: attr(data-tip);
  position: absolute;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  padding: 6px 10px;
  border: 1px solid var(--dark-line);
  border-radius: var(--radius);
  background: var(--darkest);
  color: var(--on-dark);
  font-size: 0.75rem;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
}
.vbars li:first-child::after { left: 0; transform: none; }
.vbars li:last-child::after { left: auto; right: 0; transform: none; }
.vbars li:hover::after, .vbars li:focus-visible::after { opacity: 1; }

/* Tables */
.bw-table-wrap { overflow-x: auto; padding: 8px 12px; }
.bw-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; font-variant-numeric: tabular-nums; }
.bw-table th {
  text-align: right;
  font-size: 0.78rem;
  font-weight: 600;
  padding: 8px;
  border-bottom: 1px solid var(--dark-line);
  white-space: nowrap;
}
.bw-table td { text-align: right; padding: 10px 8px; border-bottom: 1px solid var(--dark-line); white-space: nowrap; color: var(--on-dark); }
.bw-table tbody tr:last-child td { border-bottom: 0; }
.bw-table th:first-child, .bw-table td:first-child { text-align: left; }
.bw-table tr.bad td { color: var(--bad); }
.bw-table tr.good td:first-child { font-weight: 700; }
@media (max-width: 480px) {
  .bw-hide-sm { display: none; }
  .bw-table-wrap { padding: 4px 8px; }
  .bw-table { font-size: 0.8rem; }
  .bw-table th { font-size: 0.7rem; padding: 8px 4px; white-space: normal; vertical-align: bottom; }
  .bw-table td:first-child { white-space: normal; }
  .bw-table td { padding: 10px 4px; }
}

.bw-fix {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 28px 24px;
  background: var(--dark-2);
  border: 1px solid var(--accent-2);
  border-radius: var(--radius);
}
.bw-fix h2 { font-size: clamp(1.4rem, 4.5vw, 1.9rem); margin: 0; }
.bw-fix p { max-width: 65ch; line-height: 1.6; }
.bw-fix b { color: var(--on-dark); }
.bw-foot { font-size: 0.85rem; line-height: 1.6; }

/* Tablet and up */
@media (min-width: 640px) {
  .container { padding-left: 32px; padding-right: 32px; }
  .btn-row { flex-direction: row; flex-wrap: wrap; }
  .report { padding: 28px; }
  .report-grid { grid-template-columns: 1fr 1fr; }
  .report-wide { grid-column: 1 / -1; }
  .bars li { grid-template-columns: 8rem 1fr 3rem; }
  .data-grid { grid-template-columns: 1fr 1fr; }
  .about { grid-template-columns: 200px 1fr; gap: 48px; }
  .headshot { width: 200px; height: 200px; }
}

@media (min-width: 900px) {
  .menu-toggle { display: none; }
  .site-nav {
    display: flex;
    position: static;
    align-items: center;
    gap: 28px;
    padding: 0;
    border: 0;
    background: none;
  }
  .site-nav ul { display: flex; gap: 28px; margin: 0; }
  .site-nav li a { padding: 8px 0; border: 0; font-size: 0.95rem; }
  .site-nav .btn { width: auto; }

  .section { padding: 104px 0; }
  .hero { padding: 128px 0 136px; }
  .card-grid,
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .report { padding: 32px; }
  .report-grid { gap: 16px; }
  .report-panel { padding: 24px; }
  .footer-inner { grid-template-columns: 1.4fr 1fr 1fr; align-items: start; }
  .final-cta { padding: 120px 0; }
}
