/* CushionCompass — shared styles */

:root {
  --bg: #faf9f5;
  --bg-alt: #f8f7f2;
  --card: #ffffff;
  --border: #e4e2d8;
  --border-strong: #d8d6cc;
  --ink: #1a1a18;
  --ink-muted: #6b6a64;
  --ink-faint: #8a897f;
  --accent: #c2511f;
  --accent-dark: #a3411a;
  --accent-soft: #f5e6df;
  --pain-tag-bg: #f5e6df;
  --pain-tag-ink: #8a4a2c;
  --seat-tag-bg: #dfe9f5;
  --seat-tag-ink: #2c5a8a;
  --success: #2c6e4f;
  --radius: 14px;
  --radius-sm: 9px;
  --max-width: 880px;
  --shadow: 0 1px 2px rgba(26,26,24,0.04), 0 8px 24px rgba(26,26,24,0.06);
}

* { box-sizing: border-box; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; }

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

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

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  background: var(--card);
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 16px;
  padding-bottom: 16px;
}

.logo {
  font-size: 18px;
  font-weight: 700;
  text-decoration: none;
  color: var(--ink);
  letter-spacing: -0.01em;
}

.logo span { color: var(--accent); }

.site-nav {
  display: flex;
  gap: 20px;
  align-items: center;
}

.site-nav a {
  text-decoration: none;
  font-size: 14px;
  color: var(--ink-muted);
  font-weight: 500;
}

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

.nav-cta {
  background: var(--accent);
  color: #fff !important;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 600 !important;
}

.nav-cta:hover { background: var(--accent-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: transform 0.08s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(194,81,31,0.28);
}

.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: scale(0.98); }

.btn-secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--border-strong);
}

.btn-secondary:hover { border-color: var(--ink-faint); }

.btn-block { width: 100%; }

.btn-lg { font-size: 18px; padding: 17px 32px; }

/* Hero */
.hero {
  padding: 64px 0 56px;
  text-align: center;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}

.hero h1 {
  font-size: clamp(28px, 5vw, 44px);
  line-height: 1.12;
  margin: 0 0 16px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero p.lede {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 560px;
  margin: 0 auto 30px;
}

.hero-trust {
  margin-top: 18px;
  font-size: 13px;
  color: var(--ink-faint);
}

/* How it works */
.how-it-works {
  padding: 8px 0 60px;
}

.how-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 28px;
}

.how-step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 20px;
  text-align: center;
}

.how-step .num {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--ink);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin: 0 auto 12px;
}

.how-step h3 {
  font-size: 15px;
  margin: 0 0 6px;
}

.how-step p {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0;
}

.section-title {
  text-align: center;
  font-size: 22px;
  font-weight: 800;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Pain type teaser grid on homepage */
.pain-teaser {
  padding: 0 0 64px;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.pain-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 14px;
  text-align: center;
}

.pain-card .icon { width: 40px; height: 40px; margin: 0 auto 10px; }

.pain-card h4 {
  font-size: 13.5px;
  margin: 0;
  font-weight: 700;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 0;
  margin-top: 40px;
}

.site-footer .wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links {
  display: flex;
  gap: 16px;
  font-size: 13px;
}

.footer-links a { text-decoration: none; color: var(--ink-muted); }
.footer-links a:hover { color: var(--ink); }

.disclosure {
  font-size: 12px;
  color: var(--ink-faint);
  max-width: 640px;
  line-height: 1.6;
}

/* ---------------- Quiz ---------------- */

.quiz-shell {
  padding: 40px 0 80px;
}

.quiz-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px;
  max-width: 560px;
  margin: 0 auto;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 28px;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 0.25s ease;
  width: 0%;
}

.progress-label {
  font-size: 12.5px;
  color: var(--ink-faint);
  white-space: nowrap;
  font-weight: 600;
}

