/* Veda Signal: LocalRankPulse landing page */

:root {
  /* Palette matches the Veda Signal logo (slate neutrals, emerald accent) */
  --ink: #0f172a;
  --ink-2: #475569;
  --ink-3: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f8fafc;

  --green: #047857;
  --green-hover: #065f46;
  --green-ink: #047857;
  --green-soft: #ecfdf5;
  --green-line: #c6eedb;

  --font: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;

  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 1px 2px rgba(15, 23, 42, 0.04), 0 12px 32px -8px rgba(15, 23, 42, 0.12), 0 32px 64px -24px rgba(15, 23, 42, 0.12);

  --header-h: 64px;
  color-scheme: light;
}

/* Base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}
body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
svg { display: block; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.025em; text-wrap: balance; }
p { text-wrap: pretty; }

:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 6px; }

.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: 1160px; margin-inline: auto; padding-inline: 20px; }
@media (min-width: 768px) { .container { padding-inline: 32px; } }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 10px 18px;
  border: 0; border-radius: 10px; cursor: pointer;
  background: var(--green); color: #fff;
  font-family: inherit; font-size: 0.9375rem; font-weight: 600; line-height: 1.2; white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transition: background-color 0.15s ease, transform 0.15s ease;
}
.btn:hover { background: var(--green-hover); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 8px 14px; font-size: 0.875rem; }
.btn-lg { min-height: 52px; padding: 14px 26px; font-size: 1rem; border-radius: 12px; }
.btn-block { display: flex; width: 100%; }
.btn-icon {
  width: 18px; height: 18px;
  fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}
@media (max-width: 379px) { .hide-xs { display: none; } }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: var(--header-h); }
/* Logo lockup; wordmark type follows assets/veda-signal-localrankpulse.svg */
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; font-size: 1.0625rem; white-space: nowrap;
}
.brand-mark { width: 38px; height: 38px; flex: none; }
.brand-name { font-weight: 700; letter-spacing: 0.02em; color: #1e293b; }
.brand-product { display: none; align-items: center; gap: 9px; margin-left: -1px; letter-spacing: 0.01em; color: #64748b; }
.brand-product::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: #94a3b8; }
@media (min-width: 1024px) { .brand-product { display: inline-flex; } }
.site-nav { display: none; }
@media (min-width: 768px) {
  .site-nav { display: flex; gap: 32px; margin-left: auto; margin-right: 16px; }
  .site-nav a { font-size: 0.9375rem; font-weight: 500; color: var(--ink-2); transition: color 0.15s ease; }
  .site-nav a:hover { color: var(--ink); }
}

/* Sections */
.section { padding-block: 72px; }
@media (min-width: 768px) { .section { padding-block: 112px; } }
.section-soft { background: var(--bg-soft); border-block: 1px solid var(--line); }
[id] { scroll-margin-top: var(--header-h); }

.eyebrow {
  font-size: 0.8125rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--green-ink); margin-bottom: 14px;
}
h2 { font-size: clamp(1.875rem, 1.35rem + 2.1vw, 2.75rem); line-height: 1.12; letter-spacing: -0.03em; }
.section-head { max-width: 42rem; margin: 0 auto 44px; text-align: center; }
.section-head p { margin-top: 14px; font-size: 1.125rem; color: var(--ink-2); }
@media (min-width: 768px) { .section-head { margin-bottom: 56px; } }
.body-lg { font-size: 1.125rem; color: var(--ink-2); margin-top: 20px; }

/* Hero */
.hero { position: relative; isolation: isolate; overflow: hidden; padding-block: 64px 80px; text-align: center; }
@media (min-width: 768px) { .hero { padding-block: 112px 128px; } }
/* Faint concentric "signal" rings */
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 0, transparent 0 79px, rgba(4, 120, 87, 0.1) 79px 80px);
  -webkit-mask-image: radial-gradient(ellipse 70% 90% at 50% 0, #000 10%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 90% at 50% 0, #000 10%, transparent 75%);
}
.hero-inner { max-width: 880px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px; border-radius: 999px;
  background: #fff; border: 1px solid var(--green-line);
  font-size: 0.75rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-ink);
  box-shadow: var(--shadow-sm);
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 3px var(--green-soft); }
.hero h1 {
  margin: 24px auto 0; max-width: 17ch;
  font-size: clamp(2.375rem, 1.5rem + 3.8vw, 4.25rem); line-height: 1.05; letter-spacing: -0.04em;
}
.lead {
  margin: 24px auto 0; max-width: 38rem;
  font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem); line-height: 1.6; color: var(--ink-2);
}
.hero-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hero-note { font-size: 0.875rem; color: var(--ink-3); }
.nowrap { white-space: nowrap; }

