/* Commonhall by Village: the landing page. Paper and ink, in a light and a dark theme. Every style is in this file
   (the page's Content Security Policy allows no inline styles). Fonts are the files beside it. */

@font-face { font-family: "Newsreader"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/newsreader-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "Newsreader"; font-style: italic; font-weight: 500; font-display: swap; src: url("fonts/newsreader-latin-500-italic.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 100 800; font-display: swap; src: url("fonts/jetbrains-mono-latin.woff2") format("woff2"); }

:root {
  --serif: "Newsreader", "Iowan Old Style", Georgia, serif;
  --sans: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", Helvetica, Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  /* light: paper white ground, black ink */
  --bg: #FAFAF7;
  --bg-alt: #F2F1EC;
  --ink: #111110;
  --ink-rgb: 17, 17, 16;
  --muted: #4A4A46;
  --faint: #6B6B66;
  --line: rgba(17, 17, 16, .16);
  --wall: rgba(17, 17, 16, .5);
  --btn-bg: #111110;
  --btn-fg: #FAFAF7;
  /* cards and tooltips are ink on paper in both themes */
  --card-bg: #FAFAF7;
  --card-ink: #111110;
  --card-sub: #55554F;
  --card-line: rgba(17, 17, 16, .22);
  --shadow: 0 10px 26px rgba(17, 17, 16, .16);
  --ring: #FAFAF7;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0E0E0D;
  --bg-alt: #161615;
  --ink: #F4F2EC;
  --ink-rgb: 244, 242, 236;
  --muted: #B8B6AE;
  --faint: #8F8D85;
  --line: rgba(244, 242, 236, .18);
  --wall: rgba(244, 242, 236, .5);
  --btn-bg: #F4F2EC;
  --btn-fg: #0E0E0D;
  --shadow: 0 10px 30px rgba(0, 0, 0, .6);
  --ring: #0E0E0D;
  color-scheme: dark;
}
/* no JavaScript: follow the system setting */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #0E0E0D; --bg-alt: #161615; --ink: #F4F2EC; --ink-rgb: 244, 242, 236; --muted: #B8B6AE; --faint: #8F8D85;
    --line: rgba(244, 242, 236, .18); --wall: rgba(244, 242, 236, .5); --btn-bg: #F4F2EC; --btn-fg: #0E0E0D;
    --shadow: 0 10px 30px rgba(0, 0, 0, .6); --ring: #0E0E0D; color-scheme: dark;
  }
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--bg); scroll-behavior: smooth; scroll-padding-top: 16px; }
body { background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; }
img { max-width: 100%; }
button { font: inherit; color: inherit; cursor: pointer; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 3px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 50; background: var(--btn-bg); color: var(--btn-fg); padding: 10px 14px; border-radius: 6px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }

/* ---------- header ---------- */
.top { max-width: 1180px; margin: 0 auto; padding: 22px 24px 0; display: flex; align-items: center; gap: 28px; position: relative; z-index: 3; }
.lockup { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.lockup svg { width: 26px; height: 26px; fill: currentColor; flex: none; }
.lockup .w { font: 500 22px/1 var(--serif); letter-spacing: -.2px; }
.lockup .b { font: 500 10px/1 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); align-self: flex-end; padding-bottom: 3px; }
.nav { margin-left: auto; display: flex; gap: 26px; }
.nav a { font: 500 14px/1 var(--sans); text-decoration: none; padding: 10px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: currentColor; }
.theme-toggle { width: 40px; height: 40px; border-radius: 6px; border: 1.5px solid var(--line); background: transparent; display: inline-grid; place-items: center; flex: none; }
.theme-toggle:hover { border-color: var(--ink); }
.theme-toggle[hidden] { display: none; }
.theme-toggle svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }

