/* ═══════════════════════════════════════════════════════════
   Metrya — shared styles for /compare/ pages
   Mirrors the design tokens used on the main landing page.
   ═══════════════════════════════════════════════════════════ */

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

:root {
  --bg:          #EAF2EB;
  --bg-deep:     #DBE8DD;
  --surface:     #FFFFFF;
  --surface-alt: #F4F9F3;
  --ink:         #0D1912;
  --green:       #1E6B3F;
  --green-deep:  #0C3A22;
  --green-pale:  #E3F0E6;
  --lime:        #DAF85A;
  --lime-soft:   #EEFFB4;
  --dark:        #0C1710;
  --dark-2:      #12241A;
  --secondary:   #3A4C40;
  --tertiary:    #6B7D71;
  --sep:         rgba(13,25,18,0.08);
  --sep-strong:  rgba(13,25,18,0.14);
  --purple:      #8B5CF6;
  --orange:      #F59E0B;
  --blue:        #5B8DEF;
  --active:      #22C55E;
  --red:         #E5484D;
  --r-sm: 14px; --r: 20px; --r-lg: 28px; --r-xl: 36px;
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, sans-serif;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif;
  --shadow-sm: 0 1px 2px rgba(13,25,18,.04), 0 4px 16px rgba(13,25,18,.05);
  --shadow: 0 4px 12px rgba(13,25,18,.06), 0 24px 48px rgba(13,25,18,.08);
  --shadow-lg: 0 8px 24px rgba(13,25,18,.10), 0 40px 80px rgba(13,25,18,.16);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, .display { font-family: var(--display); font-weight: 700; }

.container { max-width: 1180px; margin: 0 auto; padding: 0 26px; }
.container.narrow { max-width: 860px; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-deep);
  background: rgba(218,248,90,0.42);
  border: 1px solid rgba(12,58,34,0.10);
  border-radius: 999px; padding: 6px 13px;
}
.eyebrow.dark { color: var(--lime); background: rgba(218,248,90,0.10); border-color: rgba(218,248,90,0.22); }

/* ── Scroll reveal ──────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s cubic-bezier(.22,.61,.36,1), transform .7s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .07s; } .reveal.d2 { transition-delay: .14s; }
.reveal.d3 { transition-delay: .21s; } .reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1 !important; transform: none !important; } }

/* ── Nav ────────────────────────────────────────────────── */
.site-header { position: sticky; top: 0; z-index: 100; }
.site-header nav {
  background: rgba(244,249,243,0.72);
  backdrop-filter: saturate(180%) blur(16px);
  -webkit-backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--sep);
}
.site-header nav .container { display: flex; align-items: center; height: 68px; gap: 12px; }
.nav-logo { width: 32px; height: 32px; border-radius: 9px; box-shadow: 0 6px 16px rgba(12,58,34,0.18); }
.nav-name { font-family: var(--display); font-size: 19px; font-weight: 800; letter-spacing: -.02em; color: var(--green-deep); }
.nav-links { display: flex; align-items: center; gap: 24px; margin-left: 28px; }
.nav-links a { font-size: 14px; font-weight: 600; color: var(--secondary); transition: color .15s; }
.nav-links a:hover { color: var(--green); }
.nav-links a.current { color: var(--green-deep); font-weight: 700; }
.nav-cta {
  margin-left: auto; display: inline-flex; align-items: center; gap: 7px;
  background: var(--green-deep); color: var(--lime);
  font-size: 14px; font-weight: 700; padding: 10px 20px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s; box-shadow: 0 6px 18px rgba(12,58,34,.22);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 24px rgba(12,58,34,.28); }
@media (max-width: 940px) { .nav-links { display: none; } }

/* ── Buttons ────────────────────────────────────────────── */
.btn-primary {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--green-deep); color: var(--lime);
  font-size: 15.5px; font-weight: 700; padding: 15px 26px; border-radius: 999px;
  transition: transform .15s, box-shadow .15s; box-shadow: 0 10px 26px rgba(12,58,34,.24);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(12,58,34,.30); }
.btn-ghost {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.55); color: var(--green-deep);
  font-size: 15.5px; font-weight: 600; padding: 15px 24px;
  border: 1.5px solid var(--sep-strong); border-radius: 999px; transition: border-color .15s, background .15s;
}
.btn-ghost:hover { border-color: var(--green); background: rgba(255,255,255,0.8); }

