/* ============================================================
   Hector landing page — dependency-free dark "lab bench" theme.
   ============================================================ */
:root {
  --bg: #0a0e10;
  --bg-2: #0d1316;
  --panel: #11181c;
  --panel-2: #0f1518;
  --border: rgba(255, 255, 255, 0.09);
  --border-strong: rgba(255, 255, 255, 0.16);
  --fg: #e7eef1;
  --muted: #8a97a0;
  --muted-2: #5f6b73;
  --primary: #3fb950;       /* green LED */
  --primary-soft: rgba(63, 185, 80, 0.14);
  --accent: #1f6feb;        /* blue */
  --danger: #f85149;
  --radius: 14px;
  --maxw: 1140px;
  --font-display: "Chakra Petch", system-ui, sans-serif;
  --font-body: "IBM Plex Sans", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(31, 111, 235, 0.10), transparent 60%),
              radial-gradient(900px 500px at -10% 0%, rgba(63, 185, 80, 0.08), transparent 55%),
              var(--bg);
  color: var(--fg);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--font-display); line-height: 1.12; letter-spacing: 0.2px; }
a { color: inherit; text-decoration: none; }
code, pre { font-family: var(--font-mono); }
.muted { color: var(--muted); }
.small { font-size: 0.82rem; }
.grad { background: linear-gradient(90deg, var(--primary), #7fe39a); -webkit-background-clip: text; background-clip: text; color: transparent; }
.eyebrow {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--primary);
}

.bench-grid {
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 38px 38px;
}

section { padding: 88px 24px; }
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); text-align: center; margin: 0 0 8px; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 40px; }

/* -------------------- buttons -------------------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  font-family: var(--font-display); font-weight: 600; font-size: 0.92rem;
  padding: 10px 18px; border-radius: 10px; border: 1px solid transparent;
  transition: transform 0.06s ease, background 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 13px 24px; font-size: 1rem; }
.btn-primary { background: var(--primary); color: #06210c; box-shadow: 0 6px 24px -8px var(--primary); }
.btn-primary:hover { background: #4bd05e; }
.btn-outline { border-color: var(--border-strong); color: var(--fg); }
.btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.btn-ghost { color: var(--muted); }
.btn-ghost:hover { color: var(--fg); background: rgba(255, 255, 255, 0.05); }

/* -------------------- nav -------------------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 20px;
  padding: 14px max(24px, calc((100vw - var(--maxw)) / 2));
  /* Solid translucent bar instead of backdrop-filter: blur() — a full-width
     backdrop blur forces an expensive re-composite every animation frame
     (very CPU-heavy, especially on Linux). Higher opacity keeps legibility. */
  background: rgba(10, 14, 16, 0.94);
  border-bottom: 1px solid var(--border);
}
.brand { display: inline-flex; align-items: center; gap: 11px; }
.brand-badge {
  position: relative; width: 34px; height: 34px; border-radius: 9px;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700;
  color: var(--primary); background: var(--primary-soft); border: 1px solid rgba(63, 185, 80, 0.32);
}
.brand-badge .led {
  position: absolute; top: -3px; right: -3px; width: 8px; height: 8px; border-radius: 50%;
  background: var(--primary); box-shadow: 0 0 8px 1px var(--primary);
}
.brand-name { font-family: var(--font-display); font-weight: 700; letter-spacing: 0.5px; }
.brand-name em { font-style: normal; color: var(--primary); font-size: 0.78em; letter-spacing: 0.2em; }
.nav-links { display: flex; gap: 22px; margin-left: 10px; }
.nav-links a { color: var(--muted); font-size: 0.92rem; }
.nav-links a:hover { color: var(--fg); }
.nav-cta { display: flex; gap: 10px; margin-left: auto; }

/* -------------------- hero -------------------- */
.hero {
  display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center;
  padding: 84px max(24px, calc((100vw - var(--maxw)) / 2)) 96px;
}
.hero h1 { font-size: clamp(2.1rem, 4.6vw, 3.6rem); margin: 16px 0 18px; }
.lede { font-size: 1.1rem; color: var(--muted); max-width: 36em; }
.lede code, .lede strong { color: var(--fg); }
.hero-actions { display: flex; gap: 12px; margin: 28px 0 22px; flex-wrap: wrap; }
.hero-meta { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 0.86rem; flex-wrap: wrap; }
.hero-meta b { color: var(--fg); font-weight: 600; }
.hero-meta i { width: 4px; height: 4px; border-radius: 50%; background: var(--muted-2); }

