/* Modus — landing site
   Palette: graphite + amber (owner-approved).
   Type: Archivo (display, self-hosted variable) · Segoe UI (body) · Cascadia (mono).
   The one loud thing on this page is the hero scene-switch; everything else is quiet. */

@font-face {
  font-family: "Archivo";
  src: url("fonts/archivo-var-latin.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --g-950: #0f1113;      /* page ground */
  --g-900: #15181c;      /* raised panel */
  --g-850: #1a1e23;      /* monitor screens, cards */
  --g-700: #2a2f36;      /* hairlines, borders */
  --g-500: #4b535e;      /* muted chrome, disabled */
  --slate-400: #98a1ad;  /* secondary text */
  --paper: #e8eaed;      /* primary text */
  --amber: #f0a52e;      /* the accent — spend sparingly */
  --amber-deep: #c77f10; /* hover, pressed */
  --amber-glow: rgba(240, 165, 46, 0.14);

  --font-display: "Archivo", "Segoe UI", system-ui, sans-serif;
  --font-body: "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, sans-serif;
  --font-mono: "Cascadia Code", "Consolas", ui-monospace, monospace;

  --radius-s: 3px;
  --radius-m: 6px;
  --measure: 62ch;
  --gutter: clamp(1.25rem, 4vw, 2.5rem);
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--g-950);
  color: var(--paper);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

::selection { background: var(--amber); color: var(--g-950); }

a { color: var(--paper); text-decoration-color: var(--g-500); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--amber); }

:focus-visible {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: var(--radius-s);
}

/* ---------- layout shell ---------- */

.shell {
  max-width: 68rem;
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* ---------- header ---------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: color-mix(in srgb, var(--g-950) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--g-700);
}

.site-header .shell {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 3.5rem;
}

.wordmark {
  font-family: var(--font-display);
  font-stretch: 115%;
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--paper);
}
.wordmark .dot { color: var(--amber); }

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

.site-nav a {
  font-size: 0.92rem;
  color: var(--slate-400);
  text-decoration: none;
}
.site-nav a:hover { color: var(--paper); }

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

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1rem;
  padding: 0.62rem 1.15rem;
  border-radius: var(--radius-s);
  border: 1px solid transparent;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, border-color 120ms ease, transform 60ms ease;
}
.btn:active { transform: translateY(1px); }

.btn-primary {
  background: var(--amber);
  color: #17130a;
  border-color: var(--amber);
}
.btn-primary:hover { background: var(--amber-deep); border-color: var(--amber-deep); }

.btn-ghost {
  background: transparent;
  color: var(--paper);
  border-color: var(--g-700);
}
.btn-ghost:hover { border-color: var(--g-500); }

.btn-small { font-size: 0.88rem; padding: 0.4rem 0.8rem; }

.btn-note {
  font-size: 0.84rem;
  color: var(--slate-400);
  margin-top: 0.55rem;
}

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

.hero { padding-block: clamp(3rem, 8vw, 5.5rem) clamp(2.5rem, 6vw, 4rem); }

.hero h1 {
  font-family: var(--font-display);
  font-stretch: 118%;
  font-weight: 640;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.012em;
  margin: 0 0 1.1rem;
  max-width: 21ch;
}

.hero .lede {
  color: var(--slate-400);
  font-size: clamp(1.05rem, 2vw, 1.2rem);
  max-width: 52ch;
  margin: 0 0 1.8rem;
}
.hero .lede strong { color: var(--paper); font-weight: 600; }

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 0.55rem;
}

/* keyboard keycaps — the recurring motif */
kbd.key {
  font-family: var(--font-mono);
  font-size: 0.78em;
  color: var(--paper);
  background: var(--g-850);
  border: 1px solid var(--g-700);
  border-bottom-width: 2px;
  border-radius: var(--radius-s);
  padding: 0.14em 0.5em;
  transition: border-color 120ms ease, background-color 120ms ease, transform 90ms ease;
}
.combo { white-space: nowrap; }
.combo.pressed kbd.key {
  background: var(--amber-glow);
  border-color: var(--amber);
  transform: translateY(1px);
}

