/* Nexra Systems: the hero demo studio.
   Three modes (website, reservation system, dashboard) x five business types x three styles.
   State lives in CSS radios read with :has(), so every switch also works without JavaScript.
   main.js only adds the blueprint-to-render animation and fills in the mail links. */

/* ---------- State: skin (style) + copy (business type) ---------- */
.studio {
  grid-column: 1 / -1; grid-row: 3; position: relative; z-index: 1;
  display: grid; gap: 2rem; padding-block: 2.5rem 3rem;
  /* Skin: fresh (default) */
  --s-page: #FFFFFF; --s-ink: #12302A; --s-muted: #B4C7C0; --s-accent: #13A06F; --s-on-accent: #FFFFFF;
  --s-tint: #DDF2E9; --s-chrome: #E8EDEA; --s-radius: 1.2cqw; --s-wdth: 100%; --s-wght: 680; --s-case: none; --s-track: -.03em;
  /* Copy: cafe (default) */
  --t-title: "Jouw café"; --t-cta: "Reserveer"; --t-url: "jouwcafe.nl"; --t-path: "/reserveren"; --t-sub: "beheer.";
  --t-b-title: "Reserveer een tafel"; --t-b-unit: "2 personen"; --t-b-list: "Reserveringen vandaag"; --t-d-kpi: "Bestellingen";
}
.studio:has([value="warm"]:checked) {
  --s-page: #F7EADB; --s-ink: #3B2116; --s-muted: #D7BDA6; --s-accent: #C2492C; --s-on-accent: #FFF4E8;
  --s-tint: #EDCBAE; --s-chrome: #EBDCCB; --s-radius: 3.6cqw; --s-wdth: 70%; --s-wght: 560; --s-case: none; --s-track: -.01em;
}
.studio:has([value="strak"]:checked) {
  --s-page: #0F1013; --s-ink: #F2F2EC; --s-muted: #3D4049; --s-accent: #C9F24E; --s-on-accent: #0F1013;
  --s-tint: #1D2027; --s-chrome: #1A1B20; --s-radius: 0px; --s-wdth: 125%; --s-wght: 800; --s-case: uppercase; --s-track: -.02em;
}
.studio:has([value="salon"]:checked)   { --t-title: "Jouw salon"; --t-cta: "Maak een afspraak"; --t-url: "jouwsalon.nl"; --t-b-title: "Maak een afspraak"; --t-b-unit: "Knippen, 30 min"; --t-b-list: "Afspraken vandaag"; --t-d-kpi: "Afspraken"; }
.studio:has([value="winkel"]:checked)  { --t-title: "Jouw winkel"; --t-cta: "Bekijk de collectie"; --t-url: "jouwwinkel.nl"; --t-b-title: "Kies een ophaalmoment"; --t-b-unit: "Bestelling afhalen"; --t-b-list: "Ophalen vandaag"; --t-d-kpi: "Verkopen"; }
.studio:has([value="vakman"]:checked)  { --t-title: "Jouw werkplaats"; --t-cta: "Vraag een offerte"; --t-url: "jouwwerkplaats.nl"; --t-b-title: "Plan een bezoek"; --t-b-unit: "Bezoek aan huis"; --t-b-list: "Bezoeken vandaag"; --t-d-kpi: "Klussen"; }
.studio:has([value="kantoor"]:checked) { --t-title: "Jouw kantoor"; --t-cta: "Plan een gesprek"; --t-url: "jouwkantoor.nl"; --t-b-title: "Plan een gesprek"; --t-b-unit: "Gesprek, 30 min"; --t-b-list: "Gesprekken vandaag"; --t-d-kpi: "Taken"; }
html[lang="en"] .studio { --t-title: "Your café"; --t-cta: "Book a table"; --t-url: "yourcafe.nl"; --t-path: "/book"; --t-sub: "admin."; --t-b-title: "Book a table"; --t-b-unit: "2 guests"; --t-b-list: "Today's bookings"; --t-d-kpi: "Orders"; }
html[lang="en"] .studio:has([value="salon"]:checked)   { --t-title: "Your salon"; --t-cta: "Book now"; --t-url: "yoursalon.nl"; --t-b-title: "Book an appointment"; --t-b-unit: "Haircut, 30 min"; --t-b-list: "Today's appointments"; --t-d-kpi: "Appointments"; }
html[lang="en"] .studio:has([value="winkel"]:checked)  { --t-title: "Your shop"; --t-cta: "Shop now"; --t-url: "yourshop.nl"; --t-b-title: "Pick a pickup time"; --t-b-unit: "Order pickup"; --t-b-list: "Pickups today"; --t-d-kpi: "Sales"; }
html[lang="en"] .studio:has([value="vakman"]:checked)  { --t-title: "Your workshop"; --t-cta: "Get a quote"; --t-url: "yourworkshop.nl"; --t-b-title: "Schedule a visit"; --t-b-unit: "Home visit"; --t-b-list: "Visits today"; --t-d-kpi: "Jobs"; }
html[lang="en"] .studio:has([value="kantoor"]:checked) { --t-title: "Your office"; --t-cta: "Book a call"; --t-url: "youroffice.nl"; --t-b-title: "Book a meeting"; --t-b-unit: "Meeting, 30 min"; --t-b-list: "Meetings today"; --t-d-kpi: "Tasks"; }

