/* StockWatch Beta — marketing site */

:root {
  color-scheme: dark;
  --bg: #07080a;
  --bg-2: #0b0c0f;
  --surface: #101116;
  --surface-2: #15171d;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --ink: #f2f3f5;
  --ink-2: #b4b8c3;
  --ink-3: #7d828f;
  --teal: #2ec4a6;
  --teal-2: #5fe0c4;
  --blue: #7aa2ff;
  --red: #f0535c;
  --amber: #f5b14c;
  --radius: 14px;
  --radius-lg: 22px;
  --max: 1200px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --shadow: 0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 40px 80px -20px rgba(0, 0, 0, 0.7), 0 20px 40px -20px rgba(0, 0, 0, 0.6);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 84px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 var(--font);
  font-feature-settings: "cv11", "ss01";
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

a {
  color: inherit;
  text-decoration: none;
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 6px;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--ink);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 1.1;
  text-wrap: balance;
}

h1 {
  font-size: clamp(42px, 6.4vw, 80px);
  letter-spacing: -0.04em;
  line-height: 1.02;
  font-weight: 700;
}

h2 {
  font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.032em;
}

h3 {
  font-size: 18px;
  letter-spacing: -0.012em;
  line-height: 1.3;
}

p {
  margin: 0;
  color: var(--ink-2);
}

.container {
  width: 100%;
  max-width: calc(var(--max) + 48px);
  margin-inline: auto;
  padding-inline: 24px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 8px;
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}
.skip:focus {
  top: 12px;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 46px;
  padding: 0 20px;
  border-radius: 999px;
  font: 600 15px/1 var(--font);
  letter-spacing: -0.005em;
  white-space: nowrap;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s,
    box-shadow 0.2s;
}
.btn:active {
  transform: translateY(1px);
}
.btn-primary {
  background: var(--ink);
  color: #0a0b0d;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2) inset,
    0 8px 24px -8px rgba(46, 196, 166, 0.45);
}
.btn-primary:hover {
  background: #fff;
  box-shadow: 0 0 0 1px #fff inset, 0 10px 30px -8px rgba(46, 196, 166, 0.65);
}
.btn-ghost {
  color: var(--ink);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.03);
}
.btn-ghost:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.06);
}
.btn-sm {
  height: 36px;
  padding: 0 16px;
  font-size: 14px;
}

