/* Homepage redesign (2026-11-10). Loaded after styles.css on index.html only.
   Family: leak-finder. The flashlight finds leaks on a shopfront, the ledger
   pairs each leak with its patch, the offer is a work order. */

/* ---------- Hero: fits 1280x720 to 2560x1440, copy left, leak finder right ---------- */
.home-page .hero {
  padding: clamp(1.6rem, 5vh, 4.4rem) 0 clamp(2rem, 5vh, 4rem);
}
@media (min-width: 901px) {
  .home-page .hero {
    display: grid;
    align-items: center;
    grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
    gap: clamp(1.6rem, 3vw, 3rem);
    min-height: min(46rem, calc(100vh - 5.5rem));
  }
  .home-page .hero-copy { max-width: none; }
  .home-page .hero-message {
    font-size: clamp(2rem, min(4.3vw, 7.4vh), 4.1rem);
  }
  .home-page .hero-copy .lead {
    font-size: clamp(1.02rem, min(1.5vw, 2.5vh), 1.28rem);
    margin-top: clamp(0.8rem, 2vh, 1.45rem);
  }
  .home-page .hero-actions { margin-top: clamp(1rem, 2.6vh, 2rem); }
  .home-page .hero-proof { margin-top: clamp(1rem, 2.6vh, 2.2rem); }
}

