/* Ghost Agent Labs: styled to match the Ghost Inspector brand (ghostinspector.com). */
:root {
  /* Ghost Inspector palette */
  --forest: #09211a;      /* hero, footer */
  --forest-2: #0d2b22;    /* dark cards, ink on light */
  --pine: #223731;        /* nav pill, dark gradients */
  --green: #1d9e75;       /* primary buttons, accents */
  --green-dark: #0f6e56;  /* hover, eyebrow on light */
  --green-light: #5dcaa5; /* wordmark, accents on dark */
  --mint: #e1f5ee;        /* soft cards, pills */
  --cream: #f0f3eb;       /* alternate sections */
  --cream-2: #f3f2eb;
  --paper: #fcfbf7;
  --sage: #d6dbcd;        /* borders */

  --navy: var(--forest-2); /* heading color (kept for existing rules) */
  --teal: var(--green);
  --teal-dark: var(--green-dark);
  --blue: var(--green-dark);
  --ink: #17261f;
  --muted: #4d5f57;
  --rule: var(--sage);
  --tint: var(--cream);
  --card: #ffffff;
  --bg: #ffffff;
  --pass: #1d9e75;
  --warn: #d98a06;
  --fail: #d6453d;

  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 1px 2px rgba(9, 33, 26, .06), 0 12px 32px rgba(9, 33, 26, .10);
  --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --display: "Funnel Display", "Manrope", system-ui, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
section[id] { scroll-margin-top: 96px; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; }
a { color: var(--green-dark); }
h1, h2, h3 { color: var(--forest-2); line-height: 1.12; margin: 0 0 .5em; }
h1, h2 { font-family: var(--display); font-weight: 500; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4rem); letter-spacing: -.03em; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.6rem); letter-spacing: -.025em; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
code { overflow-wrap: anywhere; font-family: var(--mono); font-size: .9em; background: var(--mint); color: var(--forest-2); padding: .1em .4em; border-radius: 6px; }
pre { background: var(--forest-2); color: #d7efe6; padding: 18px 20px; border-radius: var(--radius-sm); overflow-x: auto; }
pre code { background: none; color: inherit; padding: 0; }

.container { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 720px) { .container { padding: 0 32px; } }
.narrow { max-width: 820px; }
.muted { color: var(--muted); }
.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 10; border-radius: 999px; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--green-light); outline-offset: 2px; }

.eyebrow {
  font-size: .78rem; font-weight: 700; letter-spacing: .12em;
  text-transform: uppercase; color: var(--green); margin-bottom: .7em;
}