/* ---------- State: mode (website / reservation system / dashboard) ---------- */
.ms[data-mode="booking"], .ms[data-mode="dash"],
.receipt[data-mode="sys"], .note-mode[data-mode="sys"], .cta-mode:not([data-mode="web"]) { display: none; }
.studio:has(:is([value="booking"], [value="dash"]):checked) :is(.ms[data-mode="web"], .receipt[data-mode="web"], .note-mode[data-mode="web"]),
.hero:has(:is([value="booking"], [value="dash"]):checked) .cta-mode[data-mode="web"] { display: none; }
.studio:has([value="booking"]:checked) .ms[data-mode="booking"],
.studio:has([value="dash"]:checked) .ms[data-mode="dash"] { display: flex; }
.studio:has(:is([value="booking"], [value="dash"]):checked) .receipt[data-mode="sys"] { display: block; }
.studio:has(:is([value="booking"], [value="dash"]):checked) .note-mode[data-mode="sys"] { display: inline; }
.hero:has([value="booking"]:checked) .cta-mode[data-mode="booking"],
.hero:has([value="dash"]:checked) .cta-mode[data-mode="dash"] { display: inline-flex; }

/* ---------- Layout ---------- */
@media (min-width: 72em) {
  .studio { display: contents; }
  .studio > .draw { grid-column: 6 / -1; grid-row: 2 / span 2; align-self: start; z-index: 1; width: auto; max-width: none; margin: 2.75rem 0 4.5rem clamp(1.5rem, 3.6vw, 3.75rem); }
  .studio > .studio__panel { position: relative; grid-column: 1 / span 5; grid-row: 3; align-self: start; padding: 2.5rem 1rem 4.5rem 0; }
  .studio > .studio__note { position: relative; z-index: 1; grid-column: 6 / -1; grid-row: 3; align-self: end; margin: 0 0 3rem clamp(1.5rem, 3.6vw, 3.75rem); }
}

