@font-face { font-family: 'Instrument Sans'; font-style: normal; font-weight: 400 700; font-display: swap; src: url(fonts/instrument-sans-latin.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-latin.woff2) format('woff2'); }
@font-face { font-family: 'Instrument Serif'; font-style: italic; font-weight: 400; font-display: swap; src: url(fonts/instrument-serif-italic-latin.woff2) format('woff2'); }
:root {
  --b-bg: #142833;
  --b-panel: #1D3B4F;
  --b-card: #27465A;
  --b-ink: #F4F0E6;
  --b-muted: #D5DEE4;
  --b-line: rgba(244, 240, 230, 0.16);
  --b-line2: rgba(244, 240, 230, 0.30);
  --b-blue: #1D3B4F;
  --b-rust: #C9643A;
  --b-rust-text: #F2B584;
  --b-soft: #234258;
  --b-sel: #C9643A;
  --b-cta: #7A3318;
  --b-cta-ink: #FFF8F0;
  --b-offer: #C9643A;
  --b-offer-ink: #1A120C;
  --b-focus: #E89B6C;
  --b-toast: #142833;
  --b-toast-ink: #F4F0E6;
  --b-toast-muted: #D5DCE0;
  --b-ease: cubic-bezier(.2,.8,.2,1);
  --panel-w: 400px;
  --sheet-bg: #1D3B4F;
}
* { box-sizing: border-box; }
html { min-height: 100%; }
html, body { margin: 0; }
body { font-family: 'Instrument Sans', system-ui, sans-serif; color: var(--b-ink); background: var(--b-bg); font-size: 14px; -webkit-font-smoothing: antialiased; min-height: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:root { --mast: 5.5rem; }
.app { display: grid; grid-template-columns: var(--panel-w) 1fr; height: calc(100vh - var(--mast)); height: calc(100dvh - var(--mast)); min-height: 480px; }

/* ---------------------------------------------------------------- PANEL */
.panel { background: var(--b-panel); border-right: 0; display: flex; flex-direction: column; min-height: 0; position: relative; z-index: 2; box-shadow: 3px 0 0 var(--b-rust), 18px 0 40px -20px rgba(0,0,0,.55); color-scheme: dark; }
.brand { display: flex; align-items: center; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--b-line); }
.brand-mark { display: grid; place-items: center; }
.brand-mark svg { width: 38px; height: 38px; display: block; }
.brand-mark svg rect { fill: #F4F0E6; }
.brand-mark svg path[fill="#F3EFE6"] { fill: #1D3B4F; }
.brand-name { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 1.45rem; line-height: 1; letter-spacing: -0.01em; margin: 0; }
.brand-by { display: block; font-family: 'Instrument Sans', system-ui, sans-serif; font-size: .74rem; letter-spacing: 0; color: var(--b-muted); margin-top: 4px; }
.brand-sub { font-size: .78rem; color: var(--b-muted); margin-top: 3px; display: flex; align-items: center; gap: 6px; }
.tag { font-size: .62rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: #F6E4D8; color: #9A4520; }
.panel-scroll { flex: 1; overflow-y: auto; padding: 6px 22px 0; scrollbar-width: thin; scrollbar-color: var(--b-line2) transparent; }
.intro { font-family: 'Instrument Serif', serif; font-size: 1.5rem; line-height: 1.15; margin: 18px 0 6px; letter-spacing: -0.01em; }
.intro strong { font-weight: 400; }
.intro em { color: var(--b-rust-text); }
.step { padding: 20px 0 22px; border-bottom: 1px solid var(--b-line); }
.step:last-of-type { border-bottom: 0; }
.step h2 { display: flex; align-items: center; gap: 10px; font-size: .78rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 600; margin: 0 0 12px; }
.step h2 .n { width: 22px; height: 22px; border-radius: 50%; background: var(--b-rust); color: #1A120C; display: grid; place-items: center; font-size: .7rem; letter-spacing: 0; font-weight: 700; }
.hint { margin: -4px 0 14px; color: var(--b-muted); font-size: .84rem; line-height: 1.45; }

/* business picker */
.bizp { position: relative; min-width: 0; }
.panel, .panel-scroll { min-width: 0; }
.bizp-cur { width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 12px 10px 10px; border: 1.5px solid var(--b-line); background: var(--b-card); border-radius: 14px; text-align: left; transition: border-color .25s, box-shadow .25s; }
.bizp-cur:hover, .bizp.open .bizp-cur { border-color: var(--b-sel); box-shadow: 0 0 0 3px rgba(201,100,58,.28); }
.bc-ic { width: 42px; height: 42px; flex: none; border-radius: 11px; background: var(--b-soft); color: var(--b-ink); display: grid; place-items: center; }
.bc-ic svg { width: 22px; height: 22px; }
.bc-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.bc-txt b { font-size: .95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bc-txt small { font-size: .74rem; line-height: 1.3; color: var(--b-muted); white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.bc-txt small i { font-style: normal; color: var(--b-muted); }
.bc-chg { display: flex; align-items: center; gap: 3px; font-size: .76rem; font-weight: 600; color: var(--b-rust-text); flex: none; }
.bc-chg svg { width: 15px; height: 15px; transition: transform .35s var(--b-ease); }
.bizp.open .bc-chg svg { transform: rotate(180deg); }
.bizp-pop { margin-top: 8px; border: 1.5px solid var(--b-line); background: var(--b-card); border-radius: 14px; padding: 10px; box-shadow: 0 18px 40px -24px rgba(0,0,0,.45); animation: popIn .35s var(--b-ease); }
.bizp-pop[hidden] { display: none; }
@keyframes popIn { from { opacity: 0; transform: translateY(-6px); } }
.bizp-search { display: flex; align-items: center; gap: 8px; padding: 0 10px; height: 40px; border-radius: 10px; background: var(--b-soft); color: var(--b-muted); }
.bizp-search:focus-within { box-shadow: 0 0 0 2px var(--b-sel) inset; background: var(--b-panel); }
.bizp-search svg { width: 17px; height: 17px; flex: none; }
.bizp-search input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: .9rem; color: var(--b-ink); outline: none; }
.bizp-search input::placeholder { color: #D0D8DC; opacity: 1; }
.bizp-chips { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 5px; margin: 10px -10px 8px; padding: 2px 10px; scrollbar-width: none; }
.bizp-chips::-webkit-scrollbar { display: none; }
.bchip { flex: none; min-height: 32px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid var(--b-line); background: var(--b-soft); border-radius: 999px; padding: 4px 9px; font-size: .72rem; font-weight: 600; color: #E8EEF2; transition: all .2s; }
.bchip svg { width: 13px; height: 13px; }
.bchip:hover { color: var(--b-ink); border-color: var(--b-line2); }
.bchip.on { background: #F4F0E6; border-color: #F4F0E6; color: #1D3B4F; }
.bizp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; max-height: min(252px, 38vh); overflow-y: auto; margin: 0 -4px; padding: 2px 4px; scrollbar-width: thin; scrollbar-color: var(--b-line2) transparent; }
.bgroup { grid-column: 1 / -1; margin: 8px 2px 2px; font-size: .64rem; text-transform: uppercase; letter-spacing: .14em; color: var(--b-muted); font-weight: 600; }
.bgroup:first-child { margin-top: 2px; }
.btile { display: flex; align-items: center; gap: 8px; border: 0; background: transparent; border-radius: 9px; padding: 7px 8px; text-align: left; font-size: .82rem; font-weight: 500; transition: background .15s; }
.btile svg { width: 18px; height: 18px; flex: none; color: var(--b-rust-text); }
.btile:hover { background: var(--b-soft); }
.btile.on { background: rgba(201,100,58,.22); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--b-sel); }
.btile-own { grid-column: 1 / -1; color: var(--b-rust-text); font-weight: 600; border: 1.5px dashed rgba(232,155,108,.55); }
.btile-own svg { color: var(--b-rust-text); }
.bnone { grid-column: 1 / -1; margin: 6px 4px 4px; color: var(--b-muted); font-size: .8rem; }
.bizp-other { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--b-line); }
.bizp-other label { display: block; font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--b-muted); margin: 0 0 6px 2px; }
.bizp-other div { display: flex; gap: 6px; }
.bizp-other input { flex: 1; min-width: 0; height: 38px; border: 1.5px solid var(--b-line); border-radius: 10px; padding: 0 10px; font: inherit; font-size: .88rem; outline: none; background: var(--b-soft); color: var(--b-ink); }
.bizp-other input::placeholder { color: #D0D8DC; opacity: 1; }
.bizp-other input:focus { border-color: var(--b-sel); }
.bizp-other button { border: 0; border-radius: 10px; background: var(--b-cta); color: var(--b-cta-ink); padding: 0 14px; font-weight: 600; font-size: .82rem; }
.bizp-other button:hover { background: #5C2612; }

/* presets */
.presets { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.preset { display: flex; flex-direction: column; justify-content: flex-start; align-items: stretch; border: 1.5px solid var(--b-line); background: var(--b-card); border-radius: 14px; padding: 0; text-align: left; overflow: hidden; transition: border-color .25s, transform .35s var(--b-ease), box-shadow .35s; position: relative; }
.preset:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(0,0,0,.5); }
.preset.on { border-color: var(--b-sel); box-shadow: 0 0 0 3px rgba(201,100,58,.28); }
.preset.on::after { content: ''; position: absolute; top: 8px; right: 8px; width: 20px; height: 20px; border-radius: 50%; background: var(--b-sel) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231A120C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center/13px no-repeat; }
.pv { height: 78px; padding: 12px 12px 0; position: relative; display: flex; flex-direction: column; justify-content: space-between; }
.pv .aa { font-size: 1.9rem; line-height: 1; }
.pv .sw { display: flex; gap: 0; height: 10px; margin: 0 -12px; }
.pv .sw i { flex: 1; }
.preset .pmeta { padding: 9px 12px 11px; }
.preset .pname { font-weight: 600; font-size: .86rem; display: block; }
.preset .pdesc { font-size: .74rem; color: var(--b-muted); display: block; margin-top: 2px; line-height: 1.3; }
.surprise { margin-top: 10px; width: 100%; display: flex; align-items: center; justify-content: center; gap: 9px; padding: 12px; border: 1.5px dashed var(--b-line2); background: transparent; border-radius: 12px; font-weight: 600; font-size: .88rem; transition: all .25s; }
.surprise svg { width: 20px; height: 20px; transition: transform .6s var(--b-ease); }
.surprise:hover { border-color: var(--b-rust); color: var(--b-rust-text); background: rgba(201,100,58,.12); }
.surprise:hover svg, .surprise.roll svg { transform: rotate(200deg); }

/* themes */
.themes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.theme { border: 1.5px solid var(--b-line); background: var(--b-card); border-radius: 12px; padding: 10px 4px 8px; display: flex; flex-direction: column; align-items: center; gap: 6px; transition: border-color .25s, box-shadow .25s, transform .3s var(--b-ease); }
.theme:hover { transform: translateY(-2px); }
.theme.on { border-color: var(--b-sel); box-shadow: 0 0 0 3px rgba(201,100,58,.28); }
.theme .tchip { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; font-size: 1.25rem; line-height: 1; position: relative; overflow: hidden; }
.theme .tchip::after { content: ''; position: absolute; right: 0; bottom: 0; width: 14px; height: 14px; background: var(--acc); border-top-left-radius: 6px; }
.theme span { font-size: .7rem; font-weight: 600; color: var(--b-muted); text-align: center; line-height: 1.15; }
.theme.on span { color: var(--b-ink); }

/* sections */
.sec-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.sec-item { border: 1px solid var(--b-line); border-radius: 14px; background: var(--b-card); transition: opacity .3s, background .3s, box-shadow .3s; }
.sec-item.off { background: transparent; }
/* off sections: signalled by dashed outlines, never by fading text (keeps >= 4.5:1) */
.sec-item.off .var { border-style: dashed; }
.sec-item.off .var .vthumb, .sec-item.off .var svg { filter: grayscale(.7); }
.sec-item.off .var:hover, .sec-item.off .var:focus-visible { opacity: 1; }
.sec-item.moved { animation: moved .6s var(--b-ease); }
@keyframes moved { 0% { box-shadow: 0 0 0 3px rgba(201,100,58,.35); } 100% { box-shadow: 0 0 0 3px transparent; } }
.sec-top { display: flex; align-items: center; gap: 10px; padding: 12px 10px 10px 14px; }
.sw-toggle { width: 42px; height: 24px; border-radius: 24px; border: 0; background: #8A8274; position: relative; transition: background .25s; flex: none; padding: 0; }
.sw-toggle::before { content: ''; position: absolute; inset: -10px -4px; }
.sw-toggle::after { content: ''; position: absolute; top: 2px; left: 2px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .3s var(--b-ease); }
.sw-toggle[aria-checked="true"] { background: var(--b-rust); }
.sw-toggle[aria-checked="true"]::after { transform: translateX(18px); }
.sec-name { font-weight: 600; font-size: .92rem; }
.sec-vn { font-size: .76rem; color: var(--b-muted); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mv { display: flex; gap: 2px; }
.mv button { width: 34px; height: 34px; border: 0; background: transparent; border-radius: 8px; display: grid; place-items: center; color: var(--b-muted); transition: background .2s, color .2s; }
.mv button:hover:not(:disabled) { background: var(--b-soft); color: var(--b-ink); }
.mv button:disabled { opacity: .25; cursor: default; }
.mv svg { width: 16px; height: 16px; }
.variants { display: grid; grid-template-columns: repeat(var(--cols, 3), 1fr); gap: 6px; padding: 0 10px 12px; }
.var { border: 1.5px solid var(--b-line); background: var(--b-panel); border-radius: 10px; padding: 7px 5px 6px; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: border-color .2s, background .2s, transform .3s var(--b-ease); }
.var:hover { border-color: var(--b-line2); background: var(--b-soft); transform: translateY(-1px); }
.var.on { border-color: var(--b-sel); background: var(--b-soft); box-shadow: 0 0 0 2px rgba(201,100,58,.22); }
.var svg { width: 100%; height: auto; display: block; color: var(--b-ink); }
.var span { font-size: .68rem; font-weight: 600; color: var(--b-muted); line-height: 1.1; text-align: center; }
.var.on span { color: var(--b-ink); }
.panel-end { height: 24px; }

.panel-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 22px; border-top: 1px solid var(--b-line); background: var(--b-panel); }
.pf-sum { display: flex; flex-direction: column; min-width: 0; }
.pf-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .12em; color: var(--b-muted); font-weight: 600; }
.pf-val { font-weight: 600; font-size: .86rem; white-space: normal; line-height: 1.25; overflow-wrap: anywhere; display: block; }
.btn-primary, .btn-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 11px; padding: 12px 16px; font-weight: 600; font-size: .88rem; transition: transform .3s var(--b-ease), background .2s, box-shadow .3s; white-space: nowrap; }
.btn-primary { background: var(--b-cta); color: var(--b-cta-ink); box-shadow: 0 8px 22px -8px rgba(179,76,36,.85); }
.btn-primary:hover { background: #5C2612; transform: translateY(-1px); }
.btn-primary svg, .btn-secondary svg { width: 17px; height: 17px; }
.cta-quote { flex: none; box-shadow: 0 10px 26px -8px rgba(179,76,36,.95); }
.cta-quote .cta-short { display: none; }
.btn-secondary { background: var(--b-soft); border: 1.5px solid var(--b-line2); color: var(--b-ink); }
.btn-secondary:hover { border-color: var(--b-ink); }

/* ---------------------------------------------------------------- STAGE */
.stage { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--b-bg) radial-gradient(circle at 1px 1px, rgba(244,240,230,.06) 1px, transparent 0) 0 0/22px 22px; }
.stage-bar { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; padding: 14px 20px; background: var(--b-panel); border-bottom: 3px solid var(--b-rust); color: var(--b-ink); box-shadow: 0 10px 24px -18px rgba(0,0,0,.7); }
.url { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: .82rem; color: var(--b-muted); }
.url .dots { display: flex; gap: 6px; margin-right: 6px; }
.url .dots i { width: 11px; height: 11px; border-radius: 50%; background: #D9D4C8; }
.url .dots i:first-child { background: #E8A598; } .url .dots i:nth-child(2) { background: #EBCF8E; } .url .dots i:nth-child(3) { background: #A9CFA0; }
.url .lock svg { width: 13px; height: 13px; display: block; }
#urlText { background: var(--b-card); border: 1px solid var(--b-line); padding: 6px 14px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; transition: opacity .2s; color: var(--b-ink); }
.device-toggle { display: flex; background: var(--b-card); border: 1px solid var(--b-line); border-radius: 12px; padding: 3px; gap: 2px; }
.device-toggle button { border: 0; background: transparent; display: flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 9px; font-weight: 600; font-size: .8rem; color: #F4F0E6; }
.device-toggle button svg { width: 17px; height: 17px; color: inherit; }
.device-toggle button span { color: inherit; }
.device-toggle button.on { background: #F4F0E6; color: #1D3B4F; }
.bar-actions { justify-self: end; }
.ghost { display: flex; align-items: center; gap: 7px; border: 1px solid var(--b-line); background: var(--b-card); padding: 8px 12px; border-radius: 10px; font-size: .8rem; font-weight: 600; color: var(--b-ink); transition: border-color .2s; }
.ghost:hover { border-color: var(--b-ink); }
.ghost svg { width: 16px; height: 16px; }
.canvas { flex: 1; min-height: 0; padding: 14px 18px 18px; display: flex; justify-content: center; align-items: stretch; background: var(--b-bg); }
.device { display: flex; flex-direction: column; position: relative; width: 100%; max-width: none; background: var(--site-bg, #fff); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 0 rgba(0,0,0,.04), 0 30px 70px -30px rgba(23,36,45,.45), 0 0 0 1px rgba(23,36,45,.08); transition: border-radius .7s var(--b-ease), margin .7s var(--b-ease), box-shadow .7s, padding .7s; }
.device[data-mode="desktop"] {
  background: #163040;
  padding: 3px;
  border-radius: 12px;
  box-shadow: 0 0 0 2px var(--b-rust), 0 22px 48px -16px rgba(0,0,0,.55);
}
.device[data-mode="desktop"] .frame-box { border-radius: 8px; }
.frame-box { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--site-bg, #fff); }
.device iframe { display: block; width: 100%; height: 100%; border: 0; background: var(--site-bg, #fff); }
.device[data-mode="desktop"] iframe { position: absolute; top: 0; left: 0; transform-origin: 0 0; }
.statusbar { display: none; height: 46px; flex: none; align-items: center; justify-content: space-between; padding: 6px 30px 0 34px; font-weight: 600; font-size: .9rem; color: var(--site-ink, #111); background: var(--site-bg, #fff); transition: background .5s, color .5s; }
.statusbar .sb-icons { display: flex; gap: 6px; align-items: center; }
.statusbar svg { height: 11px; fill: currentColor; }
.statusbar svg:last-child { height: 12px; }
.device[data-mode="mobile"] .statusbar { display: flex; }
.device[data-mode="mobile"] { max-width: 402px; max-height: 860px; align-self: center; height: 100%; border-radius: 52px; box-shadow: 0 0 0 10px #15191C, 0 0 0 11px #3A4148, 0 40px 80px -30px rgba(0,0,0,.55); margin: 14px 0; }
.device[data-mode="mobile"] iframe { border-radius: 0 0 42px 42px; }
.device[data-mode="mobile"] { background: var(--site-bg, #fff); }
.notch { position: absolute; top: 9px; left: 50%; width: 110px; height: 32px; margin-left: -55px; background: #15191C; border-radius: 20px; z-index: 3; opacity: 0; transform: scale(.6); transition: opacity .4s .3s, transform .5s .3s var(--b-ease); pointer-events: none; }
.device[data-mode="mobile"] .notch { opacity: 1; transform: none; }
.device[data-mode="mobile"] iframe { padding-top: 0; }
.frame-flash { position: absolute; inset: 0; pointer-events: none; background: #142833; opacity: 0; transition: opacity .25s; }
.device.resizing .frame-flash, .device:not(.ready) .frame-flash { opacity: 1; }
.fl-label { position: absolute; left: 50%; top: 45%; transform: translateX(-50%); font-size: .82rem; font-weight: 600; color: #F4F0E6; opacity: 0; visibility: hidden; }
.device:not(.ready) .fl-label, .device.resizing .fl-label { opacity: 1; visibility: visible; }

/* ---------------------------------------------------------------- DRAWER */
.scrim { position: fixed; inset: 0; background: rgba(15,24,30,.38); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .35s; z-index: 20; }
.drawer { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(460px, calc(100vw - 24px)); background: var(--b-panel); border-radius: 20px; box-shadow: 0 40px 80px -20px rgba(0,0,0,.4); z-index: 21; display: flex; flex-direction: column; transform: translateX(calc(100% + 24px)); visibility: hidden; transition: transform .55s var(--b-ease), visibility 0s linear .55s; }
body.picks-open .scrim { opacity: 1; pointer-events: auto; }
body.picks-open .drawer { transform: none; visibility: visible; transition: transform .55s var(--b-ease), visibility 0s; }
.dr-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 22px 24px 14px; }
.dr-kicker { font-size: .7rem; text-transform: uppercase; letter-spacing: .14em; font-weight: 600; color: var(--b-rust-text); }
.dr-head h2 { font-family: 'Instrument Serif', serif; font-weight: 400; font-size: 2rem; margin: 4px 0 0; line-height: 1.05; letter-spacing: -0.01em; }
.x { width: 44px; height: 44px; flex: none; border-radius: 50%; border: 1px solid var(--b-line); background: var(--b-card); color: var(--b-ink); display: grid; place-items: center; }
.x svg { width: 18px; }
.dr-body { flex: 1; overflow-y: auto; padding: 4px 24px 18px; }
.dr-look { display: flex; gap: 14px; align-items: center; padding: 14px; background: var(--b-card); border: 1px solid var(--b-line); border-radius: 14px; }
.dr-look .tchip { width: 56px; height: 56px; border-radius: 12px; display: grid; place-items: center; font-size: 1.6rem; flex: none; }
.dr-look strong { display: block; font-size: 1rem; }
.dr-look small { color: var(--b-muted); font-size: .8rem; line-height: 1.4; display: block; margin-top: 2px; }
.dr-secs { list-style: none; padding: 0; margin: 14px 0; counter-reset: s; }
.dr-secs li { display: flex; gap: 12px; align-items: center; padding: 10px 2px; border-bottom: 1px solid var(--b-line); counter-increment: s; }
.dr-secs li::before { content: counter(s, decimal-leading-zero); font-family: 'Instrument Serif', serif; font-size: 1.15rem; color: var(--b-rust-text); width: 24px; }
.dr-secs li .thumb { width: 54px; flex: none; border: 1px solid var(--b-line); border-radius: 8px; padding: 4px; background: var(--b-card); }
.dr-secs li .thumb svg { display: block; width: 100%; }
.dr-secs li b { font-size: .88rem; display: block; }
.dr-secs li small { color: var(--b-muted); font-size: .78rem; }
.dr-secs li.off { color: var(--b-muted); } .dr-secs li.off .thumb { opacity: .5; } .dr-secs li.off::before { content: '\2013'; }
.dr-field span { display: block; font-size: .8rem; font-weight: 600; margin-bottom: 6px; }
.dr-field em { color: var(--b-muted); font-style: normal; font-weight: 400; }
.dr-field textarea { width: 100%; border: 1px solid var(--b-line2); border-radius: 12px; padding: 12px; font: inherit; resize: vertical; background: #F4F0E6; color: #17242D; outline: none; }
.dr-field input::placeholder,
.dr-field textarea::placeholder { color: #5C564C; opacity: 1; }
.dr-field textarea:focus { border-color: var(--b-focus); box-shadow: 0 0 0 3px rgba(232,155,108,.28); }
.dr-raw { margin-top: 14px; font-size: .82rem; }
.dr-raw summary { cursor: pointer; color: var(--b-muted); font-weight: 600; padding: 12px 0; }
.dr-raw pre { white-space: pre-wrap; background: var(--b-card); border: 1px solid var(--b-line); border-radius: 12px; padding: 14px; font: .76rem/1.55 'IBM Plex Mono', monospace; color: var(--b-ink); }
.dr-foot { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 14px 24px 16px; border-top: 1px solid var(--b-line); }
.dr-fine { grid-column: 1 / -1; margin: 0; font-size: .74rem; color: var(--b-muted); text-align: center; }

.toast {
  position: fixed;
  left: 16px;
  width: calc(var(--panel-w) - 32px);
  bottom: 88px;
  transform: translateY(10px);
  background: var(--b-toast);
  color: var(--b-toast-ink);
  padding: 12px 16px 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(244, 240, 230, 0.18);
  font-weight: 500;
  font-size: .88rem;
  line-height: 1.3;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .35s var(--b-ease), transform .35s var(--b-ease);
  z-index: 40;
  box-shadow: 0 16px 36px -14px rgba(0,0,0,.55);
  max-width: calc(100vw - 32px);
}
.toast.show { opacity: 1; transform: none; }
.toast .ok { width: 22px; height: 22px; border-radius: 50%; background: #3E8F5A; display: grid; place-items: center; flex: none; margin-top: 1px; }
.toast .ok svg { width: 13px; }
.toast small { display: block; margin-top: 2px; color: var(--b-toast-muted); font-size: .76rem; font-weight: 400; opacity: 1; }

/* ---------------------------------------------------------------- RESPONSIVE BUILDER */
@media (max-width: 1180px) {
  :root { --panel-w: 360px; }
  .device-toggle button span, .ghost span { display: none; }
  .panel-foot { gap: 8px; padding: 14px 16px; }
  .panel-foot .cta-quote { padding: 12px 12px; font-size: .82rem; }
}
/* ---------------------------------------------------------------- v3 ADDITIONS */
:focus-visible { outline: 2.5px solid var(--b-focus); outline-offset: 2px; }
.bizp-search input:focus-visible { outline: none; }
.device:focus-within { box-shadow: 0 0 0 3px var(--b-bg), 0 0 0 5.5px var(--b-focus), 0 30px 70px -30px rgba(23,36,45,.45); }
.btn-primary:disabled { background: #5C6670; color: #F4F0E6; box-shadow: none; cursor: not-allowed; transform: none; }
a.btn-primary { text-decoration: none; }
.bizp-cur { min-height: 74px; }
.bizp-count { display: block; margin: 6px 2px 0; font-size: .72rem; color: var(--b-muted); text-align: right; }
.bizp-count.max { color: var(--b-rust-text); font-weight: 600; }
.bizp-alt { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 8px; font-size: .76rem; color: var(--b-muted); }
.bizp-alt[hidden] { display: none; }
.bizp-alt > span { margin-right: 2px; font-weight: 600; }
.achip { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; border: 1px solid var(--b-line2); background: var(--b-card); border-radius: 999px; padding: 4px 10px; font-size: .74rem; font-weight: 600; color: var(--b-ink); }
.achip svg { width: 13px; height: 13px; color: var(--b-rust-text); }
.achip:hover { border-color: var(--b-ink); }
.linkish { display: block; margin: 8px auto 0; border: 0; background: none; padding: 10px 6px; font-size: .82rem; font-weight: 600; color: var(--b-rust-text); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(232,155,108,.45); }
.linkish:hover { text-decoration-color: currentColor; }
.ft-block { padding: 0 0 6px; }
.ft-h { margin: 0 12px 8px; font-size: .68rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--b-muted); }
.palettes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; padding: 0 10px 10px; }
.pal { border: 1.5px solid var(--b-line); background: var(--b-card); border-radius: 10px; padding: 6px 4px 5px; display: flex; flex-direction: column; align-items: center; gap: 5px; transition: border-color .2s, box-shadow .2s; }
.pal:hover { border-color: var(--b-line2); }
.pal.on { border-color: var(--b-sel); box-shadow: 0 0 0 2px rgba(201,100,58,.22); }
.pal .psw { display: flex; width: 100%; height: 22px; border-radius: 6px; overflow: hidden; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.pal .psw i { flex: 1; }
.pal span { font-size: .62rem; font-weight: 600; color: var(--b-muted); text-align: center; line-height: 1.15; }
.pal.on span { color: var(--b-ink); }
.custom-colors { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 0 10px 12px; }
.cpick { display: flex; flex-direction: column; align-items: center; gap: 5px; font-size: .68rem; font-weight: 600; color: var(--b-muted); }
.cpick input[type="color"] { width: 44px; height: 44px; padding: 0; border: 1.5px solid var(--b-line); border-radius: 10px; background: var(--b-card); cursor: pointer; }
.cpick input[type="color"]::-webkit-color-swatch-wrapper { padding: 3px; }
.cpick input[type="color"]::-webkit-color-swatch { border: 0; border-radius: 6px; }
.color-warn { grid-column: 1 / -1; margin: 0; font-size: .76rem; line-height: 1.35; color: var(--b-rust-text); }
.fine-tune { margin-top: 12px; border: 1px solid var(--b-line); border-radius: 12px; background: var(--b-card); }
.fine-tune summary { cursor: pointer; padding: 12px 14px; font-weight: 600; font-size: .86rem; list-style: none; display: flex; flex-direction: column; gap: 2px; position: relative; padding-right: 40px; }
.fine-tune summary::-webkit-details-marker { display: none; }
.fine-tune summary::after { content: ''; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; border: solid var(--b-muted); border-width: 0 2px 2px 0; transform: translateY(-70%) rotate(45deg); transition: transform .3s var(--b-ease); }
.fine-tune[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.fine-tune summary small { font-weight: 400; color: var(--b-muted); font-size: .76rem; }
.fine-tune .themes { padding: 0 10px 12px; }
.pv { width: 100%; }
.var.na { border-style: dashed; cursor: not-allowed; color: var(--b-muted); } .var.na .vthumb, .var.na svg { opacity: .5; }
.var.na:hover { transform: none; background: var(--b-panel); }
.presets:empty { min-height: 308px; }
.sec-list:empty { min-height: 640px; }
.dr-biz { display: flex; gap: 14px; align-items: center; padding: 14px; margin-bottom: 10px; background: var(--b-card); border: 1px solid var(--b-line); border-radius: 14px; }
.dr-biz .bc-ic { width: 56px; height: 56px; border-radius: 12px; }
.dr-biz .bc-ic svg { width: 26px; height: 26px; }
.dr-biz strong { display: block; font-size: 1rem; }
.dr-biz small { color: var(--b-muted); font-size: .8rem; line-height: 1.4; display: block; margin-top: 2px; }
.dr-contact { border: 0; padding: 0; margin: 4px 0 14px; display: grid; gap: 10px; min-width: 0; }
.dr-contact legend { padding: 0; margin-bottom: 8px; font-family: 'Instrument Serif', serif; font-size: 1.3rem; }
.dr-field input { width: 100%; height: 44px; border: 1px solid var(--b-line2); border-radius: 12px; padding: 0 12px; font: inherit; background: #F4F0E6; color: #17242D; outline: none; }
.dr-field input:focus { border-color: var(--b-focus); box-shadow: 0 0 0 3px rgba(232,155,108,.28); }
.dr-field input[aria-invalid], .dr-field textarea[aria-invalid] { border-color: #B3261E; box-shadow: 0 0 0 3px rgba(179,38,30,.12); }
.sb-brand { display: none; }
.sheet-tools, .sheet-fill, .preview-note { display: none; }
.sheet-chrome { display: contents; }

/* Founding-client offer — builder chrome only; copy comes from content.js via textContent */
.offer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  grid-template-areas:
    "kicker cta x"
    "text text text"
    "spots spots spots";
  align-items: center;
  column-gap: 8px;
  row-gap: 2px;
  flex: none;
  margin: 0;
  padding: 8px 14px 8px 22px;
  background: var(--b-offer);
  border-bottom: 0;
  color: var(--b-offer-ink);
  box-shadow: inset 0 -1px 0 rgba(26,18,12,.12);
}
.offer-kicker {
  grid-area: kicker;
  margin: 0;
  font-size: .66rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--b-offer-ink);
  line-height: 1.2;
  min-width: 0;
}
.offer-text {
  grid-area: text;
  margin: 0;
  font-size: .78rem;
  line-height: 1.35;
  color: var(--b-offer-ink);
}
.offer-spots {
  grid-area: spots;
  margin: 0;
  font-size: .72rem;
  font-weight: 600;
  color: var(--b-offer-ink);
}
.offer-cta {
  grid-area: cta;
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 8px;
  background: #1A120C;
  color: #FFF6EE;
  font: 600 .74rem/1 'Instrument Sans', system-ui, sans-serif;
  white-space: nowrap;
}
.offer-cta:hover { background: #0E0A08; }
.offer-cta:focus-visible { outline: 2.5px solid #1A120C; outline-offset: 2px; }
.offer-x {
  grid-area: x;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #1A120C;
  padding: 0;
}
.offer-x svg { width: 14px; height: 14px; display: block; }
.offer-x:hover { background: rgba(26, 18, 12, .12); color: #1A120C; }
.offer-x:focus-visible { outline: 2.5px solid #1A120C; outline-offset: 2px; }
@media (min-width: 821px) and (max-height: 560px) {
  .offer { padding: 6px 12px 6px 22px; }
  .offer-text, .offer-spots { display: none; }
  :root { --mast: 3.1rem; }
  .mast { padding: 4px 16px; gap: 8px; }
  .mast-word { display: none; }
  .mast-h1 { font-size: 1rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .mast-contact { font-size: .72rem; }
  .site-nav { display: none; }
}
.call-btn.foot-call { display: none; }
.stage.pulse .device { animation: stagePulse .9s var(--b-ease); }
@keyframes stagePulse { 0% { box-shadow: 0 0 0 0 rgba(201,100,58,.55); } 100% { box-shadow: 0 0 0 10px rgba(201,100,58,0); } }

@media (max-width: 820px) {
  /* Phone / small tablet: the sample site is a full-bleed phone-width preview.
     Mixer controls live in a bottom sheet so the hero (and its badge) are never clipped.
     --vvh is the visual viewport (JS); svh/dvh are fallbacks for iOS toolbars. */
  :root {
    --vvh: 100vh;
    --mast: 6.5rem;
    --app-h: calc(var(--vvh) - var(--mast));
    --sheet-h: min(calc(var(--app-h) * 0.58), calc(var(--app-h) - 320px));
    --sheet-peek: calc(104px + env(safe-area-inset-bottom, 0px));
    --sheet-full: calc(var(--app-h) - 8px);
    --sheet-bg: #1D3B4F;
  }
  @supports (height: 1dvh) { :root { --vvh: 100dvh; } }
  @supports (height: 1svh) { :root { --vvh: 100svh; } }
  html, body {
    position: relative;
    width: 100%;
    height: auto;
    overflow-x: hidden;
  }
  .app {
    display: block;
    position: relative;
    height: var(--app-h);
    min-height: 520px;
    overflow: hidden;
  }
  .stage {
    position: absolute;
    inset: 0;
    z-index: 1;
    height: auto;
    min-height: 0;
    border: 0;
    box-shadow: none;
    overflow: hidden;
  }
  .stage-bar { display: none; }
  .url, .device-toggle { display: none; }
  .canvas { padding: 0; height: 100%; overflow: hidden; align-items: stretch; position: relative; background: transparent; }
  .device[data-mode="desktop"] {
    background: var(--site-bg, #fff);
    padding: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .device[data-mode="desktop"] .frame-box { border-radius: 0; }
  .device, .device[data-mode="mobile"] {
    height: 100%;
    flex: 1;
    width: 100%;
    max-width: none;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    margin: 0;
    overflow: hidden;
    position: relative;
  }
  .frame-box { position: absolute; inset: 0; overflow: hidden; }
  .device iframe, .device[data-mode="mobile"] iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    max-height: 100%;
    border: 0;
    border-radius: 0;
    background: #fff;
  }
  .notch, .device[data-mode="mobile"] .statusbar { display: none; }

  .preview-note {
    display: inline-flex;
    align-items: center;
    position: absolute;
    left: 10px;
    top: calc(72px + env(safe-area-inset-top, 0px));
    bottom: auto;
    z-index: 3;
    margin: 0;
    pointer-events: none;
    font: 600 .62rem/1 'Instrument Sans', system-ui, sans-serif;
    letter-spacing: .08em;
    text-transform: uppercase;
    white-space: nowrap;
    background: #1A2730;
    color: #fff;
    padding: 7px 11px;
    border-radius: 99px;
    box-shadow: 0 4px 14px rgba(0,0,0,.18);
  }
  body.sheet-peek .preview-note,
  body.sheet-full .preview-note { display: none; }

  .panel {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 5;
    height: var(--sheet-h);
    max-height: var(--sheet-full);
    border-right: 0;
    border-top: 3px solid var(--b-rust);
    border-radius: 20px 20px 0 0;
    box-shadow: 0 -22px 56px -12px rgba(0,0,0,.62), 0 -1px 0 #E89B6C;
    padding-top: 0;
    display: flex;
    flex-direction: column;
    min-height: 0;
    overflow: hidden;
    background: var(--sheet-bg);
    isolation: isolate;
    -webkit-transform: translateZ(0);
    transform: translateZ(0);
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: height .4s var(--b-ease);
  }
  body.sheet-peek .panel { height: var(--sheet-peek); }
  body.sheet-full .panel { height: var(--sheet-full); }
  .sheet-fill {
    display: block;
    position: absolute;
    inset: 0;
    background: var(--sheet-bg);
    border-radius: inherit;
    z-index: 0;
    pointer-events: none;
  }
  .sheet-chrome {
    display: flex;
    flex-direction: column;
    flex: none;
    position: relative;
    z-index: 2;
    background: var(--sheet-bg);
  }

  .sheet-tools {
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    flex: none;
    min-height: 28px;
    padding: 4px 12px 0;
    background: var(--sheet-bg);
  }
  .sheet-handle {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 88px;
    min-height: 28px;
    border: 0;
    background: transparent;
    padding: 10px;
    touch-action: none;
  }
  .sheet-pip {
    display: block;
    width: 42px;
    height: 4px;
    border-radius: 99px;
    background: #E8C4B0;
  }
  .sheet-see {
    position: absolute;
    right: 4px;
    top: 0;
    min-height: 44px;
    padding: 0 12px;
    border: 0;
    background: transparent;
    font: 600 .8rem/1 'Instrument Sans', system-ui, sans-serif;
    color: var(--b-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: rgba(244,240,230,.4);
  }
  .sheet-see:hover { text-decoration-color: currentColor; }
  body.sheet-peek .sheet-see { right: auto; left: 4px; }

  .offer {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 12px 8px;
    padding: 4px 6px 4px 12px;
    border: 0;
    border-radius: 999px;
    background: var(--b-offer);
    color: var(--b-offer-ink);
    min-height: 44px;
    box-shadow: 0 8px 20px -12px rgba(26,18,12,.55);
  }
  .offer-kicker {
    flex: 1;
    min-width: 0;
    font-size: .62rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .offer-text, .offer-spots { display: none; }
  .offer-cta {
    min-height: 36px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: .72rem;
    background: #1A120C;
    color: #FFF6EE;
  }
  .offer-x {
    width: 44px;
    height: 44px;
    flex: none;
    border-radius: 999px;
  }
  .offer-x svg { width: 16px; height: 16px; }
  body.sheet-peek .offer { display: none !important; }

  .brand {
    display: flex;
    padding: 2px 16px 10px;
    border-bottom: 1px solid var(--b-line);
    flex: none;
    background: var(--sheet-bg);
  }
  .brand-sub { display: none; }
  .brand-name { font-size: 1.18rem; }
  .brand-by { display: inline; margin-left: 6px; }
  .brand-mark svg { width: 30px; height: 30px; }
  body.sheet-peek .brand { display: none; }

  .panel-scroll {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 4px 16px 0;
    min-width: 0;
    position: relative;
    z-index: 1;
    background: var(--sheet-bg);
  }
  body.sheet-peek .panel-scroll { display: none; }

  .intro { font-size: 1.32rem; margin: 14px 0 4px; background: var(--sheet-bg); }
  .step { padding: 16px 0 18px; background: var(--sheet-bg); }
  .panel-foot {
    position: relative;
    flex: none;
    z-index: 4;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--sheet-bg);
    border-top: 1px solid var(--b-line);
  }
  .cta-quote .cta-full { display: none; }
  .cta-quote .cta-short { display: inline; }
  .panel-foot .cta-quote { white-space: nowrap; }
  .call-btn.foot-call {
    display: inline-flex;
    padding: 0 10px;
    font-size: .74rem;
    min-width: 44px;
  }
  .foot-call .cb-pre { display: none; }
  .pf-val { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
  .btn-primary, .btn-secondary { min-height: 44px; }
  .pal { min-height: 44px; }
  .cpick input[type="color"] { width: 44px; height: 44px; }
  .ghost { min-height: 44px; min-width: 44px; justify-content: center; }
  .bizp-grid { max-height: min(38vh, 280px); max-height: min(38dvh, 280px); }
  .bchip, .achip { min-height: 44px; }
  .mv button { width: 44px; height: 44px; }
  .bizp-other button { min-height: 44px; }
  .toast {
    left: 12px;
    right: 12px;
    width: auto;
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    transform: translateY(8px);
  }
  .toast.show { transform: none; }

  .drawer {
    top: auto;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: min(92dvh, calc(100dvh - env(safe-area-inset-top, 0px)));
    max-height: 100%;
    border-radius: 20px 20px 0 0;
    transform: translateY(calc(100% + 24px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }
  body.picks-open .drawer { transform: none; }
  .dr-head { padding: 18px 18px 12px; }
  .dr-head h2 { font-size: 1.7rem; }
  .dr-body { padding: 4px 18px 16px; }
  .dr-foot {
    grid-template-columns: 1fr;
    padding: 12px 18px calc(14px + env(safe-area-inset-bottom, 0px));
  }
  .dr-foot .btn-primary,
  .dr-foot .btn-secondary { width: 100%; min-height: 44px; white-space: normal; text-align: center; }
}

@media (max-width: 360px) {
  .panel-foot { grid-template-columns: auto minmax(0, 1fr); }
  .panel-foot .btn-primary { grid-column: 1 / -1; }
  .pf-sum { min-width: 0; }
  .palettes { grid-template-columns: repeat(4, 1fr); }
}
body.picks-open .toast {
  left: 50%;
  right: auto;
  width: min(420px, calc(100vw - 32px));
  bottom: 28px;
  transform: translate(-50%, 10px);
}
body.picks-open .toast.show { transform: translate(-50%, 0); }
@media (max-width: 820px) {
  body.picks-open .toast {
    left: 12px;
    right: 12px;
    width: auto;
    top: calc(16px + env(safe-area-inset-top, 0px));
    bottom: auto;
    transform: translateY(-8px);
  }
  body.picks-open .toast.show { transform: none; }
}
@media (pointer: coarse) { .mv button { width: 44px; height: 44px; } .bchip, .achip { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .preset:hover, .theme:hover, .var:hover, .btn-primary:hover { transform: none; }
}
#frame:focus, .device.frame-focus #frame { outline: 3px solid var(--b-focus); outline-offset: -3px; }
.device.frame-focus { box-shadow: 0 0 0 3px var(--b-bg), 0 0 0 5.5px var(--b-focus), 0 30px 70px -30px rgba(23,36,45,.45); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---- v4 ---- */
.fine-tune summary .ft-cur { color: var(--b-ink); font-weight: 600; }
.drawer.no-send .dr-foot { grid-template-columns: 1fr 1fr; }
[hidden] { display: none !important; }
/* v5: compact look cards so Fine-tune sits above the fold at 1280x800 */
.pv { height: 52px; padding: 9px 11px 0; }
.pv .aa { font-size: 1.45rem; }
.preset .pmeta { padding: 7px 11px 8px; }
.fine-tune:not([open]) summary .ft-hint { display: none; }
.fine-tune summary { padding-top: 10px; padding-bottom: 10px; }
/* v5 N10: keep the closed Fine-tune card one line tall for every look (Warm's font list wrapped to 2 lines and pushed the card 10px under the panel footer at 1280x800) */
.fine-tune summary .ft-cur { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
/* v6 B1: form-send states (only when FORM_ENDPOINT is set) */
.dr-status { grid-column: 1 / -1; margin: 0; padding: 10px 12px; border-radius: 10px; font-size: .82rem; line-height: 1.4; }
.dr-status.is-busy { background: #2A4A5E; color: #E8EEF2; }
.dr-status.is-ok { background: #214B34; color: #D7F0DF; border: 1px solid #3E7A55; }
.dr-status.is-error { background: #5A221C; color: #F7D4CF; border: 1px solid #B85A50; }
#sendBrief.is-busy { opacity: 1; cursor: progress; background: #7A3318; color: #FFF8F0; }
/* v6: studio phone in the builder chrome (the sample previews keep their fictional 555-01xx numbers) */
.bar-actions { display: flex; align-items: center; gap: 8px; }
.call-btn { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 14px; border-radius: 10px; background: transparent; border: 1.5px solid var(--b-line2); color: var(--b-ink); font-size: .8rem; font-weight: 600; text-decoration: none; white-space: nowrap; transition: background .2s, border-color .2s; }
.call-btn:hover { background: rgba(244,240,230,.08); border-color: var(--b-ink); }
.call-btn:focus-visible { outline: 3px solid var(--b-focus); outline-offset: 2px; }
.call-btn svg { width: 16px; height: 16px; flex: none; }
.dr-call { grid-column: 1 / -1; margin: 0; font-size: .82rem; color: var(--b-ink); text-align: center; }
.dr-call a { display: inline-flex; align-items: center; min-height: 44px; color: var(--b-rust-text); font-weight: 600; text-underline-offset: 3px; }
@media (max-width: 1180px) { .call-btn .cb-pre { display: none; } }
@media (max-width: 820px) { .call-btn { padding: 0 12px; } .stage-bar .call-btn .cb-pre { display: none; } }
@media (max-width: 400px) { .call-btn .cb-pre { display: none; } .call-btn { padding: 0 10px; font-size: .78rem; } }
@media (max-width: 820px) {
  .drawer.no-send .dr-foot { grid-template-columns: 1fr; }
}

/* Studio chrome: keep the mixer a navy surface even when the sample is dark. */
.brand { background: var(--b-panel); }
.panel-foot { background: #183246; border-top: 1px solid var(--b-line); }
.drawer { color: var(--b-ink); color-scheme: dark; }
.sb-brand { color: var(--b-ink); }
.url .dots i { background: #6A7A84; }
.url .dots i:first-child { background: #E8A598; }
.url .dots i:nth-child(2) { background: #EBCF8E; }
.url .dots i:nth-child(3) { background: #A9CFA0; }

/* ---------------------------------------------------------------- studio mast + pricing + FAQ */
.mast {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas:
    "mark h1 contact"
    "nav nav nav";
  align-items: center;
  gap: 10px 18px;
  padding: 10px 22px 8px;
  background: var(--b-panel);
  border-bottom: 3px solid var(--b-rust);
  color: var(--b-ink);
}
.mast-mark {
  grid-area: mark;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--b-ink);
  min-height: 44px;
}
.mast-mark svg { width: 36px; height: 36px; display: block; flex: none; }
.mast-word { font-weight: 600; font-size: .82rem; letter-spacing: .02em; }
.mast-h1 {
  grid-area: h1;
  margin: 0;
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.15rem, 1.6vw, 1.7rem);
  line-height: 1.2;
  letter-spacing: -0.015em;
}
.mast-contact {
  grid-area: contact;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
}
.mast-contact a {
  color: var(--b-ink);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-underline-offset: 3px;
}
.mast-contact a:hover { color: var(--b-rust-text); }

.studio {
  background: var(--b-bg);
  color: var(--b-ink);
  padding: 48px 22px 28px;
}
.studio-alt { background: var(--b-panel); }
.studio-inner { max-width: 1080px; margin: 0 auto; }
.studio h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.7rem, 3vw, 2.3rem);
  margin: 0 0 12px;
  letter-spacing: -0.02em;
}
.studio-lead, .studio p { font-size: 1rem; line-height: 1.5; color: var(--b-muted); max-width: 62ch; }
.studio-lead { margin: 0 0 28px; }
.pkgs {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.pkg {
  display: flex;
  flex-direction: column;
  background: var(--b-card);
  border: 1.5px solid var(--b-line);
  border-radius: 16px;
  padding: 18px 16px 16px;
  color: var(--b-ink);
}
.pkg-featured { box-shadow: 0 0 0 2px var(--b-rust); }
.pkg-kind {
  margin: 0 0 8px;
  font-size: .68rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--b-rust-text);
}
.pkg h2, .pkg h3 { margin: 0; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; line-height: 1.25; font-family: inherit; font-weight: 600; }
.pkg-price {
  margin: 8px 0 12px;
  font-family: 'Instrument Serif', Georgia, serif;
  font-size: 2rem;
  line-height: 1;
  color: var(--b-ink);
}
.pkg-price span { font-family: 'Instrument Sans', system-ui, sans-serif; font-size: .9rem; color: var(--b-muted); }
.pkg ul { list-style: none; margin: 0 0 16px; padding: 0; flex: 1; }
.pkg li { padding: 6px 0; border-top: 1px solid var(--b-line); font-size: .88rem; color: var(--b-ink); }
.pkg .pkg-cta { width: 100%; min-height: 44px; margin-top: auto; white-space: normal; text-align: center; }

.terms {
  margin: 28px 0 0;
  padding: 18px 20px;
  background: var(--b-card);
  border-radius: 14px;
  border: 1px solid var(--b-line);
}
.terms h3 { margin: 0 0 8px; font-size: .9rem; letter-spacing: .08em; text-transform: uppercase; color: var(--b-ink); }
.terms ul { margin: 0; padding: 0 0 0 1.15em; color: var(--b-ink); }
.terms li { margin: 8px 0; line-height: 1.45; }

.faq-list { display: grid; gap: 8px; margin-top: 18px; }
.faq {
  background: var(--b-card);
  border-radius: 12px;
  border: 1px solid var(--b-line);
  padding: 4px 16px;
}
.faq summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 1rem;
  color: var(--b-ink);
  min-height: 44px;
  display: flex;
  align-items: center;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq p { margin: 0 0 14px; color: var(--b-muted); }

.studio-foot {
  background: #142833;
  color: var(--b-ink);
  padding: 28px 22px 36px;
  border-top: 3px solid var(--b-rust);
  font-size: .88rem;
}
.studio-foot p { margin: 0 0 8px; color: var(--b-ink); max-width: none; }
.studio-foot a { color: var(--b-rust-text); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; text-underline-offset: 3px; }

.site-nav {
  grid-area: nav;
  display: flex;
  flex-wrap: wrap;
  gap: 2px 16px;
  padding: 6px 0 4px;
  border-top: 1px solid var(--b-line);
}
.site-nav a {
  color: var(--b-ink);
  font-size: .8rem;
  font-weight: 600;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  text-underline-offset: 3px;
}
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--b-rust-text); }
.foot-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  margin: 10px 0 12px;
}
.foot-nav a { margin: 0; }

.page {
  max-width: 1080px;
  margin: 0 auto;
  padding: 36px 22px 72px;
  color: var(--b-ink);
}
.page h1 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 2.8rem);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}
.page .lead { font-size: 1.08rem; line-height: 1.5; color: var(--b-muted); max-width: 62ch; margin: 0 0 28px; }
.page h2 {
  font-family: 'Instrument Serif', Georgia, serif;
  font-weight: 400;
  font-size: clamp(1.4rem, 2.4vw, 1.9rem);
  margin: 40px 0 12px;
}
.page h3 { margin: 22px 0 8px; font-size: 1.02rem; }
.page p, .page li { line-height: 1.55; color: var(--b-muted); }
.page ul { padding-left: 1.15em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0 8px; }
.cta-row .btn-primary, .cta-row .btn-secondary { text-decoration: none; min-height: 44px; }
.page .pkgs { margin: 8px 0 0; }
.page .pkg a.pkg-cta { display: inline-flex; align-items: center; justify-content: center; text-decoration: none; }

.concept-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 18px 0 8px; list-style: none; padding: 0; }
.concept {
  margin: 0;
  background: var(--b-card);
  border: 1px solid var(--b-line);
  border-radius: 14px;
  overflow: hidden;
}
.concept img { display: block; width: 100%; height: 180px; object-fit: cover; }
.concept figcaption { padding: 12px 14px 14px; }
.concept-badge,
.page .concept-badge {
  display: inline-block;
  margin: 0 0 6px;
  font-size: .62rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  font-weight: 700;
  color: #1A120C;
  background: #F4F0E6;
  padding: 4px 8px;
  border-radius: 4px;
}
.concept h3 { margin: 0 0 6px; color: var(--b-ink); }
.concept p { margin: 0; font-size: .9rem; }

.portrait-ph {
  width: min(280px, 100%);
  aspect-ratio: 4 / 5;
  margin: 8px 0 20px;
  border-radius: 16px;
  background: #27465A;
  border: 1px solid var(--b-line);
  display: grid;
  place-items: end stretch;
  overflow: hidden;
  position: relative;
}
.portrait-ph svg { width: 100%; height: 100%; display: block; }
.portrait-ph span {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  font-size: .78rem;
  font-weight: 600;
  color: var(--b-ink);
}

.town-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; padding: 0; margin: 16px 0 8px; }
.town-list li {
  background: var(--b-card);
  border: 1px solid var(--b-line);
  border-radius: 12px;
  padding: 14px 16px;
  color: var(--b-ink);
  font-weight: 600;
}

.dr-privacy { grid-column: 1 / -1; margin: 4px 0 0; text-align: center; font-size: .78rem; color: var(--b-muted); }
.dr-privacy a { color: var(--b-rust-text); font-weight: 600; min-height: 44px; display: inline-flex; align-items: center; }

.legal {
  max-width: 42rem;
  margin: 0 auto;
  padding: 32px 22px 64px;
  color: var(--b-ink);
}
.legal h1 { font-family: 'Instrument Serif', Georgia, serif; font-weight: 400; font-size: 2.1rem; margin: 12px 0 16px; }
.legal h2 { font-size: 1.05rem; margin: 28px 0 8px; }
.legal p, .legal li { line-height: 1.55; color: var(--b-muted); }
.legal a { color: var(--b-rust-text); font-weight: 600; }

@media (max-width: 1100px) {
  .pkgs { grid-template-columns: 1fr 1fr; }
  .concept-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .mast {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "mark contact"
      "h1 h1"
      "nav nav";
    padding: 6px 12px 8px;
    gap: 2px 8px;
  }
  .mast-mark { grid-area: mark; }
  .mast-word { display: none; }
  .mast-h1 { grid-area: h1; font-size: 1.02rem; line-height: 1.18; }
  .mast-contact { grid-area: contact; font-size: .72rem; gap: 6px; }
  .mast-contact > span, .mast-call-pre { display: none; }
  .pkgs { grid-template-columns: 1fr; }
  .studio { padding: 36px 16px 24px; }
  .concept-grid, .town-list { grid-template-columns: 1fr; }
  .page { padding: 28px 16px 56px; }
}

/* v2 sweep fixes: quote dialog sits above the sticky site header (z 50) and never scrolls sideways */
.scrim { z-index: 60; }
.drawer { z-index: 61; }
.drawer, .drawer * { min-width: 0; }
.dr-body { overflow-x: hidden; }
.dr-body, .dr-foot, .dr-head { overflow-wrap: anywhere; }
.dr-raw pre { overflow-wrap: anywhere; word-break: break-word; }
.dr-foot > * { min-width: 0; max-width: 100%; }
.dr-foot .btn-primary, .dr-foot .btn-secondary { white-space: normal; text-align: center; justify-content: center; }
.drawer input, .drawer textarea { max-width: 100%; box-sizing: border-box; }
.hp-trap { display: none; }
.ts-box { margin: 12px 0; }
.dr-foot { grid-template-columns: 1fr 1fr; }
.dr-foot #sendBrief { grid-column: 1 / -1; order: -1; }
.dr-foot > p { grid-column: 1 / -1; }
