:root {
  --ink: #1f1b18; --muted: #6f665e; --line: #e4ddd3; --paper: #faf7f2; --accent: #2f5d50; --warm: #b4582f;
  --serif: "Fraunces", Georgia, serif; --sans: "Inter", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 16px/1.55 var(--sans); word-break: keep-all; }
a { color: var(--accent); }
button { font: inherit; cursor: pointer; }
.eyebrow { font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.fine { font-size: .78rem; color: var(--muted); }

/* customer */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 560px); min-height: 100vh; }
.desk-side { padding: 28px 48px 40px; display: flex; flex-direction: column; }

/* the mirror: photo first, before/after compare */
.mirror { position: sticky; top: 0; height: 100vh; background: #2a2522 url("img/salon.jpg") center / cover no-repeat; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mirror:has(.frame:not([hidden])) { background: #2a2522; }
.welcome { position: absolute; left: 48px; bottom: 56px; color: #fff; text-shadow: 0 1px 24px rgba(0,0,0,.35); }
.welcome .big { font: 700 clamp(2.6rem, 5vw, 4.6rem)/1.05 var(--serif); margin: 0; }
.eyebrow.light { color: rgba(255,255,255,.85); }
.frame { position: relative; height: 88vh; aspect-ratio: 3 / 4; max-width: 92%; }
.frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; }
#after { clip-path: inset(0 0 0 50%); }
#compare { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.frame:has(#compare:not([hidden]))::after { content: ""; position: absolute; top: 0; bottom: 0; left: var(--cut, 50%); width: 2px; background: #fff; box-shadow: 0 0 12px rgba(0,0,0,.4); pointer-events: none; }
.tag { position: absolute; top: 14px; font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: #fff; background: rgba(0,0,0,.45); padding: 4px 10px; border-radius: 999px; }
.tag-l { left: 14px; } .tag-r { right: 14px; }
.rendering { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); margin: 0; background: rgba(250,247,242,.94); padding: 10px 18px; border-radius: 999px; font-size: .9rem; white-space: nowrap; }
.rendering::before { content: ""; display: inline-block; width: 10px; height: 10px; margin-right: 10px; border-radius: 50%; background: var(--warm); animation: pulse 1s ease-in-out infinite alternate; vertical-align: 0; }
@keyframes pulse { from { opacity: .25; } to { opacity: 1; } }
.honest { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; padding: 10px 16px; font-size: .74rem; color: rgba(255,255,255,.8); text-align: center; }

/* steps */
.brand span { color: var(--muted); font-weight: 400; }
.steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.step { padding: 22px 0; border-bottom: 1px solid var(--line); }
.step[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.step-h { margin: 0 0 14px; font: 600 1.15rem/1.2 var(--serif); display: flex; gap: 12px; align-items: baseline; }
.step-h span { font: 600 .74rem/1 var(--sans); color: var(--muted); letter-spacing: .1em; }
.row { display: flex; gap: 10px; flex-wrap: wrap; margin: 12px 0 6px; }
.btn { display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; padding: 10px 20px; font: 500 .95rem var(--sans); cursor: pointer; }
.btn.dark { background: var(--ink); color: var(--paper); }
.btn[aria-disabled="true"], .btn:disabled { opacity: .4; cursor: not-allowed; }
.btn.wide { width: 100%; margin-top: 14px; padding: 13px 20px; }
.agree.small { font-size: .84rem; align-items: flex-start; color: var(--muted); }
.agree.small input { margin-top: 3px; flex: none; }
.length { margin: 0; font-size: .95rem; }
.length span { color: var(--muted); font-size: .84rem; }
.link { background: none; border: 0; padding: 0; color: var(--accent); text-decoration: underline; font-size: .84rem; }
.group { font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 0 10px; }
.swatches { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin-bottom: 16px; }
.swatch { display: grid; grid-template-columns: 30px 1fr; grid-template-rows: auto auto; column-gap: 10px; align-items: center; text-align: left; background: none; border: 0; border-radius: 6px; padding: 6px; }
.swatch i { grid-row: span 2; width: 30px; height: 30px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.swatch b { font-weight: 600; font-size: .92rem; }
.swatch small { color: var(--muted); font-size: .76rem; }
.swatch.on { background: #efe9e0; }
.swatch.on i { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.chips, .days, .times { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-size: .88rem; }
.chip small { color: var(--muted); margin-left: 4px; }
.chip.on { border-color: var(--ink); background: var(--ink); color: var(--paper); }
.chip.on small { color: rgba(250,247,242,.7); }
.looks { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.looks .group { width: 100%; margin-bottom: 4px; }
.thumb { width: 52px; height: 60px; padding: 0; border: 2px solid transparent; border-radius: 4px; overflow: hidden; background: none; }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb.on { border-color: var(--ink); }
.quote .q-label { font: 600 1.3rem/1.25 var(--serif); margin: 0 0 10px; }
.quote table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.quote td { padding: 6px 0; border-bottom: 1px solid var(--line); }
.quote td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.quote .total td { font-weight: 600; border-bottom: 0; padding-top: 10px; font-size: 1.02rem; }
.warn { color: var(--warm); margin: 0; }
.note { background: #f8ece5; color: #6d3317; padding: 10px 14px; margin: 0 0 12px; font-size: .9rem; }
.who { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; }
.who input { border: 0; border-bottom: 1px solid var(--ink); background: transparent; font: inherit; padding: 8px 0; min-width: 0; }
.who input:focus { outline: none; border-bottom-width: 2px; }
.hold-look { display: flex; gap: 14px; align-items: center; margin-bottom: 8px; }
.hold-look img { width: 64px; height: 74px; object-fit: cover; border-radius: 4px; }
.frontdesk { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 14px; }
.frontdesk summary { cursor: pointer; font-weight: 600; }
.frontdesk .chat { max-height: 30vh; min-height: 120px; border-top: 0; }
.top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 48px; }
.brand { margin: 0; font-weight: 600; letter-spacing: .02em; }
.top a { color: var(--muted); font-size: .9rem; }
h1 { font: 700 clamp(2.4rem, 4.2vw, 3.6rem)/1.05 var(--serif); margin: 0 0 14px; }
.lead { color: var(--muted); margin: 0 0 28px; max-width: 40ch; }
.chat { flex: 1; min-height: 180px; max-height: 38vh; overflow: auto; border-top: 1px solid var(--line); padding: 18px 0; }
.msg { margin: 0 0 12px; max-width: 88%; }
.msg.assistant { color: var(--ink); }
.msg.user { margin-left: auto; text-align: right; color: var(--muted); }
.msg.typing { color: var(--muted); }
.hold { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 20px 0; margin-bottom: 16px; }
.hold-summary { font: 600 1.2rem/1.3 var(--serif); margin: 0 0 8px; }
.policy { font-size: .92rem; margin: 0 0 14px; }
.agree { display: flex; gap: 10px; align-items: center; font-size: .92rem; margin-bottom: 14px; }
.agree input { width: 18px; height: 18px; accent-color: var(--accent); }
.booked { background: #eef3ef; padding: 14px 16px; border-left: 3px solid var(--accent); }
.ask { display: flex; gap: 10px; border-bottom: 1px solid var(--ink); padding: 8px 0; }
.ask input { flex: 1; border: 0; background: transparent; font: inherit; padding: 6px 0; }
.ask input:focus { outline: none; }
.ask button { border: 0; background: var(--ink); color: var(--paper); border-radius: 999px; padding: 8px 18px; }
.hint { font-size: .82rem; color: var(--muted); }
.hint button { background: none; border: 0; border-bottom: 1px solid var(--line); padding: 0; margin: 0 8px 6px 0; color: var(--ink); }

/* owner desk */
.owner { padding: 0 40px 64px; }
.bar { display: flex; justify-content: space-between; align-items: flex-end; padding: 32px 0 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 16px; }
.bar h1 { font-size: 2.2rem; margin: 0; }
.controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.controls .label { font-size: .8rem; color: var(--muted); margin-right: 4px; }
.controls button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; }
.controls #run { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
.kpis div { padding: 22px 16px 22px 0; color: var(--muted); font-size: .85rem; }
.kpis span { display: block; font: 700 2.2rem/1.1 var(--serif); color: var(--ink); }
h2 { font: 600 .76rem/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 36px 0 16px; }
.cal-head { display: flex; align-items: center; gap: 14px; margin-top: 36px; flex-wrap: wrap; }
.cal-head h2 { margin: 0; font: 600 1.4rem var(--serif); letter-spacing: 0; text-transform: none; color: var(--ink); }
.cal-head button { border: 1px solid var(--line); background: #fff; border-radius: 50%; width: 32px; height: 32px; }
.legend { margin-left: auto; font-size: .78rem; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 4px; border-radius: 2px; padding: 0; border: 0; }
.cal { display: grid; grid-template-columns: 54px repeat(3, 1fr); margin-top: 16px; border-top: 1px solid var(--line); }
.hours { position: relative; margin-top: 38px; }
.hours span { position: absolute; font-size: .72rem; color: var(--muted); transform: translateY(-50%); }
.col h3 { margin: 0; padding: 10px 8px; font: 600 .9rem var(--sans); border-bottom: 1px solid var(--line); }
.lane { position: relative; border-left: 1px solid var(--line); background: repeating-linear-gradient(#fff 0 65px, var(--line) 65px 66px); background-position: 0 0; }
.appt { position: absolute; left: 6px; right: 6px; padding: 6px 8px; border-radius: 4px; font-size: .78rem; overflow: hidden; display: flex; flex-direction: column; gap: 1px; border-left: 3px solid; }
.appt span, .appt em { color: var(--muted); }
.appt em { font-style: normal; text-transform: capitalize; }
.appt button { margin-top: 4px; align-self: flex-start; font-size: .72rem; border: 1px solid currentColor; background: #fff; border-radius: 999px; padding: 2px 10px; }
.awaiting_hold { background: #f4f1ec; border-color: #b7aea2; }
.held { background: #e8f0ec; border-color: var(--accent); }
.released, .checked_in { background: #eef2f6; border-color: #6f8aa3; }
.charged { background: #f8ece5; border-color: var(--warm); }
.cancelled, .expired { background: #f3f3f3; border-color: #bbb; opacity: .7; }
.legend .awaiting_hold, .legend .held, .legend .released, .legend .charged { border: 0; }
.legend .held { background: var(--accent); } .legend .awaiting_hold { background: #b7aea2; }
.legend .released { background: #6f8aa3; } .legend .charged { background: var(--warm); }
.now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--warm); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; }
.feed { list-style: none; padding: 0; margin: 0; max-height: 360px; overflow: auto; font-size: .88rem; }
.feed li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.feed time { display: block; font-size: .72rem; color: var(--muted); }
.ledger { width: 100%; }
.ledger-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; }
.chart { height: 300px; border-top: 1px solid var(--line); }
.pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 18px; }
.pill.hold { background: #e3eee8; color: #24493f; }
.pill.void { background: #e5ecf3; color: #3d5873; }
.pill.capture { background: #f6e3d9; color: #8a3f1c; }
.pill.reauthorize { background: #efe9f7; color: #55407a; }
.mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; color: var(--muted); }
.k-capture { color: var(--warm); font-weight: 600; }
.k-void { color: #4c6a85; }
.k-hold { color: var(--accent); }
dialog { max-width: 640px; border: 1px solid var(--line); border-radius: 8px; padding: 28px; }
dialog h2 { margin-top: 0; }

@media (max-width: 900px) {
  .split { grid-template-columns: 1fr; }
  .mirror { position: relative; height: auto; min-height: 46vh; padding: 16px 0 36px; }
  .frame { height: auto; width: min(92vw, 480px); max-width: none; }
  .welcome { left: 16px; bottom: 28px; }
  .swatches { grid-template-columns: 1fr 1fr; }
  .who { grid-template-columns: 1fr; }
  .desk-side { padding: 20px 16px 32px; }
  .owner { padding: 0 16px 40px; }
  .kpis, .two-col { grid-template-columns: 1fr 1fr; }
  .ledger-grid { grid-template-columns: 1fr; }
  .cal { grid-template-columns: 40px repeat(3, minmax(110px, 1fr)); overflow-x: auto; }
}

/* looks on the owner desk */
.looks-kpis div span { color: var(--warm); }
.appt.has-look { padding-left: 46px; }
.appt-look { position: absolute; left: 6px; top: 6px; width: 34px; height: 40px; object-fit: cover; border-radius: 3px; }
.appt .acts { display: flex; gap: 6px; flex-wrap: wrap; }
.brief { max-width: 720px; width: calc(100% - 32px); }
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 16px 0; }
.ba figure { margin: 0; }
.ba img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 4px; display: block; }
.ba figcaption { font-size: .78rem; color: var(--muted); margin-top: 6px; }
.brief dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 16px; font-size: .92rem; margin: 0 0 18px; }
.brief dt { color: var(--muted); }
.brief dd { margin: 0; }
.dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.brief h2 { font: 600 1.5rem/1.2 var(--serif); text-transform: none; letter-spacing: 0; color: var(--ink); margin: 0 0 4px; }
