/* =========================================================================
 * styles.css — hand-written, no framework, no CDN, no build step.
 * Everything here is local: system fonts, inline SVG, CSS custom properties.
 * The page renders identically with the network unplugged.
 * ========================================================================= */

:root {
  --bg: #ffffff;
  --bg-muted: #f5f7fb;
  --bg-raised: #ffffff;
  --ink: #10151f;
  --ink-soft: #4a5568;
  --ink-faint: #7b8494;
  --line: #e3e8f0;
  --brand: #2f6df6;
  --brand-dark: #1f4fc4;
  --brand-tint: #eaf0ff;
  --accent: #12b981;
  --warn: #d9822b;
  --danger: #d0342c;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow-sm: 0 1px 2px rgba(16, 21, 31, 0.06), 0 4px 12px rgba(16, 21, 31, 0.05);
  --shadow-lg: 0 18px 48px rgba(16, 21, 31, 0.14);
  --wrap: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1119;
    --bg-muted: #121826;
    --bg-raised: #151c2b;
    --ink: #eef2f8;
    --ink-soft: #b3bccd;
    --ink-faint: #8791a3;
    --line: #253048;
    --brand: #6f9bff;
    --brand-dark: #4d7ff0;
    --brand-tint: #17233d;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4), 0 6px 18px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 20px 52px rgba(0, 0, 0, 0.55);
  }
}

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

html {
  scroll-behavior: smooth;
  /* Innovate demo attribution offset — remove with the banner. Jumping to #how
   * must land below both fixed/sticky bars, not underneath them. The `0px`
   * fallback leaves this correct if the banner is deleted. */
  scroll-padding-top: calc(var(--mw-attribution-height, 0px) + 66px);
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
}
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.25rem);
}
h3 {
  font-size: 1.12rem;
}

p {
  margin: 0 0 1rem;
}

a {
  color: var(--brand);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

ul,
ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

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

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 24px;
}

.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: -9999px;
  /* Innovate demo attribution offset — remove with the banner. The skip link is
   * positioned against the viewport, so at top:0 it would open underneath the
   * fixed banner. */
  top: var(--mw-attribution-height, 0px);
  background: var(--brand);
  color: #fff;
  padding: 10px 16px;
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus {
  left: 0;
}

/* ── buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid transparent;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover {
  text-decoration: none;
  transform: translateY(-1px);
}
.btn--primary {
  background: var(--brand);
  color: #fff;
}
.btn--primary:hover {
  background: var(--brand-dark);
}
.btn--ghost {
  border-color: var(--line);
  color: var(--ink);
  background: transparent;
}
.btn--ghost:hover {
  border-color: var(--brand);
  color: var(--brand);
}
.btn--invert {
  background: #fff;
  color: var(--brand-dark);
}
.btn--lg {
  padding: 13px 24px;
  font-size: 1rem;
}
.btn--block {
  width: 100%;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--brand);
  margin-bottom: 0.75rem;
}

/* ── header ─────────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  /* Innovate demo attribution offset — remove with the banner. Two elements
   * pinned to top:0 would stack on top of each other; the site header sticks
   * directly below the banner instead. */
  top: var(--mw-attribution-height, 0px);
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 700;
  letter-spacing: -0.02em;
}
.brand:hover {
  text-decoration: none;
}
.brand__mark {
  width: 28px;
  height: 28px;
  flex: none;
}
.brand__mark rect {
  fill: var(--brand);
}
.brand__mark path {
  fill: #fff;
}
.brand__name {
  font-size: 1.12rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a {
  color: var(--ink-soft);
  font-size: 0.95rem;
  font-weight: 500;
}
.site-nav a:hover {
  color: var(--ink);
}
.site-nav .btn {
  font-weight: 600;
}
.site-nav .btn--primary {
  color: #fff;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: transparent;
  cursor: pointer;
  position: relative;
}
.nav-toggle__bars,
.nav-toggle__bars::before,
.nav-toggle__bars::after {
  position: absolute;
  left: 11px;
  width: 18px;
  height: 2px;
  background: var(--ink);
  content: "";
}
.nav-toggle__bars {
  top: 18px;
}
.nav-toggle__bars::before {
  top: -6px;
  left: 0;
}
.nav-toggle__bars::after {
  top: 6px;
  left: 0;
}

/* ── hero ───────────────────────────────────────────────────────────────── */
.hero {
  padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px);
  background: radial-gradient(
      1000px 420px at 78% -8%,
      var(--brand-tint) 0%,
      transparent 62%
    ),
    var(--bg);
}
.hero__inner {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.hero__copy {
  min-width: 0;
}
.lede {
  font-size: 1.13rem;
  color: var(--ink-soft);
  max-width: 34em;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 26px 0 14px;
}
.hero__note {
  font-size: 0.88rem;
  color: var(--ink-faint);
  margin: 0;
}

.timeline-card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 20px;
}
.timeline-card__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.timeline-card__title {
  font-weight: 600;
  font-size: 0.95rem;
}
.pill {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-tint);
  color: var(--brand-dark);
}
.pill--live {
  background: rgba(217, 130, 43, 0.14);
  color: var(--warn);
}

