/* interactivo room builder. Palette: #00AEEF (cyan), #6EC1E4 (sky), #54595F (slate), #7A7A7A (grey), #FFFFFF. */
:root {
  --cyan: #00AEEF;
  --sky: #6EC1E4;
  --slate: #54595F;
  --grey: #7A7A7A;
  --white: #FFFFFF;
  --line: rgba(84, 89, 95, 0.16);
  --tint: rgba(0, 174, 239, 0.10);
  --radius: 16px;
}
* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; color: var(--slate); background: var(--white); }
[hidden] { display: none !important; }
button, input, select { font: inherit; }
:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; }

/* top bar */
.top { position: sticky; top: 0; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; padding: 12px 24px; background: var(--white); border-bottom: 1px solid var(--line); }
.back { color: var(--grey); text-decoration: none; font-size: 14px; }
.back:hover { color: var(--slate); }
.brand { font-weight: 800; letter-spacing: 0.02em; }
.brand span { color: var(--cyan); font-weight: 600; }
.modes { margin-left: auto; display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: rgba(84, 89, 95, 0.08); }
.modes button { border: 0; border-radius: 999px; padding: 7px 16px; background: transparent; color: var(--slate); font-weight: 600; cursor: pointer; }
.modes button[aria-pressed="true"] { background: var(--slate); color: var(--white); }

/* hero */
.hero { position: relative; overflow: hidden; padding: 30px 24px 26px; background: var(--slate); color: var(--white); }
.hero::after { content: ""; position: absolute; right: -90px; top: -120px; width: 360px; height: 360px; border-radius: 50%; background: radial-gradient(circle, var(--cyan) 0%, rgba(0, 174, 239, 0) 68%); opacity: 0.6; pointer-events: none; }
.hero-in { position: relative; z-index: 1; max-width: 1280px; margin: 0 auto; }
.eyebrow { margin: 0 0 4px; color: var(--sky); font-size: 12px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; }
.hero h1 { margin: 0; font-size: clamp(30px, 4.6vw, 50px); line-height: 1.05; letter-spacing: -0.01em; }
.slogan { margin: 10px 0 0; color: var(--sky); font-size: 15px; font-weight: 800; letter-spacing: 0.14em; }
.lede { margin: 10px 0 0; max-width: 560px; color: rgba(255, 255, 255, 0.88); }

/* command & control room section */
.cmd { max-width: 1280px; margin: 18px auto 0; padding: 0 16px; }
.cmd-in { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; padding: 18px 22px; border-radius: var(--radius); background: var(--tint); border: 1px solid rgba(0, 174, 239, 0.4); }
.cmd-copy { flex: 1 1 260px; min-width: 0; }
.cmd h2 { margin: 6px 0 2px; font-size: 20px; }
.cmd p { margin: 0; }
.tag { display: inline-block; padding: 3px 9px; border-radius: 999px; background: var(--slate); color: var(--white); font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; }
.kit { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.kit li { padding: 6px 12px; border-radius: 999px; background: var(--white); border: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.cta { margin-left: auto; padding: 12px 20px; border: 0; border-radius: 12px; background: var(--slate); color: var(--white); font-weight: 700; cursor: pointer; }
.cta:hover { box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.45); }

/* layout and cards */
.layout { display: grid; grid-template-columns: 280px minmax(0, 1fr) 300px; gap: 16px; align-items: start; max-width: 1280px; margin: 18px auto 0; padding: 0 16px 32px; }
@media (max-width: 1000px) { .layout { grid-template-columns: 1fr; } }
.card { margin-bottom: 14px; padding: 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); box-shadow: 0 1px 2px rgba(84, 89, 95, 0.06); }
.card h2 { margin: 0 0 12px; font-size: 16px; }

/* room types */
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.chip { padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); color: var(--slate); text-align: left; cursor: pointer; }
.chip strong { display: block; font-size: 14px; }
.chip small { font-size: 12px; opacity: 0.8; }
.chip:hover { border-color: var(--cyan); background: var(--tint); }

/* room size */
.shape { display: flex; gap: 8px; margin-bottom: 4px; }
.shape label { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; }
.shape label:has(input:checked) { background: var(--slate); border-color: var(--slate); color: var(--white); }
.shape input { accent-color: var(--cyan); }
.field { margin-top: 12px; }
.field label, .row label { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; font-weight: 600; }
.val { font-variant-numeric: tabular-nums; font-weight: 500; opacity: 0.8; }
input[type="range"] { width: 100%; margin: 4px 0 0; accent-color: var(--cyan); }

