:root {
  --navy-950: #041426;
  --navy-900: #061a2e;
  --navy-800: #092845;
  --navy-700: #123b60;
  --ink: #071f38;
  --slate: #536b80;
  --mist: #f3f6f8;
  --line: #dce4e9;
  --gold: #d8b46a;
  --gold-dark: #a77d31;
  --white: #fff;
  --shadow: 0 24px 70px rgba(8, 31, 53, 0.1);
  --font: "Avenir Next", Avenir, "Segoe UI", Helvetica, Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--navy-900);
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100svh;
  background: var(--mist);
  color: var(--ink);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

button:not(:disabled) {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(216, 180, 106, 0.45);
  outline-offset: 3px;
}

.app-frame {
  min-height: 100svh;
}

.topbar {
  position: relative;
  z-index: 20;
  display: flex;
  min-height: 82px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid rgba(216, 180, 106, 0.22);
  background: linear-gradient(100deg, #031426, #062541 58%, #04192d);
  padding: 0.75rem clamp(1.25rem, 4vw, 3rem);
  color: var(--white);
  box-shadow: 0 14px 40px rgba(2, 17, 31, 0.18);
}

.topbar::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(216, 180, 106, 0.62), transparent);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
}

.brand-logo-wrap {
  position: relative;
  display: grid;
  width: clamp(7.2rem, 11vw, 9rem);
  min-height: 2.35rem;
  place-items: center;
  overflow: hidden;
}

.brand-logo {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: auto;
  filter: brightness(1.08);
}

.brand-logo-fallback {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: white;
  font-size: 0.9rem;
  font-weight: 950;
  letter-spacing: 0.16em;
}

.brand-location {
  border-left: 1px solid rgba(216, 180, 106, 0.42);
  padding-left: 0.85rem;
  color: #e9d19f;
  font-size: 0.66rem;
  font-weight: 850;
  letter-spacing: 0.22em;
}

.brand-symbol {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gold);
}

.brand-symbol svg {
  width: 1rem;
}

.brand-name {
  display: block;
  line-height: 1;
}

.brand-name strong {
  display: block;
  font-size: 0.88rem;
  font-weight: 900;
  letter-spacing: 0.18em;
}

.brand-name small {
  display: block;
  margin-top: 0.32rem;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.25em;
}

.seller-area {
  display: flex;
  align-items: center;
  gap: clamp(0.7rem, 2vw, 1.25rem);
}

.seller {
  display: block;
  min-width: 7rem;
  text-align: right;
}

.seller small,
.seller strong {
  display: block;
}

.seller small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.64rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.seller strong {
  margin-top: 0.2rem;
  font-size: 0.84rem;
}

.icon-button,
.dialog-close {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.72);
}

.icon-button:hover {
  background: rgba(255, 255, 255, 0.14);
  color: white;
}

.icon-button svg,
.dialog-close svg {
  width: 1.15rem;
}

.is-hidden {
  display: none !important;
}

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

.catalog-header-button {
  display: inline-flex;
  min-height: 2.6rem;
  align-items: center;
  gap: 0.5rem;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.55rem 0.85rem;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 800;
}

.catalog-header-button:hover {
  border-color: rgba(216, 180, 106, 0.45);
  color: white;
}

.catalog-header-button svg {
  width: 1rem;
}

.navy-screen {
  position: relative;
  isolation: isolate;
  min-height: calc(100svh - 82px);
  overflow: hidden;
  background:
    linear-gradient(115deg, rgba(216, 180, 106, 0.035), transparent 35%),
    radial-gradient(circle at 72% 25%, rgba(25, 89, 139, 0.22), transparent 34%),
    var(--navy-900);
  color: var(--white);
}

.navy-screen::before,
.navy-screen::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 999px;
  pointer-events: none;
}

.navy-screen::before {
  width: 42rem;
  height: 42rem;
  right: -17rem;
  top: -18rem;
  border: 1px solid rgba(216, 180, 106, 0.14);
  box-shadow: 0 0 0 5rem rgba(255, 255, 255, 0.015), 0 0 0 10rem rgba(255, 255, 255, 0.012);
}

.navy-screen::after {
  width: 28rem;
  height: 28rem;
  left: -13rem;
  bottom: -16rem;
  background: radial-gradient(circle, rgba(35, 101, 151, 0.3), transparent 68%);
}

.welcome {
  display: grid;
  width: min(100%, 1500px);
  min-height: calc(100svh - 82px);
  margin: auto;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  align-items: center;
  gap: clamp(2rem, 4.5vw, 4.5rem);
  padding: clamp(2rem, 5vw, 5rem);
}

.welcome-copy {
  position: relative;
  z-index: 2;
  max-width: 42rem;
}

.welcome h1 {
  margin: 0;
  max-width: 10ch;
  font-size: clamp(3.25rem, 5.8vw, 5.7rem);
  font-weight: 650;
  letter-spacing: -0.06em;
  line-height: 0.98;
}

.welcome h1 em {
  color: var(--gold);
  font-style: normal;
  font-weight: 300;
}

.welcome-lead {
  max-width: 38rem;
  margin: 1.5rem 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: clamp(1.1rem, 2vw, 1.35rem);
  line-height: 1.6;
}

.primary-button,
.secondary-button,
.ghost-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  border-radius: 999px;
  padding: 0.75rem 1.5rem;
  font-size: 0.84rem;
  font-weight: 850;
  letter-spacing: 0.05em;
  text-decoration: none;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease, opacity 160ms ease;
}

