/* Relay public site theme — extracted from the original landing page; colors
   and feel preserved. Icon blocks are now ICON-LEFT / TEXT-BESIDE rows. */
:root {
  color-scheme: dark;
  --bg: #0b1020;
  --bg-soft: #0f1530;
  --panel: rgba(255, 255, 255, 0.03);
  --panel-2: linear-gradient(160deg, rgba(35, 44, 72, 0.55), rgba(18, 24, 44, 0.55));
  --border: rgba(255, 255, 255, 0.10);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #e6eaf2;
  --muted: #9aa3bd;
  --muted-2: #6b7493;
  --brand: #6366f1;
  --brand-2: #818cf8;
  --brand-glow: rgba(99, 102, 241, 0.45);
  --accent: #38bdf8;
  --radius: 18px;
  --maxw: 1120px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(1200px 620px at 50% -8%, #1b2547 0%, rgba(27, 37, 71, 0) 60%),
    radial-gradient(900px 500px at 85% 8%, rgba(56, 189, 248, 0.10), rgba(56, 189, 248, 0) 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
a { color: inherit; }
img, svg { display: block; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--brand-2); background: rgba(99, 102, 241, 0.10);
  border: 1px solid rgba(99, 102, 241, 0.25); border-radius: 999px;
  padding: 6px 14px;
}
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
.section { padding: 96px 0; position: relative; }
.section.tight { padding: 56px 0; }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 800; }
.section-head p { color: var(--muted); font-size: 17px; margin: 16px 0 0; }
.section-alt { background: linear-gradient(180deg, rgba(255,255,255,0.015), transparent); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: inherit; font-size: 15px; font-weight: 600; text-decoration: none;
  padding: 12px 22px; border-radius: 12px; border: 1px solid transparent;
  cursor: pointer; transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
  white-space: nowrap;
}
.btn-primary {
  color: #fff; background: linear-gradient(180deg, #6f72f6, #5257e8);
  box-shadow: 0 10px 30px -10px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 40px -12px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.22); }
.btn-ghost { color: var(--text); background: rgba(255, 255, 255, 0.04); border-color: var(--border); }
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--border-strong); background: rgba(255, 255, 255, 0.07); }
.btn-sm { padding: 9px 16px; font-size: 14px; }

