:root {
  --accent: #355C7D;
  --analytical: #4F7C78;
  --text: #1c1c1e;
  --muted: #5a5a60;
  --bg: #ffffff;
  --line: #e3e3e8;
  --panel: #f5f6f8;
  --surface: #ffffff;
  --surface-soft: #f6f8fa;
  --hero-glow: rgba(53, 92, 125, 0.16);
  --teal-glow: rgba(79, 124, 120, 0.12);
  --shadow: 0 24px 70px rgba(20, 29, 38, 0.12);
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #8FB3D1;
    --analytical: #8AB6B1;
    --text: #f2f2f7;
    --muted: #a8a8b0;
    --bg: #121214;
    --line: #2c2c30;
    --panel: #1c1c1f;
    --surface: #1b1b1f;
    --surface-soft: #17171a;
    --hero-glow: rgba(143, 179, 209, 0.15);
    --teal-glow: rgba(138, 182, 177, 0.12);
    --shadow: 0 28px 80px rgba(0,0,0,0.35);
  }
}

* { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

.anchor-offset {
  display: block;
  position: relative;
  top: -88px;
  height: 0;
  visibility: hidden;
  pointer-events: none;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.6 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}
a { color: var(--accent); }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

header.site { border-bottom: 1px solid var(--line); }
header.site .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 20px;
  padding-top: 18px;
  padding-bottom: 14px;
}
.brand {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 0.01em;
  color: var(--text);
  text-decoration: none;
}
nav a { margin-right: 14px; font-size: 15px; text-decoration: none; }
nav a:last-child { margin-right: 0; }

main { padding: 28px 0 40px; }
h1 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; }
h2 { font-size: 21px; margin: 32px 0 8px; }
h3 { font-size: 17px; margin: 22px 0 6px; }

/* Shared legal/support page rules retained from the current site stylesheet. */
.updated { color: var(--muted); font-size: 15px; margin: 0 0 22px; }

.note {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  margin: 18px 0;
}

.note p:first-child { margin-top: 0; }
.note p:last-child { margin-bottom: 0; }

ul { padding-left: 22px; }
li { margin: 4px 0; }

table { width: 100%; border-collapse: collapse; margin: 12px 0; font-size: 15px; }
th, td { text-align: left; vertical-align: top; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { font-weight: 600; }
footer.site {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}
footer.site .wrap { padding-top: 16px; padding-bottom: 28px; }
footer.site a { margin-right: 12px; }

.home-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: color-mix(in srgb, var(--bg) 90%, transparent);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.home-header .home-nav {
  max-width: 1160px;
  align-items: center;
  padding-top: 12px;
  padding-bottom: 12px;
}
.brand-with-mark { display: inline-flex; align-items: center; gap: 10px; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: block; }
.home-header nav { display: flex; flex-wrap: wrap; gap: 4px 18px; align-items: center; }
.home-header nav a { margin: 0; color: var(--muted); font-weight: 600; }
.home-header nav a:hover, .home-header nav a:focus-visible { color: var(--accent); }

main.home { padding: 0; overflow: hidden; }
.home-shell { max-width: 1160px; margin: 0 auto; padding: 0 28px; }

.hero {
  position: relative;
  padding: 88px 0 96px;
  background:
    radial-gradient(circle at 78% 20%, var(--hero-glow), transparent 34%),
    radial-gradient(circle at 20% 80%, var(--teal-glow), transparent 30%);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(380px, 0.98fr);
  gap: 68px;
  align-items: center;
}
.hero-copy { max-width: 680px; }
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  font-size: 14px;
  line-height: 1.2;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.home h1 {
  margin: 0;
  font-size: clamp(46px, 6.4vw, 78px);
  line-height: 0.98;
  letter-spacing: -0.045em;
  max-width: 760px;
}
.hero-lede {
  max-width: 650px;
  margin: 26px 0 0;
  color: var(--muted);
  font-size: clamp(19px, 2vw, 23px);
  line-height: 1.48;
}
.hero-actions { display: flex; align-items: center; margin-top: 30px; }
.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-weight: 750;
  font-size: 15px;
  box-shadow: 0 10px 28px var(--hero-glow);
}
@media (prefers-color-scheme: dark) { .status-pill { color: #101214; } }

.hero-socials {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  margin-top: 20px;
  font-size: 14px;
}
.hero-socials > span { color: var(--muted); }
.social-icon-row, .social-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.social-icon-link {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: transparent;
  text-decoration: none;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}
.social-icon-link:hover,
.social-icon-link:focus-visible {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--accent) 45%, var(--line));
  box-shadow: 0 7px 18px rgba(0,0,0,0.14);
}
.social-icon-link img {
  width: 100%;
  height: 100%;
  display: block;
}
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.microcopy { margin: 14px 0 0; color: var(--muted); font-size: 14px; }
.policy-link { margin: 8px 0 0; font-size: 15px; font-weight: 600; }
.policy-link a { text-underline-offset: 3px; }
.policy-link a:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 3px; }