/* terminal */
.terminal {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9); overflow: hidden; min-height: 320px;
}
.term-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
}
.term-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2b3338; }
.term-bar span:nth-child(1) { background: #f85149; }
.term-bar span:nth-child(2) { background: #d8a020; }
.term-bar span:nth-child(3) { background: var(--primary); }
.term-bar em { margin-left: 8px; font-family: var(--font-mono); font-style: normal; font-size: 0.74rem; color: var(--muted-2); }
/* contain: content scopes each keystroke's re-layout/repaint to the terminal so
   typing doesn't repaint the hero or the card's large drop-shadow; the opaque
   background lets the browser paint the tile without blending layers below. */
.term-body { margin: 0; padding: 18px 18px 24px; font-size: 0.82rem; line-height: 1.7; white-space: pre-wrap; min-height: 250px; contain: content; background: var(--panel-2); }
.term-body .p { color: var(--primary); }      /* prompt */
.term-body .c { color: var(--fg); }            /* command */
.term-body .ok { color: var(--primary); }
.term-body .dim { color: var(--muted); }
.term-body .warn { color: #e3b341; }
.caret { display: inline-block; width: 8px; height: 1.05em; vertical-align: -2px; background: var(--primary); animation: blink 1s step-end infinite; }
/* JS adds .paused when the terminal is off-screen / tab hidden, so the only
   perpetual animation on the page stops and the browser can go fully idle. */
.caret.paused { animation: none; opacity: 1; }
@keyframes blink { 50% { opacity: 0; } }

/* Users who prefer reduced motion get no looping animations at all. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .caret { animation: none; }
  .modal[open] { animation: none; }
}

/* -------------------- cards / split -------------------- */
.card { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); }
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 24px;
  max-width: var(--maxw); margin: 0 auto; padding: 24px 24px 40px;
}
.product { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.product-pro { border-color: rgba(63, 185, 80, 0.35); box-shadow: 0 0 0 1px rgba(63,185,80,0.06), 0 30px 80px -50px var(--primary); }
.product h2 { font-size: 1.6rem; margin: 10px 0 6px; }
.product header p { color: var(--muted); margin: 0; }
.tag {
  display: inline-block; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--border-strong);
}
.tag-free { color: var(--accent); border-color: rgba(31, 111, 235, 0.4); background: rgba(31, 111, 235, 0.1); }
.tag-pro { color: var(--primary); border-color: rgba(63, 185, 80, 0.4); background: var(--primary-soft); }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.ticks li { position: relative; padding-left: 26px; color: var(--muted); }
.ticks li b { color: var(--fg); }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700;
}
.install {
  display: flex; align-items: center; gap: 10px; background: var(--bg);
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px;
}
.install code { flex: 1; font-size: 0.86rem; }
.copy {
  cursor: pointer; font-family: var(--font-mono); font-size: 0.74rem; color: var(--muted);
  background: transparent; border: 1px solid var(--border-strong); border-radius: 7px; padding: 4px 10px;
}
.copy:hover { color: var(--primary); border-color: var(--primary); }
.fineprint { color: var(--muted-2); font-size: 0.8rem; margin: 2px 0 0; }
.pro-actions { display: flex; gap: 10px; margin-top: auto; flex-wrap: wrap; }