.scan-board {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(8, 12, 20, 0.74), rgba(3, 5, 9, 0.92));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  width: 100%;
  max-width: 34rem;
  justify-self: end;
}
.scan-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--line-soft);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  color: var(--muted);
}
.scan-count strong { color: var(--amber); font-size: 0.9rem; }
.scan-stage {
  position: relative;
  aspect-ratio: 520 / 400;
  --mx: -999px;
  --my: -999px;
}
.scan-art {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
}
.scan-art-dim { color: rgba(150, 170, 200, 0.17); }
.scan-art-lit {
  color: #9cf1ff;
  filter: drop-shadow(0 0 5px rgba(20, 217, 255, 0.45));
  -webkit-mask-image: radial-gradient(circle 9.5rem at var(--mx) var(--my), #000 0, #000 30%, transparent 100%);
  mask-image: radial-gradient(circle 9.5rem at var(--mx) var(--my), #000 0, #000 30%, transparent 100%);
}
.leak-tag {
  position: absolute;
  left: var(--x);
  top: var(--y);
  transform: translate(-50%, -50%);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.42rem 0.75rem;
  border: 1px solid rgba(255, 184, 76, 0.6);
  border-radius: 999px;
  background: rgba(22, 14, 2, 0.92);
  color: var(--amber-2);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}
.leak-tag i {
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--amber);
  box-shadow: 0 0 10px rgba(255, 184, 76, 0.9);
  animation: leak-pulse 1.6s ease-in-out infinite;
}
@keyframes leak-pulse { 50% { opacity: 0.35; } }
.leak-tag.is-lit,
.leak-tag.is-found,
.leak-tag:focus-visible { opacity: 1; pointer-events: auto; }
.leak-tag:hover { box-shadow: 0 0 22px rgba(255, 184, 76, 0.4); }
.leak-tag:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.leak-tag.is-found { background: var(--amber); border-color: var(--amber); color: #1b1204; }
.leak-tag.is-found i { background: #1b1204; box-shadow: none; animation: none; }
.scan-hint {
  margin: 0;
  padding: 0.75rem 1rem 0.9rem;
  border-top: 1px solid var(--line-soft);
  color: var(--muted);
  font-size: 0.98rem;
  min-height: 3.1rem;
}
.scan-hint strong { color: var(--amber-2); }
.scan-hint-touch { display: none; }
.scan-go {
  margin-left: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--cyan);
  font: inherit;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

/* Touch and narrow screens: the light moves on its own from leak to leak and
   follows a finger. Each leak is a dot on the building; its name shows in the
   readout button under it. */
.scan-readout { display: none; }
@media (hover: none), (max-width: 900px) {
  .scan-board { justify-self: stretch; max-width: 36rem; }
  .scan-hint-hover { display: none; }
  .scan-hint-touch { display: inline; }
}
@media (prefers-reduced-motion: no-preference) and (hover: none), (prefers-reduced-motion: no-preference) and (max-width: 900px) {
  .scan-stage { touch-action: pan-y; -webkit-tap-highlight-color: transparent; }
  .scan-art-lit {
    -webkit-mask-image: radial-gradient(circle 6.2rem at var(--mx) var(--my), #000 0, #000 30%, transparent 100%);
    mask-image: radial-gradient(circle 6.2rem at var(--mx) var(--my), #000 0, #000 30%, transparent 100%);
  }
  .leak-tag {
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    justify-content: center;
    border: 0;
    background: none;
  }
  .leak-tag span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .leak-tag i { width: 0.8rem; height: 0.8rem; }
  .leak-tag.is-found { background: none; }
  .leak-tag.is-found i { background: var(--amber); box-shadow: 0 0 0 3px rgba(255, 184, 76, 0.28); }
  .leak-tag.is-current i { box-shadow: 0 0 0 5px rgba(255, 184, 76, 0.3), 0 0 14px rgba(255, 184, 76, 0.9); }
  .scan-readout {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: calc(100% - 1.8rem);
    min-height: 3rem;
    margin: 0 0.9rem 0.9rem;
    padding: 0.55rem 0.9rem;
    border: 1px solid rgba(255, 184, 76, 0.6);
    border-radius: 0.8rem;
    background: rgba(22, 14, 2, 0.92);
    color: var(--amber-2);
    font-family: "JetBrains Mono", monospace;
    font-size: 0.8rem;
    font-weight: 700;
    line-height: 1.25;
    text-align: left;
    cursor: pointer;
  }
  .scan-readout:disabled { border-color: var(--line-soft); background: none; color: var(--muted); cursor: default; }
  .scan-readout i { flex: 0 0 auto; width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--amber); box-shadow: 0 0 10px rgba(255, 184, 76, 0.9); }
  .scan-readout:disabled i { background: var(--muted); box-shadow: none; }
  .scan-readout span { flex: 1; min-width: 0; }
  .scan-readout em { flex: 0 0 auto; font-style: normal; color: var(--cyan); text-decoration: underline; text-underline-offset: 0.18em; }
  .scan-readout:disabled em { display: none; }
  .scan-readout.is-found { background: var(--amber); border-color: var(--amber); color: #1b1204; }
  .scan-readout.is-found i { background: #1b1204; box-shadow: none; }
  .scan-readout.is-found em { color: #1b1204; }
  .scan-readout:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
}
/* Reduced motion on touch: no moving light, so the building is lit and the leaks are listed. */
@media (prefers-reduced-motion: reduce) and (hover: none), (prefers-reduced-motion: reduce) and (max-width: 900px) {
  .scan-board { justify-self: stretch; max-width: 36rem; }
  .scan-stage {
    aspect-ratio: auto;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    padding: calc(76.92% + 0.2rem) 0.9rem 1rem;
  }
  .scan-art { inset: 0 0 auto 0; height: auto; aspect-ratio: 520 / 400; }
  .scan-art-lit { -webkit-mask-image: none; mask-image: none; opacity: 0.8; }
  .leak-tag {
    position: static;
    transform: none;
    opacity: 1;
    pointer-events: auto;
    white-space: normal;
    text-align: left;
    min-height: 2.75rem;
    font-size: 0.76rem;
  }
  .scan-hint-hover { display: none; }
  .scan-hint-touch { display: inline; }
}

/* ---------- Leak to patch ledger ---------- */
.ledger-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 24rem);
  align-items: end;
  gap: 1.5rem 3rem;
}
.ledger-head h2 { margin: 0; font-size: clamp(1.8rem, 4.2vw, 3.3rem); }
.ledger-head .section-sub { margin: 0; }
.ledger {
  list-style: none;
  margin: 2.6rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.ledger-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) clamp(3rem, 6vw, 5.5rem) minmax(0, 1.15fr) auto;
  align-items: center;
  gap: clamp(1rem, 2.4vw, 2rem);
  padding: 1.7rem 0;
  border-bottom: 1px solid var(--line);
}
.ledger-leak {
  margin: 0;
  color: var(--amber-2);
  font-size: clamp(1.2rem, 1.9vw, 1.5rem);
  font-weight: 600;
  line-height: 1.3;
  text-wrap: balance;
}
.ledger-pipe {
  position: relative;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  border-radius: 2px;
}
.ledger-pipe::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 12px var(--cyan);
  animation: pipe-run 2.6s cubic-bezier(0.5, 0, 0.3, 1) infinite;
}
.ledger-row:nth-child(2) .ledger-pipe::before { animation-delay: 0.5s; }
.ledger-row:nth-child(3) .ledger-pipe::before { animation-delay: 1s; }
.ledger-row:nth-child(4) .ledger-pipe::before { animation-delay: 1.5s; }
.ledger-row:nth-child(5) .ledger-pipe::before { animation-delay: 2s; }
@keyframes pipe-run {
  0% { left: 0; opacity: 0; }
  15% { opacity: 1; }
  85% { opacity: 1; }
  100% { left: calc(100% - 8px); opacity: 0; }
}
.ledger-pipe::after {
  content: "";
  position: absolute;
  right: -1px;
  top: -4px;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--cyan);
  border-right: 2px solid var(--cyan);
  transform: rotate(45deg);
}
.ledger-patch h3 {
  margin: 0 0 0.4rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #f5f7fc;
}
.ledger-patch p { margin: 0; color: #b8c1d3; font-size: 1.04rem; line-height: 1.5; }
.ledger-pick {
  position: relative;
  min-height: 2.75rem;
  padding: 0.6rem 1.1rem;
  border: 1px solid rgba(20, 217, 255, 0.45);
  border-radius: 999px;
  background: transparent;
  color: var(--cyan);
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  white-space: nowrap;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.ledger-pick:hover,
.ledger-row.is-picked .ledger-pick { background: var(--cyan); border-color: var(--cyan); color: #031018; }
.ledger-pick:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; }
.ledger-found {
  display: none;
  position: absolute;
  top: -0.7rem;
  right: -0.4rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: var(--amber);
  color: #1b1204;
  font-size: 0.58rem;
  letter-spacing: 0.08em;
}
.ledger-row.is-found .ledger-found { display: block; }
.ledger-fit {
  margin: 1.6rem 0 0;
  max-width: 62rem;
  color: var(--muted);
  font-size: 1.05rem;
}
@media (max-width: 900px) {
  .ledger-head { grid-template-columns: 1fr; }
  .ledger-row {
    grid-template-columns: 1fr;
    gap: 0.9rem;
    padding: 1.5rem 0 1.5rem 1.1rem;
    border-left: 2px solid transparent;
    border-image: linear-gradient(180deg, var(--amber), var(--cyan)) 1;
    border-bottom: 0;
    margin-bottom: 1.4rem;
  }
  .ledger { border-top: 0; }
  .ledger-pipe { display: none; }
  .ledger-pick { justify-self: start; }
}

/* ---------- Reel heading ---------- */
.reel-head { padding: 1rem 0 1.4rem; }
.reel-head h2 {
  margin: 0;
  font-family: "Manrope", system-ui, sans-serif;
  text-transform: uppercase;
  font-size: clamp(1.4rem, 3vw, 2.2rem);
  letter-spacing: 0.02em;
  line-height: 1.1;
}

/* ---------- Offer: the work order ---------- */
.ticket {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  margin-top: 2.8rem;
  border-radius: var(--radius-lg);
  background: #ffb84c;
  color: #1b1204;
  box-shadow: 0 30px 90px rgba(255, 184, 76, 0.16);
}
.ticket-stub {
  position: relative;
  padding: clamp(1.6rem, 3.4vw, 2.8rem);
  border-right: 2px dashed rgba(27, 18, 4, 0.5);
}
.ticket-stub::before,
.ticket-stub::after {
  content: "";
  position: absolute;
  right: -15px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--bg);
}
.ticket-stub::before { top: -14px; }
.ticket-stub::after { bottom: -14px; }
.ticket-label {
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.ticket h3 {
  margin: 0.7rem 0 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: clamp(1.1rem, 1.8vw, 1.4rem);
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}
.ticket-price {
  margin: 1.2rem 0 0;
  font-family: "Manrope", system-ui, sans-serif;
  font-weight: 900;
  font-size: clamp(4.4rem, 9vw, 7.4rem);
  line-height: 0.9;
  letter-spacing: -0.02em;
}
.ticket-terms { margin: 0.7rem 0 1.6rem; font-size: 1.15rem; font-weight: 600; }
.ticket-go {
  display: inline-flex;
  align-items: center;
  min-height: 3rem;
  padding: 0.8rem 1.4rem;
  border: 0;
  border-radius: 999px;
  background: #0a0e16;
  color: #fff;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: transform 0.25s var(--ease-out), box-shadow 0.25s ease;
}
.ticket-go:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(27, 18, 4, 0.4); }
.ticket-go:focus-visible { outline: 3px solid #0a0e16; outline-offset: 3px; }
.ticket-lines {
  list-style: none;
  margin: 0;
  padding: clamp(1rem, 2.4vw, 1.8rem) clamp(1.6rem, 3.4vw, 2.8rem);
}
.ticket-lines li {
  position: relative;
  padding: 1rem 0 1rem 2.2rem;
  border-bottom: 1px solid rgba(27, 18, 4, 0.22);
}
.ticket-lines li:last-child { border-bottom: 0; }
.ticket-lines li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 1.05rem;
  height: 1.05rem;
  border: 2px solid #1b1204;
  border-radius: 3px;
}
.ticket-lines li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 0.22rem;
  top: 1.2rem;
  width: 0.36rem;
  height: 0.7rem;
  border-right: 2.5px solid #1b1204;
  border-bottom: 2.5px solid #1b1204;
  transform: rotate(40deg);
}
.ticket-lines strong {
  display: block;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.ticket-lines span { display: block; margin-top: 0.25rem; font-size: 1.04rem; line-height: 1.45; font-weight: 500; }

.pipeline {
  position: relative;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 3.6rem 0 0;
  padding: 0;
}
.pipeline::before {
  content: "";
  position: absolute;
  top: 7px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--amber), var(--cyan));
  transform-origin: left center;
}
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .pipeline::before {
      animation: pipeline-draw linear both;
      animation-timeline: view();
      animation-range: entry 10% cover 40%;
    }
  }
}
@keyframes pipeline-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.pipeline li { position: relative; padding: 2.1rem 1.6rem 0 0; }
.pipeline li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--cyan);
  background: var(--bg);
  box-shadow: 0 0 14px rgba(20, 217, 255, 0.45);
}
.pipeline li:first-child::before { border-color: var(--amber); box-shadow: 0 0 14px rgba(255, 184, 76, 0.5); }
.pipeline h3 {
  margin: 0 0 0.4rem;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 1.02rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.pipeline p { margin: 0; color: var(--muted); font-size: 1rem; line-height: 1.5; }

.also-rows { margin-top: 3.6rem; }
.also-label {
  margin: 0 0 0.8rem;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted-2);
}
.also-row {
  display: grid;
  grid-template-columns: minmax(0, 17rem) minmax(0, 1fr) auto;
  align-items: baseline;
  gap: 0.5rem 2rem;
  padding: 1.25rem 0;
  border-top: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  transition: background 0.2s ease;
}
.also-row:last-child { border-bottom: 1px solid var(--line); }
.also-row strong {
  font-family: "Manrope", system-ui, sans-serif;
  font-size: 0.98rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.also-row span { color: var(--muted); font-size: 1.02rem; }
.also-row em {
  font-style: normal;
  font-family: "JetBrains Mono", monospace;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cyan);
  white-space: nowrap;
}
.also-row:hover strong, .also-row:focus-visible strong { color: var(--cyan); }

