/* ───────────────────────────────────────────────────────────────
   Shared design system. Each page sets --accent and --accent-weak;
   everything else derives from those so the three products feel
   like one family in different colours.
   ─────────────────────────────────────────────────────────────── */

:root {
  --bg: #ffffff;
  --bg-sunk: #fafafa;
  --surface: #ffffff;
  --surface-raised: #ffffff;
  --border: #e8e8ec;
  --border-strong: #d8d8de;
  --text: #0e0e11;
  --text-soft: #4a4a55;
  --muted: #74747f;

  --accent: #4f46e5;
  --accent-weak: #eef0ff;
  --accent-ink: #ffffff;

  --shadow-sm: 0 1px 2px rgba(16,16,24,.05), 0 1px 1px rgba(16,16,24,.03);
  --shadow-md: 0 4px 16px rgba(16,16,24,.07), 0 1px 3px rgba(16,16,24,.04);
  --shadow-lg: 0 18px 48px rgba(16,16,24,.12), 0 2px 8px rgba(16,16,24,.05);

  --radius: 14px;
  --radius-lg: 20px;
  --maxw: 1120px;
  --font: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0a0a0c;
    --bg-sunk: #0f0f13;
    --surface: #141419;
    --surface-raised: #1a1a21;
    --border: #26262f;
    --border-strong: #33333f;
    --text: #f4f4f6;
    --text-soft: #bdbdc8;
    --muted: #8b8b98;
    --accent-weak: #171630;
    --shadow-sm: none;
    --shadow-md: 0 4px 20px rgba(0,0,0,.4);
    --shadow-lg: 0 20px 60px rgba(0,0,0,.55);
  }
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }

/* ── header ─────────────────────────────────────────────────── */
header.site {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(180%) blur(18px);
  -webkit-backdrop-filter: saturate(180%) blur(18px);
  border-bottom: 1px solid var(--border);
}
header.site .wrap { display: flex; align-items: center; gap: 22px; height: 62px; }

.brand {
  display: flex; align-items: center; gap: 10px;
  font-weight: 640; font-size: 15.5px; letter-spacing: -.01em;
  color: var(--text); text-decoration: none;
}
.brand img { width: 26px; height: 26px; border-radius: 7px; }
.brand .glyph {
  width: 26px; height: 26px; border-radius: 7px; background: var(--accent);
  color: var(--accent-ink); display: grid; place-items: center; font-size: 13px;
}

header.site nav { margin-left: auto; display: flex; gap: 6px; align-items: center; }
header.site nav a {
  color: var(--muted); text-decoration: none; font-size: 14.5px;
  padding: 7px 11px; border-radius: 8px; transition: color .15s, background .15s;
}
header.site nav a:hover { color: var(--text); background: var(--bg-sunk); }
header.site nav a.btn:hover { background: var(--accent); }

/* ── buttons ────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: var(--accent-ink) !important;
  text-decoration: none; padding: 12px 22px; border-radius: 10px;
  font-weight: 560; font-size: 15px; border: 1px solid transparent;
  box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .14s ease, box-shadow .14s ease, filter .14s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); filter: brightness(1.07); }
.btn.secondary {
  background: var(--surface); color: var(--text) !important;
  border-color: var(--border-strong); box-shadow: none;
}
.btn.secondary:hover { background: var(--bg-sunk); filter: none; }
.btn.small { padding: 8px 14px; font-size: 14px; }

/* ── hero ───────────────────────────────────────────────────── */
.hero { position: relative; padding: 96px 0 76px; text-align: center; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -40% 0 auto 0; height: 560px; z-index: -1;
  background:
    radial-gradient(ellipse 60% 44% at 50% 38%, color-mix(in srgb, var(--accent) 16%, transparent), transparent 70%),
    radial-gradient(ellipse 34% 30% at 76% 24%, color-mix(in srgb, var(--accent) 10%, transparent), transparent 70%);
  filter: blur(14px); pointer-events: none;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 62px); line-height: 1.04;
  letter-spacing: -.034em; margin: 0 0 22px; font-weight: 700;
}
.hero p.lede {
  font-size: clamp(17px, 2vw, 19.5px); color: var(--text-soft);
  max-width: 620px; margin: 0 auto 34px;
}
.hero .actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero .meta { margin-top: 20px; font-size: 13.5px; color: var(--muted); }

.hero-icon {
  width: 104px; height: 104px; margin: 0 auto 26px;
  filter: drop-shadow(0 12px 28px rgba(0,0,0,.22));
}

.pill {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 14px; border-radius: 999px;
  background: var(--accent-weak);
  color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  font-size: 13px; font-weight: 560; margin-bottom: 24px;
}
.pill .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

/* ── sections ───────────────────────────────────────────────── */
section { padding: 84px 0; border-top: 1px solid var(--border); }
section.sunk { background: var(--bg-sunk); }
section h2 {
  font-size: clamp(26px, 3.6vw, 36px); letter-spacing: -.026em;
  margin: 0 0 14px; font-weight: 680;
}
section > .wrap > p.sub {
  color: var(--text-soft); max-width: 640px; margin: 0 0 46px; font-size: 17px;
}
.center { text-align: center; }
.center > p.sub { margin-left: auto; margin-right: auto; }

