:root {
  --navy: #0b2f58;
  --navy-2: #123f72;
  --ink: #10243b;
  --muted: #68788b;
  --line: #d9e0e7;
  --paper: #f4f6f8;
  --card: #ffffff;
  --soft: #edf2f7;
  --green: #1e6a56;
  --danger: #9b2f36;
  --shadow: 0 18px 50px rgba(16, 36, 59, .09);
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
button, input, select { font: inherit; }
button { cursor: pointer; }
a { color: inherit; }

.site-header {
  min-height: 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 5vw;
  background: rgba(255,255,255,.97);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(12px);
}

.brand {
  text-decoration: none;
  display: inline-grid;
  line-height: 1;
  color: var(--navy);
  letter-spacing: .08em;
}
.brand-top { font-weight: 800; font-size: 22px; letter-spacing: .22em; }
.brand-middle { font-weight: 700; font-size: 12px; letter-spacing: .34em; margin-top: 3px; }
.brand-bottom { color: var(--muted); font-size: 9px; letter-spacing: .12em; margin-top: 5px; }

.header-actions { display: flex; align-items: center; gap: 16px; }
.year-pill { background: var(--soft); color: var(--navy); padding: 8px 12px; border-radius: 999px; font-size: 12px; font-weight: 800; }
.text-button { border: 0; background: none; color: var(--muted); text-decoration: underline; font-weight: 700; }

main { max-width: 1540px; margin: 0 auto; }

.hero {
  margin: 24px 5vw 18px;
  min-height: 340px;
  position: relative;
  overflow: hidden;
  border-radius: 26px;
  color: white;
  background: linear-gradient(115deg, #0b2f58 0%, #173f6c 55%, #5e7184 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(340px, .92fr);
  align-items: center;
  box-shadow: var(--shadow);
}

.hero-copy-wrap { padding: 48px 42px; position: relative; z-index: 3; }
.hero-kicker { margin: 0 0 14px; font-size: 11px; font-weight: 800; letter-spacing: .18em; color: #d8e4ef; }
h1 { margin: 0; max-width: 780px; font-size: clamp(38px, 4.4vw, 68px); line-height: .98; letter-spacing: -.035em; font-weight: 800; }
.hero-copy { margin: 18px 0 0; max-width: 720px; color: #e8eef5; font-size: 18px; line-height: 1.55; }

.hero-visual { position: relative; min-height: 340px; align-self: stretch; }
.hero-visual img { position: absolute; z-index: 4; width: min(760px, 115%); right: -7%; bottom: 18px; filter: drop-shadow(0 18px 24px rgba(0,0,0,.24)); }
.mountain { position: absolute; bottom: 110px; opacity: .42; background: #b9c4cf; clip-path: polygon(0 100%, 26% 43%, 42% 74%, 62% 18%, 100% 100%); }
.mountain-one { width: 105%; height: 200px; left: -5%; }
.mountain-two { width: 88%; height: 150px; left: 12%; bottom: 88px; opacity: .23; }
.road { position: absolute; left: -10%; right: -10%; bottom: 0; height: 95px; background: linear-gradient(168deg, transparent 0 25%, rgba(17,26,36,.7) 26% 100%); }

.steps { margin: 0 5vw; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 0; }
.steps::-webkit-scrollbar { display: none; }
.step { border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 999px; padding: 10px 14px; white-space: nowrap; font-size: 12px; font-weight: 800; }
.step.active { background: var(--navy); color: white; border-color: var(--navy); }
.step.complete { border-color: #9dbdb2; color: var(--green); }

.mobile-progress { display: none; }

.workspace {
  padding: 20px 5vw 70px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
}

.config-panel, .build-card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); }
.config-panel { padding: 34px; min-width: 0; }
.eyebrow { margin: 0 0 8px; color: var(--navy-2); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.section-heading h2 { margin: 0 0 8px; font-size: clamp(30px, 3vw, 42px); line-height: 1.08; }
.section-heading > p:last-child { color: var(--muted); max-width: 760px; line-height: 1.5; margin: 0 0 28px; }

.model-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.model-card {
  display: grid;
  grid-template-columns: 45% 1fr;
  min-height: 240px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: white;
  overflow: hidden;
  text-align: left;
  position: relative;
  transition: .18s ease;
}
.model-card:hover, .option-card:hover, .swatch-card:hover { border-color: #9fb3c5; transform: translateY(-1px); }
.model-card.selected, .option-card.selected, .swatch-card.selected { border: 2px solid #1c70d1; box-shadow: 0 0 0 3px rgba(28,112,209,.10); }
.model-image-wrap { background: linear-gradient(145deg, #f8fafc, #e8edf2); display: grid; place-items: center; padding: 12px; }
.model-image-wrap img { width: 100%; max-height: 180px; object-fit: contain; }
.model-card-body { padding: 24px 22px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.model-name { font-size: 28px; letter-spacing: .08em; font-weight: 900; margin: 0 0 4px; }
.model-card p { margin: 5px 0; color: var(--muted); line-height: 1.45; }
.model-card .price { margin-top: 4px; color: var(--ink); font-size: 17px; font-weight: 800; }
.model-link { margin-top: 14px; color: var(--navy-2); font-weight: 800; }
.radio-dot { position: absolute; top: 18px; right: 18px; width: 30px; height: 30px; border: 2px solid #9ba8b6; border-radius: 50%; background: white; }
.selected .radio-dot { border-color: #1769c8; box-shadow: inset 0 0 0 7px white; background: #1769c8; }

.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.option-card { border: 1px solid var(--line); background: white; border-radius: 17px; overflow: hidden; text-align: left; transition: .18s ease; }
.option-card img { width: 100%; aspect-ratio: 2.1/1; object-fit: contain; background: #f5f7f9; display: block; }
.option-card .body { padding: 17px; }
.option-card h3 { margin: 0 0 5px; font-size: 18px; }
.option-card p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.option-card .price { display: block; margin-top: 10px; color: var(--navy-2); font-weight: 800; }

.swatch-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.swatch-card { border: 1px solid var(--line); background: white; border-radius: 16px; padding: 12px; text-align: left; transition: .18s ease; }
.swatch { height: 92px; border-radius: 11px; margin-bottom: 10px; border: 1px solid rgba(0,0,0,.1); position: relative; overflow: hidden; }
.swatch::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(255,255,255,.35), rgba(0,0,0,.07)); }

.checkbox-list { display: grid; gap: 10px; }
.check-card { border: 1px solid var(--line); border-radius: 14px; padding: 15px 16px; display: flex; gap: 12px; align-items: flex-start; background: white; }
.check-card input { width: 19px; height: 19px; margin-top: 2px; accent-color: var(--navy); }
.check-card strong { display: block; margin-bottom: 3px; }
.check-card small { color: var(--muted); line-height: 1.4; }
.option-section + .option-section { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.option-section-heading { margin-bottom: 12px; }
.option-section-heading h3 { margin: 0 0 5px; font-size: 18px; }
.option-section-heading p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; }
.check-card.included { background: #f7fbfa; border-color: #b9ddd4; }
.check-card.included input { accent-color: #2bb495; opacity: 1; cursor: not-allowed; }
.check-card.included strong { color: var(--ink); }
.included-badge { display: inline-flex; align-items: center; margin-right: 6px; padding: 2px 7px; border-radius: 999px; background: #e2f4ef; color: #146b59; font-size: 11px; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; }

.match-header { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin-bottom: 14px; }
.match-header strong { color: var(--green); }
.match-list { display: grid; gap: 14px; }
.match-card { display: grid; grid-template-columns: 190px 1fr; gap: 18px; border: 1px solid var(--line); border-radius: 17px; padding: 14px; background: white; align-items: center; }
.match-card img { width: 190px; height: 124px; object-fit: cover; border-radius: 12px; background: #eef1f4; }
.match-card h3 { margin: 3px 0 5px; }
.match-kicker { margin: 0; color: var(--green); font-size: 12px; font-weight: 900; text-transform: uppercase; letter-spacing: .06em; }
.match-meta { color: var(--muted); font-size: 14px; line-height: 1.55; }
.match-actions { display: flex; gap: 9px; flex-wrap: wrap; margin-top: 12px; }

.empty-state { padding: 30px; border: 1px dashed #b8c3ce; border-radius: 16px; color: var(--muted); text-align: center; background: #fafbfc; line-height: 1.5; }

.summary-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.summary-block { background: #f7f9fb; border: 1px solid #e5eaf0; border-radius: 16px; padding: 18px; }
.summary-block h3 { margin: 0 0 10px; }
.summary-block ul { margin: 0; padding-left: 20px; line-height: 1.65; }
.summary-block p { line-height: 1.5; }
.summary-block small { color: var(--muted); line-height: 1.45; display: block; }
.summary-inventory { grid-column: 1 / -1; }
.summary-actions { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 4px; }
.summary-action { min-height: 58px; font-size: 15px; }

.nav-actions { display: flex; justify-content: space-between; gap: 14px; margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--line); }
.button { min-height: 46px; border-radius: 11px; padding: 12px 20px; font-weight: 850; border: 1px solid transparent; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }
.button.primary { background: var(--navy); color: white; }
.button.secondary { background: white; color: var(--navy); border-color: #b9c5d0; }
.button:disabled { opacity: .42; cursor: not-allowed; }
.button.full { width: 100%; }

.sticky { position: sticky; top: 102px; }
.build-card { padding: 22px; }
.build-card-head { display: flex; justify-content: space-between; gap: 14px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.build-card-head > div { min-width: 0; }
.build-card-head span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .09em; font-weight: 900; }
.build-card-head strong { display: block; margin-top: 4px; line-height: 1.3; }
.sidebar-save { border: 0; background: none; color: var(--navy-2); text-decoration: underline; font-size: 12px; font-weight: 850; padding: 0; white-space: nowrap; align-self: flex-start; }
.sidebar-image { width: 100%; height: 160px; object-fit: contain; margin: 12px 0; border-radius: 12px; background: #f4f6f8; }
dl { margin: 14px 0; display: grid; grid-template-columns: 1fr auto; gap: 8px 12px; font-size: 13px; }
dt { color: var(--muted); }
dd { margin: 0; text-align: right; font-weight: 800; max-width: 190px; overflow-wrap: anywhere; }
.price-box { border-top: 1px solid var(--line); padding-top: 14px; display: grid; gap: 4px; }
.price-box span { color: var(--muted); font-size: 12px; }
.price-box strong { font-size: 31px; line-height: 1; }
.price-box small { color: var(--muted); line-height: 1.4; }
.mini-match { margin-top: 16px; padding: 14px; border-radius: 13px; background: #edf6f2; color: #174c40; font-size: 13px; line-height: 1.45; }

.status { min-height: 25px; padding: 8px 0; color: var(--muted); font-size: 14px; line-height: 1.4; }
.status.success { color: var(--green); font-weight: 800; }
.status.error { color: var(--danger); font-weight: 800; }

footer { border-top: 1px solid var(--line); padding: 34px 5vw 48px; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; color: var(--muted); font-size: 14px; line-height: 1.55; }
footer p { grid-column: 1 / -1; font-size: 12px; }

dialog { width: min(720px, calc(100vw - 28px)); border: 0; border-radius: 22px; padding: 0; box-shadow: 0 30px 90px rgba(0,0,0,.28); }
dialog::backdrop { background: rgba(10, 26, 43, .66); backdrop-filter: blur(4px); }
.dialog-form { padding: 30px; position: relative; }
.dialog-form h2 { margin: 0 0 7px; font-size: 31px; }
.dialog-form > p:not(.eyebrow) { color: var(--muted); line-height: 1.5; }
.compact-dialog { max-width: 520px; margin: auto; }
.dialog-close { position: absolute; top: 13px; right: 16px; border: 0; background: none; font-size: 30px; color: var(--muted); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 20px 0; }
label { color: #4c5b6d; font-size: 13px; font-weight: 800; }
input, select { width: 100%; margin-top: 6px; border: 1px solid #cbd4dc; border-radius: 10px; padding: 12px; background: white; color: var(--ink); min-height: 46px; font-size: 16px; }
.consent { display: flex; gap: 9px; align-items: flex-start; margin: 16px 0 5px; font-weight: 650; line-height: 1.45; }
.consent input { width: auto; min-height: 0; margin-top: 2px; }
.saved-link-wrap { margin-top: 14px; }
.mail-fallback { margin-top: 10px; }

@media (max-width: 1080px) {
  .workspace { grid-template-columns: minmax(0, 1fr) 320px; }
}

@media (max-width: 900px) {
  .site-header { padding-left: 20px; padding-right: 20px; }
  .year-pill { display: none; }
  .hero { margin-left: 18px; margin-right: 18px; grid-template-columns: 1fr; min-height: 0; }
  .hero-copy-wrap { padding: 34px 28px 20px; }
  .hero-visual { min-height: 180px; }
  .hero-visual img { width: min(620px, 92%); right: -5%; bottom: 2px; }
  .mountain { bottom: 50px; }
  .road { height: 62px; }
  .desktop-steps { display: none; }
  .mobile-progress { display: block; margin: 0 18px; background: white; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 10px 28px rgba(16,36,59,.06); }
  .mobile-step-count { text-align: center; font-size: 16px; font-weight: 900; padding: 14px 12px 8px; }
  .mobile-step-track { display: grid; grid-template-columns: 1fr 1fr; min-height: 58px; }
  .mobile-step-current, .mobile-step-next { display: flex; align-items: center; justify-content: center; padding: 12px; font-weight: 850; text-align: center; }
  .mobile-step-current { background: var(--navy); color: white; clip-path: polygon(0 0, 92% 0, 100% 50%, 92% 100%, 0 100%); padding-right: 28px; }
  .mobile-step-next { background: #e9eef4; color: var(--navy); margin-left: -12px; padding-left: 26px; }
  .mobile-step-next span { font-size: 10px; font-weight: 900; text-transform: uppercase; margin-left: 6px; color: var(--muted); }
  .workspace { grid-template-columns: 1fr; padding: 14px 18px 54px; }
  .build-sidebar { display: none; }
  .config-panel { min-height: 0; }
}

@media (max-width: 680px) {
  .brand-top { font-size: 19px; }
  .brand-middle { font-size: 10px; }
  .brand-bottom { display: none; }
  .header-actions { gap: 8px; }
  .site-header { min-height: 70px; }
  .hero { border-radius: 0; margin: 0; box-shadow: none; }
  .hero-copy-wrap { padding: 28px 20px 12px; }
  h1 { font-size: clamp(36px, 10vw, 50px); line-height: 1.02; }
  .hero-copy { font-size: 16px; line-height: 1.5; }
  .hero-visual { min-height: 150px; }
  .hero-visual img { width: 100%; right: -10%; bottom: 0; }
  .mobile-progress { margin: 0; border-left: 0; border-right: 0; border-radius: 0; }
  .workspace { padding: 0 0 30px; }
  .config-panel { border: 0; border-radius: 0; box-shadow: none; padding: 26px 18px 18px; }
  .section-heading h2 { font-size: 31px; }
  .model-grid, .option-grid, .swatch-grid, .summary-grid, .form-grid { grid-template-columns: 1fr; }
  .model-card { grid-template-columns: 43% 1fr; min-height: 205px; }
  .model-card-body { padding: 18px 16px; }
  .model-name { font-size: 24px; }
  .model-card p { font-size: 13px; }
  .model-card .price { font-size: 15px; }
  .radio-dot { width: 27px; height: 27px; top: 14px; right: 14px; }
  .swatch-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .match-card { grid-template-columns: 1fr; }
  .match-card img { width: 100%; height: 205px; }
  .summary-inventory { grid-column: auto; }
  .summary-actions { grid-column: auto; grid-template-columns: 1fr; }
  .nav-actions { position: sticky; bottom: 0; z-index: 15; margin: 28px -18px -18px; padding: 12px 18px calc(12px + env(safe-area-inset-bottom)); background: rgba(255,255,255,.97); box-shadow: 0 -8px 28px rgba(16,36,59,.08); }
  .nav-actions .button { flex: 1; }
  footer { grid-template-columns: 1fr; padding: 30px 18px; }
  footer p { grid-column: auto; }
  .dialog-form { padding: 26px 20px; }
}

@media (max-width: 420px) {
  .text-button { font-size: 12px; }
  .model-card { grid-template-columns: 1fr; }
  .model-image-wrap { min-height: 155px; }
  .model-image-wrap img { max-height: 145px; }
  .swatch-grid { grid-template-columns: 1fr 1fr; }
  .mobile-step-current, .mobile-step-next { font-size: 14px; }
}

/* =========================================================
   V3 HYBRID HERO
   Keeps the premium editorial desktop introduction while the
   configurator itself retains the clean V2 card/wizard UI.
   ========================================================= */

body {
  background: #f4f5f6;
}

.site-header {
  min-height: 82px;
  padding-top: 12px;
  padding-bottom: 12px;
}

.brand.brand-editorial {
  display: flex;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  letter-spacing: 0;
  line-height: 1.15;
}

.brand-mark {
  width: 52px;
  height: 52px;
  flex: 0 0 52px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #111b27;
  color: #fff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 31px;
  font-weight: 700;
  font-style: italic;
}

.brand-copy {
  display: grid;
  gap: 4px;
}

.brand-copy strong {
  font-size: 18px;
  font-weight: 850;
  color: #17212c;
}

.brand-copy small {
  font-size: 14px;
  color: #697687;
}

.year-pill {
  background: #ede9e3;
  color: #17212c;
  padding: 10px 16px;
  font-size: 13px;
}

.hero.hero-editorial {
  margin: 0 5vw 12px;
  min-height: 390px;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
  color: #17212c;
  background: #f7f5f2;
  display: grid;
  grid-template-columns: minmax(0, 1.75fr) minmax(310px, .72fr);
  align-items: end;
  gap: clamp(36px, 5vw, 86px);
  padding: 72px 0 38px;
}

.hero-editorial .hero-copy-wrap {
  padding: 0;
}

.hero-editorial .hero-kicker {
  margin: 0 0 18px;
  color: #906c43;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .19em;
}

.hero-editorial h1 {
  margin: 0;
  max-width: 1040px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(52px, 5.3vw, 88px);
  font-weight: 700;
  letter-spacing: -.045em;
  line-height: .98;
}

.hero-editorial h1 span,
.hero-editorial h1 em {
  display: block;
}

.hero-editorial h1 span {
  color: #17212c;
}

.hero-editorial h1 em {
  color: #956f43;
  font-style: normal;
}

.hero-editorial .hero-copy {
  margin: 30px 0 0;
  max-width: 920px;
  color: #667485;
  font-size: 18px;
  line-height: 1.62;
}

.hero-match-card {
  align-self: end;
  margin: 0 0 4px;
  padding: 28px 30px;
  border-radius: 26px;
  background: #17212c;
  color: #fff;
  box-shadow: 0 20px 48px rgba(20, 29, 39, .10);
}

.hero-match-card strong {
  display: block;
  margin-bottom: 12px;
  font-size: 18px;
  font-weight: 900;
}

.hero-match-card p {
  margin: 0;
  color: #f1f3f5;
  font-size: 16px;
  line-height: 1.55;
}

.desktop-steps {
  margin-top: 10px;
}

@media (max-width: 1080px) {
  .hero.hero-editorial {
    grid-template-columns: minmax(0, 1.45fr) minmax(280px, .7fr);
    gap: 32px;
    min-height: 340px;
    padding-top: 54px;
  }

  .hero-editorial h1 {
    font-size: clamp(48px, 6.2vw, 72px);
  }
}

@media (max-width: 900px) {
  .site-header {
    padding-left: 20px;
    padding-right: 20px;
  }

  .hero.hero-editorial {
    margin: 0 18px;
    min-height: 0;
    grid-template-columns: 1fr;
    gap: 0;
    padding: 34px 0 22px;
    background: transparent;
  }

  .hero-editorial .hero-copy-wrap {
    padding: 0;
  }

  .hero-editorial h1 {
    max-width: 720px;
    font-size: clamp(42px, 8vw, 60px);
    line-height: 1.01;
  }

  .hero-editorial .hero-copy {
    margin-top: 18px;
    max-width: 700px;
    font-size: 16px;
  }

  .hero-match-card {
    display: none;
  }

  .mobile-progress {
    margin-top: 0;
  }
}

@media (max-width: 680px) {
  .site-header {
    min-height: 68px;
    padding-top: 10px;
    padding-bottom: 10px;
  }

  .brand-mark {
    width: 42px;
    height: 42px;
    flex-basis: 42px;
    font-size: 25px;
  }

  .brand-copy strong {
    font-size: 15px;
  }

  .brand-copy small {
    font-size: 11px;
  }

  .hero.hero-editorial {
    margin: 0;
    padding: 24px 18px 20px;
    border-bottom: 1px solid var(--line);
    background: #f7f5f2;
  }

  .hero-editorial .hero-kicker {
    margin-bottom: 10px;
    font-size: 10px;
  }

  .hero-editorial h1 {
    font-size: clamp(36px, 10.5vw, 46px);
    letter-spacing: -.04em;
    line-height: 1.01;
  }

  .hero-editorial .hero-copy {
    margin-top: 13px;
    font-size: 15px;
    line-height: 1.48;
  }

  .mobile-progress {
    margin-top: 0;
  }
}

@media (max-width: 430px) {
  .brand-copy small {
    max-width: 160px;
  }

  .hero-editorial h1 {
    font-size: 38px;
  }

  .hero-editorial .hero-copy {
    font-size: 14px;
  }
}

/* =========================================================
   V3 OPTIONS IMAGE CARDS
   ========================================================= */
.visual-option-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.option-visual-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid #d8dee5;
  border-radius: 16px;
  background: #fff;
  cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.option-visual-card:hover {
  border-color: #95a7b8;
  box-shadow: 0 10px 28px rgba(16,36,59,.08);
}
.option-visual-card.selected {
  border-color: #2bb495;
  box-shadow: 0 0 0 1px #2bb495 inset;
}
.option-visual-card.locked {
  cursor: default;
}
.option-visual-card.locked:hover {
  box-shadow: none;
  transform: none;
}
.option-image-wrap {
  position: relative;
  height: 230px;
  overflow: hidden;
  background: #f1f3f5;
}
.option-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.option-image-fallback {
  height: 100%;
  display: grid;
  place-items: center;
  padding: 28px;
  color: var(--muted);
  text-align: center;
  font-weight: 800;
}
.option-price-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 9px 12px;
  background: rgba(18,26,35,.86);
  color: white;
  font-size: 13px;
  font-weight: 850;
  letter-spacing: .01em;
}
.option-price-badge.included {
  background: rgba(31,126,105,.94);
}
.option-price-badge.required {
  background: rgba(18,26,35,.92);
}
.option-input {
  position: absolute;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  opacity: 0;
  pointer-events: none;
  margin: 0 !important;
}
.visual-check {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  border: 2px solid rgba(255,255,255,.95);
  background: rgba(255,255,255,.94);
  color: transparent;
  font-size: 23px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 2px 8px rgba(0,0,0,.12);
}
.option-visual-card.selected .visual-check {
  background: #2bb495;
  color: white;
  border-color: #2bb495;
}
.option-visual-card.locked .visual-check {
  background: #2bb495;
  color: white;
  border-color: #2bb495;
  opacity: 1;
}
.option-card-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 124px;
  padding: 18px 18px 20px;
}
.option-card-copy strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}
.option-card-copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.required-grid {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.required-grid .option-visual-card {
  grid-column: 1 / 2;
}
.price-breakdown {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px 18px;
  align-items: baseline;
}
.price-breakdown br { display: none; }
.price-breakdown span { color: var(--muted); }
.price-breakdown strong { text-align: right; }
.summary-total {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: baseline;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--line);
}
.summary-total span { font-weight: 850; }
.summary-total strong { font-size: 22px; }

@media (max-width: 760px) {
  .visual-option-grid,
  .required-grid {
    grid-template-columns: 1fr;
  }
  .required-grid .option-visual-card { grid-column: auto; }
  .option-image-wrap { height: 220px; }
  .option-card-copy { min-height: 0; }
}

@media (max-width: 420px) {
  .option-image-wrap { height: 205px; }
  .option-card-copy strong { font-size: 17px; }
}

/* =========================================================
   V3 OPTIONS - APPROVED LARGE-CARD LAYOUT
   ========================================================= */
.option-section {
  padding: 22px;
  border-radius: 18px;
  background: #f7f8f9;
  border: 1px solid #edf0f2;
}
.option-section + .option-section {
  margin-top: 18px;
  padding-top: 22px;
  border-top: 1px solid #edf0f2;
}
.option-section-heading {
  margin-bottom: 16px;
}
.option-section-heading h3 {
  margin: 0 0 4px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 24px;
  line-height: 1.08;
  color: var(--ink);
}
.option-section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.45;
}
.option-heading-with-icon {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.section-check {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  background: #20b18f;
  color: white;
  font-weight: 900;
  font-size: 18px;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
}
.visual-option-grid {
  display: grid;
  gap: 14px;
}
.included-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.optional-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.option-visual-card {
  border-radius: 10px;
  border: 1px solid #d7dde3;
  box-shadow: none;
  background: #fff;
}
.option-visual-card:hover {
  border-color: #9eacb9;
  box-shadow: 0 8px 20px rgba(16,36,59,.07);
}
.option-visual-card.selected {
  border-color: #21b18f;
  box-shadow: 0 0 0 1px #21b18f inset;
}
.option-visual-card.locked:hover {
  border-color: #21b18f;
}
.option-image-wrap {
  height: 172px;
  background: #fff;
}
.included-grid .option-image-wrap {
  height: 188px;
}
.option-visual-card.included .option-image-wrap img {
  object-fit: contain;
  padding: 14px;
}
.option-visual-card.optional .option-image-wrap img {
  object-fit: cover;
}
.option-card-copy {
  min-height: 88px;
  padding: 15px 15px 17px;
  display: block;
}
.option-card-copy strong {
  display: block;
  font-size: 16px;
  line-height: 1.24;
  color: #2b3035;
}
.option-price-badge {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 11px;
  background: rgba(25,25,25,.78);
  color: white;
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
}
.option-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #def4ed;
  color: #16755f;
  font-size: 11px;
  font-weight: 850;
}
.visual-check {
  top: 12px;
  left: 12px;
  right: auto;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  border: 1.5px solid #9caaba;
  background: rgba(255,255,255,.95);
  box-shadow: 0 2px 7px rgba(0,0,0,.10);
  font-size: 20px;
}
.option-visual-card.selected .visual-check,
.option-visual-card.locked .visual-check {
  background: #20b18f;
  color: #fff;
  border-color: #20b18f;
}
.required-section {
  padding-bottom: 18px;
}
.required-charge-list {
  display: grid;
  gap: 12px;
}
.required-charge-card {
  display: grid;
  grid-template-columns: 260px minmax(0,1fr);
  min-height: 116px;
  overflow: hidden;
  border: 1px solid #cbded8;
  border-radius: 10px;
  background: white;
}
.required-charge-image {
  position: relative;
  min-height: 116px;
  overflow: hidden;
  background: #101010;
}
.required-charge-image img {
  width: 100%;
  height: 100%;
  min-height: 116px;
  object-fit: cover;
  display: block;
}
.required-charge-price {
  position: absolute;
  left: 0;
  bottom: 0;
  padding: 8px 11px;
  background: rgba(20,20,20,.82);
  color: white;
  font-size: 13px;
}
.required-check {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #20b18f;
  color: white;
  border-color: #20b18f;
}
.required-charge-copy {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
}
.required-charge-copy strong {
  display: block;
  font-size: 19px;
  color: var(--ink);
  margin-bottom: 5px;
}
.required-charge-copy small {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}
.required-pill {
  flex: 0 0 auto;
  padding: 7px 11px;
  border-radius: 999px;
  background: #f2e8d6;
  color: #7c5a23;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
}

@media (max-width: 1240px) {
  .included-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .optional-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  .optional-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .option-section {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    padding: 20px 18px;
    margin-left: -18px;
    margin-right: -18px;
  }
  .option-section + .option-section { margin-top: 12px; }
  .included-grid,
  .optional-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .option-image-wrap,
  .included-grid .option-image-wrap { height: 154px; }
  .option-card-copy { min-height: 82px; padding: 13px; }
  .option-card-copy strong { font-size: 15px; }
  .required-charge-card { grid-template-columns: 150px minmax(0,1fr); }
  .required-charge-copy { padding: 14px; }
}

@media (max-width: 520px) {
  .included-grid,
  .optional-grid { grid-template-columns: 1fr; }
  .option-image-wrap,
  .included-grid .option-image-wrap { height: 210px; }
  .option-card-copy { min-height: 0; }
  .option-card-copy strong { font-size: 17px; }
  .required-charge-card { grid-template-columns: 1fr; }
  .required-charge-image { height: 170px; }
  .required-charge-copy { align-items: flex-start; }
}

/* =========================================================
   V3 SAVED BUILDS
   ========================================================= */
.header-link { display: inline-flex; align-items: center; min-height: 42px; }
.saved-builds-shortcut { margin-top: 10px; }

.saved-main { max-width: 1540px; margin: 0 auto; }
.saved-hero {
  margin: 0 5vw;
  padding: 68px 0 46px;
  border-bottom: 1px solid #ddd8d1;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
}
.saved-hero .hero-kicker { color: #906c43; margin-bottom: 13px; }
.saved-hero h1 {
  color: #17212c;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(54px, 6vw, 88px);
  line-height: .96;
  letter-spacing: -.045em;
}
.saved-hero p:not(.hero-kicker) {
  margin: 20px 0 0;
  max-width: 720px;
  color: #667485;
  font-size: 18px;
  line-height: 1.6;
}
.saved-new-build { min-width: 150px; }

.saved-section { padding: 46px 5vw 76px; }
.saved-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 24px;
}
.saved-section-head h2 { margin: 0; font-size: clamp(28px, 3vw, 42px); line-height: 1.08; }
.saved-device-note { margin: 0; max-width: 470px; color: var(--muted); font-size: 13px; line-height: 1.55; text-align: right; }
.saved-loading { padding: 36px; border: 1px dashed #b8c3ce; border-radius: 18px; text-align: center; color: var(--muted); background: #fafbfc; }

.saved-builds-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.saved-build-card {
  min-width: 0;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  box-shadow: var(--shadow);
}
.saved-build-image-wrap {
  height: 285px;
  position: relative;
  display: grid;
  place-items: center;
  padding: 24px 30px;
  background: linear-gradient(145deg, #fbfbfa, #edf1f4);
  border-bottom: 1px solid var(--line);
}
.saved-build-image-wrap img { width: 100%; height: 100%; object-fit: contain; }
.saved-build-price {
  position: absolute;
  right: 20px;
  bottom: 18px;
  padding: 9px 12px;
  border-radius: 999px;
  background: #e2f4ef;
  color: #146b59;
  font-weight: 900;
  font-size: 14px;
}
.saved-build-card-body { padding: 26px; }
.saved-build-title-row { display: flex; align-items: start; justify-content: space-between; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.saved-build-kicker { margin: 0 0 6px; color: #906c43; font-size: 10px; font-weight: 900; letter-spacing: .15em; text-transform: uppercase; }
.saved-build-title-row h3 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 32px; line-height: 1; color: #17212c; }
.saved-floorplan { margin: 7px 0 0; color: #956f43; font-size: 17px; font-weight: 800; }
.saved-date { flex: 0 0 auto; color: var(--muted); font-size: 12px; font-weight: 750; white-space: nowrap; }
.saved-build-details { margin: 18px 0 0; grid-template-columns: 150px minmax(0, 1fr); gap: 9px 18px; font-size: 14px; }
.saved-build-details dd { max-width: none; }
.saved-match-chip { margin-top: 18px; padding: 10px 12px; border-radius: 11px; background: #edf6f2; color: #174c40; font-size: 12px; font-weight: 850; }
.saved-build-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.saved-delete { color: var(--danger); background: #fff; border-color: #d5b1b4; }
.saved-delete:hover { background: #fff7f7; }

.saved-empty {
  grid-column: 1 / -1;
  padding: 64px 28px;
  text-align: center;
  border: 1px dashed #b8c3ce;
  border-radius: 22px;
  background: #fafbfc;
}
.saved-empty-mark { width: 58px; height: 58px; margin: 0 auto 16px; display: grid; place-items: center; border-radius: 50%; background: #17212c; color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-style: italic; font-weight: 700; }
.saved-empty h3 { margin: 0 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: 30px; }
.saved-empty p { margin: 0 auto 22px; max-width: 620px; color: var(--muted); line-height: 1.6; }

@media (max-width: 900px) {
  .saved-hero { padding-top: 44px; }
  .saved-section-head { align-items: start; flex-direction: column; }
  .saved-device-note { text-align: left; }
  .saved-builds-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .header-actions .header-link { font-size: 12px; }
  .saved-hero { margin: 0; padding: 42px 18px 32px; align-items: start; flex-direction: column; }
  .saved-hero h1 { font-size: 52px; }
  .saved-hero p:not(.hero-kicker) { font-size: 16px; margin-top: 14px; }
  .saved-new-build { width: 100%; }
  .saved-section { padding: 28px 18px 46px; }
  .saved-build-image-wrap { height: 220px; padding: 16px; }
  .saved-build-card-body { padding: 20px; }
  .saved-build-title-row { flex-direction: column; gap: 8px; }
  .saved-date { white-space: normal; }
  .saved-build-details { grid-template-columns: 1fr auto; }
  .saved-build-actions { grid-template-columns: 1fr; }
}


/* Buyer Intent weighted inventory matching */
.weighted-match-card {
  align-items: stretch;
}

.weighted-match-body {
  min-width: 0;
}

.match-score-line {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.match-score {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e9f6ec;
  font-weight: 800;
  letter-spacing: .04em;
}

.match-confidence {
  font-size: .85rem;
  opacity: .7;
}

.match-breakdown {
  display: grid;
  gap: 7px;
  margin: 16px 0;
}

.match-breakdown-row {
  display: grid;
  grid-template-columns: 105px 1fr;
  gap: 10px;
  font-size: .92rem;
  line-height: 1.35;
}

.match-good strong {
  color: #16733a;
}

.match-different strong {
  color: #9a5b00;
}

.match-unknown strong {
  color: #687078;
}

@media (max-width: 700px) {
  .match-breakdown-row {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}