.product-preview { display: flex; justify-content: center; }
.phone-shell {
  width: min(100%, 430px);
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 38px;
  background: color-mix(in srgb, var(--surface) 93%, var(--accent) 7%);
  box-shadow: var(--shadow);
}
.phone-topline { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.phone-title { font-size: 27px; font-weight: 780; letter-spacing: -0.025em; }
.phone-chip {
  align-self: flex-start;
  padding: 5px 9px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--accent) 12%, transparent);
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}
.phone-tabs { display: flex; gap: 18px; overflow: hidden; margin: 4px 0 14px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.phone-tabs .active { color: var(--accent); font-weight: 800; border-bottom: 2px solid var(--accent); padding-bottom: 5px; }
.preview-card {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 18px;
  padding: 17px;
  margin-top: 12px;
}
.preview-events { display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.preview-label { margin: 0; color: var(--muted); font-size: 12px; font-weight: 700; }
.preview-value { margin: 5px 0 0; font-size: 34px; line-height: 1; font-weight: 800; letter-spacing: -0.04em; }
.preview-caption { margin: 5px 0 0; color: var(--muted); font-size: 12px; }
.preview-answer { margin: 7px 0 0; font-size: 17px; line-height: 1.25; font-weight: 760; }
.preview-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.small-card { min-height: 92px; }
.preview-rate { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.preview-badge { padding: 7px 10px; border-radius: 999px; background: color-mix(in srgb, var(--analytical) 14%, transparent); color: var(--analytical); font-size: 13px; font-weight: 800; }
.preview-disclaimer { margin: 14px 0 0; text-align: center; color: var(--muted); font-size: 11px; }
.mini-chart { width: 152px; height: 70px; display: flex; align-items: end; gap: 7px; }
.bar { flex: 1; min-width: 9px; border-radius: 5px 5px 2px 2px; background: color-mix(in srgb, var(--analytical) 78%, var(--bg)); }
.b1 { height: 34%; } .b2 { height: 68%; } .b3 { height: 48%; } .b4 { height: 84%; } .b5 { height: 56%; } .b6 { height: 74%; }

.section { padding: 92px 0; }
.section-soft { background: var(--surface-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-tinted { background: color-mix(in srgb, var(--accent) 4%, var(--surface-soft)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-heading { max-width: 760px; margin-bottom: 34px; }
.wide-heading { max-width: 900px; }
.section-heading h2, .sharing-copy h2, .cta-card h2 {
  margin: 0;
  font-size: clamp(34px, 4.3vw, 54px);
  line-height: 1.05;
  letter-spacing: -0.035em;
}
.section-heading > p:last-child, .sharing-copy > p:last-child, .cta-card > div > p:not(.eyebrow) {
  color: var(--muted);
  font-size: 19px;
  line-height: 1.55;
}

.insight-showcase {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 16px;
}
.insight-panel {
  min-height: 320px;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: var(--surface);
  overflow: hidden;
}
.insight-panel-large { grid-row: span 2; min-height: 656px; display: flex; flex-direction: column; }
.panel-copy { max-width: 570px; }
.panel-kicker { color: var(--accent); font-size: 12px; font-weight: 850; text-transform: uppercase; letter-spacing: 0.1em; }
.insight-panel h3 { margin: 8px 0 8px; font-size: clamp(24px, 2.6vw, 34px); line-height: 1.05; letter-spacing: -0.025em; }
.insight-panel p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }

.frequency-demo { margin-top: auto; padding-top: 34px; }
.metric-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.metric-row > div { padding: 14px; border-radius: 16px; background: var(--surface-soft); border: 1px solid var(--line); }
.metric-row strong { display: block; font-size: 23px; line-height: 1; letter-spacing: -0.03em; }
.metric-row span { display: block; margin-top: 5px; color: var(--muted); font-size: 11px; }
.month-bars { height: 220px; display: flex; gap: 10px; align-items: end; padding: 30px 4px 0; border-bottom: 1px solid var(--line); }
.month-bars > span { flex: 1; border-radius: 8px 8px 2px 2px; background: linear-gradient(180deg, var(--analytical), color-mix(in srgb, var(--analytical) 55%, var(--surface))); }

/* CSP-safe dimensions for the synthetic Insights preview. */
.chart-h-42 { height: 42%; }
.chart-h-50 { height: 50%; }
.chart-h-58 { height: 58%; }
.chart-h-62 { height: 62%; }
.chart-h-70 { height: 70%; }
.chart-h-78 { height: 78%; }
.chart-h-88 { height: 88%; }
.chart-h-92 { height: 92%; }

.chart-w-38 { width: 38%; }
.chart-w-64 { width: 64%; }
.chart-w-68 { width: 68%; }
.chart-w-86 { width: 86%; }
.axis-labels { display: grid; grid-template-columns: repeat(8, 1fr); gap: 10px; padding-top: 8px; color: var(--muted); font-size: 10px; text-align: center; }

.rank-demo { margin-top: 28px; display: grid; gap: 16px; }
.rank-demo > div { display: grid; grid-template-columns: 78px 1fr 28px; gap: 10px; align-items: center; font-size: 12px; }
.rank-track { height: 9px; border-radius: 999px; background: var(--surface-soft); overflow: hidden; border: 1px solid var(--line); }
.rank-track i { display: block; height: 100%; border-radius: inherit; background: var(--analytical); }
.rank-demo strong { text-align: right; font-size: 12px; }

.filter-demo { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 8px; }
.filter-demo > span { padding: 8px 10px; border-radius: 999px; background: color-mix(in srgb, var(--accent) 10%, var(--surface)); color: var(--accent); font-size: 12px; font-weight: 750; border: 1px solid color-mix(in srgb, var(--accent) 24%, var(--line)); }
.match-line { flex-basis: 100%; margin-top: 14px; padding: 14px 16px; border-radius: 16px; background: var(--surface-soft); border: 1px solid var(--line); }
.match-line strong { display: inline-block; margin-right: 7px; font-size: 25px; }
.match-line span { color: var(--muted); font-size: 12px; }

.custom-demo { margin-top: 30px; }
.custom-line { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; }
.custom-line.secondary { margin-top: 10px; color: var(--muted); }
.custom-track { height: 14px; border-radius: 999px; background: var(--surface-soft); border: 1px solid var(--line); overflow: hidden; margin-top: 8px; }
.custom-track i { display: block; height: 100%; background: var(--analytical); border-radius: inherit; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature-grid-four { grid-template-columns: repeat(4, 1fr); }
.feature-card {
  position: relative;
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.feature-card h3 { margin: 44px 0 8px; font-size: 20px; line-height: 1.2; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15px; line-height: 1.55; }
.feature-number { position: absolute; top: 20px; left: 24px; color: var(--accent); font-size: 13px; font-weight: 850; letter-spacing: 0.08em; }

.split-section { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 70px; align-items: start; }
.compact-heading { position: sticky; top: 110px; }
.principle-list { display: grid; gap: 12px; }
.principle { padding: 22px 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); }
.principle h3 { margin: 0 0 6px; font-size: 19px; }
.principle p { margin: 0; color: var(--muted); font-size: 15px; }

.sharing-panel {
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(145deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface));
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 52px;
}
.sharing-steps { display: grid; gap: 10px; }
.sharing-step { display: grid; grid-template-columns: 34px 1fr; gap: 13px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.sharing-step:last-child { border-bottom: 0; }
.sharing-step > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #fff; font-size: 13px; font-weight: 800; }
@media (prefers-color-scheme: dark) { .sharing-step > span { color: #101214; } }
.sharing-step strong { display: block; font-size: 17px; }
.sharing-step p { margin: 3px 0 0; color: var(--muted); font-size: 14px; }

.final-cta { padding-top: 32px; }
.cta-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 28px;
  align-items: center;
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface-soft);
}
.cta-mark { width: 88px; height: 88px; border-radius: 22px; box-shadow: 0 14px 36px rgba(0,0,0,0.16); }

.home-footer .wrap { max-width: 1160px; padding: 26px 28px 42px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; }
.home-footer .footer-links a { margin: 0; }
.home-footer p { margin: 4px 0; }

@media (max-width: 980px) {
  .feature-grid-four { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .hero { padding: 62px 0 76px; }
  .hero-grid, .split-section, .sharing-panel { grid-template-columns: 1fr; gap: 40px; }
  .product-preview { justify-content: flex-start; }
  .phone-shell { max-width: 520px; }
  .insight-showcase { grid-template-columns: 1fr; }
  .insight-panel-large { grid-row: auto; min-height: 600px; }
  .compact-heading { position: static; }
}

@media (max-width: 640px) {
  /* Keep the final CTA card 16px off each phone edge.
     .section.final-cta is intentionally more specific than the later .section rule. */
  .section.final-cta {
    padding: 28px 0 68px;
  }
  .final-cta .cta-card {
    width: calc(100% - 32px);
    margin-left: auto;
    margin-right: auto;
  }

  .anchor-offset {
    top: -132px;
  }



  .social-icon-row,
  .social-links {
    gap: 8px;
  }
  .social-icon-link {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-radius: 12px;
  }

.home-shell { padding: 0 20px; }
  .home-header .home-nav { padding-left: 18px; padding-right: 18px; }
  .home-header nav { width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  .home h1 { font-size: 46px; }
  .hero { padding: 44px 0 58px; }
  .hero-grid { gap: 36px; }
  .phone-shell { padding: 17px; border-radius: 28px; }
  .section { padding: 68px 0; }
  .feature-grid, .feature-grid-four { grid-template-columns: 1fr; }
  .feature-card { min-height: 0; }
  .metric-row { grid-template-columns: 1fr; }
  .month-bars { height: 170px; gap: 6px; }
  .axis-labels { gap: 4px; font-size: 9px; }
  .insight-panel, .insight-panel-large { min-height: auto; }
  .sharing-panel { padding: 26px 22px; border-radius: 22px; }
  .cta-card { grid-template-columns: 1fr; padding: 26px 22px; }
  .cta-mark { width: 72px; height: 72px; border-radius: 18px; }
  .home-footer .wrap { padding-left: 20px; padding-right: 20px; }
}

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