@font-face { font-family: "IBM Plex Sans"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 500; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-500-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Sans"; font-weight: 600; font-style: normal; font-display: swap; src: url("/assets/fonts/ibm-plex-sans-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "JetBrains Mono"; font-weight: 400; font-style: normal; font-display: swap; src: url("/assets/fonts/jetbrains-mono-latin-400-normal.woff2") format("woff2"); }

/* The app's own palette: graphite, warm white, amber = a human is needed,
   teal = Modus at work. Red only for failures, as in the app. */
:root {
  --graphite: #14171c;
  --panel: #1a1f26;
  --rule: #262c35;
  --ink: #e8e6e3;
  --ink-2: #aeb3ba;
  --ink-3: #7d838c;
  --amber: #e8a33d;
  --teal: #4fb8a8;
  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --measure: 34rem;
  --page: 72rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
h1, h2 { text-wrap: balance; }
p, li, dd { text-wrap: pretty; }
section[id] { scroll-margin-top: 1.5rem; }
.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 { position: absolute; left: 1rem; top: -3rem; padding: 0.5rem 0.9rem; border-radius: 0.4rem; background: var(--amber); color: var(--graphite); text-decoration: none; font-weight: 500; z-index: 10; }
.skip:focus { top: 1rem; }

body {
  margin: 0;
  background: var(--graphite);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--sans);
  overflow-x: clip;
}

a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--amber); text-underline-offset: 0.2em; text-decoration-thickness: 1px; }
a:hover { color: var(--amber); }
a:focus-visible, summary:focus-visible { outline: 2px solid var(--amber); outline-offset: 3px; border-radius: 2px; }

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

.page { max-width: var(--page); margin: 0 auto; padding: 0 1rem; }

/* ── header ── */
.site-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.5rem 0; }
.site-head .brand img { height: 2rem; width: auto; display: block; }
.site-head nav { display: flex; gap: 1.5rem; font-size: 0.9375rem; }
.site-head nav a { text-decoration: none; color: var(--ink-2); }
.site-head nav a:hover { color: var(--ink); }

/* ── hero: the words on the left, the app window running off the right edge ── */
/* ── hero: one centred column, then the app window ── */
.hero { padding: 5rem 0 0; text-align: center; }
.headline {
  font-weight: 600;
  font-size: clamp(2.25rem, 6vw, 4.5rem);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 0 auto;
}
.headline .line { display: block; }
/* The second sentence is typed by site.js. Its full text keeps the place
   (no layout shift) and is what shows without script or with reduced motion;
   the caret is the brand's amber dot as a cursor. */
.headline .typed { display: inline-grid; justify-items: start; }
.typed > * { grid-area: 1 / 1; }
.typed .live { display: none; white-space: nowrap; }
.is-typing .typed .ghost { visibility: hidden; }
.is-typing .typed .live { display: inline; }
.caret { display: inline-block; width: 0.08em; height: 0.82em; margin-left: 0.06em; vertical-align: -0.06em; background: var(--amber); border-radius: 1px; animation: blink 1.1s steps(1) 6; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .caret { animation: none; } }

.hero .lead { max-width: 40rem; margin: 1.75rem auto 2rem; font-size: 1.125rem; color: var(--ink-2); }
.hero .get { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.75rem; }
.soon, .ghost-btn {
  display: inline-block;
  font-weight: 500;
  padding: 0.65rem 1.15rem;
  border-radius: 0.5rem;
  border: 1px solid var(--amber);
}
.soon { background: var(--amber); color: var(--graphite); }
.ghost-btn { border-color: var(--rule); color: var(--ink); text-decoration: none; background: var(--panel); }
.ghost-btn:hover { color: var(--ink); border-color: var(--ink-3); }
.hero .where { color: var(--ink-3); font-size: 0.9375rem; margin: 1rem 0 0; }