/* ---------- the demo: two monitors, three workflows ---------- */

.demo {
  margin-top: clamp(2rem, 5vw, 3.2rem);
  border: 1px solid var(--g-700);
  border-radius: var(--radius-m);
  background:
    linear-gradient(180deg, color-mix(in srgb, var(--g-900) 92%, white 2%) 0%, var(--g-900) 100%);
  padding: clamp(1rem, 3vw, 1.8rem);
}

.demo-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.7rem 1.1rem;
  margin-bottom: 1.1rem;
}

.demo-head .combo { font-size: 1.05rem; }

.demo-arrow { color: var(--g-500); }

.demo-name {
  font-family: var(--font-mono);
  font-size: 0.95rem;
  color: var(--amber);
}

.demo-caption {
  margin-left: auto;
  font-size: 0.82rem;
  color: var(--slate-400);
}

.desk {
  display: grid;
  grid-template-columns: 3fr 2.4fr;
  gap: clamp(0.7rem, 2vw, 1.2rem);
  align-items: end;
}

.monitor {
  border: 1px solid var(--g-700);
  border-radius: var(--radius-m);
  background: var(--g-850);
  padding: 4px;
}

.screen {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: calc(var(--radius-m) - 2px);
  background:
    radial-gradient(120% 90% at 50% 0%, #1d2127 0%, #171a1f 60%);
  overflow: hidden;
}

.monitor-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  color: var(--g-500);
  padding-top: 0.35rem;
  letter-spacing: 0.04em;
}

/* windows inside the screens */
.win {
  position: absolute;
  border: 1px solid var(--g-700);
  border-radius: var(--radius-s);
  background: var(--g-900);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
  overflow: hidden;
  transition:
    top 480ms cubic-bezier(0.22, 0.9, 0.24, 1),
    left 480ms cubic-bezier(0.22, 0.9, 0.24, 1),
    width 480ms cubic-bezier(0.22, 0.9, 0.24, 1),
    height 480ms cubic-bezier(0.22, 0.9, 0.24, 1),
    opacity 300ms ease,
    transform 480ms cubic-bezier(0.22, 0.9, 0.24, 1);
}

.win .bar {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.28em 0.55em;
  border-bottom: 1px solid var(--g-700);
  background: color-mix(in srgb, var(--g-850) 80%, black 6%);
  font-family: var(--font-mono);
  font-size: clamp(0.5rem, 1.1vw, 0.68rem);
  color: var(--slate-400);
  white-space: nowrap;
  overflow: hidden;
}

.win .bar .glyphs {
  margin-left: auto;
  letter-spacing: 0.25em;
  color: var(--g-500);
  font-size: 0.85em;
}

.win .body { position: absolute; inset: auto 0 0 0; top: 1.55em; }

/* faint content lines so windows read as apps, not boxes */
.win .body::before {
  content: "";
  position: absolute;
  inset: 12% 14% auto 8%;
  height: 55%;
  background:
    repeating-linear-gradient(
      180deg,
      var(--g-700) 0 2px,
      transparent 2px 26%
    );
  opacity: 0.5;
}

.win.profile .bar { color: var(--amber); }
.win.profile .bar::before {
  content: "";
  width: 0.62em; height: 0.62em;
  border-radius: 50%;
  background: var(--amber);
  flex: none;
}

.win.minimized {
  opacity: 0;
  transform: translateY(46%) scale(0.6);
  pointer-events: none;
}

