/* XPipe Pro — marketing site.
   The palette is lifted straight from the app so the page and the product
   look like one thing: dark navy ground, green accent, drawing-office
   colours for anything that behaves like a dimension. */

:root {
  --bg: #070b12;
  --bg-elevated: #0e1726;
  --card: #141c28;
  --card-raised: #1a2534;
  --border: #243246;
  --border-strong: #36495f;

  --green: #76c043;
  --green-bright: #8fd44f;
  --orange: #ff9800;
  --cyan: #38bdf8;
  --violet: #a78bfa;
  --danger: #ff5a6a;

  --text: #ffffff;
  --muted: #8e9caa;
  --faint: #63768d;

  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
          Arial, sans-serif;

  --page: 1180px;
  --radius: 18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* The drafting grid behind everything, the same one the app puts under its
   drawings. It sits fixed so the page slides over it rather than with it. */
.grid-field {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(56, 189, 248, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(56, 189, 248, 0.055) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, #000 30%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 110% 70% at 50% 0%, #000 30%, transparent 78%);
}

main, .foot { position: relative; z-index: 1; }
/* .nav gets z-index 90 in its own block below: it has to outrank main, which
   comes after it in the document and would otherwise paint its cards straight
   over the bar on scroll. */

/* ─── Navigation ──────────────────────────────────────────────────────── */

.nav {
  position: sticky;
  top: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 26px;
  max-width: var(--page);
  margin: 0 auto;
  padding: 14px 24px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  background: rgba(7, 11, 18, 0.72);
  border-bottom: 1px solid rgba(36, 50, 70, 0.6);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.2px;
  color: var(--text);
  text-decoration: none;
}
.brand img { border-radius: 8px; }

.nav-links { display: flex; gap: 22px; margin-left: auto; }
.nav-links a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
  transition: color 0.18s;
}
.nav-links a:hover { color: var(--green); }

.lang-picker { position: relative; }

.lang {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font: 700 12px/1 var(--sans);
  letter-spacing: 0.6px;
  padding: 9px 13px;
  border-radius: 9px;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}
.lang:hover, .lang[aria-expanded="true"] { border-color: var(--green); color: var(--green); }

.lang .caret {
  width: 10px;
  height: 6px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  transition: transform 0.18s;
}
.lang[aria-expanded="true"] .caret { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 100;
  list-style: none;
  margin: 0;
  padding: 6px;
  min-width: 190px;
  max-height: 60vh;
  overflow-y: auto;
  background: var(--card-raised);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5);
}

.lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  background: transparent;
  color: var(--text);
  font: 600 13px/1.3 var(--sans);
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s, color 0.15s;
}
.lang-option:hover, .lang-option:focus-visible { background: var(--card); color: var(--green); }
.lang-option[aria-selected="true"] { color: var(--green); }
.lang-flag { font-size: 15px; line-height: 1; }

/* ─── Hero ────────────────────────────────────────────────────────────── */

.hero {
  max-width: var(--page);
  margin: 0 auto;
  padding: 74px 24px 40px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 2.4px;
  text-transform: uppercase;
  color: var(--green);
}

.hero h1 {
  margin: 0 0 18px;
  font-size: clamp(56px, 9vw, 104px);
  line-height: 0.94;
  letter-spacing: -3px;
  font-weight: 800;
  background: linear-gradient(180deg, #ffffff 30%, #9fb3c4 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  margin: 0 0 30px;
  font-size: 18px;
  color: var(--muted);
  max-width: 34em;
}

.badges { display: flex; gap: 12px; flex-wrap: wrap; }

.badge {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 176px;
  padding: 10px 20px;
  border-radius: 13px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(160deg, var(--card-raised), var(--card));
  text-decoration: none;
  color: var(--text);
  transition: transform 0.18s, border-color 0.18s;
}
.badge:hover { transform: translateY(-2px); border-color: var(--green); }
.badge-top { font-size: 11px; color: var(--faint); letter-spacing: 0.3px; }
.badge-name { font-size: 19px; font-weight: 700; letter-spacing: -0.3px; }

.no-ads {
  margin: 26px 0 0;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--green);
}

.hero-art { display: flex; justify-content: center; }
.hero-pipe { width: 100%; max-width: 520px; height: auto; overflow: visible; }
.hero-grid line { stroke: rgba(56, 189, 248, 0.10); stroke-width: 1; }
.dim-text { font: 700 17px var(--mono); }

/* The angular dimension. The two axes are construction lines — thin, dashed,
   and deliberately allowed to run across the pipe the way a centreline does on
   a drawing. Everything that carries the reading (the arc, the figure) stays
   out in clear space, and the figure gets a halo so it never sits on green. */
