/* The public page has a light palette independent of the saved Studio theme. */
.marketing {
  --bg: white;
  --text: var(--color-slate-900, #0f172a);
  --landing-muted-text: #334155;
  --quiet: var(--color-slate-600, #475569);
  --surface: var(--color-slate-50, #f8fafc);
  --subtle: var(--color-slate-100, #f1f5f9);
  --line: var(--color-slate-200, #e2e8f0);
  --line-strong: var(--color-slate-300, #cbd5e1);
  --brand: var(--color-blue-700, #1d4ed8);
  --brand-hover: var(--color-blue-800, #1e40af);
  --brand-soft: var(--color-blue-50, #eff6ff);
  --brand-line: var(--color-blue-200, #bfdbfe);
  --amber: var(--color-amber-300, #fcd34d);
  --emerald: var(--color-emerald-300, #6ee7b7);
  --emerald-bg: var(--color-emerald-50, #ecfdf5);
  --emerald-line: var(--color-emerald-200, #a7f3d0);
  --emerald-text: var(--color-emerald-800, #065f46);
  --radius-sm: 7px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --mono: "JetBrains Mono", Consolas, monospace;
  --primary: var(--brand);
  --primary-foreground: white;
  --background: white;
  --foreground: var(--text);
  --muted-foreground: var(--quiet);
  color-scheme: light;
  overflow-x: clip;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 16px/1.55 Inter, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
html { scroll-padding-top: 82px; }
.marketing [hidden] { display: none !important; }
.marketing :is(a, button, input, summary):focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; }
.marketing :is(a, button, input, summary) { -webkit-tap-highlight-color: transparent; }
.marketing :is(button, summary) { cursor: pointer; }
.marketing :is(h1, h2, h3, p, figure) { margin: 0; }
.marketing a { text-decoration: none; }
.wrap { width: min(1200px, calc(100% - 96px)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.icon { width: 1.15em; height: 1.15em; display: inline-block; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.skip-link:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.skip-link:focus { position: fixed; inset: 8px auto auto 12px; z-index: 40; background: white; padding: 10px; }
.site-header { position: sticky; top: 0; z-index: 20; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.95); backdrop-filter: blur(12px); }
.nav-inner, .header-actions, .hero-actions, .scene-head, .scene-head > span, .section-heading, .footer-line { display: flex; align-items: center; }
.nav-inner { min-height: 70px; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 1.17rem; font-weight: 730; letter-spacing: -.045em; color: var(--text); white-space: nowrap; }
.brand-mark { width: 35px; height: 35px; }
#nav-links { display: flex; align-items: center; gap: 32px; }
#nav-links a, .footer-line > a:last-child { font-size: .88rem; font-weight: 560; color: var(--quiet); }
#nav-links a:hover, #nav-links a[aria-current], .footer-line > a:hover { color: var(--brand); }
.header-actions { gap: 8px; }
.button { min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid transparent; border-radius: 10px; padding: 10px 18px; font: inherit; font-size: .9rem; line-height: 1.25; font-weight: 620; transition: background .16s ease, border-color .16s ease; }
.button.primary, .button.nav-login { background: var(--brand); color: white; }
.button.primary:hover, .button.nav-login:hover { background: var(--brand-hover); color: white; }
.button.secondary { color: var(--text); background: var(--bg); border-color: var(--line-strong); }
.button.secondary:hover { background: var(--surface); border-color: var(--quiet); }
.button.nav-login { min-height: 39px; font-size: .84rem; }
#nav-toggle { width: 42px; height: 42px; border: 1px solid var(--line); border-radius: 9px; display: grid; place-items: center; }
.hero { position: relative; isolation: isolate; background: linear-gradient(107deg, white 19%, var(--brand-soft) 100%); }
.hero::before { content: ""; pointer-events: none; position: absolute; z-index: -1; inset: 0 0 0 42%; background-image: linear-gradient(to right, var(--brand-line) 1px, transparent 1px), linear-gradient(to bottom, var(--brand-line) 1px, transparent 1px); background-size: 34px 34px; opacity: .42; mask-image: linear-gradient(95deg, transparent, black); }
.hero-layout { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: clamp(30px, 4vw, 60px); padding-block: clamp(45px, 4.5vw, 70px); }
.hero-copy { min-width: 0; }
.eyebrow { display: flex; align-items: center; gap: 8px; color: var(--brand); font: 650 .7rem/1.5 var(--mono); text-transform: uppercase; letter-spacing: .1em; }
.eyebrow .icon { width: 17px; height: 17px; }
#hero-title { font-size: clamp(3.35rem, 5.05vw, 4.7rem); line-height: 1.075; font-weight: 700; letter-spacing: -.05em; margin-block: 19px; }
#hero-title em { font-style: normal; color: var(--brand); white-space: nowrap; }
.lead, .section-sub, .inspector-desc, .plan-desc { color: var(--landing-muted-text); }
.lead { max-width: 43ch; font-size: clamp(1rem, 1.14vw, 1.1rem); line-height: 1.65; }
.hero-actions { gap: 10px; margin-top: 25px; flex-wrap: wrap; }
.hero-actions .button { min-height: 46px; }
.scene-card { min-width: 0; overflow: hidden; border: 1px solid var(--line-strong); border-radius: 16px; background: white; box-shadow: 0 18px 46px -20px rgba(30,64,175,.36), 0 2px 8px rgba(15,23,42,.04); }
.scene-head { justify-content: space-between; gap: 8px; padding: 12px 17px; }
.scene-head > span { gap: 9px; font-size: .84rem; font-weight: 650; }
.scene-head .icon { width: 19px; height: 19px; color: var(--brand); }
.scene-head small { font: 500 .65rem/1.4 var(--mono); color: var(--quiet); }
.compare-frame { --split: 62%; position: relative; isolation: isolate; overflow: hidden; }
.compare-frame img { width: 100%; height: auto; display: block; }
.scene-layer { position: absolute; pointer-events: none; inset: 0; }
.original-layer { clip-path: inset(0 calc(100% - var(--split)) 0 0); }
.proposed-layer { clip-path: inset(0 0 0 var(--split)); }
.object-box, .car-box { position: absolute; border: 2px solid; }
.object-box { top: 25.7%; width: 33.1%; height: 57.5%; }
.object-box span, .car-box span { position: absolute; bottom: 100%; padding: 2px 6px; line-height: 1.35; font: 600 clamp(.58rem,.8vw,.72rem)/1.4 var(--mono); white-space: nowrap; }
.original-box { left: 42.8%; border-style: dashed; border-color: var(--amber); background-color: rgba(255,191,0,.035); }
.original-box span { left: -2px; color: var(--text); background: var(--amber); }
.proposed-box { left: 55.6%; border-color: var(--emerald); background-color: rgba(50,220,150,.035); }
.proposed-box span { right: -2px; background: var(--emerald); color: var(--text); }
.car-box { left: 5.1%; top: 48.6%; width: 11.8%; height: 10%; border: 1px solid rgba(255,255,255,.9); }
.car-box span { left: -1px; color: white; background: rgba(15,23,42,.72); }
.compare-divider { position: absolute; inset: 0 auto 0 var(--split); width: 2px; background: white; transform: translateX(-50%); box-shadow: 0 0 4px rgba(15,23,42,.4); }
.compare-divider > span { position: absolute; left: 50%; top: 58%; transform: translate(-50%,-50%); display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: white; color: var(--text); box-shadow: 0 2px 7px rgba(15,23,42,.26); }
.compare-range { position: absolute; z-index: 1; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; touch-action: pan-y; }
.compare-frame:focus-within { outline: 3px solid var(--brand); outline-offset: -3px; }
.scene-foot { display: flex; justify-content: center; padding: 8px 12px; }
.scene-presets { display: flex; gap: 3px; align-items: center; }
.scene-presets button { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; padding: 5px 10px; border-radius: 7px; font: 550 .75rem/1.35 Inter,sans-serif; color: var(--quiet); }
.scene-presets button:hover, .scene-presets button[aria-pressed=true] { background: var(--subtle); color: var(--text); }
.swatch { display: inline-block; width: 8px; height: 8px; flex: none; border-radius: 2px; }
.swatch.original { background: var(--color-amber-500, #d97706); }
.swatch.proposed { background: var(--color-emerald-600, #059669); }
.compatibility { background: white; border-block: 1px solid var(--line); }
.formats, .formats > div, .formats b { display: flex; align-items: center; }
.formats { justify-content: center; min-height: 77px; gap: clamp(35px, 5vw, 76px); }
.formats > div { gap: clamp(18px,2.6vw,42px); }
.formats > div + div { border-left: 1px solid var(--line-strong); padding-left: clamp(35px,5vw,76px); }
.format-label { color: var(--quiet); font-size: .76rem; }
.formats b { gap: 8px; font-size: 1rem; font-weight: 630; letter-spacing: -.02em; color: var(--landing-muted-text); }
.formats .icon { width: 20px; height: 20px; }
.section { padding-block: clamp(56px, 5.7vw, 84px); }
.section-tinted { background: var(--surface); border-block: 1px solid var(--line); }
.section h2 { font-size: clamp(2rem, 3.1vw, 2.8rem); line-height: 1.16; font-weight: 680; letter-spacing: -.05em; text-wrap: balance; }
.section .eyebrow { margin-bottom: 8px; }
.section-heading { justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 25px; }
.section-sub { font-size: .91rem; max-width: 36ch; }
.benefit-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: clamp(16px,1.75vw,26px); margin-top: 26px; }
.benefit h3 { margin: 17px 0 5px; font-size: 1.18rem; font-weight: 660; letter-spacing: -.035em; }
.benefit > p { color: var(--quiet); font-size: .91rem; line-height: 1.6; }
.art { display: flex; justify-content: center; align-items: center; height: clamp(150px,14vw,182px); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: var(--surface); }
.queue-art { background: linear-gradient(145deg, var(--brand-soft), var(--subtle)); }
.queue-sheet, .export-sheet { width: min(78%,252px); border: 1px solid var(--line-strong); border-radius: 10px; background: white; box-shadow: 0 8px 17px -10px rgba(15,23,42,.28); }
.queue-sheet { transform: rotate(-3deg); padding: 5px 11px; }
.queue-sheet > div { display: flex; align-items: center; gap: 9px; padding-block: 7px; color: var(--quiet); font-size: .73rem; line-height: 1.2; }
.queue-sheet > div + div { border-top: 1px solid var(--line); }
.queue-sheet b { font-weight: 620; color: var(--text); }
.queue-sheet .icon { margin-left: auto; color: var(--brand); }
.thumb { width: 42px; height: 29px; border-radius: 4px; background-image: url("./street-scene.webp"); background-size: 220%; }
.cyclist-thumb { background-position: 94% 56%; }
.car-thumb { background-position: left 60%; }
.pair-art { gap: 8px; padding-inline: clamp(10px,1.2vw,20px); }
.pair-tile { width: 40%; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: white; box-shadow: 0 6px 14px -10px rgba(15,23,42,.32); }
.pair-tile img { display: block; width: 100%; height: auto; }
.pair-tile > span { display: flex; align-items: center; gap: 6px; padding: 5px 7px; color: var(--text); font-size: .64rem; }
.pair-arrow { color: var(--quiet); width: 16px; }
.export-art { background: linear-gradient(140deg, var(--surface), var(--emerald-bg)); }
.export-sheet { width: min(76%,218px); transform: rotate(3deg); padding: 9px 15px; }
.export-sheet > div, .export-sheet > span { display: flex; align-items: center; gap: 7px; }
.export-sheet > div { padding-bottom: 7px; margin-bottom: 5px; border-bottom: 1px solid var(--line); font-size: .76rem; }
.export-sheet i { margin-left: auto; border-radius: 50%; background: var(--emerald-bg); color: var(--emerald-text); display: grid; place-items: center; width: 20px; height: 20px; }
.export-sheet > span { font: .64rem/1.8 var(--mono); color: var(--quiet); }
.benchmark { border-top: 1px solid var(--line); margin-top: 25px; }
.benchmark summary, .faq-layout summary { width: fit-content; cursor: pointer; font-weight: 620; }
.benchmark summary { padding-top: 15px; color: var(--brand); font-size: .87rem; }
.video-layout, .faq-layout { display: grid; grid-template-columns: .84fr 1.16fr; align-items: center; gap: clamp(28px,5vw,76px); }
.video-layout { grid-template-areas: "title player" "chapters player"; row-gap: 16px; }
.video-intro { grid-area: title; align-self: end; }
#video-chapters { grid-area: chapters; align-self: start; }
.video-layout video { grid-area: player; display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: 14px; background: var(--text); }
.faq-layout { align-items: start; }
.site-footer { background: var(--surface); border-top: 1px solid var(--line); padding-block: 27px; }
.footer-line { justify-content: space-between; gap: 10px; }
.site-footer p { margin-top: 16px; font-size: .72rem; color: var(--quiet); }
.site-footer p a { text-decoration: underline; text-underline-offset: 2px; }
/* Standalone installations can choose their Studio server here. */
.access-dialog {
  width: min(92vw, 500px);
  margin: auto;
  max-height: 90dvh;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 0;
  background: var(--bg);
  color: var(--text);
  box-shadow: 0 24px 56px -12px rgba(15, 23, 42, .28);
}
.access-dialog::backdrop { background: rgba(15, 23, 42, .52); backdrop-filter: blur(4px); }
.modal-head { display: flex; align-items: start; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.modal-head h3 { font-size: 1.12rem; }
.modal-head p { font-size: .85rem; color: var(--landing-muted-text); margin-top: 4px; }
.modal-close { border: 1px solid var(--line); border-radius: var(--radius-sm); width: 32px; height: 32px; display: grid; place-items: center; color: var(--landing-muted-text); }
.modal-close:hover { background: var(--subtle); color: var(--text); }
.modal-body { padding: 18px 20px; display: flex; flex-direction: column; gap: 14px; }
.modal-field { display: flex; flex-direction: column; gap: 5px; }
.modal-field label { font-size: .84rem; font-weight: 600; color: var(--text); }
.modal-field input {
  min-height: 40px;
  padding: 8px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--line-strong);
  background: var(--bg);
  color: var(--text);
  font: .9rem/1.4 Inter, sans-serif;
}
.port-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip-btn { font: 550 .78rem/1.3 var(--mono); padding: 5px 10px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--landing-muted-text); }
.chip-btn:hover { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.modal-summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 12px 14px; font-size: .86rem; color: var(--landing-muted-text); }
.modal-summary strong { color: var(--text); display: block; margin-bottom: 4px; }
.modal-error { color: var(--destructive); font-size: .84rem; font-weight: 550; }
.modal-preview-box { background: var(--emerald-bg); border: 1px solid var(--emerald-line); color: var(--emerald-text); border-radius: var(--radius-md); padding: 12px 14px; font-size: .86rem; }
.modal-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.modal-advanced { border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); padding: 10px 12px; }
.modal-advanced summary { cursor: pointer; font-size: .82rem; font-weight: 600; color: var(--brand-hover); }
.modal-advanced-body { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.modal-actions { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px 20px; border-top: 1px solid var(--line); background: var(--surface); }
.modal-actions .button { flex: 1 1 auto; }

@media (max-width: 960px) {
  .wrap { width: calc(100% - 48px); }
  .hero-layout { grid-template-columns: .9fr 1.1fr; gap: 24px; }
  #hero-title { font-size: clamp(2.8rem,5.6vw,3.55rem); }
}
@media (max-width: 760px) {
  .nav-inner { min-height: 61px; }
  #nav-links { position: absolute; inset: 100% 0 auto; background: white; border-bottom: 1px solid var(--line); padding: 13px 24px; gap: 4px; flex-direction: column; align-items: stretch; }
  #nav-links a { padding: 9px 0; }
  .hero-layout { grid-template-columns: 1fr; gap: 28px; padding-block: 37px; }
  #hero-title { font-size: clamp(2.85rem,7.6vw,4rem); margin-block: 14px; }
  .lead { max-width: 49ch; }
  .hero::before { inset: 36% 0 0 10%; }
  .scene-card { width: min(100%,570px); justify-self: center; }
  .hero-actions { margin-top: 20px; }
  .formats { gap: 14px; padding-block: 13px; flex-wrap: wrap; }
  .formats > div, .formats > div + div { gap: 13px; padding: 0; border: 0; }
  .benefit-grid { grid-template-columns: 1fr; gap: 26px; }
  .art { height: 155px; }
  .benefit h3 { margin-top: 11px; }
  .section-heading { align-items: flex-start; flex-direction: column; gap: 8px; }
  .section-sub { max-width: none; }
  .video-layout, .faq-layout { grid-template-columns: 1fr; }
  .video-layout { grid-template-areas: "title" "player" "chapters"; }
}
@media (max-width: 480px) {
  .wrap { width: calc(100% - 36px); }
  .brand { gap: 7px; font-size: 1.03rem; }
  .brand-mark { width: 30px; height: 30px; }
  .nav-inner, .header-actions { gap: 5px; }
  .button.nav-login { padding: 7px 10px; min-height: 36px; font-size: .75rem; gap: 4px; }
  #nav-toggle { width: 35px; height: 36px; }
  .hero-actions .button { padding-inline: 13px; gap: 7px; font-size: .84rem; }
  .formats { display: grid; justify-content: stretch; gap: 9px; }
  .formats > div { display: grid; grid-template-columns: 1fr .8fr 1.1fr; }
  .formats b { font-size: .85rem; gap: 5px; }
  .formats .icon { width: 16px; height: 16px; }
  .scene-foot { padding-inline: 4px; }
  .scene-presets button { padding-inline: 8px; }
  .modal-row-2 { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
