/* Agudo360: Daylight Architectural / Spatial Gallery */

:root {
  --bg: #F4F2EC;
  --ink: #141619;
  --slate: #5A606B;
  --blue: #1F4BFF;
  --vermilion: #E04F2B;
  --grid: rgba(20, 22, 25, 0.07);
  --line: rgba(20, 22, 25, 0.16);
  --paper: #FBFAF7;
  --paper-edge: rgba(20, 22, 25, 0.2);
  --font-display: "Space Grotesk", "Avenir Next", "Segoe UI", sans-serif;
  --font-body: "Plus Jakarta Sans", "Segoe UI", "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "SF Mono", "Consolas", monospace;
  --header-h: 64px;
  --pad: 28px;
  --max: 1120px;
  --radius: 0;
  --focus: 2px solid var(--blue);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  color: var(--ink);
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 12px);
}

body {
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  text-rendering: geometricPrecision;
  min-height: 100%;
}

img, svg, canvas { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; background: none; border: 0; }
button { cursor: pointer; }

:focus-visible {
  outline: var(--focus);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -48px;
  z-index: 100;
  background: var(--ink);
  color: var(--bg);
  padding: 8px 14px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
}
.skip:focus { top: 12px; }

.page {
  min-height: 100%;
  background-color: var(--bg);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 40px 40px;
  background-position: -1px -1px;
  background-attachment: fixed;
}

/* ---------- Header ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 20px;
  height: var(--header-h);
  padding: 0 var(--pad);
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--bg) 88%, white);
  backdrop-filter: blur(12px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.mark { width: 28px; height: 28px; flex: 0 0 auto; }
.brand-word {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.08em;
  line-height: 1;
}
.brand-tag {
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--slate);
  line-height: 1.25;
  max-width: 22ch;
  text-transform: uppercase;
}

.nav {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 22px;
  flex-wrap: wrap;
}
.nav a {
  font-size: 13px;
  font-weight: 500;
  color: var(--slate);
  letter-spacing: 0.01em;
  white-space: nowrap;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); }

.cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.01em;
  padding: 9px 14px;
  line-height: 1;
  white-space: nowrap;
}
.cta:hover { filter: brightness(1.06); }
.cta-arrow { width: 14px; height: 14px; display: block; }

.menu-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.menu-toggle span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--ink);
}

/* ---------- Hero ---------- */
.hero {
  display: grid;
  grid-template-columns: minmax(280px, 36%) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  grid-template-areas:
    "copy stage"
    "telem stage";
  gap: 0 22px;
  padding: 22px var(--pad) 28px;
  min-height: calc(100svh - var(--header-h));
}
.hero-copy {
  grid-area: copy;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 8px 8px 8px 0;
  min-width: 0;
}
.stage { grid-area: stage; min-width: 0; min-height: 0; display: flex; }
.telemetry { grid-area: telem; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  color: var(--slate);
  margin-bottom: 18px;
  text-transform: uppercase;
}
.hero h1 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(32px, 4.2vw, 46px);
  line-height: 0.98;
  letter-spacing: -0.038em;
  color: var(--ink);
  margin-bottom: 16px;
}
.subhead {
  font-size: 15.5px;
  line-height: 1.45;
  color: var(--slate);
  max-width: 42ch;
  margin-bottom: 14px;
}
.operator {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--slate);
  max-width: 44ch;
  margin-bottom: 24px;
}
.operator strong { color: var(--ink); font-weight: 600; }

.actions { display: flex; flex-wrap: wrap; gap: 10px; }
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { filter: brightness(1.06); }
.btn-secondary {
  background: transparent;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
}
.btn-secondary:hover { background: rgba(20, 22, 25, 0.04); }

.telemetry {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
  padding: 16px 0 0;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--slate);
  border-top: 1px solid var(--line);
  margin-top: 8px;
}
.telemetry span { display: inline-flex; align-items: center; gap: 8px; }
.dot {
  width: 6px;
  height: 6px;
  background: #1a9a4a;
  display: inline-block;
  flex: 0 0 auto;
}
.dot-blue { background: var(--blue); }
.dot-vermilion { background: var(--vermilion); }