/* stage */
.stage { position: relative; min-width: 0; padding: 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.stage canvas { display: block; width: 100%; border-radius: 12px; touch-action: none; }
.hint { margin: 10px 4px 0; font-size: 13px; min-height: 1.4em; }
.status { margin: 2px 4px 0; min-height: 1.2em; font-size: 13px; font-weight: 700; }
.walkpad { position: absolute; right: 22px; bottom: 58px; display: grid; grid-template-columns: repeat(3, 40px); grid-template-rows: repeat(2, 40px); gap: 6px; }
.walkpad button { border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, 0.96); color: var(--slate); font-size: 16px; cursor: pointer; touch-action: none; box-shadow: 0 2px 6px rgba(84, 89, 95, 0.12); }
.walkpad button:hover { border-color: var(--cyan); }
.walkpad [data-move="f"] { grid-column: 2; grid-row: 1; }
.walkpad [data-move="l"] { grid-column: 1; grid-row: 2; }
.walkpad [data-move="b"] { grid-column: 2; grid-row: 2; }
.walkpad [data-move="r"] { grid-column: 3; grid-row: 2; }

/* buttons, selection and catalogue */
.btn { padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--slate); font-weight: 600; cursor: pointer; }
.btn:hover { border-color: var(--cyan); background: var(--tint); }
.btn.primary { border-color: var(--slate); background: var(--slate); color: var(--white); }
.btn.primary:hover { box-shadow: 0 0 0 3px rgba(0, 174, 239, 0.45); }
.block { width: 100%; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.sel-name { font-size: 16px; font-weight: 800; }
.sel-size { margin-top: 2px; font-size: 13px; opacity: 0.8; }
#selEmpty { margin: 0; font-size: 14px; opacity: 0.85; }
.row { margin-top: 12px; }
select { width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); color: var(--slate); }
.search { width: 100%; margin-top: 12px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--slate); }
#catalog { list-style: none; margin: 8px 0 0; padding: 0; max-height: 360px; overflow: auto; }
#catalog button { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; width: 100%; padding: 8px 10px; border: 0; border-radius: 10px; background: none; color: var(--slate); text-align: left; cursor: pointer; }
#catalog button:hover { background: var(--tint); }
#catalog small { flex: none; font-size: 12px; opacity: 0.75; white-space: nowrap; }

/* inside the contact page the builder keeps only its 2D / 3D / Walk switch */
.embedded .top .back, .embedded .top .brand, .embedded .hero { display: none; }
.embedded .stage canvas { touch-action: pan-y; } /* on a phone the page still scrolls over the room */
.turn-chip { position: absolute; top: 22px; left: 22px; z-index: 2; margin: 0; padding: 7px 14px; border-radius: 999px; background: rgba(84, 89, 95, 0.9); color: var(--white); font-size: 13px; font-weight: 700; pointer-events: none; }

