/* KeyBridge site. Black, white Helvetica, real screenshots, hairlines. One accent (the app's cyan), used rarely. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #000;
  --fg: #fff;
  --muted: #a1a1a6;
  --faint: #6e6e73;
  --line: #262628;
  --panel: #0d0d0e;
  --accent: #4fc3f5;              /* the app's cyan: links and ticks only */
  --font: "Helvetica Neue", Helvetica, Arial, sans-serif;
  --space: 8px;
  --measure: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { background: var(--bg); color: var(--fg); font: 400 17px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.wrap { max-width: var(--measure); margin: 0 auto; padding: 0 calc(var(--space) * 3); }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(0, 0, 0, 0.88); backdrop-filter: saturate(140%) blur(12px); }
.nav .wrap { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; }
.wordmark { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.wordmark svg { width: 26px; height: 26px; }
.nav ul { display: flex; gap: calc(var(--space) * 4); list-style: none; font-size: 14px; }
.nav ul a { text-decoration: none; color: var(--fg); opacity: 0.85; transition: opacity 150ms var(--ease); }
.nav ul a:hover { opacity: 1; }
.nav .right { justify-self: end; }

/* Buttons: one white pill per place; everything else is a plain link. */
.pill { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 22px; border-radius: 999px;
  background: var(--fg); color: #000; font: 500 15px/1.2 var(--font); text-decoration: none; text-align: center;
  transition: background 150ms var(--ease), transform 150ms var(--ease); }
.pill:hover { background: #dcdcde; }
.pill:active { transform: scale(0.98); }
.pill.small { min-height: 34px; padding: 7px 16px; font-size: 14px; }
.pill.outline { background: transparent; color: var(--fg); box-shadow: inset 0 0 0 1px #fff; }
.pill.outline:hover { background: #fff; color: #000; }
.link { font-size: 15px; font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 1px; }
.link:hover { color: var(--muted); }

/* Coming soon: a cyan tag with a slow pulse (nav, hero, buy page). */
p.soon, .soon-tag { display: flex; align-items: center; gap: 9px; width: max-content; border-radius: 999px; font: 500 13px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; }
p.soon { margin: 22px auto 0; padding: 8px 14px 8px 12px; color: var(--accent); background: rgba(79, 195, 245, 0.1); box-shadow: inset 0 0 0 1px rgba(79, 195, 245, 0.35); }
.soon-tag { padding: 9px 14px 9px 12px; color: var(--muted); box-shadow: inset 0 0 0 1px #3a3a3c; font-size: 12px; }
p.soon i, .soon-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
.cta-note { color: var(--muted); font-size: 15px; }
.doc p.soon { margin: 0 0 18px; color: var(--accent); }

/* Hero */
.hero { text-align: center; padding-top: calc(var(--space) * 14); padding-bottom: calc(var(--space) * 6); }
.lockup { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 20px; letter-spacing: -0.03em; }
.lockup svg { width: 24px; height: 24px; }
.lockup small { font-weight: 400; color: var(--muted); letter-spacing: 0; font-size: 17px; }
.hero h1 { text-wrap: balance; font-weight: 500; font-size: clamp(38px, 5.6vw, 64px); line-height: 1.04; letter-spacing: -0.025em; margin: 18px auto 18px; max-width: 19ch; }
.hero p { color: var(--muted); font-size: 19px; max-width: 46ch; margin: 0 auto; }
.hero .cta { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 30px; flex-wrap: wrap; }

/* Hero background loop (img/hero-loop.*): darkened so the headline reads, fading into the page at the bottom. */
.hero-stage { position: relative; isolation: isolate; overflow: hidden; background: #000; }
.hero-video { position: absolute; top: 0; left: 0; width: 100%; height: calc(100% - 3px); object-fit: cover; z-index: -2; filter: saturate(0.85) brightness(0.8); }
.hero-stage::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(ellipse at 30% 50%, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.3) 70%),
              linear-gradient(to bottom, rgba(0, 0, 0, 0.35), rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.25) 62%, #000 97%); }
.hero-stage .hero { padding-bottom: calc(var(--space) * 12); display: grid; gap: calc(var(--space) * 6); align-items: center; }
.hero-shot { max-width: 560px; margin: 0 auto; }
.hero-shot img { width: 100%; height: auto; filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.55)); }
@media (min-width: 980px) {
  .hero-stage .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); text-align: left; padding-top: calc(var(--space) * 12); }
  .hero-stage .hero h1, .hero-stage .hero p { margin-left: 0; }
  .hero-stage .hero .cta { justify-content: flex-start; }
  .hero-stage .hero p.soon { margin-left: 0; }
  .hero-shot { max-width: none; margin: 0 -40px 0 0; }
}
.hero-stage .hero p { color: #d6d6da; }
.hero-stage .hero p.soon { color: var(--accent); font-size: 13px; max-width: none; text-shadow: none; }
.hero-stage .hero h1, .hero-stage .hero p, .hero-stage .lockup { text-shadow: 0 1px 24px rgba(0, 0, 0, 0.6); }

/* Statement */
.statement { text-align: center; padding-top: calc(var(--space) * 12); padding-bottom: calc(var(--space) * 4); }
.statement h2 { font-weight: 500; font-size: clamp(28px, 3.6vw, 40px); line-height: 1.12; letter-spacing: -0.02em; max-width: 32ch; margin: 0 auto; text-wrap: balance; }

/* Features: heading left, text right, hairline rules (no pictures) */
.features { border-top: 1px solid var(--line); margin-top: calc(var(--space) * 4); }
.feature { display: grid; grid-template-columns: 1fr 1.15fr; gap: calc(var(--space) * 8); padding: calc(var(--space) * 7) 0; border-bottom: 1px solid var(--line); }
.feature > * { min-width: 0; }
.feature h3 { font-weight: 500; font-size: clamp(28px, 3vw, 38px); line-height: 1.1; letter-spacing: -0.02em; text-wrap: balance; }
.feature p { color: var(--muted); font-size: 18px; max-width: 52ch; }
.feature p + p { margin-top: 14px; }

/* Rig diagram */
.rigs { text-align: center; padding-top: calc(var(--space) * 12); padding-bottom: calc(var(--space) * 4); border-top: 1px solid var(--line); margin-top: calc(var(--space) * 6); }
.rigs h2, .section-title { text-wrap: balance; font-weight: 500; font-size: clamp(30px, 3.8vw, 44px); line-height: 1.08; letter-spacing: -0.02em; }
.rigs p { color: var(--muted); max-width: 52ch; margin: 16px auto 0; }
.diagram { margin: 56px auto 0; max-width: 820px; }
.diagram svg { width: 100%; height: auto; overflow: visible; }
.diagram text { font: 500 14px var(--font); fill: var(--fg); }
.diagram .sub { font-weight: 400; font-size: 12.5px; fill: var(--faint); }

/* Tables: requirements and pricing, hairline rules like a spec sheet */
.block { padding-top: calc(var(--space) * 12); }
.block > .section-title { text-align: center; margin-bottom: 40px; }
.block > .intro { text-align: center; color: var(--muted); max-width: 52ch; margin: -24px auto 40px; }
.spec { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.spec .tr { display: grid; grid-template-columns: 220px 1fr; gap: 24px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.spec .th { font-weight: 500; }
.spec .td { color: var(--muted); }

.compare { max-width: 900px; margin: 0 auto; }
.compare .tr { display: grid; grid-template-columns: 1.4fr 1fr 1fr; align-items: center; padding: 15px 0; border-bottom: 1px solid var(--line); font-size: 15px; }
.compare .tr > :not(:first-child) { text-align: center; }
.compare .head { border-bottom: 1px solid #3a3a3c; padding-bottom: 20px; }
.compare .head strong { display: block; font-weight: 500; font-size: 20px; }
.compare .head span { color: var(--faint); font-size: 13px; }
.compare .price { font-size: 28px; font-weight: 500; letter-spacing: -0.02em; }
.compare .tick { color: var(--accent); }
.compare .dash { color: var(--faint); }
.compare .foot { border-bottom: none; padding-top: 26px; }
.todo { outline: 1px dashed #ff5c54; outline-offset: 4px; border-radius: 4px; }

/* FAQ */
.faq { max-width: 900px; margin: 0 auto; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 500; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "−"; }
.faq p { color: var(--muted); padding: 0 0 22px; max-width: 70ch; }

/* Closing call */
.closing { text-align: center; padding-top: calc(var(--space) * 14); padding-bottom: calc(var(--space) * 14); }
.closing h2 { font-weight: 500; font-size: clamp(32px, 4.2vw, 52px); letter-spacing: -0.025em; line-height: 1.05; }
.closing p { color: var(--muted); margin-top: 14px; }
.closing .cta { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 28px; flex-wrap: wrap; }

footer { border-top: 1px solid var(--line); padding: 36px 0 56px; font-size: 13px; color: var(--faint); }
footer .top { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; margin-bottom: 18px; }
footer nav { display: flex; gap: 22px; flex-wrap: wrap; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--fg); }
footer p { max-width: 90ch; }

/* Guides */
.crumbs { font-size: 13px; color: var(--faint); margin-bottom: 22px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--fg); }
.doc .lede { font-size: 20px; color: var(--muted); line-height: 1.45; margin-bottom: 8px; }
.doc table.data { width: 100%; border-collapse: collapse; margin: 18px 0 8px; font-size: 15px; }
.doc table.data th { text-align: left; font-weight: 500; color: var(--fg); border-bottom: 1px solid #3a3a3c; padding: 10px 12px 10px 0; }
.doc table.data td { color: #c7c7cc; border-bottom: 1px solid var(--line); padding: 10px 12px 10px 0; }
.doc table.camelot td:nth-child(odd) { color: var(--fg); font-weight: 500; width: 76px; }
@media (max-width: 520px) {
  .doc table.data { font-size: 13.5px; }
  .doc table.data th, .doc table.data td { padding-right: 8px; overflow-wrap: anywhere; hyphens: auto; }
}
.guide-list { list-style: none; padding: 0 !important; margin: 24px 0 0 !important; border-top: 1px solid var(--line); }
.guide-list li { margin: 0 !important; border-bottom: 1px solid var(--line); }
.guide-list a { display: block; padding: 20px 0; text-decoration: none; color: var(--fg) !important; }
.guide-list a strong { display: block; font-weight: 500; font-size: 19px; }
.guide-list a span { display: block; color: var(--muted); margin-top: 4px; }
.guide-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.guides-home { max-width: 900px; margin: 0 auto; }

/* Legal and support pages */
.doc { max-width: 720px; margin: 0 auto; padding-top: calc(var(--space) * 8); padding-bottom: calc(var(--space) * 12); }
.doc h1 { font-weight: 500; font-size: clamp(34px, 4.5vw, 48px); letter-spacing: -0.025em; line-height: 1.05; margin-bottom: 28px; }
.doc h2 { font-weight: 500; font-size: 20px; margin: 36px 0 10px; }
.doc p, .doc li { color: #c7c7cc; }
.doc p + p { margin-top: 12px; }
.doc ul { padding-left: 20px; margin: 10px 0; }
.doc li { margin: 6px 0; }
.doc a { color: var(--accent); }
.doc blockquote { border-left: 2px solid #ff5c54; padding: 10px 16px; margin: 16px 0; color: var(--fg); background: #140b0b; }
.doc code { font: 14px ui-monospace, Menlo, monospace; background: #151516; padding: 2px 6px; border-radius: 5px; }

@media (max-width: 900px) {
  .nav nav { display: none; }
  .nav .wrap { grid-template-columns: 1fr auto; }
  .feature { grid-template-columns: 1fr; gap: 16px; padding: 40px 0; }
  .spec .tr { grid-template-columns: 1fr; gap: 4px; }
  .compare .tr { grid-template-columns: 1.2fr 1fr 1fr; font-size: 14px; }
  .compare .price { font-size: 22px; }
  .hero { padding-top: 48px; }
}

/* Anchors land below the sticky nav. */
[id] { scroll-margin-top: 84px; }

/* Motion: a soft rise-and-focus as things arrive. Home page only (html.anim is set there), and only when motion is allowed. */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (prefers-reduced-motion: no-preference) {
  @keyframes kb-rise { from { opacity: 0; transform: translateY(18px); filter: blur(8px); } to { opacity: 1; transform: none; filter: none; } }
  @keyframes kb-fade { from { opacity: 0; } to { opacity: 1; } }
  @keyframes kb-pulse { 0%, 100% { opacity: 1; r: 3.5; } 50% { opacity: 0.55; r: 5.5; } }
  .hero-video { animation: kb-fade 1.6s var(--ease) both; }
  .hero-copy > * { animation: kb-rise 1s var(--ease) both; }
  .hero-copy > :nth-child(2) { animation-delay: 90ms; }
  .hero-copy > :nth-child(3) { animation-delay: 180ms; }
  .hero-copy > :nth-child(4) { animation-delay: 270ms; }
  .hero-copy > :nth-child(5) { animation-delay: 360ms; }
  @keyframes kb-ping { 0% { box-shadow: 0 0 0 0 rgba(79, 195, 245, 0.55); } 70%, 100% { box-shadow: 0 0 0 8px rgba(79, 195, 245, 0); } }
  p.soon i, .soon-tag i { animation: kb-ping 2.2s ease-out infinite; }
  .hero-shot { animation: kb-rise 1.3s var(--ease) 250ms both; }

  html.anim :is(.statement h2, .feature, .rigs h2, .rigs > p, .diagram, .section-title, .block .intro, .spec .tr, .compare, .guide-list li, .faq details, .closing > *) {
    transition: opacity 0.9s var(--ease), transform 0.9s var(--ease), filter 0.9s var(--ease);
    transition-delay: var(--d, 0ms);
  }
  html.anim :is(.statement h2, .feature, .rigs h2, .rigs > p, .diagram, .section-title, .block .intro, .spec .tr, .compare, .guide-list li, .faq details, .closing > *):not(.in) {
    opacity: 0; transform: translateY(28px); filter: blur(6px);
  }
  html.anim .diagram .wire { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s var(--ease) 0.35s; }
  html.anim .diagram.in .wire { stroke-dashoffset: 0; }
  .diagram circle { animation: kb-pulse 2.4s ease-in-out infinite; }
  .pill, .link, .guide-list a { transition: background 150ms var(--ease), color 150ms var(--ease), transform 200ms var(--ease); }
  .pill:hover { transform: translateY(-1px); }
}
