:root {
  --brand: #0b5d63;
  --brand-dark: #07474c;
  --accent: #b3541e;
  --ink: #11181c;
  --ink-soft: #41525c;
  --paper: #ffffff;
  --wash: #f4f7f9;
  --line: #d8e0e5;
  --green: #1a7f37;
  --green-bg: #d1fae5;
  --amber: #9a6700;
  --amber-bg: #fef3c7;
  --red: #b42318;
  --red-bg: #fee2e2;
  --radius: 10px;
}

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

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
}

a { color: var(--brand-dark); text-underline-offset: 2px; }
a:hover { color: var(--accent); }

h1, h2, h3 { line-height: 1.2; color: var(--ink); }
h1 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.3rem, 2.5vw, 1.75rem); letter-spacing: -0.01em; }
h3 { font-size: 1.15rem; }

.container { max-width: 900px; margin: 0 auto; padding: 0 1.5rem; }

/* ── Header ─────────────────────────────── */
.site-header { background: var(--paper); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 50; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.85rem 0; }
.logo { font-size: 1.15rem; font-weight: 700; color: var(--ink); text-decoration: none; }
.logo span { color: var(--brand); font-weight: 800; }
nav { display: flex; gap: 1.5rem; }
nav a { color: var(--ink-soft); font-weight: 600; font-size: 0.95rem; text-decoration: none; }
nav a:hover { color: var(--brand-dark); }