/* 3D frame */
.frame {
  position: relative;
  flex: 1;
  width: 100%;
  min-height: 520px;
  padding: 14px;
  background: var(--paper);
  box-shadow:
    inset 0 0 0 1px var(--paper-edge),
    0 18px 50px rgba(20, 22, 25, 0.08);
}
.tick {
  position: absolute;
  width: 18px;
  height: 18px;
  pointer-events: none;
  z-index: 5;
}
.tick::before, .tick::after {
  content: "";
  position: absolute;
  background: var(--ink);
}
.tick::before { width: 18px; height: 1px; }
.tick::after { width: 1px; height: 18px; }
.tick-tl { top: -1px; left: -1px; }
.tick-tr { top: -1px; right: -1px; }
.tick-tr::before { right: 0; }
.tick-tr::after { right: 0; }
.tick-bl { bottom: -1px; left: -1px; }
.tick-bl::before { bottom: 0; }
.tick-bl::after { bottom: 0; }
.tick-br { bottom: -1px; right: -1px; }
.tick-br::before { right: 0; bottom: 0; }
.tick-br::after { right: 0; bottom: 0; }

.frame-id {
  position: absolute;
  top: 20px;
  left: 24px;
  z-index: 3;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: rgba(20, 22, 25, 0.58);
  pointer-events: none;
  mix-blend-mode: multiply;
  text-transform: uppercase;
}

.viewport {
  position: relative;
  height: 100%;
  min-height: 492px;
  overflow: hidden;
  background: #cfc8bb;
  touch-action: none;
}
#gl {
  display: block;
  width: 100%;
  height: 100%;
}

.hotspots { position: absolute; inset: 0; pointer-events: none; }
.pin {
  position: absolute;
  transform: translate(0, -50%);
  margin-left: -6px;
  display: flex;
  align-items: center;
  gap: 8px;
  pointer-events: auto;
  z-index: 2;
  filter: drop-shadow(0 6px 14px rgba(20, 22, 25, 0.18));
}
.pin.pin-end {
  flex-direction: row-reverse;
  transform: translate(-100%, -50%);
  margin-left: 6px;
}
.pin-dot {
  width: 11px;
  height: 11px;
  background: var(--vermilion);
  border: 2px solid #fff;
  border-radius: 50%;
  position: relative;
  flex: 0 0 auto;
}
.pin-dot::after {
  content: "";
  position: absolute;
  inset: -6px;
  border: 1px solid var(--vermilion);
  border-radius: 50%;
  opacity: 0.55;
}
.pin-label {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--ink);
  background: rgba(244, 242, 236, 0.94);
  border: 1px solid rgba(20, 22, 25, 0.18);
  padding: 5px 8px 4px;
  white-space: nowrap;
  display: inline-flex;
  align-items: baseline;
  gap: 0;
}
.pin-name::before { content: " · "; }
.pin:hover, .pin:focus-visible, .pin[aria-expanded="true"] { z-index: 5; }
.pin.is-hidden { display: none; }

.spot-card {
  position: absolute;
  top: 44px;
  right: 16px;
  left: auto;
  bottom: auto;
  z-index: 6;
  max-width: 320px;
  width: min(320px, calc(100% - 32px));
  margin: 0;
  padding: 16px 16px 14px;
  background: color-mix(in srgb, var(--paper) 86%, white);
  border: 1px solid rgba(20, 22, 25, 0.18);
  backdrop-filter: blur(14px);
  box-shadow: 0 16px 40px rgba(20, 22, 25, 0.14);
}
.spot-card[hidden] { display: none; }
.spot-card-kicker {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  color: var(--vermilion);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.spot-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 8px;
}
.spot-card p {
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--slate);
  margin-bottom: 12px;
}
.spot-card-close {
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  box-shadow: inset 0 0 0 1px var(--ink);
  padding: 6px 10px;
}