/* ---------- The drawing ---------- */
.draw { container: draw / inline-size; position: relative; width: 100%; max-width: 46rem; aspect-ratio: 100 / 76; }
.draw__cross { position: absolute; width: 15px; height: 15px; }
.draw__cross::before, .draw__cross::after { content: ""; position: absolute; background: var(--blueprint); }
.draw__cross::before { left: 7px; top: 0; width: 1px; height: 15px; }
.draw__cross::after { top: 7px; left: 0; height: 1px; width: 15px; }
.draw__cross--tl { left: -7px; top: -7px; } .draw__cross--tr { right: -7px; top: -7px; }
.draw__cross--bl { left: -7px; bottom: -7px; } .draw__cross--br { right: -7px; bottom: -7px; }
.dim { position: absolute; display: flex; align-items: center; justify-content: center; height: 13px; color: var(--blueprint); font: 500 .6875rem/1 var(--font-mono); transform-origin: left center; }
.dim::before { content: ""; position: absolute; left: 0; right: 0; top: 6px; border-top: 1px solid var(--blueprint-line); }
.dim::after { content: ""; position: absolute; inset: 0; border-inline: 1px solid var(--blueprint-line); }
.dim span { position: relative; padding: 0 .5em; background: var(--paper-raised); }
.dim--browser { left: 0; top: 0; width: 80%; }
.dim--phone { left: 73%; top: 22.5%; width: 25%; }
.device { position: absolute; }
.device--browser { --overlap: 9cqw; left: 0; top: 6%; width: 80%; aspect-ratio: 16 / 10.4; }
.device--phone { left: 73%; top: 27%; width: 25%; aspect-ratio: 9 / 18; z-index: 2; }
.device__plate { position: absolute; inset: 0; translate: 10px 10px; background: var(--ink); border-radius: 12px; }
.device--phone .device__plate { translate: 7px 7px; border-radius: 22px; }
.mock { position: absolute; inset: 0; overflow: hidden; container-type: inline-size; border-radius: 10px; }
.device--phone .mock { border-radius: 20px; }
.mock__plan, .mock__built { position: absolute; inset: 0; }
.mock__scan { position: absolute; inset: 0; opacity: 0; pointer-events: none; background: linear-gradient(90deg, transparent 55%, rgba(255, 90, 31, .16)); }
.mock__scan::after { content: ""; position: absolute; top: 0; bottom: 0; right: 0; width: 2px; background: var(--signal); }
.draw__status {
  position: absolute; left: 4%; top: 74.5%; z-index: 3; margin: 0;
  display: inline-flex; align-items: center; gap: .55em; padding: .55em .8em;
  background: var(--ink); color: var(--on-ink); border-radius: 2px; font: 500 .6875rem/1 var(--font-mono); white-space: nowrap;
}
.chip-mark { width: 1.35em; height: 1.35em; flex: none; overflow: visible; }
.chip-mark__line { stroke-dasharray: 1 1; }
@container draw (max-width: 30rem) {
  .dim--browser { width: 76%; }
  .device--browser { --overlap: 16cqw; width: 76%; top: 7%; }
  .device--phone { left: 64%; top: 20%; width: 34%; }
  .dim--phone { display: none; }
  .draw__status { top: 71%; left: 3%; }
}

/* ---------- Mini UI: shared parts (sizes in container units of .mock) ---------- */
.ms { position: absolute; inset: 0; display: flex; flex-direction: column; border-radius: inherit; overflow: hidden; }
:where(.ms) :where(i, span) { display: block; font-style: normal; }
:where(.ms) span[data-lang] { display: inline; }
.ms b, .ms em { font-style: normal; }
.ms__chrome { flex: none; display: flex; align-items: center; gap: 1.1cqw; height: 7cqw; padding: 0 2.4cqw; }
.ms__chrome > i { width: 1.5cqw; height: 1.5cqw; border-radius: 50%; }
.ms__url { flex: 0 1 44cqw; height: 4cqw; margin-left: 2.6cqw; padding: 0 2.2cqw; border-radius: 99px; font: 500 1.9cqw/4cqw var(--font-mono); white-space: nowrap; overflow: hidden; }
.ms__page { flex: 1; min-height: 0; display: grid; grid-template-rows: auto 1fr auto; gap: 3.4cqw; padding: 3.4cqw 5cqw 4.4cqw; }
.ms__nav { display: flex; align-items: center; justify-content: space-between; }
.ms__logo { width: 13cqw; height: 2.6cqw; }
.ms__links { width: 30cqw; height: 1.3cqw; }
.mk-label { font: 500 1.5cqw/1.2 var(--font-mono); letter-spacing: .02em; white-space: nowrap; }
.mk-h { font-weight: var(--s-wght); font-stretch: var(--s-wdth); text-transform: var(--s-case); letter-spacing: var(--s-track); line-height: 1; }

