/* SteadyRank SYSTEM paint — verdant Apple-ish (LOCKED 2026-09-12)
   Spec: research/steadyrank-system-comps-2026-09-12.md
   No Georgia. Soft 16px cards. Glass chrome. Pill CTAs. */

:root {
  --ink: #1d1d1f;
  --ink-soft: #6e6e73;
  --paper: #f5f5f7;
  --raised: #ffffff;
  --glass: rgba(255, 255, 255, 0.72);
  --rule: rgba(0, 0, 0, 0.08);
  --accent: #16a34a;
  --accent-deep: #15803d;
  --accent-ink: #ffffff;
  --pass: #34c759;
  --fail: #ff3b30;
  --radius: 16px;
  --shadow: 0 2px 8px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08), 0 16px 40px rgba(0, 0, 0, 0.10);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(0.25, 0.1, 0.25, 1);
  --dur: 220ms;
  --focus: var(--accent);
  --max: 38rem;
  --space: 1.25rem;
  /* legacy aliases used by older rules */
  --paper-2: rgba(0, 0, 0, 0.06);
  --font-body: var(--font);
  --font-display: var(--font);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 50% -10%, #e8f5ec 0%, var(--paper) 55%);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: var(--accent);
  text-underline-offset: 0.15em;
  transition: color var(--dur) var(--ease), opacity var(--dur) var(--ease);
}

a:hover {
  color: var(--accent-deep);
}

a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  z-index: 20;
  padding: 0.4rem 0.7rem;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  border-radius: 980px;
  transform: translateY(-200%);
}

.skip:focus {
  transform: none;
}

.wrap {
  width: min(100% - 2 * var(--space), var(--max));
  margin-inline: auto;
}

/* —— Glass chrome header —— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1.25rem;
  padding: 0.85rem var(--space);
  border-bottom: 1px solid var(--rule);
  background: var(--glass);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}

.wordmark {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--ink);
}

.wordmark:hover {
  color: var(--ink);
}

.emblem {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.12));
}

.wordmark-primary {
  font-family: var(--font);
  font-size: 1.08rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.1;
}

/* Kill legacy sub everywhere */
.wordmark-sub {
  display: none !important;
}

.primary-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.primary-nav a {
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.primary-nav a:hover {
  color: var(--accent);
  text-decoration: none;
  opacity: 0.85;
}

.hero {
  padding: 2.4rem 0 2.2rem;
  border-bottom: 1px solid var(--rule);
  background: transparent;
}

.kicker {
  margin: 0 0 0.45rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

h1,
h2,
h3 {
  font-family: var(--font);
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: var(--ink);
}

h1 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.85rem, 5.5vw, 2.5rem);
}

h2 {
  margin: 0 0 1rem;
  font-size: 1.4rem;
  letter-spacing: -0.025em;
  line-height: 1.2;
}

h3 {
  margin: 0 0 0.35rem;
  font-size: 1.12rem;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.lede {
  margin: 0 0 1.25rem;
  max-width: 34rem;
  font-size: 1.1rem;
  color: var(--ink-soft);
  letter-spacing: -0.015em;
}

.cta-row {
  margin: 0;
}

/* —— Pill CTA —— */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.85rem 1.35rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1.02rem;
  letter-spacing: -0.015em;
  text-decoration: none;
  border-radius: 980px;
  border: 0;
  cursor: pointer;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, 0.06),
    0 4px 14px color-mix(in srgb, var(--accent) 35%, transparent);
  transition:
    background var(--dur) var(--ease),
    transform var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    color var(--dur) var(--ease);
}

.btn:hover {
  background: var(--accent-deep);
  color: var(--accent-ink);
  transform: scale(1.015);
}

.btn:active {
  transform: scale(0.98);
}

.btn:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.section {
  padding: 2.1rem 0;
  border-bottom: 1px solid var(--rule);
}

.offer-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1rem;
}