.hud {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 4;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 8px;
  padding: 6px 8px;
  background: rgba(244, 242, 236, 0.9);
  border: 1px solid rgba(20, 22, 25, 0.16);
  backdrop-filter: blur(10px);
  min-width: 0;
}
.hud-modes, .hud-presets, .hud-spots { display: flex; gap: 2px; flex: 0 0 auto; flex-wrap: wrap; }
.hud-presets[hidden], .hud-spots[hidden] { display: none; }
.hud-btn {
  height: 28px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: var(--slate);
  text-transform: uppercase;
}
.hud-btn.is-on {
  background: var(--ink);
  color: #f4f2ec;
}
.hud-readout {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.04em;
  color: var(--slate);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.hud-hint {
  flex: 1 1 100%;
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.04em;
  color: var(--slate);
}

.touch-pad {
  display: none;
  position: absolute;
  right: 12px;
  bottom: 86px;
  z-index: 4;
  width: 128px;
  height: 128px;
  pointer-events: none;
}
.touch-pad.is-on { display: grid; }
.touch-pad button {
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: rgba(244, 242, 236, 0.92);
  border: 1px solid rgba(20, 22, 25, 0.18);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  color: var(--ink);
  position: absolute;
  user-select: none;
  -webkit-user-select: none;
  touch-action: manipulation;
}
.touch-pad button:active {
  background: rgba(31, 75, 255, 0.14);
}
.touch-pad [data-walk="KeyW"] { top: 0; left: 44px; }
.touch-pad [data-walk="KeyS"] { bottom: 0; left: 44px; }
.touch-pad [data-walk="KeyA"] { top: 44px; left: 0; }
.touch-pad [data-walk="KeyD"] { top: 44px; right: 0; }

/* ---------- Page sections ---------- */
.section {
  padding: 72px var(--pad);
  border-top: 1px solid var(--line);
}
.section-inner { max-width: var(--max); margin: 0 auto; }
.kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 10px;
}
.section h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 3.4vw, 40px);
  letter-spacing: -0.038em;
  line-height: 1.02;
  margin-bottom: 12px;
}
.lede {
  font-size: 16.5px;
  color: var(--slate);
  max-width: 58ch;
  margin-bottom: 36px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.step {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 22px 24px;
  min-width: 0;
}
.step-num {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  color: var(--blue);
  margin-bottom: 12px;
}
.step h3 {
  font-family: var(--font-display);
  font-size: 20px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  margin-bottom: 10px;
}
.step p { color: var(--slate); font-size: 14.5px; }
.step a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Comparison */
.compare-wrap { overflow: hidden; }
.compare {
  width: 100%;
  border-collapse: collapse;
  background: var(--paper);
  border: 1px solid var(--line);
  font-size: 14.5px;
}
.compare th, .compare td {
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  border-right: 1px solid var(--line);
}
.compare th:last-child, .compare td:last-child { border-right: 0; }
.compare thead th {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 650;
  letter-spacing: -0.02em;
  background: color-mix(in srgb, var(--bg) 60%, var(--paper));
}
.compare th.col-agudo, .compare td.col-agudo {
  background: color-mix(in srgb, var(--blue) 7%, var(--paper));
}
.compare .attr {
  font-weight: 600;
  width: 22%;
  color: var(--ink);
}
.compare .win { color: var(--ink); font-weight: 600; }
.compare-note {
  margin-top: 14px;
  font-size: 13px;
  color: var(--slate);
  max-width: 80ch;
}

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.price-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 28px 26px 26px;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.price-card.is-featured {
  box-shadow: inset 0 0 0 1px var(--ink);
}
.price-card .tier {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 10px;
}
.price-card h3 {
  font-family: var(--font-display);
  font-size: 26px;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin-bottom: 8px;
}
.price {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(30px, 3.2vw, 42px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 4px;
}
.price span {
  font-size: 16px;
  letter-spacing: 0;
  font-weight: 600;
  color: var(--slate);
}
.per-month {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 18px;
}
.price-card ul {
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  color: var(--slate);
  font-size: 14.5px;
}
.price-card li {
  position: relative;
  padding: 7px 0 7px 18px;
  border-top: 1px solid var(--line);
}
.price-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 15px;
  width: 8px;
  height: 1.5px;
  background: var(--blue);
}
.price-card .btn { width: 100%; margin-top: auto; }
.pricing-foot {
  margin-top: 22px;
  font-size: 14.5px;
  color: var(--slate);
  max-width: 70ch;
}
.pricing-foot strong { color: var(--ink); }
.pricing-addons-head {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin: 36px 0 14px;
}
.pricing-addons {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

/* Use cases */
.cards-use {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.use-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 22px 20px 24px;
  min-width: 0;
}
.use-card h3 {
  font-family: var(--font-display);
  font-size: 18px;
  letter-spacing: -0.03em;
  margin-bottom: 8px;
}
.use-card p { color: var(--slate); font-size: 14.5px; }
.use-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 8px;
}
.use-card.is-featured {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(16ch, 0.85fr) minmax(0, 1.4fr);
  gap: 4px 28px;
  align-items: start;
  box-shadow: inset 0 0 0 1px var(--ink);
  padding: 26px 26px 28px;
}
.use-card.is-featured h3 {
  font-size: clamp(22px, 2.4vw, 28px);
  letter-spacing: -0.04em;
  margin-bottom: 0;
}
.use-card.is-featured .use-copy { margin: 0; }
@media (max-width: 720px) {
  .use-card.is-featured { grid-template-columns: 1fr; }
}

/* FAQ */
.faq-list { display: grid; gap: 10px; max-width: 820px; }
.faq-item { background: var(--paper); border: 1px solid var(--line); }
.faq-q {
  width: 100%;
  text-align: left;
  padding: 16px 48px 16px 18px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.02em;
  position: relative;
}
.faq-q::after {
  content: "+";
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 500;
  color: var(--blue);
}
.faq-q[aria-expanded="true"]::after { content: "-"; }
.faq-a { padding: 0 18px 16px; color: var(--slate); font-size: 15px; max-width: 70ch; }
.faq-a a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Form */
.form-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 36px;
  align-items: start;
}
.form-copy p { color: var(--slate); margin-bottom: 14px; max-width: 48ch; }
.form-copy a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