/* Website */
.ms__hero { min-height: 0; display: grid; grid-template-columns: 1.15fr 1fr; align-items: center; gap: 4cqw; }
.ms__text { display: flex; flex-direction: column; align-items: flex-start; gap: 1.6cqw; min-width: 0; }
.ms__title { width: 100%; min-height: 2em; font-size: 5.6cqw; line-height: .98; }
.ms__line { width: 92%; height: 1.3cqw; }
.ms__line--short { width: 64%; }
.ms__btn { margin-top: 1.4cqw; min-width: 18cqw; height: 5.2cqw; padding: 0 2.8cqw; font: 600 2cqw/5.2cqw var(--font-sans); white-space: nowrap; }
.ms__img { position: relative; height: 100%; min-height: 0; display: grid; place-items: center; }
.ms__tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.4cqw; }
.ms__tiles > i { height: 8.5cqw; }
.ms--phone .ms__chrome { justify-content: center; height: 11cqw; }
.ms--phone .ms__chrome > i { width: 26cqw; height: 5cqw; border-radius: 99px; }
.ms--phone .ms__page { display: flex; flex-direction: column; gap: 5cqw; padding: 5cqw 7cqw 7cqw; }
.ms--phone .ms__logo { width: 22cqw; height: 5cqw; }
.ms--phone .ms__burger { width: 9cqw; height: 6cqw; }
.ms--phone .ms__img { height: auto; aspect-ratio: 1 / .82; }
.ms--phone .ms__title { min-height: 0; font-size: 10.5cqw; }
.ms--phone .ms__line { width: 80%; height: 2.6cqw; }
.ms--phone .ms__btn { width: 100%; height: 12cqw; margin-top: 0; font-size: 4.6cqw; line-height: 12cqw; text-align: center; }
.ms--phone .ms__tiles { grid-template-columns: 1fr 1fr; margin-top: auto; gap: 4cqw; }
.ms--phone .ms__tiles > i { height: 18cqw; }
.ms--phone .mk-label { font-size: 3.8cqw; }

/* Reservation system: customer flow (browser) */
.ms__page--bk { grid-template-rows: auto auto 1fr; gap: 2.4cqw; }
.bk__title { font-size: 4.3cqw; }
.bk__title::before { content: var(--t-b-title); }
.ms__page--bk { padding-right: var(--overlap, 5cqw); }
.bk__body { min-height: 0; display: grid; grid-template-columns: 1.55fr 1fr; gap: 3cqw; }
.bk__pick { display: flex; flex-direction: column; gap: 1.2cqw; min-width: 0; }
.bk__days { display: grid; grid-template-columns: repeat(7, 1fr); gap: .9cqw; margin-bottom: 1.1cqw; }
.bk__day { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6cqw; height: 7.2cqw; font: 650 2.2cqw/1 var(--font-sans); }
.bk__day b { font: 500 1.3cqw/1 var(--font-mono); }
.bk__slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: .9cqw; }
.bk__slot { display: grid; place-items: center; height: 4.4cqw; font: 500 1.6cqw/1 var(--font-mono); }
.bk__fields { display: grid; grid-template-columns: 1fr 1fr; gap: .9cqw; margin-top: 1.2cqw; }
.bk__field { display: flex; align-items: center; height: 4.6cqw; padding: 0 1.4cqw; font: 500 1.5cqw/1 var(--font-mono); }
.bk__card { display: flex; flex-direction: column; gap: 1.4cqw; min-width: 0; padding: 2.4cqw; }
.bk__unit { font-size: 2.2cqw; font-weight: 700; line-height: 1.15; }
.bk__unit::before { content: var(--t-b-unit); }
.bk__meta { font: 500 1.6cqw/1.2 var(--font-mono); }
.bk__lines { display: grid; gap: 1cqw; }
.bk__lines i { height: 1.1cqw; }
.bk__lines i:last-child { width: 60%; }
.bk__confirm { margin-top: auto; display: grid; place-items: center; height: 5cqw; font: 600 1.9cqw/1 var(--font-sans); }

/* Reservation system: today's list (owner's phone) */
.bp__head { display: flex; align-items: center; justify-content: space-between; gap: 3cqw; }
.bp__title { font-size: 7cqw; line-height: 1.05; }
.bp__title::before { content: var(--t-b-list); }
.bp__count { flex: none; display: grid; place-items: center; width: 10cqw; height: 10cqw; border-radius: 50%; font: 650 5cqw/1 var(--font-sans); }
.bp__list { display: flex; flex-direction: column; gap: 2.2cqw; }
.bp__row { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 3cqw; height: 13.5cqw; padding: 0 3.5cqw; }
.bp__row b { font: 500 4.2cqw/1 var(--font-mono); }
.bp__row i { height: 2.6cqw; }
.bp__row em { display: grid; place-items: center; width: 8cqw; height: 8cqw; border-radius: 50%; font: 650 4.2cqw/1 var(--font-sans); }
.bp__tabs { margin-top: auto; display: grid; grid-template-columns: repeat(3, 1fr); gap: 4cqw; }
.bp__tabs i { height: 9cqw; }

