/* Artzee planner: the house planner, reskinned. Brand tokens sampled from their logo (TikTok avatar):
   wordmark navy, and the rising arrow's sky > teal > sun > flame sweep. */
:root {
  --brand: #0f4a76;          /* the "Artzee" wordmark */
  --brand-ink: #ffffff;
  --brand-soft: #e3eef6;
  --sky: #46c4ee; --teal: #17b3a3; --sun: #f9c51c; --flame: #f47e20;
  --arrow: linear-gradient(100deg, var(--sky) 0%, var(--teal) 38%, var(--sun) 70%, var(--flame) 100%);
  --paper: #f3f5f2;
  --card: #ffffff;
  --ink: #0e2235;
  --ink-2: #435466;
  --ink-3: #7c8794;
  --line: #dde3e6;
  --display: 'Barlow', 'Barlow Fallback', system-ui, sans-serif;
  --sans: 'Public Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Fira Code', ui-monospace, Consolas, monospace;
  --r: 20px;
  --gut: clamp(16px, 4vw, 48px);
  --maxw: 1400px;
}

/* planner */
.planner { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 16px; padding: 0 var(--gut);
  max-width: var(--maxw); margin: 0 auto; align-items: start; }
.stage { position: relative; height: min(76vh, 760px); min-height: 460px; border-radius: var(--r); overflow: hidden;
  background: radial-gradient(120% 90% at 50% 8%, #ffffff 0%, #e8eef0 62%, #d9e3e8 100%);
  border: 1px solid var(--line); box-shadow: 0 40px 80px -50px rgba(10, 46, 77, .55); transition: background .6s; }
.stage.night { background: radial-gradient(120% 90% at 50% 10%, #1d3554 0%, #0b1a2c 75%); }
#cv { position: absolute; inset: 0; width: 100%; height: 100%; display: block; touch-action: none; cursor: crosshair; }
.stage.look #cv { cursor: grab; }
.stage.tapping #cv { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ccircle cx='16' cy='16' r='9' fill='none' stroke='%23f47e20' stroke-width='3'/%3E%3Ccircle cx='16' cy='16' r='2' fill='%230f4a76'/%3E%3C/svg%3E") 16 16, pointer; }
.dock { position: absolute; z-index: 2; }
.dock-top { top: 14px; left: 14px; right: 14px; display: flex; justify-content: center; pointer-events: none; }
.dock-top .swatches { pointer-events: auto; }
.dock-bl { left: 14px; bottom: 14px; }
.dock-br { right: 14px; bottom: 14px; display: flex; gap: 6px; }

.swatches { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; border-radius: 99px; background: rgba(255, 255, 255, .94);
  border: 1px solid var(--line); box-shadow: 0 10px 30px -18px rgba(0, 0, 0, .35); }
.sw { display: inline-flex; align-items: center; gap: 8px; border: 1px solid transparent; background: transparent;
  border-radius: 99px; padding: 7px 12px 7px 7px; font-size: 13px; font-weight: 600; color: var(--ink-2); white-space: nowrap; }
.sw i { width: 20px; height: 20px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .12); flex: none; }
.sw:hover { color: var(--ink); }
.sw[aria-pressed="true"] { background: var(--ink); color: #fff; }
.swatches.small { background: none; border: 0; box-shadow: none; padding: 0; }
.swatches.small .sw { border-color: var(--line); background: var(--card); }
.swatches.small .sw[aria-pressed="true"] { background: var(--ink); color: #fff; border-color: var(--ink); }

.seg, .chip { background: rgba(255, 255, 255, .94); border: 1px solid var(--line); border-radius: 99px; }
.seg { display: inline-flex; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; border-radius: 99px; padding: 8px 12px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); }
.seg button[data-tool="tap"] { position: relative; }
.seg button[data-tool="tap"][aria-pressed="true"] { background: var(--flame); color: #fff; }
.chip { padding: 10px 14px; font-size: 13px; font-weight: 600; color: var(--ink-2); }
#night[aria-pressed="true"] { background: #0b1a2c; color: #ffe2a8; border-color: #0b1a2c; }

.hint { position: absolute; left: 50%; top: 74px; transform: translateX(-50%); margin: 0; z-index: 2; pointer-events: none;
  font: 500 12px/1.2 var(--mono); letter-spacing: .02em; color: var(--ink-2); background: rgba(255, 255, 255, .86);
  padding: 8px 12px; border-radius: 99px; transition: opacity .4s; max-width: calc(100% - 28px); text-align: center; }
.hint.gone { opacity: 0; }
.toast { position: absolute; left: 50%; bottom: 70px; transform: translate(-50%, 10px); z-index: 3; max-width: min(90%, 420px);
  background: var(--ink); color: #fff; font-size: 14px; padding: 11px 16px; border-radius: 12px; text-align: center;
  opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; }
.toast.on { opacity: 1; transform: translate(-50%, 0); }

/* side panel */
.panel { display: grid; gap: 12px; min-width: 0; }
.block { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.label { display: block; margin: 0 0 10px; font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.presets { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.preset { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; padding: 10px 12px; text-align: left; }
.preset b { display: block; font-size: 14px; }
.preset span { font-size: 12px; color: var(--ink-3); }
.preset[aria-pressed="true"] { border-color: var(--brand); background: var(--brand-soft); }

.works { display: grid; gap: 2px; }
.work { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); }
.work:last-child { border-bottom: 0; }
.work b { font-size: 14px; font-weight: 600; }
.work span { display: block; font-size: 12px; color: var(--ink-3); }
.switch { position: relative; width: 44px; height: 26px; border-radius: 99px; border: 0; background: #cfd8de; flex: none; transition: background .2s; }
.switch::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s; }
.switch[aria-checked="true"] { background: var(--brand); }
.switch[aria-checked="true"]::after { transform: translateX(18px); }
.finish { margin-top: 14px; }

/* the tap test block: this build's twist */
.tap-block { background: linear-gradient(160deg, #fff 0%, #fff7ea 100%); border-color: #f6dcb7; }
.tap-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.tap-head b { font: 800 34px/1 var(--display); color: var(--ink); }
.tap-head b small { font-size: 18px; color: var(--ink-3); font-weight: 700; }
.tap-line { margin: 4px 0 10px; font-size: 13px; color: var(--ink-2); }
.tap-bar { height: 6px; border-radius: 6px; background: #f2e3cd; overflow: hidden; margin-bottom: 12px; }
.tap-bar span { display: block; height: 100%; background: var(--arrow); transform: scaleX(0); transform-origin: left; transition: transform .35s ease; }
.tap-row { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.tap-row .btn { padding: 11px 16px; font-size: 14px; }
.btn-tap { background: var(--flame); color: #fff; box-shadow: none; }
#tap-fix { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
#tap-fix:disabled { opacity: .55; cursor: default; }
#tap-fix[aria-pressed="true"] { background: var(--teal); color: #fff; border-color: var(--teal); }

.result { background: var(--ink); color: #fff; border-color: var(--ink); position: relative; overflow: hidden; }
.result::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--arrow); }
.result .label { color: #93a3b3; }
.price { display: grid; gap: 4px; }
.price .k { font: 500 11px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #93a3b3; }
.price b { font: 800 26px/1.08 var(--display); letter-spacing: -.01em; }
.price small { font-size: 12px; color: #c3cdd7; }
.meters { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 16px 0 12px; }
.meter { display: grid; gap: 4px; }
.meter .k { font: 500 10px/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #93a3b3; }
.meter b { font-size: 18px; }
.meter i { display: block; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .15); overflow: hidden; }
.meter i span { display: block; height: 100%; width: 100%; background: var(--sun); transform: scaleX(0); transform-origin: left; transition: transform .4s ease; }
.scope { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 6px; font-size: 13px; color: #e4ebf1; }
.scope li { display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid rgba(255, 255, 255, .1); padding-top: 6px; }
.scope li span:last-child { color: #93a3b3; font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.scope li i { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 7px; vertical-align: 0; }

/* booking */
.book-form { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: clamp(16px, 3vw, 28px); display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); min-width: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.days { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.day, .slot { border: 1px solid var(--line); background: var(--paper); border-radius: 12px; flex: none; }
.day { display: grid; justify-items: center; gap: 2px; width: 62px; padding: 8px 0; }
.day small { font: 500 10px/1 var(--mono); text-transform: uppercase; color: var(--ink-3); }
.day b { font-size: 20px; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slot { padding: 10px 14px; font-weight: 600; font-size: 14px; }
.day[aria-pressed="true"], .slot[aria-pressed="true"] { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.day[aria-pressed="true"] small { color: inherit; opacity: .8; }
.fields { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.fields label { display: grid; gap: 6px; font-size: 13px; font-weight: 600; color: var(--ink-2); min-width: 0; }
.fields input { border: 1px solid var(--line); border-radius: 10px; padding: 12px; background: #fff; font-size: 16px; min-width: 0; width: 100%; }
.fields input:focus-visible { outline: 2px solid var(--brand); border-color: var(--brand); }
.fields input[aria-invalid="true"] { border-color: #c4473a; }
.fine { margin: 0; font-size: 12px; color: var(--ink-3); }
.fine.err { color: #c4473a; }

@media (max-width: 980px) {
  .planner { grid-template-columns: minmax(0, 1fr); }
  .stage { height: 62svh; min-height: 400px; }
}
@media (max-width: 640px) {
  .dock-top { left: 8px; right: 8px; top: 8px; justify-content: flex-start; }
  .dock-top .swatches { flex-wrap: nowrap; overflow-x: auto; border-radius: 16px; max-width: 100%; scrollbar-width: none; }
  .dock-top .swatches::-webkit-scrollbar { display: none; }
  .sw { padding: 6px 10px 6px 6px; font-size: 12px; }
  .dock-bl { left: 8px; bottom: 8px; right: 8px; } .dock-br { right: 8px; bottom: 58px; }
  .seg button { padding: 8px 9px; font-size: 12px; min-height: 40px; }
  .hint { top: 62px; }
  .fields { grid-template-columns: minmax(0, 1fr); }
}