.step { display: none; }
.step.active { display: block; animation: fadeIn 0.2s ease; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

.step h2 {
  font-size: 22px;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.step .step-sub {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 22px;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  text-align: left;
  padding: 16px 18px;
  border: 1.5px solid var(--border);
  background: var(--bg-alt);
  border-radius: var(--radius-sm);
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color 0.12s ease, background 0.12s ease;
}

.option-btn:hover {
  border-color: var(--accent);
  background: #fff;
}

.option-btn .emoji { font-size: 20px; }

.option-btn .option-desc {
  font-weight: 400;
  font-size: 12.5px;
  color: var(--ink-muted);
  display: block;
  margin-top: 2px;
}

.step-back {
  margin-top: 20px;
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 13.5px;
  cursor: pointer;
  font-weight: 600;
  padding: 6px 0;
}

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

/* Results */
.results-shell { padding: 40px 0 80px; }

.results-head {
  text-align: center;
  margin-bottom: 32px;
}

.results-head .tag-line {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 8px;
}

.results-head h2 {
  font-size: 26px;
  margin: 0 0 8px;
  letter-spacing: -0.01em;
}

.results-head p {
  color: var(--ink-muted);
  font-size: 14.5px;
  margin: 0;
}

.retake-link {
  display: inline-block;
  margin-top: 10px;
  font-size: 13px;
  color: var(--ink-faint);
  text-decoration: underline;
  cursor: pointer;
}

.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  align-items: center;
}

.product-card.primary {
  border: 2px solid var(--accent);
  box-shadow: var(--shadow);
  padding: 30px;
}

.product-badge {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.product-icon {
  width: 96px;
  height: 96px;
  border-radius: 12px;
  background: var(--bg-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
}

.product-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.product-name {
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 4px;
  letter-spacing: -0.01em;
}

.product-price {
  font-size: 15px;
  font-weight: 700;
  color: var(--success);
  margin-bottom: 8px;
}

.product-why {
  font-size: 14px;
  color: var(--ink-muted);
  margin: 0 0 14px;
  line-height: 1.5;
}

.product-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.product-actions .btn { padding: 11px 22px; font-size: 14.5px; }

.alt-heading {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-faint);
  margin: 34px 0 14px;
}

@media (max-width: 560px) {
  .product-card { grid-template-columns: 72px 1fr; padding: 18px; }
  .product-icon { width: 72px; height: 72px; }
  .how-grid { grid-template-columns: 1fr; }
  .quiz-card { padding: 26px 20px; }
}

/* ---------------- Blog ---------------- */

.blog-post {
  padding: 48px 0 72px;
}

.blog-post .post-header {
  margin-bottom: 32px;
}

.blog-post .post-eyebrow {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--accent);
  margin-bottom: 10px;
}

.blog-post h1 {
  font-size: clamp(26px, 4vw, 36px);
  line-height: 1.18;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}

.blog-post .post-meta {
  font-size: 13.5px;
  color: var(--ink-faint);
}

.blog-post .post-body {
  font-size: 16.5px;
  line-height: 1.7;
  max-width: 700px;
}

.blog-post .post-body h2 {
  font-size: 21px;
  margin: 40px 0 12px;
  letter-spacing: -0.01em;
}

.blog-post .post-body p { margin: 0 0 18px; color: #2c2c2a; }

.blog-cta {
  margin: 40px 0;
  background: var(--accent-soft);
  border: 1px solid #ecd3c4;
  border-radius: var(--radius);
  padding: 24px 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
}

.blog-cta h3 {
  margin: 0 0 4px;
  font-size: 17px;
}

.blog-cta p {
  margin: 0;
  font-size: 14px;
  color: var(--ink-muted);
}

.blog-index-list { list-style: none; padding: 0; margin: 24px 0 0; }
.blog-index-list li {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 14px;
}
.blog-index-list a {
  text-decoration: none;
  font-size: 18px;
  font-weight: 700;
}
.blog-index-list a:hover { color: var(--accent); }
.blog-index-list p { margin: 6px 0 0; color: var(--ink-muted); font-size: 14px; }
