/* Fulltrace site: compiled from Claude Design Files/fulltrace-site/index.html
   Colour values come from tokens.css. The light-surface neutrals below
   (surface/border/text ramp on Paper) are pinned by brand board 6b but are not
   declared in tokens.css, so they are literals here. Keep the two in sync. */

/* ---------------------------------------------------------------- themes */

:root {
  color-scheme: dark;
  --bg: var(--ink-950);
  --surf: var(--ink-900);
  --border: var(--ink-800);
  --border-2: #3A3450;
  --text: #EEEAF5;
  --body: var(--ink-300);
  --muted: var(--ink-500);
  --ember-text: var(--ember-500);
  --succ: var(--success);
  --warn-c: var(--warn);
  --err: var(--error);
  /* Graph series / product-UI selection (brand law 7). tokens.css pins Violet
     400 against Ink 950 only; the board has no paper-side violet, so the same
     value carries over and is used as a fill, never as text. */
  --series: var(--violet-400);
}

[data-theme="light"] {
  color-scheme: light;
  --bg: var(--paper-50);
  --surf: var(--paper-0);
  --border: #E4E0D8;
  --border-2: #CFC9BD;
  --text: #1D1A26;
  --body: #4A4458;
  --muted: #6B6578;
  --ember-text: var(--ember-700); /* brand law 4: only text orange on paper */
  --succ: var(--success-light);
  --warn-c: var(--warn-light);
  --err: var(--error-light);
}

/* ------------------------------------------------------------------ base */

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

html { scroll-behavior: smooth; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-display);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }

::selection { background: rgba(255, 106, 61, 0.3); }

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

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

.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 20;
  background: var(--ember-500);
  color: var(--ink-950);
  font-weight: 700;
  font-size: 14px;
  padding: 10px 18px;
  border-radius: 8px;
  transition: top 0.15s ease;
}

.skip:focus { top: 12px; }

.wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding-inline: 32px;
}

.eyebrow {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--muted);
  text-transform: uppercase;
}

.section-title {
  margin: 18px 0 0;
  font-size: clamp(28px, 4.4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.band {
  border-top: 1px solid var(--border);
}

.band--surf { background: var(--surf); }

.band > .wrap { padding-block: clamp(56px, 8vw, 88px); }

/* --------------------------------------------------------------- buttons */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-weight: 700;
  white-space: nowrap;
  transition: opacity 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

/* brand law 3: CTA is always Ink 950 on Ember 500, in both themes */
.btn--cta {
  background: var(--ember-500);
  color: var(--ink-950);
}

.btn--ghost {
  border: 1px solid var(--border-2);
  color: var(--text);
  font-weight: 600;
}

.btn--sm { font-size: 14px; padding: 10px 20px; }
.btn--lg { font-size: 16px; padding: 14px 28px; }

.btn:hover { opacity: 0.88; }
.btn--ghost:hover { opacity: 1; border-color: var(--ember-text); }
.btn:active { transform: translateY(1px); }

/* ------------------------------------------------------------------- nav */

.nav {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg); /* fallback where color-mix is unsupported */
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  backdrop-filter: saturate(140%) blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding-block: 18px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: none;
}

.brand__word {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.045em; /* brand law 6 */
}

.nav__links {
  display: flex;
  align-items: center;
  gap: 28px;
}

.nav__link {
  font-size: 14px;
  font-weight: 600;
  color: var(--body);
  transition: color 0.15s ease;
}

.nav__link:hover { color: var(--text); }
.nav__link[aria-current="page"] { color: var(--text); }

.theme-toggle {
  width: 36px;
  height: 36px;
  flex: none;
  padding: 0;
  background: none;
  border: 1px solid var(--border-2);
  border-radius: 9px;
  display: grid;
  place-items: center;
  color: var(--body);
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.theme-toggle:hover { color: var(--ember-text); border-color: var(--ember-text); }

.theme-toggle .icon-moon { display: none; }
[data-theme="light"] .theme-toggle .icon-sun { display: none; }
[data-theme="light"] .theme-toggle .icon-moon { display: block; }

/* ----------------------------------------------------------------- hero */

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-block: clamp(56px, 9vw, 96px) clamp(48px, 6vw, 72px);
}

.hero__tagline {
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: clamp(11px, 2.4vw, 13px);
  color: var(--ember-text);
  letter-spacing: 0.24em; /* tagline tracking, per guidelines */
  text-transform: uppercase;
}

.hero__title {
  margin: 28px 0 0;
  font-size: clamp(38px, 7.4vw, 64px);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.06;
  max-width: 15ch;
  text-wrap: balance;
}

.hero__lede {
  margin: 26px 0 0;
  font-size: clamp(16px, 2.2vw, 18px);
  line-height: 1.65;
  color: var(--body);
  max-width: 56ch;
  text-wrap: pretty;
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
}

/* Sub-page hero: left-aligned, shorter, page-sized title. */
.hero--page {
  align-items: flex-start;
  text-align: left;
  padding-block: clamp(48px, 7vw, 80px) clamp(20px, 4vw, 40px);
}

.hero--page .hero__title {
  font-size: clamp(32px, 5.4vw, 52px);
  max-width: 18ch;
}

.term {
  margin-top: clamp(36px, 6vw, 52px);
  width: 100%;
  max-width: 600px;
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px 24px;
  text-align: left;
  font-family: var(--font-mono);
  font-size: clamp(12px, 2.6vw, 13.5px);
  line-height: 2;
  overflow-x: auto;
}

.term__cmd { color: var(--muted); }
.term__ok { color: var(--succ); }
.term__note { color: var(--body); }

/* -------------------------------------------------------------- product */

.shot { padding-block: clamp(32px, 5vw, 48px) clamp(56px, 8vw, 96px); }

.demo-lead {
  margin: 14px 0 26px;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}

.window {
  background: var(--surf);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px;
}

.window__chrome {
  display: flex;
  gap: 6px;
  padding: 2px 6px 12px;
}

.window__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--border);
}

