/* SpaObserver shared styles. Brand palette and type from the sales brief and sample report. */
@font-face {
  font-family: "Fraunces";
  src: url("fonts/fraunces.woff") format("woff");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans";
  src: url("fonts/ibm-plex-sans.woff") format("woff");
  font-weight: 100 700;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "IBM Plex Sans Condensed";
  src: url("fonts/ibm-plex-sans-condensed-semibold.woff") format("woff");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --cream: #f6f2ea;
  --paper: #fffdf8;
  --ink: #1c1917;
  --muted: #3f3a35;
  --stone: #5c564e;
  --rust: #8c3a2a;
  --rust-deep: #5c3a32;
  --teal: #1f4e4a;
  --teal-dark: #173c39;
  --peach: #f0d2c6;
  --line: #d4cdc2;
  --hair: #e0d9ce;
  --max: 68rem;
  --gap: clamp(1.25rem, 4vw, 2rem);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

html, body { background: var(--cream); color: var(--ink); }
body {
  margin: 0;
  font-family: "IBM Plex Sans", "Liberation Sans", "Helvetica Neue", sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  font-weight: 400;
  font-variation-settings: "wdth" 100;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
h1, h2, h3, .wordmark, .price, .stat-n, .step-n {
  font-family: "Fraunces", "EB Garamond", "Palatino Linotype", Georgia, serif;
  font-optical-sizing: auto;
  font-variation-settings: "SOFT" 0, "WONK" 0;
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--ink);
}
h1, h2, h3 { margin: 0 0 0.6em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
a { color: var(--teal); text-underline-offset: 0.15em; }
a:hover { color: var(--teal-dark); }
:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 20;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 0.8rem;
  text-decoration: none;
}
.skip:focus { top: 0.75rem; }

.wrap {
  width: min(100% - 2.5rem, var(--max));
  margin-inline: auto;
}
@media (max-width: 420px) {
  .wrap { width: min(100% - 2rem, var(--max)); }
}

.kicker {
  font-family: "IBM Plex Sans Condensed", "IBM Plex Sans", sans-serif;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--rust);
  margin: 0 0 0.7rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: color-mix(in srgb, var(--cream) 92%, white);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--line);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 4rem;
  padding: 0.65rem 0;
}
.wordmark {
  font-size: 1.35rem;
  font-weight: 550;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  line-height: 1;
}
.wordmark:hover { color: var(--ink); }
.nav {
  display: flex;
  align-items: center;
  gap: 1.35rem;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9375rem;
}
.nav a:hover { color: var(--teal); }
.nav-links {
  display: flex;
  gap: 1.25rem;
}
@media (max-width: 800px) {
  .nav-links { display: none; }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.8rem 1.15rem;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  border: 1.5px solid var(--ink);
  background: var(--cream);
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.btn:hover { background: var(--ink); color: var(--cream); }
.btn-primary {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--teal-dark);
  border-color: var(--teal-dark);
  color: var(--cream);
}
.btn-on-teal {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}
.btn-on-teal:hover {
  background: var(--paper);
  border-color: var(--paper);
  color: var(--ink);
}
.btn-ghost-light {
  background: transparent;
  border-color: color-mix(in srgb, var(--cream) 70%, transparent);
  color: var(--cream);
}
.btn-ghost-light:hover {
  background: var(--cream);
  border-color: var(--cream);
  color: var(--ink);
}
.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; }

/* Hero */
.hero {
  padding: clamp(2.25rem, 6vw, 4.25rem) 0 clamp(3rem, 7vw, 5rem);
}
.hero h1 {
  font-size: clamp(2.15rem, 5.4vw, 3.55rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  line-height: 1.04;
  max-width: 14.5em;
  margin: 0 0 1.15rem;
}
.br-wide { display: none; }
@media (min-width: 640px) {
  .br-wide { display: block; }
}
.hero .lede {
  font-size: clamp(1.05rem, 1.6vw, 1.2rem);
  line-height: 1.5;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.6rem;
}
.hero-note {
  margin: 1.1rem 0 0;
  font-size: 0.9375rem;
  color: var(--muted);
}
.rule-heavy {
  height: 2px;
  background: var(--ink);
  border: 0;
  margin: 0;
}

/* Sections */
.section {
  padding: clamp(3rem, 7vw, 5rem) 0;
  border-top: 0.5px solid var(--line);
  scroll-margin-top: 4.75rem;
}
.section h2 {
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  margin: 0 0 1.4rem;
}
.section-intro {
  color: var(--muted);
  max-width: 40rem;
  margin: -0.6rem 0 1.8rem;
}

/* Report contents */
.contents {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}
@media (min-width: 840px) {
  .contents {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: start;
  }
}
.contents ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.contents li {
  padding: 0.85rem 0 0.85rem 0;
  border-top: 0.5px solid var(--line);
  padding-left: 0;
}
.contents li:first-child { border-top: 0; padding-top: 0; }
.contents li strong {
  font-weight: 600;
  display: block;
  margin-bottom: 0.15rem;
}

/* Example findings */
.examples {
  background: var(--paper);
  border: 0.5px solid var(--line);
  padding: 1.25rem 1.35rem 1.4rem;
  height: 100%;
}
.examples .kicker { margin-bottom: 1rem; }
.stat {
  padding: 0.85rem 0;
  border-top: 1.5px solid var(--ink);
}
.stat + .stat { margin-top: 0.85rem; }
.stat-n {
  font-size: 1.55rem;
  font-weight: 550;
  letter-spacing: -0.03em;
  margin: 0 0 0.4rem;
  line-height: 1.1;
}
.stat p {
  font-size: 0.9375rem;
  line-height: 1.45;
  color: var(--muted);
  margin: 0;
}

/* How it works */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}
@media (min-width: 800px) {
  .steps { grid-template-columns: 1fr 1fr 1fr; gap: 1.5rem; }
}
.step {
  background: var(--paper);
  border: 0.5px solid var(--line);
  padding: 1.25rem 1.25rem 1.35rem;
}
.step-n {
  font-size: 1.75rem;
  color: var(--rust);
  letter-spacing: -0.03em;
  margin: 0 0 0.5rem;
  line-height: 1;
}
.step h3 {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}
.step p { color: var(--muted); font-size: 0.975rem; }

