/* DoorMax public site — light (default) and dark themes. Brand: #0F172A navy, #2563EB blue, #10B981 Emerald Ledger, #F8FAFC Architectural Alabaster. */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900; src: url('/site/fonts/inter-latin-wght-normal.woff2') format('woff2-variations'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --navy: #0F172A; --blue: #2563EB; --blue-strong: #1D4ED8; --emerald: #10B981; --alabaster: #F8FAFC;
  --bg: #F8FAFC; --surface: #FFFFFF; --surface-2: #F1F5F9; --surface-3: #E8EEF6;
  --ink: #0F172A; --ink-2: #334155; --muted: #5B6B82; --line: #E2E8F0; --line-strong: #CBD5E1;
  --accent: var(--blue); --accent-ink: #1D4ED8; --accent-soft: #EFF4FF;
  --ok: #047857; --ok-soft: #E7F8F1; --warn: #B45309; --warn-soft: #FEF4E6; --alert: #C2410C; --alert-soft: #FDEEE8;
  --band: #0F172A; --band-ink: #F8FAFC; --band-muted: #A9B6C9;
  --shadow-sm: 0 1px 2px rgb(15 23 42 / .06); --shadow: 0 1px 2px rgb(15 23 42 / .05), 0 10px 30px -12px rgb(15 23 42 / .18);
  --radius: 14px; --radius-sm: 10px; --wrap: 1320px;
  color-scheme: light;
}
[data-theme='dark'] {
  --bg: #0B1222; --surface: #111A2E; --surface-2: #162238; --surface-3: #1D2B45;
  --ink: #F1F5F9; --ink-2: #CBD5E1; --muted: #93A3BA; --line: #22304A; --line-strong: #31415F;
  --accent: #3B82F6; --accent-ink: #93B8FF; --accent-soft: #15233F;
  --ok: #34D399; --ok-soft: #0E2A24; --warn: #FBBF24; --warn-soft: #2B2210; --alert: #FB923C; --alert-soft: #2E1A12;
  --band: #0F1A33; --band-ink: #F8FAFC; --band-muted: #A9B6C9;
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .4); --shadow: 0 1px 2px rgb(0 0 0 / .35), 0 14px 34px -14px rgb(0 0 0 / .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-padding-top: 84px; }
body { margin: 0; font-family: Inter, ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif; font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
img, svg { max-width: 100%; }
img { height: auto; display: block; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; margin: 0 0 .5em; color: var(--ink); }
h1 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 750; }
h3 { font-size: 1.15rem; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; }
code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .9em; }
pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 16px; overflow-x: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--surface); color: var(--ink); padding: 10px 16px; border-radius: 8px; box-shadow: var(--shadow); }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }
/* "narrow" pages share the full content width so every section lines up with the header; long text keeps a readable measure via .prose / .lede. */
.narrow { max-width: var(--wrap); }
.narrow > .prose, .narrow > .prose-section, .prose-col { max-width: 72em; }
.center { text-align: center; }
.fine { font-size: .85rem; color: var(--muted); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); color: var(--ink-2); max-width: 60em; }
.center .lede { margin-left: auto; margin-right: auto; }
.eyebrow { font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-ink); margin-bottom: 10px; }
.section { padding: clamp(40px, 5vw, 72px) 0; }
.section-tight { padding: 24px 0; }
.section-head { max-width: 960px; margin-bottom: 32px; }
.section-head.center, .center .section-head { margin-left: auto; margin-right: auto; }
.group-h { font-size: 1.25rem; margin-bottom: 20px; }

/* Logo */
.dm-logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.dm-mark { flex: none; color: var(--ink); }
.dm-word { font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; color: var(--ink); }
.dm-word span { color: var(--blue); }
[data-theme='dark'] .dm-word span { color: #60A5FA; }
.dm-suffix { font-weight: 600; font-size: 1.05rem; color: var(--muted); margin-left: -2px; }
.brand { text-decoration: none; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 10px; border: 1px solid transparent; font: inherit; font-weight: 650; font-size: .95rem; line-height: 1.2; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn-lg { min-height: 52px; padding: 14px 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 1px 0 rgb(255 255 255 / .15) inset, 0 6px 16px -6px rgb(37 99 235 / .55); }
.btn-primary:hover { background: var(--blue-strong); text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--ink); border-color: var(--line-strong); }
.btn-secondary:hover { border-color: var(--ink-2); text-decoration: none; }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-ghost:hover { background: var(--surface-2); text-decoration: none; }
.btn-outline-inverse { color: var(--band-ink); border-color: rgb(248 250 252 / .35); background: transparent; }
.btn-outline-inverse:hover { border-color: var(--band-ink); text-decoration: none; }
.more { font-weight: 650; text-decoration: none; color: var(--accent-ink); display: inline-flex; gap: 6px; }
.more:hover { text-decoration: underline; }
.pill { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 9px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); vertical-align: middle; }
.pill-ok { background: var(--ok-soft); color: var(--ok); }
/* Feature status: Available now / Pilot / Planned — the same labels on every page. */
.pill-available { background: var(--ok-soft); color: var(--ok); }
.pill-pilot { background: var(--accent-soft); color: var(--accent-ink); }
.pill-planned { background: var(--surface-3); color: var(--muted); }
.status-list .st-dot { flex: none; width: 22px; height: 22px; margin-top: 3px; border-radius: 50%; border: 2px dashed var(--line-strong); }
.status-list .st-pilot .st-dot { border-color: var(--accent); }
.status-list li .pill { margin-left: 4px; vertical-align: 1px; }
.group-note { color: var(--muted); margin: -12px 0 20px; }
.badge { position: absolute; top: 12px; left: 12px; font-size: .75rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.badge-featured { background: var(--navy); color: #fff; }
.listing-head .badge { position: static; display: inline-block; margin-bottom: 10px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); }
.nav-row { display: flex; align-items: center; gap: 12px; min-height: 68px; }
.nav-row > .brand { margin-right: auto; }
.nav-links { display: flex; gap: 2px; justify-content: flex-end; }
.nav-links a { color: var(--ink-2); text-decoration: none; font-weight: 550; font-size: .95rem; padding: 8px 12px; border-radius: 8px; }
.nav-links a:hover { color: var(--ink); background: var(--surface-2); }
.nav-links a[aria-current='page'] { color: var(--ink); background: var(--surface-2); }
.nav-links a.nav-extra { position: relative; margin-left: 13px; }
.nav-links a.nav-extra::before { content: ''; position: absolute; left: -8px; top: 9px; bottom: 9px; width: 1px; background: var(--line-strong); }
.mnav-panel nav a.nav-extra { margin-top: 6px; border-top: 1px solid var(--line); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.theme-toggle { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle .i-moon { display: none; } [data-theme='dark'] .theme-toggle .i-moon { display: block; } [data-theme='dark'] .theme-toggle .i-sun { display: none; }
.theme-toggle span { display: block; line-height: 0; }
.mnav { display: none; margin-left: auto; }
.mnav summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; color: var(--ink); background: var(--surface); }
.mnav summary::-webkit-details-marker { display: none; }
.mnav-panel { position: absolute; left: 0; right: 0; top: 68px; background: var(--surface); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 12px 24px 20px; }
.mnav-panel nav { display: grid; }
.mnav-panel nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; }
.mnav-actions { display: grid; gap: 8px; margin-top: 14px; }
@media (max-width: 1100px) {
  .nav-links, .nav-actions { display: none; }
  .mnav { display: block; margin-left: 0; }
}

/* Breadcrumbs */
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 4px; padding: 12px 0 0; margin: 0 auto; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: '/'; margin: 0 6px 0 2px; color: var(--line-strong); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }

