/* =========================================================
   Reputation Pulse — site styles (black & gold radar theme)
   ========================================================= */
:root {
  --gold: #e0b53c;          /* primary gold */
  --gold-bright: #f4d260;   /* highlights / hover */
  --gold-deep: #b78f2a;     /* muted gold / grid lines */
  --gold-tint: rgba(224, 181, 60, 0.12);
  --gold-tint-strong: rgba(224, 181, 60, 0.2);

  --bg: #0a0a0b;            /* page background (logo black) */
  --bg-soft: #101013;       /* alternating sections */
  --surface: #16161b;       /* cards */
  --surface-2: #1c1c23;     /* nested surfaces / form fields */

  --ink: #f6f5f1;           /* headings, near-white */
  --body: #c6c7ce;          /* body text */
  --muted: #8b8d97;         /* secondary text */
  --line: #2a2a31;          /* borders */

  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 28px 64px rgba(0, 0, 0, 0.6);
  --glow: 0 0 0 1px rgba(224, 181, 60, 0.25), 0 14px 40px rgba(224, 181, 60, 0.12);
  --max: 1140px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Faint radar silhouette watermark, fixed behind the content */
body::after {
  content: "";
  position: fixed;
  top: 50%;
  right: -180px;
  width: min(82vh, 720px);
  height: min(82vh, 720px);
  transform: translateY(-50%);
  background: url("/assets/img/radar-watermark.svg") center / contain no-repeat;
  opacity: 0.05;
  z-index: 0;
  pointer-events: none;
}
@media (max-width: 700px) {
  body::after { right: -38%; opacity: 0.04; }
}

h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; font-weight: 750; }
h1 { font-size: clamp(2.1rem, 4.5vw, 3.4rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; }

a { color: var(--gold); text-decoration: none; }
a:hover { color: var(--gold-bright); text-decoration: underline; }

img { max-width: 100%; height: auto; }

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

/* ---------- Buttons ---------- */
.btn {
  display: inline-block;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #14110a;
  padding: 14px 26px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
  box-shadow: 0 8px 22px rgba(224, 181, 60, 0.25);
}
.btn:hover { color: #14110a; text-decoration: none; transform: translateY(-1px); filter: brightness(1.05); box-shadow: 0 10px 28px rgba(224, 181, 60, 0.38); }
.btn-small { padding: 9px 18px; font-size: 0.95rem; box-shadow: none; }
.btn-ghost {
  background: transparent; color: var(--gold);
  border: 1px solid var(--gold-deep); box-shadow: none;
}
.btn-ghost:hover { background: var(--gold-tint); color: var(--gold-bright); filter: none; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, 0.82);
  backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo { display: flex; align-items: center; gap: 11px; }
.logo:hover { text-decoration: none; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(224, 181, 60, 0.35);
  animation: pulse 2.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(224, 181, 60, 0.32); }
  50% { box-shadow: 0 0 0 7px rgba(224, 181, 60, 0.04); }
}
.logo-text { color: var(--ink); font-weight: 500; font-size: 1.18rem; letter-spacing: 0.01em; }
.logo-text strong { color: var(--gold); font-weight: 800; }
.site-nav { display: flex; align-items: center; gap: 26px; }
.site-nav a { color: var(--body); font-weight: 550; }
.site-nav a:hover { color: var(--ink); text-decoration: none; }
.site-nav a.btn { color: #14110a; }
.site-nav a.nav-login { color: var(--gold); font-weight: 600; }
.site-nav a.nav-login:hover { color: var(--gold-bright); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(820px 460px at 78% -8%, rgba(224, 181, 60, 0.16), transparent),
    radial-gradient(700px 420px at 8% 4%, rgba(224, 181, 60, 0.07), transparent),
    var(--bg);
  padding: 88px 0 72px;
  border-bottom: 1px solid var(--line);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero .eyebrow {
  display: inline-block; color: var(--gold-bright);
  background: var(--gold-tint);
  border: 1px solid var(--gold-tint-strong);
  padding: 6px 14px; border-radius: 999px;
  font-weight: 650; font-size: 0.85rem; margin-bottom: 18px;
}
.hero h1 { margin: 0 0 18px; }
.hero h1 { background: none; }
.hero p.lead { font-size: 1.2rem; color: var(--body); margin: 0 0 28px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-note { color: var(--muted); font-size: 0.9rem; margin-top: 16px; }

/* Hero dashboard mock */
.hero-card {
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-lg); padding: 22px;
}
.hero-card .row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.score { font-size: 2.6rem; font-weight: 800; color: var(--ink); }
.score small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.stars { color: var(--gold); letter-spacing: 2px; font-size: 1.1rem; }
.bar { height: 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; margin: 6px 0 14px; }
.bar > span { display: block; height: 100%; background: linear-gradient(90deg, var(--gold-deep), var(--gold-bright)); }
.mini-label { display: flex; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.review-chip {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm);
  margin-top: 12px; font-size: 0.9rem; background: rgba(255, 255, 255, 0.015);
}
.review-chip .src { width: 30px; height: 30px; border-radius: 50%; background: var(--gold-tint); color: var(--gold); font-weight: 800; display: grid; place-items: center; flex: none; }

/* ---------- Sections ---------- */
section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 48px; }
.section-head .eyebrow { color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.8rem; }
.section-head h2 { margin: 10px 0 12px; }
.section-head p { color: var(--muted); font-size: 1.1rem; }

/* Trust bar */
.trust { padding: 32px 0; border-bottom: 1px solid var(--line); background: var(--bg); }
.trust p { text-align: center; color: var(--muted); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.1em; margin: 0 0 16px; }
.trust-row { display: flex; flex-wrap: wrap; gap: 36px; justify-content: center; align-items: center; color: var(--gold-deep); font-weight: 700; }

/* Feature grid */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); gap: 18px; }
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--gold-deep); }
.card .icon {
  width: 46px; height: 46px; border-radius: 12px;
  display: grid; place-items: center; margin-bottom: 16px;
  background: var(--gold-tint); border: 1px solid var(--gold-tint-strong); font-size: 1.3rem;
}
.card h3 { margin: 0 0 8px; }
.card p { margin: 0; color: var(--body); }
.solo-list { list-style: none; padding: 0; margin: 16px 0 0; }
.solo-list li { padding: 8px 0 8px 26px; position: relative; color: var(--body); border-top: 1px solid var(--line); }
.solo-list li:first-child { border-top: none; }
.solo-list li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.step .num {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #14110a; font-weight: 800;
  display: grid; place-items: center; margin-bottom: 14px;
}
.step h3 { margin: 0 0 6px; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.stat .big { font-size: 2.6rem; font-weight: 800; color: var(--gold); }
.stat .label { color: var(--muted); }

/* Founder signature */
.founder-sign {
  margin-top: 24px; font-family: var(--font-voice, Georgia, "Times New Roman", serif);
  font-size: 1.4rem; font-style: italic; color: var(--ink); line-height: 1.3;
}
.founder-sign span {
  display: block; font-family: var(--font); font-style: normal;
  font-size: 0.9rem; color: var(--muted); margin-top: 4px;
}

/* CTA band */
.cta-band {
  background: linear-gradient(120deg, #1a1404, #2a2008 45%, #1a1404);
  border: 1px solid var(--gold-deep);
  color: var(--ink); text-align: center; border-radius: 20px; padding: 56px 28px; margin: 0 auto;
  box-shadow: var(--glow);
}
.cta-band h2 { color: var(--ink); margin: 0 0 12px; }
.cta-band p { color: var(--body); font-size: 1.1rem; margin: 0 0 26px; }

/* ---------- Pricing ---------- */
.pricing { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; flex-direction: column; box-shadow: var(--shadow);
}
.plan.featured { border: 1px solid var(--gold); box-shadow: var(--glow); position: relative; }
.plan.featured .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #14110a; font-size: 0.78rem; font-weight: 700;
  padding: 5px 14px; border-radius: 999px;
}
.plan h3 { margin: 0 0 6px; }
.plan .price { font-size: 2.6rem; font-weight: 800; color: var(--ink); }
.plan .price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.plan .desc { color: var(--muted); margin: 6px 0 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 8px 0 8px 28px; position: relative; }
.plan li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }
.plan .btn { width: 100%; text-align: center; }