.timeline {
  margin: 6px 0 0;
  padding: 6px 0 0 4px;
}
.timeline__item {
  display: grid;
  grid-template-columns: 52px 1fr;
  gap: 10px;
  align-items: baseline;
  padding: 9px 0 9px 16px;
  border-left: 2px solid var(--line);
  position: relative;
  font-size: 0.9rem;
}
.timeline__item::before {
  content: "";
  position: absolute;
  left: -6px;
  top: 15px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--ink-faint);
  border: 2px solid var(--bg-raised);
}
.timeline__item--alert::before {
  background: var(--danger);
}
.timeline__item--ack::before {
  background: var(--warn);
}
.timeline__item--post::before {
  background: var(--brand);
}
.timeline__item--ok::before {
  background: var(--accent);
}
.timeline__time {
  color: var(--ink-faint);
  font-variant-numeric: tabular-nums;
  font-size: 0.82rem;
}
.timeline__text {
  color: var(--ink-soft);
}
.timeline-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 0.86rem;
  color: var(--ink-faint);
}
.timeline-card__foot strong {
  color: var(--ink);
  font-size: 1rem;
}

/* ── logo strip ─────────────────────────────────────────────────────────── */
.logos {
  padding: 26px 0 6px;
}
.logos__label {
  text-align: center;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 14px;
}
.logos__list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 42px;
  color: var(--ink-faint);
  font-weight: 700;
  letter-spacing: -0.01em;
  opacity: 0.85;
}

/* ── generic sections ───────────────────────────────────────────────────── */
.section {
  padding: clamp(52px, 8vw, 88px) 0;
}
.section--muted {
  background: var(--bg-muted);
  border-block: 1px solid var(--line);
}
.section__title {
  text-align: center;
}
.section__lede {
  text-align: center;
  max-width: 46em;
  margin: 0 auto 40px;
  color: var(--ink-soft);
}

.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 18px;
}
.card {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}
.card p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.96rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 22px;
  counter-reset: step;
}
.step {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.step__num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 700;
  margin-bottom: 14px;
}
.step p {
  color: var(--ink-soft);
  margin: 0;
  font-size: 0.96rem;
}

.quote-wrap {
  max-width: 760px;
}
.quote {
  margin: 0;
  text-align: center;
}
.quote p {
  font-size: clamp(1.15rem, 2.4vw, 1.5rem);
  line-height: 1.45;
  letter-spacing: -0.01em;
}
.quote footer {
  color: var(--ink-faint);
  font-size: 0.92rem;
}
.quote footer strong {
  display: block;
  color: var(--ink);
}

/* ── pricing ────────────────────────────────────────────────────────────── */
.plans {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(275px, 1fr));
  gap: 20px;
  align-items: start;
}
.plan {
  background: var(--bg-raised);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.plan--featured {
  border-color: var(--brand);
  box-shadow: var(--shadow-lg);
}
.plan__flag {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--brand-dark);
  background: var(--brand-tint);
  padding: 4px 10px;
  border-radius: 999px;
  margin: 0 0 6px;
}
.plan__name {
  margin: 0;
}
.plan__price {
  margin: 4px 0 8px;
  color: var(--ink-faint);
  font-size: 0.88rem;
}
.plan__price span {
  font-size: 2rem;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.03em;
}
.plan__blurb {
  color: var(--ink-soft);
  font-size: 0.94rem;
}
.plan__list {
  display: grid;
  gap: 8px;
  margin: 8px 0 22px;
  font-size: 0.94rem;
  color: var(--ink-soft);
}
.plan__list li {
  padding-left: 24px;
  position: relative;
}
.plan__list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-weight: 700;
}
.plan .btn {
  margin-top: auto;
}

/* ── faq ────────────────────────────────────────────────────────────────── */
.faq__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px 40px;
  max-width: 900px;
  margin: 0 auto;
}
.faq__grid p {
  color: var(--ink-soft);
  font-size: 0.96rem;
  margin: 0;
}

/* ── cta band ───────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--brand-dark), var(--brand));
  color: #fff;
  padding: clamp(40px, 6vw, 64px) 0;
}
.cta-band__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.cta-band h2 {
  margin: 0 0 6px;
}
.cta-band p {
  margin: 0;
  opacity: 0.9;
}

/* ── footer ─────────────────────────────────────────────────────────────── */
.site-footer {
  background: var(--bg-muted);
  border-top: 1px solid var(--line);
  padding: 48px 0 28px;
  font-size: 0.93rem;
}
.site-footer__inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 28px;
}
.site-footer__brand p {
  color: var(--ink-faint);
  margin-top: 12px;
  max-width: 26em;
}
.site-footer__col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer__col h2 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-faint);
  margin: 0 0 4px;
}
.site-footer__col a {
  color: var(--ink-soft);
}
.site-footer__legal {
  margin-top: 34px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
  color: var(--ink-faint);
  font-size: 0.85rem;
}
.site-footer__legal p {
  margin: 0 0 4px;
}
.site-footer__demo {
  color: var(--ink-faint);
}

/* ── responsive ─────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
  }
  .hero__panel {
    order: -1;
  }
  .site-footer__inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 720px) {
  .nav-toggle {
    display: block;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 66px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    padding: 14px 24px 20px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow-sm);
  }
  .site-nav[data-open="true"] {
    display: flex;
  }
  .site-nav a {
    padding: 8px 0;
  }
  .site-nav .btn {
    justify-content: center;
    margin-top: 6px;
  }
  .site-footer__inner {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
