/* Landing page. Same drafting-table palette as the app; the demo is framed as a drawing sheet with its title block. */
.returning #landing { display: none !important; }

.header-login {
  margin-left: auto; background: transparent; border-color: #fff; color: #fff; padding: 7px 14px;
}
.header-login:hover { background: #fff; color: var(--ink); }

#landing { max-width: 1240px; margin: 0 auto; padding: 0 24px 72px; }

.hero { padding: 64px 0 40px; max-width: 1000px; }
.hero h2 {
  font-size: clamp(38px, 6.2vw, 72px); line-height: 1.02; font-weight: 680; font-stretch: 75%;
  letter-spacing: -0.012em; margin: 0 0 22px; max-width: 17ch; text-wrap: balance;
}
.lede { font-size: 19px; line-height: 1.5; margin: 0 0 28px; max-width: 58ch; color: #3a3f45; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta { font-size: 16px; padding: 13px 24px; min-height: 48px; }
.fine { font-size: 14px; color: var(--pencil); margin: 18px 0 0; }

/* ---------- demo: a drawing sheet ---------- */
.demo {
  background: var(--sheet); border: 1.5px solid var(--ink); padding: 10px;
  box-shadow: 0 0 0 6px var(--sheet), 0 0 0 7px var(--rule);
  margin: 8px 0 0;
}
.demo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 4px 4px 12px; }
.demo-steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px; }
.demo-steps button {
  display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 6px 12px 6px 8px;
  background: none; border: 1px solid transparent; color: var(--pencil); font-weight: 600; font-size: 14px;
}
.demo-steps button span {
  display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%;
  border: 1.5px solid var(--rule); font-size: 12px; color: var(--pencil); background: var(--sheet);
}
.demo-steps button:hover { color: var(--ink); }
.demo-steps button.done { color: var(--ink); }
.demo-steps button.done span { border-color: var(--start); background: var(--start); color: #fff; }
.demo-steps button[aria-current="step"] { color: var(--ink); border-color: var(--ink); border-radius: 6px; }
.demo-steps button[aria-current="step"] span { border-color: var(--ink); background: var(--ink); color: #fff; }
.demo-play { min-height: 40px; padding: 8px 16px; background: var(--sheet); color: var(--blue); }

.demo-stage {
  position: relative; aspect-ratio: 12 / 5; min-height: 340px; overflow: hidden;
  border: 1px solid var(--ink); background: #dfe2dc;
}
.demo-layer { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .45s ease, visibility 0s .45s; }
.demo-layer.on { opacity: 1; visibility: visible; transition: opacity .45s ease; }

.demo-map, .demo-schematic { position: absolute; inset: 0; width: 100%; height: 100%; }
.demo-schematic { display: none; }
.no-map .demo-schematic { display: block; }
.no-map .demo-map { display: none; }

.demo-search {
  position: absolute; top: 16px; left: 16px; width: min(380px, calc(100% - 32px));
  background: #fff; border-radius: 6px; padding: 11px 14px; font-size: 15px; min-height: 44px;
  box-shadow: 0 2px 10px rgba(34, 38, 43, 0.25); transition: opacity .3s;
}
.demo-search:not(.on) { opacity: 0; }
.demo-search i { display: inline-block; width: 1.5px; height: 1.1em; background: var(--ink); vertical-align: -3px; margin-left: 1px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.demo-suggest {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); background: #fff; border-radius: 6px; padding: 9px 14px;
  font-size: 13px; color: var(--pencil); box-shadow: 0 6px 18px rgba(34, 38, 43, 0.22);
}
.demo-suggest strong { display: block; color: var(--ink); font-size: 14px; }
.demo-length {
  position: absolute; right: 16px; top: 16px; background: #fff; border-radius: 6px; padding: 8px 12px;
  font-size: 11px; color: var(--pencil); display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(34, 38, 43, 0.25);
}
.demo-length strong { font-size: 24px; line-height: 1.1; color: var(--ink); font-variant-numeric: tabular-nums; }

.demo-photos-layer {
  background: var(--paper); padding: 12px; display: grid; gap: 8px;
  grid-template-columns: repeat(4, 1fr); grid-template-rows: repeat(2, 1fr);
}
.demo-caption { margin: 0; padding: 4px 6px; font-size: 15px; line-height: 1.45; color: var(--ink); align-self: start; }
.demo-photos { display: contents; }
.demo-photos li { display: block; position: relative; min-height: 0; opacity: 0; transform: translateY(6px); transition: opacity .3s, transform .3s; }
.demo-photos li.shown { opacity: 1; transform: none; }
.demo-photos img { display: block; width: 100%; height: 100%; object-fit: cover; border-radius: 4px; border: 2px solid transparent; transition: filter .3s, border-color .3s; }
.demo-photos li em {
  position: absolute; left: 6px; right: 6px; bottom: 6px; padding: 5px 7px; font-style: normal; font-size: 11.5px; line-height: 1.3;
  background: var(--stop); color: #fff; border-radius: 3px; opacity: 0; transition: opacity .3s;
}
.demo-photos li.excluded img { filter: grayscale(1) opacity(.45); border-color: var(--stop); }
.demo-photos li.excluded em { opacity: 1; }

.demo-result-layer { background: #fff; display: flex; align-items: center; justify-content: center; }
.demo-elevation { position: relative; width: 100%; height: 100%; }
.demo-elevation img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; transition: opacity .5s; }
.demo-elevation[data-kind="color"] .bw, .demo-elevation[data-kind="bw"] .color { opacity: 0; }
.demo-kind { position: absolute; top: 12px; right: 12px; display: flex; background: #fff; border: 1px solid var(--rule); border-radius: 6px; padding: 3px; }
.demo-kind button { background: none; border: none; color: var(--pencil); padding: 6px 12px; min-height: 34px; font-size: 13px; }
.demo-kind button[aria-pressed="true"] { background: var(--ink); color: #fff; }

/* Title block: fills in as the request takes shape. */
.title-block {
  display: grid; grid-template-columns: 2.2fr 1fr 1fr 2fr 2fr; margin: 10px 0 0;
  border: 1px solid var(--ink);
}
.title-block > div { padding: 8px 12px 10px; min-width: 0; }
.title-block > div + div { border-left: 1px solid var(--ink); }
.title-block dt { font-size: 11.5px; color: var(--pencil); }
.title-block dd { margin: 2px 0 0; font-size: 15px; font-weight: 600; min-height: 1.45em; font-stretch: 85%; overflow-wrap: anywhere; }
.title-block > div:not(.filled) dd { background: linear-gradient(var(--rule), var(--rule)) left 1.25em / 70% 1px no-repeat; }
.demo-note { margin: 10px 2px 2px; font-size: 13px; color: var(--pencil); }

/* ---------- below the demo ---------- */
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding: 64px 0 0; max-width: 1040px; }
.facts h3 { font-size: 22px; font-weight: 650; font-stretch: 80%; margin-bottom: 12px; }
.facts ul { margin: 0; padding: 0 0 0 18px; }
.facts li { margin: 0 0 10px; font-size: 16px; line-height: 1.5; max-width: 52ch; }
.facts li::marker { color: var(--pencil); }

.closing { margin-top: 64px; padding-top: 28px; border-top: 1.5px solid var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.closing h3 { font-size: clamp(24px, 3vw, 32px); font-weight: 650; font-stretch: 78%; }

.back { margin: 0 0 12px; font-size: 14px; }

@media (max-width: 760px) {
  #landing { padding: 0 16px 56px; }
  .hero { padding: 36px 0 28px; }
  .lede { font-size: 17px; }
  .demo { padding: 6px; box-shadow: none; }
  .demo-steps button { font-size: 13px; padding: 4px 8px 4px 4px; }
  .demo-stage { aspect-ratio: 4 / 3.4; min-height: 0; }
  .demo-photos-layer { grid-template-columns: repeat(2, 1fr); grid-template-rows: none; grid-auto-rows: 150px; overflow-y: auto; }
  .demo-caption { font-size: 13.5px; }
  .title-block { grid-template-columns: 1fr 1fr; }
  .title-block > div + div { border-left: none; }
  .title-block > div { border-top: 1px solid var(--ink); }
  .title-block > div:first-child { border-top: none; grid-column: 1 / -1; }
  .title-block > div:nth-child(3) { border-left: 1px solid var(--ink); }
  .title-block > div:nth-child(4), .title-block > div:nth-child(5) { grid-column: 1 / -1; }
  .facts { grid-template-columns: 1fr; gap: 32px; padding-top: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .demo-layer, .demo-layer.on, .demo-photos li, .demo-photos img, .demo-elevation img { transition: none; }
  .demo-search i { animation: none; }
}