/* Hero */
.h1 { font-size: clamp(2.2rem, 4.6vw, 3.75rem); font-weight: 800; letter-spacing: -0.035em; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; }
.hero { padding: clamp(24px, 3.5vw, 48px) 0 clamp(28px, 4vw, 56px); background: radial-gradient(1200px 500px at 85% -10%, color-mix(in srgb, var(--blue) 14%, transparent), transparent 70%), radial-gradient(800px 400px at -10% 110%, color-mix(in srgb, var(--emerald) 10%, transparent), transparent 70%); }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.slide-title { font-size: clamp(1.7rem, 3.2vw, 2.5rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.15; color: var(--ink); margin: 0 0 .5em; text-wrap: balance; max-width: 20ch; }
.feature-tour .section-head, .tour .section-head { margin-bottom: 28px; }
.tour-hero { padding-bottom: 8px; }
.tour-actions { margin-top: 32px; }
.hero h1, .hero .h1 { max-width: 15ch; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 16px; }
.hero-actions.center { justify-content: center; }
.micro { font-size: .88rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 2px; }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; gap: 28px; } .hero h1, .hero .h1 { max-width: 20ch; } }

/* Hero slideshow: slides share one grid cell so the section keeps the height of the tallest slide (no layout jump). */
.hero-carousel .slides { display: grid; grid-template-columns: minmax(0, 1fr); }
.hero-grid > * { min-width: 0; }
.hero-carousel .slide { min-width: 0; grid-area: 1 / 1; opacity: 0; visibility: hidden; transition: opacity .6s ease, visibility 0s linear .6s; }
.hero-carousel .slide.is-active { opacity: 1; visibility: visible; transition: opacity .6s ease; }
.hero-carousel .slide .hero-copy > * { opacity: 0; transform: translateY(14px); transition: opacity .55s ease, transform .55s cubic-bezier(.2,.7,.2,1); }
.hero-carousel .slide .hero-visual { opacity: 0; transform: translateX(28px) scale(.97); transition: opacity .7s ease .15s, transform .8s cubic-bezier(.2,.7,.2,1) .15s; }
.hero-carousel .slide.is-active .hero-copy > *, .hero-carousel .slide.is-active .hero-visual { opacity: 1; transform: none; }
.hero-carousel .slide.is-active .hero-copy > :nth-child(2) { transition-delay: .06s; }
.hero-carousel .slide.is-active .hero-copy > :nth-child(3) { transition-delay: .12s; }
.hero-carousel .slide.is-active .hero-copy > :nth-child(4) { transition-delay: .18s; }
.hero-carousel .slide.is-active .hero-copy > :nth-child(5) { transition-delay: .24s; }
.carousel-nav { display: flex; align-items: center; gap: 12px; margin-top: clamp(20px, 3vw, 36px); }
.carousel-tabs { display: grid; grid-template-columns: repeat(var(--tabs, 6), minmax(0, 1fr)); gap: 8px; flex: 1; }
.ctab-n::after { content: ' · '; }
.ctab { position: relative; text-align: left; font: inherit; font-size: .86rem; font-weight: 650; color: var(--muted); background: none; border: 0; padding: 12px 2px 0; cursor: pointer; }
.ctab i { position: absolute; left: 0; right: 0; top: 0; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.ctab i::after { content: ''; position: absolute; inset: 0; background: var(--blue); transform: scaleX(0); transform-origin: left; }
.ctab:hover { color: var(--ink); }
.ctab.is-active { color: var(--ink); }
.ctab.is-active i::after { transform: scaleX(1); }
.hero-carousel.is-playing .ctab.is-active i::after { animation: ctab-progress var(--slide-ms, 7000ms) linear forwards; }
@keyframes ctab-progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.carousel-pause { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); font-size: .7rem; cursor: pointer; display: grid; place-items: center; }
.carousel-pause .i-play, .hero-carousel.is-paused .carousel-pause .i-pause { display: none; }
.hero-carousel.is-paused .carousel-pause .i-play { display: inline; }
@media (max-width: 720px) {
  .carousel-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  /* Numbered steps stay on one row on phones: 1 2 3 4 5. */
  .is-steps .carousel-tabs { grid-template-columns: repeat(var(--tabs), minmax(0, 1fr)); }
  .is-steps .ctab { text-align: center; }
  .is-steps .ctab-l { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .is-steps .ctab-n::after { content: none; }
}
/*
 * Compact hero (same breakpoint as the collapsed nav): copy on top, then a fixed-size "screen" in which each
 * mock-up keeps its desktop layout and is scaled to fit (site.js sets --fit). Every slide is the same height,
 * so the tabs sit right under the visual instead of under a gap left by the tallest slide.
 */
@media (max-width: 1100px) {
  .hero-carousel .hero-grid { grid-template-columns: 1fr; grid-template-rows: 1fr auto; gap: 24px; height: 100%; }
  .hero-carousel .hero-copy { align-self: start; }
  .hero-carousel h1, .hero-carousel .h1 { max-width: 22ch; }
  .hero-carousel .hero-visual { position: relative; aspect-ratio: 16 / 10; max-height: 440px; width: 100%; max-width: 720px; margin: 0 auto; overflow: hidden; border-radius: 18px; }
  .hero-carousel .hero-visual > .mock { position: absolute; left: 50%; top: 50%; width: 560px; transform: translate(-50%, -50%) scale(var(--fit, .6)); }
  .hero-carousel .hero-visual .mock-body { grid-template-columns: 1.4fr 1fr; }
  .hero-carousel .hero-visual .mock-kanban { grid-template-columns: repeat(4, 1fr); }
  .hero-carousel .carousel-nav { margin-top: 20px; }
  /* Picture first, caption under it: every slide's picture sits in the same place, and any spare height falls at the end. */
  .hero-carousel .hero-grid { grid-template-rows: auto 1fr; }
  .hero-carousel .hero-visual { order: -1; }
}
@media (max-width: 560px) {
  .hero-carousel .hero-visual { aspect-ratio: 4 / 3; max-height: none; }
  .hero-static .hero-actions .btn { flex: 1 1 100%; }
  .tour-actions .btn { flex: 1 1 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-carousel .slide, .hero-carousel .slide .hero-copy > *, .hero-carousel .slide .hero-visual { transition: none !important; transform: none !important; }
  .hero-carousel.is-playing .ctab.is-active i::after { animation: none; transform: scaleX(1); }
}
.mock-chat { padding: 16px; display: grid; gap: 10px; font-size: .9rem; }
.mock-chat .q { justify-self: end; background: var(--blue); color: #fff; padding: 10px 14px; border-radius: 14px 14px 4px 14px; margin: 0; max-width: 85%; }
.mock-chat .a { background: var(--surface-2); padding: 12px 14px; border-radius: 14px 14px 14px 4px; margin: 0; max-width: 92%; color: var(--ink-2); }
.mock-chat .cites { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; }
.mock-sign { padding: 18px; display: grid; gap: 10px; }
.mock-sign .ln { height: 8px; border-radius: 4px; background: var(--surface-3); margin: 0; }
.mock-sign .ln.s { width: 70%; }
.sign-row { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: var(--muted); }
.init { width: 46px; height: 30px; border-radius: 6px; display: grid; place-items: center; font-family: 'Segoe Script', 'Brush Script MT', cursive; font-style: italic; color: var(--ink); border: 1.5px dashed var(--line-strong); }
.init.done { border: 1.5px solid var(--emerald); background: color-mix(in srgb, var(--emerald) 12%, var(--surface)); }
.sign-box { border: 1.5px solid var(--emerald); border-radius: 10px; padding: 8px 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sign-box .cursive { font-family: 'Segoe Script', 'Brush Script MT', cursive; font-style: italic; font-size: 1.5rem; color: var(--ink); }
.sign-box small { color: var(--ok); font-weight: 650; }
.sign-box.pending { border-style: dashed; border-color: var(--line-strong); color: var(--muted); }
.sign-box.pending small { color: var(--muted); }

/* Product mock illustrations */
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); overflow: hidden; color: var(--ink); }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: .82rem; }
.mock-bar > span { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.mock-bar b { margin-left: 10px; } .mock-bar em { margin-left: auto; color: var(--muted); font-style: normal; }
.mock-body { display: grid; grid-template-columns: 1.4fr 1fr; gap: 14px; padding: 16px; }
.mock-map { background: var(--surface-2); border-radius: 12px; padding: 8px; color: var(--ink); align-self: start; }
.mock-map svg { display: block; width: 100%; height: auto; }
.bldg polygon { fill: color-mix(in srgb, var(--blue) 22%, var(--surface)); stroke: var(--blue); stroke-width: 2; }
.bldg.warn polygon { fill: var(--warn-soft); stroke: var(--warn); }
.bldg text { font: 700 18px Inter, sans-serif; fill: var(--ink); text-anchor: middle; }
.pin { fill: var(--emerald); stroke: var(--surface); stroke-width: 2; }
.pin-alert { fill: var(--alert); }
.mock-legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: .75rem; color: var(--ink-2); padding: 6px 4px 2px; }
.lg::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-ok::before { background: color-mix(in srgb, var(--blue) 30%, var(--surface)); border: 1.5px solid var(--blue); }
.lg-warn::before { background: var(--warn-soft); border: 1.5px solid var(--warn); }
.lg-alert::before { background: var(--alert); border-radius: 50%; }
.mock-side { display: grid; gap: 10px; align-content: start; }
.tile { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tile small { display: block; color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.tile strong { display: block; font-size: 1.45rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.25; }
.tile i { font-style: normal; font-size: .75rem; color: var(--muted); }
.tile i.up { color: var(--ok); }
.mock-table { width: 100%; border-collapse: collapse; font-size: .86rem; }
.mock-table th, .mock-table td { text-align: left; padding: 11px 16px; border-bottom: 1px solid var(--line); }
.mock-table th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.mock-table td:nth-child(2), .mock-table td:nth-child(3) { font-variant-numeric: tabular-nums; }
.chip { display: inline-flex; align-items: center; gap: 4px; font-size: .74rem; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--surface-3); color: var(--ink-2); }
.chip.ok { background: var(--ok-soft); color: var(--ok); } .chip.warn { background: var(--warn-soft); color: var(--warn); } .chip.alert { background: var(--alert-soft); color: var(--alert); }
.mock-kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; padding: 14px; }
.mock-kanban h4 { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 8px; }
.mock-kanban .card { margin: 0 0 8px; padding: 9px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: .82rem; font-weight: 600; background: var(--surface); }
.mock-kanban .card small { font-weight: 500; color: var(--muted); }
.mock-kanban .card.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--line)); background: var(--ok-soft); }
.mock-steps { padding: 14px 18px; display: grid; gap: 10px; font-size: .9rem; }
.mock-steps p { margin: 0; display: flex; gap: 10px; align-items: center; }
/* Every mock is fictional demo data and says so. */
.mock[data-demo]::after { content: 'Fictional demo data'; display: block; padding: 0 16px 10px; font-size: .7rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); text-align: right; }
.mock-bar em.mock-seg { display: inline-flex; gap: 2px; padding: 2px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }
.mock-seg i { font-style: normal; font-weight: 650; font-size: .74rem; padding: 2px 9px; border-radius: 6px; color: var(--muted); }
.mock-seg i.on { background: var(--surface-3); color: var(--ink); }
.bldg.sel polygon { stroke: var(--ink); stroke-width: 3.5; fill: color-mix(in srgb, var(--blue) 34%, var(--surface)); }
.unit rect { fill: color-mix(in srgb, var(--blue) 18%, var(--surface)); stroke: var(--blue); stroke-width: 1.5; }
.unit.vacant rect { fill: var(--warn-soft); stroke: var(--warn); }
.unit.sel rect { stroke: var(--ink); stroke-width: 3.5; }
.unit text { font: 700 15px Inter, sans-serif; fill: var(--ink); text-anchor: middle; }
.fp-note { font: 600 9px Inter, sans-serif; fill: currentColor; fill-opacity: .45; text-anchor: middle; letter-spacing: .08em; text-transform: uppercase; }
.unit-panel { gap: 8px; font-size: .82rem; }
.up-head { border: 1.5px solid var(--ink); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; justify-items: start; }
.up-head small { color: var(--muted); font-size: .72rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; }
.up-head strong { font-size: 1.35rem; font-weight: 800; letter-spacing: -0.02em; line-height: 1.2; }
.up-facts { margin: 0; padding: 0 2px; color: var(--ink-2); line-height: 1.45; }
.up-row { margin: 0; display: flex; align-items: center; gap: 8px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; }
.up-row > span:not(.chip) { flex: 1; min-width: 0; }
.up-btn { padding: 3px 10px; border-radius: 7px; background: var(--accent); color: #fff; font-size: .74rem; }
@media (max-width: 560px) { .mock-body { grid-template-columns: 1fr; } .mock-kanban { grid-template-columns: repeat(2, 1fr); } .mock-table { table-layout: fixed; } .mock-table th, .mock-table td { padding: 9px 8px; font-size: .78rem; overflow-wrap: anywhere; } }
/* Phones: long button labels wrap instead of pushing the page sideways. */
@media (max-width: 560px) { .btn { white-space: normal; max-width: 100%; text-align: center; } }

/* Social proof */
.proof { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); padding: 36px 0; }
.proof-head { text-align: center; font-size: .78rem; font-weight: 700; letter-spacing: .14em; color: var(--muted); margin-bottom: 22px; display: flex; flex-direction: column; gap: 6px; }
.proof-head .proof-sub { color: var(--accent-ink); }
.metrics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; }
.metrics li { text-align: center; padding: 6px 12px; border-left: 1px solid var(--line); }
.metrics li:first-child { border-left: 0; }
.metrics strong { display: block; font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.metrics span { color: var(--muted); font-size: .9rem; }
@media (max-width: 760px) { .metrics { grid-template-columns: repeat(2, 1fr); row-gap: 20px; } .metrics li:nth-child(3) { border-left: 0; } }

/* Bento */
.bento { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.bento-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 28px; box-shadow: var(--shadow-sm); display: flex; flex-direction: column; }
.bento-card p { color: var(--ink-2); flex: 1; }
.bento-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-ink); margin-bottom: 18px; }
.bento-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.bento-wide { background: linear-gradient(160deg, var(--surface) 0%, var(--accent-soft) 140%); }
@media (max-width: 900px) { .bento { grid-template-columns: 1fr; } }