/* Inline help tooltip (e.g. "what is a citation?") */
.tip {
  position: relative; display: inline-grid; place-items: center;
  width: 16px; height: 16px; margin-left: 5px; border-radius: 50%;
  border: 1px solid var(--gold-deep); color: var(--gold);
  font-size: 0.68rem; font-weight: 800; line-height: 1; cursor: help;
  vertical-align: middle;
}
.tip-bubble {
  position: absolute; bottom: 150%; left: 50%; transform: translateX(-50%);
  width: 230px; background: var(--surface-2); color: var(--body);
  border: 1px solid var(--gold-deep); border-radius: 10px; padding: 11px 13px;
  font-size: 0.82rem; font-weight: 400; line-height: 1.5; text-align: left;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden;
  transition: opacity 0.15s ease; z-index: 30; pointer-events: none;
}
.tip-bubble strong { color: var(--ink); }
.tip:hover .tip-bubble, .tip:focus .tip-bubble, .tip:focus-within .tip-bubble {
  opacity: 1; visibility: visible;
}

/* ---------- Comparison (agency vs RP) ---------- */
.compare-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; max-width: 900px; margin: 0 auto; }
.compare-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px; display: flex; flex-direction: column;
}
.compare-card.agency { opacity: 0.92; }
.compare-card.rp { border: 1px solid var(--gold); box-shadow: var(--glow); position: relative; }
.compare-card.rp .badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(180deg, var(--gold-bright), var(--gold)); color: #14110a;
  font-size: 0.78rem; font-weight: 700; padding: 5px 14px; border-radius: 999px;
}
.compare-card h3 { margin: 0 0 6px; }
.compare-price { font-size: 1.7rem; font-weight: 800; color: var(--ink); margin-bottom: 18px; }
.compare-price small { font-size: 0.9rem; color: var(--muted); font-weight: 600; }
.compare-card.rp .compare-price { color: var(--gold); }
.compare-list { list-style: none; padding: 0; margin: 0 0 22px; flex: 1; }
.compare-list li { padding: 9px 0 9px 30px; position: relative; border-bottom: 1px solid var(--line); }
.compare-list li:last-child { border-bottom: none; }
.compare-list.neg li::before { content: "✕"; position: absolute; left: 0; color: #a3563a; font-weight: 800; }
.compare-list.pos li::before { content: "✓"; position: absolute; left: 0; color: var(--gold); font-weight: 800; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; }
.faq details {
  border-bottom: 1px solid var(--line); padding: 18px 0;
}
.faq summary { font-weight: 650; color: var(--ink); cursor: pointer; font-size: 1.05rem; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; float: right; color: var(--gold); font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq p { margin: 12px 0 0; color: var(--body); }

/* ---------- Prose / content pages ---------- */
.prose-page { padding: 64px 0; }
.prose-page h1 { margin-top: 0; }
.prose-page .lead { font-size: 1.25rem; color: var(--body); margin: 0 0 28px; }
.article-body h2 { margin: 36px 0 12px; }
.article-body h3 { margin: 28px 0 8px; }
.article-body p, .article-body li { font-size: 1.06rem; }
.article-body ul, .article-body ol { padding-left: 22px; }
.article-body li { margin: 6px 0; }
.article-body a { text-decoration: underline; }
.article-body blockquote {
  border-left: 3px solid var(--gold); margin: 24px 0; padding: 10px 20px;
  color: var(--body); background: var(--gold-tint); border-radius: 0 8px 8px 0;
}
.eyebrow a { font-weight: 650; }
.article-meta { color: var(--muted); font-size: 0.95rem; }
.prose-page hr { border: none; border-top: 1px solid var(--line); margin: 36px 0; }
.cta-inline {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; text-align: center; margin-top: 28px;
}
.cta-inline h3 { margin: 0 0 8px; }
.cta-inline p { margin: 0 0 18px; color: var(--muted); }

/* Blog list */
.post-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.post-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow); transition: transform 0.15s ease, border-color 0.15s ease;
}
.post-card:hover { transform: translateY(-3px); border-color: var(--gold-deep); }
.post-card .date { color: var(--gold-deep); font-size: 0.85rem; }
.post-card h3 { margin: 8px 0; }
.post-card h3 a { color: var(--ink); }
.post-card h3 a:hover { color: var(--gold); text-decoration: none; }
.post-card p { color: var(--body); margin: 0; }

