@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/inter-latin-400.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url("/fonts/inter-latin-500.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/inter-latin-600.woff2") format("woff2");
}

@font-face {
  font-family: Inter;
  font-style: normal;
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/inter-latin-700.woff2") format("woff2");
}

:root {
  --bg: #070b14;
  --bg-alt: #0c1322;
  --surface: #121b2e;
  --surface-2: #18243c;
  --text: #f3f6fb;
  --muted: #b7c3d8;
  --accent: #8eb4ff;
  --accent-strong: #2457d6;
  --accent-hover: #3166e4;
  --mint: #8cffd2;
  --success: #c9ffe0;
  --success-surface: rgba(120, 255, 180, 0.08);
  --success-border: rgba(140, 240, 180, 0.28);
  --danger: #ffd0d0;
  --danger-surface: rgba(255, 120, 120, 0.1);
  --danger-border: rgba(255, 170, 170, 0.35);
  --border: rgba(255, 255, 255, 0.12);
  --radius: 16px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --font: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --wrap: 1080px;
  --focus: #d6e4ff;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main { flex: 1; }

h1, h2, h3 {
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 700;
}

h2 { font-weight: 600; }
h3 { font-weight: 600; }

p { margin: 0; }

a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { color: #c5d8ff; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.9em;
  background: rgba(255, 255, 255, 0.06);
  padding: 0.12em 0.38em;
  border-radius: 6px;
}

::selection { background: rgba(75, 139, 255, 0.4); }

:focus { outline: none; }
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 0.75rem;
  top: -3.5rem;
  z-index: 30;
  padding: 0.55rem 0.85rem;
  border-radius: 8px;
  background: var(--text);
  color: var(--bg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 0.75rem; }

.wrap {
  width: min(var(--wrap), calc(100% - 2.5rem));
  margin-inline: auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(7, 11, 20, 0.86);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  padding-top: 1.25rem;
  padding-bottom: 0.75rem;
}

.header-brand {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.2rem 0.75rem;
  min-width: 0;
  flex: 1 1 auto;
}

.header-tagline {
  margin: 0;
  color: var(--text);
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.3;
  white-space: nowrap;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  color: var(--text);
  font-weight: 600;
  letter-spacing: -0.03em;
  text-decoration: none;
  flex: none;
  white-space: nowrap;
  max-width: 100%;
}
.logo:hover { color: var(--text); }

.logo-mark {
  width: 1.85rem;
  height: 1.85rem;
  display: block;
  flex: none;
  border-radius: 7px;
}

.logo-text { font-size: 1.02rem; white-space: nowrap; }

.header-tools {
  display: none;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 0.35rem;
  margin-left: auto;
  max-width: 100%;
  font-size: 0.95rem;
}

.site-header .nav > a:not(.btn) {
  padding: 0.4rem 0.55rem;
}

.site-header .nav > .btn {
  padding: 0.45rem 0.8rem;
}

/* Hidden until the client confirms this account may open admin. */
a[data-admin-nav] { white-space: nowrap; }
a[data-admin-nav]:not(.is-shown) {
  display: none !important;
}

.nav > a:not(.btn) {
  color: var(--muted);
  text-decoration: none;
  padding: 0.4rem 0.7rem;
  border-radius: 999px;
}
.nav > a:not(.btn):hover { color: var(--text); background: rgba(255, 255, 255, 0.04); }

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text);
  cursor: pointer;
}

.nav-toggle-bars,
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  display: block;
  width: 1rem;
  height: 2px;
  background: currentColor;
  border-radius: 2px;
  position: relative;
}
.nav-toggle-bars::before,
.nav-toggle-bars::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle-bars::before { top: -6px; }
.nav-toggle-bars::after { top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  padding: 0.55rem 1rem;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}

.btn-primary {
  background: var(--accent-strong);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  color: #fff;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: rgba(255, 255, 255, 0.22);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.38);
  color: var(--text);
}

.btn-lg {
  padding: 0.85rem 1.35rem;
  font-size: 1.02rem;
}

.hero {
  padding: 4.75rem 0 4rem;
  background:
    radial-gradient(ellipse 70% 55% at 80% 0%, rgba(98, 70, 245, 0.28), transparent 60%),
    radial-gradient(ellipse 55% 45% at 10% -10%, rgba(75, 139, 255, 0.22), transparent 55%),
    var(--bg);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 3.25rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 1.1rem;
  padding: 0.28rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--mint);
  background: rgba(140, 255, 210, 0.08);
  border: 1px solid rgba(140, 255, 210, 0.28);
}

.hero h1 {
  margin: 0 0 1.1rem;
  font-size: clamp(2.05rem, 4.6vw, 3.45rem);
  max-width: 16em;
}