.tour-form {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  display: grid;
  gap: 14px;
}
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .legend {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 13px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px 12px;
  min-height: 44px;
  border-radius: 0;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus-visible,
.field select:focus-visible,
.field textarea:focus-visible {
  outline: var(--focus);
  outline-offset: 0;
  border-color: var(--blue);
}
.radios {
  display: grid;
  gap: 8px;
}
.radio {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14.5px;
  color: var(--ink);
}
.radio input { margin-top: 4px; accent-color: var(--blue); width: 16px; height: 16px; flex: 0 0 auto; }
.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-status {
  font-size: 14.5px;
  padding: 10px 12px;
  border: 1px solid var(--line);
}
.form-status.is-success { border-color: #1a9a4a; color: #0e5c2c; background: #eef7f0; }
.form-status.is-error { border-color: var(--vermilion); color: #8a2a14; background: #fdeee9; }
.form-status.is-pending { color: var(--slate); }
.form-aside {
  font-size: 13.5px;
  color: var(--slate);
}
.form-aside a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--line);
  padding: 32px var(--pad) 40px;
  background: color-mix(in srgb, var(--bg) 80%, white);
}
.footer-inner {
  max-width: var(--max);
  margin: 0 auto;
  display: grid;
  gap: 10px;
}
.footer-brand {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: 0.12em;
  font-size: 13px;
}
.footer-op, .footer-legal { font-size: 13.5px; color: var(--slate); }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.footer-legal a:hover { color: var(--ink); }

/* Legal / subpages */
.subhero {
  padding: 56px var(--pad) 20px;
  max-width: calc(var(--max) + 2 * var(--pad));
  margin: 0 auto;
}
.subhero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 4vw, 48px);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: 12px;
}
.legal {
  padding: 12px var(--pad) 80px;
}
.legal-inner {
  max-width: 720px;
  margin: 0 auto;
}
.legal h2 {
  font-family: var(--font-display);
  font-size: 22px;
  letter-spacing: -0.03em;
  margin: 32px 0 10px;
}
.legal p, .legal li { color: var(--ink); margin-bottom: 12px; }
.legal ul, .legal ol { padding-left: 1.2em; margin-bottom: 12px; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
/* Keep .btn labels readable inside .legal (capture guide, and any Terms/Privacy buttons).
   .legal a is more specific than .btn-primary and was painting blue on blue. */
.legal a.btn {
  text-decoration: none;
  text-underline-offset: unset;
}
.legal a.btn-primary,
.legal a.btn-primary:visited,
.legal a.btn-primary:hover {
  color: #fff;
}
.legal a.btn-secondary,
.legal a.btn-secondary:visited,
.legal a.btn-secondary:hover {
  color: var(--ink);
}
.legal .updated { color: var(--slate); font-size: 13.5px; margin-bottom: 24px; }

/* Capture guide */
.guide-shell {
  max-width: var(--max);
  margin: 0 auto;
}
.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin: 28px 0;
}
.guide-card {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 24px;
  min-width: 0;
}
.guide-card h2 {
  font-family: var(--font-display);
  font-size: 24px;
  letter-spacing: -0.03em;
  margin: 0 0 10px;
}
.guide-card ol { padding-left: 1.2em; color: var(--slate); }
.guide-card li { margin-bottom: 8px; }
.tips { margin-top: 8px; }
.tips h2 { margin-top: 8px; }
.guide-note {
  background: var(--paper);
  border: 1px solid var(--line);
  padding: 20px 24px;
  margin: 0 0 28px;
  color: var(--ink);
}
.guide-note p { margin-bottom: 0; }