/* taskbar strip under each screen */
.taskbar {
  position: absolute;
  left: 4px; right: 4px; bottom: 4px;
  height: 7%;
  min-height: 12px;
  z-index: 30; /* the taskbar always sits above windows, like the real one */
  border-radius: 2px;
  background: color-mix(in srgb, var(--g-900) 75%, black 10%);
  border: 1px solid color-mix(in srgb, var(--g-700) 70%, transparent);
  display: flex;
  align-items: center;
  gap: 4px;
  padding-inline: 6px;
}
.taskbar i {
  width: 9%;
  max-width: 26px;
  height: 55%;
  border-radius: 1px;
  background: var(--g-700);
  transition: background-color 300ms ease;
}
.taskbar i.lit { background: var(--g-500); }

/* workflow pills */
.scene-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.1rem;
}

.scene-tab {
  font-family: var(--font-mono);
  font-size: 0.82rem;
  color: var(--slate-400);
  background: transparent;
  border: 1px solid var(--g-700);
  border-radius: var(--radius-s);
  padding: 0.32rem 0.75rem;
  cursor: pointer;
  transition: color 150ms ease, border-color 150ms ease, background-color 150ms ease;
}
.scene-tab:hover { color: var(--paper); }
.scene-tab[aria-pressed="true"] {
  color: var(--g-950);
  background: var(--amber);
  border-color: var(--amber);
  font-weight: 600;
}

/* ---------- sections ---------- */

.section { padding-block: clamp(3rem, 8vw, 5rem); }
.section + .section { border-top: 1px solid var(--g-700); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber);
  margin: 0 0 0.9rem;
}

.section h2 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 620;
  font-size: clamp(1.5rem, 3.4vw, 2.2rem);
  line-height: 1.12;
  letter-spacing: -0.008em;
  margin: 0 0 1rem;
  max-width: 28ch;
}

.section > .shell > p, .section .prose p {
  color: var(--slate-400);
  max-width: var(--measure);
}
.section .prose strong, .section > .shell > p strong { color: var(--paper); }

/* what-it-does rows: definition list, no cards, no icons */
.does {
  margin: 2.2rem 0 0;
  display: grid;
  gap: 1.6rem;
}

.does > div {
  display: grid;
  grid-template-columns: minmax(11rem, 16rem) 1fr;
  gap: 0.4rem 2rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--g-700);
}

.does dt {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 600;
  font-size: 1.12rem;
  color: var(--paper);
}

.does dd {
  margin: 0;
  color: var(--slate-400);
  max-width: 58ch;
}
.does dd .combo { color: var(--paper); }

/* ---------- comparison table ---------- */

.compare-wrap { overflow-x: auto; margin-top: 2rem; }

table.compare {
  width: 100%;
  min-width: 40rem;
  border-collapse: collapse;
  font-size: 0.95rem;
}

table.compare th {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  text-align: left;
  color: var(--slate-400);
  font-weight: 500;
  padding: 0 1rem 0.7rem 0;
  border-bottom: 1px solid var(--g-500);
}
table.compare th:last-child { color: var(--amber); }

table.compare td {
  vertical-align: top;
  padding: 0.85rem 1rem 0.85rem 0;
  border-bottom: 1px solid var(--g-700);
  color: var(--slate-400);
  max-width: 34rem;
}
table.compare td:last-child { color: var(--paper); }

/* ---------- pricing ---------- */

.price-card {
  margin-top: 2.2rem;
  border: 1px solid var(--g-700);
  border-radius: var(--radius-m);
  background: linear-gradient(180deg, color-mix(in srgb, var(--g-900) 94%, white 2%), var(--g-900));
  padding: clamp(1.6rem, 4vw, 2.4rem);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.4rem 2.5rem;
  align-items: center;
  max-width: 46rem;
}

