:root {
  --ink: #292929;
  --muted: #686868;
  --paper: transparent;
  --white: #fff;
  --navy: #02033f;
  --orange: #f27a24;
  --orange-dark: #d95f10;
  --orange-soft: #fff2e8;
  --yellow: #f6bd35;
  --line: #e6e6e6;
  --shadow: 0 8px 24px rgba(12, 15, 50, .08);
}

* { box-sizing: border-box; }
html, body { background: transparent; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: Arial, Helvetica, sans-serif; }
button, a { font: inherit; }
button { color: inherit; }
.hidden { display: none !important; }

.advisor-shell { width: 100%; margin: 0; padding: 0; }

.advisor { min-height: 620px; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 7px; box-shadow: var(--shadow); }
.intro { padding: clamp(38px, 7vw, 84px); }
.eyebrow { margin: 0 0 14px; color: var(--orange); font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
h1 { max-width: 800px; margin: 0; font-size: clamp(38px, 6vw, 68px); line-height: 1.02; letter-spacing: -.055em; }
.lead { max-width: 690px; margin: 22px 0 36px; color: var(--muted); font-size: clamp(17px, 2vw, 20px); line-height: 1.7; }
.category-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.category-card { min-height: 190px; padding: 24px; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 18px; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.category-card:hover, .category-card:focus-visible { transform: translateY(-3px); border-color: var(--orange); box-shadow: 0 12px 30px rgba(12,15,50,.10); outline: none; }
.category-icon { display: grid; width: 46px; height: 46px; margin-bottom: 28px; place-items: center; color: var(--navy); background: #f1f2f8; border-radius: 8px; font-size: 24px; }
.category-card strong { display: block; margin-bottom: 8px; font-size: 18px; }
.category-card span:last-child { color: var(--muted); font-size: 13px; line-height: 1.5; }
.privacy-note { margin: 26px 0 0; color: var(--muted); font-size: 12px; }

.quiz { padding: clamp(28px, 6vw, 68px); }
.quiz-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 13px; font-weight: 700; }
.text-button { padding: 8px 0; background: none; border: 0; cursor: pointer; }
.text-button:hover { color: var(--orange); }
.progress { height: 5px; margin: 14px 0 58px; overflow: hidden; background: #edf1ee; border-radius: 99px; }
.progress span { display: block; width: 0; height: 100%; background: var(--orange); border-radius: inherit; transition: width .25s ease; }
.question-wrap { max-width: 760px; margin: 0 auto; }
.question-kicker { color: var(--orange); font-size: 13px; font-weight: 700; }
.question-wrap h2 { margin: 12px 0 10px; font-size: clamp(30px, 4.5vw, 48px); line-height: 1.12; letter-spacing: -.035em; }
.question-help { margin: 0 0 30px; color: var(--muted); line-height: 1.65; }
.answers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.answer { min-height: 74px; padding: 17px 20px; text-align: left; background: var(--white); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; }
.answer:hover, .answer:focus-visible { border-color: var(--orange); background: #fffaf6; outline: none; }
.answer strong { display: block; font-size: 15px; }
.answer small { display: block; margin-top: 5px; color: var(--muted); line-height: 1.4; }

.results { padding: clamp(30px, 6vw, 68px); }
.results-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.results-heading h2 { max-width: 700px; margin: 8px 0 0; font-size: clamp(32px, 5vw, 52px); line-height: 1.06; letter-spacing: -.045em; }
.result-summary { max-width: 680px; margin: 0 0 34px; padding: 20px 22px; color: var(--navy); background: #f4f5fa; border-left: 4px solid var(--orange); border-radius: 4px; line-height: 1.6; }
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.product-card { display: flex; min-width: 0; flex-direction: column; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: 18px; }
.product-card.featured { border: 2px solid var(--orange); }
.product-badge { align-self: flex-start; z-index: 1; margin: 12px 0 -38px 12px; padding: 7px 10px; color: var(--white); background: var(--yellow); border-radius: 3px; font-size: 11px; font-weight: 700; }
.product-image { display: flex; height: 220px; min-height: 220px; align-items: center; justify-content: center; overflow: hidden; padding: 22px; background: #f7f9f7; border-bottom: 1px solid var(--line); }
.product-image img { display: block; width: auto; max-width: 100%; height: auto; max-height: 176px; object-fit: contain; }
.product-body { display: flex; flex: 1; flex-direction: column; padding: 22px; }
.product-brand { color: var(--orange); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.product-card h3 { min-height: 49px; margin: 8px 0 12px; font-size: 18px; line-height: 1.35; }
.match-reason { margin: 0 0 20px; color: var(--muted); font-size: 13px; line-height: 1.55; }
.product-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 20px; }
.product-meta span { padding: 6px 9px; background: #eff3f0; border-radius: 7px; font-size: 11px; font-weight: 700; }
.price { margin-top: auto; margin-bottom: 14px; font-size: 22px; font-weight: 800; }
.stock { margin-left: 7px; color: var(--muted); font-size: 11px; font-weight: 500; }
.primary-button, .secondary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; padding: 12px 18px; border-radius: 10px; font-size: 13px; font-weight: 800; text-decoration: none; cursor: pointer; }
.primary-button { color: white; background: var(--orange); border: 1px solid var(--orange); }
.primary-button:hover { background: var(--orange-dark); }
.secondary-button { color: var(--navy); background: white; border: 1px solid var(--line); }
.results-actions { display: flex; gap: 12px; margin-top: 28px; }
.disclaimer { max-width: 800px; margin: 24px 0 0; color: var(--muted); font-size: 11px; line-height: 1.6; }
.empty { padding: 60px 0; text-align: center; }

@media (max-width: 900px) {
  .category-grid, .product-grid { grid-template-columns: repeat(2, 1fr); }
  .product-card:last-child { grid-column: 1 / -1; }
}
@media (max-width: 620px) {
  .advisor-shell { width: 100%; padding: 0; }
  .advisor { min-height: 580px; border-radius: 5px; }
  .intro, .quiz, .results { padding: 26px 18px 34px; }
  .category-grid, .product-grid, .answers { grid-template-columns: 1fr; }
  .category-card { min-height: 134px; }
  .category-icon { margin-bottom: 18px; }
  .progress { margin-bottom: 38px; }
  .results-heading { align-items: flex-start; flex-direction: column; }
  .results-actions { flex-direction: column; }
  .product-card:last-child { grid-column: auto; }
}