.hero-angle .axis {
  stroke: rgba(255, 152, 0, 0.72);
  stroke-width: 1.4;
  stroke-dasharray: 10 4 2.5 4;
}
.hero-angle .arc {
  fill: none;
  stroke: #ff9800;
  stroke-width: 2.2;
  stroke-linecap: round;
}
.hero-angle .vertex { fill: #ff9800; }
.angle-text {
  fill: #ff9800;
  paint-order: stroke;
  stroke: #070b12;
  stroke-width: 5;
  stroke-linejoin: round;
}

/* The pipe draws itself in, the way a line goes down on a sheet. */
.pipe-draw, .pipe-shine {
  stroke-dasharray: 620;
  stroke-dashoffset: 620;
  animation: draw 1.5s 0.25s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}
.pipe-shine { animation-delay: 0.5s; }
.bore, .hero-dims { opacity: 0; animation: fade 0.6s 1.5s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes fade { to { opacity: 1; } }

.stats {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 44px 0 0;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(26, 37, 52, 0.7), rgba(14, 23, 38, 0.7));
}
.stats li {
  flex: 1 1 130px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: center;
}
.stats strong {
  font: 800 30px/1 var(--mono);
  color: var(--green);
  letter-spacing: -1px;
}
.stats span { font-size: 12px; color: var(--faint); letter-spacing: 0.4px; }

/* ─── Sections ────────────────────────────────────────────────────────── */

section { max-width: var(--page); margin: 0 auto; padding: 76px 24px; }

.section-head { max-width: 46em; margin-bottom: 34px; }
.section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.12;
  letter-spacing: -1.2px;
  font-weight: 800;
}
.section-lede { margin: 0; color: var(--muted); font-size: 16.5px; }

/* ─── Live demo ───────────────────────────────────────────────────────── */

.demo-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 20px;
  align-items: start;
}

.demo-controls {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}

.field { display: flex; flex-direction: column; gap: 8px; }
.field > span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.field output {
  font: 700 17px var(--mono);
  color: var(--green);
}

input[type="range"] {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 4px;
  border-radius: 3px;
  background: var(--border);
  outline: none;
}
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg-elevated);
  cursor: pointer;
}
input[type="range"]::-moz-range-thumb {
  width: 16px; height: 16px;
  border-radius: 50%;
  background: var(--green);
  border: 3px solid var(--bg-elevated);
  cursor: pointer;
}

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips button {
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--muted);
  font: 800 12px var(--sans);
  padding: 8px 11px;
  border-radius: 9px;
  cursor: pointer;
  transition: all 0.15s;
}
.chips button:hover { border-color: var(--border-strong); color: var(--text); }
.chips button.on {
  background: var(--orange);
  border-color: var(--orange);
  color: #1b1200;
}

.demo-sheet {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: #060b13;
}
#demo-canvas { display: block; width: 100%; height: auto; }

.demo-results {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  margin: 4px 0 0;
}
.demo-results div {
  padding: 14px 16px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: linear-gradient(160deg, rgba(24, 40, 58, 0.55), rgba(13, 22, 36, 0.55));
}
.demo-results dt {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--muted);
}
.demo-results dd {
  margin: 5px 0 0;
  font: 800 23px var(--mono);
  color: var(--green);
  letter-spacing: -0.5px;
}

.demo-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--orange);
  min-height: 1.4em;
}

/* ─── Tools ───────────────────────────────────────────────────────────── */

.tool-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}
.tool {
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(24, 35, 51, 0.8), rgba(16, 24, 36, 0.8));
  transition: transform 0.2s, border-color 0.2s;
}
.tool:hover { transform: translateY(-3px); border-color: var(--green); }
.tool h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.3px;
}
.tool p { margin: 0; font-size: 14px; color: var(--muted); }

/*
 * The header is sticky and 63px tall, so an anchor that lands a section at the
 * very top of the viewport hides its first line underneath. Every section that
 * a nav link points at stops clear of it instead.
 */
section[id] { scroll-margin-top: 78px; }

/* ─── Carousel ────────────────────────────────────────────────────────── */
/*
 * The shots carry width and height in the markup so the browser reserves their
 * space before they load. Without it every section below them shifted down as
 * the images arrived, and an anchor clicked in the nav landed hundreds of
 * pixels short of the section it named. This keeps the attributes from fixing
 * the rendered size.
 */
.car-track img { height: auto; }


