:root{
  --tile:#f7fbfd;
  --tile-blue:#d8eef8;
  --grout:#b7cad3;
  --ink:#10232d;
  --blue:#087eb9;
  --blue2:#075f91;
  --cream:#fffaf0;
  --gold:#e5b33d;
  --danger:#b32824;
  --green:#177d47;
  --shadow:0 18px 42px rgba(17,48,61,.16);
  --radius:22px;
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  color:var(--ink);
  font-family:Arial,Helvetica,sans-serif;
  background:#edf7fb;
  min-height:100vh;
  overflow-x:hidden;
}
button,input{font:inherit}
img{display:block;max-width:100%}
a{color:inherit}
.bathroom-wall{
  position:fixed;
  inset:0;
  z-index:-2;
  background:
    linear-gradient(90deg,rgba(172,198,209,.72) 2px,transparent 2px) 0 0/96px 96px,
    linear-gradient(rgba(172,198,209,.72) 2px,transparent 2px) 0 0/96px 96px,
    linear-gradient(to bottom,#fdfefe 0 52%,#dceff8 52% 100%);
}
.bathroom-wall:after{
  content:"";
  position:absolute;
  inset:0;
  background:linear-gradient(110deg,rgba(255,255,255,.55),rgba(255,255,255,.08) 42%,rgba(8,126,185,.06));
}
.topbar{
  width:min(1180px,calc(100% - 30px));
  margin:18px auto 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
}
.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  text-decoration:none;
  font-weight:900;
  letter-spacing:-.03em;
  font-size:1.12rem;
}
.brand-mark{
  width:42px;height:42px;
  border-radius:50%;
  display:grid;place-items:center;
  background:var(--blue);
  color:#fff;
  border:3px solid #fff;
  box-shadow:0 4px 0 #054e78;
}
.mini-sign,.door-label{
  border:2px solid #748b96;
  background:linear-gradient(#fff,#e3eaee);
  border-radius:8px;
  padding:9px 13px;
  font-weight:900;
  font-size:.75rem;
  letter-spacing:.08em;
  box-shadow:inset 0 0 0 2px #fff,0 4px 10px rgba(0,0,0,.08);
}
main{
  width:min(1180px,calc(100% - 30px));
  margin:18px auto 0;
}
.hero{
  display:grid;
  grid-template-columns:.9fr 1.1fr;
  align-items:center;
  overflow:hidden;
  background:rgba(255,255,255,.92);
  border:4px solid #fff;
  border-radius:28px;
  box-shadow:var(--shadow);
  min-height:500px;
}
.hero-copy{padding:44px 22px 44px 44px}
.hero h1{
  margin:18px 0 14px;
  font-family:Impact,Haettenschweiler,'Arial Narrow Bold',sans-serif;
  font-size:clamp(3rem,7vw,6.4rem);
  line-height:.87;
  letter-spacing:-.035em;
  text-transform:uppercase;
  max-width:620px;
}
.hero h1 span{
  color:var(--blue);
  text-shadow:3px 3px 0 #fff,5px 5px 0 rgba(4,88,131,.15);
}
.lead{
  max-width:600px;
  font-size:1.1rem;
  line-height:1.55;
  margin:0;
}
.hero-badges{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin-top:22px;
}
.hero-badges span{
  background:#fff7c8;
  border:2px dashed #b98915;
  border-radius:999px;
  padding:8px 11px;
  font-size:.82rem;
  font-weight:800;
}
.hero-image-wrap{
  height:100%;
  min-height:500px;
  overflow:hidden;
  position:relative;
}
.hero-image{
  width:100%;
  height:100%;
  object-fit:cover;
  object-position:center;
}
.hero-image-wrap:after{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:80px;
  background:linear-gradient(90deg,rgba(255,255,255,.95),transparent);
}
.calc-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:24px;
  margin-top:24px;
  align-items:start;
}
.panel,.decor-panel,.results,.disclaimer{
  border:4px solid #fff;
  border-radius:var(--radius);
  background:rgba(255,255,255,.93);
  box-shadow:var(--shadow);
}