/* ---------- first screen ---------- */
.hero { position: relative; isolation: isolate; }
.hero-field { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; display: none; }
.js .hero-field { display: block; }
.hero-in { position: relative; max-width: 1180px; margin: 0 auto; padding: 56px 24px 84px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 520px); gap: 56px; align-items: center; }
.eyebrow { font: 600 12px/1 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
h1 { font: 500 56px/1.05 var(--serif); letter-spacing: -.6px; max-width: 15em; text-wrap: balance; }
.rule { width: 56px; height: 2px; background: var(--ink); margin: 26px 0 22px; }
.sub { font: 400 18px/1.55 var(--sans); color: var(--muted); max-width: 30em; }
.acts { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; position: relative; }
.btn { height: 48px; border-radius: 6px; font: 600 15px/1 var(--sans); display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 0 22px; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); text-decoration: none; white-space: nowrap; transition: background-color .15s, color .15s, border-color .15s; }
.btn.out:hover { background: var(--ink); color: var(--bg); }
.btn.solid, .split .main, .split .caret { background: var(--btn-bg); color: var(--btn-fg); border-color: var(--btn-bg); }
.btn.solid:hover, .split .main:hover, .split .caret:hover { opacity: .86; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.split { display: inline-flex; position: relative; }
/* No script: the split button and its caret would be dead, so a plain link to the self-host guide takes their place. */
.nojs-only { display: none; }
html:not(.js) .nojs-only { display: inline-flex; }
html:not(.js) .js-only { display: none; }
html:not(.js) .split { display: none; }
.split .main { border-radius: 6px 0 0 6px; padding: 0 20px 0 16px; }
.split .caret { border-radius: 0 6px 6px 0; border-left: 1px solid color-mix(in srgb, var(--btn-fg) 30%, transparent); padding: 0; width: 46px; }
.split .caret svg { width: 12px; height: 12px; }
.ai { display: inline-grid; place-items: center; width: 20px; height: 20px; border: 1.4px solid currentColor; border-radius: 50%; flex: none; }
.ai svg { width: 12px; height: 12px; }
.menu { position: absolute; top: 56px; left: 0; min-width: 220px; background: var(--card-bg); color: var(--card-ink); border: 1px solid var(--card-line); border-radius: 8px; padding: 6px; box-shadow: var(--shadow); z-index: 6; }
.menu[hidden] { display: none; }
.menu-h { font: 600 10.5px/1 var(--sans); letter-spacing: 1.3px; text-transform: uppercase; color: var(--card-sub); padding: 10px 10px 8px; }
.mi { display: flex; align-items: center; gap: 10px; width: 100%; height: 42px; padding: 0 10px; border-radius: 5px; border: 0; background: transparent; font: 500 14.5px/1 var(--sans); text-align: left; }
.mi:hover, .mi:focus-visible { background: rgba(17, 17, 16, .09); outline: none; }
.mi:focus-visible { box-shadow: inset 0 0 0 2px var(--card-ink); }
.gh { display: flex; align-items: center; gap: 14px; margin-top: 30px; max-width: 380px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; text-decoration: none; transition: border-color .15s; }
.gh:hover { border-color: var(--ink); }
.gh .mark { width: 30px; height: 30px; flex: none; }
.gh .t { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.gh .n { font: 600 15px/1.2 var(--sans); }
.gh .m { font: 400 13px/1.2 var(--sans); color: var(--muted); }
.gh .arr { margin-left: auto; width: 18px; height: 18px; flex: none; }

/* the blueprint house */
.plan-fig { width: 100%; max-width: 520px; justify-self: end; }
.plan-fig figcaption { font: 400 13px/1.4 var(--sans); color: var(--faint); margin-top: 14px; }
.plan { position: relative; width: 100%; aspect-ratio: 360 / 300; --f: max(26px, 6.9%); }
.plan-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.walls path { fill: none; stroke: var(--wall); stroke-width: 2.2; stroke-linecap: square; }
.table { fill: none; stroke: var(--line); stroke-width: 1.2; }
.door .arc { fill: none; stroke: var(--line); stroke-width: 1; stroke-dasharray: 2.5 2.5; }
.door .leaf { stroke: var(--wall); stroke-width: 1.8; stroke-linecap: round; }
.rl { font: 600 8.6px/1 var(--sans); letter-spacing: .9px; fill: var(--faint); }
.ric * { fill: none; stroke: var(--faint); stroke-width: 1.1; stroke-linecap: round; stroke-linejoin: round; }
.ric .knob { fill: var(--bg); }

.p { position: absolute; width: var(--f); aspect-ratio: 1; padding: 0; border: 0; background: none; border-radius: 50%; transform: translate(-50%, -50%); z-index: 2; touch-action: manipulation; }
.p img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; border: 2px solid var(--ring); background: var(--ring); box-shadow: 0 0 0 1px var(--line); }
.p:hover, .p:focus-visible, .p.on { z-index: 5; }
.p:hover::after, .p:focus-visible::after, .p.on::after { content: ""; position: absolute; inset: -5px; border-radius: 50%; border: 1.5px solid var(--ink); }
.p:focus-visible { outline: none; }
.tip { position: absolute; left: 50%; bottom: calc(100% + 11px); transform: translateX(var(--tx, -50%)); background: var(--card-bg); color: var(--card-ink); border: 1px solid var(--card-line); border-radius: 6px; padding: 8px 11px; white-space: nowrap; text-align: left; box-shadow: var(--shadow); display: none; pointer-events: none; }
.tip b { display: block; font: 600 12.5px/1.2 var(--sans); }
.tip i { display: block; font: 400 11.5px/1.3 var(--sans); font-style: normal; color: var(--card-sub); margin-top: 2px; }
.tip::after { content: ""; position: absolute; left: var(--ax, 50%); bottom: -5px; width: 8px; height: 8px; background: var(--card-bg); border: solid var(--card-line); border-width: 0 1px 1px 0; transform: translateX(-50%) rotate(45deg); }
.tip.down { bottom: auto; top: calc(100% + 11px); }
.tip.down::after { bottom: auto; top: -5px; border-width: 1px 0 0 1px; }
.p:hover .tip, .p:focus-visible .tip, .p.on .tip { display: block; }

.deal { position: absolute; width: 190px; background: var(--card-bg); color: var(--card-ink); border: 1px solid var(--card-line); border-radius: 8px; padding: 11px 13px 12px; box-shadow: var(--shadow); z-index: 4; transform: translateX(-50%); pointer-events: none; }
.deal .k { display: flex; align-items: center; gap: 7px; font: 600 9.5px/1 var(--sans); letter-spacing: 1.2px; text-transform: uppercase; color: var(--card-sub); }
.deal h3 { font: 500 16px/1.2 var(--serif); margin-top: 7px; letter-spacing: -.1px; }
.deal::after { content: ""; position: absolute; left: var(--ax, 50%); width: 10px; height: 10px; background: var(--card-bg); border: solid var(--card-line); transform: translateX(-50%) rotate(45deg); }
.deal.above::after { bottom: -6px; border-width: 0 1px 1px 0; }
.deal.below::after { top: -6px; border-width: 1px 0 0 1px; }
.chk { width: 14px; height: 14px; border-radius: 50%; background: var(--card-ink); color: var(--card-bg); display: inline-grid; place-items: center; }
.chk svg { width: 8px; height: 8px; }
.deal.live { opacity: 0; transition: opacity .35s; }
.deal.live.show { opacity: 1; }
.deal[hidden] { display: none; }

/* resting places: where each person sits with no script, or with reduced motion (percent of the plan: x/360, y/300) */
.pos-ada { left: 12.5%; top: 23.3%; }
.pos-priya { left: 81.1%; top: 23.3%; }
.pos-marcus { left: 40.3%; top: 23.3%; }
.pos-maya { left: 86.7%; top: 42.7%; }
.pos-lena { left: 29.2%; top: 85.3%; }
.pos-oliver { left: 37.5%; top: 85.3%; }
.pos-elena { left: 8.3%; top: 85.3%; }
.pos-sam { left: 74.2%; top: 85.3%; }
.deal.static { left: 33.4%; bottom: calc(14.7% + var(--f) * .5 + 12px); }
.deal.static { --ax: 50%; }
.deal.static::after { bottom: -6px; border-width: 0 1px 1px 0; }

/* ---------- sections ---------- */
.sec { padding: 88px 0; }
.sec.alt { background: var(--bg-alt); }
h2 { font: 500 40px/1.12 var(--serif); letter-spacing: -.4px; max-width: 20em; text-wrap: balance; }
.sec .eyebrow { margin-bottom: 16px; }
.lead { color: var(--muted); font-size: 17px; margin-top: 14px; max-width: 40em; }
.fine { font-size: 14px; color: var(--muted); margin-top: 10px; }
.strong-link { font-weight: 600; text-underline-offset: 3px; }

/* The ten rooms: a key plan (the room lit on the house's floor plan), the name, its status and one line. Two columns from 760 px. */
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.rooms { list-style: none; margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr); max-width: 980px; }
.room { display: grid; grid-template-columns: 58px minmax(0, 1fr); column-gap: 16px; align-items: center; padding: 13px 0; border-top: 1px solid var(--line); }
.room:last-child { border-bottom: 1px solid var(--line); }
.kp { width: 58px; height: 48px; display: block; overflow: visible; }
.kp use { fill: none; stroke: var(--ink); stroke-width: 9; stroke-linecap: square; }
.kp .lit { fill: rgba(var(--ink-rgb), .22); }
.rm-top { display: flex; align-items: center; gap: 9px; }
.rm-top b { font: 600 17px/22px var(--sans); letter-spacing: -.1px; }
.rm p + p { font-size: 14.5px; line-height: 20px; color: var(--muted); margin-top: 2px; }
.rm .soon { display: flex; align-items: center; gap: 6px; margin-top: 5px; font-size: 12.5px; }
.stp { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font: 600 11.5px/1 var(--sans); letter-spacing: .3px; text-transform: uppercase; border: 1.2px solid var(--ink); color: var(--ink); white-space: nowrap; }
.stp.built { background: var(--btn-bg); color: var(--btn-fg); }
.stp.partly { background: transparent; }
.stp.coming { border-style: dashed; color: var(--muted); border-color: var(--muted); height: 18px; padding: 0 5px; font-size: 10.5px; }