.primary-button {
  border: 0;
  background: var(--navy-800);
  color: white;
  box-shadow: 0 13px 28px rgba(9, 40, 69, 0.18);
}

.primary-button:hover {
  transform: translateY(-2px);
  background: var(--navy-700);
}

.primary-button.light {
  min-height: 3.75rem;
  margin-top: 2.2rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  background: linear-gradient(135deg, #fff, #f4ead5);
  color: var(--navy-800);
  box-shadow: 0 20px 55px rgba(0, 0, 0, 0.28), 0 0 0 5px rgba(216, 180, 106, 0.08);
  text-transform: uppercase;
}

.primary-button.gold {
  background: var(--gold);
  color: var(--navy-800);
}

.primary-button:disabled,
.secondary-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
  transform: none;
}

.secondary-button {
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
}

.secondary-button:hover {
  border-color: rgba(184, 142, 67, 0.6);
}

.ghost-button {
  border: 0;
  background: transparent;
  color: var(--slate);
}

.ghost-button:hover {
  background: #eef3f6;
}

.button-icon,
.primary-button svg,
.secondary-button svg,
.ghost-button svg {
  width: 1rem;
}

.welcome-tagline {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 2.2rem;
  color: rgba(255, 255, 255, 0.45);
  font-size: 0.86rem;
}

.welcome-tagline span:first-child {
  display: grid;
  width: 2.2rem;
  height: 2.2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.welcome-tagline svg {
  width: 0.9rem;
}

.welcome-visual {
  position: relative;
  min-height: min(66vh, 640px);
  overflow: hidden;
  border: 1px solid rgba(216, 180, 106, 0.28);
  border-radius: 2.4rem;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: 0 40px 110px rgba(0, 0, 0, 0.36), 0 0 0 8px rgba(255, 255, 255, 0.025);
}

.welcome-visual > img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
  object-position: center 58%;
}

.welcome-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(4, 24, 43, 0.9), rgba(4, 24, 43, 0.04) 65%);
}

.visual-note {
  position: absolute;
  z-index: 2;
  right: 1.6rem;
  bottom: 1.6rem;
  left: 1.6rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 1.5rem;
  background: rgba(6, 29, 52, 0.72);
  padding: 1.25rem;
  backdrop-filter: blur(18px);
}

.visual-note > span {
  display: grid;
  width: 3rem;
  height: 3rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-800);
}

.visual-note svg {
  width: 1.25rem;
}

.visual-note strong,
.visual-note small {
  display: block;
}

.visual-note strong {
  color: #e8cd97;
  font-size: 0.77rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.visual-note small {
  margin-top: 0.25rem;
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.84rem;
  line-height: 1.55;
}

.question-screen {
  min-height: calc(100svh - 72px);
  background: var(--mist);
  padding: 1.5rem clamp(1rem, 4vw, 3rem) 2.5rem;
}

.question-wrap {
  width: min(100%, 1250px);
  margin: auto;
}

.progress-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.progress-row strong {
  flex: 0 0 auto;
  color: #98732e;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.progress-track {
  height: 0.5rem;
  flex: 1;
  overflow: hidden;
  border-radius: 999px;
  background: #dce4e9;
}

.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--gold-dark);
  transition: width 350ms ease;
}

.progress-row small {
  min-width: 2.5rem;
  color: #98a5b0;
  font-weight: 700;
  text-align: right;
}

.question-panel {
  min-height: min(675px, calc(100svh - 145px));
  border: 1px solid rgba(15, 48, 76, 0.08);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.94);
  padding: clamp(1.5rem, 4vw, 3rem);
  box-shadow: var(--shadow);
}

.question-heading {
  max-width: 50rem;
  margin: 0 auto 2rem;
  text-align: center;
}