.offer {
  padding: 1.2rem 1.2rem;
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}

.offer:hover {
  box-shadow: var(--shadow-hover);
}

.offer .price {
  margin: 0 0 0.55rem;
  font-weight: 700;
  color: var(--ink);
}

.offer p:last-child {
  margin: 0;
  color: var(--ink-soft);
}

.beats {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.9rem;
}

.beats li {
  display: grid;
  grid-template-columns: 2rem 1fr;
  gap: 0.75rem;
  align-items: start;
}

.beat-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  background: var(--accent);
  color: var(--accent-ink);
  font-family: var(--font);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: 10px;
}

.beat-body {
  padding-top: 0.25rem;
}

.close {
  background: transparent;
  text-align: left;
}

.close h2 {
  margin-bottom: 0.45rem;
}

.close .lede {
  margin-bottom: 1.1rem;
}

.close .fine {
  margin: 0.85rem 0 0;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.site-footer {
  padding: 1.5rem 0 2rem;
  background: var(--ink);
  color: #a1a1a6;
}

.site-footer p {
  margin: 0 0 0.4rem;
  font-size: 0.92rem;
}

.site-footer a {
  color: #d2d2d7;
}

.site-footer a:hover {
  color: #fff;
}

.site-footer .fine {
  margin: 0;
  font-size: 0.82rem;
  color: #86868b;
}

@media (min-width: 640px) {
  .offer-list {
    gap: 1.1rem;
  }

  .hero {
    padding: 3rem 0 2.6rem;
  }

  .section {
    padding: 2.5rem 0;
  }
}

/* —— Rise entrance (JS IntersectionObserver) —— */
.rise {
  opacity: 0;
  transform: translateY(12px);
  transition:
    opacity 450ms var(--ease),
    transform 450ms var(--ease),
    box-shadow var(--dur) var(--ease);
}

.rise.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .rise {
    opacity: 1;
    transform: none;
    transition: none;
  }

  .btn:hover,
  .btn:active,
  .offer:hover {
    transform: none;
  }
}

/* —— /a/ audit product —— */
.audit-stack {
  margin: 0 0 1.75rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 1.1rem;
}

.audit-row {
  display: grid;
  grid-template-columns: 2.55rem 1fr;
  gap: 0.8rem;
  align-items: start;
  padding: 0.8rem 0;
  border-bottom: 1px solid var(--rule);
}

.audit-row:last-child {
  border-bottom: 0;
}

.audit-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  min-width: 44px;
  height: 2.55rem;
  min-height: 44px;
  border-radius: 12px;
  flex-shrink: 0;
  margin-top: 0.15rem;
  color: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.12);
}

.audit-mark svg {
  width: 1.35rem;
  height: 1.35rem;
  display: block;
}

.audit-mark.pass {
  background: var(--pass);
  color: #fff;
}

.audit-mark.fail {
  background: var(--fail);
  color: #fff;
}

.audit-body {
  min-width: 0;
}

.audit-label {
  margin: 0 0 0.2rem;
  font-family: var(--font);
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.015em;
  color: var(--ink);
}

