/* SiteScope — public scan.
 *
 * Base palette, font and header/button patterns are HPM's own design system
 * (com_humanplanetmedia/hpm2026.css: dark bg, purple accent, Inter, glass
 * sticky header) so this page reads as part of humanplanetmedia.com rather
 * than a bolted-on tool. The SITESCOPE wordmark itself, and the cyan accent
 * on severity/progress elements, come from the brand video
 * (video/remotion/sitescope/src/theme.ts + Act3.tsx): Anton font, #38E1FF
 * cyan, #FF3B3B red, #FFD23F amber — so the product's own identity in the
 * video matches what greets someone who clicks through from it.
 */

:root {
  --bg-dark: #0f0f14;
  --bg-panel: #16161d;
  --text-light: #eaeaf0;
  --muted: #8c8ca1;
  --purple: #7b5cff;
  --purple-hover: #8e75ff;
  --border: rgba(255, 255, 255, 0.08);
  --glass-bg: rgba(15, 15, 20, 0.85);

  /* From the video's theme.ts */
  --ink: #0A0F1E;
  --cyan: #38E1FF;
  --cyan-hover: #6ae9ff;
  --red: #FF3B3B;
  --amber: #FFD23F;
  --good: #35d48a;

  --red-bg: rgba(255, 59, 59, 0.1);
  --amber-bg: rgba(255, 210, 63, 0.1);
  --grey-bg: rgba(255, 255, 255, 0.04);
  --good-bg: rgba(53, 212, 138, 0.1);
}

/* This page is dark-first by brand, not by prefers-color-scheme, so the
   normal light/dark pair doesn't apply — it matches hpm2026.css, which is
   dark everywhere regardless of the visitor's OS setting. */

* { box-sizing: border-box; }