.report-export{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(520px,.9fr);
  gap:22px 30px;
  align-items:center;
  padding:30px;
  border-top:2px dashed #abc0c9;
  border-bottom:2px dashed #abc0c9;
  background:
    linear-gradient(90deg,rgba(170,197,209,.34) 2px,transparent 2px) 0 0/58px 58px,
    linear-gradient(rgba(170,197,209,.34) 2px,transparent 2px) 0 0/58px 58px,
    linear-gradient(145deg,#ffffff,#eaf7fc);
}
.report-export h3{
  margin:5px 0 8px;
  font-size:1.7rem;
  line-height:1.05;
}
.report-export-copy>p:last-child{
  margin:0;
  max-width:650px;
  line-height:1.5;
  color:#526a75;
}
.report-actions{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.download-btn{
  appearance:none;
  -webkit-appearance:none;
  width:100%;
  min-width:0;
  min-height:84px;
  display:grid;
  grid-template-columns:58px minmax(0,1fr) 30px;
  align-items:center;
  gap:12px;
  border:2px solid rgba(255,255,255,.86);
  border-radius:20px;
  padding:11px 14px 11px 11px;
  color:#fff;
  text-align:left;
  font-family:Arial,Helvetica,sans-serif;
  cursor:pointer;
  box-shadow:
    0 9px 0 rgba(6,51,75,.28),
    0 16px 28px rgba(10,59,82,.18),
    inset 0 1px 0 rgba(255,255,255,.3);
  position:relative;
  overflow:hidden;
  isolation:isolate;
  transition:transform .16s ease,filter .16s ease,box-shadow .16s ease;
}
.download-btn::before{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(120deg,rgba(255,255,255,.18),transparent 42%,rgba(255,255,255,.08));
}
.download-btn:hover{
  filter:brightness(1.07) saturate(1.05);
  transform:translateY(-2px);
  box-shadow:
    0 11px 0 rgba(6,51,75,.26),
    0 20px 32px rgba(10,59,82,.22),
    inset 0 1px 0 rgba(255,255,255,.35);
}
.download-btn:active{
  transform:translateY(6px);
  box-shadow:0 3px 0 rgba(6,51,75,.30),0 7px 16px rgba(10,59,82,.14);
}
.download-btn:focus-visible{
  outline:4px solid #ffd95b;
  outline-offset:4px;
}
.download-btn:disabled{
  opacity:.58;
  cursor:wait;
  transform:none;
  filter:grayscale(.15);
}
.png-btn{background:linear-gradient(145deg,#159fdc,#087bb5 58%,#065c8a)}
.pdf-btn{background:linear-gradient(145deg,#df584e,#b5352d 58%,#8d2722)}
.download-file-badge{
  width:58px;
  height:58px;
  display:grid;
  place-items:center;
  border-radius:14px;
  background:rgba(255,255,255,.96);
  color:#123746;
  border:1px solid rgba(255,255,255,.85);
  box-shadow:inset 0 -3px 0 rgba(0,0,0,.08),0 5px 12px rgba(0,0,0,.14);
  font-size:.83rem;
  font-weight:1000;
  letter-spacing:.06em;
}
.download-btn-copy{
  min-width:0;
  display:block;
}
.download-btn-copy strong{
  display:block;
  font-size:1rem;
  line-height:1.05;
  letter-spacing:.045em;
  font-weight:1000;
}
.download-btn-copy small{
  display:block;
  margin-top:6px;
  font-size:.69rem;
  line-height:1.25;
  color:rgba(255,255,255,.88);
  font-weight:700;
}
.download-arrow{
  width:30px;
  height:30px;
  display:grid;
  place-items:center;
  border-radius:50%;
  background:rgba(255,255,255,.17);
  font-size:1.35rem;
  font-weight:1000;
  line-height:1;
}
.report-status{
  grid-column:1/-1;
  min-height:1.25em;
  margin:0;
  padding-top:2px;
  font-size:.82rem;
  font-weight:900;
  color:#31596b;
}

.panel{padding:26px}
.panel-head{
  display:flex;
  gap:14px;
  align-items:center;
  margin-bottom:22px;
}
.panel-head h2{
  margin:3px 0 0;
  font-size:clamp(1.6rem,3vw,2.3rem);
}
.eyebrow{
  margin:0;
  font-size:.73rem;
  letter-spacing:.12em;
  font-weight:900;
  color:var(--blue2);
}
.wc-icon{
  flex:none;
  width:58px;height:58px;
  border:3px solid #223640;
  border-radius:10px;
  display:grid;place-items:center;
  background:#fff;
  font-weight:1000;
  font-size:1.2rem;
}
.field-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:18px;
}
.field{
  display:block;
  background:#f8fbfd;
  border:2px solid #c6d9e2;
  border-radius:16px;
  padding:15px;
}
.field>span{
  display:block;
  font-weight:900;
  margin-bottom:8px;
}
.field small{
  display:block;
  color:#60727a;
  font-size:.75rem;
  line-height:1.35;
  margin-top:6px;
}
.input-wrap{
  display:flex;
  border:2px solid #91b3c2;
  border-radius:12px;
  overflow:hidden;
  background:#fff;
}
.input-wrap:focus-within{
  border-color:var(--blue);
  box-shadow:0 0 0 4px rgba(8,126,185,.12);
}
.input-wrap input{
  width:100%;
  min-width:0;
  border:0;
  outline:0;
  padding:13px 12px;
  font-weight:900;
  font-size:1.1rem;
  background:transparent;
}
.input-wrap b{
  display:grid;
  place-items:center;
  min-width:48px;
  padding:0 10px;
  background:#e9f4f9;
  border-left:1px solid #c3d9e2;
}
.mood-box{
  margin:20px 0 0;
  border:2px dashed #8ea8b3;
  border-radius:16px;
  padding:14px 16px 16px;
}
.mood-box legend{
  font-weight:900;
  padding:0 8px;
}
.mood-box label{
  display:block;
  margin:10px 0;
  line-height:1.35;
}
.mood-box input{accent-color:var(--blue)}
.flush-btn{
  width:100%;
  margin-top:20px;
  padding:18px 78px 18px 20px;
  border:0;
  border-radius:15px;
  color:#fff;
  background:linear-gradient(#1098d9,#0878b2);
  box-shadow:0 7px 0 #07527a;
  font-weight:1000;
  letter-spacing:.035em;
  cursor:pointer;
  position:relative;
  transition:.15s ease;
}
.flush-btn:hover{transform:translateY(-1px)}
.flush-btn:active{transform:translateY(5px);box-shadow:0 2px 0 #07527a}
.flush-handle{
  position:absolute;
  right:19px;top:50%;
  transform:translateY(-50%);
  width:42px;height:14px;
  border-radius:999px;
  background:#dbe7ec;
  border:2px solid #7c939d;
  box-shadow:inset 0 2px 3px rgba(255,255,255,.8);
}
.form-error{
  min-height:1.2em;
  margin:11px 0 0;
  color:var(--danger);
  font-weight:800;
  font-size:.85rem;
}
.decor-panel{
  overflow:hidden;
  position:sticky;
  top:18px;
}
.decor-panel img{
  width:100%;
  aspect-ratio:4/5;
  object-fit:cover;
}
.graffiti{
  padding:18px;
  text-align:center;
  background:#fff7c8;
  border-top:3px dashed #b98915;
  transform:rotate(-1deg);
}
.graffiti p{
  margin:0 0 4px;
  font-family:"Comic Sans MS","Trebuchet MS",sans-serif;
  font-weight:900;
  font-size:1.05rem;
}
.results{
  margin-top:24px;
  overflow:hidden;
}
.hidden{display:none}
.result-hero{
  position:relative;
  min-height:430px;
  background:#153e59;
}
.result-hero>img{
  width:100%;
  height:100%;
  min-height:430px;
  object-fit:cover;
}
.result-overlay{
  position:absolute;
  left:7%;
  top:45%;
  transform:translateY(-50%);
  width:48%;
  text-align:center;
  padding:22px;
  border-radius:20px;
  color:#fff;
  background:rgba(6,45,72,.84);
  border:3px solid rgba(255,255,255,.8);
  box-shadow:0 12px 30px rgba(0,0,0,.22);
  backdrop-filter:blur(4px);
}
.result-overlay p{
  margin:0 0 8px;
  font-size:.8rem;
  font-weight:1000;
  letter-spacing:.15em;
}
.annual-money{
  font-family:Impact,Haettenschweiler,'Arial Narrow Bold',sans-serif;
  font-size:clamp(2.8rem,8vw,6.7rem);
  line-height:1;
  color:#ffe17d;
  text-shadow:0 4px 0 #725407;
  overflow-wrap:anywhere;
}
.result-overlay span{
  display:block;
  margin-top:12px;
  font-weight:800;
  line-height:1.35;
}
.stats-grid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:1px;
  background:#b9d0db;
  border-top:1px solid #b9d0db;
  border-bottom:1px solid #b9d0db;
}
.stat-card{
  background:#fff;
  padding:22px 18px;
}
.stat-card small{
  display:block;
  min-height:2.5em;
  font-weight:900;
  color:#55717e;
  letter-spacing:.04em;
}
.stat-card strong{
  display:block;
  margin:9px 0 7px;
  color:var(--blue2);
  font-size:clamp(1.45rem,3vw,2.1rem);
  overflow-wrap:anywhere;
}
.stat-card span{font-size:.82rem;line-height:1.4;color:#5a6870}
.meter-section,.comparison,.final-joke{
  padding:26px;
}
.meter-section{
  border-bottom:2px dashed #abc0c9;
}
.meter-copy h3,.comparison h3{
  margin:5px 0 7px;
  font-size:1.55rem;
}
.meter-copy p:last-child{margin-top:0}
.meter{
  height:26px;
  border:3px solid #243a44;
  border-radius:999px;
  overflow:hidden;
  background:linear-gradient(90deg,#e7f0f4,#d6e5eb);
}
.meter-fill{
  width:0;
  height:100%;
  background:linear-gradient(90deg,#3ea764,#f0ba34,#dc5b32);
  transition:width .8s cubic-bezier(.2,.8,.2,1);
}
.meter-labels{
  display:flex;
  justify-content:space-between;
  margin-top:7px;
  font-size:.72rem;
  font-weight:900;
  color:#61747d;
}
.comparison{border-bottom:2px dashed #abc0c9}
.comparison-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.compare-card{
  border:2px solid #c9d9df;
  border-radius:14px;
  padding:15px;
  background:#f8fbfc;
}
.compare-card b{
  display:block;
  font-size:1.35rem;
  color:var(--blue2);
}
.compare-card span{
  display:block;
  margin-top:5px;
  font-size:.82rem;
  line-height:1.35;
}
.final-joke{
  display:grid;
  grid-template-columns:120px 1fr;
  gap:20px;
  align-items:center;
}
.final-joke img{
  width:120px;
  border-radius:22px;
  border:3px solid #fff;
  box-shadow:0 8px 20px rgba(0,0,0,.13);
}
.final-joke p{
  font-family:"Comic Sans MS","Trebuchet MS",sans-serif;
  font-size:1.15rem;
  font-weight:900;
}
.secondary-btn{
  border:2px solid #243a44;
  background:#fff;
  border-radius:12px;
  padding:12px 14px;
  font-weight:900;
  cursor:pointer;
}
.disclaimer{
  margin:24px 0;
  padding:18px 20px;
  font-size:.84rem;
  line-height:1.45;
}
.disclaimer strong{color:var(--danger)}
.disclaimer p{margin:5px 0 0}
footer{
  width:min(1180px,calc(100% - 30px));
  margin:0 auto 28px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:16px;
  padding:16px 18px;
  border-radius:18px;
  background:#102d3c;
  color:#eaf7fb;
  font-size:.82rem;
}
footer p{margin:0}
footer a{font-weight:900}
.back-btn{
  flex:none;
  text-decoration:none;
  padding:10px 12px;
  border-radius:10px;
  color:#102d3c;
  background:#fff;
}

@media(max-width:1050px){
  .report-export{grid-template-columns:1fr}
  .report-actions{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:900px){
  .hero{grid-template-columns:1fr;min-height:0}
  .hero-copy{padding:28px 24px 22px}
  .hero h1{font-size:clamp(3.1rem,13vw,5.2rem);max-width:none}
  .hero-image-wrap{min-height:0;height:auto}
  .hero-image{aspect-ratio:16/9;object-fit:cover}
  .hero-image-wrap:after{display:none}
  .calc-grid{grid-template-columns:1fr}
  .decor-panel{position:relative;top:auto}
  .decor-panel img{aspect-ratio:16/10;object-position:center 32%}
  .stats-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media(max-width:640px){
  .topbar,.mini-sign{font-size:.65rem}
  .mini-sign{max-width:46%;text-align:center}
  main{width:min(100% - 18px,1180px)}
  .topbar,footer{width:min(100% - 18px,1180px)}
  .hero{border-radius:20px}
  .hero-copy{padding:23px 17px 18px}
  .door-label{font-size:.62rem}
  .hero h1{
    font-size:clamp(2.6rem,14.5vw,4.4rem);
    line-height:.9;
    word-break:normal;
    overflow-wrap:break-word;
  }
  .lead{font-size:.96rem}
  .hero-image{aspect-ratio:4/3;object-position:66% center}
  .calc-grid{gap:16px;margin-top:16px}
  .panel{padding:17px}
  .field-grid{grid-template-columns:1fr;gap:12px}
  .result-hero{min-height:500px}
  .result-hero>img{
    min-height:500px;
    object-position:68% center;
  }
  .result-overlay{
    left:12px;
    right:12px;
    top:auto;
    bottom:14px;
    width:auto;
    transform:none;
    padding:16px 12px;
  }
  .annual-money{font-size:clamp(2.8rem,15vw,4.6rem)}
  .stats-grid{grid-template-columns:1fr}
  .stat-card small{min-height:0}
  .comparison-grid{grid-template-columns:1fr}
  .report-export{grid-template-columns:1fr;padding:22px 16px}
  .report-actions{grid-template-columns:1fr}
  .download-btn{min-height:78px}
  .meter-section,.comparison,.final-joke{padding:20px 16px}
  .final-joke{grid-template-columns:80px 1fr;gap:13px}
  .final-joke img{width:80px}
  .final-joke p{font-size:.98rem}
  footer{align-items:flex-start;flex-direction:column}
}
@media(prefers-reduced-motion:reduce){
  *{scroll-behavior:auto!important;transition:none!important}
}