@media (max-width: 900px) {
  .ticket { grid-template-columns: 1fr; }
  .ticket-stub { border-right: 0; border-bottom: 2px dashed rgba(27, 18, 4, 0.5); }
  .ticket-stub::before { top: auto; bottom: -14px; right: auto; left: -14px; }
  .ticket-stub::after { right: -14px; }
  .pipeline { grid-template-columns: 1fr; gap: 1.5rem; margin-top: 2.8rem; }
  .pipeline::before { top: 0; bottom: 0; left: 7px; right: auto; width: 2px; height: auto; background: linear-gradient(180deg, var(--amber), var(--cyan)); transform-origin: center top; animation: none; }
  .pipeline li { padding: 0 0 0 2.2rem; }
  .also-row { grid-template-columns: 1fr; }
}

/* ---------- Proof under the team: four ruled columns, no cards ---------- */
.home-page .proof-section .adjacent-grid { gap: 0; margin-top: 2.4rem; }
.home-page .proof-section .adjacent-card {
  padding: 0.2rem 1.4rem 0.4rem;
  border: 0;
  border-left: 1px solid var(--line);
  border-radius: 0;
  background: none;
  overflow: visible;
}
.home-page .proof-section .adjacent-card::before { display: none; }
.home-page .proof-section .adjacent-card:hover { transform: none; }
.home-page .proof-section .adjacent-card h4 { font-size: 1.02rem; line-height: 1.25; }
@media (min-width: 1025px) {
  .home-page .proof-section .adjacent-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .home-page .proof-section .adjacent-grid { row-gap: 1.6rem; }
}