/* 404 */
.err {
  min-height: calc(100svh - var(--header-h) - 160px);
  display: flex;
  align-items: center;
  padding: 48px var(--pad) 80px;
}
.err-inner { max-width: 640px; margin: 0 auto; }
.err .code {
  font-family: var(--font-mono);
  letter-spacing: 0.16em;
  color: var(--blue);
  margin-bottom: 12px;
}
.err h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  letter-spacing: -0.04em;
  line-height: 0.98;
  margin-bottom: 14px;
}
.err p { color: var(--slate); margin-bottom: 24px; max-width: 46ch; }
.err .actions { gap: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .topbar {
    grid-template-columns: 1fr auto auto;
    height: 56px;
    padding: 0 16px;
    gap: 8px;
  }
  .brand-tag { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: var(--paper);
    border-bottom: 1px solid var(--line);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 16px 16px;
    z-index: 50;
  }
  .nav.is-open { display: flex; }
  .nav a {
    padding: 12px 4px;
    border-bottom: 1px solid var(--line);
    white-space: normal;
  }
  .cta { padding: 8px 10px; font-size: 12px; }
  :root { --header-h: 56px; --pad: 16px; }

  .hero {
    grid-template-columns: 1fr;
    grid-template-rows: auto auto auto;
    grid-template-areas:
      "copy"
      "stage"
      "telem";
    min-height: 0;
    padding: 16px 16px 24px;
    gap: 14px;
  }
  .hero-copy { padding: 0; }
  .frame, .viewport { min-height: 420px; }
  .frame { padding: 8px; }
  .steps, .pricing-grid, .pricing-addons, .cards-use, .form-layout, .guide-grid {
    grid-template-columns: 1fr;
  }
  .section { padding: 52px 16px; }
}

@media (max-width: 720px) {
  .hero h1 { font-size: 30px; }
  .subhead { font-size: 14.5px; }
  .frame, .viewport { min-height: 400px; }
  .hud { left: 6px; right: 6px; bottom: 6px; padding: 4px; }
  .hud-btn { height: 26px; padding: 0 7px; font-size: 8px; }
  .hud-readout, .hud-hint { font-size: 8px; }
  .frame-id { top: 12px; left: 14px; font-size: 8px; }
  .pin-label { font-size: 8px; padding: 4px 6px 3px; }
  .spot-card {
    top: 28px;
    right: 8px;
    left: auto;
    bottom: auto;
    width: min(300px, calc(100% - 16px));
    max-width: 300px;
    padding: 12px;
  }
  .touch-pad {
    right: 10px;
    bottom: 136px;
    width: 144px;
    height: 144px;
  }
  .touch-pad button {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .touch-pad [data-walk="KeyW"] { top: 0; left: 50px; }
  .touch-pad [data-walk="KeyS"] { bottom: 0; left: 50px; }
  .touch-pad [data-walk="KeyA"] { top: 50px; left: 0; }
  .touch-pad [data-walk="KeyD"] { top: 50px; right: 0; }
  .compare thead { display: none; }
  .compare, .compare tbody, .compare tr, .compare td { display: block; width: 100%; }
  .compare tr { border-bottom: 2px solid var(--ink); }
  .compare td {
    border: 0;
    border-bottom: 1px solid var(--line);
    padding: 10px 14px;
  }
  .compare td::before {
    content: attr(data-label);
    display: block;
    font-family: var(--font-display);
    font-weight: 650;
    font-size: 12px;
    margin-bottom: 4px;
    color: var(--ink);
  }
  .compare td.attr {
    background: color-mix(in srgb, var(--bg) 60%, var(--paper));
    font-size: 15px;
    width: auto;
  }
  .compare td.attr::before { content: none; }
  .price { font-size: 36px; }
  .touch-pad.is-on { display: grid; }
}


@media (max-width: 560px) {
  .pin-label { padding: 3px 5px 2px; font-size: 8px; }
  .pin-name { display: none; }
  .pin:hover .pin-name,
  .pin:focus-visible .pin-name,
  .pin[aria-expanded="true"] .pin-name { display: inline; }
}

@media (pointer: coarse) {
  .touch-pad.is-on { display: grid; }
  .touch-pad {
    width: 144px;
    height: 144px;
  }
  .touch-pad button {
    width: 44px;
    height: 44px;
    font-size: 22px;
  }
  .touch-pad [data-walk="KeyW"] { top: 0; left: 50px; }
  .touch-pad [data-walk="KeyS"] { bottom: 0; left: 50px; }
  .touch-pad [data-walk="KeyA"] { top: 50px; left: 0; }
  .touch-pad [data-walk="KeyD"] { top: 50px; right: 0; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}


/* Plus editor preview banner */
.preview-flag {
  background: var(--ink);
  color: var(--bg);
  text-align: center;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 16px;
}
.powered-by {
  font-size: 13px;
  color: var(--slate);
}
.powered-by a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