/* The demo: five screens on tabs. With JavaScript and motion allowed, the stage pins near the top of the window and the
   tabs advance as the page scrolls through a tall track; a tap on a tab scrolls there. Without motion the tabs only
   switch on a tap; without JavaScript every screen shows, one under the other. */
.demo { margin-top: 40px; max-width: 980px; }
.demo-stage { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 28px; align-items: start; }
.demo-stage > * { min-width: 0; }
.demo-tabs { display: grid; gap: 4px; }
.demo-tab { display: flex; align-items: center; gap: 12px; height: 46px; padding: 0 14px; border: 1px solid transparent; border-radius: 8px; background: transparent; color: var(--muted); font: 500 15.5px/1 var(--sans); text-align: left; cursor: pointer; transition: color .15s, background-color .15s, border-color .15s; }
.demo-tab .n { width: 22px; height: 22px; border-radius: 50%; border: 1.2px solid currentColor; display: inline-flex; align-items: center; justify-content: center; font: 600 11.5px/1 var(--mono); flex: none; }
.demo-tab:hover { color: var(--ink); }
.demo-tab.is-on { color: var(--btn-fg); background: var(--btn-bg); border-color: var(--btn-bg); }
.demo-tab:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.demo-panels { display: grid; }
.demo-panel { grid-area: 1 / 1; display: flex; flex-direction: column; gap: 12px; opacity: 0; visibility: hidden; transition: opacity .35s, visibility 0s .35s; }
.demo-panel.is-on { opacity: 1; visibility: visible; transition: opacity .35s, visibility 0s; }
.demo-panel[hidden] { display: flex; }
.frame { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--bg); box-shadow: 0 1px 0 var(--line); }
.frame img { display: block; width: 100%; height: auto; }
.demo-panel figcaption { font-size: 15px; color: var(--muted); line-height: 1.45; }
.demo-note { margin-top: 16px; }
html.js .demo.is-scroll { height: calc(100vh * 3.2); }
html.js .demo.is-scroll .demo-stage { position: sticky; top: 24px; }
html:not(.js) .demo-tabs { display: none; }
html:not(.js) .demo-stage { grid-template-columns: minmax(0, 1fr); }
html:not(.js) .demo-panels { gap: 36px; }
html:not(.js) .demo-panel { grid-area: auto; opacity: 1; visibility: visible; }