/* ---------- Header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(7, 8, 10, 0.72);
  backdrop-filter: saturate(160%) blur(16px);
  -webkit-backdrop-filter: saturate(160%) blur(16px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s, background 0.25s;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
  background: rgba(7, 8, 10, 0.85);
}
.header-row {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 650;
  font-size: 17px;
  letter-spacing: -0.02em;
}
.brand img {
  border-radius: 8px;
}
.tag {
  font: 600 10.5px/1 var(--mono);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal-2);
  background: rgba(46, 196, 166, 0.12);
  border: 1px solid rgba(46, 196, 166, 0.28);
  padding: 4px 7px;
  border-radius: 999px;
}
.nav {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.nav a {
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-2);
  transition: color 0.15s, background 0.15s;
}
.nav a:hover {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.05);
}

/* ---------- Eyebrows / section heads ---------- */

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font: 600 12px/1 var(--mono);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--teal-2);
}
.live-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
}
.live-dot::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 1px solid var(--teal);
  opacity: 0;
  animation: ping 2.4s cubic-bezier(0, 0, 0.2, 1) infinite;
}
@keyframes ping {
  0% {
    transform: scale(0.6);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

.section {
  position: relative;
  padding-block: clamp(80px, 11vw, 140px);
}
.section-head {
  display: grid;
  justify-items: center;
  gap: 18px;
  text-align: center;
  max-width: 760px;
  margin: 0 auto clamp(44px, 6vw, 72px);
}
.section-head.left {
  justify-items: start;
  text-align: left;
  margin: 0;
}
.section-lead {
  font-size: clamp(16px, 1.4vw, 18px);
  max-width: 60ch;
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  padding-top: clamp(64px, 9vw, 120px);
  isolation: isolate;
}
.hero-bg {
  position: absolute;
  inset: -68px 0 0;
  z-index: -1;
  background:
    radial-gradient(60% 50% at 50% 0%, rgba(46, 196, 166, 0.18), transparent 70%),
    radial-gradient(40% 40% at 85% 30%, rgba(122, 162, 255, 0.12), transparent 70%),
    linear-gradient(to right, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 64px 64px,
    linear-gradient(to bottom, rgba(255, 255, 255, 0.04) 1px, transparent 1px) 0 0 / 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 100%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 20%, #000 40%, transparent 100%);
}
.hero-copy {
  display: grid;
  justify-items: center;
  text-align: center;
}
.hero-copy .eyebrow {
  padding: 8px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink-2);
  letter-spacing: 0.06em;
  margin-bottom: 28px;
}
.grad {
  background: linear-gradient(100deg, var(--teal-2) 0%, var(--blue) 70%, #b4a2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lead {
  margin-top: 24px;
  max-width: 620px;
  font-size: clamp(17px, 1.6vw, 20px);
  line-height: 1.55;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  font-size: 13.5px;
  color: var(--ink-3);
}
.hero-meta li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-meta li::before {
  content: "";
  width: 14px;
  height: 14px;
  background: var(--teal);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5 6.5 12 13 4.5' fill='none' stroke='%23000' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}

.hero-visual {
  position: relative;
  margin-top: clamp(56px, 7vw, 88px);
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 10% 8% -4%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(46, 196, 166, 0.28), rgba(122, 162, 255, 0.12) 60%, transparent);
  filter: blur(40px);
}
.hero-visual .window {
  max-width: 1120px;
  margin-inline: auto;
}
.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: clamp(60px, 16vw, 240px);
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

/* ---------- Window frame ---------- */

.window {
  position: relative;
  border-radius: var(--radius);
  background: linear-gradient(180deg, #1a1c22, #111217);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.window-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 36px;
  padding: 0 14px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.window-bar span {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3a3d45;
}
.window-bar span:nth-child(1) {
  background: #ff5f57;
}
.window-bar span:nth-child(2) {
  background: #febc2e;
}
.window-bar span:nth-child(3) {
  background: #28c840;
}
.window-bar p {
  flex: 1;
  margin-right: 40px;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-3);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.window > a {
  display: block;
  cursor: zoom-in;
  background: #0b0c0e;
}
.window img {
  width: 100%;
}

/* ---------- Features ---------- */

.features {
  padding-top: clamp(64px, 8vw, 110px);
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.feature {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 32px 28px 36px;
  background: var(--bg-2);
  transition: background 0.25s;
}
.feature:hover {
  background: var(--surface);
}
.feature p {
  font-size: 15px;
  line-height: 1.6;
}
.icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 10px;
  border-radius: 11px;
  color: var(--teal-2);
  background: linear-gradient(180deg, rgba(46, 196, 166, 0.16), rgba(46, 196, 166, 0.05));
  border: 1px solid rgba(46, 196, 166, 0.25);
}
.icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- Tour ---------- */

.tour {
  background:
    radial-gradient(50% 40% at 70% 50%, rgba(122, 162, 255, 0.07), transparent 70%),
    var(--bg-2);
  border-block: 1px solid var(--line);
}
.tour-layout {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
.tour-tabs {
  display: grid;
  gap: 4px;
}
.tour-tabs a {
  position: relative;
  display: grid;
  gap: 4px;
  padding: 14px 18px 14px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}
.tour-tabs a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 16px;
  bottom: 16px;
  width: 2px;
  border-radius: 2px;
  background: var(--teal);
  opacity: 0;
  transition: opacity 0.2s;
}
.tour-tabs strong {
  font-size: 15.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.2s;
}
.tour-tabs span {
  display: none;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink-2);
}
.tour-tabs a:hover strong {
  color: var(--ink);
}
.tour-tabs a[aria-selected="true"] {
  background: var(--surface-2);
  border-color: var(--line);
}
.tour-tabs a[aria-selected="true"]::before {
  opacity: 1;
}
.tour-tabs a[aria-selected="true"] strong {
  color: var(--ink);
}
.tour-tabs a[aria-selected="true"] span {
  display: block;
}
.tour-stage {
  position: sticky;
  top: 96px;
}
.tour-desc {
  display: none;
  margin-top: 16px;
  font-size: 15px;
}
#tour-shot {
  transition: opacity 0.25s ease;
}
#tour-shot.fading {
  opacity: 0;
}

/* ---------- Mobile ---------- */

.mobile-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.mobile-copy {
  display: grid;
  gap: 18px;
}
.posture {
  display: grid;
  gap: 12px;
  margin-top: 18px;
  justify-items: start;
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 4px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.seg button {
  appearance: none;
  border: 0;
  margin: 0;
  width: auto;
  padding: 8px 14px;
  border-radius: 8px;
  background: transparent;
  color: var(--ink-2);
  font: 500 14px/1.2 var(--font);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}
.seg button:hover {
  color: var(--ink);
}
.seg button[aria-checked="true"] {
  background: var(--surface-2);
  color: var(--ink);
  box-shadow: 0 0 0 1px var(--line-strong) inset, 0 2px 6px rgba(0, 0, 0, 0.4);
}
.seg button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.seg-small button {
  padding: 6px 12px;
  font-size: 13px;
}
.posture-note {
  font: 500 12.5px/1.4 var(--mono);
  color: var(--ink-3);
  letter-spacing: 0.02em;
}

.device-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: clamp(420px, 46vw, 600px);
}
.device-stage::before {
  content: "";
  position: absolute;
  inset: 12%;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(46, 196, 166, 0.22), transparent);
  filter: blur(30px);
}
.device {
  position: relative;
  padding: 10px;
  border-radius: 44px;
  background: linear-gradient(145deg, #2b2e36, #14161b 60%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.12) inset, var(--shadow);
  transition: width 0.35s ease;
}
.device a {
  display: block;
  overflow: hidden;
  border-radius: 34px;
  background: #000;
  cursor: zoom-in;
}
.device img {
  width: 100%;
  transition: opacity 0.25s ease;
}
.device img.fading {
  opacity: 0;
}
.device.portrait {
  width: min(100%, 300px);
}
.device.landscape {
  width: min(100%, 560px);
}
.device.wide {
  width: min(100%, 360px);
}
.device.wide.landscape {
  width: min(100%, 600px);
}

/* ---------- How it works ---------- */

.how {
  border-top: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}
.steps li {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 30px 28px 32px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
  border: 1px solid var(--line);
}
.step-num {
  font: 600 13px/1 var(--mono);
  color: var(--teal-2);
  margin-bottom: 14px;
}
.steps p {
  font-size: 15px;
}

.privacy {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px;
  align-items: center;
  margin-top: 20px;
  padding: 32px 36px;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(46, 196, 166, 0.2);
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(46, 196, 166, 0.1), transparent 70%),
    var(--bg-2);
}
.privacy h3 {
  font-size: 22px;
  margin-bottom: 8px;
}
.privacy ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  font-size: 15px;
  color: var(--ink);
}
.privacy li {
  display: flex;
  align-items: center;
  gap: 12px;
}
.check {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(46, 196, 166, 0.16)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 7 11.5 12 5' fill='none' stroke='%235fe0c4' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E")
    center / 14px no-repeat;
}
.check.muted {
  background-color: rgba(255, 255, 255, 0.06);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Ccircle cx='8' cy='8' r='2' fill='%237d828f'/%3E%3C/svg%3E");
}
.privacy li:has(.muted) {
  color: var(--ink-2);
}

