/* ==========================================================================
   AI Visibility Snapshot — shared stylesheet
   Built from DESIGN.md: palette, type scale, spacing, components, motion.
   Fonts: Archivo (400/500/800) for display and body, system monospace for
   evidence text (prompts, timestamps, model names, report mock).
   ========================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Archivo:wght@400;500;800&display=swap");

/* --------------------------------------------------------------------------
   Design tokens
   -------------------------------------------------------------------------- */

:root {
  /* Palette — exactly six tokens, light mode only */
  --ink: #11161c;       /* all body and headline text */
  --paper: #ffffff;      /* page background */
  --stone: #f3f1ec;      /* alternating section bands and cards */
  --line: #dcd7ce;       /* 1px borders and rules */
  --signal: #c8451e;     /* accent: primary button, price, hero underline, report highlight */
  --ok: #156b4e;         /* green check marks and "Named" state only */

  /* Fonts */
  --font-display: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-body: "Archivo", ui-sans-serif, system-ui, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Type scale: size / line-height in px */
  --text-hero: clamp(32px, 6vw, 48px);
  --text-hero-lh: 1.0833; /* ~52px at 48px */
  --text-h2: 30px;
  --text-h2-lh: 36px;
  --text-h3: 22px;
  --text-h3-lh: 30px;
  --text-body: 17px;
  --text-body-lh: 27px;
  --text-small: 15px;
  --text-small-lh: 24px;
  --text-label: 13px;
  --text-label-lh: 20px;
  --text-mono: 13px;
  --text-mono-lh: 20px;

  /* Spacing scale (8px base) */
  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 40px;
  --sp-5: 64px;
  --sp-6: 96px;

  --section-pad-desktop: 96px;
  --section-pad-mobile: 56px;
  --max-width: 1080px;
  --text-col: 62ch;

  --radius: 6px;
  --motion-fast: 150ms ease-out;
  --motion-chevron: 200ms ease-out;
}

/* --------------------------------------------------------------------------
   Reset & base
   -------------------------------------------------------------------------- */

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--ink);
  background: var(--paper);
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
}

img, svg {
  max-width: 100%;
  display: block;
}

/* Layout helpers */

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--sp-3);
}

.col-text {
  max-width: var(--text-col);
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: var(--sp-3);
}

@media (max-width: 760px) {
  .grid-12 {
    grid-template-columns: 1fr;
  }
}

/* --------------------------------------------------------------------------
   Headings & text
   -------------------------------------------------------------------------- */

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 var(--sp-2);
}

h1 {
  font-size: var(--text-hero);
  line-height: var(--text-hero-lh);
  letter-spacing: -0.02em;
}

h2 {
  font-size: var(--text-h2);
  line-height: var(--text-h2-lh);
  letter-spacing: -0.02em;
}

h3 {
  font-size: var(--text-h3);
  line-height: var(--text-h3-lh);
  font-weight: 800;
}

p {
  margin: 0 0 var(--sp-2);
}

ul, ol {
  padding-left: 1.2em;
  margin: 0 0 var(--sp-2);
}

li {
  margin-bottom: var(--sp-1);
}

a {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  transition: color var(--motion-fast), opacity var(--motion-fast);
}

a:hover {
  opacity: 0.8;
}

.eyebrow {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-label);
  line-height: var(--text-label-lh);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  margin: 0 0 var(--sp-2);
}

.lede {
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  color: var(--ink);
}

.small {
  font-size: var(--text-small);
  line-height: var(--text-small-lh);
}

.label {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-label);
  line-height: var(--text-label-lh);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.legal {
  font-size: var(--text-label);
  line-height: var(--text-label-lh);
  color: var(--ink);
}

.mono {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  line-height: var(--text-mono-lh);
}

.accent {
  color: var(--signal);
}

.accent-underline {
  text-decoration: underline;
  text-decoration-color: var(--signal);
  text-decoration-thickness: 3px;
  text-underline-offset: 4px;
}

/* --------------------------------------------------------------------------
   Focus
   -------------------------------------------------------------------------- */

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
summary:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   Header / nav
   -------------------------------------------------------------------------- */

.site-header {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-2) 0;
  background: var(--paper);
}

.header-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-1);
}

.wordmark {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h3);
  color: var(--ink);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: var(--sp-3);
}

.nav a {
  text-decoration: none;
  color: var(--ink);
  font-weight: 500;
  font-size: var(--text-small);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
}

.nav a:hover {
  color: var(--signal);
}

/* --------------------------------------------------------------------------
   Sections
   -------------------------------------------------------------------------- */

main {
  display: block;
}

.section {
  padding: var(--section-pad-mobile) 0;
}

@media (min-width: 760px) {
  .section {
    padding: var(--section-pad-desktop) 0;
  }
}

.section-stone {
  background: var(--stone);
}

