/* Spark website — "Graphite & Ember"
   One stylesheet, system fonts, no third-party requests. */

/* ---------- Tokens ---------- */
:root {
  color-scheme: light dark;

  --bg: #FFFFFF;
  --surface: #F4F4F5;
  --card: #FFFFFF;
  --fill: #F7F7F8;
  --border: #E4E4E7;
  --border-strong: #D4D4D8;
  --text: #18181B;
  --text-2: #5F5F67;
  --accent: #C2410C;
  --accent-tint: #FFF1EA;
  --on-accent: #FFFFFF;
  --spark: #F97316;
  --success: #15803D;
  --graphite: #18181B;

  /* Keycap: light face with an edge, in both themes */
  --key-face: #FCFCFC;
  --key-edge: #D4D4D8;
  --key-shadow: rgba(24, 24, 27, 0.14);
  --key-text: #3F3F46;

  --shadow-sm: 0 1px 2px rgba(24, 24, 27, 0.06);
  --shadow-md: 0 1px 2px rgba(24, 24, 27, 0.05), 0 8px 24px rgba(24, 24, 27, 0.07);
  --shadow-lg: 0 2px 4px rgba(24, 24, 27, 0.05), 0 24px 60px rgba(24, 24, 27, 0.12);

  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 18px;

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Inter", "Segoe UI", system-ui, sans-serif;
  --font-mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;

  --gutter: 16px;
  --max: 1120px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #1C1C1E;
    --surface: #232326;
    --card: #26262A;
    --fill: #2C2C30;
    --border: #36363B;
    --border-strong: #46464C;
    --text: #F4F4F5;
    --text-2: #A1A1AA;
    --accent: #FB923C;
    --accent-tint: #3A2418;
    --on-accent: #1C1C1E;
    --spark: #FB923C;
    --success: #4ADE80;

    --key-face: #E9E9EC;
    --key-edge: #A1A1AA;
    --key-shadow: rgba(0, 0, 0, 0.5);
    --key-text: #27272A;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.3), 0 24px 60px rgba(0, 0, 0, 0.45);
  }
}

@media (min-width: 720px) {
  :root { --gutter: 24px; }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 80px;
}

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 15.5px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }

a { color: var(--accent); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }

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

h1, h2, h3, h4 {
  font-family: var(--font-display);
  color: var(--text);
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.022em;
  font-weight: 700;
}

h1 { font-size: clamp(1.9rem, 3.8vw, 2.6rem); letter-spacing: -0.035em; line-height: 1.08; }
h2 { font-size: clamp(1.4rem, 2.3vw, 1.8rem); letter-spacing: -0.03em; }
h3 { font-size: 1.125rem; letter-spacing: -0.012em; line-height: 1.3; font-weight: 650; }

p { margin: 0; }

code, kbd { font-family: var(--font-mono); font-size: 0.9em; }

.visually-hidden {
  position: absolute !important;
  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: var(--gutter);
  top: -100px;
  z-index: 100;
  background: var(--card);
  color: var(--text);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-md);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%;
  max-width: calc(var(--max) + var(--gutter) * 2);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.narrow { max-width: calc(760px + var(--gutter) * 2); }

/* Placeholder marker: visible on purpose so it can't ship unnoticed. */
.todo {
  display: inline;
  background: repeating-linear-gradient(-45deg, rgba(249, 115, 22, 0.14) 0 6px, rgba(249, 115, 22, 0.06) 6px 12px);
  outline: 1px dashed var(--spark);
  border-radius: 4px;
  padding: 0 4px;
  font-family: var(--font-mono);
  font-size: 0.85em;
  color: var(--text);
}
div.todo, p.todo { display: block; padding: 12px 14px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  font: inherit;
  font-size: 0.97rem;
  font-weight: 600;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 88%, var(--text)); }

.btn-secondary { background: var(--card); color: var(--text); border-color: var(--border-strong); }
.btn-secondary:hover { background: var(--fill); }

.btn-small { min-height: 36px; padding: 0 14px; font-size: 0.9rem; }

.btn-soon, .btn-soon:hover { background: var(--card); color: var(--text-2); cursor: default; }
.btn-soon:active { transform: none; }