/* ---------- FAQ ---------- */

.faq {
  border-top: 1px solid var(--line);
}
.faq-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: clamp(40px, 6vw, 96px);
  align-items: start;
}
.faq-list {
  border-top: 1px solid var(--line);
}
details {
  border-bottom: 1px solid var(--line);
}
summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  list-style: none;
  cursor: pointer;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: -0.01em;
  color: var(--ink);
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "";
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23b4b8c3' stroke-width='1.5' stroke-linecap='round'/%3E%3C/svg%3E")
    center / 12px no-repeat;
  transition: transform 0.25s, background-color 0.2s;
}
summary:hover::after {
  background-color: rgba(255, 255, 255, 0.06);
}
details[open] summary::after {
  transform: rotate(45deg);
}
details p {
  padding: 0 48px 24px 0;
  font-size: 15.5px;
}

/* ---------- Availability CTA ---------- */

.availability {
  padding-top: 0;
}
.cta-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
  padding: clamp(36px, 5vw, 64px);
  border-radius: 28px;
  border: 1px solid var(--line-strong);
  background: linear-gradient(160deg, #13151b, #0b0c10);
  overflow: hidden;
  isolation: isolate;
}
.cta-glow {
  position: absolute;
  inset: -40% -10% auto auto;
  width: 70%;
  aspect-ratio: 1;
  z-index: -1;
  background: radial-gradient(closest-side, rgba(46, 196, 166, 0.25), rgba(122, 162, 255, 0.1) 55%, transparent);
  filter: blur(20px);
}
.cta-copy {
  display: grid;
  gap: 14px;
  justify-items: start;
}
.cta-copy img {
  border-radius: 16px;
  margin-bottom: 8px;
  box-shadow: 0 10px 30px -8px rgba(46, 196, 166, 0.4);
}
.cta-copy p {
  font-size: 17px;
}
.platforms {
  display: grid;
  gap: 12px;
}
.platform {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 20px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}
.platform svg {
  flex: none;
  width: 26px;
  height: 26px;
  fill: var(--ink);
}
.platform div {
  display: grid;
  gap: 2px;
  margin-right: auto;
}
.platform strong {
  font-weight: 600;
}
.platform span {
  font-size: 13.5px;
  color: var(--ink-3);
}
.status {
  font: 600 11.5px/1 var(--mono);
  font-style: normal;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--ink-3);
  border: 1px solid var(--line-strong);
  white-space: nowrap;
}
.status.soon {
  color: var(--teal-2);
  border-color: rgba(46, 196, 166, 0.35);
  background: rgba(46, 196, 166, 0.1);
}