.pair {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-top: 2rem;
}
@media (min-width: 720px) {
  .pair { grid-template-columns: 1fr 1fr; }
}
.card {
  background: var(--paper);
  border: 0.5px solid var(--line);
  padding: 1.2rem 1.25rem;
}
.card h3 { font-size: 1.2rem; margin: 0 0 0.45rem; }
.card p { color: var(--muted); font-size: 0.975rem; }

/* Pricing */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.15rem;
  align-items: stretch;
}
@media (min-width: 760px) {
  .plans { grid-template-columns: 1.05fr 0.95fr; }
}
.plan {
  border: 0.5px solid var(--line);
  background: var(--paper);
  padding: 1.5rem 1.45rem 1.55rem;
  display: flex;
  flex-direction: column;
}
.plan-featured {
  background: var(--teal);
  border-color: var(--teal);
  color: var(--cream);
}
.plan-featured h2,
.plan-featured .price,
.plan-featured p { color: var(--cream); }
.plan-featured .kicker { color: var(--peach); }
.plan-featured .muted-on { color: color-mix(in srgb, var(--cream) 82%, white); }
.price {
  font-size: clamp(2.6rem, 5vw, 3.25rem);
  font-weight: 550;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 0 0 0.7rem;
  color: var(--ink);
}
.price span {
  font-size: 0.45em;
  letter-spacing: -0.02em;
  font-weight: 500;
}
.plan .detail {
  margin: 0 0 1.25rem;
  flex: 1;
}
.plan .btn { width: 100%; }
.plan:not(.plan-featured) .btn {
  background: var(--paper);
}
.pricing-foot {
  margin: 1.25rem 0 0;
  color: var(--muted);
  font-size: 0.9375rem;
}

/* FAQ */
.faq-list { display: grid; gap: 0; }
.faq {
  border-top: 0.5px solid var(--line);
  padding: 1.15rem 0 1.2rem;
}
.faq:last-child { border-bottom: 0.5px solid var(--line); }
.faq h3 {
  font-family: "IBM Plex Sans", "Liberation Sans", sans-serif;
  font-variation-settings: "wdth" 100;
  font-size: 1.05rem;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  margin: 0 0 0.4rem;
}
.faq p { color: var(--muted); font-size: 1rem; }

/* Footer */
.site-footer {
  border-top: 2px solid var(--ink);
  padding: 1.75rem 0 2.25rem;
  color: var(--muted);
  font-size: 0.9375rem;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.85rem 2rem;
  align-items: baseline;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1.15rem;
}
.site-footer a { color: var(--ink); text-decoration: none; }
.site-footer a:hover { color: var(--teal); text-decoration: underline; }
.copyright { margin-top: 1.1rem; color: var(--stone); font-size: 0.875rem; }

/* Legal pages */
body.legal { background: var(--cream); }
.legal-main { padding: 2.5rem 0 4.5rem; }
.legal-main h1 {
  font-size: clamp(2rem, 4vw, 2.6rem);
  margin: 0 0 0.35rem;
}
.legal-updated {
  color: var(--stone);
  font-size: 0.9rem;
  margin: 0 0 2rem;
}
.legal-main h2 {
  font-size: 1.3rem;
  margin: 1.75rem 0 0.45rem;
}
.legal-main p, .legal-main li {
  color: var(--muted);
  max-width: 42rem;
}
.legal-main ul { margin: 0 0 1em; padding-left: 1.2rem; }
.legal-main li { margin: 0 0 0.4rem; }

@media (max-width: 520px) {
  .hero .actions .btn,
  .plan .btn { width: 100%; }
}
@media (max-width: 420px) {
  .site-header .btn { padding: 0.65rem 0.8rem; font-size: 0.9rem; }
  .wordmark { font-size: 1.25rem; }
}