.audit-fact {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.audit-fix {
  margin: 0.45rem 0 0;
  color: var(--ink-soft);
  font-size: 0.94rem;
}

.audit-fix .fix-label {
  color: var(--fail);
  font-weight: 700;
}

.audit-fix strong {
  font-weight: 700;
}

@media (max-width: 480px) {
  .audit-row {
    grid-template-columns: 2.5rem 1fr;
    gap: 0.65rem;
  }

  .audit-mark {
    width: 2.5rem;
    height: 2.5rem;
  }

  .audit-mark svg {
    width: 1.25rem;
    height: 1.25rem;
  }
}

.audit-page .site-header {
  justify-content: flex-start;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.audit-page .primary-nav {
  display: none !important;
}

.audit-page .btn {
  min-height: 2.85rem;
  padding: 0.85rem 1.25rem;
}

.audit-chrome {
  margin: 0 0 0.5rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

/* Fold strip: linked counts + verdant pill to #offer */
.fold-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
  margin: 0 0 0.35rem;
  padding: 0.35rem 0 0.95rem;
  border-bottom: 1px solid var(--rule);
}

.fold-chips {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 1.25rem;
  align-items: baseline;
}

.fold-chips a {
  display: inline-flex;
  align-items: baseline;
  gap: 0.35rem;
  min-height: 44px;
  text-decoration: none;
  color: inherit;
  transition: opacity var(--dur) var(--ease);
}

.fold-chips a:hover {
  opacity: 0.85;
}

.fold-chips a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
  border-radius: 6px;
}

.fold-chips .n {
  font-family: var(--font);
  font-size: 1.85rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.035em;
}

.fold-chips .n.fail {
  color: var(--fail);
}

.fold-chips .n.pass {
  color: var(--pass);
}

.fold-chips .lab {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 500;
}

.fold-strip .fold-offer {
  text-decoration: none;
}

@media (min-width: 640px) {
  .fold-strip .fold-offer {
    margin-left: auto;
  }
}

@media (max-width: 639px) {
  .fold-strip .fold-offer {
    width: 100%;
    box-sizing: border-box;
  }
}

.audit-score {
  margin: 0 0 0.4rem;
  font-family: var(--font);
  font-size: clamp(1.55rem, 5vw, 1.85rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
}

.audit-score-meta {
  margin: 0 0 1.1rem;
  font-size: 0.82rem;
  color: var(--ink-soft);
}

.audit-pack {
  margin: 0 0 0.3rem;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--ink);
}

.audit-pack-list {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.55rem;
}

.audit-disclaimer {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.audit-source {
  margin: 1.35rem 0 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.45;
}

.audit-offer-kicker {
  margin: 0 0 0.35rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-soft);
}

.audit-page .audit-main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 1.25rem var(--space) 2rem;
}

.audit-page .audit-card {
  background: var(--raised);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem 1.25rem;
  margin: 0 0 1.25rem;
  transition: box-shadow var(--dur) var(--ease);
}

.audit-page .audit-fold {
  margin-top: 0.25rem;
  background: var(--glass);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
}

.audit-page .audit-fold .lede {
  font-size: 1rem;
  color: var(--ink-soft);
  margin-bottom: 0.85rem;
}

.audit-page .audit-print-row {
  margin: 0.7rem 0 0;
}

.audit-page .audit-print {
  appearance: none;
  background: none;
  border: 0;
  padding: 0.55rem 0;
  margin: 0;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
  transition: color var(--dur) var(--ease);
}

.audit-page .audit-print:hover {
  color: var(--accent);
}

.audit-page .audit-print:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.audit-page .audit-card h2 {
  margin: 0 0 1.2rem;
}

.audit-page .audit-offer .lede {
  color: var(--ink) !important;
  font-size: 1rem;
  margin-bottom: 1.05rem;
}

.audit-page .audit-offer h2 {
  font-size: clamp(1.35rem, 4vw, 1.5rem);
  margin: 0 0 0.55rem;
}

.audit-page .audit-offer .cta-row .btn {
  display: block;
  width: 100%;
  text-align: center;
  box-sizing: border-box;
}

@media (min-width: 640px) {
  .audit-page .audit-offer .cta-row .btn {
    display: inline-flex;
    width: auto;
    min-width: 14rem;
  }
}

.audit-page .audit-print-email {
  display: none;
}

.audit-page .audit-print-masthead {
  display: none;
}