.carousel { position: relative; }
.car-track {
  display: flex;
  gap: 18px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 6px 2px 18px;
  scrollbar-width: none;
}
.car-track::-webkit-scrollbar { display: none; }
.car-track figure {
  flex: 0 0 auto;
  margin: 0;
  scroll-snap-align: center;
  text-align: center;
}
.car-track img {
  width: 246px;
  height: auto;
  border-radius: 26px;
  border: 1px solid var(--border-strong);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.55);
  display: block;
}
.car-track figcaption {
  margin-top: 12px;
  font-size: 13px;
  color: var(--faint);
}

.car-nav {
  position: absolute;
  top: 42%;
  z-index: 2;
  width: 42px; height: 42px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(14, 23, 38, 0.9);
  color: var(--text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: border-color 0.18s, color 0.18s;
}
.car-nav:hover { border-color: var(--green); color: var(--green); }
.car-nav.prev { left: -6px; }
.car-nav.next { right: -6px; }

/* ─── Precision ───────────────────────────────────────────────────────── */

.proof-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
  margin-bottom: 34px;
}
.proof {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--card);
}
.proof-figure {
  margin: 0 0 10px;
  font: 800 42px/1 var(--mono);
  letter-spacing: -2px;
  color: var(--cyan);
}
.proof p:last-child { margin: 0; font-size: 14px; color: var(--muted); }

.standards {
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(24, 40, 58, 0.5), rgba(13, 22, 36, 0.5));
}
.standards h3 {
  margin: 0 0 14px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--green);
}
.standards ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}
.standards li {
  font: 700 13px var(--mono);
  padding: 7px 12px;
  border-radius: 9px;
  border: 1px solid var(--border-strong);
  background: var(--bg-elevated);
  color: var(--cyan);
}
.standards-note { margin: 0; font-size: 14px; color: var(--muted); }

/* ─── Close ───────────────────────────────────────────────────────────── */

.close { text-align: center; padding-bottom: 90px; }
.close h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 4vw, 38px);
  letter-spacing: -1.2px;
  font-weight: 800;
}
.close p { margin: 0 auto 28px; max-width: 44em; color: var(--muted); }
.close .badges { justify-content: center; }

/* ─── Closed Android test ─────────────────────────────────────────────── */

/* Green-edged rather than plain card: this is the one thing on the page a
   visitor is asked to *do*, and it sits directly under the hero. */
.badge-beta { border-color: var(--green); }
.badge-beta .badge-top { color: var(--green); }

.beta { padding-top: 0; }
.beta-card {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 40px;
  padding: 34px 36px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--green);
  border-radius: var(--radius);
  background: var(--card);
}
.beta-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(23px, 3.2vw, 31px);
  letter-spacing: -0.9px;
  font-weight: 800;
}
.beta-copy .section-lede { margin-bottom: 22px; }

.beta-steps {
  margin: 0;
  padding-left: 20px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.beta-steps li { color: var(--muted); font-size: 14.5px; }
.beta-steps li::marker { color: var(--green); font-weight: 700; }

.beta-form { display: flex; flex-direction: column; gap: 14px; }
.beta-form input[type="email"],
.beta-form input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: var(--bg-elevated);
  color: var(--text);
  font: 500 15px var(--sans);
}
.beta-form input::placeholder { color: var(--faint); }
.beta-form input:focus-visible {
  outline: none;
  border-color: var(--green);
}
/* The browser's own :invalid fires while the address is still half typed,
   so the red edge waits for a submit attempt to mark the form. */
.beta-form.checked input:invalid { border-color: var(--danger); }

.beta-hint { margin: -6px 0 0; font-size: 12.5px; color: var(--faint); }

/* "optional" sits inside the field label, which is uppercase and heavy. Left
   alone it reads as part of the label rather than as a note about it. */
.beta-form .field > span em {
  font-style: normal;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: var(--faint);
}

.beta-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.5;
}
.beta-consent input {
  margin: 2px 0 0;
  width: 16px;
  height: 16px;
  accent-color: var(--green);
  flex: 0 0 auto;
}
.beta-form.checked .beta-consent input:invalid { outline: 2px solid var(--danger); }

.beta-submit {
  padding: 13px 18px;
  border: 0;
  border-radius: 11px;
  background: var(--green);
  color: #06210a;
  font: 800 15.5px var(--sans);
  letter-spacing: -0.2px;
  cursor: pointer;
}
.beta-submit:hover { background: var(--green-bright); }
.beta-submit[disabled] { opacity: 0.6; cursor: default; }

.beta-status { margin: 0; font-size: 13.5px; color: var(--muted); min-height: 1.2em; }
.beta-status.ok { color: var(--green); }
.beta-status.bad { color: var(--danger); }