.lede {
  margin: 0 0 1.25rem;
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 38rem;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.cta-note {
  margin-top: 0.9rem;
  color: var(--muted);
  font-size: 0.92rem;
}

.preview {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.preview-top {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 600;
}
.preview-top img { width: 1.35rem; height: 1.35rem; border-radius: 5px; }
.preview-live {
  margin-left: auto;
  color: var(--mint);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.preview-field {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.62rem 0.75rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}
.preview-field em {
  font-style: normal;
  color: var(--muted);
  font-weight: 600;
}
.preview-field strong { font-weight: 500; text-align: right; overflow-wrap: anywhere; }

.preview-body {
  margin: 0.85rem 0.15rem 0.95rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.preview-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  background: rgba(140, 255, 210, 0.1);
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 600;
}
.preview-status::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mint);
}

.section { padding: 4.5rem 0; }

.section-alt {
  background: var(--bg-alt);
  border-block: 1px solid var(--border);
}

.section-head {
  max-width: 40rem;
  margin-bottom: 1.75rem;
}

.section h2 {
  margin: 0 0 0.7rem;
  font-size: clamp(1.6rem, 3vw, 2rem);
}

.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.4rem 1.5rem;
}

.card h3 { margin: 0 0 0.45rem; font-size: 1.15rem; }
.card p { margin: 0; color: var(--muted); }

.card-kicker {
  display: block;
  margin-bottom: 0.7rem;
  color: var(--accent);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.25rem 1.4rem;
}

.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block;
  margin-bottom: 0.75rem;
  color: var(--mint);
  font-weight: 700;
  letter-spacing: 0.06em;
}

.steps h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.steps p { color: var(--muted); }

.teaser-list {
  margin: 0 0 1.4rem;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.teaser-list li {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 0.92rem; }
.agent-note { margin-top: 0.9rem; }

.cta-band {
  text-align: center;
  padding: 4.75rem 0;
  background:
    radial-gradient(ellipse 60% 80% at 50% 120%, rgba(75, 139, 255, 0.2), transparent),
    var(--bg);
}

.cta-band h2 { margin-bottom: 0.7rem; }
.cta-band .section-lead { margin-inline: auto; margin-bottom: 1.5rem; }
.cta-band .cta-row { justify-content: center; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.75rem 0 2rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem 2rem;
  align-items: flex-start;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--text);
  font-weight: 600;
  text-decoration: none;
}
.footer-brand:hover { color: var(--text); }
.footer-brand img { width: 1.5rem; height: 1.5rem; border-radius: 6px; }

.footer-copy { margin-top: 0.35rem; max-width: 36rem; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
}
.footer-links a { color: var(--muted); text-decoration: none; }
.footer-links a:hover { color: var(--text); }

@media (max-width: 860px) {
  .hero-grid,
  .cards,
  .steps { grid-template-columns: 1fr; }
  .hero { padding-top: 3.25rem; }
  .hero h1 { max-width: none; }
}

@media (max-width: 760px) {
  .wrap { width: min(var(--wrap), calc(100% - 1.5rem)); }
  .header-tools { display: flex; }
  .header-inner { align-items: flex-start; padding-top: 0.75rem; padding-bottom: 0.5rem; }
  .header-tools { align-self: center; }
  .header-tagline { white-space: normal; }
  .site-header:has(.nav-toggle) .header-inner { flex-wrap: wrap; }
  .header-inner:has(.header-tagline) {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
      "logo tools"
      "tagline tagline"
      "nav nav";
    align-items: start;
    column-gap: 0.75rem;
    row-gap: 0.35rem;
  }
  .header-inner:has(.header-tagline) .header-brand { display: contents; }
  .header-inner:has(.header-tagline) .logo { grid-area: logo; min-width: 0; }
  .header-inner:has(.header-tagline) .header-tagline { grid-area: tagline; }
  .header-inner:has(.header-tagline) .header-tools { grid-area: tools; margin-left: 0; }
  .header-inner:has(.header-tagline) .nav { grid-area: nav; margin-left: 0; justify-content: flex-start; }
  .site-header:has(.nav-toggle) .nav {
    display: none;
    flex: 1 1 100%;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 0.2rem 0 0.85rem;
    gap: 0.25rem;
  }
  .site-header:has(.nav-toggle) .nav.is-open { display: flex; }
  .site-header:has(.nav-toggle) .nav > a,
  .site-header:has(.nav-toggle) .nav > .btn {
    width: 100%;
  }
  .nav-cta-mobile { display: inline-flex; }
  .section { padding: 3.25rem 0; }
}

@media (min-width: 761px) {
  .nav-cta-mobile { display: none; }
  .header-inner:has(.header-tagline) { container-type: inline-size; }
}

/* Home only: stack the tagline under the logo so the brand is ~tagline-wide
   and the nav stays on the logo's row. Scoped with :has(.header-tagline). */
/* 1001–1023 must stay one row with 1024+. Content width at 1001px is 961px,
   just above the 960px container query that stacks the nav. */