/* ── Footer ─────────────────────────────── */
.site-footer { background: var(--brand-dark); color: #cfe1e0; text-align: center; padding: 2rem 0; margin-top: 4rem; font-size: 0.875rem; }
.footer-links { margin-top: 0.5rem; }
.footer-links a { color: #9ec1bd; margin: 0 0.5rem; }
.footer-links a:hover { color: #fff; }

/* ── Buttons ─────────────────────────────── */
.btn-primary {
  display: inline-block; background: var(--brand-dark); color: #fff;
  padding: 0.7rem 1.5rem; border-radius: var(--radius); font-weight: 700;
  font-size: 1rem; border: none; cursor: pointer; text-decoration: none;
  transition: background 0.15s;
}
.btn-primary:hover { background: var(--brand); color: #fff; text-decoration: none; }
.btn-outline {
  display: inline-block; border: 2px solid var(--line); color: var(--brand-dark);
  background: var(--paper); padding: 0.6rem 1.2rem; border-radius: var(--radius);
  font-weight: 700; font-size: 0.9rem; text-decoration: none; transition: border-color 0.15s;
}
.btn-outline:hover { border-color: var(--brand); color: var(--brand-dark); text-decoration: none; }

/* ── Hero ────────────────────────────────── */
.hero { background: linear-gradient(180deg, var(--wash) 0%, var(--paper) 100%); border-bottom: 1px solid var(--line); padding: 3.75rem 0 3rem; }
.hero-inner { text-align: center; }
.hero h1 { color: var(--ink); max-width: 680px; margin: 0 auto 0.85rem; }
.hero h1 em { color: var(--brand); font-style: normal; }
.hero-sub { font-size: 1.15rem; color: var(--ink-soft); max-width: 560px; margin: 0 auto 2rem; }
.audit-form .input-row { display: flex; gap: 0.75rem; max-width: 620px; margin: 0 auto; flex-wrap: wrap; }
.audit-form input[type="url"] {
  flex: 1; min-width: 0; padding: 0.75rem 1rem; border-radius: var(--radius);
  border: 1.5px solid var(--line); font-size: 1rem; color: var(--ink);
  background: var(--paper); transition: border-color 0.15s;
}
.audit-form input[type="url"]:focus { outline: none; border-color: var(--brand); }
.form-error { color: var(--red); margin-bottom: 0.75rem; font-size: 0.95rem; }
.form-hint { color: var(--ink-soft); font-size: 0.875rem; margin-top: 0.75rem; }

/* ── Feature cards ───────────────────────── */
.features { padding: 3rem 0; background: var(--wash); border-bottom: 1px solid var(--line); }
.features-heading { font-size: 1.1rem; font-weight: 700; color: #9ec1bd; margin-bottom: 1.25rem; text-transform: uppercase; letter-spacing: 0.06em; }
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 1.25rem; }
.feature-card { background: #0f1c1f; border: 1px solid #20393e; border-radius: var(--radius); padding: 1.5rem; text-align: center; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: #fff; margin-bottom: 0.5rem; }
.feature-card p { font-size: 0.95rem; color: #9ec1bd; line-height: 1.6; }

/* ── Results page ────────────────────────── */
.results-page { padding: 2rem 0 4rem; }
.results-header { margin-bottom: 1.5rem; }
.results-header h1 { font-size: 1.35rem; word-break: break-all; }
.audited-url { color: var(--ink-soft); font-weight: 400; }
.progress-wrap { height: 6px; background: var(--line); border-radius: 4px; margin: 1rem 0 0.5rem; overflow: hidden; }
.progress-bar { height: 100%; background: var(--brand); transition: width 0.4s ease; border-radius: 4px; }
.status-msg { color: var(--ink-soft); font-size: 0.9rem; }
.status-msg.error { color: var(--red); }

/* Score overview card */
.score-overview { display: flex; flex-direction: column; gap: 1.25rem; background: #0f1c1f; border: 1px solid #20393e; border-radius: var(--radius); padding: 1.75rem; margin-bottom: 1.5rem; }
.score-overview-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .08em; color: #9ec1bd; margin-bottom: 0.2rem; }
.score-overview-url { font-size: 1.15rem; font-weight: 600; color: #fff; word-break: break-all; }
.score-overview-scores { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.overall-score { border-radius: var(--radius); padding: 1rem 1.5rem; text-align: center; min-width: 100px; }
.overall-score .score-num { display: block; font-size: 3rem; font-weight: 800; line-height: 1; }
.overall-score .score-label { font-size: 0.72rem; text-transform: uppercase; letter-spacing: .05em; }
.category-scores { display: flex; gap: 0.75rem; flex-wrap: wrap; flex: 1; }
.cat-score { border-radius: 8px; padding: 0.75rem 1rem; text-align: center; min-width: 80px; }
.cat-score .cat-num { display: block; font-size: 1.75rem; font-weight: 700; line-height: 1; }
.cat-score .cat-label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: .05em; }
.green { background: var(--green-bg); color: var(--green); }
.amber { background: var(--amber-bg); color: var(--amber); }
.red { background: var(--red-bg); color: var(--red); }

/* PDF CTA */
.pdf-cta { background: var(--brand-dark); border-radius: var(--radius); padding: 1.75rem 2rem; margin-bottom: 2rem; color: #fff; }
.pdf-cta h2 { font-size: 1.2rem; margin-bottom: 0.4rem; color: #fff; }
.pdf-cta p { color: #cfe1e0; font-size: 0.9rem; margin-bottom: 1rem; }
.pdf-cta .btn-primary { background: var(--accent); }
.pdf-cta .btn-primary:hover { background: #923f14; }
.pdf-cta.paid { background: var(--green-bg); padding: 1rem 1.5rem; }
.pdf-cta.paid .btn-primary { background: var(--green); }

/* Check results */
.check-category { margin-bottom: 2rem; }
.check-category h2 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--line); text-transform: uppercase; letter-spacing: 0.05em; }
.check-list { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.check-row { display: flex; align-items: flex-start; gap: 1rem; padding: 0.85rem 1rem; border-bottom: 1px solid var(--line); }
.check-row:last-child { border-bottom: none; }
.check-badge { font-size: 0.68rem; font-weight: 700; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; white-space: nowrap; flex-shrink: 0; margin-top: 2px; }
.check-badge.pass { background: var(--green-bg); color: var(--green); }
.check-badge.fail { background: var(--red-bg); color: var(--red); }
.check-badge.warning { background: var(--amber-bg); color: var(--amber); }
.check-badge.na { background: var(--wash); color: var(--ink-soft); }
.check-name { font-size: 0.9rem; font-weight: 600; color: var(--ink); }
.check-detail { font-size: 0.85rem; color: var(--ink-soft); margin-top: 2px; }
.check-rec { font-size: 0.82rem; color: var(--brand-dark); margin-top: 3px; }

/* Services / Marketers */
.services-panel { margin-top: 2.5rem; }
.services-panel h2 { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.services-panel > p { color: var(--ink-soft); font-size: 0.9rem; margin-bottom: 1rem; }
.see-all { margin-top: 1rem; font-size: 0.9rem; }
.marketer-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 1rem; }
.marketer-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.25rem; }
.marketer-card.premium { border-color: var(--brand); border-width: 2px; }
.marketer-card.featured { border-color: var(--brand); }
.tier-badge { display: inline-block; font-size: 0.68rem; font-weight: 700; padding: 2px 8px; border-radius: 20px; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: .04em; }
.tier-badge.premium { background: var(--brand-dark); color: #fff; }
.tier-badge.featured { background: #eef4f2; color: var(--brand-dark); }
.m-name, .marketer-card h2, .marketer-card h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.2rem; }
.m-company { font-size: 0.82rem; color: var(--ink-soft); }
.m-tagline { font-size: 0.88rem; font-weight: 600; color: var(--ink-soft); margin: 0.25rem 0; }
.m-desc { font-size: 0.83rem; color: var(--ink-soft); margin: 0.4rem 0 0.5rem; line-height: 1.55; }
.m-location { font-size: 0.8rem; color: var(--ink-soft); margin-bottom: 0.75rem; }
.m-specialties { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-bottom: 0.75rem; }
.spec-tag { font-size: 0.72rem; background: var(--wash); color: var(--ink-soft); border: 1px solid var(--line); border-radius: 4px; padding: 2px 7px; }

/* Referral callouts */
.referral-callouts { margin-top: 2rem; }
.referral-callouts h2 { font-size: 0.9rem; font-weight: 700; color: var(--ink); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }
.referral-card { background: #eef4f2; border-left: 4px solid var(--brand); border-radius: 0 var(--radius) var(--radius) 0; padding: 1rem 1.25rem; margin-bottom: 0.75rem; }
.referral-card strong { display: block; margin-bottom: 0.25rem; font-size: 0.9rem; color: var(--ink); }
.referral-card p { font-size: 0.85rem; color: var(--ink-soft); }

/* Services page */
.services-page { padding: 2rem 0 4rem; }
.services-header { margin-bottom: 2rem; }
.services-header > p { color: var(--ink-soft); margin: 0.5rem 0 1rem; }
.filter-row { display: flex; align-items: center; gap: 0.75rem; }
.filter-row label { font-size: 0.9rem; color: var(--ink-soft); }
.filter-row select { padding: 0.5rem 0.75rem; border: 1.5px solid var(--line); border-radius: 6px; font-size: 0.9rem; }
.list-cta { background: var(--brand-dark); color: #fff; border-radius: var(--radius); padding: 2rem; margin-top: 3rem; text-align: center; }
.list-cta h2 { font-size: 1.3rem; margin-bottom: 0.5rem; color: #fff; }
.list-cta p { color: #cfe1e0; font-size: 0.9rem; margin-bottom: 1.25rem; }

/* ── Datavision services ─────────────────── */
.dv-services { padding: 3rem 0; border-top: 1px solid var(--line); }
.dv-services-head { margin-bottom: 1.75rem; }
.dv-services-head h2 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); }
.dv-services-head h2 a { color: var(--brand-dark); }
.dv-services-head p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 0.35rem; }
.dv-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 1.25rem; }
.dv-card {
  display: flex; flex-direction: column; gap: 0.5rem;
  background: var(--paper); border: 1.5px solid var(--line);
  border-radius: var(--radius); padding: 1.4rem 1.5rem;
  text-decoration: none; color: inherit;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.dv-card:hover { border-color: var(--brand); box-shadow: 0 2px 12px rgba(11,93,99,0.08); color: inherit; text-decoration: none; }
.dv-tag { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-dark); background: #eef4f2; border-radius: 4px; padding: 2px 8px; align-self: flex-start; }
.dv-card h3 { font-size: 1rem; font-weight: 700; color: var(--ink); line-height: 1.3; }
.dv-card p { font-size: 0.875rem; color: var(--ink-soft); line-height: 1.6; flex: 1; }
.dv-link { font-size: 0.82rem; font-weight: 700; color: var(--brand-dark); margin-top: 0.25rem; }
.dv-card:hover .dv-link { color: var(--accent); }

/* ── FAQ ─────────────────────────────────── */
.faq { padding: 3rem 0 3.5rem; border-top: 1px solid var(--line); }
.faq h2 { font-size: clamp(1.2rem, 2.5vw, 1.5rem); margin-bottom: 1.5rem; }
.faq-list { display: flex; flex-direction: column; gap: 0; }
.faq-item { padding: 1.1rem 0; border-bottom: 1px solid var(--line); }
.faq-item:first-child { border-top: 1px solid var(--line); }
.faq-item h3 { font-size: 1rem; font-weight: 700; color: var(--ink); margin-bottom: 0.4rem; }
.faq-item p { font-size: 0.9rem; color: var(--ink-soft); line-height: 1.65; max-width: 720px; }

/* ── Privacy page ────────────────────────── */
.privacy-page { padding: 2.5rem 0 4rem; max-width: 740px; }
.privacy-header { margin-bottom: 2rem; }
.privacy-header h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.privacy-meta { color: var(--ink-soft); font-size: 0.875rem; margin-top: 0.4rem; }
.privacy-section { margin-bottom: 2rem; }
.privacy-section h2 { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin-bottom: 0.6rem; padding-bottom: 0.3rem; border-bottom: 1px solid var(--line); }
.privacy-section p { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.6rem; }
.privacy-section p:last-child { margin-bottom: 0; }
.privacy-section a { color: var(--brand-dark); }
.policy-table { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin-bottom: 0.75rem; }
.policy-row { display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.policy-row:last-child { border-bottom: none; }
.policy-col-label { font-size: 0.82rem; font-weight: 700; color: var(--ink); background: var(--wash); padding: 0.75rem 1rem; min-width: 140px; flex-shrink: 0; }
.policy-col-text { font-size: 0.85rem; color: var(--ink-soft); padding: 0.75rem 1rem; line-height: 1.6; }
.policy-col-text code { font-family: monospace; font-size: 0.8rem; background: var(--wash); padding: 1px 5px; border-radius: 3px; color: var(--ink); }
.privacy-note { font-size: 0.82rem; color: var(--ink-soft); background: var(--wash); border-left: 3px solid var(--line); padding: 0.6rem 0.9rem; border-radius: 0 6px 6px 0; }
.privacy-list { padding-left: 1.2rem; }
.privacy-list li { font-size: 0.9rem; color: var(--ink-soft); margin-bottom: 0.4rem; }
.privacy-list li strong { color: var(--ink); }

/* ── Mobile ──────────────────────────────── */
@media (max-width: 600px) {
  .audit-form .input-row { flex-direction: column; }
  .audit-form input[type="url"] { width: 100%; }
  .score-overview-scores { flex-direction: column; }
}