/* Buttons: Ghost Inspector pills */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: .5em; border: 1px solid transparent; cursor: pointer; text-decoration: none;
  font: 600 .95rem/1 var(--font); color: #fff; background: var(--green);
  padding: 1rem 1.6rem; border-radius: 999px; white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s, transform .15s;
}
.btn:hover { background: var(--green-dark); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .65; cursor: progress; }
.btn-small { padding: .65rem 1.1rem; font-size: .85rem; }
.btn-light { background: var(--green-light); color: var(--forest); }
.btn-light:hover { background: var(--mint); }
.btn-outline { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .85); }
.btn-outline:hover { background: rgba(255, 255, 255, .1); }
.btn .arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Header: floating pill nav on forest green */
.site-header {
  position: sticky; top: 0; z-index: 5;
  background: var(--forest); padding: 14px 0;
}
.header-inner {
  display: flex; align-items: center; gap: 24px; height: 56px;
  background: var(--pine); border-radius: 999px;
  padding-left: 22px; padding-right: 8px;
}
@media (min-width: 720px) { .header-inner { padding-left: 26px; padding-right: 8px; } }
.brand {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
  color: var(--green-light); font: 500 1.3rem/1 var(--display); letter-spacing: -.02em; white-space: nowrap;
}
@media (max-width: 359px) { .brand span { display: none; } }
@media (max-width: 420px) {
  .brand { font-size: 1.1rem; gap: 8px; }
  .brand img { width: 28px; height: 28px; }
  .header-inner { gap: 10px; padding-left: 14px; padding-right: 6px; }
  .header-inner .btn-small { padding: .6rem .85rem; font-size: .8rem; }
}
.header-inner nav { margin: 0 auto; }
.nav-links { display: none; list-style: none; margin: 0; padding: 0; gap: 32px; }
.nav-links a { color: #fff; text-decoration: none; font-size: .95rem; font-weight: 500; }
.nav-links a:hover { color: var(--green-light); }
.header-inner .btn-small { margin-left: auto; }
@media (min-width: 820px) {
  .nav-links { display: flex; }
  .header-inner .btn-small { margin-left: 0; }
  .header-inner > .brand + .btn-small { margin-left: auto; }
}

/* Hero */
.hero {
  background:
    radial-gradient(800px 420px at 85% 10%, rgba(29, 158, 117, .22), transparent 65%),
    var(--forest);
  color: #d7e6df;
  padding: 48px 0 72px;
  border-radius: 0 0 40px 40px;
}
.hero h1 { color: #fff; }
.hero .eyebrow { color: var(--green-light); }
.hero .lead { font-size: 1.15rem; color: #d7e6df; max-width: 34em; }
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 72px 0 104px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; }
}

.scan-form { margin-top: 32px; max-width: 580px; }
.scan-row { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 560px) { .scan-row { flex-direction: row; } }
.scan-row input {
  flex: 1; min-width: 0; font: 500 1rem var(--font); color: var(--ink);
  padding: 1rem 1.4rem; border-radius: 999px; border: 1px solid var(--sage); background: #fff;
}
.scan-row input:focus { outline: 3px solid var(--green-light); outline-offset: 1px; }
.hero .scan-row {
  background: #fff; border-radius: 28px; padding: 6px;
}
.hero .scan-row input { border: 0; }
.hero .scan-row input:focus { outline: none; }
.hero .scan-row:focus-within { outline: 3px solid var(--green-light); outline-offset: 2px; }
.form-help { font-size: .9rem; color: #9fbdb1; margin-top: 14px; }
.form-error { color: #ffb4ae; font-size: .95rem; margin: 10px 0 0; font-weight: 600; }
.results .form-error, .unlock .form-error { color: var(--fail); }
.turnstile:empty { display: none; }
.turnstile { margin-top: 12px; }

/* Cards */
.card {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--radius); box-shadow: var(--shadow);
}
.score-card {
  position: relative; padding: 28px; color: var(--ink); max-width: 480px;
  margin-left: auto; margin-right: auto; border: 0;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .35);
}
.sample-tag {
  position: absolute; top: -13px; right: 20px; background: var(--green-light);
  color: var(--forest); font-size: .72rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; padding: 5px 12px; border-radius: 999px;
}
.score-head { display: flex; gap: 18px; align-items: center; margin-bottom: 20px; }
.score-domain { font-weight: 700; color: var(--forest-2); margin: 0 0 4px; word-break: break-all; }
.score-verdict { margin: 0; color: var(--muted); font-size: .95rem; }

/* Score ring */
.ring { --value: 0; --size: 104px; position: relative; width: var(--size); height: var(--size); flex: none; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 11; }
.ring-bg { stroke: var(--mint); }
.ring-fg {
  stroke: var(--pass); stroke-linecap: round;
  stroke-dasharray: 326.7; stroke-dashoffset: calc(326.7 - 326.7 * var(--value) / 100);
  transition: stroke-dashoffset .8s ease;
}
.ring-fg.warn { stroke: var(--warn); }
.ring-fg.fail { stroke: var(--fail); }
.ring-label {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; line-height: 1;
}
.ring-label strong { font: 500 2.1rem/1 var(--display); color: var(--forest-2); letter-spacing: -.03em; }
.ring-label span { font-size: .78rem; color: var(--muted); margin-top: 4px; }

/* Category bars */
.cat-bars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.cat-bars li { display: grid; grid-template-columns: 120px 1fr 46px; align-items: center; gap: 10px; font-size: .9rem; font-weight: 500; }
.cat-bars b { text-align: right; color: var(--forest-2); font-variant-numeric: tabular-nums; }
.bar { height: 8px; background: var(--mint); border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--pass); border-radius: 99px; transition: width .6s ease; }
.bar i.warn { background: var(--warn); }
.bar i.fail { background: var(--fail); }

.agent-step {
  display: flex; gap: 12px; margin-top: 20px; padding: 14px 16px;
  background: #fdf1f0; border-radius: var(--radius-sm); font-size: .9rem; color: #5a2a26;
}
.step-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; flex: none; background: var(--pass); }
.step-dot.fail { background: var(--fail); }
.step-dot.warn { background: var(--warn); }

/* Strip */
.strip { background: var(--bg); }
.strip-inner {
  display: grid; gap: 4px; padding-top: 28px; padding-bottom: 28px;
  font-size: .95rem; color: var(--muted);
}
.strip-inner p { margin: 0; }
.strip strong { color: var(--forest-2); }
@media (min-width: 820px) { .strip-inner { grid-template-columns: 1fr 1fr; } .strip-inner p:last-child { text-align: right; } }