/* ── Page hero ──────────────────────────────────────────── */
.page-hero {
  position: relative; overflow: hidden;
  padding: 72px 0 64px;
  background:
    radial-gradient(1100px 620px at 82% -6%, rgba(218,248,90,0.34), transparent 60%),
    radial-gradient(900px 640px at 8% 106%, rgba(91,141,239,0.12), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, #F4FAF3 60%, var(--surface) 100%);
  border-bottom: 1px solid var(--sep);
}
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--tertiary); margin-bottom: 20px; }
.breadcrumb a { color: var(--green); }
.breadcrumb a:hover { text-decoration: underline; }
.breadcrumb .sepx { color: var(--sep-strong); }
h1.page-title {
  font-size: clamp(34px, 4.8vw, 58px); font-weight: 800; letter-spacing: -.035em;
  line-height: 1.04; color: var(--ink); margin: 18px 0 20px; max-width: 16ch;
}
h1.page-title em { font-style: normal; color: var(--green); position: relative; }
h1.page-title em::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: .04em; height: .14em;
  background: var(--lime); border-radius: 4px; z-index: -1; opacity: .85;
}
.page-sub { font-size: clamp(16px, 1.5vw, 19px); color: var(--secondary); max-width: 620px; line-height: 1.55; }
.page-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

/* ── Section base ───────────────────────────────────────── */
.section { padding: 84px 0; }
.section-alt { background: var(--surface); }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
h2.title { font-size: clamp(28px, 3.8vw, 42px); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; margin: 16px 0 16px; }
.section-intro { font-size: 17.5px; color: var(--secondary); line-height: 1.55; }

/* ── Comparison table ───────────────────────────────────── */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--sep);
  border-radius: var(--r-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
table.compare { width: 100%; min-width: 720px; border-collapse: collapse; font-size: 14px; }
table.compare thead th {
  position: sticky; top: 0; z-index: 2;
  background: var(--surface-alt);
  text-align: center; padding: 18px 14px;
  font-family: var(--display); font-size: 14.5px; font-weight: 700; letter-spacing: -.01em;
  border-bottom: 1px solid var(--sep-strong);
  white-space: nowrap;
}
table.compare thead th:first-child { text-align: left; min-width: 210px; }
table.compare thead th.us {
  background: var(--green-deep); color: #fff;
  border-bottom-color: var(--green-deep);
}
table.compare thead th.us small { display: block; font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lime); margin-top: 3px; }
table.compare tbody td { padding: 15px 14px; text-align: center; border-bottom: 1px solid var(--sep); color: var(--secondary); vertical-align: middle; }
table.compare tbody tr:last-child td { border-bottom: 0; }
table.compare tbody td.feat { text-align: left; font-weight: 700; color: var(--ink); font-size: 14px; }
table.compare tbody td.feat small { display: block; font-weight: 500; font-size: 12px; color: var(--tertiary); margin-top: 2px; line-height: 1.4; }
table.compare tbody td.us { background: rgba(218,248,90,0.13); color: var(--green-deep); font-weight: 700; border-left: 1px solid rgba(12,58,34,0.07); border-right: 1px solid rgba(12,58,34,0.07); }
table.compare tbody tr:hover td { background: rgba(13,25,18,0.015); }
table.compare tbody tr:hover td.us { background: rgba(218,248,90,0.2); }