/* Dashboard (browser) */
.ms__page--db { display: grid; grid-template-columns: 10cqw minmax(0, 1fr); grid-template-rows: none; gap: 0; padding: 0; }
.db__side { display: flex; flex-direction: column; align-items: center; gap: 2.6cqw; padding: 3cqw 0; }
.db__brand { width: 4.4cqw; height: 4.4cqw; }
.db__nav { width: 5cqw; height: 1.3cqw; }
.db__main { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto 1fr; gap: 2.2cqw; padding: 3cqw var(--overlap, 4.4cqw) 4cqw 3.6cqw; }
.db__head { display: flex; align-items: center; justify-content: space-between; }
.db__title { font-size: 3.8cqw; }
.db__date { padding: 1cqw 1.6cqw; font: 500 1.5cqw/1 var(--font-mono); }
.db__kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.8cqw; }
.db__kpi { display: flex; flex-direction: column; gap: 1cqw; min-width: 0; padding: 1.6cqw 2cqw; }
.db__kpi b { font-size: 3.9cqw; font-weight: var(--s-wght); font-stretch: var(--s-wdth); letter-spacing: -.02em; line-height: 1; white-space: nowrap; }
.db__kpi-label::before { content: var(--t-d-kpi); }
.db__row { min-height: 0; display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.8cqw; }
.db__chart { display: flex; flex-direction: column; gap: 1.4cqw; min-height: 0; padding: 1.8cqw 2cqw; }
.db__bars { flex: 1; display: flex; align-items: flex-end; gap: 1.3cqw; min-height: 0; border-bottom: 1px solid transparent; }
.db__bars i { flex: 1; height: 50%; }
.db__bars i:nth-child(1) { height: 42%; } .db__bars i:nth-child(2) { height: 64%; } .db__bars i:nth-child(3) { height: 50%; }
.db__bars i:nth-child(4) { height: 78%; } .db__bars i:nth-child(5) { height: 58%; } .db__bars i:nth-child(6) { height: 70%; } .db__bars i:nth-child(7) { height: 92%; }
.db__list { display: grid; gap: 1.2cqw; align-content: start; }
.db__item { display: flex; align-items: center; gap: 1.2cqw; min-width: 0; padding: 1.3cqw 1.5cqw; font-size: 1.6cqw; font-weight: 600; white-space: nowrap; overflow: hidden; }
.db__item em { margin-left: auto; padding: .7cqw 1cqw; border-radius: 99px; font: 500 1.25cqw/1 var(--font-mono); }
.db__check, .db__dot { position: relative; flex: none; width: 2.2cqw; height: 2.2cqw; border-radius: 50%; }
.db__check::after { content: ""; position: absolute; left: 32%; top: 18%; width: 28%; height: 48%; border: solid; border-width: 0 .35cqw .35cqw 0; rotate: 45deg; }
.db__dot { border: .35cqw solid; }

/* Dashboard (owner's phone) */
.ms--phone[data-mode="dash"] .ms__page { gap: 4cqw; }
.dp__value { font-size: 12cqw; }
.dp__spark { display: block; width: 100%; height: 30cqw; }
.dp__note { display: flex; align-items: center; gap: 3cqw; padding: 4cqw; font-size: 4.2cqw; font-weight: 650; line-height: 1.2; }
.dp__note .db__check { width: 6cqw; height: 6cqw; }
.dp__note .db__check::after { border-width: 0 .9cqw .9cqw 0; }