.question-heading > span,
.section-eyebrow {
  color: var(--gold-dark);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.question-heading h1 {
  margin: 0.75rem 0 0;
  color: var(--ink);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.question-heading p {
  max-width: 42rem;
  margin: 0.8rem auto 0;
  color: #6a7e8f;
  font-size: 0.95rem;
  line-height: 1.6;
}

.choice-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.choice-grid.four {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.choice-card {
  position: relative;
  display: flex;
  min-height: 184px;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.45rem;
  background: linear-gradient(145deg, #fff, #f8fafb);
  padding: 1.35rem;
  color: var(--ink);
  text-align: left;
  box-shadow: 0 8px 24px rgba(10, 36, 61, 0.04);
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease, background 180ms ease;
}

.choice-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 142, 67, 0.5);
  box-shadow: 0 16px 34px rgba(10, 36, 61, 0.09);
}

.choice-card[aria-pressed="true"] {
  border-color: var(--gold-dark);
  background: linear-gradient(145deg, #fffdf9, #fff7e7);
  box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.13), 0 18px 40px rgba(10, 36, 61, 0.08);
}

.choice-icon {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  margin-bottom: 1.1rem;
  border-radius: 999px;
  background: #edf3f6;
  color: #143b5e;
  transition: all 180ms ease;
}

.choice-icon svg {
  width: 1.55rem;
}

.choice-card[aria-pressed="true"] .choice-icon {
  transform: scale(1.04);
  background: var(--navy-800);
  color: #f2d697;
}

.choice-title {
  display: block;
  font-size: 0.84rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  line-height: 1.35;
  text-transform: uppercase;
}

.choice-description {
  display: block;
  margin-top: 0.55rem;
  color: #687c8d;
  font-size: 0.88rem;
  line-height: 1.55;
}

.choice-check {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 1.8rem;
  height: 1.8rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: transparent;
  transition: all 180ms ease;
}

.choice-check svg {
  width: 0.9rem;
}

.choice-card[aria-pressed="true"] .choice-check {
  border-color: var(--gold-dark);
  background: var(--gold-dark);
  color: white;
}

.concern-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.concern-card {
  display: flex;
  min-height: 76px;
  align-items: flex-start;
  gap: 0.8rem;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: white;
  padding: 1rem;
  color: #17324e;
  text-align: left;
  transition: all 160ms ease;
}

.concern-card:hover,
.concern-card[aria-pressed="true"] {
  border-color: var(--gold-dark);
  background: #fffaf0;
  box-shadow: 0 0 0 3px rgba(216, 180, 106, 0.1);
}

.check-box {
  display: grid;
  width: 1.25rem;
  height: 1.25rem;
  flex: 0 0 auto;
  place-items: center;
  margin-top: 0.05rem;
  border: 1px solid #cdd8df;
  border-radius: 0.32rem;
  background: white;
  color: transparent;
}

.check-box svg {
  width: 0.8rem;
}

.concern-card[aria-pressed="true"] .check-box {
  border-color: var(--navy-800);
  background: var(--navy-800);
  color: white;
}

.concern-card strong {
  font-size: 0.88rem;
  line-height: 1.5;
}

.other-field {
  display: block;
  max-width: 42rem;
  margin: 1.2rem auto 0;
}

.other-field span {
  display: block;
  margin-bottom: 0.45rem;
  color: #17324e;
  font-size: 0.84rem;
  font-weight: 750;
}

.other-field input {
  width: 100%;
  min-height: 3.25rem;
  border: 1px solid var(--line);
  border-radius: 0.85rem;
  padding: 0 1rem;
  color: var(--ink);
  font-size: 1rem;
}

.weight-question {
  display: grid;
  max-width: 34rem;
  justify-items: center;
  gap: 1rem;
  margin: 1rem auto;
}

.weight-field {
  display: grid;
  width: min(100%, 25rem);
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.85rem;
  border: 1px solid rgba(184, 142, 67, 0.55);
  border-radius: 1.35rem;
  background: linear-gradient(145deg, #fff, #fffaf0);
  padding: 0.8rem 1rem;
  box-shadow: 0 14px 38px rgba(10, 36, 61, 0.08);
}

.weight-icon {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border-radius: 999px;
  background: var(--navy-800);
  color: white;
}

.weight-icon svg {
  width: 1.4rem;
}

.weight-field input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font-size: clamp(2rem, 7vw, 3rem);
  font-weight: 750;
  text-align: center;
}

.weight-field input::placeholder {
  color: #aeb9c1;
}

.weight-field strong {
  color: #7c6334;
  font-size: 1.1rem;
}

.weight-shortcuts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem;
}

.weight-shortcuts button {
  min-height: 2.65rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 0 0.95rem;
  color: #34506a;
  font-weight: 800;
}

.weight-shortcuts button:hover,
.weight-shortcuts button[aria-pressed="true"] {
  border-color: var(--gold-dark);
  background: #fff6e4;
  color: #76571f;
}

.weight-question > p {
  margin: 0;
  color: #6a7e8f;
  font-size: 0.86rem;
  text-align: center;
}

.step-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-top: 2rem;
  border-top: 1px solid #e5eaee;
  padding-top: 1.25rem;
}

.analysis-screen {
  display: grid;
  min-height: calc(100svh - 72px);
  place-items: center;
  padding: 3rem 1.5rem;
  text-align: center;
}

.analysis-content {
  width: min(100%, 42rem);
}

.analysis-orbit {
  position: relative;
  display: grid;
  width: 7rem;
  height: 7rem;
  place-items: center;
  margin: 0 auto 2.5rem;
  border: 1px solid rgba(216, 180, 106, 0.35);
  border-radius: 999px;
  background: radial-gradient(circle, rgba(216, 180, 106, 0.17), rgba(255, 255, 255, 0.04));
  color: #e7ca8f;
  box-shadow: 0 0 0 1.4rem rgba(255, 255, 255, 0.025), 0 0 0 2.8rem rgba(255, 255, 255, 0.018);
}

.analysis-orbit svg {
  width: 2.2rem;
}

.analysis-orbit::after {
  content: "";
  position: absolute;
  inset: -1.45rem;
  border: 1px solid transparent;
  border-top-color: var(--gold);
  border-radius: inherit;
  animation: orbit 1.35s linear infinite;
}

.analysis-content h1 {
  margin: 0.85rem 0 0;
  font-size: clamp(2.4rem, 6vw, 4rem);
  font-weight: 650;
  letter-spacing: -0.05em;
}

.analysis-list {
  max-width: 29rem;
  margin: 2.5rem auto 0;
  text-align: left;
}

.analysis-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-top: 0.8rem;
  color: rgba(255, 255, 255, 0.25);
  font-size: 0.95rem;
  font-weight: 650;
  transition: color 260ms ease, transform 260ms ease;
}

.analysis-row > span:first-child {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
}

.analysis-row svg {
  width: 0.9rem;
}

.analysis-row.active {
  transform: translateX(5px);
  color: rgba(255, 255, 255, 0.86);
}

.results-hero {
  background: var(--navy-900);
  color: white;
  padding: 2rem clamp(1.25rem, 4vw, 3rem) 2.4rem;
}

.results-hero-inner {
  display: flex;
  width: min(100%, 1440px);
  margin: auto;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
}

.results-hero h1 {
  max-width: 50rem;
  margin: 0.75rem 0 0;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 650;
  letter-spacing: -0.045em;
  line-height: 1.08;
}