/* ── grids & cards ──────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 880px) { .grid.c2, .grid.c3 { grid-template-columns: 1fr; } }

.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: border-color .16s ease, transform .16s ease, box-shadow .16s ease;
}
.card:hover { border-color: var(--border-strong); box-shadow: var(--shadow-md); }
.card h3 { margin: 0 0 8px; font-size: 17px; font-weight: 620; letter-spacing: -.012em; }
.card p { margin: 0; color: var(--muted); font-size: 14.8px; }
.card .ico {
  width: 38px; height: 38px; border-radius: 10px; margin-bottom: 15px;
  display: grid; place-items: center; font-size: 18px;
  background: var(--accent-weak); color: var(--accent);
}

/* ── product cards on the suite index ───────────────────────── */
.apps { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
@media (max-width: 940px) { .apps { grid-template-columns: 1fr; } }

.app {
  position: relative; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 30px 26px 26px; background: var(--surface);
  display: flex; flex-direction: column; text-decoration: none; color: inherit;
  box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.app::after {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--tint), transparent);
  opacity: 0; transition: opacity .18s ease;
}
.app:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border-strong); }
.app:hover::after { opacity: 1; }
.app img.mark { width: 62px; height: 62px; margin-bottom: 18px; border-radius: 14px; }
.app h3 { font-size: 21px; margin: 0 0 5px; font-weight: 660; letter-spacing: -.02em; }
.app .what { font-size: 14px; color: var(--tint); font-weight: 580; margin: 0 0 13px; }
.app p.desc { color: var(--muted); font-size: 14.8px; margin: 0 0 22px; flex: 1; }
.app .go { font-size: 14.5px; font-weight: 560; color: var(--tint); display: inline-flex; gap: 6px; }
.app:hover .go span { transform: translateX(3px); }
.app .go span { transition: transform .18s ease; display: inline-block; }

/* ── steps ──────────────────────────────────────────────────── */
ol.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; max-width: 660px; }
ol.steps li {
  counter-increment: step; position: relative;
  padding: 0 0 30px 52px; border-left: 2px solid var(--border); margin-left: 16px;
}
ol.steps li:last-child { border-left-color: transparent; padding-bottom: 0; }
ol.steps li::before {
  content: counter(step); position: absolute; left: -17px; top: -4px;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 14px; font-weight: 640;
  box-shadow: 0 0 0 5px var(--bg);
}
ol.steps strong { display: block; font-size: 17px; margin-bottom: 4px; font-weight: 600; }
ol.steps span { color: var(--muted); font-size: 15px; }

/* ── figure / diagrams ──────────────────────────────────────── */
figure.diagram {
  margin: 0; padding: 30px; border: 1px solid var(--border);
  border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-md);
}
figure.diagram svg { width: 100%; height: auto; }
figure.diagram figcaption {
  margin-top: 16px; font-size: 13.5px; color: var(--muted); text-align: center;
}

/* ── menu bar mockup ────────────────────────────────────────── */
.menubar {
  border: 1px solid var(--border); border-radius: 12px; overflow: hidden;
  background: var(--surface); box-shadow: var(--shadow-md); max-width: 460px;
}
.menubar .bar {
  display: flex; align-items: center; justify-content: flex-end; gap: 16px;
  padding: 8px 14px; background: var(--bg-sunk); border-bottom: 1px solid var(--border);
  font-size: 13px; color: var(--muted);
}
.menubar .bar img { width: 17px; height: 17px; opacity: .9; }
.menubar .body { padding: 14px 16px; font-size: 14px; }
.menubar .row { display: flex; justify-content: space-between; padding: 5px 0; color: var(--text-soft); }
.menubar .row .val { color: var(--muted); font-family: var(--mono); font-size: 12.5px; }

/* ── compat chips ───────────────────────────────────────────── */
.compat { display: flex; flex-wrap: wrap; gap: 8px; }
.compat span {
  background: var(--surface); border: 1px solid var(--border);
  padding: 7px 14px; border-radius: 8px; font-size: 13.5px; color: var(--text-soft);
}

/* ── callout ────────────────────────────────────────────────── */
.callout {
  background: var(--accent-weak);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
  border-radius: var(--radius); padding: 22px 24px;
}
.callout strong { color: var(--accent); }
.callout p { margin: 8px 0 0; font-size: 15px; color: var(--text-soft); }

/* ── faq ────────────────────────────────────────────────────── */
details {
  border: 1px solid var(--border); border-radius: 11px;
  padding: 16px 20px; margin-bottom: 10px; background: var(--surface);
  transition: border-color .15s ease;
}
details[open] { border-color: var(--border-strong); }
details summary {
  cursor: pointer; font-weight: 560; font-size: 16px; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
  content: "+"; color: var(--muted); font-size: 21px; font-weight: 400; line-height: 1;
}
details[open] summary::after { content: "\2212"; }
details p { color: var(--muted); margin: 12px 0 0; font-size: 15px; }

/* ── footer ─────────────────────────────────────────────────── */
footer.site {
  border-top: 1px solid var(--border); padding: 46px 0;
  color: var(--muted); font-size: 14px; background: var(--bg-sunk);
}
footer.site .wrap { display: flex; gap: 22px; flex-wrap: wrap; align-items: center; }
footer.site a { color: var(--muted); text-decoration: none; }
footer.site a:hover { color: var(--text); }
footer.site .spacer { margin-left: auto; }

/* ── prose ──────────────────────────────────────────────────── */
.prose { max-width: 700px; }
.prose h1 { font-size: clamp(30px, 4vw, 38px); letter-spacing: -.028em; margin: 0 0 14px; }
.prose h2 { font-size: 23px; margin-top: 42px; letter-spacing: -.018em; }
.prose h3 { font-size: 17.5px; margin-top: 28px; margin-bottom: 6px; }
.prose p, .prose li { color: var(--text-soft); font-size: 16px; }
.prose code {
  background: var(--bg-sunk); border: 1px solid var(--border);
  padding: 2px 7px; border-radius: 6px; font-size: 13.5px; font-family: var(--mono);
}