.window__body {
  border-radius: 8px;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: var(--bg);
  border: 1px solid var(--border);
  container-type: inline-size;
}

.window__body > img { width: 100%; height: 100%; object-fit: cover; }

/* brand law 2: status always carries a text label, never hue alone */
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  white-space: nowrap;
  font-size: 0.86em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.chip::before {
  content: "";
  flex: none;
  width: 0.55em;
  height: 0.55em;
  border-radius: 50%;
  background: currentColor;
}

.chip--ok { color: var(--succ); }
.chip--retry { color: var(--warn-c); }
.chip--err { color: var(--err); }

/* ----------------------------------------------------------------- grids */

.section-lede {
  margin: 16px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  max-width: 62ch;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 44px;
}

.cards-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-top: 36px;
}

.card {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
  transition: border-color 0.15s ease;
}

.card:hover { border-color: var(--border-2); }

/* Cards sitting on the page background (plain bands) take the surface fill. */
.card--surf { background: var(--surf); }

/* Plain-fact list: the "scope, honestly" strip and similar. */
.facts {
  list-style: none;
  margin: 32px 0 0;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surf);
  overflow: hidden;
}

.facts li {
  display: flex;
  gap: 14px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
}

.facts li:first-child { border-top: 0; }

.facts b {
  flex: none;
  width: 11rem;
  font-weight: 600;
  color: var(--text);
}

.card__num {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--ember-text);
}

.card__title { margin: 14px 0 0; font-size: 20px; font-weight: 700; }

.card__copy {
  margin: 12px 0 0;
  font-size: 15px;
  line-height: 1.65;
  color: var(--body);
}

/* --------------------------------------------------------------- roadmap */

.stats {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 44px;
  margin-top: 34px;
}

.stat__num {
  font-family: var(--font-mono);
  font-size: 26px;
  font-weight: 600;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.stat__label {
  margin-top: 2px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Neutral status word: text only, no hue semantics. */
.status-word {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border-2);
  border-radius: 5px;
  padding: 3px 8px;
  white-space: nowrap;
}

.card .status-word { margin-top: auto; align-self: flex-start; }

.card--track { display: flex; flex-direction: column; gap: 0; }

.fold {
  margin-top: 36px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--surf);
  overflow: hidden;
}

.fold > summary {
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 12px;
}

.fold > summary::-webkit-details-marker { display: none; }

.fold > summary::before {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(-45deg);
  transition: transform 0.2s ease;
  flex: none;
}

.fold[open] > summary::before { transform: rotate(45deg); }

.fold__hint { font-size: 13px; font-weight: 400; color: var(--muted); margin-left: auto; }

.fold__scroll {
  overflow: auto;
  max-height: 580px;
  border-top: 1px solid var(--border);
}

.rmap {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
}

.rmap th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: var(--surf);
  text-align: left;
  font-family: var(--font-mono);
  font-weight: 500;
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.rmap td {
  padding: 10px 16px;
  border-top: 1px solid var(--border);
  color: var(--body);
  line-height: 1.5;
  vertical-align: top;
}

.rmap tr:first-child td { border-top: 0; }
.rmap tbody tr:hover td { background: color-mix(in srgb, var(--text) 3%, transparent); }

.rmap td:first-child {
  font-family: var(--font-mono);
  font-size: 12.5px;
  white-space: nowrap;
  color: var(--text);
}

.rmap .rmap__meta { font-family: var(--font-mono); font-size: 11.5px; white-space: nowrap; color: var(--muted); }