.results-hero p {
  margin: 0.7rem 0 0;
  color: rgba(255, 255, 255, 0.56);
}

.results-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 0.7rem;
}

.results-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.results-wrap {
  width: min(100%, 1440px);
  margin: auto;
  padding: 1.7rem clamp(1.25rem, 4vw, 3rem) 3rem;
}

.demo-notice {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1.25rem;
  border: 1px solid rgba(184, 142, 67, 0.38);
  border-radius: 1rem;
  background: #fffaf0;
  padding: 0.85rem 1rem;
  color: #725a28;
  font-size: 0.83rem;
  line-height: 1.5;
}

.demo-notice svg {
  width: 1rem;
  flex: 0 0 auto;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.orthopedic-gate {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-top: 1.5rem;
  border: 1px solid rgba(8, 31, 53, 0.13);
  border-radius: 1.35rem;
  background: #f7f9fb;
  padding: 1.25rem 1.4rem;
}

.orthopedic-gate h2 { margin: 0.35rem 0; font-size: 1.12rem; }
.orthopedic-gate p { max-width: 52rem; margin: 0; color: var(--muted); line-height: 1.55; }
.orthopedic-gate .secondary-button { flex: 0 0 auto; }
.orthopedic-shell { width: min(95vw, 1280px); max-height: 90vh; overflow: auto; }
.orthopedic-grid { padding-bottom: 0.25rem; }

@media (max-width: 760px) {
  .orthopedic-gate { align-items: stretch; flex-direction: column; }
  .orthopedic-gate .secondary-button { width: 100%; }
  .orthopedic-grid { grid-template-columns: 1fr; }
}

.recommendation-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 19rem;
  place-items: center;
  align-content: center;
  gap: 0.85rem;
  border: 1px dashed rgba(184, 142, 67, 0.6);
  border-radius: 1.5rem;
  background: #fffaf0;
  padding: 2rem;
  color: #6f5a32;
  text-align: center;
}

.recommendation-empty > svg {
  width: 2.4rem;
  height: 2.4rem;
  color: var(--gold-dark);
}

.recommendation-empty strong {
  max-width: 38rem;
  color: var(--ink);
  font-size: 1.2rem;
}

.recommendation-empty span {
  max-width: 42rem;
  line-height: 1.6;
}

.product-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.55rem;
  background: white;
  box-shadow: 0 14px 40px rgba(8, 31, 53, 0.06);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.product-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 55px rgba(8, 31, 53, 0.11);
}

.product-card.featured {
  border-color: rgba(184, 142, 67, 0.55);
  box-shadow: 0 20px 55px rgba(132, 91, 21, 0.12);
}

.product-visual {
  position: relative;
  height: 14rem;
  overflow: hidden;
  background: #e7edf2;
}

.product-visual img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.product-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(6, 27, 48, 0.6), transparent 60%);
}

.image-label,
.rank-badge {
  position: absolute;
  z-index: 2;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.image-label {
  bottom: 0.8rem;
  left: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: rgba(6, 27, 48, 0.66);
  padding: 0.35rem 0.65rem;
  color: white;
  backdrop-filter: blur(10px);
}

.rank-badge {
  top: 0.9rem;
  left: 0.9rem;
  background: rgba(255, 255, 255, 0.92);
  padding: 0.45rem 0.75rem;
  color: #17324e;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.featured .rank-badge {
  background: var(--gold);
  color: var(--navy-800);
}

.product-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.35rem;
}

.product-body .section-eyebrow {
  font-size: 0.63rem;
}

.product-body h2 {
  margin: 0.45rem 0 0;
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.product-body > p {
  margin: 0.65rem 0 0;
  color: #64798b;
  font-size: 0.84rem;
  line-height: 1.6;
}

.reason-list {
  display: grid;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.reason-list span {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  color: #314b64;
  font-size: 0.8rem;
  line-height: 1.45;
}

.reason-list svg {
  width: 0.95rem;
  flex: 0 0 auto;
  margin-top: 0.1rem;
  color: var(--gold-dark);
}

.product-actions {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.6rem;
  margin-top: auto;
  padding-top: 1.35rem;
}

.compare-toggle {
  display: grid;
  width: 3rem;
  height: 3rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  color: #8a9aa7;
}

.compare-toggle svg {
  width: 1rem;
}

.compare-toggle[aria-pressed="true"] {
  border-color: var(--gold-dark);
  background: #fff8e9;
  color: #8d6928;
}

.compare-toggle:disabled {
  cursor: not-allowed;
  opacity: 0.35;
}

.choose-link {
  grid-column: 1 / -1;
  border: 0;
  background: transparent;
  padding: 0.35rem;
  color: #8e6b2e;
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.dialog,
.drawer {
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  border: 0;
  background: transparent;
  padding: 1rem;
}

.dialog::backdrop,
.drawer::backdrop {
  background: rgba(2, 13, 25, 0.7);
  backdrop-filter: blur(5px);
}

.dialog[open] {
  display: grid;
  place-items: center;
}

.dialog-card {
  width: min(100%, 43rem);
  max-height: calc(100svh - 2rem);
  overflow: auto;
  border-radius: 1.6rem;
  background: white;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.25);
}

.compare-dialog .dialog-card {
  width: min(100%, 70rem);
  background: #f5f7f9;
}

.catalog-dialog .dialog-card {
  width: min(100%, 84rem);
  background: #f5f7f9;
}

.catalog-toolbar {
  display: grid;
  grid-template-columns: minmax(18rem, 1fr) auto auto;
  gap: 0.75rem;
  padding: 1rem 1.25rem 0;
}

.catalog-search {
  position: relative;
}

.catalog-search svg {
  position: absolute;
  top: 50%;
  left: 1rem;
  width: 1rem;
  transform: translateY(-50%);
  color: #8293a0;
}

.catalog-toolbar input,
.catalog-toolbar select {
  width: 100%;
  min-height: 3rem;
  border: 1px solid var(--line);
  border-radius: 0.9rem;
  background: white;
  padding: 0.75rem 1rem;
  color: var(--ink);
  font-size: 0.84rem;
}

.catalog-toolbar input {
  padding-left: 2.65rem;
}

.catalog-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem 0;
  color: #637889;
  font-size: 0.8rem;
}

.catalog-summary strong {
  color: var(--ink);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1rem 1.25rem 1.35rem;
}

.catalog-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: white;
  padding: 1rem;
}