@media print {
  @page {
    margin: 0.6in;
  }

  .audit-page .skip,
  .audit-page .site-header,
  .audit-page .fold-strip,
  .audit-page .audit-print-row,
  .audit-page .audit-print,
  .audit-page .site-footer,
  .audit-page .audit-offer .cta-row {
    display: none !important;
  }

  .audit-page .audit-print-masthead {
    display: block !important;
    margin: 0 0 1rem;
    padding-bottom: 0.65rem;
    border-bottom: 1px solid #222;
    font-size: 0.95rem;
    font-weight: 600;
    color: #111;
    line-height: 1.4;
  }

  .audit-page .audit-print-email {
    display: block !important;
    margin: 0.5rem 0 0.75rem;
    font-size: 1.05rem;
    font-weight: 700;
    color: #111;
  }

  .audit-page {
    background: #fff !important;
    color: #111 !important;
  }

  .audit-page .audit-main {
    max-width: none;
    padding: 0;
  }

  .audit-page .audit-card {
    background: #fff !important;
    border: 1px solid #222 !important;
    box-shadow: none;
    margin: 0 0 0.85rem;
    padding: 0.85rem 0.25in;
    border-radius: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .audit-page .audit-fold {
    border: 1px solid #222 !important;
  }

  .audit-page #needs-work {
    break-before: page;
  }

  .audit-page #offer {
    break-before: page;
  }

  .audit-page .audit-row {
    break-inside: avoid;
  }

  .audit-page .audit-mark.pass,
  .audit-page .audit-mark.fail {
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .audit-page a[href^="mailto:"]::after {
    content: none !important;
  }

  .rise {
    opacity: 1 !important;
    transform: none !important;
  }
}

/* —— /audit intake —— */
.audit-intake .lede {
  max-width: 36rem;
}

.audit-intake .primary-nav {
  display: none !important;
}

.audit-intake .site-header {
  justify-content: flex-start;
  padding-top: 0.75rem;
  padding-bottom: 0.75rem;
}

.audit-intake .hero {
  background: transparent;
  padding: 1.5rem 0 2.5rem;
  border-bottom: 0;
}

.audit-intake .hero .lede {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 28rem;
  margin: 0 0 0.55rem;
}

.audit-intake .audit-trust {
  margin: 0 0 1.35rem;
  font-size: 0.95rem;
  font-weight: 600;
}

.audit-intake .audit-trust a {
  color: var(--accent);
  text-decoration: none;
  transition: opacity var(--dur) var(--ease);
}

.audit-intake .audit-trust a:hover {
  opacity: 0.7;
}

.audit-intake .audit-door-card {
  background: var(--glass);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 1.35rem 1.2rem;
  max-width: 28rem;
  box-shadow: var(--shadow);
}

.audit-form {
  margin: 0;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 1.05rem;
  max-width: none;
  width: 100%;
}

.audit-form label {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0.4rem;
  width: 100%;
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: var(--ink);
}

.audit-form .hint {
  display: block;
  font-weight: 400;
  font-size: 0.84rem;
  color: var(--ink-soft);
}

.audit-form input,
.audit-form textarea {
  display: block;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(251, 251, 253, 0.9);
  color: var(--ink);
  font: inherit;
  font-weight: 500;
  transition:
    border-color var(--dur) var(--ease),
    box-shadow var(--dur) var(--ease),
    background var(--dur) var(--ease);
}

.audit-form textarea {
  min-height: 5.5rem;
  resize: vertical;
}

.audit-form input:focus,
.audit-form textarea:focus,
.audit-form input:focus-visible,
.audit-form textarea:focus-visible {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 24%, transparent);
}

.audit-form .honey,
.audit-form .honey input {
  display: none !important;
}

.audit-form .btn {
  display: block;
  width: 100%;
  text-align: center;
  min-height: 3.1rem;
  padding: 0.95rem 1.25rem;
  box-sizing: border-box;
}

.audit-form .fine {
  margin: 0.55rem 0 0;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-soft);
  text-align: center;
}

@media (min-width: 640px) {
  .audit-form .btn {
    display: inline-flex;
    width: auto;
    min-width: 14rem;
  }

  .audit-form .fine {
    text-align: left;
  }
}