/* -------------------- features grid -------------------- */
.features { max-width: var(--maxw); margin: 0 auto; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat { background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.feat h3 { font-size: 1.06rem; margin: 0 0 6px; }
.feat p { margin: 0; color: var(--muted); font-size: 0.94rem; }

/* -------------------- showcase (Live View diagram embed) -------------------- */
/* The embed itself is styled by hui-demo.css, namespaced under .hui and isolated
   with `all: initial`, so nothing here leaks into it. These rules only place it. */
.showcase { max-width: 100%; }
.showcase-head { max-width: var(--maxw); margin: 0 auto 28px; text-align: center; }
.showcase-head h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 10px 0 8px; }
.showcase-head p { color: var(--muted); max-width: 660px; margin: 0 auto; }
.showcase-head code { color: var(--fg); }
/* Read-only source for the diagram above. Collapsed by default so it doesn't
   dominate the section; it's evidence, not the main event. */
.yaml-src {
  max-width: 940px; margin: 18px auto 0;
  background: var(--panel-2); border: 1px solid var(--border); border-radius: 10px;
}
.yaml-src summary {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 11px 16px; cursor: pointer; list-style: none;
  font-family: var(--font-mono); font-size: 0.8rem; color: var(--muted);
}
.yaml-src summary::-webkit-details-marker { display: none; }
.yaml-src summary::before {
  content: "▸"; color: var(--primary); font-size: 0.75rem; transition: transform 0.15s ease;
}
.yaml-src[open] summary::before { transform: rotate(90deg); }
.yaml-src[open] summary { border-bottom: 1px solid var(--border); }
.yaml-src summary:hover { color: var(--fg); }
.yaml-file { color: var(--fg); }
.yaml-hint { color: var(--muted-2); font-size: 0.74rem; margin-left: auto; }
.yaml-src pre {
  margin: 0; padding: 16px; overflow-x: auto;
  font-size: 0.76rem; line-height: 1.65; color: var(--muted);
  max-height: 420px; overflow-y: auto;
}
.yaml-src pre .el { color: var(--muted-2); font-style: italic; }

/* Sets expectations: a faithful copy of the component, not a live session. */
.showcase-note {
  margin: 26px auto 0; padding: 14px 18px;
  max-width: 780px; font-size: 0.88rem; color: var(--muted);
  border: 1px solid var(--border); border-left: 2px solid var(--primary);
  border-radius: 10px; background: rgba(255, 255, 255, 0.02);
}
.showcase-note strong { color: var(--fg); }

/* -------------------- pricing -------------------- */
.pricing { max-width: var(--maxw); margin: 0 auto; }
.tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tier {
  position: relative; background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 12px;
}
.tier h3 { margin: 0; font-size: 1.2rem; }
.tier .price { font-family: var(--font-display); font-size: 2rem; font-weight: 700; margin: 0; }
.tier .price-sub { margin: -8px 0 6px; color: var(--muted); font-size: 0.85rem; }
.tier .ticks { margin: 4px 0 10px; }
.tier .btn { margin-top: auto; justify-content: center; }
.tier-featured { border-color: rgba(63, 185, 80, 0.45); box-shadow: 0 30px 80px -50px var(--primary); }
.ribbon {
  position: absolute; top: -11px; right: 18px; background: var(--primary); color: #06210c;
  font-family: var(--font-mono); font-size: 0.68rem; font-weight: 700; padding: 3px 10px; border-radius: 999px;
}

/* -------------------- contact -------------------- */
.contact {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 36px;
  max-width: var(--maxw); margin: 0 auto;
}
.contact h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 12px; }
.contact-copy p { color: var(--muted); max-width: 36em; }
.contact-list { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 12px; }
.contact-list li { display: flex; align-items: baseline; gap: 14px; }
.contact-list span { font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); width: 56px; }
.contact-list a { color: var(--primary); }
.contact-form { padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.contact-form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.contact-form label { display: flex; flex-direction: column; gap: 6px; font-size: 0.84rem; color: var(--muted); }
.contact-form input, .contact-form textarea {
  background: var(--bg); border: 1px solid var(--border); border-radius: 9px; padding: 10px 12px;
  color: var(--fg); font-family: var(--font-body); font-size: 0.95rem; outline: none;
}
.contact-form input:focus, .contact-form textarea:focus { border-color: var(--primary); }
.contact-form .check { flex-direction: row; align-items: center; gap: 9px; color: var(--fg); }
.form-note { color: var(--muted-2); font-size: 0.8rem; margin: 2px 0 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }  /* honeypot */

/* -------------------- "Get the CLI" modal -------------------- */
.modal {
  border: none; padding: 0; background: transparent; color: var(--fg);
  max-width: 520px; width: calc(100% - 40px);
}
.modal::backdrop { background: rgba(5, 8, 9, 0.82); }
.modal[open] { animation: modal-in 0.16s ease; }
@keyframes modal-in { from { opacity: 0; transform: translateY(8px); } }
.modal-card {
  position: relative; padding: 40px; display: flex; flex-direction: column;
  align-items: flex-start; gap: 18px;
  box-shadow: 0 40px 100px -40px rgba(0, 0, 0, 0.9);
}
.modal-card .tag { align-self: flex-start; }   /* don't stretch full width */
.modal-card h2 { font-size: 1.6rem; margin: 4px 0 0; }
.modal-card p { color: var(--muted); margin: 0; }
.modal-card .install { width: 100%; padding: 14px 16px; margin: 4px 0; }
.modal-card .install code { font-size: 0.95rem; }
.modal-card .btn { width: 100%; justify-content: center; }
.modal-card .fineprint { margin: 0; }
.modal-close {
  position: absolute; top: 14px; right: 16px; background: none; border: none; cursor: pointer;
  color: var(--muted); font-size: 1.6rem; line-height: 1; padding: 4px;
}
.modal-close:hover { color: var(--fg); }

/* -------------------- screenshots: shared frame -------------------- */
/* Screenshots are dark-theme UI captures, so the frame is a thin chrome around
   them rather than a light browser mockup — a light frame would fight the shot. */
.shot { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.frame {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; box-shadow: 0 30px 80px -45px rgba(0, 0, 0, 0.95);
}
.frame img { display: block; width: 100%; height: auto; }
.frame-bar {
  display: flex; align-items: center; gap: 7px; padding: 11px 14px;
  border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, 0.02);
}
.frame-bar span { width: 11px; height: 11px; border-radius: 50%; background: #2b3338; }
.frame-bar span:nth-child(1) { background: #f85149; }
.frame-bar span:nth-child(2) { background: #d8a020; }
.frame-bar span:nth-child(3) { background: var(--primary); }
.frame-bar em {
  margin-left: 8px; font-family: var(--font-mono); font-style: normal;
  font-size: 0.74rem; color: var(--muted-2);
}
.shot figcaption { color: var(--muted); font-size: 0.92rem; line-height: 1.55; margin: 0; }
.shot figcaption b { color: var(--fg); font-weight: 600; }
.shot-sm figcaption { font-size: 0.84rem; }

/* "new" pills */
.tag-new, .nav-new {
  display: inline-block; font-family: var(--font-mono); font-size: 0.6rem;
  letter-spacing: 0.14em; text-transform: uppercase; vertical-align: middle;
  padding: 2px 7px; border-radius: 999px; color: var(--primary);
  border: 1px solid rgba(63, 185, 80, 0.4); background: var(--primary-soft);
}
.nav-new { margin-left: 4px; font-size: 0.55rem; padding: 1px 6px; }
.inline-link { color: var(--primary); border-bottom: 1px solid rgba(63, 185, 80, 0.4); }
.inline-link:hover { border-bottom-color: var(--primary); }

/* -------------------- live view -------------------- */
.liveview { max-width: 100%; }
.lv-head { max-width: var(--maxw); margin: 0 auto 36px; text-align: center; }
.lv-head h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); margin: 12px 0 14px; }
.lv-lede { max-width: 720px; margin: 0 auto; color: var(--muted); }
.lv-lede strong { color: var(--fg); }

.shot-hero { max-width: var(--maxw); margin: 0 auto; }
.shot-hero figcaption { text-align: center; max-width: 620px; margin: 0 auto; }

.lv-grid {
  max-width: var(--maxw); margin: 56px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px;
}
/* The console shot is a short wide crop; align it to the top of its row so it
   doesn't float in the middle of a cell sized by the taller shot beside it. */
.lv-grid .shot { align-self: start; }

.lv-points {
  max-width: var(--maxw); margin: 56px auto 0;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.lv-point {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 22px;
}
.lv-point h3 { font-size: 1.02rem; margin: 0 0 6px; }
.lv-point p { margin: 0; color: var(--muted); font-size: 0.92rem; }

.lv-mobile {
  max-width: var(--maxw); margin: 56px auto 0;
  display: grid; grid-template-columns: 1fr 1fr; gap: 32px; align-items: center;
}
.lv-mobile-copy h3 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); margin: 0 0 10px; }
.lv-mobile-copy p { color: var(--muted); margin: 0; max-width: 420px; }
.lv-phones { display: flex; gap: 20px; justify-content: center; }
/* app.js wraps each phone shot in a .zoom button, so the sizing lives on the
   wrapper (the flex item), not the <img>. */
.lv-phones .zoom { width: 232px; max-width: 100%; }
.lv-phones img {
  display: block; width: 100%; height: auto;
  border: 1px solid var(--border); border-radius: 20px;
  box-shadow: 0 30px 70px -40px rgba(0, 0, 0, 0.95);
}

/* -------------------- product tour -------------------- */
.tour { max-width: var(--maxw); margin: 0 auto; }
.tour-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 28px; }
.tour-strip { margin-top: 56px; }
.tour-strip-label {
  font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--muted-2); text-align: center; margin: 0 0 20px;
}
.tour-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.tour-note {
  margin: 40px auto 0; max-width: 620px; text-align: center;
  color: var(--muted-2); font-size: 0.82rem;
}