/* inside the contact page's Build your room form: the room alone, with its Plan / 3D / Walk switch */
.view .top { position: static; padding: 0 0 10px; border-bottom: 0; background: transparent; }
.view .cmd, .view .layout > aside { display: none; }
.view .layout { display: block; max-width: none; margin: 0; padding: 0; }
.view .stage { padding: 0; border: 0; border-radius: 0; }
.view .turn-chip { top: 12px; left: 12px; }
.view .walkpad { right: 12px; bottom: 54px; }
/* device colour: small circles */
.row .lbl { font-size: 13px; font-weight: 600; }
.swatches { display: flex; gap: 10px; margin-top: 8px; }
.swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(0,0,0,.18); cursor: pointer; padding: 0; box-shadow: inset 0 0 0 2px #fff; }
.swatch[aria-pressed="true"] { border-color: #00AEEF; box-shadow: inset 0 0 0 2px #fff, 0 0 0 2px #00AEEF; }

/* the table forms in the form's picture: on the left of the view buttons, styled the same */
.modes.forms { margin-left: 0; margin-right: auto; flex-wrap: wrap; }
.modes.forms[hidden] { display: none; }

/* dark page (the site's light/dark switch): the builder's colours turned round */
html[data-idp="dark"] { --slate: #dbe6ee; --white: #0e1a24; --grey: #93a3ae; --line: rgba(160, 200, 225, 0.16); --tint: rgba(0, 174, 239, 0.14); color-scheme: dark; }
html[data-idp="dark"] body { background: #0e1a24; }
html[data-idp="dark"] .modes button[aria-pressed="true"], html[data-idp="dark"] .btn.primary, html[data-idp="dark"] .cta, html[data-idp="dark"] .tag { background: #00AEEF; border-color: #00AEEF; color: #fff; }
html[data-idp="dark"] .walkpad button { background: rgba(14, 26, 36, 0.92); }
html[data-idp="dark"] .hero { background: #0a2233; color: #fff; }
html[data-idp="dark"] input, html[data-idp="dark"] select, html[data-idp="dark"] textarea { background: #0b1620; color: #e8f1f6; }

/* device markers in the 3D view, with the device's name on hover */
.rb-pins { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.rb-pin { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; padding: 0; border: 2px solid #fff; border-radius: 50%; background: #00AEEF; box-shadow: 0 3px 10px rgba(0, 40, 70, 0.4); cursor: pointer; pointer-events: auto; will-change: transform; }
.rb-pin::before { content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid #00AEEF; opacity: 0; animation: rbPulse 2.4s ease-out infinite; }
.rb-pin::after { content: ""; position: absolute; left: 50%; top: 50%; width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%; background: #fff; }
@keyframes rbPulse { 0% { opacity: 0.8; transform: scale(0.8); } 100% { opacity: 0; transform: scale(1.7); } }
.rb-tip { position: absolute; left: 50%; bottom: calc(100% + 10px); transform: translate(-50%, 4px); display: grid; gap: 1px; width: max-content; max-width: 220px; padding: 8px 12px; border-radius: 10px; background: rgba(7, 16, 25, 0.94); color: #fff; text-align: left; font-size: 13px; line-height: 1.3; opacity: 0; pointer-events: none; transition: opacity 0.15s, transform 0.15s; box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35); }
.rb-tip b { font-weight: 700; }
.rb-tip small { color: #9fd8f2; font-size: 11.5px; }
.rb-pin:hover, .rb-pin:focus-visible { background: #fff; z-index: 2; }
.rb-pin:hover::after, .rb-pin:focus-visible::after { background: #00AEEF; }
.rb-pin:hover .rb-tip, .rb-pin:focus-visible .rb-tip, .rb-pin.hot .rb-tip { opacity: 1; transform: translate(-50%, 0); }
.rb-pin.hot { background: #fff; z-index: 2; }
.rb-pin.hot::after { background: #00AEEF; }
@media (prefers-reduced-motion: reduce) { .rb-pin::before { animation: none; } }
.rb-pic { display: block; margin: 2px auto 8px; border-radius: 6px; background-color: #f4f7f9; background-repeat: no-repeat; outline: 6px solid #f4f7f9; }
.rb-tip:has(.rb-pic) { width: 192px; max-width: none; text-align: center; }
.rb-pin.tip-below .rb-tip { bottom: auto; top: calc(100% + 10px); transform: translate(-50%, -4px); }
.rb-pin.tip-below:hover .rb-tip, .rb-pin.tip-below:focus-visible .rb-tip, .rb-pin.tip-below.hot .rb-tip { transform: translate(-50%, 0); }
.rb-pin.tip-l .rb-tip { left: -6px; transform: translate(0, 4px); }
.rb-pin.tip-r .rb-tip { left: auto; right: -6px; transform: translate(0, 4px); }
.rb-pin.tip-l:hover .rb-tip, .rb-pin.tip-l:focus-visible .rb-tip, .rb-pin.tip-r:hover .rb-tip, .rb-pin.tip-r:focus-visible .rb-tip, .rb-pin.tip-l.hot .rb-tip, .rb-pin.tip-r.hot .rb-tip { transform: none; }
.rb-pin.tip-below.tip-l .rb-tip, .rb-pin.tip-below.tip-r .rb-tip { transform: translate(0, -4px); }
html.embedded, html.embedded body { overflow: hidden; }
/* the home page's office: a room to look at, filling the frame */
html.locked #forms { display: none !important; }
html.locked .view .top { padding: 10px 12px 8px; justify-content: flex-end; }
html.locked body { background: transparent; }
html.locked #hint { padding-left: 200px; }
html.locked .view .top { background: transparent; }
@media (max-width: 600px) { html.locked #hint { display: none; } }