.link-arrow {
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.link-arrow::after { content: "→"; transition: transform 0.15s ease; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  -webkit-backdrop-filter: saturate(180%) blur(14px);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text);
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}
.brand svg { width: 26px; height: 26px; color: var(--spark); }

.site-nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }

.site-nav ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 2px;
}

.site-nav a:not(.btn) {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  color: var(--text-2);
  text-decoration: none;
  font-size: 0.93rem;
  font-weight: 500;
}
.site-nav a:not(.btn):hover { color: var(--text); background: var(--fill); }
.site-nav a[aria-current="page"] { color: var(--text); }

.site-nav .btn { margin-left: 10px; }

.nav-toggle {
  display: none;
  margin-left: auto;
  width: 44px; height: 44px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
  align-items: center;
  justify-content: center;
}
.nav-toggle svg { width: 18px; height: 18px; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .js .site-nav {
    display: none;
    position: absolute;
    top: 64px; left: 0; right: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    padding: 12px var(--gutter) 20px;
    flex-direction: column;
    align-items: stretch;
  }
  .js .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { min-height: 44px; font-size: 1rem; padding: 0 12px; }
  .site-nav .btn { margin: 10px 0 0; }
  /* Without JS, keep the links reachable as a wrapped row. */
  html:not(.js) .nav-toggle { display: none; }
  html:not(.js) .site-nav ul { flex-direction: row; flex-wrap: wrap; }
  html:not(.js) .header-inner { height: auto; flex-wrap: wrap; padding: 10px 0; }
}

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

@media (max-width: 719px) {
  .section { padding: 56px 0; }
  .section-tight { padding: 48px 0; }
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head p:not(.eyebrow) { margin-top: 16px; color: var(--text-2); font-size: 1rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

.lead { font-size: clamp(1rem, 1.3vw, 1.06rem); color: var(--text-2); line-height: 1.5; }

/* ---------- Hero ---------- */
.hero { padding: 32px 0 64px; overflow: hidden; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr); gap: 56px; }
  .hero { padding: 40px 0 80px; }
}