/* ---------- Plan layer: blueprint linework (main.js clones the built UI into it) ---------- */
.mock__plan .ms { border: 1px dashed var(--blueprint-line); background: var(--paper-raised); color: transparent; }
.mock__plan .ms svg { visibility: hidden; }
.mock__plan .ms__chrome { border-bottom: 1px dashed var(--blueprint-line); }
.mock__plan :is(.ms__chrome > i, .ms__url, .ms__logo, .ms__links, .ms__title, .ms__btn, .ms__img, .ms__tiles > i, .ms__burger, .pb) { border: 1px dashed var(--blueprint-line); }
.mock__plan .ms__chrome > i { border-style: solid; }
.mock__plan :is(.ms__line, .pl) { border-bottom: 1px dashed var(--blueprint-line); }
.mock__plan .ms__line { height: 0; }
.mock__plan .ms__title { position: relative; }
.mock__plan .ms__img {
  background:
    linear-gradient(to top right, transparent calc(50% - .5px), var(--blueprint-line) 50%, transparent calc(50% + .5px)),
    linear-gradient(to bottom right, transparent calc(50% - .5px), var(--blueprint-line) 50%, transparent calc(50% + .5px));
}
.mock__plan :is(.ms__title, .ms__btn)::after { position: absolute; left: 1.2cqw; top: 1cqw; font: 500 1.7cqw/1 var(--font-mono); color: var(--blueprint); }
.mock__plan .ms__title::after { content: "h1"; }
.mock__plan .ms__btn { position: relative; border-radius: 99px; }
.mock__plan .ms__btn::after { content: "cta"; top: 50%; translate: 0 -50%; }
.mock__plan .ms--phone .ms__title { height: 13cqw; }
.mock__plan .ms--phone :is(.ms__title, .ms__btn)::after { font-size: 3.4cqw; }
.mock__plan .db__bars { border-bottom-color: var(--blueprint-line); }