.catalog-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.catalog-type {
  color: #9a7330;
  font-size: 0.63rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.catalog-open {
  display: grid;
  width: 2.35rem;
  height: 2.35rem;
  flex: 0 0 auto;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #eef3f6;
  color: #526b7f;
}

.catalog-open svg {
  width: 0.95rem;
}

.catalog-card h3 {
  margin: 0.8rem 0 0;
  font-size: 1.16rem;
  letter-spacing: -0.025em;
}

.catalog-card > p {
  margin: 0.5rem 0 0;
  color: #64798b;
  font-size: 0.79rem;
  line-height: 1.55;
}

.catalog-facts {
  display: grid;
  gap: 0.45rem;
  margin: 0.85rem 0 0;
}

.catalog-facts > div {
  display: grid;
  grid-template-columns: 5.2rem 1fr;
  gap: 0.6rem;
  border-top: 1px solid #edf1f3;
  padding-top: 0.45rem;
}

.catalog-facts dt,
.catalog-facts dd {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
}

.catalog-facts dt {
  color: #98a5af;
  font-weight: 800;
  text-transform: uppercase;
}

.catalog-facts dd {
  color: #314b64;
  font-weight: 700;
}

.catalog-detail-button {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  align-self: flex-start;
  margin-top: auto;
  border: 0;
  background: transparent;
  padding: 1rem 0 0;
  color: #8e6b2e;
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-detail-button svg {
  width: 0.9rem;
}

.catalog-empty {
  display: grid;
  grid-column: 1 / -1;
  min-height: 14rem;
  place-items: center;
  align-content: center;
  gap: 0.5rem;
  border: 1px dashed #ccd7dd;
  border-radius: 1.2rem;
  color: #718594;
  text-align: center;
}

.catalog-empty svg {
  width: 1.8rem;
}

.catalog-empty strong {
  color: var(--ink);
}

.dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  border-bottom: 1px solid #e8edf0;
  background: white;
  padding: 1.35rem;
}

.dialog-header h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1.5rem;
  letter-spacing: -0.03em;
}

.dialog-header p {
  margin: 0.35rem 0 0;
  color: #6c7f8f;
  font-size: 0.84rem;
}

.dialog-close {
  background: #eef3f6;
  color: #536879;
}

.review-list {
  padding: 0 1.35rem 1.2rem;
}

.review-row {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  border: 0;
  border-bottom: 1px solid #edf1f3;
  background: transparent;
  padding: 1rem 0;
  color: #17324e;
  text-align: left;
}

.review-row small,
.review-row strong {
  display: block;
}

