/* ============================================================
   CompVault — landing page styles
   Palette: navy #1B2A4A (primary), teal #2A9D8F (accent)
   ============================================================ */

:root {
  --navy: #1b2a4a;
  --navy-deep: #14203a;
  --teal: #2a9d8f;
  --teal-dark: #248377;
  --ink: #1f2a3d;
  --muted: #5a6577;
  --line: #e5e9f0;
  --bg: #ffffff;
  --bg-alt: #f5f7fb;
  --white: #ffffff;
  --shadow-sm: 0 1px 3px rgba(27, 42, 74, 0.08);
  --shadow-md: 0 10px 30px rgba(27, 42, 74, 0.10);
  --shadow-lg: 0 20px 45px rgba(27, 42, 74, 0.16);
  --radius: 14px;
  --maxw: 1080px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0;
}

/* ---------- Wordmark ---------- */
.wordmark {
  font-weight: 800;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
  color: var(--navy);
}
.wordmark-accent {
  color: var(--teal);
}
.wordmark-light {
  color: var(--white);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border-radius: 999px;
  padding: 12px 26px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease,
    background-color 0.15s ease, color 0.15s ease;
  border: 2px solid transparent;
  text-align: center;
}
.btn-accent {
  background: var(--teal);
  color: var(--white);
  box-shadow: 0 6px 16px rgba(42, 157, 143, 0.30);
}
.btn-accent:hover {
  background: var(--teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(42, 157, 143, 0.38);
}
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--line);
}
.btn-outline:hover {
  border-color: var(--teal);
  color: var(--teal-dark);
  transform: translateY(-2px);
}
.btn-lg {
  font-size: 1.1rem;
  padding: 16px 36px;
}
.btn-sm {
  font-size: 0.9rem;
  padding: 9px 18px;
}
.btn-block {
  display: block;
  width: 100%;
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.brand-tagline {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}

/* ---------- Hero ---------- */
.hero {
  background: linear-gradient(180deg, #f5f7fb 0%, #ffffff 100%);
  border-bottom: 1px solid var(--line);
}
.hero-inner {
  padding: 88px 24px 96px;
  text-align: center;
  max-width: 820px;
}
.hero-badge {
  display: inline-block;
  background: rgba(42, 157, 143, 0.12);
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 8px 18px;
  border-radius: 999px;
  border: 1px solid rgba(42, 157, 143, 0.3);
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  font-weight: 800;
  color: var(--navy);
}
.hero-note {
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 500;
  margin: 16px 0 0;
}
.hero-sub {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--muted);
  margin: 22px auto 34px;
  max-width: 640px;
}
.hero-sub strong {
  color: var(--navy);
  font-weight: 700;
}

/* ---------- Sections ---------- */
.section {
  padding: 76px 0;
}
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-title {
  font-size: clamp(1.7rem, 3.5vw, 2.3rem);
  font-weight: 800;
  color: var(--navy);
  text-align: center;
}
.section-lead {
  text-align: center;
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 620px;
  margin: 16px auto 40px;
}

/* ---------- Categories ---------- */
.cats {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.cat {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 22px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.cat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.cat-icon {
  width: 78px;
  height: 78px;
  margin: 0 auto 18px;
  background: var(--bg-alt);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.cat-icon svg {
  width: 46px;
  height: 46px;
  display: block;
}
.cat-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}
.cat-text {
  color: var(--muted);
  font-size: 0.92rem;
  margin: 0;
}

/* Icon fills / strokes */
.ic-navy {
  fill: var(--navy);
}
.ic-teal {
  fill: var(--teal);
}
.ic-white {
  fill: #ffffff;
}
.ic-num {
  fill: #ffffff;
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 20px;
}
.ic-stroke-white {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2.5;
  stroke-linecap: round;
}
.ic-stroke-white-thin {
  fill: none;
  stroke: #ffffff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- How it works ---------- */
.steps {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow-sm);
}
.step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.step-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}
.step-text {
  color: var(--muted);
  margin: 0;
}

/* ---------- Proof / sample report ---------- */
.report {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.report-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
  background: rgba(255, 255, 255, 0.16);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}

/* Report header band */
.report-head {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
  padding: 26px 32px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.report-head-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.report-head-kicker {
  color: #b9c2d4;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.report-head-tag {
  color: var(--teal);
  font-size: 0.9rem;
  font-weight: 600;
  font-style: italic;
}

/* Meta grid */
.report-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.report-meta-item {
  background: var(--bg-alt);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.report-meta-label {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.report-meta-value {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

/* Key stats */
.report-stats {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border-bottom: 1px solid var(--line);
}
.stat {
  background: var(--white);
  padding: 20px;
  text-align: center;
}
.stat-lead {
  background: rgba(42, 157, 143, 0.07);
}
.stat-label {
  display: block;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.stat-value {
  display: block;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.stat-lead .stat-value {
  color: var(--teal-dark);
}

/* Report body */
.report-body {
  padding: 28px 32px 4px;
}
.report-block {
  margin-bottom: 28px;
}
.report-block-title {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-dark);
  margin: 0 0 14px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line);
}
.report-note,
.report-read {
  color: var(--muted);
  font-size: 0.95rem;
  margin: 14px 0 0;
}
.report-read {
  margin-top: 0;
}

/* Price trend chart */
.chart {
  position: relative;
  height: 150px;
  padding-top: 8px;
}
.chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 2%;
  height: 100%;
}
.bar {
  flex: 1;
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-dark) 100%);
  border-radius: 4px 4px 0 0;
  min-height: 4px;
  transition: opacity 0.15s ease;
}
.bar:hover {
  opacity: 0.75;
}
.chart-median {
  position: absolute;
  left: 0;
  right: 0;
  border-top: 2px dashed rgba(27, 42, 74, 0.35);
  pointer-events: none;
}
.chart-median span {
  position: absolute;
  right: 0;
  top: -20px;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--white);
  padding: 0 4px;
}

/* Comps table */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
}
.comps-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 520px;
}
.comps-table th {
  background: var(--bg-alt);
  color: var(--navy);
  font-weight: 700;
  text-align: left;
  padding: 11px 14px;
  white-space: nowrap;
  border-bottom: 1px solid var(--line);
}
.comps-table td {
  padding: 10px 14px;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}