/* What you get: eight pieces as title cards, then a tick table; the long comparison folds under "Read the details". */
.pieces { list-style: none; margin-top: 40px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pieces li { border: 1px solid var(--line); border-radius: 10px; padding: 20px 18px 18px; background: var(--bg); display: grid; gap: 5px; }
.pieces b { font: 600 17px/1.25 var(--sans); letter-spacing: -.1px; }
.pieces span { font-size: 14px; color: var(--muted); line-height: 1.4; }
.ticks-wrap { margin-top: 28px; overflow-x: auto; max-width: 100%; position: relative; }
.ticks { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 14.5px; }
.ticks th, .ticks td { text-align: center; padding: 10px 10px; border-bottom: 1px solid var(--line); line-height: 1.3; }
.ticks thead th { font: 600 13px/1.2 var(--sans); letter-spacing: .3px; white-space: nowrap; }
.ticks thead a { text-underline-offset: 3px; }
.ticks tbody th { text-align: left; font-weight: 500; white-space: nowrap; }
.ticks tr:last-child th, .ticks tr:last-child td { border-bottom: 0; }
.ticks .us { background: color-mix(in srgb, var(--ink) 6%, transparent); font-weight: 600; }
.ticks .y { font-weight: 600; font-size: 17px; }
.ticks .pt { color: var(--muted); font-size: 13px; }
.ticks .n { color: var(--faint); }
.ticks .price td, .ticks .price th { font-size: 13px; border-top: 1px solid var(--ink); }
.ticks .price td { font-weight: 500; }
.more { margin-top: 20px; }
.more summary { cursor: pointer; font: 600 15px/1.3 var(--sans); color: var(--ink); text-decoration: underline; text-underline-offset: 3px; list-style: none; display: inline-block; }
.more summary::-webkit-details-marker { display: none; }
.more summary::after { content: " ↓"; }
.more[open] summary::after { content: " ↑"; }
.more .fine { margin-top: 12px; }

.table-wrap { margin-top: 16px; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); }
.cmp { border-collapse: collapse; width: 100%; min-width: 860px; font-size: 14.5px; }
.cmp th, .cmp td { text-align: left; padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.4; }
.cmp thead th { font: 600 13px/1.2 var(--sans); letter-spacing: .3px; white-space: nowrap; position: sticky; top: 0; background: var(--bg); }
.cmp thead a { text-underline-offset: 3px; }
.cmp tbody th { font-weight: 500; width: 24%; }
.cmp tr:last-child th, .cmp tr:last-child td { border-bottom: 0; }
.cmp .us { background: color-mix(in srgb, var(--ink) 6%, transparent); font-weight: 600; }
.cmp .y { font-weight: 600; }
.cmp .n { color: var(--faint); }
.cmp .sm { font-weight: 400; font-size: 13px; color: var(--muted); }
.table-wrap:focus-visible { outline-offset: 2px; }
.notes { margin-top: 24px; display: grid; gap: 8px; list-style: none; max-width: 56em; color: var(--muted); font-size: 14.5px; }
.notes li { padding-left: 18px; position: relative; }
.notes li::before { content: ""; position: absolute; left: 0; top: .68em; width: 8px; height: 1.5px; background: var(--ink); }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; max-width: 900px; }
.plan-card { border: 1px solid var(--line); border-radius: 12px; padding: 32px 30px 30px; display: flex; flex-direction: column; gap: 18px; background: var(--bg); }
.plan-card.feature { border: 1.5px solid var(--ink); }
.pc-k { font: 600 12px/1 var(--sans); letter-spacing: 1.4px; text-transform: uppercase; color: var(--muted); }
.plan-card h3 { font: 500 44px/1 var(--serif); letter-spacing: -.5px; }
.plan-card .per { font: 400 16px/1 var(--sans); color: var(--muted); letter-spacing: 0; }
.plan-card ul { list-style: none; display: grid; align-content: start; gap: 10px; font-size: 15.5px; color: var(--muted); flex: 1; }
.plan-card li { padding-left: 20px; position: relative; }
.plan-card li::before { content: ""; position: absolute; left: 0; top: .6em; width: 9px; height: 5px; border-left: 1.8px solid var(--ink); border-bottom: 1.8px solid var(--ink); transform: rotate(-45deg) translateY(-2px); }
.plan-card .btn { align-self: flex-start; }