.hero figure { margin: 3.5rem 0 0; text-align: left; }
.window {
  border-radius: 0.75rem;
  border: 1px solid var(--rule);
  background: var(--panel);
  box-shadow: 0 2.5rem 6rem -2rem #000;
  overflow: hidden;
}
.window .chrome { position: relative; display: flex; align-items: center; gap: 0.45rem; padding: 0.7rem 0.85rem; border-bottom: 1px solid var(--rule); }
/* The window's title, as macOS draws it: the app icon and its name, centred. */
.window .title { position: absolute; left: 50%; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 0.5rem; font-size: 0.8125rem; font-weight: 500; color: var(--ink-2); }
.window .title .mark { display: grid; place-items: center; width: 1.25rem; height: 1.25rem; border-radius: 0.3rem; background: var(--graphite); border: 1px solid var(--rule); }
.window .title .mark img { width: 72%; height: auto; }
.window .chrome i { width: 0.7rem; height: 0.7rem; border-radius: 50%; background: #3a414b; }
.window img { display: block; width: 100%; height: auto; }

/* ── features: prose beside its view, alternating sides ── */
.feature {
  display: grid;
  grid-template-columns: minmax(0, 26rem) minmax(0, 1fr);
  gap: 3rem;
  align-items: center;
  padding: 6rem 0 0;
}
.feature.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 26rem); }
.feature.flip .text { order: 2; }
/* A wide view: the words above, the view across the page. */
.feature.stack { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
.feature.stack .text { max-width: 46rem; }
.feature h2 { font-weight: 600; font-size: 1.75rem; line-height: 1.2; letter-spacing: -0.015em; margin: 0 0 1rem; }
.feature p { color: var(--ink-2); margin: 0 0 1rem; }
.feature ul { margin: 0; padding: 0; list-style: none; color: var(--ink-2); }
.feature li { padding-left: 1.1rem; position: relative; margin: 0.4rem 0; }
.feature li::before { content: ""; position: absolute; left: 0; top: 0.68em; width: 0.35rem; height: 0.35rem; border-radius: 50%; background: var(--ink-3); }
.shot { margin: 0; }
figure { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 0.6rem; border: 1px solid var(--rule); }
.shot.narrow img { max-width: 22rem; margin: 0 auto; border: none; }


/* ── what happens at launch: steps that complete one after another (site.js);
   teal = Modus at work, amber = the step that waits for you ── */
.launch-steps { margin: 0; padding: 1.75rem 1.75rem 1.5rem; background: var(--panel); border: 1px solid var(--rule); border-radius: 0.75rem; }
.ls-task { margin: 0; font-weight: 500; }
.ls-task .key { font-family: var(--mono); font-size: 0.875em; color: var(--ink-3); margin-right: 0.6rem; }
.ls-run { margin: 0.25rem 0 1.25rem; color: var(--ink-3); font-size: 0.9375rem; }
.launch-steps ol { list-style: none; margin: 0; padding: 0; }
.launch-steps li { position: relative; padding: 0.7rem 0 0.7rem 2.1rem; border-top: 1px solid var(--rule); color: var(--ink); transition: color 300ms ease; }
.launch-steps li::before { content: ""; position: absolute; left: 0; top: 0.78rem; width: 1.15rem; height: 1.15rem; border-radius: 50%; box-sizing: border-box; border: 1.5px solid var(--teal); background: var(--teal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' fill='none' stroke='%2314171c' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 80% no-repeat; transition: background-color 300ms ease, border-color 300ms ease; }
.launch-steps li.you::before { border-color: var(--amber); background: radial-gradient(circle, var(--amber) 0 30%, transparent 32%); }
.launch-steps li.you { color: var(--amber); }
.launch-steps code { color: var(--ink); }
/* Before its turn a step is an empty ring in grey. */
.launch-steps.is-running li:not(.done) { color: var(--ink-3); }
.launch-steps.is-running li:not(.done)::before { border-color: var(--rule); background: transparent; }

/* ── agents ── */
.agents { padding: 6rem 0 0; max-width: 46rem; }
.agents h2, .steps h2, .faq h2, .data h2 { font-weight: 600; font-size: 1.75rem; letter-spacing: -0.015em; margin: 0 0 1rem; }
.agents p, .data p { color: var(--ink-2); margin: 0 0 1rem; }

/* ── first steps: a real sequence, so numbered ── */
.steps { padding: 6rem 0 0; }
.steps ol { list-style: none; margin: 1.5rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; counter-reset: step; }
.steps li { counter-increment: step; border-top: 1px solid var(--rule); padding-top: 1.25rem; color: var(--ink-2); }
.steps li::before { content: counter(step); display: block; font-weight: 600; font-size: 2rem; line-height: 1; color: var(--ink-3); margin-bottom: 0.75rem; }
.steps li strong { display: block; color: var(--ink); font-weight: 500; margin-bottom: 0.35rem; }

.data { padding: 6rem 0 0; max-width: 46rem; }

/* ── what comes next: a plain list, the note says it is a plan ── */
.soon-list { padding: 6rem 0 0; }
.soon-list h2 { font-weight: 600; font-size: 1.75rem; letter-spacing: -0.015em; margin: 0 0 0.25rem; }
.soon-list .note { color: var(--ink-3); margin: 0 0 1.5rem; }
.soon-list dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); gap: 0 2rem; }
.soon-list dl > div { border-top: 1px solid var(--rule); padding: 1rem 0 1.25rem; }
.soon-list dt { font-weight: 500; margin-bottom: 0.25rem; }
.soon-list dd { margin: 0; color: var(--ink-2); }

/* ── questions ── */
.faq { padding: 6rem 0 0; max-width: 46rem; }
.faq details { border-top: 1px solid var(--rule); }
.faq details:last-of-type { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 1rem 0; font-weight: 500; list-style: none; display: flex; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--ink-3); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { margin: 0 0 1.25rem; color: var(--ink-2); }

/* ── the end ── */
.closing { padding: 7rem 0 5rem; }
.closing h2 { font-weight: 600; font-size: clamp(1.75rem, 3.5vw, 2.5rem); letter-spacing: -0.02em; margin: 0 0 1.5rem; max-width: 20ch; }

.site-foot { border-top: 1px solid var(--rule); padding: 2rem 0 3rem; color: var(--ink-3); font-size: 0.875rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; }
.site-foot nav { display: flex; gap: 1.5rem; }
.foot-brand { display: inline-flex; align-items: center; gap: 0.6rem; }
.site-foot a { color: var(--ink-2); text-decoration: none; }
.site-foot a:hover { color: var(--ink); }

/* ── legal pages ── */
.doc { max-width: 46rem; padding: 2.5rem 0 4rem; }
.doc h1 { font-weight: 600; font-size: 2.25rem; letter-spacing: -0.02em; margin: 0 0 0.25rem; }
.doc .updated { color: var(--ink-3); margin: 0 0 2.5rem; }
.doc h2 { font-weight: 600; font-size: 1.25rem; margin: 2.25rem 0 0.5rem; }
.doc p, .doc li { color: var(--ink-2); }
.doc strong { color: var(--ink); font-weight: 500; }

@media (max-width: 52rem) {
  .hero { padding-top: 2.5rem; }
  .feature, .feature.flip { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; padding-top: 4rem; }
  .feature.flip .text { order: 0; }
  .steps ol { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .agents, .steps, .data, .faq, .soon-list { padding-top: 4rem; }
  .site-head nav { gap: 1rem; }
}