/* ---------- Built layer: the finished, skinned example ---------- */
.mock__built .ms { border: 1.5px solid var(--ink); background: var(--s-page); color: var(--s-ink); transition: background-color .3s; }
.device--phone .mock__built .ms { border-width: 4px; }
.mock__built .ms__chrome { background: var(--s-chrome); }
.mock__built .ms--phone .ms__chrome { background: transparent; }
.mock__built .ms__chrome > i { background: var(--s-muted); }
.mock__built .ms--phone .ms__chrome > i { background: var(--ink); }
.mock__built .ms__url { background: var(--s-page); color: var(--s-ink); }
.mock__built .ms__url::before { content: var(--t-url); }
.mock__built .ms[data-mode="booking"] .ms__url::before { content: var(--t-url) var(--t-path); }
.mock__built .ms[data-mode="dash"] .ms__url::before { content: var(--t-sub) var(--t-url); }
.mock__built .ms__logo { background: linear-gradient(90deg, var(--s-accent) 0 2.6cqw, transparent 2.6cqw 3.6cqw, var(--s-ink) 3.6cqw); }
.mock__built .ms--phone .ms__logo { background: linear-gradient(90deg, var(--s-accent) 0 5cqw, transparent 5cqw 7cqw, var(--s-ink) 7cqw); }
.mock__built .ms__links { background: repeating-linear-gradient(90deg, var(--s-muted) 0 7cqw, transparent 7cqw 10.5cqw); }
.mock__built .ms__burger { background: linear-gradient(var(--s-ink) 0 0) top / 100% 18% no-repeat, linear-gradient(var(--s-ink) 0 0) center / 100% 18% no-repeat, linear-gradient(var(--s-ink) 0 0) bottom / 100% 18% no-repeat; }
.mock__built .ms__title { font-weight: var(--s-wght); font-stretch: var(--s-wdth); text-transform: var(--s-case); letter-spacing: var(--s-track); overflow-wrap: break-word; }
.mock__built .ms__title::before { content: var(--t-title); }
.mock__built :is(.ms__line, .bk__lines i, .bp__row i) { background: var(--s-muted); border-radius: 99px; }
.mock__built :is(.ms__btn, .bk__confirm) { background: var(--s-accent); color: var(--s-on-accent); border-radius: var(--s-radius); }
.mock__built .ms__btn::before { content: var(--t-cta); }
.mock__built .ms__img { background: var(--s-tint); color: var(--s-accent); border-radius: var(--s-radius); overflow: hidden; }
.mock__built .ms__img::before { content: ""; position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; right: -16%; bottom: -22%; background: var(--s-accent); opacity: .16; }
.mock__built :is(.ms__tiles > i, .bk__card, .bp__row, .bp__tabs i, .db__side, .dp__note) { background: var(--s-tint); border-radius: var(--s-radius); }
.mock__built .db__side { border-radius: 0; }
.mock__built .mk-label { opacity: .66; }
.mock__built .bk__field { color: var(--s-muted); }
.mock__built :is(.bk__day, .bk__slot, .bk__field, .db__kpi, .db__chart, .db__item, .db__date) { border: 1px solid var(--s-muted); border-radius: calc(var(--s-radius) * .7); }
.mock__built :is(.bk__day, .bk__slot).is-on { background: var(--s-accent); border-color: var(--s-accent); color: var(--s-on-accent); }
.mock__built .bk__slot.is-off { opacity: .38; text-decoration: line-through; }
.mock__built .bp__count, .mock__built .db__auto, .mock__built .db__check, .mock__built .db__brand { background: var(--s-accent); color: var(--s-on-accent); }
.mock__built .bp__row em { background: var(--s-page); }
.mock__built .bp__row.is-new { box-shadow: inset 1.3cqw 0 0 var(--s-accent); }
.mock__built .db__nav { background: var(--s-muted); border-radius: 99px; }
.mock__built .db__nav.is-on { background: var(--s-ink); }
.mock__built .db__bars { border-bottom-color: var(--s-muted); }
.mock__built .db__bars i { background: var(--s-muted); border-radius: calc(var(--s-radius) * .5) calc(var(--s-radius) * .5) 0 0; }
.mock__built .db__bars i:last-child { background: var(--s-accent); }
.mock__built .db__open { border: 1px solid var(--s-muted); }
.mock__built .db__check::after { border-color: var(--s-on-accent); }
.mock__built .db__dot { border-color: var(--s-accent); }
.mock__built .dp__spark { color: var(--s-accent); }
.ms__icon { position: relative; display: none; width: 46%; height: auto; aspect-ratio: 1; }
.ms--phone .ms__icon { width: 40%; }
.ms__icon[data-type="cafe"] { display: block; }
.studio:has([name="nx-type"]:not([value="cafe"]):checked) .ms__icon[data-type="cafe"] { display: none; }
.studio:has([value="salon"]:checked) .ms__icon[data-type="salon"],
.studio:has([value="winkel"]:checked) .ms__icon[data-type="winkel"],
.studio:has([value="vakman"]:checked) .ms__icon[data-type="vakman"],
.studio:has([value="kantoor"]:checked) .ms__icon[data-type="kantoor"] { display: block; }