/* ---------- Footer ---------- */

.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 36px;
}
.footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 32px;
}
.footer-row nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin-right: auto;
  font-size: 14px;
  color: var(--ink-2);
}
.footer-row nav a:hover {
  color: var(--ink);
}
.fineprint {
  font-size: 13px;
  color: var(--ink-3);
}

/* ---------- Lightbox ---------- */

.lightbox {
  width: min(96vw, 1600px);
  max-width: none;
  max-height: 94vh;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 14px;
  background: #0b0c0e;
  overflow: hidden;
}
.lightbox::backdrop {
  background: rgba(3, 4, 6, 0.82);
  backdrop-filter: blur(6px);
}
.lightbox img {
  width: 100%;
  max-height: 94vh;
  object-fit: contain;
}
.lightbox form {
  position: absolute;
  top: 10px;
  right: 10px;
  margin: 0;
}
.lightbox-close {
  appearance: none;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  background: rgba(10, 11, 13, 0.8);
  color: var(--ink);
  font: 400 22px/1 var(--font);
  cursor: pointer;
}

.phone-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 32px;
  font-size: 14px;
  color: var(--blue);
}

/* ---------- Reveal on scroll ---------- */

.js .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.js .reveal.in {
  opacity: 1;
  transform: none;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .tour-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .tour-tabs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
    margin-inline: -24px;
    padding-inline: 24px;
    scroll-padding-inline: 24px;
  }
  .tour-tabs::-webkit-scrollbar {
    display: none;
  }
  .tour-tabs a {
    flex: none;
    padding: 9px 16px;
    border-radius: 999px;
    border-color: var(--line);
  }
  .tour-tabs a::before,
  .tour-tabs a[aria-selected="true"] span {
    display: none;
  }
  .tour-tabs strong {
    font-size: 14px;
  }
  .tour-tabs a[aria-selected="true"] {
    background: var(--ink);
    border-color: var(--ink);
  }
  .tour-tabs a[aria-selected="true"] strong {
    color: #0a0b0d;
  }
  .tour-stage {
    position: static;
  }
  .tour-desc {
    display: block;
  }
}

