/* 3D bathroom designer, laid out in steps like the estimator (estimate/index.html):
   same header, step bar, two-tone headings, cards and "Your bathroom, so far" panel. */
*{box-sizing:border-box}
[hidden]{display:none!important}
body{margin:0;background:var(--paper);color:var(--ink);font:16px/1.55 'Hanken Grotesk',system-ui,sans-serif;-webkit-font-smoothing:antialiased}
button,input,select{font:inherit;color:inherit}
button{cursor:pointer}
a{color:var(--deep)}
:focus-visible{outline:3px solid #277b74;outline-offset:3px}
h1,h2,h3{font-family:'Bricolage Grotesque',system-ui,sans-serif;letter-spacing:-.02em;margin:0}
.wrap{max-width:1204px;margin:0 auto;padding:0 24px}

.top{border-bottom:1px solid var(--line)}
.top .wrap{display:flex;align-items:center;justify-content:space-between;gap:16px;min-height:76px}
.headernote{font-size:13px;color:var(--muted)}
.reviewtag{font-size:11px;color:var(--deep);font-weight:800;letter-spacing:.05em}

.wizard{padding-top:26px;padding-bottom:40px;scroll-margin-top:0}
.steps{display:flex;align-items:center;margin:0 0 30px;max-width:860px}
.step{border:0;background:transparent;display:flex;align-items:center;gap:9px;color:var(--muted);font-size:13px;font-weight:700;white-space:nowrap;padding:8px 0;min-height:44px}
.step em{font-style:normal}
.step span{border:1px solid #cbd5cd;border-radius:50%;height:27px;width:27px;display:grid;place-items:center;font-size:12px;background:#fff}
.step.active{color:var(--deep)}
.step.active span{background:var(--deep);border-color:var(--deep);color:#fff}
.step.done span{background:var(--deep);color:#fff;border-color:var(--deep)}
.step:disabled{cursor:default;opacity:.65}
.connector{height:1px;background:#d3dbd3;flex:1;margin:0 12px;min-width:12px}
.layout{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:36px;align-items:start}
main{min-width:0}

.eyebrow{font-size:11px;letter-spacing:.13em;font-weight:800;text-transform:uppercase;color:var(--deep);display:flex;align-items:center;gap:8px}
.eyebrow::before{content:"";width:7px;height:7px;border-radius:50%;background:var(--coral)}
.stepview h1{font-size:clamp(30px,4vw,43px);line-height:1.08;font-weight:800;margin:12px 0 12px;max-width:720px}
.stepview h1 em{font-style:normal;color:var(--deep)}
.lead{font-size:16.5px;color:#3a4a48;max-width:640px;margin:0 0 22px}
.fine{font-size:12.5px;color:var(--muted);margin:14px 0 0;line-height:1.6}
.card{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden}
.cardbody{padding:20px 22px}

/* step 1 */
.dims{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-bottom:12px}
.dims label,.gate label{display:block;font-size:12px;font-weight:800;margin-bottom:6px}
.unit{display:flex;align-items:center;border:1px solid var(--line);border-radius:10px;background:var(--paper);padding-right:12px}
.unit input{flex:1;min-width:0;border:0;background:transparent;min-height:46px;padding:10px 12px}
.unit span{font-size:12px;color:var(--muted)}
.unit:focus-within{border-color:var(--teal);box-shadow:0 0 0 3px #50afa633}
.unit input:focus{outline:none}
.toggles{display:flex;flex-wrap:wrap;gap:4px 22px;margin-bottom:12px}
.toggle{display:flex;align-items:center;gap:9px;min-height:44px;font-size:14px;font-weight:700}
.toggle input{width:22px;height:22px;margin:0;flex-shrink:0;accent-color:var(--deep)}
#plan{display:block;width:100%;height:auto;max-height:430px;touch-action:none;user-select:none;-webkit-user-select:none;background:var(--paper);border-radius:12px}
#plan .room{fill:#fff;stroke:var(--ink);stroke-linejoin:miter}
#plan .grid{stroke:#eef1ec}
#plan .fit{fill:var(--pale);stroke:var(--deep);cursor:grab}
#plan .fit.fixed{cursor:default;fill:#f2f6f4;stroke:#9fb8b3}
#plan .fit.active{stroke:var(--coral);cursor:grabbing}
#plan .open{fill:#fff4ef;stroke:var(--coral);cursor:grab}
#plan .glass{stroke:#7ab7c4;fill:none;pointer-events:none}
#plan .swing{fill:none;stroke:var(--muted);pointer-events:none}
#plan .hit{fill:transparent;stroke:none;cursor:grab}
#plan .lamp{pointer-events:none;fill:#fff6df;stroke:#d39b2a}
#plan .lamp-core{fill:#d39b2a;pointer-events:none}
#plan .guide{stroke:var(--coral);pointer-events:none}
#plan text{font-family:'Hanken Grotesk',sans-serif;font-weight:800;fill:var(--ink);pointer-events:none}
#plan .dim{font-weight:600;fill:var(--muted)}
.planhelp{margin:10px 0 0;font-size:13px;color:var(--muted)}
.checks{display:grid;gap:6px;margin:14px 0 0;padding:0;list-style:none}
.checks li{display:grid;grid-template-columns:10px 1fr auto;gap:10px;align-items:baseline;font-size:14px}
.checks i{width:10px;height:10px;border-radius:50%;background:#2f8f6a;transform:translateY(1px)}
.checks li.bad i{background:#c4553a}
.checks em{font-style:normal;color:var(--muted);font-size:13px;white-space:nowrap}

/* step 2: package cards, as the estimator's */
.pkgs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px}
.pkg{position:relative;display:grid;grid-template-rows:auto 1fr;text-align:left;background:#fff;border:1.5px solid var(--line);border-radius:18px;overflow:hidden;padding:0}
.pkg img{width:100%;aspect-ratio:16/9;object-fit:cover;background:var(--pale)}
.pkgbody{display:grid;gap:4px;padding:16px 18px 18px}
.pkg .n{font-family:'Bricolage Grotesque',sans-serif;font-size:34px;font-weight:800;line-height:1;color:var(--deep)}
.pkg small{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;font-weight:800;color:var(--muted)}
.pkg b{font-family:'Bricolage Grotesque',sans-serif;font-size:21px}
.pkg b i{font-style:normal;font-family:'Hanken Grotesk',sans-serif;font-size:10px;letter-spacing:.08em;text-transform:uppercase;background:#d9ece3;color:var(--deep);padding:3px 7px;border-radius:5px;vertical-align:middle}
.pkg .desc{font-size:13.5px;color:#3a4a48}
.pkg .what{font-size:12.5px;font-weight:800;color:var(--deep);margin-top:6px}
.pkg .tick{position:absolute;top:12px;right:12px;width:26px;height:26px;border-radius:50%;border:2px solid #fff;background:#ffffffcc;box-shadow:0 2px 8px #16201f33}
.pkg[aria-checked="true"]{border-color:var(--deep);background:#f4faf7}
.pkg[aria-checked="true"] .tick{background:var(--deep)}
.pkg[aria-checked="true"] .tick::after{content:"✓";color:#fff;font-size:14px;font-weight:800;display:grid;place-items:center;height:100%}

/* step 3: fittings sets */
.grades{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}
.grade{display:grid;align-content:start;gap:10px;text-align:left;background:#fff;border:1.5px solid var(--line);border-radius:18px;padding:16px}
.grade[aria-checked="true"]{border-color:var(--deep);background:#f4faf7;box-shadow:0 0 0 3px #50afa62e}
.gradehead b{display:block;font-family:'Bricolage Grotesque',sans-serif;font-size:22px}
.gradehead small{font-size:12px;color:var(--muted);font-weight:700}
.gradedesc{font-size:13px;color:#3a4a48}
.gradeitems{display:grid;gap:8px}
.gi{display:grid;grid-template-columns:52px 1fr;gap:10px;align-items:center;font-size:12.5px;line-height:1.3}
.gi img,.gi .nophoto{width:52px;height:52px;border-radius:9px;object-fit:contain;background:var(--paper);border:1px solid var(--line)}
.gi .nophoto{display:grid;place-items:center;font-size:9px;color:var(--muted);text-align:center}
.gi small{display:block;font-size:10.5px;color:var(--muted);font-weight:800;text-transform:uppercase;letter-spacing:.06em}
.gradefoot{font-size:12px;color:var(--deep);font-weight:800}

/* step 4: tiles */
.tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:14px}
.tabs button{border:1px solid var(--line);background:#fff;border-radius:999px;padding:9px 16px;font-weight:800;font-size:14px;min-height:44px}
.tabs button[aria-pressed="true"]{background:var(--ink);border-color:var(--ink);color:#fff}
.options{display:grid;grid-template-columns:repeat(auto-fill,minmax(140px,1fr));gap:10px}
.opt{border:1.5px solid var(--line);background:#fff;border-radius:14px;padding:6px;text-align:left;display:grid;gap:6px;min-height:44px}
.opt img{width:100%;aspect-ratio:1;object-fit:cover;border-radius:9px;background:var(--pale)}
.opt b{font-size:13px;line-height:1.25;padding:0 4px}
.opt small{font-size:11.5px;color:var(--muted);padding:0 4px 4px}
.opt[aria-pressed="true"]{border-color:var(--deep);box-shadow:0 0 0 3px #50afa633}
.fixedfinish{display:flex;align-items:center;gap:14px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:10px;margin-bottom:14px}
.fixedfinish img{width:64px;height:64px;border-radius:10px;object-fit:cover}
.fixedfinish small{display:block;font-size:11px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.card.note{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:center}
.card.note img{width:100%;height:100%;object-fit:cover}
.card.note p{padding:22px;margin:0;color:#3a4a48}

/* step 5: details */
.detailsgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;align-items:start}
.gate{padding:20px 22px;display:grid;gap:12px}
.gate .row{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.gate input{width:100%;min-height:46px;border:1px solid var(--line);border-radius:10px;padding:10px 12px;background:var(--paper)}
.gate input:focus{border-color:var(--teal);outline:none;box-shadow:0 0 0 3px #50afa633}
.hp{position:absolute;left:-9999px;width:1px;height:1px;overflow:hidden}
.error{color:#a5432c;font-weight:700;font-size:13.5px;margin:0}
.error:empty{display:none}
.teaser{position:relative;border-radius:18px;overflow:hidden;aspect-ratio:4/3;background:#141b1a}
.teaser .stills{position:absolute;inset:0;display:grid;grid-template-columns:1fr 1fr;gap:4px}
.teaser .stills img{width:100%;height:100%;object-fit:cover;filter:blur(10px) saturate(.85);transform:scale(1.08)}
.veil{position:absolute;inset:0;display:grid;place-items:center;padding:18px;background:#fbf9f466}
.veil div{background:#fff;border:1.5px solid var(--teal);border-radius:16px;padding:16px 18px;max-width:300px;text-align:center;font-size:14px;color:#3a4a48;box-shadow:0 12px 30px #16201f22}
.veil b{display:block;font-family:'Bricolage Grotesque',sans-serif;font-size:19px;color:var(--ink);margin-bottom:6px}

/* step 6: design and cost */
.stage{position:relative;aspect-ratio:16/10;background:#141b1a;overflow:hidden}
.stage canvas{display:block;width:100%;height:100%;touch-action:none}
.hud{position:absolute;left:12px;top:12px;right:12px;display:flex;flex-wrap:wrap;gap:6px}
.hud button,.lightbar button{border:0;border-radius:999px;background:#ffffffe6;padding:8px 13px;font-size:13px;font-weight:800;min-height:38px}
.hud button[aria-pressed="true"],.lightbar button[aria-pressed="true"]{background:var(--deep);color:#fff}
.stagehint{position:absolute;left:12px;bottom:10px;margin:0;font-size:12px;color:#e8f3ef;opacity:.85}
.stagefail{position:absolute;inset:0;display:grid;place-items:center;color:#fff;padding:24px;text-align:center}
.lightbar{display:flex;flex-wrap:wrap;align-items:center;gap:10px 18px;padding:12px 20px;border-top:1px solid var(--line);font-size:13px;font-weight:700}
.lightbar .seg{display:flex;gap:6px}
.lightbar button{background:var(--paper);border:1px solid var(--line)}
.lightbar label{display:flex;align-items:center;gap:10px;flex:1;min-width:200px}
.lightbar input[type=range]{flex:1;accent-color:var(--deep)}
.donecard{margin-top:16px;padding:18px 22px}
.ok{color:#2f6f4f;font-weight:800;margin:0 0 12px}
.donebtns{display:flex;flex-wrap:wrap;gap:10px}
.donebtns .btn{text-decoration:none;font-size:15px;padding:12px 18px}
.btn.ghost{background:#fff;color:var(--deep);border:1.5px solid var(--deep);box-shadow:none}
.btn.ghost:hover{background:var(--pale);color:var(--deep)}

/* next row and trust line, as the estimator's */
.nextrow{display:flex;align-items:center;gap:16px;margin-top:26px;padding-top:22px;border-top:1px solid var(--line)}
.back{background:transparent;border:0;padding:10px 0;font-size:13px;color:var(--muted);font-weight:700;min-height:44px}
.nextnote{flex:1;font-size:12.5px;color:var(--muted)}
.nextrow .btn{border:0;font-size:16px;padding:14px 22px;display:inline-flex;align-items:center;gap:14px}
.trust{list-style:none;display:flex;flex-wrap:wrap;gap:8px 22px;padding:0;margin:18px 0 0;font-size:12px;color:#3a4a48}
.trust li::before{content:"✓ ";color:var(--deep);font-weight:800}

/* summary panel */
.side{background:#fff;border:1px solid var(--line);border-radius:18px;overflow:hidden;position:sticky;top:20px}
.sidehead{padding:20px 22px;background:var(--pale);border-bottom:1px solid #d9e5dc}
.sidehead small{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--deep);font-weight:800}
.sidehead h2{font-size:22px;margin:4px 0}
.sidehead p{margin:0;font-size:12.5px;color:#3a4a48}
/* The choices list: every choice is a row, pressed to change it in place (design-choices.js). */
.sumlist{list-style:none;margin:0;padding:10px 22px;display:grid;font-size:13px}
.sumlist li{display:flex;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed var(--line)}
.sumlist li:last-child{border:0}
.sumlist span{color:var(--muted)}
.sumlist b{text-align:right}
/* step 6: the plan and the full choices list under the 3D view */
.editcard{margin-top:16px}
.edithead{padding:18px 22px 0}
.edithead p{margin:8px 0 0;font-size:14px;color:#3a4a48}
.editgrid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:8px 24px;padding:14px 22px 10px;align-items:start}
.planwrap{position:sticky;top:12px}
#plan6{display:block;width:100%;height:auto;max-height:420px;touch-action:none;user-select:none;-webkit-user-select:none;background:var(--paper);border-radius:12px}
#plan6 .room{fill:#fff;stroke:var(--ink);stroke-linejoin:miter}
#plan6 .grid{stroke:#eef1ec}
#plan6 .fit{fill:var(--pale);stroke:var(--deep);cursor:grab}
#plan6 .fit.fixed{cursor:default;fill:#f2f6f4;stroke:#9fb8b3}
#plan6 .fit.active{stroke:var(--coral);cursor:grabbing}
#plan6 .open{fill:#fff4ef;stroke:var(--coral);cursor:grab}
#plan6 .glass{stroke:#7ab7c4;fill:none;pointer-events:none}
#plan6 .swing{fill:none;stroke:var(--muted);pointer-events:none}
#plan6 .hit{fill:transparent;stroke:none;cursor:grab}
#plan6 .lamp{pointer-events:none;fill:#fff6df;stroke:#d39b2a}
#plan6 .lamp-core{fill:#d39b2a;pointer-events:none}
#plan6 .guide{stroke:var(--coral);pointer-events:none}
#plan6 text{font-family:'Hanken Grotesk',sans-serif;font-weight:800;fill:var(--ink);pointer-events:none}
#plan6 .dim{font-weight:600;fill:var(--muted)}
.choices{list-style:none;margin:0;padding:0;font-size:13px}
.cgroup{font-size:10.5px;letter-spacing:.12em;text-transform:uppercase;color:var(--deep);font-weight:800;padding:16px 10px 4px}
.cgroup:first-child{padding-top:4px}
.crow{border-bottom:1px dashed var(--line)}
.crow:last-child{border:0}
.crowbtn{width:100%;border:0;background:transparent;display:grid;grid-template-columns:minmax(0,1fr) auto;gap:1px 10px;text-align:left;padding:8px 10px;min-height:44px;border-radius:10px;align-items:center;color:inherit}
button.crowbtn:hover{background:var(--paper)}
.crowbtn .ck{color:var(--muted);font-size:12px;white-space:pre}
.crowbtn .cv{grid-column:1;font-size:13px;font-weight:700;line-height:1.3;overflow-wrap:anywhere}
.crowbtn .caret{grid-column:2;grid-row:1/3;color:var(--muted);font-style:normal;font-size:20px;line-height:1;transition:transform .15s}
.crow.open .caret{transform:rotate(90deg)}
.crow.open>.crowbtn{background:var(--paper)}
.crow.sub .crowbtn{min-height:40px;padding-top:6px;padding-bottom:6px}
.crow.sub .ck{font-size:11px}
.crow.sub .cv{font-size:12.5px;font-weight:600}
.ced{padding:8px 10px 16px;display:grid;gap:12px}
.cedlbl{display:block;font-size:11.5px;font-weight:800;margin-bottom:6px}
.cednote{font-size:12px;color:var(--muted);margin:0;line-height:1.5}
.picks{display:grid;gap:6px}
.pick{border:1.5px solid var(--line);background:#fff;border-radius:10px;padding:9px 12px;text-align:left;display:grid;gap:2px;min-height:44px;font-size:13px;color:inherit}
.pick b{font-weight:700}
.pick small{color:var(--muted);font-size:11.5px;line-height:1.35}
.pick[aria-pressed="true"]{border-color:var(--deep);background:#f4faf7;box-shadow:0 0 0 3px #50afa62e}
.pickrow{display:flex;flex-wrap:wrap;gap:6px}
.pickrow .pick{flex:1;min-width:0;text-align:center;justify-items:center;padding:9px 8px}
.ced .options{grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-height:380px;overflow:auto;padding:3px;overscroll-behavior:contain}
.ced .opt{padding:4px;border-radius:10px;gap:3px}
.ced .opt b{font-size:11px;line-height:1.2;padding:0 2px}
.ced .opt small{font-size:10px;padding:0 2px 2px}
.dims.small{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0}
.dims.small.two{grid-template-columns:repeat(2,minmax(0,1fr))}
.dims.small .unit input{min-height:42px;padding:8px 10px}
.dims.small .unit span{font-size:11px}
.mmrow{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:10px;align-items:center}
.mmrow input[type=range]{width:100%;accent-color:var(--deep);min-height:44px;margin:0}
.mmrow .unit input{min-height:42px;padding:8px 10px}
.planlink{justify-self:start;border:0;background:transparent;color:var(--deep);font-weight:800;font-size:12.5px;padding:8px 0;min-height:40px;text-decoration:underline;text-underline-offset:3px}
.ced .checks{margin:0}
.price{margin:4px 22px 18px;border-radius:14px;background:var(--pale);padding:16px}
.price .lbl{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:11px;font-weight:800;text-transform:uppercase;letter-spacing:.08em;color:var(--deep)}
.price .amt{font-family:'Bricolage Grotesque',sans-serif;font-size:34px;font-weight:800;line-height:1.1;margin-top:6px}
.price p{margin:6px 0 0;font-size:12px;color:#3a4a48}
.locked .amt{filter:blur(8px);user-select:none}
.pill{white-space:nowrap;font-size:11px;font-weight:800;color:var(--deep);background:#fff;padding:3px 9px;border-radius:999px;letter-spacing:0;text-transform:none}
.sidefoot{border-top:1px solid var(--line);padding:16px 22px;background:#fcfcf8;font-size:11.5px;color:var(--muted)}
.sidefoot b{color:var(--ink)}

.faq{padding:30px 0 56px;border-top:1px solid var(--line)}
.faq h2{font-size:clamp(24px,3vw,32px);margin-bottom:12px}
.faq details{background:#fff;border:1px solid var(--line);border-radius:14px;padding:4px 18px;margin-bottom:10px}
.faq summary{cursor:pointer;font-weight:800;padding:12px 0;min-height:44px}
.faq details p{margin:0 0 16px;color:#3a4a48}
footer{background:var(--ink);color:#c9d6d2;padding:30px 0;font-size:13px}
footer .wrap{display:flex;flex-wrap:wrap;justify-content:space-between;gap:12px}
footer a{color:#fff}

@media(max-width:1000px){
  .layout{grid-template-columns:1fr}
  .side{position:static}
  .grades{grid-template-columns:1fr}
}
@media(max-width:720px){
  .wrap{padding:0 16px}
  .headernote{display:none}
  .steps{margin-bottom:20px}
  .step em{display:none}
  .step{flex-shrink:0}
  .connector{margin:0 4px;min-width:6px}
  .dims{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
  .unit span{display:none}
  .pkgs,.detailsgrid,.card.note{grid-template-columns:1fr}
  .gate .row{grid-template-columns:1fr}
  .options{grid-template-columns:repeat(2,minmax(0,1fr))}
  .stage{aspect-ratio:1/1}
  .editgrid{grid-template-columns:1fr;padding:12px 16px 8px}
  .planwrap{position:static}
  .edithead{padding:16px 16px 0}
  .cardbody{padding:16px}
}
/* Floating action bar on phones and tablets: the same bar as the site's
   "Instant estimate" button (mobile-estimate.css), carrying this step's action. */
@media(max-width:1024px){
  body{padding-bottom:calc(86px + env(safe-area-inset-bottom,0px))}
  .nextrow{position:fixed;bottom:0;left:0;right:0;z-index:70;margin:0;gap:12px;padding:10px 14px calc(10px + env(safe-area-inset-bottom,0px));background:rgba(22,32,31,.96);border-top:1px solid #91c7bd4d;backdrop-filter:saturate(140%) blur(6px);-webkit-backdrop-filter:saturate(140%) blur(6px);box-shadow:0 -6px 20px #16201f20}
  .nextnote{display:none}
  .nextrow .back{color:#d5e2de;padding:10px 4px;flex-shrink:0}
  .nextrow .btn{flex:1;justify-content:center;gap:18px;min-height:54px;padding:10px 18px;background:linear-gradient(100deg,#318374 0%,#247568 45%,#124f49 100%);border:1px solid #82b7ae;border-radius:12px;color:#fff;font:700 16px/1.3 'Hanken Grotesk',system-ui,sans-serif;box-shadow:none;transform:none}
  .nextrow .btn:hover{background:linear-gradient(100deg,#2b786b 0%,#206b5f 45%,#104740 100%);transform:none}
  .nextrow .btn:focus-visible{outline:3px solid #bde4d9;outline-offset:3px}
  .nextrow .cta-arrow{width:32px;height:32px;font-size:21px;animation:design-nudge 3s ease-in-out infinite}
  .trust{margin-top:22px}
}
@keyframes design-nudge{0%,65%,100%{transform:translateX(0)}75%,90%{transform:translateX(4px)}82%{transform:translateX(0)}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}.nextrow .cta-arrow{animation:none}}