.mark { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; }
.mark.yes { background: rgba(34,197,94,0.14); color: #15803D; }
.mark.no { background: rgba(229,72,77,0.10); color: var(--red); }
.mark.part { background: rgba(245,158,11,0.14); color: #B45309; }
.mark svg { width: 12px; height: 12px; }

.table-note { font-size: 12.5px; color: var(--tertiary); line-height: 1.6; margin-top: 18px; max-width: 780px; }
.table-note strong { color: var(--secondary); }

/* ── Competitor cards ───────────────────────────────────── */
.vs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.vs-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--sep); border-radius: var(--r-lg);
  padding: 26px; box-shadow: var(--shadow-sm);
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.vs-card:hover { transform: translateY(-3px); border-color: var(--sep-strong); box-shadow: var(--shadow); }
.vs-kicker { color: var(--green); font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 12px; }
.vs-card h3 { font-family: var(--display); font-size: 19px; line-height: 1.2; letter-spacing: -.02em; margin-bottom: 10px; }
.vs-card p { color: var(--secondary); font-size: 13.5px; line-height: 1.55; margin-bottom: 18px; }
.vs-price { display: inline-flex; align-items: baseline; gap: 7px; margin-bottom: 14px; }
.vs-price .them { font-family: var(--display); font-size: 22px; font-weight: 800; letter-spacing: -.02em; color: var(--ink); }
.vs-price .unit { font-size: 12.5px; font-weight: 600; color: var(--tertiary); }
.vs-arrow { margin-top: auto; color: var(--green-deep); font-size: 13.5px; font-weight: 800; }
.vs-card.muted { background: var(--surface-alt); box-shadow: none; }
.vs-card.muted:hover { transform: none; box-shadow: none; }

/* ── Differentiator bento ───────────────────────────────── */
.diff-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.diff-card {
  background: #fff; border: 1px solid var(--sep); border-radius: var(--r-lg); padding: 26px;
  box-shadow: var(--shadow-sm); transition: transform .22s, box-shadow .22s, border-color .22s;
}
.diff-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sep-strong); }
.diff-card.dark { background: linear-gradient(160deg, var(--dark-2), var(--dark)); color: #fff; border-color: rgba(255,255,255,0.08); }
.diff-icon { width: 46px; height: 46px; border-radius: 13px; background: var(--surface-alt); border: 1px solid var(--sep); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.diff-card.dark .diff-icon { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.12); }
.diff-icon svg { width: 23px; height: 23px; }
.diff-title { font-family: var(--display); font-size: 18px; font-weight: 700; letter-spacing: -.02em; margin-bottom: 7px; }
.diff-desc { font-size: 13.5px; color: var(--secondary); line-height: 1.55; }
.diff-card.dark .diff-desc { color: rgba(255,255,255,0.66); }
.diff-desc a { color: var(--green-deep); font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.diff-card.dark .diff-desc a { color: var(--lime); }

/* ── Cost callout ───────────────────────────────────────── */
.cost-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.cost-cell { background: #fff; border: 1px solid var(--sep); border-radius: var(--r-lg); padding: 24px; text-align: center; box-shadow: var(--shadow-sm); }
.cost-cell.us { background: linear-gradient(165deg, var(--dark-2), var(--dark)); border-color: rgba(255,255,255,0.1); box-shadow: var(--shadow-lg); }
.cost-name { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--tertiary); margin-bottom: 10px; }
.cost-cell.us .cost-name { color: var(--lime); }
.cost-amt { font-family: var(--display); font-size: 34px; font-weight: 800; letter-spacing: -.03em; line-height: 1; }
.cost-cell.us .cost-amt { color: #fff; }
.cost-sub { font-size: 12.5px; color: var(--tertiary); margin-top: 8px; line-height: 1.45; }
.cost-cell.us .cost-sub { color: rgba(255,255,255,0.6); }
.cost-5yr { font-size: 12px; font-weight: 700; color: var(--red); margin-top: 10px; }
.cost-cell.us .cost-5yr { color: var(--lime); }

/* ── Verdict / prose ────────────────────────────────────── */
.prose { max-width: 760px; }
.prose h2 { font-size: clamp(26px, 3.4vw, 36px); letter-spacing: -.03em; line-height: 1.12; margin: 48px 0 16px; }
.prose h3 { font-family: var(--display); font-size: 20px; letter-spacing: -.02em; margin: 32px 0 10px; }
.prose p { font-size: 16px; color: var(--secondary); line-height: 1.7; margin-bottom: 16px; }
.prose ul { list-style: none; display: grid; gap: 11px; margin: 0 0 20px; }
.prose ul li { display: flex; gap: 11px; align-items: flex-start; font-size: 15px; color: var(--secondary); line-height: 1.55; }
.prose ul li .check { width: 20px; height: 20px; border-radius: 50%; background: rgba(34,197,94,0.12); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.prose a { color: var(--green); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.prose strong { color: var(--ink); }

.callout {
  display: flex; gap: 15px; background: var(--surface-alt);
  border: 1px solid var(--sep); border-left: 3px solid var(--green);
  border-radius: var(--r); padding: 20px 22px; margin: 26px 0;
}
.callout-icon { width: 40px; height: 40px; border-radius: 11px; background: rgba(30,107,63,0.10); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.callout-text strong { display: block; font-size: 15px; font-weight: 700; margin-bottom: 4px; color: var(--ink); }
.callout-text span { font-size: 14px; color: var(--secondary); line-height: 1.6; }

.fair {
  background: var(--surface-alt); border: 1px dashed var(--sep-strong);
  border-radius: var(--r-lg); padding: 26px 28px; margin: 32px 0;
}
.fair h3 { font-family: var(--display); font-size: 17px; letter-spacing: -.02em; margin-bottom: 10px; }
.fair p { font-size: 14.5px; color: var(--secondary); line-height: 1.65; margin: 0; }
.fair ul { list-style: none; display: grid; gap: 9px; margin-top: 12px; }
.fair ul li { display: flex; gap: 10px; font-size: 14px; color: var(--secondary); line-height: 1.55; }
.fair ul li::before { content: '→'; color: var(--tertiary); flex-shrink: 0; }

/* ── FAQ ────────────────────────────────────────────────── */
.faq-list { max-width: 760px; display: grid; gap: 10px; }
.faq-list details { background: #fff; border: 1px solid var(--sep); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm); transition: border-color .15s; }
.faq-list details[open] { border-color: var(--sep-strong); }
.faq-list summary { list-style: none; cursor: pointer; padding: 18px 22px; font-size: 15.5px; font-weight: 700; display: flex; justify-content: space-between; align-items: center; gap: 14px; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--green); transition: transform .2s; flex-shrink: 0; }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-body { padding: 0 22px 20px; font-size: 14px; color: var(--secondary); line-height: 1.6; }
.faq-body a { color: var(--green); font-weight: 600; text-decoration: underline; }

/* ── CTA ────────────────────────────────────────────────── */
.cta-section { padding: 90px 0; }
.cta-inner { position: relative; overflow: hidden; background: linear-gradient(150deg, var(--dark-2), var(--dark)); border-radius: var(--r-xl); padding: 64px 40px; text-align: center; box-shadow: var(--shadow-lg); }
.cta-inner::before { content: ''; position: absolute; inset: 0; background: radial-gradient(600px 300px at 80% 0%, rgba(218,248,90,0.2), transparent 60%), radial-gradient(500px 300px at 10% 100%, rgba(91,141,239,0.14), transparent 60%); pointer-events: none; }
.cta-inner h2 { position: relative; font-size: clamp(28px,4.2vw,44px); font-weight: 800; letter-spacing: -.035em; color: #fff; margin-bottom: 16px; line-height: 1.08; }
.cta-inner h2 em { font-style: normal; color: var(--lime); }
.cta-inner p { position: relative; font-size: 17.5px; color: rgba(255,255,255,0.72); max-width: 540px; margin: 0 auto 32px; }
.cta-inner .btn-primary { position: relative; background: var(--lime); color: var(--green-deep); font-size: 16px; padding: 16px 32px; }

/* ── Footer ─────────────────────────────────────────────── */
footer { background: var(--dark); color: rgba(255,255,255,0.6); padding: 56px 0 40px; }
.footer-top { display: flex; flex-wrap: wrap; gap: 32px 60px; justify-content: space-between; margin-bottom: 40px; }
.footer-brand { max-width: 300px; }
.footer-brand .fb-name { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .fb-name img { width: 30px; height: 30px; border-radius: 8px; }
.footer-brand .fb-name span { font-family: var(--display); font-size: 18px; font-weight: 800; color: #fff; }
.footer-brand p { font-size: 13.5px; line-height: 1.6; }
.footer-social { display: flex; gap: 12px; margin-top: 16px; }
.footer-social a { display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border-radius: 8px; background: rgba(255,255,255,0.08); color: rgba(255,255,255,0.72); transition: color .15s, background .15s; }
.footer-social a:hover { background: rgba(255,255,255,0.14); color: var(--lime); }
.footer-cols { display: flex; flex-wrap: wrap; gap: 44px; }
.footer-col h4 { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,0.4); margin-bottom: 14px; }
.footer-col a { display: block; font-size: 14px; color: rgba(255,255,255,0.72); margin-bottom: 10px; transition: color .15s; }
.footer-col a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; font-size: 13px; }

@media (max-width: 640px) {
  .section { padding: 62px 0; }
  .page-hero { padding: 48px 0 56px; }
  .cta-inner { padding: 48px 24px; }
  .cost-amt { font-size: 30px; }
}
