:root {
  color-scheme: light;
  --ink: #193c35;
  --mint: #b9e3ce;
  --grout: #e7f4d9;
  --cream: #fff5d9;
  --berry: #86344e;
  --peach: #fac4a9;
  --porcelain: #fffae9;
  font-family: "Trebuchet MS", Arial, sans-serif;
  color: var(--ink);
  background: var(--porcelain);
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
button, input { font: inherit; }
button:not(:disabled) { cursor: pointer; }
img { display: block; max-width: 100%; }
:focus-visible { outline: 3px solid #723257; outline-offset: 5px; }
.bathroom {
  padding: clamp(28px, 4vw, 64px) 22px 42px;
  background-color: var(--mint);
  background-image: linear-gradient(90deg, var(--grout) 3px, transparent 3px), linear-gradient(var(--grout) 3px, transparent 3px);
  background-size: 108px 93px;
  background-position: center top;
}
.room { max-width: 1136px; margin: auto; position: relative; }
h1, h2, p, figure { margin: 0; }
h1, h2 { font-family: "Arial Rounded MT Bold", "Trebuchet MS", sans-serif; font-weight: 900; }
h1 {
  position: relative;
  z-index: 2;
  font-size: clamp(2.85rem, 9.4vw, 9rem);
  letter-spacing: -.085em;
  line-height: .92;
  color: var(--berry);
  text-align: center;
  overflow-wrap: anywhere;
  text-shadow: 0 .045em var(--cream), 0 .068em var(--cream), .032em 0 var(--cream), -.032em 0 var(--cream);
  margin: 0 auto -.12em;
  padding: 0 .09em .05em 0;
}
.mirror {
  width: 82%;
  margin: 0 auto;
  height: clamp(390px, 36vw, 520px);
  border: 9px solid var(--cream);
  border-radius: 24px 24px 12px 12px;
  outline: 2px solid #4a8170;
  box-shadow: 0 10px #75ae97;
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: #8ccfb7;
}
.mirror-art { width: 100%; height: 100%; object-fit: cover; object-position: center 48%; }
.mirror-note {
  position: absolute;
  left: clamp(14px, 3vw, 45px);
  bottom: clamp(21px, 4.4vw, 67px);
  background: var(--cream);
  border-radius: 10px;
  border: 2px solid #54937d;
  padding: 12px 14px;
  box-shadow: 0 3px #54937d;
}
.ticker { font-size: .82rem; font-weight: 800; color: var(--berry); overflow-wrap: anywhere; }
.mirror-note p { margin-top: .3rem; font-weight: 900; line-height: 1.22; }
.suds { position: absolute; inset: 0; pointer-events: none; }
.suds i {
  position: absolute;
  left: var(--x);
  top: var(--y);
  width: var(--size);
  aspect-ratio: 1;
  border: 2px solid #ffffed;
  border-radius: 50%;
  box-shadow: inset 4px -3px #a5d9c9;
  background: radial-gradient(circle at 32% 27%, white 0 12%, #dff9ebdd 13% 25%, #d6f4e33b 26%);
  opacity: 0;
  transform: translateY(30px) scale(.56);
  transition: opacity .2s, transform .35s ease-out;
}
.suds i:nth-child(1) { --x: 62%; --y: 64%; --size: 38px; }
.suds i:nth-child(2) { --x: 72%; --y: 52%; --size: 62px; transition-delay: .03s; }
.suds i:nth-child(3) { --x: 82%; --y: 38%; --size: 26px; transition-delay: .08s; }
.suds i:nth-child(4) { --x: 65%; --y: 29%; --size: 36px; transition-delay: .12s; }
.suds i:nth-child(5) { --x: 87%; --y: 20%; --size: 47px; transition-delay: .16s; }
.is-rinsed .suds i { opacity: 1; transform: translateY(0) scale(1); }
.sink {
  position: relative;
  z-index: 1;
  margin-top: -6px;
  background: var(--porcelain);
  border: 2px solid #699783;
  border-radius: 47px 47px 74px 74px / 25px 25px 43px 43px;
  box-shadow: inset 0 -11px #eeddb9, inset 0 7px #fffdf5, 0 9px #75ae97;
  padding: 27px clamp(24px, 5%, 66px) 24px;
}
.tap {
  position: absolute;
  left: 50%;
  top: -49px;
  transform: translateX(-50%);
  min-width: 104px;
  min-height: 48px;
  color: #512239;
  background: #f899b5;
  border: 2px solid #823750;
  border-radius: 18px 18px 13px 13px;
  box-shadow: 0 5px #823750, inset 0 5px #ffd1d9;
  font-weight: 900;
}
.tap:hover { background: #ffafc5; }
.tap:active, .tap[aria-pressed="true"] { top: -45px; box-shadow: 0 1px #823750, inset 0 3px #ffd1d9; background: #ffafc5; }
.rinse-status {
  position: absolute;
  right: 7%;
  top: -87px;
  max-width: 13rem;
  border-radius: 14px;
  padding: 8px 11px;
  background: var(--cream);
  font-weight: 700;
}
.rinse-status:empty { padding: 0; }
.sink-tray { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px 30px; }
.services { display: flex; gap: 9px; align-items: center; }
.service {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 15px;
  border-radius: 15px;
  border: 2px solid #35634f;
  box-shadow: 0 3px #35634f, inset 0 3px #ffffff85;
  color: var(--ink);
  background: #b9e8c3;
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap;
}
.service.x { color: #622c4a; background: #f6c9da; border-color: #8f5170; box-shadow: 0 3px #8f5170, inset 0 3px #ffffff85; }
.service:hover { filter: brightness(1.06); }
.service:active { transform: translateY(2px); box-shadow: none; }
.contract { min-width: 0; width: min(100%, 445px); }
.contract-line { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 0 0 12px; background: #f1e8ce; border: 1px solid #d1bfa0; border-radius: 12px; }
.ca-label { font-size: .85rem; font-weight: 900; }
#ca-value { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, Consolas, monospace; font-size: .88rem; }
#copy-ca { min-height: 46px; padding: 0 12px; border: 1px solid #b6a684; border-radius: 11px; background: var(--cream); color: var(--ink); font-weight: 800; }
#copy-ca:not(:disabled):hover { background: #fbdba9; }
#copy-ca:not(:disabled):active { background: #efc88e; }
#copy-ca:disabled { opacity: .62; }
#copy-status { font-size: .9rem; margin-top: .5rem; }
#copy-status:empty { margin: 0; }
#manual-copy:not([hidden]) { display: grid; gap: 5px; margin-top: .5rem; }
#manual-ca { width: 100%; padding: 8px; border-radius: 8px; border: 1px solid #739784; color: var(--ink); }
.after-brush { background: var(--peach); border-top: 3px solid #4a8170; padding: clamp(48px, 7vw, 102px) 24px 42px; }
.counter {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: auto 1fr auto;
  max-width: 1136px;
  margin: auto;
  isolation: isolate;
}
.counter-copy { grid-column: 9 / 13; grid-row: 1; padding: 2px 0 26px 9%; }
h2 { font-size: clamp(2.75rem, 5.75vw, 5.8rem); letter-spacing: -.075em; line-height: .94; color: var(--berry); }
.counter-copy p { margin-top: 15px; max-width: 27ch; font-size: clamp(1rem, 1.55vw, 1.25rem); line-height: 1.48; font-weight: 700; }
.squeeze-art { grid-column: 1 / 9; grid-row: 1 / 3; width: 100%; border-radius: 4px 45px 4px 4px; }
.towel { grid-column: 8 / 13; grid-row: 2 / 4; width: 100%; align-self: end; margin-top: 20px; position: relative; padding: 9px 0 0 9px; background: var(--peach); border-radius: 32px 0 0; }
.towel img { width: 100%; border-radius: 26px 3px 25px 3px; }
figcaption { position: absolute; bottom: 12px; right: 14px; color: var(--berry); background: var(--cream); border-radius: 9px; font-size: .9rem; font-weight: 900; padding: 9px 10px; }
.bottom { background: var(--peach); padding: 0 24px 54px; }
.buy { max-width: 740px; margin: auto; color: var(--ink); background: var(--porcelain); border-radius: 18px; border: 2px solid #b38174; box-shadow: 0 5px #b38174; }
.buy summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 15px 20px; border-radius: 16px; font-weight: 900; }
.buy summary::-webkit-details-marker { display: none; }
.buy summary:hover { background: var(--cream); }
.buy summary span::before { content: "+"; font-size: 1.35rem; line-height: 1; color: var(--berry); }
.buy[open] summary span::before { content: "−"; }
.buy ol { margin: 0; padding: 4px 25px 20px 42px; }
.buy li { margin-top: 8px; line-height: 1.5; }
.buy a { color: var(--berry); }
@media (max-width: 850px) {
  .mirror { width: 91%; }
  .mirror-note { bottom: 58px; }
  .counter-copy { grid-column: 8 / 13; }
  .squeeze-art { grid-column: 1 / 8; }
}
@media (max-width: 620px) {
  .bathroom { padding: 27px 12px 29px; background-size: 68px 67px; }
  h1 { font-size: clamp(2.5rem, 13.9vw, 5.45rem); margin-bottom: -.07em; }
  .mirror { width: calc(100% - 11px); height: clamp(340px, 98vw, 450px); border-width: 6px; border-radius: 15px; }
  .mirror-art { object-position: center 48%; }
  .mirror-note { left: 8px; top: 9px; bottom: auto; font-size: .8rem; padding: 5px 7px; }
  .mirror-note p { display: none; }
  .rinse-status { top: -92px; right: 5%; max-width: 10rem; font-size: .81rem; }
  .sink { margin-top: -3px; padding: 18px 14px 24px; border-radius: 24px 24px 40px 40px / 19px 19px 26px 26px; }
  .sink-tray { flex-direction: column; align-items: stretch; gap: 13px; }
  .services .pump { flex: 1; }
  .services .x { min-width: 85px; }
  .contract { width: auto; }
  .after-brush { padding: 45px 17px 30px; }
  .counter { grid-template-columns: repeat(6, minmax(0, 1fr)); grid-template-rows: auto; }
  .counter-copy { grid-column: 1 / 7; grid-row: 1; padding: 0 4px 21px; }
  .counter-copy p { max-width: 32ch; }
  .squeeze-art { grid-column: 1 / 7; grid-row: 2; border-top-right-radius: 32px; }
  .towel { grid-column: 2 / 7; grid-row: 3; margin-top: -17px; z-index: 1; }
  .bottom { padding: 0 17px 38px; }
  .suds i:nth-child(2) { --size: 46px; }
  .suds i:nth-child(5) { --size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  .suds i { transition: none; }
}
