[hidden] { display: none !important; }
:root {
  --yellow: #fcb813; --yellow-dark: #e3a400; --ink: #2b2b2b; --gray: #646464; --line: #e3e1dc;
  --bg: #ffffff; --soft: #f6f5f2; --err: #b3261e; --ok: #1f7a3d;
  --sky: #dfeaf2; --wall: #efe6d8; --deck: #b79a76;
  --radius: 14px; --font: Aptos, "Segoe UI", Arial, Helvetica, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 16px/1.5 var(--font); color: var(--ink); background: var(--bg); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--gray); font-weight: 400; }
.env-banner { background: #1e3a5f; color: #fff; text-align: center; padding: 8px 16px; font-size: 14px; font-weight: 600; }

.top { display: flex; align-items: center; justify-content: space-between; padding: 14px 24px; border-bottom: 1px solid var(--line); }
.logo img { width: 170px; height: auto; }
.call { font-weight: 700; color: var(--ink); text-decoration: none; border: 2px solid var(--yellow); border-radius: 999px; padding: 6px 16px; }
.call:hover { background: var(--yellow); }

main { max-width: 1180px; margin: 0 auto; padding: 0 24px 48px; }
.hero { padding: 36px 0 12px; max-width: 720px; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 13px; font-weight: 700; color: var(--gray); margin: 0 0 6px; }
h1 { font-size: clamp(30px, 5vw, 44px); line-height: 1.1; margin: 0 0 12px; text-transform: uppercase; font-weight: 800; }
h2 { font-size: 24px; margin: 0 0 16px; text-transform: uppercase; font-weight: 800; }
h3 { font-size: 16px; margin: 22px 0 10px; }
h2:focus { outline: none; }

.steps { list-style: none; display: flex; gap: 6px; padding: 0; margin: 18px 0 24px; overflow-x: auto; scrollbar-width: none; scroll-margin-top: 12px; }
.steps li { flex: 1 0 auto; }
.steps button { width: 100%; border: 0; background: var(--soft); border-radius: 999px; padding: 8px 14px; font-size: 14px; font-weight: 600; color: var(--gray); cursor: pointer; white-space: nowrap; }
.steps button::before { content: attr(data-n) ". "; }
.steps li.is-done button { background: #fdf0cc; color: var(--ink); }
.steps button[aria-current] { background: var(--ink); color: #fff; }
.steps button:disabled { cursor: default; opacity: .6; }

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 32px; align-items: start; }
form { min-width: 0; }
.step { min-height: 300px; }

.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 14px; }
.tile { text-align: left; background: #fff; border: 2px solid var(--line); border-radius: var(--radius); padding: 0 0 12px; cursor: pointer; overflow: hidden; display: flex; flex-direction: column; gap: 2px; transition: border-color .15s, box-shadow .15s; }
.tile img { aspect-ratio: 4/3; object-fit: cover; width: 100%; background: var(--soft); margin-bottom: 8px; }
.tile strong, .tile span, .tile small { padding: 0 12px; }
.tile span { font-size: 14px; color: var(--gray); }
.tile small { font-size: 12px; color: var(--gray); }
.tile:hover { border-color: #c9c5bb; }
[aria-checked="true"].tile, [aria-checked="true"].card { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }

label { display: flex; flex-direction: column; gap: 6px; font-weight: 600; font-size: 15px; }
input, select, textarea { border: 1.5px solid #cfccc4; border-radius: 10px; padding: 11px 12px; background: #fff; font-weight: 400; width: 100%; min-height: 46px; }
input:focus, select:focus, textarea:focus, button:focus-visible { outline: 3px solid rgba(252,184,19,.55); outline-offset: 1px; border-color: var(--yellow-dark); }
[aria-invalid="true"] { border-color: var(--err); }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.span2 { grid-column: span 2; }
.ftin { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.ftin select { width: 90px; }
.width-slider { width: 100%; margin: 10px 0 2px; accent-color: #fcb813; }
.range, .hint, .tip { font-size: 14px; color: var(--gray); font-weight: 400; }
.tip { background: var(--soft); border-radius: 10px; padding: 12px 14px; margin-top: 18px; }
.err { color: var(--err); font-size: 14px; font-weight: 600; margin: 4px 0 0; min-height: 0; }
.err:empty { display: none; }

.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.sw { border: 2px solid var(--line); border-radius: 12px; background: #fff; padding: 6px; cursor: pointer; display: flex; flex-direction: column; gap: 6px; font-size: 12px; text-align: center; line-height: 1.2; }
.sw i, .sw img { display: block; width: 100%; aspect-ratio: 1; border-radius: 8px; object-fit: cover; border: 1px solid rgba(0,0,0,.1); }
.sw[aria-checked="true"] { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow); }
.frames { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); }
.more { border: 2px dashed var(--line); border-radius: 12px; background: none; cursor: pointer; font-weight: 600; font-size: 13px; }
.filters { display: flex; gap: 10px; margin-bottom: 12px; }
.check { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; margin: 14px 0; }
.check input { width: 20px; min-height: 20px; height: 20px; margin-top: 2px; flex: none; accent-color: var(--yellow-dark); }

.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 8px; }
.card { text-align: left; border: 2px solid var(--line); border-radius: var(--radius); background: #fff; padding: 16px; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.card span { color: var(--gray); font-size: 14px; }

fieldset { border: 0; padding: 0; margin: 0 0 20px; }
legend { font-weight: 700; margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 9px 16px; cursor: pointer; font-weight: 500; }
.chip[aria-checked="true"] { background: var(--yellow); border-color: var(--yellow); font-weight: 700; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.review { display: grid; grid-template-columns: max-content 1fr; gap: 10px 18px; margin: 0 0 18px; }
.review dt { font-weight: 700; color: var(--gray); }
.review dd { margin: 0; display: flex; justify-content: space-between; gap: 12px; }
.link { background: none; border: 0; color: var(--ink); text-decoration: underline; cursor: pointer; padding: 0; font-size: 14px; }

.nav { display: flex; justify-content: space-between; gap: 12px; margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); }
.primary, .ghost { border-radius: 999px; padding: 13px 28px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; cursor: pointer; border: 2px solid var(--yellow); min-height: 48px; }
.primary { background: var(--yellow); margin-left: auto; }
.primary:hover { background: var(--yellow-dark); border-color: var(--yellow-dark); }
.primary:disabled { opacity: .6; cursor: wait; }
.ghost { background: #fff; }

.preview { position: sticky; top: 16px; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; background: var(--soft); }
.pv-art svg { width: 100%; height: auto; border-radius: 10px; display: block; }
.pv-art .dim { font: 600 12px var(--font); fill: #3d3d3d; }
.preview h3 { margin: 14px 0 6px; }
.preview ul { margin: 0; padding-left: 18px; font-size: 14px; color: var(--gray); }
.estimate { margin-top: 14px; background: #fff; border-radius: 12px; padding: 14px; border: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.estimate p { margin: 0; font-size: 14px; }
.est-label { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
.est-range { font-size: 26px; font-weight: 800; }
.estimate.big .est-range { font-size: 32px; }
.est-lines { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.est-lines li { display: flex; justify-content: space-between; padding: 4px 0; border-top: 1px dashed var(--line); }
.test-flag { margin-top: 8px !important; background: #fff4d6; border-radius: 8px; padding: 6px 10px; font-size: 13px !important; font-weight: 700; }

.done { max-width: 640px; margin: 48px auto; text-align: center; background: var(--soft); border-radius: var(--radius); padding: 36px 24px; }
.done:focus { outline: none; }
.done a { color: var(--ink); font-weight: 700; }
.foot { text-align: center; font-size: 13px; color: var(--gray); padding: 24px 16px 36px; border-top: 1px solid var(--line); }

@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .preview { position: static; order: -1; padding: 10px; }
  .preview h3 { margin: 10px 0 0; font-size: 15px; }
  .preview ul { display: none; }
  .preview .estimate { flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 10px 12px; margin-top: 10px; }
  .preview .est-range { font-size: 20px; }
  .preview .est-label { width: 100%; }
}
@media (max-width: 600px) {
  main { padding: 0 16px 32px; }
  .top { padding: 12px 16px; }
  .logo img { width: 140px; }
  .call { font-size: 14px; padding: 5px 12px; }
  .hero { padding-top: 22px; }
  .grid2 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .tiles { grid-template-columns: 1fr 1fr; gap: 10px; }
  .tile span { font-size: 13px; }
  .tile small { display: none; }
  .cards { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); }
  .filters { flex-direction: column; }
  .review { grid-template-columns: 1fr; gap: 2px; }
  .review dd { margin-bottom: 10px; }
  .nav { position: sticky; bottom: 0; background: #fff; margin: 20px -16px 0; padding: 12px 16px; box-shadow: 0 -4px 14px rgba(0,0,0,.06); }
  .primary, .ghost { padding: 12px 20px; flex: 1; }
  .ghost[hidden] + .primary { flex: 1; }
}
.pv-3d { aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: #cfe0ee; cursor: grab; touch-action: none; }
.pv-3d:active { cursor: grabbing; }
.pv-3d canvas { width: 100% !important; height: 100% !important; display: block; }
.pv-hint { margin: 6px 0 0; font-size: 12px; color: var(--gray); text-align: center; }
.arm-note { background: #fff8e1; border-left: 4px solid var(--yellow); border-radius: 8px; padding: 10px 14px; font-size: 15px; margin-top: 16px; }
.arm-note:empty { display: none; }
.side-pick { margin-top: 18px; }
.side-pick legend .muted { display: block; font-size: 13px; font-weight: 400; }
.pv-art { position: relative; }
.pv-edit { position: absolute; top: 8px; right: 8px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255,255,255,.92); box-shadow: 0 1px 4px rgba(0,0,0,.25); cursor: pointer; display: grid; place-items: center; padding: 0; }
.pv-edit svg { width: 18px; height: 18px; fill: none; stroke: var(--ink); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pv-edit:hover, .pv-edit[aria-expanded="true"] { background: var(--yellow); }
.siding-pop { position: absolute; top: 50px; right: 8px; left: 8px; background: #fff; border-radius: 12px; box-shadow: 0 6px 24px rgba(0,0,0,.22); padding: 10px 12px 12px; z-index: 2; }
.siding-pop p { margin: 0 0 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--gray); }
#siding-swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.siding-sw { border: 0; background: none; padding: 0; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; line-height: 1.15; color: var(--gray); text-align: center; }
.siding-sw i { width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(0,0,0,.15); display: block; }
.siding-sw[aria-checked="true"] i { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--yellow-dark); }
.pv-under { margin: 12px 0 0; }
.pv-3d.small { aspect-ratio: 16 / 9; cursor: default; }
.pv-under figcaption { font-size: 12px; color: var(--gray); text-align: center; margin-top: 4px; }
.included { background: #eef6ee; border-left: 4px solid #4f9a5a; border-radius: 8px; padding: 10px 14px; font-size: 15px; margin: 14px 0; }
.btn-link { display: inline-block; text-decoration: none; color: var(--ink) !important; margin: 6px 0; }

/* Valance close-up bubble over the main 3D view */
.pv-close { position: absolute; left: 10px; bottom: 10px; width: 26%; max-width: 140px; margin: 0; pointer-events: none; text-align: center; }
.pv-close canvas { width: 100%; aspect-ratio: 1; display: block; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 2px 10px rgba(0,0,0,.35); background: #cfe0ee; }
.pv-close figcaption { display: inline-block; margin-top: 4px; background: rgba(255,255,255,.92); border-radius: 999px; padding: 1px 9px; font-size: 12px; white-space: nowrap; font-weight: 600; color: #333; box-shadow: 0 1px 3px rgba(0,0,0,.2); }
.pitch-note { margin: 8px 0 0; font-size: 14px; color: var(--muted, #646464); }
.visit { background: #fff; border: 1px solid #ececec; border-radius: 12px; padding: 14px 18px; margin: 16px auto; max-width: 520px; }
.visit h3 { margin: 0 0 4px; }
.power{display:block;margin:14px 0 4px;font-weight:600}
.power select{display:block;width:100%;max-width:340px;margin:6px 0 4px}
.power .muted{display:block;font-weight:400;font-size:.9em}
.arm-flag { margin-top: 8px !important; background: #eef3f8; border-left: 3px solid #4a6a8a; border-radius: 6px; padding: 6px 10px; font-size: 13px !important; }