/* Sections */
.section { padding: 88px 0; }
.section.alt { background: var(--cream); }
.section-lead { font-size: 1.1rem; color: var(--muted); max-width: 44em; margin-bottom: 36px; }
.section h2 + .grid-2, .section h2 + .grid-3, .section h2 + .steps { margin-top: 32px; }
.grid-3, .grid-2 { display: grid; gap: 20px; }
@media (min-width: 760px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-2 { grid-template-columns: repeat(2, 1fr); } }
.feature { padding: 28px; box-shadow: none; background: var(--cream); border: 0; }
.feature p { color: var(--muted); margin: 0; }
.icon {
  width: 48px; height: 48px; border-radius: 50%; background: var(--green);
  display: grid; place-items: center; margin-bottom: 18px;
}
.icon svg { width: 24px; height: 24px; fill: none; stroke: #fff; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Green gradient band, like Ghost Inspector's "Easy to get started" */
.section.green {
  background: linear-gradient(180deg, var(--green) 0%, var(--pine) 100%);
  color: #e6f3ee;
}
.section.green h2 { color: #fff; }
.section.green .eyebrow { color: var(--mint); }
.section.green .section-lead { color: #d0e8de; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 20px; } }
.steps li { background: var(--mint); border-radius: var(--radius); padding: 28px; color: var(--forest-2); }
.steps li:last-child { background: var(--green-dark); color: #e6f3ee; }
.steps li:last-child h3 { color: var(--green-light); }
.steps li:last-child p { color: #d0e8de; }
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--green); color: #fff; font: 600 1.1rem/1 var(--display); margin-bottom: 16px;
}
.steps li:last-child .step-num { background: #fff; color: var(--green-dark); }

.check-cat { padding: 28px; box-shadow: none; background: var(--cream); border: 0; }
.check-cat header { display: flex; justify-content: space-between; align-items: baseline; }
.check-cat h3 { margin: 0; font: 500 1.5rem/1.2 var(--display); letter-spacing: -.02em; }
.check-cat .muted { margin: 6px 0 16px; }
.check-cat.highlight { background: var(--forest-2); color: #d7e6df; }
.check-cat.highlight h3 { color: #fff; }
.check-cat.highlight .muted { color: #9fbdb1; }
.check-cat.highlight .pts { background: var(--green); color: #fff; }
.pts {
  font-weight: 700; color: var(--green-dark); font-size: .8rem; background: var(--mint);
  padding: 4px 10px; border-radius: 999px; white-space: nowrap;
}
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 28px; }
.ticks li::before {
  content: ""; position: absolute; left: 2px; top: .45em; width: 13px; height: 7px;
  border-left: 2.5px solid var(--green); border-bottom: 2.5px solid var(--green); transform: rotate(-45deg);
}
.check-cat.highlight .ticks li::before { border-color: var(--green-light); }

/* Dark tiles on a mint-to-green gradient, like Ghost Inspector's feature cards */
.section.mint { background: linear-gradient(180deg, var(--mint) 0%, var(--green-light) 100%); }
.section.mint .eyebrow { color: var(--green-dark); }
.section.mint .feature { background: var(--forest-2); color: #d7e6df; min-height: 220px; display: flex; flex-direction: column; }
.section.mint .feature h3 { color: #fff; font: 500 1.6rem/1.15 var(--display); letter-spacing: -.02em; }
.section.mint .feature p { color: #c4dbd1; }
.section.mint .grid-3 > :nth-child(2) { background: linear-gradient(160deg, var(--green-dark), var(--forest-2)); }
.section.mint .grid-3 > :nth-child(3) { background: linear-gradient(160deg, var(--pine), #000); }

/* FAQ */
.faq { margin-top: 28px; display: grid; gap: 12px; }
.faq details { background: var(--cream); border-radius: var(--radius-sm); padding: 0 24px; }
.faq details[open] { background: var(--mint); }
.faq summary {
  cursor: pointer; list-style: none; font-weight: 600; color: var(--forest-2);
  padding: 20px 36px 20px 0; position: relative; font-size: 1.05rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 0; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 1.2rem; line-height: 1; font-weight: 500;
}
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); margin: 0 0 20px; }

/* CTA: forest band, headline left and pill right */
.cta { background: var(--forest); color: #c4dbd1; padding: 80px 0 40px; }
.cta h2 { color: #fff; margin-bottom: .3em; }
.cta-inner { display: flex; flex-direction: column; gap: 24px; align-items: flex-start; }
.cta-inner p { margin: 0; font-size: 1.1rem; }
@media (min-width: 820px) { .cta-inner { flex-direction: row; justify-content: space-between; align-items: center; } }

/* Footer */
.site-footer { background: var(--forest); color: #9fbdb1; font-size: .95rem; padding: 48px 0 32px; }
.footer-inner { display: grid; gap: 32px; }
.footer-inner p { margin: 0; }
.footer-inner .brand { margin-bottom: 12px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.footer-cols h4 { color: var(--green-light); font-weight: 500; font-size: .95rem; margin: 0 0 12px; }
.footer-inner ul { list-style: none; display: grid; gap: 10px; margin: 0; padding: 0; }
.footer-inner a { color: #fff; text-decoration: none; }
.footer-inner a:hover { color: var(--green-light); }
.footer-inner .brand, .footer-inner .brand:hover { color: var(--green-light); }
.footer-legal ul { display: flex; flex-wrap: wrap; gap: 24px; }
.footer-legal { border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 24px; font-size: .85rem; color: #7d978c; }
@media (min-width: 820px) {
  .footer-inner { grid-template-columns: 1.2fr 1fr; }
  .footer-legal { grid-column: 1 / -1; }
}

/* Results */
.results { padding: 56px 0; background: var(--cream); }
.results-card, .waitlist-card { padding: 24px; border: 0; }
@media (min-width: 720px) { .results-card, .waitlist-card { padding: 40px; } }
.waitlist-card { max-width: 760px; margin: 0 auto; }
.waitlist-card .scan-row { margin-top: 8px; }
.results-head { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; margin-bottom: 32px; }
@media (min-width: 640px) { .results-head { flex-direction: row; align-items: center; } }
.results-head .ring { --size: 128px; }
.results-head h2 { margin-bottom: .25em; word-break: break-word; }
.results-body { display: grid; gap: 32px; }
@media (min-width: 900px) { .results-body { grid-template-columns: 1fr 1.4fr; } }
.results h3 { font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; color: var(--green); }
.share { font-size: .9rem; margin: 0; word-break: break-all; }

.check-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.check-list li {
  display: grid; grid-template-columns: 22px 1fr; gap: 12px; padding: 14px 16px;
  border-radius: var(--radius-sm); background: var(--cream); font-size: .95rem;
}
.check-list .title { font-weight: 600; color: var(--forest-2); }
.check-list .detail { color: var(--muted); font-size: .9rem; margin-top: 2px; }
.check-list .fix { margin-top: 6px; font-size: .9rem; }
.check-list .locked { color: var(--muted); font-style: italic; }
.badge {
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; font-size: .75rem; font-weight: 700; margin-top: 1px;
}
.badge.pass { background: var(--pass); }
.badge.warn { background: var(--warn); }
.badge.fail { background: var(--fail); }
.badge.pending { background: #b9c6bf; animation: pulse 1.2s ease-in-out infinite; }
.badge.skip { background: #93a39b; }
@keyframes pulse { 50% { opacity: .4; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .badge.pending { animation: none; }
  .ring-fg, .bar i { transition: none; }
}

.agent-run { margin-top: 36px; }
.filmstrip { list-style: none; margin: 0; padding: 0 0 8px; display: flex; gap: 12px; overflow-x: auto; }
.filmstrip li {
  flex: 0 0 180px; border: 1px solid var(--rule); border-radius: var(--radius-sm); overflow: hidden;
  background: #fff; font-size: .82rem;
}
.filmstrip img { width: 100%; height: 110px; object-fit: cover; object-position: top; background: var(--cream); }
.filmstrip .cap { padding: 8px 10px; }
.filmstrip .cap b { color: var(--forest-2); display: block; }
.filmstrip li.stuck { border-color: var(--fail); }

.unlock {
  margin-top: 36px; padding: 28px; border-radius: var(--radius); background: var(--mint);
  display: grid; gap: 14px;
}
.unlock h3 { text-transform: none; letter-spacing: -.02em; font: 500 1.5rem/1.2 var(--display); color: var(--forest-2); margin: 0 0 4px; }
.unlock p { margin: 0; }
.consent { font-size: .85rem; color: var(--muted); display: flex; gap: 8px; align-items: flex-start; margin-top: 10px; }
.consent input { margin-top: 4px; accent-color: var(--green); }
.success { color: var(--green-dark); font-weight: 600; margin: 12px 0 0; }
.notice { background: #fff8e6; border: 1px solid #f3dca0; border-radius: var(--radius-sm); padding: 10px 14px; font-size: .9rem; color: #6b4e00; margin: 0 0 20px; }

/* Plain content pages (e.g. the bot page) */
.prose h2 { font-size: clamp(1.5rem, 2.6vw, 1.9rem); margin-top: 1.6em; }
.page-hero { background: var(--forest); color: #d7e6df; padding: 40px 0 64px; border-radius: 0 0 40px 40px; }
.page-hero h1 { color: #fff; margin: 0; }
.page-hero .eyebrow { color: var(--green-light); }