.review-row small {
  color: #91a0ac;
  font-size: 0.64rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.review-row strong {
  margin-top: 0.3rem;
  font-size: 0.85rem;
  line-height: 1.45;
}

.review-row svg {
  width: 1rem;
  color: #b8c2c9;
}

.compare-grid {
  display: grid;
  grid-template-columns: repeat(var(--compare-count, 2), minmax(0, 1fr));
  gap: 0.9rem;
  padding: 1rem;
}

.compare-column {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  background: white;
}

.compare-column .product-visual {
  height: 8rem;
}

.compare-body {
  padding: 1rem;
}

.compare-body h3 {
  margin: 0;
  font-size: 1.05rem;
}

.spec-list {
  margin-top: 0.8rem;
}

.spec-row {
  border-top: 1px solid #edf1f3;
  padding: 0.75rem 0;
}

.spec-row small,
.spec-row strong {
  display: block;
}

.spec-row small {
  color: #99a6b0;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.spec-row strong {
  margin-top: 0.25rem;
  color: #314b64;
  font-size: 0.8rem;
}

.drawer {
  padding: 0;
}

.drawer[open] {
  display: flex;
  justify-content: flex-end;
}

.drawer-panel {
  width: min(100%, 48rem);
  height: 100%;
  overflow-y: auto;
  background: #f5f7f9;
  box-shadow: -25px 0 80px rgba(0, 0, 0, 0.25);
  animation: slide-in 240ms ease-out;
}

.drawer-top {
  position: relative;
}

.drawer-top .product-visual {
  height: 19rem;
}

.drawer-close {
  position: absolute;
  z-index: 4;
  top: 1rem;
  right: 1rem;
  display: grid;
  width: 2.7rem;
  height: 2.7rem;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background: rgba(5, 24, 43, 0.72);
  color: white;
  backdrop-filter: blur(10px);
}

.drawer-close svg {
  width: 1rem;
}

.drawer-intro {
  background: white;
  padding: 1.7rem;
}

.drawer-intro h2 {
  margin: 0.45rem 0 0;
  font-size: 2rem;
  letter-spacing: -0.04em;
}

.drawer-intro p {
  margin: 0.6rem 0 0;
  color: #64798b;
  line-height: 1.65;
}

.drawer-content {
  display: grid;
  gap: 1.2rem;
  padding: 1.5rem;
}

.content-card {
  border: 1px solid var(--line);
  border-radius: 1.2rem;
  background: white;
  padding: 1.2rem;
}

.content-card.gold-card {
  border-color: #dfcc9d;
  background: #fffaf0;
}

.content-card h3 {
  margin: 0;
  font-size: 0.9rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.content-card .reason-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.cvba-card {
  overflow: hidden;
  border-color: #d8c08d;
  background: linear-gradient(145deg, #fffdf8, #f8f2e6);
  padding: 0;
}

.cvba-intro {
  border-bottom: 1px solid #eadfc8;
  padding: 1.25rem;
}

.cvba-intro > span {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  color: #8a6626;
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.cvba-intro > span svg {
  width: 1rem;
}

.cvba-intro h3 {
  margin-top: 0.55rem;
  font-size: 1.28rem;
}

.cvba-intro p {
  margin: 0.4rem 0 0;
  color: #667889;
  font-size: 0.82rem;
  line-height: 1.55;
}

.cvba-list {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.cvba-item {
  display: grid;
  grid-template-columns: 2.3rem minmax(0, 1fr);
  gap: 0.8rem;
  border: 1px solid #e8e1d5;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  padding: 0.85rem;
}

.cvba-item-number {
  display: grid;
  width: 2.3rem;
  height: 2.3rem;
  place-items: center;
  border-radius: 0.75rem;
  background: #0b2940;
  color: #f0d599;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.cvba-sequence {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.cvba-step {
  display: grid;
  grid-template-columns: 2rem minmax(0, 1fr);
  align-items: start;
  gap: 0.65rem;
  border-radius: 0.8rem;
  background: #f4f7f8;
  padding: 0.75rem;
}

.cvba-characteristic,
.cvba-attraction {
  grid-column: 1 / -1;
}

.cvba-characteristic {
  background: #edf3f6;
}

.cvba-attraction {
  border: 1px solid #e5c987;
  background: #fff8e8;
}

.cvba-letter {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border-radius: 999px;
  background: #dfe8ed;
  color: #173b55;
  font-size: 0.72rem;
  font-weight: 950;
}

.cvba-attraction .cvba-letter {
  background: #d8b46a;
  color: #09243a;
}

.cvba-step small,
.cvba-step strong {
  display: block;
}

.cvba-step small {
  color: #7e8f9c;
  font-size: 0.58rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.cvba-step strong,
.cvba-step p {
  margin: 0.25rem 0 0;
  color: #203b50;
  font-size: 0.78rem;
  line-height: 1.5;
}

.cvba-step strong {
  font-weight: 850;
}

.cvba-attraction p {
  color: #6d5210;
  font-weight: 800;
}

.technical-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.technical-grid .spec-row {
  padding: 0.8rem;
}

.highlight-list {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.8rem;
}

.highlight-list span {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid #e7ecef;
  border-radius: 0.85rem;
  padding: 0.75rem;
  color: #314b64;
  font-size: 0.82rem;
  font-weight: 700;
}

.highlight-list svg {
  width: 0.9rem;
  color: var(--gold-dark);
}

.technical-copy {
  margin: 0.8rem 0 0;
  color: #4f6679;
  font-size: 0.86rem;
  line-height: 1.65;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.75rem;
}

.base-flow-screen {
  min-height: calc(100svh - 82px);
}

.base-flow-wrap {
  width: min(100%, 68rem);
  margin: auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
}

.base-flow-wrap .chosen-strip {
  margin-top: 0;
}

.light-heading {
  margin-top: 2.5rem;
}

.light-heading h1 {
  color: white;
}

.light-heading p {
  color: rgba(255, 255, 255, 0.58);
}

.base-type-grid {
  max-width: 52rem;
  margin: auto;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.base-type-grid .choice-card {
  min-height: 220px;
}

.base-results-hero .secondary-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.base-options-wrap {
  width: min(100%, 1440px);
  margin: auto;
  padding: 1.6rem clamp(1.25rem, 4vw, 3rem) 3rem;
}

.base-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
}

.base-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: white;
  box-shadow: 0 16px 45px rgba(8, 31, 53, 0.08);
}

.base-card.matched {
  border-color: rgba(184, 142, 67, 0.65);
  box-shadow: 0 18px 50px rgba(151, 103, 22, 0.14);
}

.base-photo {
  position: relative;
  height: 14rem;
  overflow: hidden;
  background: #eef1f2;
}

.base-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.base-photo > span,
.base-photo > strong {
  position: absolute;
  top: 0.9rem;
  border-radius: 999px;
  padding: 0.45rem 0.7rem;
  font-size: 0.62rem;
  font-weight: 900;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.base-photo > span {
  left: 0.9rem;
  background: rgba(5, 28, 49, 0.88);
  color: white;
}

.base-photo > strong {
  right: 0.9rem;
  background: var(--gold);
  color: var(--navy-900);
}

.base-card-body {
  padding: 1.2rem;
}

.base-card-body h2 {
  margin: 0.55rem 0 0;
  font-size: 1.25rem;
  letter-spacing: -0.025em;
}

.base-card-body > p {
  min-height: 3.9em;
  margin: 0.55rem 0 0;
  color: var(--slate);
  font-size: 0.82rem;
  line-height: 1.55;
}

.base-facts {
  display: grid;
  gap: 0;
  margin: 1rem 0 0;
  border: 1px solid var(--line);
  border-radius: 1rem;
  background: #f8fafb;
}

.base-facts div {
  display: grid;
  grid-template-columns: 7rem minmax(0, 1fr);
  gap: 0.65rem;
  padding: 0.7rem 0.8rem;
}

.base-facts div + div {
  border-top: 1px solid var(--line);
}

.base-facts dt {
  color: #8795a0;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.base-facts dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.75rem;
  font-weight: 700;
  line-height: 1.45;
}

.base-upholsteries,
.base-colors {
  margin-top: 1rem;
}

.base-upholsteries > small,
.base-colors > small {
  color: var(--slate);
  font-size: 0.72rem;
}

.base-upholsteries > div,
.base-colors > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.55rem;
}

.upholstery-choice {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 0.5rem 0.75rem;
  color: var(--slate);
  font-size: 0.68rem;
  font-weight: 800;
}

.upholstery-choice.selected {
  border-color: var(--gold-dark);
  background: #fff8e9;
  color: var(--ink);
  box-shadow: 0 0 0 2px rgba(205, 157, 58, 0.1);
}

.color-choice {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  padding: 0.35rem 0.55rem 0.35rem 0.38rem;
  color: var(--slate);
}

.color-choice.selected {
  border-color: var(--gold-dark);
  background: #fff8e9;
  color: var(--ink);
}

.color-choice span {
  width: 1rem;
  height: 1rem;
  border: 1px solid rgba(0, 0, 0, 0.16);
  border-radius: 999px;
}

.color-choice em {
  font-size: 0.62rem;
  font-style: normal;
  font-weight: 750;
}

.base-card-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0.7rem;
  margin-top: 1.1rem;
}

.base-card-actions .choose-link {
  grid-column: auto;
  text-decoration: none;
}

.base-card-actions .primary-button {
  width: 100%;
}

.composition-wrap {
  width: min(100%, 76rem);
  margin: auto;
  padding: clamp(2rem, 5vw, 4rem) clamp(1.25rem, 4vw, 3rem);
  text-align: center;
}

.composition-wrap h1,
.done-card h1 {
  margin: 0.75rem 0 0;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  font-weight: 650;
  letter-spacing: -0.05em;
}

.composition-wrap > p,
.done-card > p {
  max-width: 43rem;
  margin: 0.8rem auto 0;
  color: rgba(255, 255, 255, 0.56);
  line-height: 1.65;
}

.chosen-strip {
  display: flex;
  max-width: 48rem;
  align-items: center;
  gap: 1rem;
  margin: 1.7rem auto;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.8rem;
  text-align: left;
}

.chosen-strip img {
  width: 7rem;
  height: 4.5rem;
  border-radius: 0.8rem;
  object-fit: cover;
}

.chosen-strip small,
.chosen-strip strong {
  display: block;
}

.chosen-strip small {
  color: var(--gold);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.chosen-strip strong {
  margin-top: 0.3rem;
}

.complement-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.headboard-section {
  margin-top: 2rem;
  text-align: left;
}

.headboard-section-heading,
.other-complements-title {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.headboard-section-heading span,
.other-complements-title span {
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.headboard-section-heading h2 {
  margin: 0.3rem 0 0;
  color: white;
  font-size: clamp(1.45rem, 3vw, 2rem);
}

.headboard-section-heading small,
.other-complements-title small {
  color: rgba(255, 255, 255, 0.48);
}

.headboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.9rem;
}

.headboard-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.055);
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.headboard-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 180, 106, 0.5);
}

.headboard-card[data-selected="true"] {
  border-color: var(--gold);
  background: rgba(216, 180, 106, 0.1);
}

.headboard-image-wrap {
  height: 190px;
  background: #f7f7f6;
}

.headboard-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.headboard-card-body {
  padding: 1rem;
}

.headboard-style {
  color: #e5c98f;
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.headboard-card h3 {
  margin: 0.45rem 0 0;
  color: white;
  font-size: 1.08rem;
}

.headboard-card p {
  min-height: 3.9em;
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.54);
  font-size: 0.8rem;
  line-height: 1.5;
}

.headboard-card dl {
  display: grid;
  gap: 0.6rem;
  margin: 0.9rem 0 0;
}

.headboard-card dl div {
  border-top: 1px solid rgba(255, 255, 255, 0.09);
  padding-top: 0.55rem;
}

.headboard-card dt,
.headboard-card dd {
  margin: 0;
}

.headboard-card dt {
  color: rgba(255, 255, 255, 0.38);
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.headboard-card dd {
  margin-top: 0.2rem;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.76rem;
  line-height: 1.4;
}

.headboard-card-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.55rem;
  margin-top: 1rem;
}

.headboard-card-actions a,
.headboard-card-actions button {
  display: inline-flex;
  min-height: 2.7rem;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.headboard-card-actions a {
  border: 1px solid rgba(255, 255, 255, 0.13);
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.headboard-card-actions button {
  border: 1px solid rgba(216, 180, 106, 0.55);
  background: rgba(216, 180, 106, 0.12);
  color: #f1dcae;
}

.headboard-card-actions svg {
  width: 0.9rem;
}

.headboard-empty {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.05);
  padding: 1rem;
  color: rgba(255, 255, 255, 0.62);
}

.other-complements-title {
  margin-top: 2rem;
}

.complement-card {
  min-height: 250px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 1.4rem;
  background: rgba(255, 255, 255, 0.055);
  padding: 1.2rem;
  color: white;
  text-align: left;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.complement-card:hover {
  transform: translateY(-3px);
  border-color: rgba(216, 180, 106, 0.5);
}

.complement-card[aria-pressed="true"] {
  border-color: var(--gold);
  background: rgba(216, 180, 106, 0.1);
}

.complement-card .choice-icon {
  background: rgba(255, 255, 255, 0.08);
  color: #e5c98f;
}

.complement-card h3 {
  margin: 1.1rem 0 0;
  font-size: 1.15rem;
}

.complement-card p {
  margin: 0.45rem 0 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.82rem;
  line-height: 1.55;
}

.complement-state {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-top: 1.2rem;
  color: #e5c98f;
  font-size: 0.65rem;
  font-weight: 850;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.complement-state svg {
  width: 0.95rem;
}

.dark-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.7rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.25rem;
}

.dark-footer .ghost-button {
  color: rgba(255, 255, 255, 0.66);
}

.dark-footer .ghost-button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: white;
}

.done-screen {
  display: grid;
  min-height: calc(100svh - 72px);
  place-items: center;
  padding: 2rem 1.25rem;
}

.done-card {
  width: min(100%, 48rem);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.07);
  padding: clamp(1.7rem, 5vw, 3rem);
  color: white;
  text-align: center;
  box-shadow: 0 35px 100px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(18px);
}

.done-icon {
  display: grid;
  width: 5rem;
  height: 5rem;
  place-items: center;
  margin: auto;
  border-radius: 999px;
  background: var(--gold);
  color: var(--navy-800);
  box-shadow: 0 18px 45px rgba(216, 180, 106, 0.22);
}

.done-icon svg {
  width: 2.2rem;
}

.solution-summary {
  max-width: 36rem;
  margin: 1.6rem auto 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 1.15rem;
  background: rgba(4, 22, 42, 0.65);
  padding: 1.1rem;
  text-align: left;
}

.solution-summary small,
.solution-summary strong {
  display: block;
}

.solution-summary small {
  color: rgba(255, 255, 255, 0.42);
  font-size: 0.62rem;
  font-weight: 850;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.solution-summary strong {
  margin-top: 0.35rem;
  font-size: 1.15rem;
}

.solution-summary p {
  margin: 0.85rem 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.85rem;
  color: rgba(255, 255, 255, 0.56);
  font-size: 0.82rem;
}

.animate-rise {
  animation: rise 420ms cubic-bezier(0.2, 0.9, 0.28, 1) both;
}

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

@keyframes orbit {
  to { transform: rotate(360deg); }
}

@keyframes slide-in {
  from { opacity: 0; transform: translateX(28px); }
  to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 980px) {
  .welcome {
    grid-template-columns: 1fr;
    padding-top: 3rem;
  }

  .welcome-copy {
    max-width: 44rem;
  }

  .welcome-visual {
    min-height: 420px;
  }

  .choice-grid.four,
  .concern-grid,
  .complement-grid,
  .headboard-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .results-hero-inner {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-grid {
    grid-template-columns: 1fr;
  }

  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .base-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .product-card {
    display: grid;
    grid-template-columns: minmax(260px, 0.85fr) minmax(0, 1.15fr);
  }

  .product-card .product-visual {
    height: 100%;
    min-height: 300px;
  }
}

@media (max-width: 700px) {
  .seller {
    min-width: 0;
  }

  .welcome {
    padding: 2.5rem 1.25rem;
  }

  .welcome h1 {
    font-size: clamp(3rem, 16vw, 4.8rem);
  }

  .welcome-visual {
    min-height: 360px;
  }

  .choice-grid,
  .choice-grid.four,
  .base-type-grid,
  .concern-grid,
  .complement-grid,
  .headboard-grid {
    grid-template-columns: 1fr;
  }

  .headboard-section-heading,
  .other-complements-title {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.3rem;
  }

  .catalog-toolbar,
  .catalog-grid,
  .base-grid {
    grid-template-columns: 1fr;
  }

  .base-card-actions {
    grid-template-columns: 1fr;
  }

  .base-card-actions .choose-link {
    text-align: center;
  }

  .catalog-summary {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .drawer-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .drawer-actions > * {
    width: 100%;
  }

  .choice-card {
    min-height: 132px;
  }

  .step-footer,
  .dark-footer {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .step-footer button,
  .dark-footer button {
    width: 100%;
  }

  .progress-row small {
    display: none;
  }

  .product-card {
    display: flex;
  }

  .product-card .product-visual {
    height: 14rem;
    min-height: 0;
  }

  .compare-grid {
    overflow-x: auto;
    grid-template-columns: repeat(var(--compare-count, 2), minmax(250px, 1fr));
  }

  .content-card .reason-list,
  .technical-grid {
    grid-template-columns: 1fr;
  }

  .cvba-item {
    grid-template-columns: 1fr;
  }

  .cvba-sequence {
    grid-template-columns: 1fr;
  }

  .cvba-characteristic,
  .cvba-attraction {
    grid-column: auto;
  }

  .seller strong {
    max-width: 6.5rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

@media (max-width: 430px) {
  .catalog-header-button span {
    display: none;
  }
  .brand-name small,
  .seller small {
    display: none;
  }

  .brand-name strong {
    font-size: 0.76rem;
  }

  .brand-logo-wrap {
    width: 6.4rem;
  }

  .brand-location {
    display: none;
  }

  .seller strong {
    font-size: 0.76rem;
  }

  .visual-note {
    right: 1rem;
    bottom: 1rem;
    left: 1rem;
  }

  .question-panel {
    border-radius: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