/* -------------------- lightbox -------------------- */
/* app.js wraps every img[data-full] in .zoom so expanding works by keyboard too. */
.zoom {
  display: block; width: 100%; padding: 0; border: 0; background: none;
  cursor: zoom-in; position: relative; color: inherit; font: inherit;
}
.zoom::after {
  content: "⤢"; position: absolute; top: 10px; right: 10px;
  width: 30px; height: 30px; display: grid; place-items: center;
  border-radius: 8px; font-size: 0.9rem; line-height: 1;
  background: rgba(10, 14, 16, 0.82); border: 1px solid var(--border-strong);
  color: var(--fg); opacity: 0; transition: opacity 0.15s ease;
}
.zoom:hover::after, .zoom:focus-visible::after { opacity: 1; }
.zoom:focus-visible { outline: 2px solid var(--primary); outline-offset: 3px; }
/* The frame-bar sits above the image, so nudge the hero's badge below it. */
.shot-hero .zoom::after { top: 12px; }

.lightbox {
  width: 100vw; max-width: 100vw; height: 100vh; max-height: 100vh;
  padding: 0; border: none; overflow: hidden;
  /* The dialog paints its own opaque backdrop rather than leaning on ::backdrop,
     which isn't reliably composited everywhere. ::backdrop below is belt-and-braces
     for the area outside the box during the open animation. */
  background: rgba(5, 8, 9, 0.97);
}
.lightbox::backdrop { background: rgba(5, 8, 9, 0.94); }
.lb-figure {
  margin: 0; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 56px 68px;
}
.lb-stage {
  min-height: 0; flex: 0 1 auto; display: flex;
  align-items: center; justify-content: center; max-width: 100%;
}
.lb-stage img {
  display: block; max-width: 100%; max-height: 100%;
  object-fit: contain; border-radius: 10px;
  border: 1px solid var(--border); background: var(--panel-2);
  opacity: 1; transition: opacity 0.15s ease;
}
.lightbox.loading .lb-stage img { opacity: 0.25; }
.lb-figure figcaption {
  flex: none; color: var(--muted); font-size: 0.9rem; text-align: center;
  max-width: 680px; line-height: 1.5;
}
.lb-figure figcaption b { color: var(--fg); font-weight: 600; }
.lb-close, .lb-nav {
  position: absolute; z-index: 2; cursor: pointer; color: var(--muted);
  background: rgba(17, 24, 28, 0.9); border: 1px solid var(--border-strong);
  border-radius: 10px; line-height: 1; padding: 0;
}
.lb-close:hover, .lb-nav:hover { color: var(--fg); border-color: var(--border-strong); }
.lb-close:focus-visible, .lb-nav:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }
.lb-close { top: 16px; right: 18px; width: 40px; height: 40px; font-size: 1.7rem; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 44px; height: 64px; font-size: 2rem; }
.lb-prev { left: 14px; }
.lb-next { right: 14px; }
@media (max-width: 700px) {
  .lb-figure { padding: 60px 10px 74px; gap: 12px; }
  .lb-nav { top: auto; bottom: 16px; transform: none; width: 52px; height: 44px; }
  .lb-prev { left: 22%; }
  .lb-next { right: 22%; }
  .lb-figure figcaption { font-size: 0.82rem; }
  /* No hover on touch, so keep the expand badge permanently visible. */
  .zoom::after { opacity: 0.75; }
  /* A 2200px-wide desktop capture squeezed into a 390px phone is unreadable, so
     landscape shots render oversized inside a scrollable stage and are panned
     instead. Portrait (phone) captures already fit, and keep the fitted view —
     app.js sets .portrait from the thumbnail's aspect ratio. */
  .lb-stage {
    width: 100%; overflow: auto; -webkit-overflow-scrolling: touch;
    justify-content: flex-start; border-radius: 10px;
  }
  .lb-stage img { max-width: none; max-height: none; width: 880px; }
  .lightbox.portrait .lb-stage { overflow: visible; justify-content: center; }
  .lightbox.portrait .lb-stage img { max-width: 100%; max-height: 100%; width: auto; }
}

/* -------------------- footer -------------------- */
.footer { padding: 48px 24px; text-align: center; border-top: 1px solid var(--border); }
.footer .brand { justify-content: center; margin-bottom: 10px; }
.footer p { margin: 4px 0; }

/* -------------------- responsive -------------------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .split, .grid, .tiers, .contact { grid-template-columns: 1fr; }
  .lv-grid, .lv-points, .lv-mobile, .tour-grid, .tour-thumbs { grid-template-columns: 1fr; }
  .lv-grid, .lv-points, .lv-mobile, .tour-strip { margin-top: 40px; }
  .lv-mobile-copy { text-align: center; }
  .lv-mobile-copy p { margin: 0 auto; }
  .nav-links { display: none; }
  section { padding: 60px 20px; }
}
@media (max-width: 560px) {
  .contact-form .row { grid-template-columns: 1fr; }
  .nav-cta .btn-ghost { display: none; }
  /* Two phones side by side get too narrow to read below ~560px; one is enough.
     Target the .zoom wrappers (the flex children), not the imgs. */
  .lv-phones .zoom:last-child { display: none; }
  .lv-phones .zoom { width: 260px; }
}