.section-heading {
  margin-bottom: var(--sp-3);
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  padding-top: var(--sp-5);
  padding-bottom: var(--sp-4);
}

@media (min-width: 760px) {
  .hero {
    padding-top: var(--sp-6);
  }
}

.hero h1 {
  margin-bottom: var(--sp-2);
  max-width: 20ch;
}

.hero-sub {
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  max-width: var(--text-col);
  margin-bottom: var(--sp-3);
}

.hero-cta {
  margin-bottom: var(--sp-1);
}

.hero-note {
  color: var(--ink);
  margin: var(--sp-1) 0 0;
}

.hero-timestamp {
  margin-top: var(--sp-1);
  color: var(--ink);
}

/* --------------------------------------------------------------------------
   Buttons & links
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 14px 28px;
  border-radius: var(--radius);
  text-decoration: none;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: var(--text-body);
  line-height: 1;
  transition: background-color var(--motion-fast), border-color var(--motion-fast), opacity var(--motion-fast);
}

.btn-primary {
  background: var(--signal);
  color: var(--paper);
  border: 1px solid var(--signal);
  border-bottom: 1px solid #8f3115;
}

.btn-primary:hover {
  background: #a93a19;
  opacity: 1;
  color: var(--paper);
}

.btn-secondary {
  background: none;
  border: none;
  color: var(--signal);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  padding: 0;
  min-height: auto;
  font-weight: 500;
}

.text-link {
  color: var(--signal);
  text-decoration: underline;
  text-decoration-color: var(--signal);
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   Report mock (hero)
   -------------------------------------------------------------------------- */

.report-mock {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  position: relative;
  padding: var(--sp-3);
  max-width: 760px;
  margin: 0 auto;
}

.report-mock::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 6px;
  background: var(--signal);
  border-radius: var(--radius) var(--radius) 0 0;
}

.report-mock-header {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  line-height: var(--text-mono-lh);
  color: var(--ink);
  margin: var(--sp-2) 0 var(--sp-1);
}

.report-mock-business {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  line-height: var(--text-mono-lh);
  color: var(--ink);
  letter-spacing: 0.04em;
  margin: 0 0 var(--sp-3);
}

.report-grid {
  display: grid;
  grid-template-columns: 90px repeat(3, 1fr);
  gap: var(--sp-1);
  margin-bottom: var(--sp-3);
}

@media (max-width: 480px) {
  .report-grid {
    grid-template-columns: 62px repeat(3, 1fr);
    gap: 4px;
  }

  .result-chip {
    padding: 6px 2px;
    font-size: 11px;
    line-height: 14px;
  }
}

.report-grid .report-grid-label {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  line-height: var(--text-mono-lh);
  color: var(--ink);
  display: flex;
  align-items: center;
}

.result-chip {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  line-height: var(--text-mono-lh);
  text-align: center;
  padding: var(--sp-1) 4px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--stone);
  color: var(--ink);
}

.result-chip.is-named {
  color: var(--ok);
  border-color: var(--ok);
  background: #eaf4ef;
  font-weight: 500;
}

.report-summary {
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  line-height: var(--text-mono-lh);
  color: var(--ink);
  margin-bottom: var(--sp-3);
}

.report-fix-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.report-fix-list li {
  margin-bottom: var(--sp-1);
  font-size: var(--text-small);
  line-height: var(--text-small-lh);
}

.report-fix-list li.is-faded {
  color: var(--line);
  background: var(--line);
  border-radius: 4px;
  height: 14px;
  overflow: hidden;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Evidence block (prompts)
   -------------------------------------------------------------------------- */

.evidence {
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-2);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  line-height: var(--text-mono-lh);
  color: var(--ink);
  overflow-x: auto;
  margin: 0 0 var(--sp-2);
}

.evidence p {
  margin: 0 0 var(--sp-1);
  font-family: var(--font-mono);
  font-size: var(--text-mono);
  line-height: var(--text-mono-lh);
}

.evidence p:last-child {
  margin-bottom: 0;
}

/* --------------------------------------------------------------------------
   Check item
   -------------------------------------------------------------------------- */

.check-list {
  list-style: none;
  padding: 0;
  margin: 0 0 var(--sp-2);
}

.check-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-2);
  margin-bottom: var(--sp-2);
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
}

.check-item svg {
  flex: none;
  width: 12px;
  height: 12px;
  margin-top: 8px;
}

/* --------------------------------------------------------------------------
   Numbered step
   -------------------------------------------------------------------------- */

.step-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 760px) {
  .step-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.step {
  display: flex;
  gap: var(--sp-2);
  align-items: flex-start;
}

.step-number {
  flex: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--ink);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: var(--text-mono);
}

.step-body h3 {
  font-size: var(--text-h3);
  margin-bottom: 4px;
}

.step-body p {
  margin: 0;
  font-size: var(--text-small);
  line-height: var(--text-small-lh);
}