/* Split sections */
.split-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 64px; align-items: center; }
.split-grid > * { min-width: 0; }
.split-rev .split-copy { order: 2; }
.split { border-top: 1px solid var(--line); }
@media (max-width: 960px) { .split-grid { grid-template-columns: minmax(0, 1fr); gap: 32px; } .split-rev .split-copy { order: 0; } }
.checks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.checks li { display: flex; gap: 10px; align-items: flex-start; color: var(--ink-2); }
.checks svg { flex: none; margin-top: 3px; color: var(--ok); background: var(--ok-soft); border-radius: 50%; padding: 2px; width: 22px; height: 22px; }

/* Security band */
.security-band { background: var(--band); color: var(--band-ink); }
.security-band h2, .security-band h3 { color: var(--band-ink); }
.security-band .lede { color: var(--band-muted); }
.security-band .sec-card { background: rgb(255 255 255 / .04); border-color: rgb(255 255 255 / .1); }
.security-band .sec-card p { color: var(--band-muted); }
.security-band .more { color: #93B8FF; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 1000px) { .grid4 { grid-template-columns: repeat(2, 1fr); } .grid3 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid4, .grid3 { grid-template-columns: 1fr; } }
.sec-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.sec-card p { color: var(--ink-2); margin: 0; }
.sec-card p + p { margin-top: 10px; }
.sec-icon { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: rgb(16 185 129 / .14); color: #34D399; margin-bottom: 16px; }
.sec-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.security-band .center { margin-top: 32px; }
.addon-price { font-weight: 750; color: var(--ink) !important; margin-top: 12px !important; }

/* Quote */
.quote { margin: 0 auto; max-width: 920px; text-align: center; }
.quote blockquote { margin: 0; }
.quote blockquote p { font-size: clamp(1.3rem, 2.6vw, 1.9rem); font-weight: 650; letter-spacing: -0.02em; line-height: 1.35; color: var(--ink); }
.quote figcaption { display: grid; gap: 2px; margin: 10px 0 18px; color: var(--muted); }
.quote figcaption strong { color: var(--ink); }

/* Divisions */
.div-card { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; transition: border-color .15s, transform .15s; }
.div-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.div-card p { color: var(--ink-2); }

/* CTA band */
.cta-band { background: linear-gradient(120deg, #0F172A 0%, #13265A 60%, #1E3A8A 100%); color: #F8FAFC; padding: clamp(48px, 6vw, 80px) 0; }
.cta-inner { display: flex; gap: 32px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.cta-band h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: #C7D2E5; max-width: 40em; margin: 0; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-band .btn-outline-inverse { color: #F8FAFC; }

/* Footer */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding: 44px 0 24px; font-size: .92rem; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(5, 1fr); gap: 28px; }
@media (max-width: 1200px) { .footer-grid { grid-template-columns: repeat(3, 1fr); } .footer-brand { grid-column: 1 / -1; } }
.footer-brand p { color: var(--muted); margin-top: 14px; max-width: 28ch; }
.footer-divisions { font-size: .8rem; }
.footer-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col a { color: var(--ink-2); text-decoration: none; }
.footer-col a:hover { color: var(--ink); text-decoration: underline; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; border-top: 1px solid var(--line); margin-top: 40px; padding-top: 22px; color: var(--muted); font-size: .85rem; }
.footer-bottom p { margin: 0; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { color: var(--muted); }
.eho { flex-basis: 100%; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } .footer-brand { grid-column: 1 / -1; } }

/* Inner pages */
.page-hero { padding: clamp(20px, 2.5vw, 36px) 0 clamp(16px, 2.5vw, 32px); background: radial-gradient(900px 360px at 80% -20%, color-mix(in srgb, var(--blue) 10%, transparent), transparent 70%); }
.page-hero + .section, .page-visual + .section { padding-top: clamp(16px, 2vw, 28px); }
/* Two plain sections in a row share one gap instead of stacking two. */
.section:not(.split):not(.security-band):not(.divisions) + .section:not(.split):not(.security-band):not(.divisions) { padding-top: 0; }
.page-hero h1 { text-wrap: balance; max-width: 26ch; }
.page-visual { margin-top: 8px; margin-bottom: 8px; }
.prose { color: var(--ink-2); }
.prose h2 { margin-top: 1.6em; } .prose h3 { margin-top: 1.4em; }
.prose-section { padding: 22px 0; border-bottom: 1px solid var(--line); }
.prose-section h2, .prose-section h3 { margin-top: 0; }
.prose-section.is-planned { opacity: .9; }
.next-steps { display: grid; gap: 12px; padding-left: 1.3em; margin: 8px 0 24px; color: var(--ink-2); font-size: 1.05rem; }
.next-steps strong { color: var(--ink); }
.related { margin-top: 28px; color: var(--muted); }
.examples { list-style: none; padding: 0; display: grid; gap: 10px; }
.examples li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; color: var(--ink); font-weight: 550; }
.module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.module { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; transition: border-color .15s; }
.module:hover { border-color: var(--accent); }
.module p { color: var(--ink-2); margin: 0; font-size: .95rem; }
@media (max-width: 900px) { .module-grid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 600px) { .module-grid { grid-template-columns: 1fr; } }
.int-card { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.int-card p { color: var(--ink-2); }
.int-cat { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted) !important; margin-bottom: 6px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary { cursor: pointer; font-weight: 650; padding: 14px 28px 14px 0; position: relative; list-style: none; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 4px; top: 10px; font-size: 1.4rem; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { color: var(--ink-2); }
.notice-draft { background: var(--warn-soft); color: var(--warn); border-radius: 10px; padding: 12px 16px; font-weight: 600; }
.whitepaper h2 { font-size: 1.35rem; }
.status-list { list-style: none; padding: 0; margin: 24px 0; display: grid; gap: 10px; }
.status-list li { display: grid; grid-template-columns: 16px 1fr auto; gap: 4px 12px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 18px; }
.status-list small { grid-column: 2 / -1; color: var(--muted); }
.status-dot { width: 12px; height: 12px; border-radius: 50%; }
.status-dot.ok { background: var(--emerald); } .status-dot.bad { background: var(--alert); }
.status-label { font-weight: 650; font-size: .9rem; }

/* Tables */
.table { width: 100%; border-collapse: collapse; font-size: .93rem; background: var(--surface); }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.table tbody th { font-weight: 600; color: var(--ink); }
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table-scroll .table { border: 0; }
.compare th small { display: block; font-weight: 600; text-transform: none; letter-spacing: 0; color: var(--ink-2); }
.compare td { text-align: center; white-space: nowrap; }
.compare tbody th { min-width: 220px; }
.yes { color: var(--ok); font-weight: 800; } .no { color: var(--line-strong); }

/* Forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; box-shadow: var(--shadow-sm); }
.form-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; }
@media (max-width: 900px) { .form-grid { grid-template-columns: 1fr; } }
.lead-form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }
label { display: grid; gap: 6px; font-weight: 600; font-size: .9rem; color: var(--ink); }
input, select, textarea { font: inherit; font-weight: 400; color: var(--ink); background: var(--surface); border: 1px solid var(--line-strong); border-radius: 10px; padding: 10px 12px; min-height: 44px; width: 100%; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: 0; border-color: var(--accent); }
textarea { resize: vertical; }
.hp { position: absolute !important; left: -10000px; }
.form-error { background: var(--alert-soft); color: var(--alert); padding: 10px 14px; border-radius: 10px; font-weight: 600; margin: 0; }

/* Pricing */
.founding { display: flex; gap: 28px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: linear-gradient(120deg, var(--navy), #1E3A8A); color: #F8FAFC; border-radius: 20px; padding: 28px 32px; margin-bottom: 8px; }
.founding h2 { color: #fff; font-size: clamp(1.3rem, 2.4vw, 1.75rem); max-width: 26ch; }
.founding p { color: #C7D2E5; margin: 0; max-width: 60ch; }
.founding .eyebrow { color: #6EE7B7; }
.founding-count { display: grid; justify-items: center; gap: 4px; text-align: center; }
.founding-count strong { font-size: 2.6rem; font-weight: 800; line-height: 1; }
.founding-count span { color: #C7D2E5; font-size: .85rem; margin-bottom: 10px; }
.bill-radio { position: absolute; left: 0; width: 1px; height: 1px; margin: 0; opacity: 0; pointer-events: none; }
.bill-toggle { display: inline-flex; margin: 0 auto 28px; padding: 4px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); position: relative; left: 50%; transform: translateX(-50%); }
.bill-toggle label { cursor: pointer; padding: 9px 18px; border-radius: 9px; font-weight: 650; display: inline-flex; flex-direction: row; gap: 8px; align-items: center; }
.save { font-size: .72rem; font-weight: 700; color: var(--ok); background: var(--ok-soft); padding: 2px 8px; border-radius: 999px; }
#bill-monthly:checked ~ .bill-toggle label[for='bill-monthly'], #bill-annual:checked ~ .bill-toggle label[for='bill-annual'] { background: var(--navy); color: #fff; }
[data-theme='dark'] #bill-monthly:checked ~ .bill-toggle label[for='bill-monthly'], [data-theme='dark'] #bill-annual:checked ~ .bill-toggle label[for='bill-annual'] { background: var(--accent); }
#bill-monthly:focus-visible ~ .bill-toggle label[for='bill-monthly'], #bill-annual:focus-visible ~ .bill-toggle label[for='bill-annual'] { outline: 3px solid var(--accent); outline-offset: 2px; }
.price-a { display: none !important; }
#bill-annual:checked ~ .plans .price-a { display: flex !important; } #bill-annual:checked ~ .plans .price-m { display: none !important; }
#bill-annual:checked ~ .plans a.price-a { display: inline-flex !important; }
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: stretch; }
@media (max-width: 1080px) { .plans { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }
.plan { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 26px 22px; display: flex; flex-direction: column; gap: 6px; }
.plan-hl { border: 2px solid var(--accent); box-shadow: 0 18px 40px -20px rgb(37 99 235 / .5); }
.plan-badge { position: absolute; top: -13px; left: 22px; background: var(--accent); color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; margin: 0; }
.plan h3 { font-size: 1.3rem; margin: 0; }
.plan-tag { color: var(--muted); font-size: .9rem; margin: 0 0 8px; }
.price { margin: 4px 0 0; }
.price span { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.price strong { font-size: 2.4rem; font-weight: 800; letter-spacing: -0.03em; }
.price small { color: var(--muted); }
.plan-extra { min-height: 1.4em; color: var(--muted); font-size: .85rem; margin: 0 0 12px; }
.plan .checks { margin: 18px 0 0; gap: 9px; font-size: .92rem; }
.plan .checks svg { width: 18px; height: 18px; }
.plan-band { display: flex; gap: 24px; align-items: center; justify-content: space-between; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px; margin-top: 16px; }
.plan-band p { color: var(--ink-2); margin: 0; max-width: 78ch; }
.plan-band h3 { display: flex; align-items: baseline; gap: 10px; }
.plan-band .btn { flex-shrink: 0; }
.plan-free { margin: 0 0 16px; }
.plan-band-price { font-size: 1.5rem; font-weight: 800; }
.plan-trial { margin: 2px 0 0; min-height: 2.9em; font-size: .8rem; line-height: 1.45; color: var(--muted); text-align: center; }
@media (max-width: 700px) { .plan-band { flex-direction: column; align-items: flex-start; } }
.calc-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: var(--accent-ink); font-size: .74rem; font-weight: 700; letter-spacing: .02em; vertical-align: 2px; }
.calc-tag-alt { background: var(--surface-2); color: var(--ink-2); }
.calc-alt { font-size: .95rem; margin-top: 8px; }
.also { text-align: center; color: var(--muted); margin-top: 20px; font-size: .92rem; }
.calc label { font-size: 1rem; }
.calc-row { display: flex; gap: 10px; margin-top: 8px; }
.calc-row input { max-width: 220px; font-size: 1.1rem; }
.calc-out { display: block; margin-top: 16px; font-size: 1.05rem; color: var(--ink-2); }
.calc-out strong { color: var(--ink); }

/* Rentals */
.rentals-hero { padding: 16px 0 4px; }
.rentals-hero h1 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); }
.filters { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px 12px; align-items: end; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; margin: 18px 0 8px; }
.filters label { font-size: .78rem; font-weight: 650; color: var(--muted); gap: 4px; }
.filters input, .filters select { min-height: 42px; padding: 8px 10px; }
.filters .f-q { grid-column: span 2; }
.f-check { display: flex !important; align-items: center; gap: 8px !important; font-size: .9rem !important; color: var(--ink) !important; min-height: 42px; }
.f-check input { width: 18px; height: 18px; min-height: 0; accent-color: var(--accent); }
.f-amen { grid-column: span 2; position: relative; }
.f-amen summary { cursor: pointer; min-height: 42px; display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 10px; font-size: .9rem; font-weight: 600; }
.f-amen div { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 12px; margin-top: 8px; }
.f-actions { display: flex; gap: 8px; grid-column: span 2; }
@media (max-width: 640px) { .filters { grid-template-columns: 1fr 1fr; } .filters .f-q, .f-amen, .f-actions { grid-column: 1 / -1; } }
.result-count { color: var(--muted); font-size: .9rem; }
.filters-box > summary { display: none; }
@media (max-width: 640px) {
  .filters-box > summary { display: flex; align-items: center; justify-content: space-between; list-style: none; cursor: pointer; font-weight: 700; padding: 12px 16px; margin: 14px 0 6px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface); }
  .filters-box > summary::after { content: '+'; font-size: 1.3rem; color: var(--muted); }
  .filters-box[open] > summary::after { content: '–'; }
  .filters-box > summary::-webkit-details-marker { display: none; }
  .filters-box .filters { margin-top: 0; }
}
.lgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.lgrid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 1050px) { .lgrid { grid-template-columns: repeat(2, 1fr); } } @media (max-width: 640px) { .lgrid, .lgrid-2 { grid-template-columns: 1fr; } }

/* Results + map split view */
.results-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(380px, 42%); grid-template-areas: 'top top' 'list map'; gap: 12px 22px; align-items: start; }
.results-top { grid-area: top; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.results-top .result-count { margin: 0; }
.results-list { grid-area: list; min-width: 0; }
.results-list .lgrid { grid-template-columns: repeat(2, 1fr); gap: 18px; }
.results-map { grid-area: map; position: sticky; top: 84px; }
.rmap { height: calc(100vh - 130px); min-height: 420px; border-radius: 16px; border: 1px solid var(--line); overflow: hidden; background: var(--surface-2); z-index: 0; }
.rmap-note { margin: 6px 2px 0; }
.view-switch { display: none; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; }
.view-switch button { font: inherit; font-weight: 650; font-size: .9rem; padding: 8px 16px; border: 0; background: var(--surface); color: var(--ink-2); cursor: pointer; min-height: 40px; }
.view-switch button[aria-pressed='true'] { background: var(--ink); color: var(--bg); }
@media (max-width: 960px) {
  .results-layout { grid-template-columns: 1fr; grid-template-areas: 'top' 'list' 'map'; }
  .view-switch { display: inline-flex; }
  .results-map { display: none; position: static; }
  .results-layout.show-map .results-map { display: block; }
  .results-layout.show-map .results-list { display: none; }
  .rmap { height: 70vh; }
  .results-list .lgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) { .results-list .lgrid { grid-template-columns: 1fr; } }
.pin-wrap { background: none; border: 0; }
.pin-price { display: inline-block; transform: translate(-50%, -100%); white-space: nowrap; background: var(--blue); color: #fff; font: 700 12.5px/1 Inter, system-ui, sans-serif; padding: 6px 9px; border-radius: 999px; box-shadow: 0 2px 8px rgb(15 23 42 / .35); border: 2px solid #fff; position: relative; }
.pin-price::after { content: ''; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 5px solid transparent; border-top-color: #fff; border-bottom: 0; }
.pin-multi { background: var(--navy); }
.leaflet-marker-icon:hover .pin-price, .leaflet-marker-icon:focus .pin-price { background: var(--emerald); }
.pin-pop { display: grid; gap: 2px; font: 14px/1.4 Inter, system-ui, sans-serif; }
.pin-pop a { font-weight: 700; color: #1D4ED8; }
.pin-pop span { color: #475569; }
[data-theme='dark'] .rmap .leaflet-tile-pane { filter: brightness(.78) contrast(1.1) saturate(.85); }
.lcard { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; content-visibility: auto; contain-intrinsic-size: 360px 420px; }
.lcard:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.lcard-featured, .lcard-premium { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
.lcard-media { position: relative; display: block; aspect-ratio: 4 / 3; background: var(--surface-2); }
.lcard-media img { width: 100%; height: 100%; object-fit: cover; }
.lcard-ph { display: grid; place-items: center; height: 100%; color: var(--muted); font-weight: 650; }
.lcard-body { padding: 14px 16px 16px; }
.lcard-price { margin: 0 0 4px; color: var(--muted); }
.lcard-price strong { font-size: 1.35rem; color: var(--ink); letter-spacing: -0.02em; }
.lcard h3 { font-size: 1rem; margin: 0 0 4px; }
.lcard h3 a { color: var(--ink); text-decoration: none; }
.lcard h3 a::after { content: ''; position: absolute; inset: 0; }
.lcard h3 a:hover { text-decoration: underline; }
.lcard-facts { margin: 0; font-weight: 600; color: var(--ink-2); font-size: .92rem; }
.lcard-addr, .lcard-avail { margin: 2px 0 0; color: var(--muted); font-size: .86rem; }
.lcard-avail { color: var(--ok); font-weight: 600; }
.save-btn { position: absolute; z-index: 2; top: 10px; right: 10px; width: 40px; height: 40px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; background: rgb(255 255 255 / .92); color: #0F172A; box-shadow: var(--shadow-sm); }
.save-btn[aria-pressed='true'] svg path { fill: #E11D48; stroke: #E11D48; }
.save-wide { position: static; width: 100%; height: auto; border-radius: 10px; background: transparent; color: var(--ink); box-shadow: none; display: inline-flex; gap: 8px; }
.pager { display: flex; justify-content: center; align-items: center; gap: 20px; margin: 28px 0 8px; }
.pager a { font-weight: 650; }
.chips { list-style: none; padding: 0; margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; gap: 8px; align-items: center; padding: 8px 14px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); text-decoration: none; font-weight: 600; font-size: .9rem; }
.chips a:hover { border-color: var(--accent); }
.chips span { color: var(--muted); font-weight: 500; }
.facet-links { margin-top: 10px; }
.browse { display: grid; grid-template-columns: 2fr 1fr; gap: 32px; }
.browse h2, .place-info h2 { font-size: 1.25rem; }
@media (max-width: 800px) { .browse { grid-template-columns: 1fr; } }
.place-info { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.snapshot .table-scroll { max-width: 640px; }
.link-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px 24px; }
.link-list li { display: flex; flex-direction: column; padding: 10px 0; border-bottom: 1px solid var(--line); }
.link-list a { font-weight: 650; }
.link-list span { color: var(--muted); font-size: .86rem; }
.list-cta { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 24px 28px; }
.list-cta h2 { font-size: 1.3rem; margin: 0 0 4px; } .list-cta p { margin: 0; color: var(--ink-2); }
.empty { text-align: center; padding: 48px 16px; background: var(--surface); border: 1px dashed var(--line-strong); border-radius: 18px; }
.empty .chips { justify-content: center; }

/* Listing page */
.status-banner { margin: 16px 0 0; padding: 14px 18px; border-radius: 12px; background: var(--warn-soft); color: var(--warn); font-weight: 650; }
.gallery { display: grid; gap: 8px; margin-top: 16px; border-radius: 18px; overflow: hidden; position: relative; }
.gallery figure { margin: 0; background: var(--surface-2); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }
.gallery-multi { grid-template-columns: 2fr 1fr 1fr; grid-template-rows: repeat(2, minmax(0, 1fr)); aspect-ratio: 2.4 / 1; }
.gallery-multi .g-main { grid-row: span 2; }
.gallery:not(.gallery-multi) { aspect-ratio: 2 / 1; max-height: 520px; }
.g-plan img { object-fit: contain; background: #fff; }
.g-more { position: absolute; right: 14px; bottom: 14px; background: var(--surface); color: var(--ink); padding: 8px 14px; border-radius: 10px; font-weight: 650; text-decoration: none; box-shadow: var(--shadow); }
@media (max-width: 760px) { .gallery-multi { grid-template-columns: 1fr; grid-template-rows: auto; aspect-ratio: auto; } .gallery-multi .g-thumb { display: none; } .gallery-multi .g-main { aspect-ratio: 4 / 3; } }
.listing-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; margin-top: 28px; align-items: start; }
@media (max-width: 980px) { .listing-grid { grid-template-columns: 1fr; } }
.listing-main > section { padding: 24px 0; border-bottom: 1px solid var(--line); }
.listing-main h2 { font-size: 1.35rem; }
.listing-main h3 { font-size: 1rem; margin-top: 1em; }
.listing-head h1 { font-size: clamp(1.6rem, 3vw, 2.3rem); }
.listing-addr { color: var(--ink-2); }
.kfacts { list-style: none; padding: 0; margin: 18px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.kfacts li { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 16px; display: grid; }
.kfacts strong { font-size: 1.2rem; letter-spacing: -0.01em; }
.kfacts span { color: var(--muted); font-size: .8rem; }
.cost { max-width: 520px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.cost td { text-align: right; font-variant-numeric: tabular-nums; }
.cost .total th, .cost .total td { font-weight: 800; color: var(--ink); background: var(--surface-2); }
.feature-list { columns: 2; padding-left: 1.1em; color: var(--ink-2); }
@media (max-width: 560px) { .feature-list { columns: 1; } }
.policies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px 28px; margin: 0; }
.policies dt { font-weight: 650; color: var(--ink); } .policies dd { margin: 2px 0 0; color: var(--ink-2); }
@media (max-width: 560px) { .policies { grid-template-columns: 1fr; } }
.plan-fig { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.plan-fig img { object-fit: contain; }
.plan-fig figcaption { padding: 10px 14px; font-size: .85rem; color: #475569; background: #fff; border-top: 1px solid #E2E8F0; }
.photo-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.photo-grid figure { margin: 0; border-radius: 10px; overflow: hidden; }
.video, .map-embed { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: var(--surface-2); border: 1px solid var(--line); }
.map-embed { aspect-ratio: 16 / 8; }
.video iframe, .map-embed iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.criteria { color: var(--ink-2); display: grid; gap: 6px; }
.eho-note { font-size: .85rem; color: var(--muted); padding: 20px 0; }
.listing-side { position: sticky; top: 88px; display: grid; gap: 14px; }
@media (max-width: 980px) { .listing-side { position: static; } }
.side-card { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; display: grid; gap: 10px; box-shadow: var(--shadow-sm); }
.side-card p { margin: 0; }
.side-price strong { font-size: 1.9rem; font-weight: 800; letter-spacing: -0.03em; }
.manager-name { font-weight: 750; font-size: 1.1rem; }
.share-row { display: flex; flex-wrap: wrap; gap: 4px; }
.share-row .btn { min-height: 36px; padding: 6px 10px; font-size: .85rem; border: 1px solid var(--line); }
.manager-hero { border-bottom: 4px solid var(--accent); padding-bottom: 28px; }
.manager-head { display: flex; gap: 22px; align-items: center; }
.manager-logo, .manager-initial { width: 96px; height: 96px; border-radius: 20px; flex: none; object-fit: contain; background: #fff; border: 1px solid var(--line); }
.manager-initial { display: grid; place-items: center; font-size: 2.6rem; font-weight: 800; color: #fff; background: var(--accent); border: 0; }
.manager-contact { display: flex; gap: 18px; font-weight: 650; }

/* Tools */
.tool-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
@media (max-width: 900px) { .tool-grid { grid-template-columns: 1fr; } }
.calc-fields { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 16px; }
@media (max-width: 560px) { .calc-fields { grid-template-columns: 1fr; } }
.calc-fields small { font-weight: 400; color: var(--muted); font-size: .78rem; }
.input-affix { display: flex; align-items: stretch; border: 1px solid var(--line-strong); border-radius: 10px; overflow: hidden; background: var(--surface); }
.input-affix:focus-within { outline: 2px solid var(--accent); border-color: var(--accent); }
.input-affix input { border: 0; border-radius: 0; outline: 0 !important; min-width: 0; }
.input-affix span { display: grid; place-items: center; padding: 0 10px; background: var(--surface-2); color: var(--muted); font-weight: 600; font-size: .85rem; white-space: nowrap; }
.calc-results { display: grid; gap: 10px; position: sticky; top: 88px; }
.res { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; display: grid; gap: 2px; }
.res span { color: var(--muted); font-size: .88rem; font-weight: 600; }
.res strong { font-size: 1.35rem; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.res small { color: var(--muted); }
.res-hero { background: var(--navy); border-color: var(--navy); }
.res-hero span, .res-hero small { color: #A9B6C9; } .res-hero strong { color: #fff; font-size: 2.2rem; }
[data-theme='dark'] .res-hero { background: var(--accent-soft); border-color: var(--accent); }
.tool-cta { margin: 32px 0; }
.tool-cta h2 { margin-top: 0; font-size: 1.3rem; }
.checklist { margin-bottom: 20px; }
.checklist h2 { font-size: 1.15rem; margin-top: 1.2em; }
.checklist td { text-align: center; width: 70px; } .checklist td:last-child { width: 30%; }
.print-head { color: var(--ink-2); }

/* Dev-only claims badge */
.claims-badge { position: fixed; left: 16px; bottom: 16px; z-index: 60; background: #FEF3C7; color: #78350F; border: 1px solid #F59E0B; padding: 8px 14px; border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; box-shadow: var(--shadow); }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media (forced-colors: active) { .btn, .chips a, .lcard, .card, .plan { border: 1px solid CanvasText; } }
@media print {
  .site-header, .site-footer, .cta-band, .claims-badge, .hero-actions, .listing-side .share, .save-btn, .filters, .crumbs { display: none !important; }
  body { background: #fff; color: #000; }
  .section, .page-hero { padding: 12px 0; }
  a { color: #000; }
}

/* ── The DoorMax app: home section, /get-app ── */
.app-promo { border-top: 1px solid var(--line); background: radial-gradient(900px 420px at 85% 30%, var(--accent-soft), transparent 70%); }
.app-promo-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 64px; align-items: center; }
.app-promo-copy h2 { max-width: 16ch; }
.app-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin: 4px 0 0; }
.app-btn { display: inline-flex; align-items: center; gap: 12px; text-align: left; line-height: 1.1; padding-top: 10px; padding-bottom: 10px; }
.app-btn svg { width: 26px; height: 26px; flex: none; }
.app-btn small { display: block; font-size: .7rem; font-weight: 600; opacity: .8; letter-spacing: .02em; }
.app-btn.is-soon { cursor: default; opacity: .75; }
.app-version { margin: 14px 0 0; font-size: .9rem; color: var(--muted); }
.app-version strong { color: var(--ink); }
.app-nudge { margin: 6px 0 0; font-size: .9rem; color: var(--ok); font-weight: 600; }
.app-promo-visual { position: relative; display: flex; justify-content: center; padding: 8px 0 28px; }
.app-phone { position: relative; width: 280px; aspect-ratio: 9 / 18.5; border-radius: 42px; background: #0B1222; padding: 12px; box-shadow: 0 0 0 2px #2A3956, 0 30px 60px -20px rgb(15 23 42 / .45); transform: rotate(-3deg); }
.app-phone-notch { position: absolute; top: 20px; left: 50%; width: 84px; height: 20px; margin-left: -42px; border-radius: 12px; background: #000; z-index: 1; }
.app-phone-screen { height: 100%; border-radius: 32px; background: linear-gradient(180deg, #12203B, #0F172A 55%); padding: 50px 14px 14px; display: flex; flex-direction: column; gap: 10px; overflow: hidden; color: #E6EBF5; }
.app-phone-top { display: flex; justify-content: space-between; align-items: baseline; padding: 0 4px 4px; }
.app-phone-top b { font-size: 1.25rem; }
.app-phone-top span { font-size: .72rem; font-weight: 700; color: #93B8FF; }
.app-note { display: grid; grid-template-columns: 8px 1fr auto; gap: 10px; align-items: start; background: rgb(255 255 255 / .06); border: 1px solid rgb(255 255 255 / .08); border-radius: 14px; padding: 10px 11px; }
.app-note i { width: 8px; height: 8px; border-radius: 50%; margin-top: 5px; background: #60A5FA; }
.app-note strong { display: block; font-size: .8rem; color: #fff; }
.app-note span { display: block; font-size: .7rem; color: #A9B6C9; margin-top: 2px; }
.app-note em { font-style: normal; font-size: .66rem; color: #8291AB; }
.app-note-alert { background: rgb(249 115 22 / .14); border-color: rgb(249 115 22 / .35); }
.app-note-alert i { background: #FB923C; box-shadow: 0 0 0 4px rgb(251 146 60 / .25); }
.app-note-ok i { background: #34D399; }
.app-note-muted { opacity: .7; }
.app-phone-tabs { margin-top: auto; display: flex; justify-content: space-around; padding: 10px 6px 2px; border-top: 1px solid rgb(255 255 255 / .08); }
.app-phone-tabs span { width: 22px; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .18); }
.app-phone-tabs span.on { background: #60A5FA; }
.app-qr-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px 14px 14px; max-width: 290px; }
.app-promo-visual .app-qr-card { position: absolute; left: max(0px, calc(50% - 300px)); bottom: 0; }
.app-qr { flex: none; width: 104px; height: 104px; background: #fff; border-radius: 10px; padding: 8px; }
.app-qr svg { display: block; width: 100%; height: 100%; }
.app-qr-card p { margin: 0; font-size: .85rem; color: var(--muted); }
.app-qr-card strong { display: block; color: var(--ink); font-size: .95rem; margin-bottom: 2px; }
.app-get-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; }
.app-get-grid.with-qr { grid-template-columns: minmax(0, .8fr) repeat(2, minmax(0, 1fr)); }
.app-qr-large { flex-direction: column; text-align: center; max-width: none; padding: 24px; }
.app-qr-large .app-qr { width: 200px; height: 200px; padding: 12px; }
.app-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-sm); }
.app-card.is-you { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft), var(--shadow); }
.app-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.app-card-head svg { width: 28px; height: 28px; color: var(--ink); }
.app-card-head h2 { font-size: 1.35rem; margin: 0; }
.app-card h3 { font-size: 1rem; margin: 22px 0 8px; }
.app-card .notice { background: var(--ok-soft); color: var(--ok); border-radius: 10px; padding: 10px 14px; font-weight: 600; font-size: .9rem; }
.app-steps { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; color: var(--ink-2); }
.app-card .small { font-size: .85rem; margin-top: 14px; }
.app-card .muted { color: var(--muted); }
@media (max-width: 1000px) { .app-get-grid.with-qr { grid-template-columns: repeat(2, minmax(0, 1fr)); } .app-get-grid.with-qr .app-qr-large { grid-column: 1 / -1; flex-direction: row; text-align: left; } }
@media (max-width: 960px) {
  .app-promo-grid { grid-template-columns: 1fr; gap: 40px; }
  .app-promo-visual .app-qr-card { left: 0; }
}
@media (max-width: 700px) {
  .app-get-grid, .app-get-grid.with-qr { grid-template-columns: minmax(0, 1fr); }
  .app-card { padding: 18px; }
  .app-promo-visual .app-qr-card { display: none; } /* on a phone, the buttons are the way in */
  .app-phone { width: 240px; transform: none; }
}

/* ── Marketplace: "What are you looking for?" and category-aware filters ── */
/* Category tabs: All + 7 categories = 8, so the grid is even at every width (8 across, 4 × 2, 2 × 4). */
.cat-tabs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin: 18px 0 6px; }
.cat-tabs a { display: grid; grid-template-rows: auto 1fr; justify-items: center; align-items: start; gap: 4px; padding: 12px 8px 10px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-align: center; font-size: .84rem; font-weight: 650; line-height: 1.25; min-width: 0; transition: border-color .15s, background .15s, color .15s; }
.cat-tabs a:hover { border-color: var(--line-strong); color: var(--ink); }
.cat-tabs a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.cat-tabs a[aria-current] { border-color: var(--accent); background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.cat-tab-icon { display: inline-flex; width: 40px; height: 40px; align-items: center; justify-content: center; border-radius: 11px; background: var(--surface-2); color: var(--accent-ink); }
.cat-tab-icon svg { width: 24px; height: 24px; }
.cat-tabs a[aria-current] .cat-tab-icon { background: var(--surface); }
.cat-tab-label { overflow-wrap: anywhere; }
@media (max-width: 1100px) { .cat-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) {
  .cat-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .cat-tabs a { grid-template-columns: auto 1fr; grid-template-rows: none; justify-items: start; align-items: center; text-align: left; padding: 8px 10px; gap: 8px; }
  .cat-tab-icon { width: 32px; height: 32px; border-radius: 9px; }
  .cat-tab-icon svg { width: 20px; height: 20px; }
}
/* "Closest to you first" */
.near-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; margin: 10px 0 0; font-size: .9rem; color: var(--ink-2); }
.near-bar .btn { min-height: 38px; padding: 6px 14px; font-size: .88rem; gap: 6px; }
.near-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--blue); box-shadow: 0 0 0 4px color-mix(in srgb, var(--blue) 25%, transparent); }
.lcard-dist { color: var(--accent-ink); font-weight: 600; }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgb(37 99 235 / .25), 0 1px 4px rgb(0 0 0 / .3); }
.f-more { grid-column: 1 / -1; }
.f-more .f-more-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px 12px; align-items: end; margin-top: 10px; }
.f-more .f-more-grid label { display: flex; flex-direction: column; }
.f-group { grid-column: span 2; border: 1px solid var(--line); border-radius: 10px; padding: 6px 12px 8px; margin: 0; display: flex; flex-wrap: wrap; gap: 0 14px; }
.f-group legend { font-size: .78rem; font-weight: 650; color: var(--muted); padding: 0 4px; }
.f-group .f-check { min-height: 34px; }
.lcard-type { margin: 0 0 2px; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); }
.lcard-monthly { font-size: .8rem; color: var(--muted); margin-left: 4px; }
.listing-type { margin: 0 0 6px; font-size: .78rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.details-list { margin-bottom: 18px; }
@media (max-width: 640px) { .f-group { grid-column: 1 / -1; } }
.cat-tabs a, .cat-tabs a:hover { text-decoration: none; }