.hero h1 { max-width: 15ch; }
.hero .lead { margin-top: 22px; max-width: 34em; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.hero-note {
  margin-top: 22px;
  font-size: 0.92rem;
  color: var(--text-2);
}

/* Privacy at a glance, under the hero headline */
.trust { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 24px 0 0; }
.trust li {
  display: inline-flex; align-items: center; gap: 7px;
  height: 32px; padding: 0 12px 0 10px;
  border-radius: 999px; border: 1px solid var(--border); background: var(--card);
  font-size: 0.88rem; font-weight: 550; box-shadow: var(--shadow-sm);
}
.trust svg { width: 16px; height: 16px; color: var(--success); flex: none; }

/* ---------- Keycap ---------- */
.keycap {
  --size: 64px;
  position: relative;
  display: inline-flex;
  align-items: flex-end;
  justify-content: flex-start;
  width: var(--size);
  height: var(--size);
  padding: 0 0 10px 12px;
  border-radius: 12px;
  background: linear-gradient(180deg, #FFFFFF 0%, var(--key-face) 100%);
  color: var(--key-text);
  font-family: var(--font);
  font-weight: 500;
  font-size: calc(var(--size) * 0.26);
  line-height: 1;
  border: 1px solid var(--key-edge);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 4px 0 var(--key-edge),
    0 6px 10px var(--key-shadow);
  transform: translateY(0);
  transition: transform 0.09s ease, box-shadow 0.09s ease;
  user-select: none;
  flex: none;
}
.keycap.is-down {
  transform: translateY(3px);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 1px 0 var(--key-edge),
    0 2px 4px var(--key-shadow);
}
.keycap.is-down::after {
  content: "";
  position: absolute;
  top: 9px; right: 9px;
  width: 6px; height: 6px;
  border-radius: 50%;
  background: #F97316;
  box-shadow: 0 0 0 3px rgba(249, 115, 22, 0.2);
}
.keycap-sm { --size: 44px; border-radius: 9px; padding: 0 0 7px 8px; }
.keycap-inline {
  --size: 22px;
  vertical-align: -4px;
  margin: 0 2px;
  border-radius: 5px;
  padding: 0 0 3px 4px;
  font-size: 10px;
  box-shadow: 0 1px 0 rgba(255,255,255,0.9) inset, 0 2px 0 var(--key-edge), 0 3px 5px var(--key-shadow);
}

/* ---------- Bubble (floating pill) ---------- */
.bubble {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: 100%;
  height: 40px;
  padding: 0 16px 0 8px;
  border-radius: 999px;
  background: rgba(24, 24, 27, 0.92);
  color: #F4F4F5;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28), 0 1px 0 rgba(255,255,255,0.06) inset;
  font-size: 0.86rem;
  white-space: nowrap;
}

.bubble-dot {
  flex: none;
  display: grid;
  place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  background: rgba(249, 115, 22, 0.18);
}
.bubble-dot svg { width: 14px; height: 14px; color: #FB923C; }

.wave { display: inline-flex; align-items: center; gap: 2px; height: 18px; flex: none; }
.wave i {
  display: block;
  width: 3px;
  height: 30%;
  border-radius: 2px;
  background: #FB923C;
}
.is-listening .wave i { animation: wave 0.9s ease-in-out infinite; }
.wave i:nth-child(2) { animation-delay: -0.15s; }
.wave i:nth-child(3) { animation-delay: -0.45s; }
.wave i:nth-child(4) { animation-delay: -0.3s; }
.wave i:nth-child(5) { animation-delay: -0.6s; }
@keyframes wave {
  0%, 100% { height: 25%; }
  50% { height: 100%; }
}

.bubble-preview {
  min-width: 0;
  overflow: hidden;
  text-overflow: clip;
  color: #8E8E96;   /* the live, grayed-out preview */
  direction: rtl;   /* keep the newest words visible */
  text-align: left;
}
/* Fade the leading edge only once older words scroll out of view. */
.bubble-preview.is-clipped {
  mask-image: linear-gradient(90deg, transparent 0, #000 22px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px);
}
.bubble-preview span { direction: ltr; unicode-bidi: plaintext; }

/* ---------- Hero visual (animated Mac mock) ---------- */
.demo { position: relative; }

.screen {
  position: relative;
  border-radius: var(--radius-lg);
  background:
    radial-gradient(120% 90% at 85% 0%, color-mix(in srgb, var(--spark) 9%, transparent) 0%, transparent 55%),
    var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  aspect-ratio: 16 / 11;
  min-height: 340px;
}

.menubar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
  height: 26px;
  padding: 0 14px;
  background: color-mix(in srgb, var(--card) 70%, transparent);
  border-bottom: 1px solid var(--border);
  font-size: 11px;
  color: var(--text-2);
}
.menubar .mb-left { margin-right: auto; display: flex; gap: 14px; align-items: center; }
.menubar .mb-left b { color: var(--text); font-weight: 650; }
.menubar .mb-icon { width: 14px; height: 14px; color: var(--text-2); transition: color 0.2s ease; }
.menubar .mb-spark.is-active { color: var(--spark); }

.window {
  position: absolute;
  left: 6%; right: 6%;
  top: 46px; bottom: 76px;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  box-shadow: var(--shadow-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.titlebar {
  display: flex;
  align-items: center;
  gap: 7px;
  height: 34px;
  padding: 0 12px;
  border-bottom: 1px solid var(--border);
  background: var(--fill);
  flex: none;
}
.titlebar i { width: 10px; height: 10px; border-radius: 50%; background: var(--border-strong); display: block; }
.titlebar span {
  margin-left: 10px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}

.scene { display: none; flex: 1; min-height: 0; padding: 16px 18px; font-size: 13.5px; line-height: 1.5; color: var(--text); }
.scene.is-active { display: flex; flex-direction: column; }
@media (prefers-reduced-motion: no-preference) {
  .scene.is-active { animation: fadeIn 0.35s ease; }
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.field-row {
  display: flex;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 12.5px;
}
.field-row b { color: var(--text-2); font-weight: 500; min-width: 52px; }

.compose { padding-top: 12px; flex: 1; }

.chat-log { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.chat-msg { display: flex; gap: 10px; font-size: 12.5px; }
.chat-msg .avatar {
  flex: none;
  width: 26px; height: 26px; border-radius: 7px;
  background: var(--fill);
  border: 1px solid var(--border);
  display: grid; place-items: center;
  font-size: 11px; font-weight: 650; color: var(--text-2);
}
.chat-msg b { display: block; font-size: 12px; }
.chat-msg p { color: var(--text-2); }
.chat-input {
  margin-top: 10px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 9px 11px;
  min-height: 42px;
  background: var(--bg);
}

.ticket-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
.pill {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 9px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--border);
  font-size: 11px; color: var(--text-2);
}
.ticket-title { font-weight: 650; font-size: 14px; margin-bottom: 8px; }
.ticket-label { font-size: 11px; color: var(--text-2); margin-bottom: 4px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.ticket-box {
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 9px 11px;
  flex: 1;
  background: var(--bg);
}

.target .inserted { transition: background-color 1.2s ease; border-radius: 3px; }
.target .inserted.is-new { background: var(--accent-tint); }

.caret {
  display: inline-block;
  width: 1.5px;
  height: 1.1em;
  margin-left: 1px;
  vertical-align: -0.18em;
  background: var(--accent);
}
@media (prefers-reduced-motion: no-preference) {
  .caret { animation: blink 1.05s steps(1) infinite; }
}
@keyframes blink { 50% { opacity: 0; } }

.screen .bubble {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: min(360px, 80%);
  transform: translate(-50%, 8px) scale(0.96);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}
.screen .bubble.is-visible { opacity: 1; transform: translate(-50%, 0) scale(1); }

.demo-foot {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 22px;
  min-height: 64px;
}
.demo-caption { font-size: 0.93rem; color: var(--text-2); line-height: 1.4; }
.demo-caption strong { display: block; color: var(--text); font-weight: 600; }

.demo-toggle {
  margin-left: auto;
  flex: none;
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text-2);
  cursor: pointer;
}
.demo-toggle:hover { color: var(--text); }
.demo-toggle svg { width: 14px; height: 14px; }
@media (prefers-reduced-motion: reduce) {
  .demo-toggle { display: none; }
}

@media (max-width: 560px) {
  .screen { aspect-ratio: auto; height: 360px; min-height: 0; }
  .window { left: 12px; right: 12px; top: 40px; bottom: 74px; }
  .menubar .mb-hide-sm { display: none; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  counter-reset: step;
  list-style: none;
  padding: 0;
  margin: 0;
}

.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
}

.step-visual {
  height: 112px;
  border-radius: var(--radius);
  background: var(--fill);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 0 16px;
  overflow: hidden;
}

.step-num {
  counter-increment: step;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  margin-bottom: 6px;
  font-variant-numeric: tabular-nums;
}
.step-num::before { content: "0" counter(step) "  "; color: var(--accent); white-space: pre; }

.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--text-2); }

.step .bubble { height: 36px; font-size: 0.8rem; max-width: 230px; }
.mini-text {
  font-size: 0.95rem;
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  padding: 10px 12px;
  color: var(--text);
  max-width: 240px;
}

/* ---------- Feature grid ---------- */
.features {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 64px;
}

@media (min-width: 640px) { .features { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.feature { background: var(--card); padding: 28px; }
.feature h3 { margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.feature p { color: var(--text-2); font-size: 0.97rem; }

.icon {
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--accent-tint);
  color: var(--accent);
  display: grid;
  place-items: center;
  flex: none;
}
.icon svg { width: 18px; height: 18px; }

/* ---------- Works everywhere ---------- */
.apps-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.apps-strip li {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 18px 0 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--card);
  font-weight: 550;
  font-size: 0.97rem;
  box-shadow: var(--shadow-sm);
}
.apps-strip svg { width: 20px; height: 20px; color: var(--text-2); }

.everywhere {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .everywhere { grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: 64px; }
}
.everywhere h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); }
.everywhere p { margin-top: 12px; color: var(--text-2); }

/* ---------- Graphite panel (privacy) ---------- */
.graphite {
  background: var(--graphite);
  color: #F4F4F5;
  border-radius: 24px;
  padding: clamp(32px, 6vw, 72px);
  border: 1px solid #2E2E33;
  position: relative;
  overflow: hidden;
}
.graphite h2, .graphite h3 { color: #F4F4F5; }
.graphite p { color: #A1A1AA; }
.graphite a { color: #FB923C; }
.graphite .eyebrow { color: #FB923C; }

.privacy-grid { display: grid; gap: 48px; }
@media (min-width: 960px) {
  .privacy-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; align-items: center; }
}

.privacy-lead { margin-top: 16px; font-size: 1rem; }
.privacy-lead strong { color: #F4F4F5; font-weight: 600; }

.privacy-points { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 14px; }
.privacy-points li { display: flex; gap: 12px; color: #D4D4D8; }
.privacy-points svg { width: 20px; height: 20px; color: #FB923C; flex: none; margin-top: 3px; }

/* Data-flow diagram */
.flow {
  border-radius: var(--radius-lg);
  border: 1px solid #36363B;
  background: #1F1F23;
  padding: 22px;
  font-size: 0.9rem;
}
.flow-mac {
  position: relative;
  border: 1.5px dashed #FB923C;
  border-radius: 14px;
  padding: 34px 16px 18px;
}
.flow-mac-label {
  position: absolute;
  top: -11px; left: 14px;
  background: #1F1F23;
  padding: 0 8px;
  font-size: 0.78rem;
  font-weight: 650;
  color: #FB923C;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.flow-row { display: flex; align-items: stretch; gap: 8px; }
.flow-node {
  flex: 1;
  min-width: 0;
  background: #26262A;
  border: 1px solid #36363B;
  border-radius: 10px;
  padding: 12px 10px;
  text-align: center;
  color: #F4F4F5;
  font-weight: 600;
  font-size: 0.86rem;
  line-height: 1.3;
}
.flow-node small { display: block; color: #A1A1AA; font-weight: 400; font-size: 0.76rem; margin-top: 3px; }
.flow-arrow { align-self: center; color: #71717A; flex: none; font-size: 1rem; }
.flow-note { margin-top: 14px; font-size: 0.82rem; color: #A1A1AA; text-align: center; }

.flow-net { margin-top: 18px; }
.flow-net h3 { font-size: 0.78rem; color: #A1A1AA; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 650; margin-bottom: 10px; }
.flow-net ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.flow-net li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 12px;
  border: 1px solid #36363B;
  border-radius: 10px;
  color: #D4D4D8;
}
.flow-net li span:last-child { color: #A1A1AA; text-align: right; }
.flow-net .none { margin-top: 12px; color: #4ADE80; font-weight: 600; font-size: 0.86rem; display: flex; gap: 8px; align-items: center; }
.flow-net .none svg { width: 16px; height: 16px; }

@media (max-width: 480px) {
  .flow-row { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .flow-net li { flex-direction: column; gap: 2px; }
  .flow-net li span:last-child { text-align: left; }
}

/* ---------- Models ---------- */
.models {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 20px;
}

.model {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.model.is-default { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); }

.model-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.model h3 { font-size: 1.05rem; }

.badge {
  display: inline-flex; align-items: center;
  height: 24px; padding: 0 10px;
  border-radius: 999px;
  background: var(--accent-tint);
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 650;
  letter-spacing: 0.01em;
}

.model > p { color: var(--text-2); margin-bottom: 20px; }

.model dl { margin: auto 0 0; display: grid; gap: 0; border-top: 1px solid var(--border); }
.model dl div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 0.93rem; }
.model dl div:last-child { border-bottom: 0; padding-bottom: 0; }
.model dt { color: var(--text-2); }
.model dd { margin: 0; font-weight: 600; text-align: right; }

.languages {
  margin-top: 56px;
  display: grid;
  gap: 32px;
  padding: 36px;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid var(--border);
}
@media (min-width: 900px) {
  .languages { grid-template-columns: minmax(0, 0.75fr) minmax(0, 1.25fr); gap: 48px; }
}
@media (max-width: 560px) { .languages { padding: 24px; } }

.languages h3 { font-size: 1.1rem; margin-bottom: 10px; }
.languages p { color: var(--text-2); }

.lang-list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; align-content: flex-start; }
.lang-list li {
  height: 32px;
  display: inline-flex; align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: var(--fill);
  border: 1px solid var(--border);
  font-size: 0.9rem;
}

.models-note { margin-top: 24px; color: var(--text-2); font-size: 0.95rem; }

/* ---------- App mock (main window) ---------- */
.app-section { display: grid; gap: 48px; }
@media (min-width: 1000px) {
  .app-section { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 64px; align-items: center; }
}

.appwin {
  border-radius: 14px;
  border: 1px solid var(--border-strong);
  background: var(--card);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  font-size: 13px;
}
.appwin-body { display: grid; grid-template-columns: 150px minmax(0, 1fr); min-height: 360px; }

.appwin-side {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 12px 8px;
  display: flex; flex-direction: column; gap: 2px;
}
.appwin-side span {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 10px;
  border-radius: 7px;
  color: var(--text-2);
  font-weight: 500;
}
.appwin-side span.is-active { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); border: 1px solid var(--border); }
.appwin-side svg { width: 14px; height: 14px; }

.appwin-main { padding: 18px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.appwin-main h4 { font-size: 16px; letter-spacing: -0.01em; }

.stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.stat { border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; background: var(--fill); }
.stat span { display: block; color: var(--text-2); font-size: 11px; }
.stat b { display: block; font-size: 20px; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 2px; }

.recent { border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.recent div {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 8px 12px;
  border-bottom: 1px solid var(--border);
}
.recent div:last-child { border-bottom: 0; }
.recent p { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.recent time { color: var(--text-2); flex: none; font-size: 11.5px; }

.tryit {
  border: 1px dashed var(--border-strong);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--text-2);
  display: flex; align-items: center; gap: 8px;
}

@media (max-width: 560px) {
  .appwin-body { grid-template-columns: 1fr; }
  .appwin-side { flex-direction: row; overflow-x: auto; border-right: 0; border-bottom: 1px solid var(--border); }
  .stat b { font-size: 16px; }
}

.app-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 22px; }
.app-list h3 { margin-bottom: 4px; }
.app-list p { color: var(--text-2); font-size: 0.97rem; }

/* ---------- Shared check list ---------- */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; }
.check-list svg { width: 20px; height: 20px; color: var(--accent); flex: none; margin-top: 2px; }

/* ---------- Meeting companion ---------- */
.meetings { display: grid; gap: 48px; }
@media (min-width: 1000px) {
  .meetings { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: 64px; align-items: center; }
}

.soon {
  display: inline-flex; align-items: center;
  height: 22px; padding: 0 9px;
  border-radius: 999px;
  border: 1px dashed var(--accent);
  color: var(--accent);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
}

.meetings h2 { max-width: 16ch; }
.meetings-lead { margin: 16px 0 28px; color: var(--text-2); font-size: 1rem; max-width: 34em; }
.meetings .check-list { margin-bottom: 28px; }
.meetings-foot { color: var(--text-2); font-size: 0.95rem; }

.meetwin-wrap { margin: 0; position: relative; }
.meetwin-body { padding: 16px 18px 18px; display: grid; gap: 14px; }

.meetwin-tabs { display: inline-flex; justify-self: start; gap: 2px; padding: 3px; border-radius: 9px; background: var(--fill); border: 1px solid var(--border); }
.meetwin-tabs span { padding: 4px 12px; border-radius: 6px; color: var(--text-2); font-weight: 500; font-size: 12px; }
.meetwin-tabs span.is-active { background: var(--card); color: var(--text); box-shadow: var(--shadow-sm); }

.transcript { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.transcript li { display: flex; gap: 10px; }
.transcript .who {
  flex: none;
  display: grid; place-items: center;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--c) 16%, var(--card));
  color: var(--c);
  font-size: 10px; font-weight: 700;
}
.transcript b { font-weight: 600; margin-right: 8px; }
.transcript time { color: var(--text-2); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.transcript p { margin-top: 2px; color: var(--text); line-height: 1.45; }

.summary {
  border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--border));
  background: color-mix(in srgb, var(--accent-tint) 60%, var(--card));
  padding: 12px 14px;
}
.summary-label { display: flex; align-items: center; gap: 6px; font-weight: 650; font-size: 12px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--accent); margin-bottom: 6px; }
.summary-label svg { width: 12px; height: 12px; color: var(--spark); }
.summary ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; }

/* ---------- Pricing ---------- */
.plans {
  display: grid;
  gap: 20px;
  max-width: 880px;
  margin: 0 auto;
}
@media (min-width: 760px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

.plan {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.plan.is-featured { border-color: color-mix(in srgb, var(--accent) 45%, var(--border)); box-shadow: var(--shadow-md); }
@media (max-width: 560px) { .plan { padding: 24px; } }

.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 1.05rem; }
.badge-neutral { background: var(--fill); color: var(--text-2); border: 1px solid var(--border); }

.price { display: flex; align-items: baseline; gap: 8px; margin-top: 18px; min-height: 3rem; }
.price .amount { font-family: var(--font-display); font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; line-height: 1; }
.price .per { color: var(--text-2); font-size: 0.95rem; }

.plan-desc { margin-top: 10px; color: var(--text-2); }
@media (min-width: 760px) { .plan-desc { min-height: 3.2em; } }
.plan .btn { margin-top: 24px; justify-content: center; }
.plan-note { margin-top: 10px; font-size: 0.88rem; color: var(--text-2); text-align: center; }
.plans-foot { margin-top: 28px; text-align: center; }
.plan .check-list { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 0.97rem; }

/* ---------- Teams ---------- */
.teams-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
.card h3 { margin: 16px 0 8px; }
.card p { color: var(--text-2); font-size: 0.97rem; }
.card ul { margin: 12px 0 0; padding-left: 18px; color: var(--text-2); font-size: 0.97rem; }
.card ul li + li { margin-top: 6px; }

.teams-foot {
  margin-top: 32px;
  display: flex; flex-wrap: wrap; gap: 16px 28px; align-items: center;
}

/* ---------- FAQ ---------- */
.faq { border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 22px 4px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.1rem;
  letter-spacing: -0.012em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  flex: none;
  width: 10px; height: 10px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg) translate(-2px, -2px);
  transition: transform 0.2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg) translate(-2px, -2px); }
.faq summary:hover { color: var(--accent); }
.faq .answer { padding: 0 4px 24px; color: var(--text-2); max-width: 680px; }
.faq .answer p + p { margin-top: 10px; }

/* ---------- CTA ---------- */
.cta {
  text-align: center;
  padding: clamp(40px, 7vw, 80px) clamp(20px, 5vw, 64px);
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
}
.cta .spark-mark { width: 44px; height: 44px; color: var(--spark); margin: 0 auto 20px; }
.cta h2 { max-width: 18ch; margin: 0 auto; }
.cta p { margin: 16px auto 0; max-width: 34em; color: var(--text-2); font-size: 1rem; }
.cta .hero-actions { justify-content: center; }

/* ---------- Page header (inner pages) ---------- */
.page-head { padding: 40px 0 40px; border-bottom: 1px solid var(--border); }
.page-head h1 { max-width: 18ch; }
.page-head .lead { margin-top: 18px; max-width: 40em; }
.page-head .meta { margin-top: 20px; font-size: 0.9rem; color: var(--text-2); }

/* ---------- Docs layout (security, legal) ---------- */
.doc-layout { display: grid; gap: 48px; padding-block: 56px 96px; }
@media (min-width: 960px) {
  .doc-layout { grid-template-columns: 220px minmax(0, 1fr); gap: 72px; }
}

.toc { font-size: 0.92rem; }
@media (min-width: 960px) {
  .toc { position: sticky; top: 96px; align-self: start; }
}
.toc h2 { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text-2); font-weight: 650; margin-bottom: 12px; }
.toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.toc a {
  display: block;
  padding: 6px 12px;
  border-left: 2px solid var(--border);
  color: var(--text-2);
  text-decoration: none;
}
.toc a:hover { color: var(--text); border-left-color: var(--border-strong); }
.toc a.is-current { color: var(--text); border-left-color: var(--accent); }
@media (max-width: 959px) {
  .toc { border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; background: var(--surface); }
}

.prose { max-width: 720px; min-width: 0; }
.prose > section + section { margin-top: 64px; padding-top: 56px; border-top: 1px solid var(--border); }
.prose h2 { font-size: clamp(1.3rem, 2.2vw, 1.6rem); margin-bottom: 18px; }
.prose h3 { font-size: 1.05rem; margin: 32px 0 8px; }
.prose p, .prose ul, .prose ol { color: var(--text-2); }
.prose p + p { margin-top: 14px; }
.prose ul, .prose ol { padding-left: 20px; margin: 14px 0 0; }
.prose li + li { margin-top: 8px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose > section > p:first-of-type { margin-top: 0; }
.prose details { margin-top: 14px; }
.prose summary { cursor: pointer; color: var(--accent); font-weight: 500; }
.license-text { margin-top: 12px; padding: 16px; max-height: 360px; overflow: auto; background: var(--fill); border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-2); font-family: var(--font-mono); font-size: 0.78rem; line-height: 1.5; white-space: pre-wrap; }

.facts { list-style: none; padding: 0 !important; margin: 18px 0 0 !important; display: grid; gap: 0; border-top: 1px solid var(--border); }
.facts li { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 8px; padding: 16px 0; border-bottom: 1px solid var(--border); margin: 0 !important; }
.facts li svg { width: 18px; height: 18px; color: var(--success); margin-top: 3px; }
.facts li strong { display: block; color: var(--text); margin-bottom: 2px; }

.table-wrap { margin-top: 20px; overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; font-size: 0.93rem; min-width: 560px; }
th, td { text-align: left; vertical-align: top; padding: 14px 16px; border-bottom: 1px solid var(--border); }
th { font-weight: 600; color: var(--text); background: var(--surface); font-size: 0.85rem; }
td { color: var(--text-2); }
td:first-child { color: var(--text); font-weight: 600; }
tr:last-child td { border-bottom: 0; }

.callout {
  margin-top: 24px;
  padding: 18px 20px;
  border-radius: var(--radius);
  background: var(--accent-tint);
  border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent);
  color: var(--text);
}
.callout p { color: var(--text); }

.contact-block {
  margin-top: 64px;
  padding: 32px;
  border-radius: var(--radius-lg);
  background: var(--graphite);
  color: #F4F4F5;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.contact-block h2 { color: #F4F4F5; font-size: 1.45rem; margin: 0; }
.contact-block p { color: #A1A1AA; margin-top: 6px; }
.contact-block .btn-primary { background: #FB923C; color: #18181B; }
.contact-block .btn-primary:hover { background: #FDBA74; }

/* ---------- Contact form ---------- */
.contact-grid { display: grid; gap: 48px; padding-block: 56px 96px; }
@media (min-width: 960px) {
  .contact-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr); gap: 64px; }
}

.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: 1fr 1fr; } }

.field { display: grid; gap: 7px; align-content: start; }
.field label { font-weight: 600; font-size: 0.93rem; }
.field label .opt { font-weight: 400; color: var(--text-2); }
.field .hint { font-size: 0.85rem; color: var(--text-2); }

.field input, .field textarea {
  font: inherit;
  font-size: 1rem;
  color: var(--text);
  background: var(--card);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 11px 13px;
  width: 100%;
  min-height: 46px;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
.field input:user-invalid, .field textarea:user-invalid { border-color: #DC2626; }

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.form-foot { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; }
.form-foot p { font-size: 0.88rem; color: var(--text-2); }

.form-status { font-size: 0.95rem; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--success); }
.form-status.is-error { color: #DC2626; }
@media (prefers-color-scheme: dark) { .form-status.is-error { color: #F87171; } }

.aside-stack { display: grid; gap: 20px; align-content: start; }
.aside-stack .card h2 { font-size: 1.15rem; margin-bottom: 8px; }
.aside-stack .card h2 + p { margin-top: 0; }
.req-list { list-style: none; padding: 0 !important; margin: 12px 0 0 !important; display: grid; gap: 8px; }
.req-list li { display: flex; gap: 10px; color: var(--text-2); margin: 0 !important; }
.req-list svg { width: 16px; height: 16px; color: var(--success); flex: none; margin-top: 4px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  font-size: 0.92rem;
  color: var(--text-2);
  background: var(--bg);
}
.footer-grid { display: grid; gap: 36px; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.footer-grid h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.07em; color: var(--text); font-weight: 650; margin-bottom: 12px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.footer-grid a { color: var(--text-2); text-decoration: none; }
.footer-grid a:hover { color: var(--text); text-decoration: underline; }
.footer-brand p { margin-top: 12px; max-width: 26em; }
.footer-bottom {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between;
  font-size: 0.85rem;
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