@media (max-width: 860px) {
  .beta-card { grid-template-columns: 1fr; gap: 26px; padding: 26px 22px; }
}

/* ─── Footer ──────────────────────────────────────────────────────────── */

.foot {
  border-top: 1px solid var(--border);
  padding: 30px 24px 46px;
  max-width: var(--page);
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
}
.foot-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 800;
}
.foot-brand img { border-radius: 7px; }
.foot nav { display: flex; gap: 20px; margin-left: auto; }
.foot nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 600;
}
.foot nav a:hover { color: var(--green); }
.foot-note {
  flex: 1 0 100%;
  margin: 0;
  font-size: 12.5px;
  color: var(--faint);
}

/* ─── Reveal on scroll ────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.reveal.in { opacity: 1; transform: none; }

/* ─── Legal pages ─────────────────────────────────────────────────────── */

/* A `main`, not a `section`, so it needs its own centring and padding. */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 56px 24px 80px;
}
.legal h1 { font-size: clamp(30px, 5vw, 44px); letter-spacing: -1.4px; margin: 0 0 8px; }
.legal .updated { color: var(--faint); font-size: 13.5px; margin: 0 0 34px; }
.legal h2 {
  margin: 34px 0 10px;
  font-size: 19px;
  letter-spacing: -0.3px;
  color: var(--green);
}
.legal p, .legal li { color: var(--muted); font-size: 15.5px; }
.legal ul { padding-left: 20px; }
.legal strong { color: var(--text); }
.legal .callout {
  padding: 18px 20px;
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--green);
  border-radius: 12px;
  background: var(--card);
  margin: 24px 0;
}
.legal .callout p { margin: 0; color: var(--text); }

/* ─── Narrow screens ──────────────────────────────────────────────────── */

@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; padding-top: 46px; }
  .hero-art { order: -1; }
  .hero-pipe { max-width: 380px; }
  .demo-body { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  section { padding: 54px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .pipe-draw, .pipe-shine, .bore, .hero-dims { animation: none; stroke-dashoffset: 0; opacity: 1; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ─── Tile previews ───────────────────────────────────────────────────── */
/*
 * A tile describes a calculator; the screen shows it. The picture is only
 * fetched when somebody asks for it, so twenty-seven of them cost a visitor
 * who never opens one exactly nothing.
 */

.tool[data-shot] { cursor: pointer; position: relative; }
.tool[data-shot]::after {
  content: "";
  position: absolute;
  right: 14px;
  bottom: 14px;
  width: 15px;
  height: 22px;
  border: 1.5px solid var(--muted);
  border-radius: 3px;
  opacity: 0;
  transition: opacity 0.2s, border-color 0.2s;
}
.tool[data-shot]:hover::after,
.tool[data-shot]:focus-visible::after { opacity: 0.85; border-color: var(--green); }
.tool[data-shot]:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; }

.shot-view {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
  gap: 26px;
  padding: 28px;
  background: rgba(4, 8, 14, 0.86);
  backdrop-filter: blur(6px);
}
.shot-view[open] { display: flex; }
/* Two shots of the same screen — the head of it and the foot — side by side
   where there is room, one above the other where there is not. */
.shot-pair { display: flex; gap: 16px; align-items: flex-start; }

.shot-view img {
  max-height: min(78vh, 760px);
  width: auto;
  /* A flex item shrinks to nothing given the chance, and a screenshot with no
     height is the one thing this panel must not show. */
  flex: 0 0 auto;
  border-radius: 18px;
  border: 1px solid var(--border);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55);
}
.shot-copy { max-width: 340px; }
.shot-copy h3 { margin: 0 0 10px; font-size: 20px; letter-spacing: -0.3px; }
.shot-copy p { margin: 0; font-size: 14px; color: var(--muted); line-height: 1.6; }
.shot-close {
  position: absolute;
  top: 18px;
  right: 20px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(16, 24, 36, 0.9);
  color: var(--muted);
  font-size: 19px;
  line-height: 1;
  cursor: pointer;
}
.shot-close:hover { color: var(--green); border-color: var(--green); }

/* Stacked on a phone, where there is no room beside the screenshot — and the
   picture is the point, so it keeps the height it needs. */
@media (max-width: 1100px) {
  .shot-view { flex-direction: column; gap: 16px; padding: 60px 18px 24px; overflow-y: auto; }
  .shot-view img { max-height: 62vh; }
  .shot-copy { max-width: none; text-align: center; }
  .shot-copy p { font-size: 13px; }
  .shot-pair { max-width: 100%; overflow-x: auto; padding-bottom: 4px; }
  .shot-view img { max-height: 54vh; }
}