/* ---------- Contact: form is open, picked leak shows as a chip ---------- */
.leak-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0 auto 0.6rem;
  padding: 0.4rem 0.5rem 0.4rem 0.95rem;
  border-radius: 999px;
  background: var(--amber);
  color: #1b1204;
  font-size: 1rem;
  font-weight: 600;
}
.leak-chip[hidden] { display: none; }
.leak-chip button {
  width: 1.7rem;
  height: 1.7rem;
  border: 0;
  border-radius: 50%;
  background: rgba(27, 18, 4, 0.16);
  color: #1b1204;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
}
.home-page .contact > .contact-call { margin: 0 auto 0.4rem; }

@media (prefers-reduced-motion: reduce) {
  .leak-tag i, .ledger-pipe::before { animation: none; }
  .ledger-pipe::before { display: none; }
  .scan-art-lit { -webkit-mask-image: none; mask-image: none; }
  .leak-tag { opacity: 1; pointer-events: auto; }
}

/* Centered section heads: center the eyebrow with them. */
.home-page .section-head .eyebrow,
.home-page .contact > .eyebrow { justify-content: center; }
.home-page .contact > .eyebrow { font-size: 0.72rem; margin: 0 auto 0.85rem; }

/* 24Relay feature */
.relay-copy .relay-tag { margin: .9rem 0 0; color: #f2f5fb; font-size: clamp(1.2rem, 1.7vw, 1.5rem); line-height: 1.3; font-weight: 600; }
.relay-copy .relay-tag + p { margin-top: .9rem; }
.relay-copy .relay-proof { margin: 0 0 1.1rem; font-size: 1.05rem; color: #c5ccda; }

/* 24Relay phone demo, ported from 24relay.com and scoped to .relay-phone */
.relay-phone { --green:#30d158; --ease:cubic-bezier(.16,1,.3,1); display:flex; flex-direction:column; align-items:center; gap:1.1rem; font-family:-apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Helvetica Neue", ui-sans-serif, system-ui, sans-serif; letter-spacing:normal; text-transform:none; }
.relay-phone .iphone { width:min(300px, 78vw); }
.relay-phone .iphone {
  position:relative; width:min(330px, 78vw); aspect-ratio:9 / 19.3;
  border-radius:56px; padding:12px;
  background:linear-gradient(145deg, #3a3a3e, #121214 40%, #2a2a2d);
  box-shadow:0 0 0 1.5px #4a4a4f inset, 0 40px 80px rgba(0,0,0,.55);
  }
.relay-phone .iphone .screen { position:relative; height:100%; border-radius:44px; overflow:hidden; background:#0b0b10; }
.relay-phone .iphone .island { position:absolute; top:11px; left:50%; transform:translateX(-50%); width:31%; height:30px; border-radius:20px; background:#000; z-index:3; }
.relay-phone .lock {
  height:100%;
  background:linear-gradient(180deg, rgba(5,5,12,.35), rgba(5,5,12,.75)), #0b0b10 url("/assets/24relay-silk-tall.webp") center / cover;
  padding:62px 12px 16px; text-align:center;
  }
.relay-phone .lock .date { color:rgba(255,255,255,.8); font-size:.85rem; font-weight:600; }
.relay-phone .lock .time { color:#fff; font-size:4.6rem; font-weight:600; line-height:1; letter-spacing:-.02em; margin:.1rem 0 1.4rem; }
.relay-phone .stack { display:grid; gap:8px; text-align:left; }
.relay-phone .note {
  display:grid; grid-template-columns:34px 1fr; gap:10px; align-items:start;
  background:rgba(30,30,34,.9);
  border-radius:20px; padding:10px 12px;
  }
.relay-phone .note .ico { width:34px; height:34px; border-radius:9px; display:grid; place-items:center; font-weight:800; font-size:.68rem; letter-spacing:.02em; color:var(--green); background:linear-gradient(160deg,#103a20,#04140a); }
.relay-phone .note .ico.call { background:linear-gradient(180deg,#5ef27f,#1fb84a); color:#fff; }
.relay-phone .note .ico.call svg { width:18px; height:18px; }
.relay-phone .note .t { display:flex; justify-content:space-between; gap:.5rem; color:#fff; font-size:.8rem; font-weight:600; line-height:1.25; }
.relay-phone .note .t span { color:rgba(255,255,255,.55); font-weight:400; }
.relay-phone .note .b { color:rgba(255,255,255,.88); font-size:.8rem; line-height:1.32; margin-top:1px; }
.relay-phone .demo { position:relative; height:100%; background:#000; overflow:hidden; text-align:left; }
.relay-phone .scene { position:absolute; inset:0; opacity:0; visibility:hidden; transition:opacity .45s ease, visibility 0s linear .45s; }
.relay-phone .demo[data-scene="1"] .s1, .relay-phone .demo[data-scene="2"] .s2, .relay-phone .demo[data-scene="3"] .s3, .relay-phone .demo[data-scene="4"] .s4 { opacity:1; visibility:visible; transition:opacity .45s ease; }
.relay-phone .call { height:100%; display:flex; flex-direction:column; padding:62px 14px 26px; background:linear-gradient(180deg,#24242b 0%,#0d0d12 70%); }
.relay-phone .call.live { background:linear-gradient(180deg,#0f2a1a 0%,#0b0b10 65%); }
.relay-phone .call-top { text-align:center; }
.relay-phone .call-label { color:rgba(255,255,255,.62); font-size:.72rem; display:flex; align-items:center; justify-content:center; gap:.35rem; }
.relay-phone .call-label .dot { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 0 rgba(48,209,88,.6); animation:relay-ping 1.6s ease-out infinite; }
.relay-phone .call-name { color:#fff; font-size:1.5rem; font-weight:600; letter-spacing:-.01em; margin-top:3px; line-height:1.15; }
.relay-phone .call-num { color:rgba(255,255,255,.58); font-size:.76rem; margin-top:2px; }
.relay-phone .call-steps { margin-top:18px; display:grid; gap:7px; }
.relay-phone .cs { background:rgba(255,255,255,.09); border-radius:14px; padding:8px 11px; color:#fff; font-size:.76rem; line-height:1.32; }
.relay-phone .cs b { color:var(--green); font-weight:600; }
.relay-phone .cs.ok { background:rgba(48,209,88,.17); color:#8dffad; font-weight:600; }
.relay-phone .cs.who { background:none; padding:0 2px; color:rgba(255,255,255,.5); font-size:.66rem; margin-bottom:-4px; }
.relay-phone .cs.agent { background:#1d4d30; }
.relay-phone .cs.agent b { color:#8dffad; }
.relay-phone .cs b.who-in { color:rgba(255,255,255,.6); }
.relay-phone .call-btns { margin-top:auto; display:flex; justify-content:space-around; padding:0 18px; }
.relay-phone .cb { width:54px; height:54px; border-radius:50%; display:grid; place-items:center; color:#fff; }
.relay-phone .cb svg { width:24px; height:24px; }
.relay-phone .cb.decline { background:#ff3b30; }
.relay-phone .cb.decline svg { transform:rotate(135deg); }
.relay-phone .cb.accept { background:#30d158; }
.relay-phone .call-foot { margin-top:auto; text-align:center; color:rgba(255,255,255,.55); font-size:.7rem; }
.relay-phone .demo .lock { padding-top:70px; }
.relay-phone .demo .lock .time { margin-bottom:1.6rem; }
.relay-phone .demo .lock { position:relative; }
.relay-phone .demo .lock.before { background:linear-gradient(180deg, rgba(40,4,8,.55), rgba(8,2,4,.88)), #0b0b10 url("/assets/24relay-silk-tall.webp") center / cover; filter:saturate(.75); }
.relay-phone .demo .lock.before .time { font-size:3.3rem; margin-bottom:1rem; }
.relay-phone .demo .note.sm { grid-template-columns:28px 1fr; gap:8px; padding:7px 10px; border-radius:16px; }
.relay-phone .demo .note.sm .ico { width:28px; height:28px; border-radius:8px; color:#fff; }
.relay-phone .demo .note.sm .ico svg { width:15px; height:15px; }
.relay-phone .demo .note .ico.miss { background:#3a3a3e; color:#ff453a; }
.relay-phone .demo .note .ico.vm { background:#3a3a3e; color:rgba(255,255,255,.75); }
.relay-phone .demo .note.sm .t, .relay-phone .demo .note.sm .b { font-size:.72rem; }
.relay-phone .demo .loss { position:absolute; left:10px; right:10px; top:198px; background:rgba(26,4,6,.95); box-shadow:0 14px 40px rgba(0,0,0,.65); border:1px solid rgba(255,69,58,.45); border-radius:16px; padding:10px 12px; color:rgba(255,255,255,.88); font-size:.74rem; line-height:1.32; text-align:left; }
.relay-phone .demo .loss b { display:block; color:#ff6b61; font-size:1.02rem; font-weight:700; margin-top:3px; letter-spacing:-.01em; }
.relay-phone .demo .clean { margin-top:12px; color:#8dffad; font-size:.74rem; font-weight:600; }
.relay-phone .demo-nav button.step.before .bar i { background:#ff453a; }
.relay-phone.is-js .demo .cs, .relay-phone.is-js .demo .note, .relay-phone.is-js .demo .bub, .relay-phone.is-js .demo .loss, .relay-phone.is-js .demo .clean { opacity:0; transform:translateY(8px) scale(.98); }
.relay-phone .demo[data-scene="1"] .s1 .note, .relay-phone .demo[data-scene="1"] .s1 .loss, .relay-phone .demo[data-scene="2"] .s2 .cs, .relay-phone .demo[data-scene="3"] .s3 .note, .relay-phone .demo[data-scene="3"] .s3 .clean, .relay-phone .demo[data-scene="4"] .s4 .bub { animation:relay-pop .45s var(--ease) forwards; animation-delay:var(--d, 0s); }
@keyframes relay-pop { to { opacity:1; transform:none; } }
@keyframes relay-ping { 70% { box-shadow:0 0 0 7px rgba(48,209,88,0); } 100% { box-shadow:0 0 0 0 rgba(48,209,88,0); } }
.relay-phone .demo-nav { display:flex; align-items:stretch; gap:.4rem; width:min(430px, 100%); }
.relay-phone .demo-nav button.step { flex:1; min-width:0; background:none; border:0; padding:.2rem 0 0; cursor:pointer; text-align:left; font:inherit; color:rgba(245,245,247,.55); }
.relay-phone .demo-nav .bar { display:block; height:3px; border-radius:2px; background:rgba(245,245,247,.2); overflow:hidden; }
.relay-phone .demo-nav .bar i { display:block; height:100%; width:0; background:var(--green); }
.relay-phone .demo-nav .lbl { display:block; font-size:.78rem; font-weight:600; line-height:1.25; margin-top:.45rem; transition:color .2s; }
.relay-phone .demo-nav button.step[aria-current="step"] { color:#fff; }
.relay-phone .demo-nav button.step.done .bar i { width:100%; }
.relay-phone .demo-nav button.step[aria-current="step"] .bar i { animation:relay-fill var(--dur, 5s) linear forwards; }
.relay-phone .demo-nav.paused button.step[aria-current="step"] .bar i { animation:none; width:100%; }
.relay-phone .demo-nav .pp { flex:0 0 auto; width:30px; height:30px; margin-top:-6px; border-radius:50%; border:0; background:rgba(245,245,247,.14); color:#fff; display:grid; place-items:center; cursor:pointer; }
.relay-phone .demo-nav .pp svg { width:12px; height:12px; }
@keyframes relay-fill { from { width:0; } to { width:100%; } }
.relay-phone .msgs { text-align:left; height:100%; background:#000; padding:58px 12px 14px; display:flex; flex-direction:column; }
.relay-phone .msgs .who { text-align:center; padding-bottom:10px; border-bottom:1px solid rgba(255,255,255,.08); margin:0 -12px 10px; }
.relay-phone .msgs .avatar { width:40px; height:40px; margin:0 auto 4px; border-radius:50%; display:grid; place-items:center; background:linear-gradient(160deg,#123c22,#04140a); color:var(--green); font-weight:800; font-size:.72rem; }
.relay-phone .msgs .who b { color:#fff; font-size:.78rem; font-weight:600; }
.relay-phone .thread { display:flex; flex-direction:column; gap:5px; font-size:.79rem; line-height:1.32; }
.relay-phone .bub { max-width:82%; padding:7px 11px; border-radius:17px; color:#fff; }
.relay-phone .bub.in { background:#262629; align-self:flex-start; border-bottom-left-radius:5px; }
.relay-phone .bub.out { background:#2fb655; align-self:flex-end; border-bottom-right-radius:5px; }

.relay-phone .demo-nav button:focus-visible { outline:2px solid var(--green); outline-offset:3px; border-radius:6px; }
@media (prefers-reduced-motion: reduce) {
  .relay-phone.is-js .demo .cs, .relay-phone.is-js .demo .note, .relay-phone.is-js .demo .bub, .relay-phone.is-js .demo .loss, .relay-phone.is-js .demo .clean { opacity:1 !important; transform:none !important; animation:none !important; }
}
@media (max-width: 760px) {
  .relay-phone .iphone { width:min(280px, 78vw); border-radius:50px; }
  .relay-phone .iphone .screen { border-radius:39px; }
}

/* Sideways movement on phones: nothing fixed may be wider than the screen. */
html { overflow-x: hidden; overflow-x: clip; }
@media (max-width: 900px) {
  .bg-aurora { inset: 0; animation: none; }
  .bg-grid { inset: 0; animation: none; -webkit-mask-image: none; mask-image: none; }
}

/* Headlines: Manrope instead of Orbitron, for readability. The logo keeps Orbitron. */
.home-page h1,
.home-page .section h2,
.home-page .card h3,
.home-page .timeline-body h3,
.home-page .platform-card h3,
.home-page .flagship-card h3,
.home-page .fit-head h3,
.home-page .adjacent-card h4,
.home-page .faq-item summary,
.home-page .hero-stats dd,
.home-page .trust-item strong,
.home-page .flagship-meta strong,
.home-page .answer-map strong,
.home-page .growth-map-core strong,
.home-page .reel-text strong,
.home-page .hero-proof strong {
  font-family: "Manrope", system-ui, sans-serif;
}
.home-page h1,
.home-page .section h2 { letter-spacing: -0.02em; }

/* Ledger: service logos and buy buttons */
.ledger-logo { display: block; width: 17rem; height: auto; max-width: 100%; margin: 0 0 0.7rem; }
.ledger-logo[src$=".svg"] { width: 11rem; margin-bottom: 0.8rem; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.ledger-buy {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 3rem; padding: 0.7rem 1.4rem; border-radius: 999px;
  background: var(--amber); color: #1b1204; text-decoration: none;
  font-family: "Manrope", system-ui, sans-serif; font-weight: 800; font-size: 1rem; white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ledger-buy:hover { box-shadow: 0 8px 24px rgba(255, 184, 76, 0.3); }
.ledger-buy:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; }
.ledger-row { grid-template-columns: minmax(0, 1fr) clamp(3rem, 6vw, 5.5rem) minmax(0, 1.15fr) minmax(10.5rem, auto); }
.ledger-row > .ledger-buy, .ledger-row > .ledger-pick, .ledger-row > .ledger-cta { justify-self: end; }
.ledger-cta { display: flex; flex-direction: column; align-items: center; gap: 0.55rem; }
.ledger-more { color: inherit; opacity: 0.8; font-size: 0.9rem; text-underline-offset: 3px; padding: 0.35rem 0; }
.ledger-more:hover { opacity: 1; }
.relay-logo-h img { display: block; height: clamp(2.6rem, 5vw, 3.8rem); width: auto; }
@media (max-width: 900px) {
  .ledger-row { grid-template-columns: 1fr; }
  .ledger-row > .ledger-buy, .ledger-row > .ledger-pick, .ledger-row > .ledger-cta { justify-self: start; }
  .ledger-cta { align-items: flex-start; }
  .ledger-logo { width: 15rem; }
  .ledger-logo[src$=".svg"] { width: 10rem; }
}

/* three-choice ledger */
.ledger-leak { font-size: clamp(1.5rem, 2.6vw, 2.1rem); }
.ledger-price { margin: 0.7rem 0 0 !important; color: #f4f6f3 !important; font-family: "Manrope", system-ui, sans-serif; font-weight: 700; }
.ledger-price b { color: var(--amber); font-size: 1.5rem; font-weight: 800; }
.ledger-deal { margin: 0.6rem 0 0 !important; padding: 0.75rem 0.95rem; border: 1px solid rgba(48, 209, 88, 0.45); border-radius: 12px; background: rgba(48, 209, 88, 0.08); color: #dfe6dd !important; font-size: 0.98rem !important; }
.ledger-deal strong { color: #30d158; }
.ledger-row-wide .ledger-opts { grid-column: 3 / -1; display: grid; gap: 1.5rem; }
.ledger-opt { display: grid; grid-template-columns: minmax(0, 1fr) minmax(10.5rem, auto); column-gap: 1.5rem; align-items: center; }
.ledger-opt > .ledger-logo, .ledger-opt > p { grid-column: 1; }
.ledger-opt > .ledger-cta { grid-column: 2; grid-row: 1 / span 3; }
.ledger-opt + .ledger-opt { padding-top: 1.5rem; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.ledger-pick.ledger-start, .ledger-row.is-picked .ledger-pick.ledger-start { min-height: 3rem; padding: 0.7rem 1.4rem; border-color: var(--amber); background: var(--amber); color: #1b1204; font-family: "Manrope", system-ui, sans-serif; font-size: 1rem; font-weight: 800; letter-spacing: 0; text-transform: none; }
.relay-offer { margin: 1rem 0; padding: 0.9rem 1.1rem; border: 1px solid rgba(48, 209, 88, 0.45); border-radius: 12px; background: rgba(48, 209, 88, 0.08); }
.relay-offer b { color: #30d158; }
@media (max-width: 900px) {
  .ledger-row-wide .ledger-opts { grid-column: auto; }
  .ledger-opt { grid-template-columns: 1fr; row-gap: 0.8rem; }
  .ledger-opt > .ledger-cta { grid-column: 1; grid-row: auto; }
}
.relay-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.9rem 1.3rem; margin: 0 0 1.2rem; }
.ledger-cta .ledger-more { text-align: center; }