.price-card h3 {
  font-family: var(--font-display);
  font-stretch: 112%;
  font-weight: 620;
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.price-card ul {
  margin: 0; padding: 0;
  list-style: none;
  color: var(--slate-400);
  font-size: 0.95rem;
  display: grid;
  gap: 0.3rem;
}
.price-card ul li::before { content: "— "; color: var(--amber); }

.price-figure { text-align: right; }

.price-amount {
  font-family: var(--font-display);
  font-stretch: 120%;
  font-weight: 680;
  font-size: clamp(2.6rem, 6vw, 3.4rem);
  line-height: 1;
  letter-spacing: -0.015em;
}
.price-amount sup {
  font-size: 0.42em;
  font-stretch: 100%;
  font-weight: 500;
  color: var(--slate-400);
  margin-right: 0.12em;
}

.price-kind {
  font-size: 0.85rem;
  color: var(--slate-400);
  margin: 0.3rem 0 1rem;
}

.checkout-note {
  grid-column: 1 / -1;
  font-size: 0.82rem;
  color: var(--slate-400);
  border-top: 1px solid var(--g-700);
  padding-top: 1rem;
  margin: 0;
}

/* ---------- FAQ ---------- */

.faq { max-width: var(--measure); margin-top: 1.6rem; }

.faq details {
  border-top: 1px solid var(--g-700);
  padding-block: 0.25rem;
}
.faq details:last-child { border-bottom: 1px solid var(--g-700); }

.faq summary {
  cursor: pointer;
  font-weight: 600;
  padding-block: 0.85rem;
  list-style: none;
  display: flex;
  align-items: baseline;
  gap: 0.8rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "+";
  font-family: var(--font-mono);
  color: var(--amber);
  flex: none;
  transition: transform 150ms ease;
}
.faq details[open] summary::before { content: "–"; }

.faq details p {
  margin: 0 0 1.1rem;
  padding-left: 1.55rem;
  color: var(--slate-400);
}
.faq details a { color: var(--paper); }

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

.site-footer {
  border-top: 1px solid var(--g-700);
  padding-block: 2.2rem 2.8rem;
  font-size: 0.88rem;
  color: var(--slate-400);
}

.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem 2rem;
  align-items: baseline;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  margin-left: auto;
}
.site-footer a { color: var(--slate-400); text-decoration: none; }
.site-footer a:hover { color: var(--paper); }

/* ---------- legal article pages ---------- */

.legal {
  padding-block: clamp(2.5rem, 6vw, 4rem);
  max-width: 46rem;
}

.legal h1 {
  font-family: var(--font-display);
  font-stretch: 114%;
  font-weight: 640;
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  line-height: 1.1;
  margin: 0 0 0.4rem;
}

.legal .updated {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--slate-400);
  margin-bottom: 2.2rem;
}

.legal h2 {
  font-family: var(--font-display);
  font-stretch: 110%;
  font-weight: 620;
  font-size: 1.18rem;
  margin: 2.2rem 0 0.6rem;
}

.legal p, .legal li { color: var(--slate-400); }
.legal strong { color: var(--paper); }
.legal ul { padding-left: 1.2rem; }

/* ---------- toast (checkout-not-live fallback) ---------- */

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.6rem;
  transform: translate(-50%, 0.5rem);
  background: var(--g-850);
  border: 1px solid var(--g-700);
  border-left: 3px solid var(--amber);
  border-radius: var(--radius-s);
  color: var(--paper);
  font-size: 0.92rem;
  padding: 0.7rem 1.1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease, transform 200ms ease;
  z-index: 60;
  max-width: min(92vw, 30rem);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- responsive ---------- */

@media (max-width: 860px) {
  .desk { grid-template-columns: 1fr; align-items: start; }
  .demo-caption { display: none; }
  .does > div { grid-template-columns: 1fr; }
  .price-card { grid-template-columns: 1fr; }
  .price-figure { text-align: left; }
}

@media (max-width: 560px) {
  .site-nav a:not(.btn) { display: none; }
  .hero h1 { max-width: 15ch; }
}

/* ---------- reduced motion ---------- */

@media (prefers-reduced-motion: reduce) {
  .win, .btn, kbd.key, .scene-tab, .taskbar i { transition: none; }
}