.rmap code {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text);
}

/* ------------------------------------------------------------------- cta */

.cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.cta__title { max-width: 22ch; margin: 0; }

.cta__lede {
  margin: 18px 0 0;
  font-size: 16px;
  line-height: 1.65;
  color: var(--body);
  max-width: 58ch;
  text-wrap: pretty;
}

.cta__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 32px; }

/* ---------------------------------------------------------------- footer */

.footer > .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  padding-block: 40px;
}

.footer__mark {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer__tagline {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.24em;
  text-transform: uppercase;
}

.footer__links { display: flex; gap: 24px; font-size: 13px; font-weight: 600; }
.footer__links a { color: var(--body); transition: color 0.15s ease; }
.footer__links a:hover { color: var(--text); }

.footer__legal { font-family: var(--font-mono); font-size: 11px; color: var(--muted); }

/* ------------------------------------------------------------------ form */

.form-card {
  margin-top: 40px;
  max-width: 620px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px;
}

.form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.form[hidden] { display: none; }

.form__row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.form__label {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.form__req {
  margin-left: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--muted);
}

.form__input {
  width: 100%;
  padding: 12px 14px;
  background: var(--surf);
  border: 1px solid var(--border-2);
  border-radius: 8px;
  font-family: var(--font-display);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  caret-color: var(--ember-text);
  transition: border-color 0.15s ease;
}

.form__input:hover { border-color: var(--muted); }
.form__input:focus { border-color: var(--ember-text); }

.form__input--area {
  min-height: 150px;
  resize: vertical;
}

/* Not decoration: an inset fill is the only way to repaint the browser's
   autofill background, which otherwise lands pale yellow in both themes. */
.form__input:-webkit-autofill,
.form__input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 100px var(--surf) inset;
}

/* Honeypot. Off-screen rather than display:none, which the cruder bots skip. */
.form__trap {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

/* Reserved so the card does not jump when the widget finishes loading. */
.form__turnstile { min-height: 65px; }

.form__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form__actions .btn[disabled] {
  opacity: 0.55;
  cursor: not-allowed;
}

/* brand law 2: the status always carries its own words, never hue alone. */
.form__status {
  margin: 20px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--body);
  max-width: 58ch;
}

.form__status:empty { display: none; }
.form__status--ok { color: var(--succ); }
.form__status--err { color: var(--err); }

.form__note {
  margin: 18px 0 0;
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  max-width: 62ch;
}

.form__note--under { margin-top: 20px; }

/* ------------------------------------------------------------- scroll fx */

/* Armed before first paint by the inline snippet in each page's <head>, so
   targets start transparent on the very first frame instead of flashing in.
   js/scroll.js reveals them. No .fx class means a fully static page, which is
   what happens under reduced motion or with JS off. */
@media screen and (prefers-reduced-motion: no-preference) {
  /* Keep in sync with REVEAL_SELECTORS in js/scroll.js. Demo windows are
     excluded on purpose: the modal is position:fixed and a transform on an
     ancestor would re-anchor it. */
  html.fx .hero > *,
  html.fx .eyebrow,
  html.fx .section-title,
  html.fx .section-lede,
  html.fx .steps > *,
  html.fx .cards-2 > *,
  html.fx .facts,
  html.fx .fold,
  html.fx .form-card,
  html.fx .form__note--under,
  html.fx .cta__lede,
  html.fx .cta__actions {
    opacity: 0;
    transform: translateY(12px);
    transition:
      opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  }

  /* Cards carry a hover tint that the rule above would otherwise wipe out. */
  html.fx .card {
    transition:
      opacity 0.25s cubic-bezier(0.4, 0, 0.2, 1),
      transform 0.25s cubic-bezier(0.4, 0, 0.2, 1),
      border-color 0.15s ease;
  }

  html.fx .fx-in { opacity: 1; transform: none; }
  html.fx .fx-instant { transition: none; }
  html.fx .card.fx-instant { transition: border-color 0.15s ease; }
}

/* ----------------------------------------------------------- breakpoints */

@media (max-width: 1040px) {
}

@media (max-width: 900px) {
  .steps { grid-template-columns: 1fr; }
  .cards-2 { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .facts li { flex-direction: column; gap: 3px; }
  .facts b { width: auto; }
  .form-card { padding: 22px 18px; }
  .form__actions .btn { flex: 1 1 100%; }
}

@media (max-width: 820px) {
  .nav__links { gap: 18px; }
  .nav__link { display: none; }
  .wrap { padding-inline: 20px; }
}

@media (max-width: 680px) {
  .window__body { aspect-ratio: auto; }
  .footer > .wrap { flex-direction: column; align-items: flex-start; }
  .hero__actions .btn, .cta__actions .btn { flex: 1 1 220px; }
}