@font-face {
  font-family: 'Anton';
  src: url('fonts/Anton.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}

body {
  margin: 0;
  background: var(--bg-dark);
  color: var(--text-light);
  font: 17px/1.6 'Inter', system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
  -webkit-font-smoothing: antialiased;
}

main { max-width: 760px; margin: 0 auto; padding: 0 20px 64px; }

a { color: inherit; text-decoration: none; }

.mini-brand {
  display: flex; justify-content: center; align-items: center;
  max-width: 760px; margin: 0 auto; padding: 44px 20px 8px;
  pointer-events: none; user-select: none; cursor: default;
  color: inherit; text-decoration: none;
}
.mini-brand img {
  display: block; margin: 0 auto;
  height: 150px !important; width: auto !important;
  max-width: 100% !important; object-fit: contain;
  filter: drop-shadow(0 0 28px rgba(56, 225, 255, .18));
}
@media (min-width: 620px) {
  .mini-brand { padding-top: 56px; }
  .mini-brand img { height: 210px !important; }
}
/* Safety net: size the hero logo by file name, whatever wrapper surrounds it. */
img[src*="logo-hero"] {
  display: block; margin-left: auto; margin-right: auto;
  height: 150px !important; width: auto !important;
  max-width: 100% !important; object-fit: contain;
}
@media (min-width: 620px) {
  img[src*="logo-hero"] { height: 210px !important; }
}

/* =============================================================================
 * FOOTER — one centered Human Planet Media sign-off, nothing clickable.
 *
 * REWRITTEN (2026-10-08). The mismatch (text version left, logo version
 * centered) happened because .foot text defaulted to left alignment while
 * .brand-badge centered itself. Now the footer is a single centered column
 * and every child inherits it, so the wordmark, the logo, the tagline and
 * the small print all share one axis no matter what order the markup uses.
 * ========================================================================= */
.foot {
  max-width: 760px; margin: 0 auto; padding: 44px 20px 64px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 10px; color: var(--muted); font-size: 14px;
  position: relative; user-select: none;
}
.foot::before {
  content: ""; display: block; width: min(320px, 70%); height: 1px; margin-bottom: 22px;
  background: linear-gradient(90deg, transparent, rgba(123,92,255,.7), rgba(56,225,255,.7), transparent);
}
.foot * { text-align: center; }
.foot p { margin: 0; }
.foot a { pointer-events: none; cursor: default; color: inherit; text-decoration: none; }
/* The footer markup repeats the company name: a plain <p> first, then the styled
   .brand-badge. Hide the plain duplicate and lift the badge to the top. */
.foot > p:first-of-type { display: none; }
.foot > .brand-badge { order: -1; font-size: 1.5rem; padding: 0; }

/* Human Planet Media wordmark. These are hpm2026.css's own .logo / .logo span
 * values, copied exactly (1.2rem, 600, 0.5px, Inter) per Kennon's direction:
 * anywhere it appears it matches humanplanetmedia.com, full stop. Only the
 * placement (centered) is decided here. */
.brand-badge {
  text-align: center; padding: 4px 0 0; color: #F6F7FB;
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  font-size: 1.2rem; font-weight: 600; letter-spacing: 0.5px;
  user-select: none; cursor: default;
}
.brand-badge .accent { color: #7b5cff; }
/* optional line under the wordmark, use class="brand-tagline" if you want one */
.brand-tagline {
  margin: 0; font-size: 13px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.foot-legal { font-size: 12.5px; color: var(--muted); opacity: .8; max-width: 480px; line-height: 1.5; }

/* Generic heading fallbacks — report.php's own headings (grade hero, section
   titles) are plain unclassed h1/h2/h4 and rely on these. index.php's own
   headings now carry their own classes (ss-h1, ss-h2) which take precedence
   by specificity, so there is no conflict. */
h1 {
  font-size: 32px; line-height: 1.15; letter-spacing: -0.02em; margin: 24px 0 12px;
  color: var(--text-light);
}
h2 { font-size: 22px; letter-spacing: -0.01em; margin: 40px 0 14px; color: var(--text-light); }
h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em;
     color: var(--muted); margin: 22px 0 8px; }

.notice {
  background: var(--amber-bg); border: 1px solid rgba(255, 210, 63, 0.3); color: var(--amber);
  padding: 12px 14px; border-radius: 7px; margin: 20px 0; font-size: 15px;
}

/* --- running --------------------------------------------------------------- */
.running { padding-top: 12px; }
/* Long hostnames on phones: same word-break treatment as the finished report. */
.running h1 { font-size: 22px; margin: 0 0 18px; word-break: break-word; }
.bar { height: 8px; background: var(--bg-panel); border-radius: 5px; overflow: hidden; margin: 18px 0 10px; }
.bar-fill { height: 100%; background: var(--cyan); box-shadow: 0 0 12px rgba(56,225,255,.5); transition: width .4s ease; }
.step { font-weight: 600; margin: 0 0 18px; color: var(--text-light); }
.steps { list-style: none; padding: 0; margin: 0; font-size: 15px; color: var(--muted); }
.steps li { padding: 5px 0 5px 26px; position: relative; }
.steps li::before { content: "○"; position: absolute; left: 4px; }
.steps li.done { color: var(--muted); }
.steps li.done::before { content: "●"; color: var(--good); }
.steps li.now { color: var(--text-light); font-weight: 600; }
.steps li.now::before { content: "◐"; color: var(--cyan); }
.patience { font-size: 14px; color: var(--muted); margin-top: 20px; }

/* --- hero (report) ---------------------------------------------------------- */
.hero {
  display: flex; gap: 20px; align-items: center; flex-wrap: wrap;
  border: 1px solid var(--border); border-radius: 12px;
  padding: 22px; margin: 28px 0; background: var(--bg-panel);
}
.hero-grade { display: flex; align-items: baseline; gap: 12px; }
.hero-grade .g { font-family: 'Anton', sans-serif; font-size: 56px; line-height: 1; letter-spacing: -0.01em; }
.hero-grade .n { font-size: 22px; font-weight: 700; color: var(--muted); }
.hero-grade .n small { font-size: 14px; font-weight: 500; }
.hero-text { flex: 1 1 240px; }
.hero-text h1 { margin: 0 0 4px; font-size: 24px; word-break: break-word; }
.hero .reds { margin: 0; font-weight: 700; color: var(--red); display: flex; align-items: center; gap: 9px; }
.hero .reds::before {
  content: ""; display: inline-block; flex: none; width: 19px; height: 14px;
  background: var(--red); clip-path: polygon(0 0, 100% 0, 74% 50%, 100% 100%, 0 100%);
  box-shadow: 0 0 9px rgba(255, 59, 59, .5);
}
.hero .reds.none { color: var(--good); }
.hero .reds.none::before { content: none; }
.hero-sub { margin: 6px 0 0; font-size: 15px; color: var(--muted); }
.grade-A .hero-grade .g, .grade-B .hero-grade .g { color: var(--good); }
.grade-C .hero-grade .g { color: var(--amber); }
.grade-D .hero-grade .g, .grade-F .hero-grade .g { color: var(--red); }

/* --- the two mirrors -------------------------------------------------------- */
.mirror { margin: 44px 0; }
.mirror-note, .serp-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; }

.serp {
  border: 1px solid var(--border); border-radius: 10px; padding: 18px;
  background: #fff; font-family: arial, sans-serif; color: #202124;
}
.serp-crumb { font-size: 13px; color: #4d5156; margin-bottom: 3px; word-break: break-all; }
.serp-title { font-size: 20px; line-height: 1.3; color: #1a0dab; }
.serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; margin-top: 4px; min-height: 22px; }
.serp-empty { color: #9aa0a8; font-style: italic; }

.card {
  border: 1px solid var(--border); border-radius: 10px; overflow: hidden;
  max-width: 460px; background: var(--bg-panel);
}
.card-img { background: #0a0a0e; line-height: 0; }
.card-img img { width: 100%; height: 240px; object-fit: cover; display: block; }
.card-img-small img { object-fit: contain; background: #1c1c24; }
.card-img-empty {
  height: 160px; display: flex; align-items: center; justify-content: center;
  color: var(--muted); font-size: 14px; line-height: 1; background: #1c1c24;
}
.card-body { padding: 12px 14px; }
.card-host { font-size: 12px; text-transform: uppercase; color: var(--muted); letter-spacing: .03em; }
.card-title { font-weight: 600; margin: 2px 0; line-height: 1.3; color: var(--text-light); }
.card-desc { font-size: 14px; color: var(--muted); line-height: 1.4; }

/* --- sections and findings -------------------------------------------------- */
.sec { border-top: 1px solid var(--border); padding-top: 4px; }
.badge {
  font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 20px;
  vertical-align: middle; background: var(--grey-bg); color: var(--muted);
}
.badge.s3, .badge.s4 { background: var(--good-bg); color: var(--good); }
.badge.s2 { background: var(--amber-bg); color: var(--amber); }
.badge.s0, .badge.s1 { background: var(--red-bg); color: var(--red); }
.badge.na { background: var(--grey-bg); color: var(--muted); font-weight: 600; }

ul.findings { list-style: none; padding: 0; margin: 14px 0 0; }
.f { border-left: 4px solid var(--muted); background: var(--grey-bg);
     border-radius: 0 7px 7px 0; padding: 14px 16px; margin-bottom: 14px; }
.f-red { border-color: var(--red); background: var(--red-bg); }
.f-amber { border-color: var(--amber); background: var(--amber-bg); }
.f-stmt { margin: 0 0 8px; font-weight: 600; color: var(--text-light); }
/* A red finding is literally a red flag — marked with the pennant from the
   video. CSS-only so it needs no change to the PHP that renders findings. */
.f-red .f-stmt { display: flex; align-items: flex-start; gap: 10px; }
.f-red .f-stmt::before {
  content: ""; display: inline-block; flex: none; width: 18px; height: 13px; margin-top: 4px;
  background: var(--red);
  clip-path: polygon(0 0, 100% 0, 74% 50%, 100% 100%, 0 100%);
  box-shadow: 0 0 8px rgba(255, 59, 59, .5);
}
.f-meta { margin: 4px 0; font-size: 14.5px; color: var(--muted); word-break: break-word; }
.f-meta strong { color: var(--text-light); }

.clean { color: var(--good); font-weight: 600; }
ul.good { list-style: none; padding: 0; margin: 14px 0; }
ul.good li { padding: 8px 0 8px 26px; position: relative; border-bottom: 1px solid var(--border); color: var(--text-light); }
ul.good li::before { content: "✓"; position: absolute; left: 2px; color: var(--good); font-weight: 700; }
ul.notchecked { color: var(--muted); font-size: 15px; padding-left: 20px; }
ul.notchecked li { margin-bottom: 8px; }

/* --- probe table ------------------------------------------------------------ */
.probes table { width: 100%; border-collapse: collapse; margin-bottom: 8px; }
.probes td { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 15px; vertical-align: top; }
.probes td:last-child { text-align: right; font-weight: 600; white-space: nowrap; padding-left: 12px; }
.probes td.ok { color: var(--good); }
.probes td.bad { color: var(--red); }

/* --- cta --------------------------------------------------------------------- */
.cta {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--bg-panel); padding: 24px; margin: 44px 0 0;
}
.cta h2 { margin-top: 0; }
.cta p { color: var(--muted); }
.cta-small { font-size: 14px; color: var(--muted); }
.keep { font-size: 14px; color: var(--muted); margin-top: 28px; }

@media (min-width: 620px) {
  h1 { font-size: 36px; }
  .hero-grade .g { font-size: 66px; }
}

/* --- talk.php: the personalized "talk to a human" landing page ----------
 * Same token family as report.php/unsub.php (this page is only ever reached
 * FROM a report), reusing .f/.f-red/.findings verbatim so the one quoted
 * finding looks exactly like it did in the real report. */
.talk-hero { padding: 8px 0 4px; }
.talk-eyebrow {
  margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted);
}
.talk-score { margin: 6px 0 0; font-size: 16px; color: var(--text-light); }
.talk-note { font-size: 14px; color: var(--muted); margin: 10px 0 0; line-height: 1.5; }

/* Honeypot for talk.php (index.php uses .ss-hp). Must stay hidden. */
.hp { position: absolute; left: -9999px; }

.alert {
  background: var(--red-bg); border: 1px solid rgba(255, 59, 59, 0.3); color: #ff8080;
  padding: 12px 14px; border-radius: 7px; margin: 20px 0; font-size: 15px;
}

.talk-form { display: flex; flex-direction: column; gap: 16px; margin-top: 18px; }
.talk-field { display: flex; flex-direction: column; gap: 6px; }
.talk-field label { font-size: 13px; font-weight: 600; color: var(--text-light); }
.talk-field input, .talk-field textarea {
  padding: 12px 14px; font-size: 15px; font-family: inherit;
  border: 1px solid var(--border); border-radius: 7px;
  background: var(--bg-panel); color: var(--text-light); resize: vertical;
}
.talk-field input[readonly] { color: var(--muted); }
.talk-field input:focus, .talk-field textarea:focus {
  outline: 2px solid var(--cyan); outline-offset: 1px; border-color: var(--cyan);
}
.talk-form button {
  margin-top: 4px; padding: 15px 20px; width: 100%;
  font-size: 17px; font-weight: 600; color: #fff; background: var(--purple);
  border: 0; border-radius: 7px; cursor: pointer; transition: all .2s ease;
}
.talk-form button:hover { background: var(--purple-hover); transform: translateY(-1px); }
.talk-sent p { color: var(--text-light); }

/* =============================================================================
 * SITESCOPE LANDING PAGE -- ss-* namespace
 *
 * Ported from the spec "SiteScope Landing Page -- Visual & Build Spec"
 * (2026-10-08), ss-prefixed so nothing collides with the report/unsub rules.
 * Tokens are literal to the spec, deliberately separate from the --bg-dark /
 * --cyan family above.
 *
 * SVG attributes in index.php are real kebab-case (stroke-width, etc.), not
 * React camelCase, which plain HTML silently ignores.
 * ========================================================================= */

:root {
  --ss-bg: #0A0F1E;
  --ss-bg-raised: #121a33;
  --ss-border: #232c4d;
  --ss-input-border: #2a3150;
  --ss-cyan: #38E1FF;
  --ss-red: #FF3B3B;
  --ss-yellow: #FFD23F;
  --ss-green: #2ECC71;
  --ss-white: #F6F7FB;
  --ss-text-light: #C9D2EE;
  --ss-text-med: #8c97c0;
  --ss-text-dim: #7C89B0;
  --ss-text-dimmer: #5c6690;
}

.ss-page {
  width: 100%;
  background: radial-gradient(ellipse 1200px 700px at 50% -5%, var(--ss-bg-raised) 0%, var(--ss-bg) 55%);
  display: flex; flex-direction: column; align-items: center;
  overflow-x: hidden;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--ss-white);
  -webkit-font-smoothing: antialiased;
}
body:has(.ss-page) { margin: 0; background: var(--ss-bg); }
.ss-page a { color: var(--ss-cyan); text-decoration: none; }
.ss-page a:hover { color: #7CEEFF; }
.ss-page ::selection { background: var(--ss-cyan); color: var(--ss-bg); }
.ss-page input { font-family: 'Space Grotesk', sans-serif; }
.ss-page input:focus { outline: 2px solid var(--ss-cyan); outline-offset: 2px; }

@keyframes flagFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes scanSweep { 0% { top: -14%; } 100% { top: 112%; } }
@keyframes ringPulse  { 0% { transform: scale(.85); opacity: .55; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes softGlow   { 0%, 100% { box-shadow: 0 0 18px 2px rgba(56,225,255,.35); } 50% { box-shadow: 0 0 34px 8px rgba(56,225,255,.55); } }
@keyframes gridDrift  { 0% { background-position: 0 0; } 100% { background-position: 90px 140px; } }
@keyframes dash       { 0% { background-position: 0 0; } 100% { background-position: 16px 0; } }

/* ---------- Hero ---------- */
.ss-hero {
  width: 100%; max-width: 860px; padding: 72px 24px 56px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  box-sizing: border-box;
}
.ss-logolock { display: flex; align-items: center; gap: 12px; margin-bottom: 44px; }
.ss-wordmark { font-family: 'Anton', sans-serif; font-size: 22px; letter-spacing: 0.5px; }

/* The finished logo image at hero size (a small icon beside small text is a
   compact lockup no matter what number sits on it). */
.ss-hero-logo {
  display: block; margin: 0 auto 36px; height: 220px; width: auto;
}
@media (min-width: 620px) {
  .ss-hero-logo { height: 300px; }
}

.ss-h1 {
  margin: 0; font-family: 'Anton', sans-serif; font-weight: 400;
  font-size: clamp(40px, 7vw, 78px); line-height: 1.04; letter-spacing: 0.5px;
}
.ss-clarifier {
  margin-top: 18px; font-family: 'JetBrains Mono', monospace;
  font-size: 13px; letter-spacing: 0.4px; color: var(--ss-cyan);
}
.ss-subhead {
  margin: 20px 0 0; max-width: 560px; font-size: clamp(17px, 2.4vw, 21px);
  line-height: 1.55; color: var(--ss-text-light); font-weight: 400;
}
/* .ss-page a is (0,1,1); .ss-cta alone is (0,1,0) and lost, giving cyan text
   on a cyan pill. Out-specified with .ss-page a.ss-cta (0,2,1). */
.ss-page a.ss-cta {
  margin-top: 36px; display: inline-flex; align-items: center; gap: 10px;
  padding: 18px 36px; border-radius: 40px; background: var(--ss-cyan); color: var(--ss-bg);
  font-family: 'Anton', sans-serif; font-size: 20px; letter-spacing: 0.5px;
  animation: softGlow 2.6s ease-in-out infinite; cursor: pointer;
}
.ss-page a.ss-cta:hover { color: var(--ss-bg); }
.ss-reassure {
  margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: center;
  font-family: 'JetBrains Mono', monospace; font-size: 13px; letter-spacing: 0.5px;
  color: var(--ss-text-dim);
}

/* ---------- Shared section shell ---------- */
.ss-section { width: 100%; box-sizing: border-box; }
.ss-section-1040 {
  max-width: 1040px; padding: 40px 24px 64px;
  display: flex; flex-direction: column; align-items: center;
}
.ss-h2 {
  margin: 0 0 10px; font-family: 'Anton', sans-serif; font-weight: 400;
  font-size: clamp(26px, 4vw, 38px); text-align: center;
}
.ss-section-sub {
  margin: 0 0 40px; max-width: 520px; text-align: center;
  color: var(--ss-text-med); font-size: 16px; line-height: 1.5;
}

/* ---------- Proof / Demo mockup ---------- */
.ss-mock {
  width: 100%; max-width: 640px; border-radius: 28px; background: var(--ss-bg-raised);
  border: 1px solid var(--ss-border); box-shadow: 0 40px 90px rgba(0,0,0,.45);
  overflow: hidden; position: relative;
}
.ss-mock-chrome {
  height: 48px; display: flex; align-items: center; gap: 8px; padding: 0 18px;
  border-bottom: 1px solid var(--ss-border);
}
.ss-mock-dot { width: 10px; height: 10px; border-radius: 50%; background: #3a4260; }
.ss-mock-url {
  margin-left: 10px; padding: 5px 14px; border-radius: 14px; background: var(--ss-bg);
  color: var(--ss-text-dim); font-family: 'JetBrains Mono', monospace; font-size: 12px;
}
.ss-mock-body { position: relative; padding: 40px 40px 48px; overflow: hidden; }
.ss-mock-sweep {
  position: absolute; left: 0; right: 0; height: 120px;
  background: linear-gradient(transparent, rgba(56,225,255,.28));
  animation: scanSweep 3.6s linear infinite; pointer-events: none;
}
.ss-mock-flagged {
  outline: 2px dashed var(--ss-red); outline-offset: 6px; border-radius: 8px;
}
.ss-pennant-wrap { position: absolute; animation: flagFloat 3.4s ease-in-out infinite; }
.ss-pennant-tag {
  position: relative; padding: 8px 14px; background: var(--ss-red); color: #fff;
  font-family: 'Anton', sans-serif; font-size: 13px; letter-spacing: .3px;
  border-radius: 3px 8px 8px 3px; white-space: nowrap;
  box-shadow: 0 6px 14px rgba(0,0,0,.35);
}
.ss-mock-strip {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; border-top: 1px solid var(--ss-border);
  font-family: 'JetBrains Mono', monospace; font-size: 13px;
}

/* ---------- What SiteScope checks ---------- */
.ss-grid2 { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; width: 100%; }
.ss-card {
  background: var(--ss-bg-raised); border: 1px solid var(--ss-border);
  border-radius: 18px; padding: 28px;
}
.ss-chip {
  width: 48px; height: 48px; border-radius: 24px; background: rgba(56,225,255,.12);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.ss-card-h { margin: 0 0 8px; font-family: 'Space Grotesk', sans-serif; font-weight: 700; font-size: 19px; }
.ss-card-p { margin: 0; color: var(--ss-text-med); font-size: 15px; line-height: 1.55; }

/* ---------- The Promise ---------- */
.ss-grid4 { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 16px; width: 100%; }
.ss-stamp { border: 2px solid; border-radius: 14px; padding: 18px 16px; text-align: center; }
.ss-stamp-h { font-family: 'Anton', sans-serif; font-size: 17px; letter-spacing: .3px; }
.ss-stamp-sub { margin-top: 8px; font-size: 12.5px; color: var(--ss-text-dim); line-height: 1.4; }

/* ---------- Scan form ---------- */
.ss-formcard {
  width: 100%; max-width: 480px; background: var(--ss-bg-raised); border: 1px solid var(--ss-border);
  border-radius: 24px; padding: 40px 36px; box-shadow: 0 30px 70px rgba(0,0,0,.4);
  box-sizing: border-box;
}
.ss-form-h { margin: 0 0 8px; font-family: 'Anton', sans-serif; font-weight: 400; font-size: 30px; text-align: center; }
.ss-form-sub { margin: 0 0 30px; text-align: center; color: var(--ss-text-med); font-size: 15px; }
.ss-form { display: flex; flex-direction: column; gap: 18px; }
.ss-field { display: flex; flex-direction: column; gap: 6px; }
.ss-field label { font-size: 13px; color: var(--ss-text-light); font-weight: 500; }
.ss-field .ss-opt { font-weight: 400; color: var(--ss-text-dim); }
.ss-field input {
  padding: 13px 16px; border-radius: 10px; border: 1px solid var(--ss-input-border);
  background: var(--ss-bg); color: var(--ss-white); font-size: 15px;
}
.ss-field input::placeholder { color: var(--ss-text-dim); }
.ss-hp { position: absolute; left: -9999px; }
.ss-consent {
  display: flex; gap: 10px; align-items: flex-start;
  background: var(--ss-bg); border: 1px solid var(--ss-input-border);
  border-radius: 10px; padding: 14px; font-size: 13.5px; line-height: 1.5;
  color: var(--ss-text-light);
}
.ss-consent input { margin-top: 3px; flex: none; width: 18px; height: 18px; }
.ss-submit {
  margin-top: 8px; padding: 17px; border: none; border-radius: 40px;
  background: var(--ss-cyan); color: var(--ss-bg); font-family: 'Anton', sans-serif;
  font-size: 19px; letter-spacing: .5px; cursor: pointer;
  animation: softGlow 2.6s ease-in-out infinite;
}
.ss-form-micro { margin: 18px 0 0; text-align: center; font-size: 12.5px; color: var(--ss-text-dim); line-height: 1.5; }
.ss-alert {
  margin: 0 0 18px; padding: 12px 14px; border-radius: 10px; font-size: 14px;
  background: rgba(255,59,59,.12); border: 1px solid rgba(255,59,59,.35); color: #ff9a9a;
}

/* ---------- The "we're right here" ad banner (lib/hpm_ad.php) ------------
 * Styled off literal hex values so it looks identical on index.php and
 * report.php. Purple (HPM's brand accent), so it reads as the company
 * speaking. CTA color rule written as .hpm-ad .hpm-ad-cta (0,2,0) from the
 * start to avoid the .ss-cta specificity trap. */
.hpm-ad {
  width: 100%; max-width: 640px; margin: 8px auto 0; box-sizing: border-box;
  background: linear-gradient(135deg, rgba(123,92,255,.18), rgba(123,92,255,.05));
  border: 1.5px solid rgba(123,92,255,.5);
  border-radius: 18px; padding: 26px 28px;
  box-shadow: 0 20px 50px rgba(123,92,255,.15);
}
.hpm-ad-eyebrow {
  font-family: 'JetBrains Mono', monospace, 'Courier New', monospace;
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: #c3b5ff; margin-bottom: 10px;
}
.hpm-ad-body { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.hpm-ad-text { flex: 1 1 280px; }
.hpm-ad-h {
  margin: 0 0 6px; font-family: 'Space Grotesk', 'Inter', sans-serif; font-weight: 700;
  font-size: 20px; color: #F6F7FB; line-height: 1.25;
}
.hpm-ad-p { margin: 0; font-size: 14.5px; line-height: 1.5; color: #c7c4e0; }
.hpm-ad .hpm-ad-cta {
  flex: none; display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 22px; border-radius: 999px; background: #7b5cff; color: #fff;
  font-family: 'Anton', sans-serif; font-size: 15px; letter-spacing: .3px;
  white-space: nowrap; transition: all .2s ease;
}
.hpm-ad .hpm-ad-cta:hover { background: #8e75ff; color: #fff; transform: translateY(-1px); }
@media (max-width: 480px) {
  .hpm-ad { padding: 22px 20px; }
  .hpm-ad-body { flex-direction: column; align-items: stretch; }
  .hpm-ad .hpm-ad-cta { justify-content: center; }
}

/* ---------- Landing page footer ---------- */
.ss-footer {
  width: 100%; max-width: 1040px; padding: 0 24px 56px; box-sizing: border-box;
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  text-align: center;
}
.ss-footer-credit { font-size: 12px; color: var(--ss-text-dimmer); }
/* Out-specified against .ss-page a, and not clickable. */
.ss-page .ss-footer-credit a {
  color: var(--ss-text-dim); pointer-events: none; cursor: default; text-decoration: none;
}

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .ss-grid2 { grid-template-columns: 1fr; }
  .ss-grid4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
}
@media (max-width: 420px) {
  .ss-grid4 { grid-template-columns: 1fr; }
}

/* Reduced-motion visitors get the same content, just still. */
@media (prefers-reduced-motion: reduce) {
  .ss-cta, .ss-submit, .ss-mock-sweep, .ss-pennant-wrap {
    animation: none !important;
  }
}