/* Nav */
header.nav {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  background: rgba(11, 16, 32, 0.62);
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, background .2s ease;
}
header.nav.scrolled { border-bottom-color: var(--border); background: rgba(11, 16, 32, 0.82); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; letter-spacing: -0.02em; text-decoration: none; color: var(--text); }
.brand .logo {
  width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(160deg, #6f72f6, #4f56e6);
  display: grid; place-items: center; box-shadow: 0 6px 18px -6px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.nav-cta { display: flex; align-items: center; gap: 6px; }
.nav-cta a.link { color: var(--muted); text-decoration: none; font-size: 14.5px; font-weight: 500; padding: 8px 12px; border-radius: 9px; transition: color .14s ease, background .14s ease; }
.nav-cta a.link:hover { color: var(--text); background: rgba(255, 255, 255, 0.05); }
.nav-cta a.link.active { color: var(--text); background: rgba(255, 255, 255, 0.06); }

/* Hero */
.hero { padding: 84px 0 72px; text-align: center; position: relative; }
.hero h1 { font-size: clamp(36px, 6vw, 62px); font-weight: 900; max-width: 14ch; margin: 22px auto 0; }
.hero h1 .grad { background: linear-gradient(120deg, #a5b4fc, #38bdf8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero p.sub { font-size: clamp(16px, 2.2vw, 20px); color: var(--muted); max-width: 60ch; margin: 22px auto 0; }
.hero .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 34px; }
.hero .trust { margin-top: 20px; color: var(--muted-2); font-size: 13.5px; }
.hero .trust strong { color: var(--muted); font-weight: 600; }

/* Page hero (interior pages) */
.page-hero { padding: 72px 0 24px; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 900; margin-top: 20px; }
.page-hero p.sub { font-size: 17px; color: var(--muted); max-width: 62ch; margin: 18px auto 0; }

/* Hero visual */
.hero-visual {
  margin: 56px auto 0; max-width: 940px; border-radius: 22px;
  border: 1px solid var(--border); background: var(--panel-2);
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 18px; position: relative; overflow: hidden;
}
.hero-visual::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(600px 200px at 50% -20%, rgba(99, 102, 241, 0.18), transparent 70%);
  pointer-events: none;
}
.hv-bar { display: flex; align-items: center; gap: 7px; padding: 4px 6px 14px; }
.hv-dot { width: 11px; height: 11px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.hv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
/* Icon-left row layout (was icon-above). */
.hv-tile {
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border);
  border-radius: 12px; padding: 14px 16px; text-align: left; min-height: 72px;
  display: flex; flex-direction: row; align-items: center; gap: 12px;
}
.hv-tile .ic { flex: 0 0 auto; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(99, 102, 241, 0.16); color: var(--brand-2); }
.hv-tile .ic svg { width: 18px; height: 18px; }
.hv-tile .tbody { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.hv-tile .lbl { font-size: 13px; font-weight: 600; }
.hv-tile .meta { font-size: 11.5px; color: var(--muted-2); }
.hv-tile.live .ic { background: rgba(56, 189, 248, 0.16); color: var(--accent); }
.pulse-dot { width: 7px; height: 7px; border-radius: 50%; background: #34d399; box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); animation: pulse 1.8s infinite; display: inline-block; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55); } 70% { box-shadow: 0 0 0 8px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }

/* Stats strip */
.stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 56px; padding: 8px 0 0; }
.stat { text-align: center; }
.stat .n { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.stat .l { font-size: 13px; color: var(--muted-2); }

/* Features grid — icon LEFT, copy beside it. */
.features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feature {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
  position: relative; overflow: hidden;
  display: flex; flex-direction: row; align-items: flex-start; gap: 16px;
}
.feature:hover { transform: translateY(-3px); border-color: rgba(99, 102, 241, 0.5); box-shadow: 0 24px 50px -28px rgba(0, 0, 0, 0.7); }
.feature .ficon {
  flex: 0 0 auto; width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(160deg, rgba(99, 102, 241, 0.22), rgba(56, 189, 248, 0.10));
  border: 1px solid rgba(99, 102, 241, 0.25); color: var(--brand-2);
}
.feature .ficon svg { width: 23px; height: 23px; }
.feature .fbody { min-width: 0; }
.feature h3 { font-size: 17px; font-weight: 700; }
.feature p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }

/* How it works — number LEFT, copy beside it. */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background: var(--panel); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; position: relative;
  display: flex; flex-direction: row; align-items: flex-start; gap: 16px;
}
.step .num {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  font-weight: 800; font-size: 17px; color: #fff;
  background: linear-gradient(160deg, #6f72f6, #4f56e6);
  box-shadow: 0 8px 22px -10px var(--brand-glow);
}
.step .sbody { min-width: 0; flex: 1; }
.step h3 { font-size: 17px; font-weight: 700; }
.step p { color: var(--muted); font-size: 14.5px; margin: 8px 0 0; }
.step .cmd {
  margin-top: 14px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12.5px;
  background: #060912; border: 1px solid var(--border); border-radius: 10px; padding: 11px 13px;
  color: #b6f0c9; overflow-x: auto; white-space: nowrap;
}
.step .cmd .pmt { color: var(--muted-2); user-select: none; }

/* Product page: alternating detail rows */
.detail { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 44px 0; border-top: 1px solid var(--border); }
.detail:first-of-type { border-top: none; }
.detail .dcopy h3 { font-size: 24px; font-weight: 800; }
.detail .dcopy p { color: var(--muted); font-size: 15.5px; margin: 14px 0 0; }
.detail .dcopy ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.detail .dcopy ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); }
.detail .dcopy ul li svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: #34d399; }
.detail .dvis {
  border: 1px solid var(--border); border-radius: var(--radius); background: var(--panel-2);
  padding: 26px; min-height: 200px; display: flex; flex-direction: column; gap: 12px; justify-content: center;
}
.detail .dvis .row { display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,0.04); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.detail .dvis .row .ic { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; background: rgba(99,102,241,0.16); color: var(--brand-2); }
.detail .dvis .row .ic svg { width: 17px; height: 17px; }
.detail .dvis .row .t { font-size: 13px; font-weight: 600; }
.detail .dvis .row .m { font-size: 11.5px; color: var(--muted-2); }
.detail .dvis .row .right { margin-left: auto; font-size: 11.5px; color: var(--muted-2); white-space: nowrap; }
.detail.flip .dvis { order: -1; }

/* Pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: stretch; }
.plan {
  background: var(--panel-2); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 30px 26px; display: flex; flex-direction: column; position: relative;
  transition: transform .16s ease, border-color .16s ease;
}
.plan:hover { transform: translateY(-3px); }
.plan.featured {
  border-color: rgba(99, 102, 241, 0.6);
  box-shadow: 0 30px 70px -34px var(--brand-glow), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  background: linear-gradient(160deg, rgba(54, 60, 110, 0.55), rgba(22, 27, 52, 0.6));
}
.plan .badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  font-size: 11.5px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  color: #fff; background: linear-gradient(180deg, #6f72f6, #5257e8);
  padding: 5px 14px; border-radius: 999px; box-shadow: 0 8px 20px -8px var(--brand-glow); white-space: nowrap;
}
.plan .pname { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--brand-2); }
.plan .price { margin: 14px 0 4px; display: flex; align-items: baseline; gap: 4px; }
.plan .price .amt { font-size: 44px; font-weight: 900; letter-spacing: -0.03em; }
.plan .price .per { color: var(--muted-2); font-size: 15px; font-weight: 500; }
.plan .ptag { color: var(--muted); font-size: 14px; min-height: 20px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0; display: grid; gap: 12px; }
.plan ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); }
.plan ul li svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: #34d399; }
.plan ul li.addon { color: var(--muted); }
.plan ul li.addon svg { color: var(--brand-2); }
.plan ul li.none { color: var(--muted-2); }
.plan ul li.none svg { color: var(--muted-2); }
.plan .plan-foot { margin-top: auto; }
.plan .btn { width: 100%; }
.pricing-note { text-align: center; color: var(--muted-2); font-size: 13.5px; margin-top: 28px; }

/* Home landing — two product blocks side by side (VIDEO_PLAN.md §12). */
.product-split { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
.product-block {
  background: var(--panel-2); border: 1px solid var(--border); border-top: 3px solid var(--brand);
  border-radius: var(--radius); padding: 40px 36px 36px; display: flex; flex-direction: column; gap: 18px;
}
.product-block h2 { font-size: clamp(21px, 3vw, 27px); font-weight: 800; margin-top: 4px; }
.product-block ul { list-style: none; padding: 0; margin: 2px 0 0; display: grid; gap: 10px; }
.product-block ul li { display: flex; align-items: flex-start; gap: 10px; font-size: 14.5px; color: var(--text); }
.product-block ul li svg { flex: 0 0 auto; width: 18px; height: 18px; margin-top: 2px; color: #34d399; }
.product-block .pb-visual { display: grid; gap: 10px; margin-top: 2px; }
.product-block .cta-row { justify-content: flex-start; margin-top: auto; padding-top: 10px; }
/* Video accent (sky) — used on the home Video block and the whole /video page. */
.hv-tile.accent .ic { background: rgba(56, 189, 248, 0.16); color: var(--accent); }
.product-block.video-accent { border-top-color: var(--accent); }
.video-accent .eyebrow { color: var(--accent); background: rgba(56, 189, 248, 0.10); border-color: rgba(56, 189, 248, 0.25); }
.video-accent .detail .dvis .row .ic { background: rgba(56, 189, 248, 0.16); color: var(--accent); }

/* Slim trust strip under the product split. */
.trust-strip { padding: 4px 0 88px; text-align: center; }
.trust-strip .ts-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; color: var(--muted); font-size: 14.5px; }
.trust-strip .dot { color: var(--muted-2); }

/* FAQ */
.faq { max-width: 760px; margin: 0 auto; display: grid; gap: 14px; }
.faq details { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 18px 22px; }
.faq summary { cursor: pointer; font-weight: 700; font-size: 15.5px; }
.faq details p { color: var(--muted); font-size: 14.5px; margin: 12px 0 0; }

/* CTA band */
.cta-band {
  text-align: center; border: 1px solid var(--border); border-radius: 24px;
  background:
    radial-gradient(700px 240px at 50% -30%, rgba(99, 102, 241, 0.22), transparent 70%),
    var(--panel-2);
  padding: 56px 28px; box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.cta-band h2 { font-size: clamp(26px, 4vw, 36px); font-weight: 800; }
.cta-band p { color: var(--muted); font-size: 17px; margin: 14px auto 0; max-width: 52ch; }
.cta-band .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 28px; }

/* Forms (contact) */
.form-card {
  max-width: 640px; margin: 0 auto; background: var(--panel-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 32px;
}
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-grid .full { grid-column: 1 / -1; }
label.f { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
input.f, textarea.f {
  width: 100%; font-family: inherit; font-size: 14.5px; color: var(--text);
  background: rgba(255, 255, 255, 0.04); border: 1px solid var(--border); border-radius: 10px;
  padding: 11px 13px; outline: none; transition: border-color .14s ease;
}
input.f:focus, textarea.f:focus { border-color: rgba(99, 102, 241, 0.6); }
textarea.f { resize: vertical; min-height: 140px; }
.form-note { color: var(--muted-2); font-size: 13px; margin-top: 14px; }
.alert { border-radius: 12px; padding: 13px 16px; font-size: 14.5px; margin-bottom: 18px; }
.alert.err { background: rgba(248, 113, 113, 0.10); border: 1px solid rgba(248, 113, 113, 0.35); color: #fca5a5; }
.alert.ok { background: rgba(52, 211, 153, 0.10); border: 1px solid rgba(52, 211, 153, 0.35); color: #6ee7b7; }
.contact-side { display: grid; gap: 14px; margin-top: 40px; }
.contact-side .row { display: flex; align-items: flex-start; gap: 12px; }
.contact-side .row .ic { flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(99,102,241,0.16); color: var(--brand-2); }
.contact-side .row .ic svg { width: 18px; height: 18px; }

/* Prose (legal pages) */
.prose { max-width: 760px; margin: 0 auto; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 40px 0 0; }
.prose p, .prose li { color: var(--muted); font-size: 15px; }
.prose p { margin: 14px 0 0; }
.prose ul { margin: 14px 0 0; padding-left: 22px; }
.prose .updated { color: var(--muted-2); font-size: 13px; }

/* Footer */
footer.site { border-top: 1px solid var(--border); padding: 44px 0 40px; margin-top: 40px; }
.foot-inner { display: flex; flex-wrap: wrap; gap: 22px; align-items: center; justify-content: space-between; }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--muted); text-decoration: none; font-size: 14px; transition: color .14s ease; }
.foot-links a:hover { color: var(--text); }
.foot-copy { color: var(--muted-2); font-size: 13px; }

@media (max-width: 920px) {
  .features-grid, .steps, .pricing-grid { grid-template-columns: 1fr 1fr; }
  .hv-grid { grid-template-columns: 1fr 1fr; }
  .detail { grid-template-columns: 1fr; gap: 24px; }
  .detail.flip .dvis { order: 0; }
  .product-split { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .section { padding: 72px 0; }
  .nav-cta a.link { display: none; }
  .features-grid, .steps, .pricing-grid, .hv-grid { grid-template-columns: 1fr; }
  .plan.featured { order: -1; }
  .hero { padding: 56px 0 48px; }
  .hero-visual { padding: 12px; }
  .form-grid { grid-template-columns: 1fr; }
  .product-block { padding: 30px 24px; }
}
@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
}