/* Product split */
.split { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; }
}
.checklist { display: grid; gap: 12px; margin-top: 28px; }
.checklist li { display: flex; align-items: flex-start; gap: 12px; color: var(--ink); }
.check {
  flex: none; width: 22px; height: 22px; padding: 4px; margin-top: 1px;
  border-radius: 50%; background: var(--green-soft); color: var(--green-ink);
  fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round;
}

/* Report mockup */
.report { width: 100%; max-width: 540px; margin-inline: auto; }
.report-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.report-mail {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; background: #fff; border-bottom: 1px solid var(--line);
}
.report-avatar { flex: none; width: 40px; height: 40px; }
.report-meta { min-width: 0; }
.report-from { font-size: 0.9375rem; font-weight: 600; line-height: 1.3; }
.report-subject { font-size: 0.8125rem; color: var(--ink-3); line-height: 1.4; }
.report-tag {
  margin-left: auto; flex: none;
  padding: 3px 9px; border-radius: 999px;
  background: #f1f5f9; border: 1px solid var(--line);
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.report-body { padding: 22px 20px 24px; }
@media (min-width: 480px) { .report-body { padding: 28px 28px 30px; } }
.report-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 22px; }
.report-biz { font-weight: 650; font-size: 1.0625rem; letter-spacing: -0.01em; }
.report-range { font-size: 0.8125rem; color: var(--ink-3); white-space: nowrap; }
.report-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.report-label {
  font-size: 0.6875rem; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ink-3);
}
.report-compare { font-size: 0.75rem; color: var(--ink-3); }
.metrics { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.metric { border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
@media (min-width: 480px) { .metric { padding: 16px; } }
.metric dt { font-size: 0.8125rem; color: var(--ink-2); line-height: 1.35; }
.metric-value {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
  font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1.15; font-variant-numeric: tabular-nums;
}
.star { width: 20px; height: 20px; fill: #e8a317; }
.metric-change { margin-top: 2px; font-size: 0.8125rem; font-weight: 600; color: var(--green-ink); }
.report-note { margin-top: 12px; padding: 14px 16px; border-radius: 12px; background: var(--bg-soft); }
.report-note .report-label { margin-bottom: 4px; }
.report-note p:last-child { font-size: 0.9375rem; line-height: 1.5; }
.report-note-action { background: var(--green-soft); border: 1px solid var(--green-line); }
.report-note-action .report-label { color: var(--green-ink); }
.report-summary { margin: 0 0 22px; }
.metric-rating { display: flex; align-items: center; gap: 4px; color: var(--ink-2); }
.metric-rating .star { width: 15px; height: 15px; }

.ranks { width: 100%; margin-top: 22px; border-collapse: collapse; font-size: 0.875rem; }
.ranks caption { margin-bottom: 8px; text-align: left; }
.ranks thead th {
  padding: 0 0 8px; border-bottom: 1px solid var(--line);
  font-size: 0.75rem; font-weight: 500; color: var(--ink-3); text-align: left;
}
.ranks tbody th, .ranks td { padding: 10px 0; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ranks tbody tr:last-child > * { border-bottom: 0; }
.ranks tbody th { padding-right: 12px; font-weight: 500; color: var(--ink); text-align: left; }
.ranks thead th:last-child, .ranks td { text-align: right; white-space: nowrap; }
.rank-status { display: block; margin-top: 1px; font-size: 0.75rem; font-weight: 600; color: var(--green-ink); }
.rank {
  display: inline-block; min-width: 40px; padding: 3px 10px; border-radius: 999px; text-align: center;
  background: var(--green-soft); color: var(--green-ink); font-weight: 700; font-variant-numeric: tabular-nums;
}
.rank-status.is-low { color: #b45309; }
.rank.is-low { background: #fef3c7; color: #92400e; }
.report figcaption { margin-top: 16px; text-align: center; font-size: 0.8125rem; color: var(--ink-3); }

/* Benefit cards */
.cards { display: grid; gap: 16px; }
@media (min-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; } }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 24px; box-shadow: var(--shadow-sm);
}
.card h3 { font-size: 1.0625rem; letter-spacing: -0.015em; line-height: 1.35; margin-bottom: 6px; }
.card p { font-size: 0.9375rem; color: var(--ink-2); }
@media (max-width: 639px) {
  .card { display: grid; grid-template-columns: auto 1fr; column-gap: 16px; padding: 20px; }
  .card .icon { grid-row: span 2; margin-bottom: 0; }
}
.icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; margin-bottom: 18px;
  border-radius: 10px; background: var(--green-soft); color: var(--green-ink);
}
.icon svg {
  width: 20px; height: 20px;
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}

/* Trades */
.trades { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: 960px; margin-inline: auto; }
@media (min-width: 768px) { .trades { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.trade {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: #fff; border: 1px solid var(--line); border-radius: 14px;
  font-size: 0.9375rem; font-weight: 550; line-height: 1.3; box-shadow: var(--shadow-sm);
}
@media (min-width: 768px) { .trade { padding: 16px 18px; } }
.trade .icon { width: 36px; height: 36px; margin: 0; border-radius: 9px; }
.trade .icon svg { width: 18px; height: 18px; }
.trade-more { background: transparent; border-style: dashed; box-shadow: none; color: var(--ink-2); }
.trade-more .icon { background: #fff; border: 1px solid var(--line); color: var(--ink-3); }

/* Steps */
.steps { display: grid; gap: 40px; max-width: 1040px; margin-inline: auto; }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px; } }
.step { border-top: 1px solid var(--line); padding-top: 28px; }
.step-num {
  display: block; font-size: 2.75rem; font-weight: 650; line-height: 1; letter-spacing: -0.04em;
  color: var(--green); font-variant-numeric: tabular-nums;
}
.step h3 { margin-top: 20px; font-size: 1.1875rem; line-height: 1.3; letter-spacing: -0.02em; }
.step p { margin-top: 8px; color: var(--ink-2); }
@media (max-width: 767px) {
  .steps { gap: 0; }
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; padding-block: 24px; }
  .step-num { grid-row: span 2; font-size: 2rem; min-width: 2.25ch; }
  .step h3 { margin-top: 0; font-size: 1.125rem; }
}

/* Pricing */
.price-card {
  max-width: 440px; margin-inline: auto; padding: 28px 24px;
  background: #fff; border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow-lg);
}
@media (min-width: 480px) { .price-card { padding: 36px; } }
.price-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.price-name { font-size: 1.0625rem; font-weight: 650; letter-spacing: -0.01em; }
.badge {
  padding: 4px 11px; border-radius: 999px;
  background: var(--green-soft); border: 1px solid var(--green-line);
  font-size: 0.8125rem; font-weight: 600; color: var(--green-ink);
}
.price { display: flex; align-items: baseline; gap: 8px; margin-top: 24px; }
.price-amount { font-size: 3.5rem; font-weight: 700; line-height: 1; letter-spacing: -0.045em; }
.price-period { font-size: 1.0625rem; color: var(--ink-2); }
.price-list { margin: 28px 0 32px; padding-top: 28px; border-top: 1px solid var(--line); }

/* Final CTA */
.cta-panel {
  position: relative; isolation: isolate; overflow: hidden;
  padding: 40px 18px 18px; border-radius: 24px;
  background: var(--ink); color: #fff;
}
@media (min-width: 640px) { .cta-panel { padding: 56px 48px; } }
@media (min-width: 960px) {
  .cta-panel {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 420px); gap: 64px; align-items: center;
    padding: 72px 64px;
  }
}
.cta-panel::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: repeating-radial-gradient(circle at 50% 120%, transparent 0 63px, rgba(255, 255, 255, 0.06) 63px 64px);
  -webkit-mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, #000 20%, transparent 80%);
  mask-image: radial-gradient(ellipse 80% 90% at 50% 100%, #000 20%, transparent 80%);
}
.cta-copy { padding-inline: 6px; }
.cta-copy h2 { max-width: 18ch; color: #fff; }
.cta-copy > p { margin-top: 16px; max-width: 32rem; font-size: 1.125rem; color: rgba(255, 255, 255, 0.74); }
.cta-points { display: grid; gap: 10px; margin-top: 24px; }
.cta-points li { display: flex; align-items: center; gap: 10px; font-size: 0.9375rem; color: rgba(255, 255, 255, 0.86); }
.cta-points .check { background: rgba(16, 185, 129, 0.16); color: #6ee7b7; }

/* Free report form */
[hidden] { display: none !important; }
.form-card {
  margin-top: 32px; padding: 24px 20px; border-radius: 18px;
  background: #fff; color: var(--ink);
  box-shadow: 0 24px 48px -16px rgba(0, 0, 0, 0.5);
}
@media (min-width: 480px) { .form-card { padding: 32px; } }
@media (min-width: 960px) { .form-card { margin-top: 0; } }
.field + .field { margin-top: 16px; }
.field label { display: block; margin-bottom: 6px; font-size: 0.875rem; font-weight: 600; }
.optional { font-weight: 400; color: var(--ink-3); }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 11px 14px;
  border: 1px solid #cbd5e1; border-radius: 10px; background: #fff;
  font: inherit; font-size: 1rem; color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { display: block; min-height: 96px; line-height: 1.5; resize: vertical; }
.field input::placeholder, .field textarea::placeholder { color: var(--ink-3); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(4, 120, 87, 0.18); }
#report-form .btn { margin-top: 24px; }
.btn:disabled { opacity: 0.7; cursor: progress; }
.form-status { margin-top: 12px; font-size: 0.875rem; color: var(--ink-2); }
.form-status:empty { display: none; }
.form-status[data-state="error"] { color: #b91c1c; }
.form-note { margin-top: 14px; font-size: 0.8125rem; line-height: 1.5; color: var(--ink-3); }
.form-success { padding: 24px 8px; text-align: center; }
.form-success:focus { outline: none; }
.success-icon {
  display: inline-grid; place-items: center; width: 48px; height: 48px; margin-bottom: 16px;
  border-radius: 50%; background: var(--green-soft); color: var(--green-ink);
}
.success-icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.form-success h3 { font-size: 1.25rem; }
.form-success p { margin-top: 8px; color: var(--ink-2); overflow-wrap: anywhere; }

/* Footer */
.site-footer { padding-block: 48px 36px; border-top: 1px solid var(--line); }
.footer-top { display: flex; flex-direction: column; gap: 24px; }
@media (min-width: 640px) { .footer-top { flex-direction: row; justify-content: space-between; align-items: flex-start; } }
.footer-tagline { margin-top: 10px; font-size: 0.875rem; color: var(--ink-3); }
.footer-links { display: flex; gap: 24px; font-size: 0.875rem; color: var(--ink-2); }
.footer-links a { padding-block: 4px; }
.footer-links a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom { margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-3); }
.footer-bottom:first-child { margin-top: 0; padding-top: 0; border-top: 0; }

/* Simple content pages (privacy, terms) */
.page { padding-block: 72px 96px; }
@media (min-width: 768px) { .page { padding-block: 104px 128px; } }
.page .container { max-width: 720px; }
.page h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); line-height: 1.1; letter-spacing: -0.035em; }
.page p { margin-top: 20px; font-size: 1.0625rem; color: var(--ink-2); }
.page a { color: var(--green-ink); text-decoration: underline; text-underline-offset: 3px; }