.comps-table tbody tr:last-child td {
  border-bottom: none;
}
.comps-table tbody tr:nth-child(even) {
  background: #fafbfd;
}
.comps-table .num {
  text-align: right;
  font-weight: 700;
  color: var(--navy);
  white-space: nowrap;
}

/* Report footer */
.report-foot {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 16px 32px;
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Pricing ---------- */
.pricing {
  margin-top: 48px;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.price-card {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 30px;
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.price-card-featured {
  border-color: var(--teal);
  border-width: 2px;
}
.price-badge {
  position: absolute;
  top: -13px;
  left: 30px;
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 5px 12px;
  border-radius: 999px;
}
.price-name {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}
.price-badge-free {
  background: var(--navy);
}
.price-amount {
  font-size: 2.6rem;
  font-weight: 800;
  color: var(--navy);
  margin: 10px 0 4px;
  letter-spacing: -0.03em;
}
.price-unit {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0;
  margin-left: 6px;
}
.price-free-line {
  color: var(--teal-dark);
  font-weight: 700;
  font-size: 0.9rem;
  margin: 0;
}
.price-desc {
  color: var(--muted);
  margin: 12px 0 28px;
  flex-grow: 1;
}
.pricing-note {
  text-align: center;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 26px;
}

/* ---------- Final CTA ---------- */
.cta {
  background: var(--navy);
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-deep) 100%);
}
.cta-inner {
  text-align: center;
  padding: 72px 24px;
}
.cta-title {
  color: var(--white);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  font-weight: 800;
  margin-bottom: 30px;
}
.cta-note {
  color: #b9c2d4;
  font-size: 0.9rem;
  font-weight: 500;
  margin: 18px 0 0;
}

/* ---------- Footer ---------- */
.site-footer {
  background: var(--navy-deep);
  color: #b9c2d4;
  padding: 44px 0 32px;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-bottom: 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.10);
}
.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.footer-email {
  color: var(--teal);
  text-decoration: none;
  font-weight: 500;
}
.footer-email:hover {
  text-decoration: underline;
}
.footer-social {
  display: flex;
  gap: 22px;
  flex-wrap: wrap;
}
.footer-link {
  color: #b9c2d4;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.footer-link:hover {
  color: var(--white);
}
.footer-fineprint {
  padding-top: 22px;
  font-size: 0.85rem;
  color: #8592aa;
  max-width: 720px;
}

/* ---------- Responsive ---------- */
@media (max-width: 760px) {
  .steps {
    grid-template-columns: 1fr;
  }
  .pricing {
    grid-template-columns: 1fr;
  }
  .header-cta {
    display: none;
  }
  .hero-inner {
    padding: 60px 24px 68px;
  }
  .section {
    padding: 56px 0;
  }
  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Categories reflow */
  .cats {
    grid-template-columns: 1fr 1fr;
  }

  /* Report reflow */
  .report-meta {
    grid-template-columns: 1fr 1fr;
  }
  .report-stats {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .stat-lead {
    grid-column: 1 / -1;
  }
  .report-head,
  .report-body,
  .report-foot {
    padding-left: 20px;
    padding-right: 20px;
  }
  .stat-value {
    font-size: 1.3rem;
  }
}