/* --------------------------------------------------------------------------
   Cards
   -------------------------------------------------------------------------- */

.card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-3);
}

.card h3 {
  font-size: var(--text-h3);
  line-height: var(--text-h3-lh);
}

.card-grid {
  display: grid;
  gap: var(--sp-3);
}

@media (min-width: 760px) {
  .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* --------------------------------------------------------------------------
   Price card
   -------------------------------------------------------------------------- */

.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-top: 2px solid var(--signal);
  border-radius: var(--radius);
  padding: var(--sp-4);
  max-width: 440px;
  margin: 0 auto;
}

.price-amount {
  display: flex;
  align-items: baseline;
  gap: var(--sp-1);
  margin-bottom: var(--sp-2);
}

.price-amount .price-figure {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 48px;
  line-height: 1;
  color: var(--signal);
}

.price-amount .price-suffix {
  font-size: var(--text-body);
  font-weight: 400;
  color: var(--ink);
}

.price-card .check-list {
  margin-bottom: var(--sp-3);
}

.price-card .btn {
  width: 100%;
  margin-bottom: var(--sp-2);
}

.price-upsell {
  display: block;
  margin-bottom: var(--sp-2);
  font-size: var(--text-small);
  line-height: var(--text-small-lh);
}

.price-footnote {
  font-size: var(--text-label);
  line-height: var(--text-label-lh);
  color: var(--ink);
  margin: 0;
}

/* --------------------------------------------------------------------------
   FAQ (details/summary)
   -------------------------------------------------------------------------- */

.faq-item {
  border-bottom: 1px solid var(--line);
  padding: var(--sp-2) 0;
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--sp-2);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: var(--text-h3);
  line-height: var(--text-h3-lh);
  min-height: 44px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-chevron {
  flex: none;
  width: 14px;
  height: 14px;
  transition: transform var(--motion-chevron);
}

.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}

.faq-item p {
  margin: var(--sp-2) 0 0;
  font-size: var(--text-body);
  line-height: var(--text-body-lh);
  max-width: var(--text-col);
}

/* --------------------------------------------------------------------------
   Forms
   -------------------------------------------------------------------------- */

.order-form {
  display: flex;
  flex-direction: column;
  max-width: 480px;
}

.order-form label {
  font-weight: 500;
  font-size: var(--text-small);
  margin: var(--sp-2) 0 4px;
}

.order-form input,
.order-form select,
.order-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-size: var(--text-body);
  font-family: inherit;
  width: 100%;
  min-height: 44px;
  color: var(--ink);
  background: var(--paper);
}

.order-form button {
  margin-top: var(--sp-3);
  align-self: flex-start;
  border: none;
  cursor: pointer;
}

.mailto-line {
  margin-top: var(--sp-2);
  font-size: var(--text-small);
  line-height: var(--text-small-lh);
}

.form-note {
  background: var(--stone);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: var(--sp-2);
  font-size: var(--text-small);
  line-height: var(--text-small-lh);
  margin-bottom: var(--sp-2);
}

/* --------------------------------------------------------------------------
   Tables
   -------------------------------------------------------------------------- */

.table-wrap {
  overflow-x: auto;
  margin: 0 0 var(--sp-3);
}

table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 var(--sp-3);
  font-size: var(--text-small);
}

th, td {
  text-align: left;
  padding: var(--sp-1) var(--sp-2);
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

th {
  font-weight: 800;
  font-family: var(--font-display);
}

/* --------------------------------------------------------------------------
   Checklist (printable)
   -------------------------------------------------------------------------- */

.checklist {
  list-style: none;
  padding-left: 0;
  margin: 0 0 var(--sp-3);
}

.checklist li {
  position: relative;
  padding-left: 32px;
  margin-bottom: var(--sp-2);
}

.checklist li::before {
  content: "\2610";
  position: absolute;
  left: 0;
  top: 0;
  font-size: 18px;
  color: var(--signal);
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */

.site-footer {
  padding: var(--sp-4) 0 var(--sp-5);
  border-top: 1px solid var(--line);
  font-size: var(--text-label);
  line-height: var(--text-label-lh);
}

.site-footer p {
  margin: 0 0 var(--sp-1);
}

.site-footer a {
  color: var(--ink);
  text-decoration: underline;
}

.site-footer a:hover {
  color: var(--signal);
}

/* --------------------------------------------------------------------------
   Motion
   -------------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
    animation: none !important;
  }
}

/* --------------------------------------------------------------------------
   Print
   -------------------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .btn, .hero-cta {
    display: none;
  }

  body {
    font-size: 12pt;
  }

  a {
    color: var(--ink);
    text-decoration: underline;
  }
}

/* --------------------------------------------------------------------------
   Responsive type bump
   -------------------------------------------------------------------------- */

@media (min-width: 760px) {
  body {
    font-size: 17px;
  }
}