/* ---------- Contact form ---------- */
.form-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 32px; box-shadow: var(--shadow); max-width: 560px; margin: 0 auto;
}
.form-row { margin-bottom: 18px; }
.form-row label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); font: inherit; color: var(--ink);
  background: var(--surface-2);
}
.form-row input::placeholder, .form-row textarea::placeholder { color: var(--muted); }
.form-row input:focus, .form-row textarea:focus, .form-row select:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224, 181, 60, 0.18);
}

/* ---------- Footer ---------- */
.site-footer { background: #060607; color: var(--body); padding: 56px 0 28px; margin-top: 40px; border-top: 1px solid var(--line); }
.footer-news {
  display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center;
  padding: 24px; margin-bottom: 40px;
  background: linear-gradient(120deg, #1a1404, #15110a);
  border: 1px solid var(--gold-deep); border-radius: var(--radius);
}
.footer-news-copy h4 { color: var(--ink); margin: 0 0 4px; font-size: 1.15rem; }
.footer-news-copy p { color: var(--muted); margin: 0; max-width: 460px; }
.news-form { display: flex; gap: 10px; position: relative; flex-wrap: wrap; }
.news-form input {
  padding: 11px 14px; min-width: 240px; border: 1px solid var(--line);
  border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink); font: inherit;
}
.news-form input::placeholder { color: var(--muted); }
.news-form input:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(224, 181, 60, 0.18); }
.news-ok { width: 100%; margin: 4px 0 0; color: var(--gold-bright); font-size: 0.9rem; }
.footer-inner { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px; }
.footer-brand .logo-text { color: var(--ink); font-size: 1.2rem; font-weight: 500; }
.footer-brand .logo-text strong { color: var(--gold); font-weight: 800; }
.footer-brand p { color: var(--muted); max-width: 280px; }
.footer-col h4 { color: var(--ink); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 14px; }
.footer-col a { display: block; color: var(--body); margin-bottom: 10px; }
.footer-col a:hover { color: var(--gold); text-decoration: none; }
.footer-bottom { border-top: 1px solid var(--line); margin-top: 36px; padding-top: 20px; }
.footer-bottom p { color: var(--muted); font-size: 0.88rem; margin: 0; }
.footer-firm { margin-top: 6px !important; }
.footer-firm a { color: var(--gold-deep); }
.footer-firm a:hover { color: var(--gold); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .pricing, .grid-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .pricing, .grid-4 { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .grid-3, .steps, .stats { grid-template-columns: 1fr; }
  .grid-2, .post-list, .compare-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-news { grid-template-columns: 1fr; }
  .news-form input { min-width: 0; flex: 1; }
  .site-nav { gap: 16px; }
  .site-nav a:not(.btn) { display: none; }
}