@media (max-width: 860px) {
  .nav {
    display: none;
  }
  .header-row {
    justify-content: space-between;
  }
  .mobile-layout,
  .faq-layout,
  .privacy,
  .cta-card {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps {
    grid-template-columns: minmax(0, 1fr);
  }
  .device-stage {
    min-height: 0;
  }
}

@media (max-width: 560px) {
  .feature-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .feature {
    padding: 26px 22px 28px;
  }
  .cta-row .btn {
    flex: 1 1 100%;
  }
  .window-bar {
    height: 28px;
  }
  .window-bar span {
    width: 8px;
    height: 8px;
  }
  .window-bar p {
    font-size: 11px;
  }
  .window {
    border-radius: 10px;
  }
  .privacy {
    padding: 26px 22px;
  }
  details p {
    padding-right: 0;
  }
  .device {
    padding: 7px;
    border-radius: 32px;
  }
  .device a {
    border-radius: 26px;
  }
  .device.portrait {
    width: min(100%, 260px);
  }
  .platform {
    padding: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
  .js .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Small phones (closed iPhone Duo, compact iPhone) ---------- */

@media (max-width: 560px) {
  .container {
    padding-inline: 20px;
  }
  .tour-tabs {
    margin-inline: -20px;
    padding-inline: 20px;
  }
  .header-row {
    height: 60px;
    gap: 12px;
  }
  .brand {
    gap: 8px;
    font-size: 16px;
  }
  .brand img {
    width: 26px;
    height: 26px;
    border-radius: 7px;
  }
  .site-header .btn-sm {
    height: 34px;
    padding: 0 14px;
    font-size: 13.5px;
  }
  .hero {
    padding-top: 44px;
  }
  .hero-copy .eyebrow {
    margin-bottom: 24px;
    padding: 7px 12px;
    font-size: 10.5px;
    letter-spacing: 0.05em;
    gap: 8px;
  }
  .live-dot {
    width: 6px;
    height: 6px;
  }
  .live-dot::after {
    inset: -3px;
  }
  h1 {
    font-size: clamp(34px, 9.6vw, 44px);
    line-height: 1.08;
    letter-spacing: -0.035em;
  }
  .lead {
    margin-top: 20px;
    font-size: 16px;
    line-height: 1.6;
  }
  .cta-row {
    margin-top: 32px;
    gap: 10px;
    width: 100%;
  }
  .cta-row .btn {
    height: 48px;
  }
  .hero-meta {
    margin-top: 24px;
    gap: 8px 18px;
    font-size: 13px;
  }
  .hero-visual {
    margin-top: 48px;
  }
  .section {
    padding-block: 72px;
  }
  .section-head {
    gap: 14px;
    margin-bottom: 36px;
  }
  h2 {
    font-size: clamp(28px, 7.6vw, 34px);
    line-height: 1.12;
  }
}

/* Very narrow: drop the Beta pill so the header button keeps its room. */
@media (max-width: 400px) {
  .tag {
    display: none;
  }
}

/* Short landscape screens: don't let a sticky header eat the view. */
@media (max-height: 520px) and (orientation: landscape) {
  .site-header {
    position: static;
  }
  html {
    scroll-padding-top: 16px;
  }
  .hero {
    padding-top: 36px;
  }
}

/* ---------- Self-hosted ---------- */

.selfhost {
  border-top: 1px solid var(--line);
}
.selfhost-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
.selfhost-points {
  display: grid;
  gap: 26px;
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
}
.selfhost-points li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 16px;
}
.selfhost-points h3 {
  font-size: 18px;
  margin-bottom: 6px;
}
.selfhost-points p {
  font-size: 15px;
}
.point-num {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(46, 196, 166, 0.3);
  background: rgba(46, 196, 166, 0.08);
  font: 600 13px/1 var(--mono);
  color: var(--teal-2);
}

.network {
  margin: 0;
  padding: clamp(24px, 3vw, 36px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background:
    radial-gradient(70% 60% at 50% 0%, rgba(46, 196, 166, 0.12), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
}
.net-icon {
  display: grid;
  place-items: center;
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
  color: var(--ink-2);
}
.net-icon svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.net-host {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border-radius: var(--radius);
  border: 1px solid rgba(46, 196, 166, 0.35);
  background: rgba(46, 196, 166, 0.07);
}
.net-host .net-icon {
  color: var(--teal-2);
  background: rgba(46, 196, 166, 0.12);
  border-color: rgba(46, 196, 166, 0.3);
}
.net-host strong,
.net-clients strong {
  display: block;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.net-host div span {
  font-size: 13.5px;
  color: var(--ink-3);
}
.net-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-style: normal;
  color: var(--teal-2);
}
.net-wire {
  position: relative;
  display: grid;
  place-items: center;
  height: 64px;
}
.net-wire::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: 1.5px dashed rgba(46, 196, 166, 0.45);
}
.net-wire span {
  position: relative;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line-strong);
  background: var(--bg-2);
  font: 600 11px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-2);
}
.net-clients {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 0;
  padding: 22px 0 0;
  list-style: none;
}
.net-clients::before {
  content: "";
  position: absolute;
  top: 0;
  left: 16.7%;
  right: 16.7%;
  height: 22px;
  border: 1.5px dashed rgba(46, 196, 166, 0.45);
  border-bottom: 0;
  border-radius: 12px 12px 0 0;
}
.net-clients li {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 18px 8px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  text-align: center;
}
.network figcaption {
  display: grid;
  gap: 6px;
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
.net-url {
  font: 500 13.5px/1.3 var(--mono);
  color: var(--ink);
  overflow-wrap: anywhere;
}

@media (max-width: 860px) {
  .selfhost-layout {
    grid-template-columns: minmax(0, 1fr);
  }
}
@media (max-width: 560px) {
  .selfhost-points {
    margin-top: 32px;
    gap: 22px;
  }
  .net-clients {
    gap: 8px;
  }
  .net-clients li {
    padding: 14px 4px 12px;
  }
  .net-clients .net-icon {
    width: 36px;
    height: 36px;
  }
}

/* ---------- Bring your own data ---------- */

.data-callout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(26px, 3.4vw, 40px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(245, 177, 76, 0.22);
  background:
    radial-gradient(60% 120% at 0% 0%, rgba(245, 177, 76, 0.08), transparent 70%),
    var(--bg-2);
}
.data-callout .eyebrow {
  color: var(--amber);
  margin-bottom: 14px;
}
.data-callout h3 {
  font-size: clamp(20px, 2vw, 24px);
  line-height: 1.25;
  margin-bottom: 12px;
}
.data-callout p:not(.eyebrow) {
  font-size: 15px;
}
.providers {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.providers li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
}
.providers strong {
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.providers span {
  grid-column: 1;
  font-size: 13px;
  color: var(--ink-3);
}
.providers .status {
  grid-column: 2;
  grid-row: 1 / span 2;
}
.status.ok {
  color: var(--teal-2);
  background: rgba(46, 196, 166, 0.12);
  border-color: rgba(46, 196, 166, 0.3);
}
@media (max-width: 860px) {
  .data-callout {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* ---------- Install ---------- */

.install {
  border-top: 1px solid var(--line);
}
.install-flow {
  max-width: 760px;
  margin: 0 auto;
}
.install-flow a,
.src-card a {
  color: var(--teal-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.data-sources {
  margin-top: clamp(64px, 8vw, 104px);
}
.sub-title {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.025em;
}
.src-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: stretch;
}
.src-card {
  padding: clamp(22px, 2.6vw, 30px);
  border-radius: var(--radius-lg);
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface), var(--bg-2));
}
.src-card.req {
  border-color: rgba(46, 196, 166, 0.3);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(46, 196, 166, 0.1), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
}
.src-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.src-card h4 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--ink);
}
.src-card b {
  color: var(--ink);
  font-weight: 600;
}
.install-steps {
  margin-top: 0;
}
.install b,
.tt-card b {
  color: var(--ink);
  font-weight: 600;
}
.install code {
  font: 500 0.9em var(--mono);
  color: var(--ink);
  padding: 1px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  overflow-wrap: anywhere;
}
.tt-card {
  padding: clamp(24px, 3vw, 34px);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(46, 196, 166, 0.22);
  background:
    radial-gradient(70% 60% at 100% 0%, rgba(46, 196, 166, 0.1), transparent 70%),
    linear-gradient(180deg, var(--surface), var(--bg-2));
  box-shadow: var(--shadow);
}
.tt-card .eyebrow {
  margin-bottom: 12px;
}
.tt-card h3 {
  font-size: 20px;
  line-height: 1.3;
}
.tt-intro {
  margin-top: 8px;
  font-size: 15px;
}
.tt-steps {
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: tt;
  font-size: 14.5px;
  line-height: 1.6;
}
.tt-steps li {
  position: relative;
  padding-left: 36px;
  counter-increment: tt;
}
.tt-steps li::before {
  content: counter(tt);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(46, 196, 166, 0.14);
  font: 600 12px/1 var(--mono);
  color: var(--teal-2);
}
.tt-card a {
  color: var(--teal-2);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.tt-note {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  font-size: 13px;
  color: var(--ink-3);
}
@media (max-width: 860px) {
  .src-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