/* ---------- Controls ---------- */
.studio__panel { display: grid; gap: 1.5rem; }
.picker { min-width: 0; margin: 0; padding: 0; border: 0; }
.picker legend { padding: 0; margin-bottom: .65rem; font: 500 .75rem/1.3 var(--font-mono); color: var(--ink-muted); }
.picker__chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { position: relative; display: inline-flex; }
.chip input, .mode input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.chip > span {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 44px; padding: 0 1rem;
  border: 1px solid var(--ink); border-radius: 2px; background: var(--paper-raised);
  font-size: .9375rem; font-weight: 550; line-height: 1; transition: background-color var(--t-fast), color var(--t-fast);
}
.chip:hover > span { background: var(--paper); }
.chip input:checked + span { background: var(--ink); color: var(--on-ink); }
.chip input:checked + span::before { content: ""; width: .45rem; height: .45rem; background: var(--signal); }
.chip input:focus-visible + span, .mode input:focus-visible + span { position: relative; z-index: 2; outline: 3px solid var(--focus); outline-offset: 3px; }
.chip--swatch > span::after { content: ""; order: 2; width: 1.5rem; height: .85rem; border-radius: 2px; box-shadow: inset 0 0 0 1px rgba(17, 26, 51, .3); }
.chip--fris > span::after  { background: linear-gradient(90deg, #FFFFFF 0 55%, #13A06F 55%); }
.chip--warm > span::after  { background: linear-gradient(90deg, #F7EADB 0 55%, #C2492C 55%); }
.chip--strak > span::after { background: linear-gradient(90deg, #0F1013 0 55%, #C9F24E 55%); }

/* Mode switch: one segmented control, the first decision */
.modes { display: flex; border: 1.5px solid var(--ink); border-radius: 2px; background: var(--paper-raised); }
.mode { position: relative; flex: 1 1 auto; display: flex; min-width: 0; }
.mode + .mode { border-left: 1px solid var(--ink); }
.mode > span {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: .5rem; min-height: 50px; padding: 0 .85rem;
  font-size: .9375rem; font-weight: 650; font-stretch: 104%; line-height: 1; white-space: nowrap;
  transition: background-color var(--t-fast), color var(--t-fast);
}
.mode:hover > span { background: var(--paper); }
.mode input:checked + span { background: var(--ink); color: var(--on-ink); }
.mode__icon { flex: none; width: 1rem; height: 1rem; }
.mode input:checked + span .mode__icon { color: var(--signal); }
.mode__short { display: none; }
@media (max-width: 39.99em), (min-width: 72em) and (max-width: 79.99em) {
  .mode__long { display: none; }
  .mode__short { display: inline; }
}
@media (max-width: 29.99em) {
  .mode > span { padding: 0 .5rem; font-size: .875rem; }
  .mode__icon { display: none; }
}
@media (max-width: 22.49em) { .mode > span { padding: 0 .4rem; font-size: .8125rem; } }

.receipt { margin: 0; border-top: 1px solid var(--ink); font: 400 .75rem/1.3 var(--font-mono); }
.receipt div { display: flex; align-items: baseline; gap: .6rem; padding: .6rem 0; border-bottom: 1px dashed var(--hair); }
.receipt dt { flex: 1 0 auto; display: flex; align-items: baseline; gap: .6rem; color: var(--ink-muted); }
.receipt dt::after { content: ""; flex: 1; min-width: 1rem; border-bottom: 1px dotted var(--ink-muted); opacity: .6; }
.receipt dd { margin: 0; max-width: 62%; font-weight: 500; text-align: right; }
.studio__cta { justify-self: start; }
.studio__note { margin: 0; max-width: 46ch; font-size: var(--fs-s); color: var(--ink-muted); }

/* Phones: pickers sit above the drawing so every tap re-skins the mock in view */
@media (max-width: 39.99em) {
  .studio__panel { display: contents; }
  .picker--mode { order: 1; }
  .picker--type { order: 2; margin-top: -.5rem; }
  .picker--style { order: 3; margin-top: -.5rem; }
  .studio > .draw { order: 4; }
  .receipt { order: 5; }
  .studio__cta { order: 6; margin-top: -.5rem; }
  .studio__note { order: 7; }
}
@media (min-width: 40em) and (max-width: 71.99em) {
  .studio__panel { grid-template-columns: minmax(0, 1fr) 17rem; column-gap: 2.5rem; align-items: start; }
  .picker--mode, .picker--type { grid-column: 1 / -1; }
  .picker--mode .modes { max-width: 36rem; }
  .receipt { grid-column: 2; grid-row: 3 / span 2; }
  .studio__cta { grid-column: 1; grid-row: 4; }
}
@media (min-width: 72em) {
  .studio__panel { border-top: 1px dashed var(--blueprint-line); margin-top: 2.5rem; }
  .receipt { max-width: 26rem; }
  .studio__cta { display: none !important; }
}

/* ---------- Intro motion: pre-state only while JS + motion are on (main.js lifts it) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .js .studio:not(.is-built) .mock__built { clip-path: inset(0 100% 0 0); }
  .js .studio:not(.is-built) .mock__plan,
  .js .studio:not(.is-built) .device__plate,
  .js .studio:not(.is-built) .draw__status { opacity: 0; }
  .js .studio:not(.is-built) .dim { transform: scaleX(0); }
  /* Failsafe if main.js never runs */
  .js .studio:not(.is-armed):not(.is-built) :is(.mock__built, .mock__plan, .device__plate, .draw__status, .dim) { animation: nx-failsafe .01s 3s forwards; }
}
@keyframes nx-failsafe { to { clip-path: inset(0); opacity: 1; transform: none; } }