@media (min-width: 1001px) {
  .header-inner:has(.header-tagline) {
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    grid-template-areas:
      "logo nav"
      "tagline .";
    align-items: center;
    column-gap: 1rem;
    row-gap: 0.12rem;
    padding-top: 1.25rem;
    padding-bottom: 0.5rem;
  }

  .header-inner:has(.header-tagline) .header-brand {
    display: contents;
  }

  .header-inner:has(.header-tagline) .logo {
    grid-area: logo;
    align-self: center;
    justify-self: start;
    width: max-content;
  }

  .header-inner:has(.header-tagline) .header-tagline {
    grid-area: tagline;
    align-self: start;
    white-space: nowrap;
    line-height: 1.2;
  }

  .header-inner:has(.header-tagline) .nav {
    grid-area: nav;
    justify-self: end;
    align-self: center;
    flex-wrap: nowrap;
    flex: none;
    width: max-content;
    max-width: 100%;
    margin-left: 0;
  }
}

/* Below this content width the side-by-side brand still overflows, so the nav
   takes the next row. 1024px viewport content is 984px and stays one row. */
@container (max-width: 960px) {
  .header-inner:has(.header-tagline) .nav {
    flex: 1 0 100%;
    justify-content: flex-start;
  }
  .nav-signin { margin-left: auto; }
  a[data-admin-nav].is-shown { margin-left: auto; }
  a[data-admin-nav].is-shown + .nav-signin { margin-left: 0; }
}

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

.site-header .nav.is-open > a,
.site-header .nav.is-open > .btn {
  min-height: 44px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.dev-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}

.code-sample {
  margin: 0;
  padding: 1rem 1.1rem;
  overflow-x: auto;
  background: #0b1220;
  color: #e8eef9;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  line-height: 1.55;
  font-size: 0.8125rem;
  max-width: 100%;
}

.code-sample code {
  background: none;
  padding: 0;
  color: inherit;
  font-size: inherit;
  white-space: pre;
}

.dev-points {
  margin: 1rem 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.55rem;
}

.dev-points li {
  padding: 0.75rem 0.9rem;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--muted);
}

.dev-actions { margin-top: 1.15rem; }

.hero-grid > *,
.feature-grid > *,
.dev-layout > * {
  min-width: 0;
}

.card p,
.section-lead,
.dev-points li,
.lede,
.cta-note,
.preview-body,
.preview-status {
  overflow-wrap: anywhere;
}

.card code,
.section-lead code,
.dev-points code,
.lede code,
.cta-note code {
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 860px) {
  .dev-layout { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  .cta-secondary { display: none; }
  .lede-more {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
  }
  .hero { padding: 1.75rem 0 2.25rem; }
  .hero h1 { font-size: 1.7rem; }
  .lede { font-size: 1.02rem; line-height: 1.35; max-width: 36rem; }
}

@media (max-width: 640px) {
  .feature-grid { grid-template-columns: 1fr; }
}

@media (max-width: 420px) {
  .site-header .logo { gap: 0.45rem; }
  .site-header .logo-text { font-size: 0.92rem; }
  .nav-cta-mobile {
    padding: 0.5rem 0.75rem;
    font-size: 0.88rem;
  }
}

.mail-mock {
  display: grid;
  gap: 0.75rem;
  min-width: 0;
}

.mail-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 0.95rem 1rem 1rem;
  box-shadow: var(--shadow);
}

.mock-label {
  margin: 0 0 0.35rem;
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-title {
  margin: 0;
  font-weight: 600;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.mock-status,
.mock-from,
.mock-snippet {
  margin: 0.35rem 0 0;
  color: var(--muted);
  font-size: 0.92rem;
}

.mock-status {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  color: var(--mint);
  font-weight: 600;
  font-size: 0.85rem;
}

.mock-dot {
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--mint);
  flex: none;
}

.mock-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.35rem;
}

.mock-list li {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
  align-items: baseline;
  padding-top: 0.35rem;
  border-top: 1px solid var(--border);
  font-size: 0.92rem;
}

.mock-list li:first-child { border-top: 0; padding-top: 0; }
.mock-list span { overflow-wrap: anywhere; }
.mock-list em {
  font-style: normal;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
  flex: none;
}

.pricing-layout { max-width: 40rem; }

.pricing-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.4rem 1.5rem;
}

.check-list {
  list-style: none;
  margin: 0 0 1.25rem;
  padding: 0;
  display: grid;
  gap: 0.45rem;
}

.check-list li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
}

.check-list li:last-child { border-bottom: 0; }

.check-list li::before {
  content: "";
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: var(--mint);
  flex: none;
}

.faq-layout { max-width: 46rem; }

.faq {
  display: grid;
  gap: 0.75rem;
}

.faq article {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem 1.2rem;
}

.faq h3 { margin: 0 0 0.4rem; font-size: 1.08rem; }
.faq p { margin: 0; color: var(--muted); }

.not-found { max-width: 40rem; padding-top: 1rem; }
.not-found h1 { margin: 0 0 0.8rem; font-size: clamp(2rem, 4vw, 3rem); }

.band-label {
  margin: 1.75rem 0 0.85rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  color: var(--accent);
}

.feature-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }

@media (max-width: 960px) {
  .feature-grid-3 { grid-template-columns: 1fr; }
}