.facts { margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 56px; list-style: none; max-width: 960px; }
.facts li { padding: 18px 0; border-top: 1px solid var(--line); font-size: 16.5px; color: var(--muted); }
.facts b { color: var(--ink); font-weight: 600; }

.doors-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 44px; align-items: start; }
.door-card { border: 1px solid var(--line); border-radius: 12px; padding: 30px; background: var(--bg); }
.door-card h3 { font: 500 28px/1.15 var(--serif); }
.door-card .row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
.signup-form { margin-top: 20px; display: grid; gap: 16px; }
.signup-form[hidden], .confirm[hidden], .form-error[hidden] { display: none; }
.f2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field label { display: block; font: 600 13px/1 var(--sans); margin-bottom: 7px; }
.field input { width: 100%; height: 46px; border: 1.5px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); padding: 0 12px; font: 400 16px/1 var(--sans); }
.field input::placeholder { color: var(--faint); }
.field input:hover { border-color: var(--faint); }
.field input:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-color: var(--ink); }
.field-error { display: none; font-size: 13.5px; margin-top: 6px; color: var(--ink); font-weight: 500; }
.field-error::before { content: "! "; font-weight: 700; }
.field.is-invalid input { border-color: var(--ink); border-width: 2px; }
.field.is-invalid .field-error { display: block; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { font-weight: 500; border-left: 3px solid var(--ink); padding: 6px 12px; }
.signup-form .btn { justify-self: start; }
.confirm { margin-top: 20px; display: grid; gap: 14px; justify-items: start; }
.confirm:focus { outline: none; }
.confirm-title { display: flex; align-items: center; gap: 10px; font: 500 22px/1.2 var(--serif); }
.confirm-title svg { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.confirm-steps { padding-left: 20px; display: grid; gap: 8px; color: var(--muted); }
.install { display: flex; align-items: stretch; gap: 10px; margin-top: 20px; }
.install code { flex: 1; min-width: 0; font: 400 13px/1.5 var(--mono); padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg-alt); overflow-wrap: anywhere; }
.install .copy { height: auto; padding: 0 18px; }
.install .copy[hidden] { display: none; }
.copy-status { min-height: 1.4em; font-size: 13.5px; color: var(--muted); margin-top: 8px; }

.foot { border-top: 1px solid var(--line); padding: 36px 0 44px; }
.foot-in { display: grid; gap: 14px; justify-items: start; font-size: 14.5px; color: var(--muted); }
.foot .fine { max-width: 52em; margin-top: 0; }

/* ---------- the set-up dialog ---------- */
.dlg { margin: auto; width: min(640px, calc(100vw - 32px)); max-height: calc(100vh - 32px); overflow: auto; border: 1px solid var(--card-line); border-radius: 12px; padding: 0; background: var(--card-bg); color: var(--card-ink); box-shadow: 0 24px 64px rgba(0, 0, 0, .4); }
.dlg::backdrop { background: rgba(14, 14, 13, .62); }
.dlg-in { padding: 26px 28px 28px; display: grid; gap: 14px; }
.dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.dlg h2 { font: 500 28px/1.15 var(--serif); letter-spacing: -.2px; }
.dlg .x { width: 40px; height: 40px; border: 1.5px solid var(--card-line); border-radius: 6px; background: transparent; display: grid; place-items: center; color: var(--card-ink); flex: none; }
.dlg .x svg { width: 16px; height: 16px; }
.dlg-p { font-size: 15px; color: var(--card-sub); }
.dlg-p.small { font-size: 13.5px; margin-top: 4px; }
.prompt { width: 100%; resize: vertical; font: 400 13px/1.55 var(--mono); padding: 14px; border: 1px solid var(--card-line); border-radius: 8px; background: #F0EFEA; color: var(--card-ink); }
.dlg .btn { --ink: #111110; --bg: #FAFAF7; --btn-bg: #111110; --btn-fg: #FAFAF7; border-color: #111110; color: #111110; }
.dlg .btn.solid { color: #FAFAF7; }
.dlg .btn.out:hover { color: #FAFAF7; }
.dlg .btn:focus-visible, .dlg .x:focus-visible { outline: 2px solid #111110; }
.dlg .row { display: flex; flex-wrap: wrap; gap: 12px; }
.dlg .copy-status { color: var(--card-sub); margin-top: 0; }
.dlg-code { font: 400 12.5px/1.5 var(--mono); padding: 10px 12px; border: 1px solid var(--card-line); border-radius: 6px; background: #F0EFEA; overflow-wrap: anywhere; }

/* ---------- smaller screens ---------- */
@media (max-width: 980px) {
  .hero-in { grid-template-columns: minmax(0, 1fr); gap: 44px; padding-top: 44px; }
  .plan-fig { justify-self: center; }
  h1 { max-width: none; }
  .nav { gap: 18px; }
}
@media (min-width: 761px) {
  .rooms { grid-template-columns: 1fr 1fr; column-gap: 48px; grid-auto-flow: column; grid-template-rows: repeat(5, auto); }
  .room:nth-child(5) { border-bottom: 1px solid var(--line); }
}
@media (max-width: 980px) {
  .pieces { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .nav { display: none; }
  .theme-toggle { margin-left: auto; }
  .plans, .doors-grid, .facts { grid-template-columns: minmax(0, 1fr); }
  .demo-stage { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .demo-tabs { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .demo-tabs::-webkit-scrollbar { display: none; }
  .demo-tab { height: 40px; padding: 0 12px; font-size: 14px; white-space: nowrap; flex: none; }
  html.js .demo.is-scroll { height: calc(100vh * 3); }
  html.js .demo.is-scroll .demo-stage { top: 12px; }
  .demo-panel .frame img { max-height: calc(100vh - 150px); object-fit: cover; object-position: top; }
  .facts { gap: 0; }
  h2 { font-size: 32px; }
  .sec { padding: 64px 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .wrap { padding: 0 20px; }
  .top { padding: 16px 20px 0; }
  .lockup .w { font-size: 20px; }
  .hero-in { padding: 36px 20px 56px; gap: 36px; }
  h1 { font-size: 36px; line-height: 1.1; letter-spacing: -.3px; }
  .rule { margin: 20px 0 18px; }
  .sub { font-size: 16px; }
  .acts { flex-direction: column; align-items: stretch; margin-top: 26px; }
  .split { display: flex; flex-wrap: wrap; }
  .split .main { flex: 1; justify-content: center; }
  .btn.out { width: 100%; }
  .menu { position: static; width: 100%; flex-basis: 100%; margin-top: 8px; }
  .gh { max-width: none; }
  .rl { font-size: 9.6px; }
  .tip { padding: 6px 9px; }
  .tip b { font-size: 11.5px; }
  .tip i { font-size: 10.5px; }
  .deal { width: 160px; padding: 9px 10px 10px; }
  .deal h3 { font-size: 14px; }
  .f2 { grid-template-columns: minmax(0, 1fr); }
  .door-card { padding: 22px 20px; }
  .plan-card { padding: 26px 22px; }
  .plan-card h3 { font-size: 38px; }
  .pieces { gap: 8px; }
  .pieces li { padding: 14px 13px 12px; gap: 3px; }
  .pieces b { font-size: 15.5px; }
  .pieces span { font-size: 13px; }
  .room { grid-template-columns: 50px minmax(0, 1fr); column-gap: 14px; padding: 11px 0; }
  .kp { width: 50px; height: 42px; }
  .install { flex-direction: column; }
  .install .copy { height: 46px; }
  .dlg-in { padding: 20px 18px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .gh, .deal.live, .demo-tab, .demo-panel { transition: none; }
}
@media print {
  .hero-field, .theme-toggle, .skip-link, .dlg { display: none !important; }
  .deal.live { opacity: 1; }
}
