/*
 * VTerminal project page.
 *
 * Structure, typography and section rhythm come from veviad.com's
 * src/styles/global.css — Anton headings over Inter body, the same `.shell`
 * measure, eyebrow/heading/lead triplet, and the same component shapes
 * (`.why-list`, `.lifecycle`, `.feature-grid`, `.package-card`).
 *
 * The PALETTE does not. Every colour below is VTerminal's own default theme,
 * "Veviad Developer UI" (`@theme` in src/app.css) — near-black surfaces with a
 * single emerald accent — so the page and the product it ships look like one
 * thing. That is also why the page alternates three near-blacks rather than
 * white/grey/indigo: on a dark page the section rhythm has to come from small
 * surface steps plus borders, since shadows are invisible on black.
 *
 * The `.mock` block keeps its own scoped copy of those tokens on purpose. It
 * reproduces the app's UI, so it must stay pinned to the app's values even if
 * the page's ever drift.
 */

@font-face {
  font-family: "Anton";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/anton-regular.ttf") format("truetype");
}

@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA,
    U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193,
    U+2212, U+2215, U+FEFF, U+FFFD;
}

/* Regular only — nothing sets a bold weight in mono, and synthesis is off. */
@font-face {
  font-family: "JetBrains Mono";
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url("fonts/JetBrainsMono-Regular.woff2") format("woff2");
}

:root {
  /* Verbatim from src/app.css @theme — the app's default theme. */
  --bg: #09090b;
  --bg-2: #0f0f12;
  --bg-card: #18181b;
  --bg-hover: #1f1f23;
  --bg-elevated: #27272a;
  --bg-terminal: #0a0a0c;
  --accent: #10b981;
  --accent-hover: #059669;
  --accent-subtle: rgba(16, 185, 129, 0.1);
  --text: #fafafa;
  --text-2: #a1a1aa;
  /* text-3 is held at >= 4.5:1 on bg / bg-2 / bg-card (4.54 on card). It lands
     3.82 on bg-elevated, so raised surfaces use --text-2 instead — the same
     rule the app documents for its own --color-text-muted. */
  --text-3: #82828d;
  --line: #27272a;
  --line-soft: #1c1c1f;
  --danger: #f04a4a;
  --warning: #f59e0b;
  --selection: rgba(16, 185, 129, 0.25);

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 28px;
  --header-height: 72px;
  --shell: 1180px;
  --section-space: clamp(4.75rem, 8vw, 7.25rem);
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: var(--header-height);
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: clip;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter Variable", "Inter", system-ui, -apple-system,
    BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.menu-open {
  overflow: hidden;
}

::selection {
  background: var(--selection);
  color: var(--text);
}

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

button {
  color: inherit;
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

a {
  color: var(--accent);
  text-underline-offset: 0.18em;
}

/* Hover lifts to white rather than to --accent-hover: that value is a step
   DARKER, which is a step towards the background on a dark page. */
a:hover {
  color: var(--text);
}

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

:is(h1, h2, h3, h4, h5, h6) {
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-weight: 400;
  font-synthesis: none;
  letter-spacing: 0;
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 0.75rem;
  left: 0.75rem;
  translate: 0 -180%;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font-weight: 750;
  padding: 0.7rem 1rem;
  text-decoration: none;
  transition: translate 0.15s ease;
}

.skip-link:focus {
  translate: 0;
}

.shell {
  width: min(calc(100% - 3.5rem), var(--shell));
  margin-inline: auto;
}

.section {
  padding-block: var(--section-space);
}

/* The three-step surface rhythm: bg → bg-2 → bg-card. Each band also gets a
   hairline top border, because a 6-unit lightness step alone does not read as
   an edge on a dark screen. */
.section-soft {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
}

.section-dark {
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-card);
}

.section-dark::before {
  position: absolute;
  inset: -18rem auto auto 50%;
  width: 52rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.13), transparent 68%);
  content: "";
  pointer-events: none;
  translate: -50% 0;
}

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

.section-heading {
  max-width: 50rem;
  margin: 0;
  color: var(--text);
  font-size: clamp(2rem, 4vw, 3.15rem);
  letter-spacing: -0.038em;
  line-height: 1.08;
  text-wrap: balance;
}

.section-heading-wide {
  max-width: none;
}

.section-lead {
  max-width: 44rem;
  margin: 1.1rem 0 0;
  color: var(--text-2);
  font-size: clamp(1rem, 1.8vw, 1.1rem);
  line-height: 1.75;
}

.button {
  display: inline-flex;
  min-height: 2.8rem;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  font-weight: 760;
  line-height: 1.2;
  padding: 0.82rem 1.4rem;
  text-align: center;
  text-decoration: none;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease,
    translate 0.16s ease;
}

.button:hover {
  translate: 0 -1px;
}

/* Accent fill takes bg-primary text, as the app does (`bg-accent
   text-bg-primary`, ui/Segmented.tsx) — not white, which reads at 2.5:1. */
.button-primary {
  background: var(--accent);
  color: var(--bg);
}

.button-primary:hover {
  background: #34d399;
  color: var(--bg);
}

.button-secondary {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-secondary:hover {
  border-color: var(--text-3);
  background: var(--bg-hover);
  color: var(--text);
}

.button-outline {
  border-color: var(--line);
  background: transparent;
  color: var(--text);
}

.button-outline:hover {
  border-color: var(--accent);
  color: var(--text);
}

.ui-icon {
  width: 1.2rem;
  height: 1.2rem;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

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

.site-header {
  position: sticky;
  z-index: 100;
  top: 0;
  border-bottom: 1px solid var(--line-soft);
  background: rgba(9, 9, 11, 0.86);
  backdrop-filter: blur(18px);
}

.header-inner {
  display: flex;
  width: min(calc(100% - 3.5rem), var(--shell));
  height: var(--header-height);
  align-items: center;
  gap: 2rem;
  margin-inline: auto;
}

.brand-link {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.85rem;
}

/* The app's own icon, not the Veviad corporate lockup: this is a product page,
   and the icon is what the reader already has in their Dock. It doubles as the
   favicon, so the page ships one file for both. */
.brand-mark {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
}

.brand-product {
  color: var(--text);
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: 1.15rem;
  letter-spacing: 0.01em;
  line-height: 1;
}

.desktop-nav {
  display: flex;
  align-items: center;
  gap: clamp(1rem, 2vw, 1.75rem);
  margin-left: auto;
}

.desktop-nav a {
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-nav a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.75rem;
}

.header-cta {
  min-height: 2.45rem;
  font-size: 0.84rem;
  padding: 0.68rem 1.12rem;
}

.menu-toggle {
  display: none;
  width: 2.75rem;
  height: 2.75rem;
  place-content: center;
  gap: 0.25rem;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--bg-card);
  cursor: pointer;
}

.menu-toggle span {
  width: 1.1rem;
  height: 2px;
  border-radius: 2px;
  background: var(--text);
}

.mobile-menu {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-card);
}

.mobile-menu[hidden] {
  display: none;
}

.mobile-menu nav {
  display: grid;
  width: min(calc(100% - 2rem), var(--shell));
  gap: 0.25rem;
  margin-inline: auto;
  padding-block: 0.75rem 1.25rem;
}

.mobile-menu nav > a:not(.button) {
  border-radius: var(--radius-sm);
  color: var(--text-2);
  font-weight: 680;
  padding: 0.75rem;
  text-decoration: none;
}

.mobile-menu nav > a:not(.button):hover {
  background: var(--bg-hover);
  color: var(--text);
}

.mobile-menu-actions {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.55rem;
}

.mobile-menu-actions .button {
  width: 100%;
  font-size: 0.88rem;
}

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

.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before,
.hero::after {
  position: absolute;
  left: 50%;
  border-radius: 50%;
  content: "";
  pointer-events: none;
  translate: -50% 0;
}

/* One accent glow and one neutral lift. A second hue would be the only colour
   on the page outside the theme's black-plus-emerald. */
.hero::before {
  top: -20rem;
  width: 58rem;
  height: 40rem;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.17), transparent 68%);
}

.hero::after {
  bottom: -16rem;
  width: 72rem;
  height: 34rem;
  background: radial-gradient(circle, rgba(250, 250, 250, 0.055), transparent 70%);
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding-block: clamp(5.25rem, 10vw, 7.5rem) clamp(8rem, 12vw, 10rem);
  text-align: center;
}

.announcement {
  display: inline-flex;
  max-width: 100%;
  align-items: center;
  gap: 0.6rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.8rem;
  font-weight: 720;
  padding: 0.3rem 0.65rem 0.3rem 0.32rem;
  text-decoration: none;
  transition: border-color 0.16s ease, background 0.16s ease;
}

.announcement:hover {
  border-color: rgba(16, 185, 129, 0.55);
  background: var(--bg-hover);
  color: var(--text);
}

.announcement-badge {
  border-radius: 999px;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.64rem;
  font-weight: 840;
  letter-spacing: 0.08em;
  line-height: 1;
  padding: 0.42rem 0.56rem;
  text-transform: uppercase;
}

.announcement-label {
  white-space: nowrap;
}

.announcement .ui-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--accent);
  transition: translate 0.16s ease;
}

.announcement:hover .ui-icon {
  translate: 2px 0;
}

.hero h1 {
  max-width: 55rem;
  margin: 1.8rem auto 1.3rem;
  color: var(--text);
  font-size: clamp(2.55rem, 6vw, 4.65rem);
  letter-spacing: -0.055em;
  line-height: 1.02;
  text-wrap: balance;
}

.hero h1 em {
  color: var(--accent);
  font-style: normal;
}

.hero-copy {
  max-width: 43rem;
  margin: 0 auto;
  color: var(--text-2);
  font-size: clamp(1.02rem, 2vw, 1.18rem);
  line-height: 1.75;
  text-wrap: pretty;
}

.hero-copy strong {
  color: var(--text);
  font-weight: 720;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
  margin-top: 2.1rem;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.55rem 1.55rem;
  margin: 1.15rem 0 0;
  color: var(--text-3);
  font-size: 0.82rem;
  list-style: none;
  padding: 0;
}

.hero-proof li {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.hero-proof .ui-icon {
  width: 0.9rem;
  height: 0.9rem;
  color: var(--accent);
}

/* -------------------------------------------------------------- the mock */

.dashboard-bridge {
  position: relative;
  z-index: 2;
  margin-top: clamp(-8rem, -9vw, -6rem);
}

/*
 * The page and the app now share a palette, so the frame cannot rely on a
 * light/dark contrast to read as a separate surface. A hairline border, a
 * faint accent ring and a deep shadow do that job instead — and the app's
 * terminal bg (#0a0a0c) is a shade below the page's (#09090b), which is the
 * same relationship you see running the real thing.
 */
.dashboard-frame {
  max-width: 68rem;
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 1.1rem;
  background: var(--bg-terminal);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.08),
    0 40px 90px rgba(0, 0, 0, 0.72), 0 12px 30px rgba(0, 0, 0, 0.5);
  text-align: left;
}

/*
 * Scoped copy of src/app.css's @theme. Kept separate from the page tokens
 * above so the mock stays pinned to the app's real values.
 *
 * Every length inside is in `em` so the whole composition scales from the one
 * font-size below — that is what makes it read as a screenshot rather than as
 * page furniture that reflows on its own.
 */
.mock {
  --m-bg: #09090b;
  --m-bg-2: #0f0f12;
  --m-bg-card: #18181b;
  --m-bg-elevated: #27272a;
  --m-term: #0a0a0c;
  --m-accent: #10b981;
  --m-text: #fafafa;
  --m-text-2: #a1a1aa;
  --m-text-3: #82828d;
  --m-border: #27272a;
  --m-border-soft: #1c1c1f;
  --m-error: #f04a4a;
  --m-warning: #f59e0b;
  font-family: var(--mono);
  font-size: clamp(0.5rem, 0.93vw, 0.72rem);
  font-synthesis-weight: none;
  line-height: 1.55;
}

.mock-chrome {
  display: flex;
  align-items: center;
  gap: 1em;
  border-bottom: 1px solid var(--m-border-soft);
  background: var(--m-bg-2);
  padding: 0.85em 1.1em;
}

.mock-lights {
  display: flex;
  flex: 0 0 auto;
  gap: 0.55em;
}

.mock-lights span {
  width: 0.85em;
  height: 0.85em;
  border-radius: 50%;
}

.mock-lights span:nth-child(1) {
  background: #ff5f57;
}

.mock-lights span:nth-child(2) {
  background: #febc2e;
}

.mock-lights span:nth-child(3) {
  background: #28c840;
}

.mock-tabs {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.4em;
}

.mock-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.5em;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 0.5em;
  color: var(--m-text-3);
  padding: 0.35em 0.75em;
  white-space: nowrap;
}

.mock-tab.is-active {
  border-color: var(--m-border);
  background: var(--m-bg-card);
  color: var(--m-text);
}

.mock-tab::before {
  width: 0.42em;
  height: 0.42em;
  flex: 0 0 auto;
  border-radius: 50%;
  background: currentColor;
  content: "";
  opacity: 0.55;
}

.mock-tab.is-active::before {
  background: var(--m-accent);
  opacity: 1;
}

.mock-body {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.62fr);
  align-items: stretch;
}

.mock-term {
  display: grid;
  align-content: start;
  gap: 1.15em;
  min-width: 0;
  background: var(--m-term);
  padding: 1.35em 1.4em;
}

/* Command block: gutter rail + exit badge, as BlockGutter draws it. */
.mock-block {
  position: relative;
  display: grid;
  gap: 0.5em;
  border-left: 2px solid var(--m-border);
  padding-left: 1.05em;
}

.mock-block.is-ok {
  border-left-color: var(--m-accent);
}

.mock-block.is-fail {
  border-left-color: var(--m-error);
}

.mock-block-head {
  display: flex;
  align-items: center;
  gap: 0.7em;
  color: var(--m-text-3);
}

.mock-cwd {
  color: var(--m-accent);
}

.mock-branch {
  color: var(--m-text-3);
}

.mock-badge {
  display: inline-flex;
  min-width: 1.7em;
  align-items: center;
  justify-content: center;
  gap: 0.3em;
  margin-left: auto;
  border-radius: 0.45em;
  padding: 0.1em 0.45em;
}

.mock-badge.is-ok {
  background: rgba(16, 185, 129, 0.14);
  color: var(--m-accent);
}

.mock-badge.is-fail {
  background: rgba(240, 74, 74, 0.14);
  color: var(--m-error);
}

.mock-cmd {
  display: flex;
  gap: 0.6em;
  color: var(--m-text);
}

.mock-cmd::before {
  color: var(--m-accent);
  content: "\276F";
}

.mock-out {
  display: grid;
  gap: 0.1em;
  color: var(--m-text-2);
  white-space: pre-wrap;
  word-break: break-word;
}

.mock-out .is-dim {
  color: var(--m-text-3);
}

.mock-out .is-ok {
  color: var(--m-accent);
}

.mock-out .is-fail {
  color: var(--m-error);
}

.mock-caret {
  display: inline-block;
  width: 0.55em;
  height: 1.05em;
  background: var(--m-accent);
  translate: 0 0.18em;
}

/* AI panel */
.mock-ai {
  display: grid;
  align-content: start;
  gap: 0.9em;
  border-left: 1px solid var(--m-border);
  background: var(--m-bg);
  padding: 1.2em 1.15em;
}

.mock-ai-head {
  display: flex;
  align-items: center;
  gap: 0.6em;
  color: var(--m-text-3);
}

.mock-ai-title {
  color: var(--m-text);
  font-family: "Inter Variable", system-ui, sans-serif;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.mock-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  border: 1px solid var(--m-border);
  border-radius: 999px;
  color: var(--m-text-2);
  font-size: 0.88em;
  padding: 0.15em 0.6em;
}

.mock-chip.is-accent {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.1);
  color: var(--m-accent);
}

.mock-ai-head .mock-chip:first-of-type {
  margin-left: auto;
}

.mock-turn {
  display: grid;
  gap: 0.35em;
}

.mock-turn-user {
  border-radius: 0.6em;
  background: var(--m-bg-card);
  color: var(--m-text);
  padding: 0.6em 0.75em;
}

.mock-think {
  display: inline-flex;
  align-items: center;
  gap: 0.45em;
  color: var(--m-text-3);
}

.mock-think::before {
  content: "\25B8";
}

.mock-answer {
  color: var(--m-text-2);
  font-family: "Inter Variable", system-ui, sans-serif;
  font-size: 1.05em;
  line-height: 1.6;
}

.mock code {
  background: var(--m-bg-elevated);
  color: var(--m-text);
  font-family: var(--mono);
}

/* The approval gate — two independent axes, then the buttons. */
.mock-approval {
  display: grid;
  gap: 0.7em;
  border: 1px solid var(--m-border);
  border-radius: 0.7em;
  background: var(--m-bg-card);
  padding: 0.85em;
}

.mock-approval-label {
  display: flex;
  align-items: center;
  gap: 0.45em;
  color: var(--m-warning);
  font-size: 0.9em;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.mock-approval-cmd {
  overflow-x: auto;
  border-radius: 0.45em;
  background: var(--m-term);
  color: var(--m-text);
  padding: 0.6em 0.7em;
  white-space: pre;
}

.mock-axes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4em;
}

.mock-axis {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  border-radius: 0.4em;
  font-size: 0.9em;
  padding: 0.2em 0.5em;
}

.mock-axis.is-write {
  background: rgba(245, 158, 11, 0.14);
  color: var(--m-warning);
}

.mock-axis.is-net {
  background: rgba(240, 74, 74, 0.13);
  color: var(--m-error);
}

.mock-actions {
  display: flex;
  gap: 0.4em;
}

.mock-action {
  border-radius: 0.45em;
  background: var(--m-bg-elevated);
  color: var(--m-text-2);
  padding: 0.35em 0.7em;
}

.mock-action.is-primary {
  background: var(--m-accent);
  color: var(--m-bg);
}

.mock-approval-note {
  color: var(--m-text-3);
  font-size: 0.9em;
}

/* The permission-mode control is a `Segmented` (ui/Segmented.tsx):
   border-subtle over bg-card, inactive segments at text-muted, and the ACTIVE
   one a filled accent pill — `auto_all` filling with warning instead. */
.mock-modes {
  display: flex;
  gap: 0.3em;
  border: 1px solid var(--m-border-soft);
  border-radius: 0.55em;
  background: var(--m-bg-card);
  padding: 0.25em;
}

.mock-mode {
  flex: 1 1 0;
  border-radius: 0.4em;
  color: var(--m-text-3);
  padding: 0.3em 0.4em;
  text-align: center;
}

.mock-mode.is-active {
  background: var(--m-accent);
  color: var(--m-bg);
}

.mock-status {
  display: flex;
  align-items: center;
  gap: 1em;
  border-top: 1px solid var(--m-border-soft);
  background: var(--m-bg-2);
  color: var(--m-text-3);
  padding: 0.6em 1.1em;
}

.mock-status .mock-status-right {
  display: flex;
  gap: 1em;
  margin-left: auto;
}

.mock-key {
  border: 1px solid var(--m-border);
  border-radius: 0.35em;
  color: var(--m-text-2);
  padding: 0.05em 0.4em;
}

.mock-caption {
  max-width: 42rem;
  margin: 1.1rem auto 0;
  color: var(--text-3);
  font-size: 0.78rem;
  text-align: center;
}

/* --------------------------------------------------------- audience band */

.audience-band {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.9rem;
  margin-top: clamp(1.5rem, 3vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: 1.15rem 1.25rem 1.25rem;
  text-align: center;
}

.audience-band h2 {
  margin: 0;
  color: var(--text-3);
  font-family: "Inter Variable", system-ui, sans-serif;
  font-size: 0.75rem;
  font-weight: 780;
  letter-spacing: 0.14em;
  line-height: 1.45;
  text-transform: uppercase;
}

.audience-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  width: 100%;
  margin: 0;
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 680;
  list-style: none;
  padding: 0;
}

.audience-list li {
  display: flex;
  min-width: 0;
  min-height: 2.85rem;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  border: 1px solid var(--line-soft);
  border-radius: 0.85rem;
  background: var(--bg-2);
  line-height: 1.3;
  padding: 0.65rem 0.75rem;
}

.audience-list li::before {
  width: 0.42rem;
  height: 0.42rem;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.12);
  content: "";
}

/* -------------------------------------------------------------------- why */

.why-section {
  position: relative;
  overflow: hidden;
  padding-top: clamp(4.25rem, 7vw, 6rem);
}

.why-section::before {
  position: absolute;
  top: -15rem;
  right: -13rem;
  width: 32rem;
  height: 32rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.09), transparent 68%);
  content: "";
  pointer-events: none;
}

.why-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.22fr);
  align-items: start;
  gap: clamp(3rem, 7vw, 7rem);
}

.why-intro {
  padding-top: 0.7rem;
}

.why-list {
  display: grid;
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  list-style: none;
  padding: 0;
}

.why-list > li:not(:last-child) {
  border-bottom: 1px solid var(--line-soft);
}

.why-item {
  display: grid;
  grid-template-columns: 2.75rem minmax(0, 1fr);
  gap: 1.15rem;
  padding: clamp(1.4rem, 2.5vw, 1.9rem);
}

.why-item-number {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border: 1px solid rgba(16, 185, 129, 0.28);
  border-radius: 50%;
  background: var(--accent-subtle);
  color: var(--accent);
  font-size: 0.68rem;
  font-weight: 820;
  letter-spacing: 0.06em;
}

.why-item-origin {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
  color: var(--text-3);
  font-size: 0.76rem;
  font-weight: 700;
}

.why-item-origin span {
  color: var(--text-3);
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.why-item-result {
  display: flex;
  align-items: center;
  gap: 0.55rem;
}

.why-item-icon {
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
}

.why-item-icon .ui-icon {
  width: 0.85rem;
  height: 0.85rem;
  stroke-width: 2.5;
}

.why-item h3 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.08rem, 2vw, 1.3rem);
  letter-spacing: -0.018em;
  line-height: 1.25;
}

.why-item-copy {
  margin: 0.65rem 0 0;
  color: var(--text-2);
  font-size: 0.9rem;
}

/* --------------------------------------------------------------- features */

.lifecycle-header {
  display: grid;
  gap: 2.25rem;
  margin-bottom: 3rem;
}

.lifecycle {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  list-style: none;
  padding: 1.2rem 1rem 1.1rem;
}

.lifecycle::before {
  position: absolute;
  z-index: 0;
  top: 2.43rem;
  right: 12.5%;
  left: 12.5%;
  height: 2px;
  background: linear-gradient(
    90deg,
    var(--line),
    rgba(16, 185, 129, 0.75)
  );
  content: "";
}

.lifecycle li {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  color: var(--text-2);
  font-size: 0.84rem;
  font-weight: 760;
  text-align: center;
}

/* The ring is the CARD colour, not white — it exists to punch a hole in the
   connector line behind each number. */
.lifecycle-number {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border: 3px solid var(--bg-card);
  border-radius: 50%;
  background: var(--bg-elevated);
  box-shadow: 0 0 0 1px var(--line);
  color: var(--text);
  font-size: 0.68rem;
  font-weight: 780;
  letter-spacing: 0.04em;
}

.lifecycle li:last-child .lifecycle-number {
  background: var(--accent);
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.5);
  color: var(--bg);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.feature-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: 1.65rem;
}

.feature-icon,
.security-icon {
  display: grid;
  width: 2.55rem;
  height: 2.55rem;
  place-items: center;
  margin-bottom: 1rem;
  border-radius: 0.8rem;
  background: var(--accent-subtle);
  color: var(--accent);
}

.feature-card h3 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1.05rem;
}

.feature-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
}

.feature-card code,
.feature-card kbd {
  font-size: 0.86em;
}

/* ---------------------------------------------------------------- the AI */

.assistant-layout {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.assistant-control {
  margin-top: 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  padding: 1.3rem;
}

.assistant-control h3 {
  margin: 0 0 0.7rem;
  color: var(--accent);
  font-size: 0.92rem;
}

.assistant-control p {
  margin: 0.4rem 0;
  color: var(--text-2);
  font-size: 0.88rem;
}

.assistant-control strong {
  color: var(--text);
  font-weight: 720;
}

.assistant-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

/* Inside .section-dark (bg-card), cards step DOWN to bg-2 rather than up —
   there is no lighter surface left that keeps text-2 above 4.5:1. */
.assistant-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-2);
  padding: 1.5rem;
}

.assistant-card h3 {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1rem;
}

.assistant-card p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.88rem;
}

/* -------------------------------------------------------------- security */

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin: 2.2rem 0 3rem;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 740;
  padding: 0.6rem 0.9rem;
}

.trust-badge .ui-icon {
  width: 1rem;
  height: 1rem;
  color: var(--accent);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
}

.security-item {
  min-width: 0;
  border-top: 1px solid var(--line);
  padding: 1rem 0;
}

.security-item h3 {
  margin: 0 0 0.55rem;
  color: var(--text);
  font-size: 1.02rem;
}

.security-item p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.9rem;
}

/*
 * The README's "safety rail, not a sandbox" warning. Deliberately the loudest
 * element in this section — the app's own copy is test-pinned to make that
 * promise, so the page must not soften it.
 */
.callout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 1rem;
  margin-top: 2.5rem;
  border: 1px solid rgba(240, 74, 74, 0.32);
  border-radius: var(--radius-md);
  background: rgba(240, 74, 74, 0.07);
  padding: 1.25rem 1.35rem;
}

.callout-icon {
  display: grid;
  width: 2.1rem;
  height: 2.1rem;
  place-items: center;
  border-radius: 50%;
  background: rgba(240, 74, 74, 0.14);
  color: var(--danger);
}

.callout h3 {
  margin: 0 0 0.4rem;
  color: var(--danger);
  font-size: 1rem;
}

.callout p {
  margin: 0;
  color: var(--text-2);
  font-size: 0.88rem;
  line-height: 1.65;
}

/* ---------------------------------------------------------------- models */

.plans-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 1rem;
  margin-top: 3.25rem;
}

.package-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: 1.55rem;
}

.package-card.is-featured {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 42px rgba(16, 185, 129, 0.12);
}

/* The "inverted" card in the light original. On a dark page the equivalent
   emphasis is a step UP to bg-elevated — where text-3 drops to 3.82:1, so its
   dimmed copy is overridden to text-2 below. */
.package-card.is-enterprise {
  border-color: var(--bg-elevated);
  background: var(--bg-elevated);
}

.package-card__meta {
  display: grid;
  min-height: 2.4rem;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 0.5rem;
}

.package-card__kicker {
  margin: 0;
  color: var(--text-3);
  font-size: 0.65rem;
  font-weight: 810;
  letter-spacing: 0.1em;
  line-height: 1.4;
  text-transform: uppercase;
}

.package-card__badge {
  display: inline-flex;
  align-items: center;
  margin: -0.15rem 0 0;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.16);
  color: var(--accent);
  font-size: 0.67rem;
  font-weight: 820;
  letter-spacing: 0.08em;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.package-card__title {
  margin: 0.25rem 0 0.7rem;
  color: var(--text);
  font-size: 1.45rem;
  line-height: 1.1;
}

.package-card__description {
  min-height: 4.5rem;
  margin: 0 0 1rem;
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.58;
}

.package-card.is-enterprise
  :is(.package-card__kicker, .package-card__note) {
  color: var(--text-2);
}

.package-card ul {
  display: grid;
  gap: 0.68rem;
  margin: 0 0 1.15rem;
  color: var(--text-2);
  font-size: 0.82rem;
  list-style: none;
  padding: 0;
}

.package-card li {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.5rem;
}

.package-card li > .ui-icon {
  width: 1rem;
  height: 1rem;
  margin-top: 0.05rem;
  color: var(--accent);
}

.package-card__note {
  margin: auto -1.55rem -1.55rem;
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  color: var(--text-3);
  font-size: 0.74rem;
  line-height: 1.5;
  padding: 0.75rem 1.55rem;
}

.package-card.is-enterprise .package-card__note {
  border-color: rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.25);
}

.package-card strong {
  color: var(--text);
  font-weight: 720;
}

.plans-note {
  margin: 1.5rem auto 0;
  color: var(--text-2);
  font-size: 0.86rem;
  text-align: center;
}

/* --------------------------------------------------------------- install */

.install-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  align-items: start;
  gap: clamp(2rem, 6vw, 5rem);
}

.req-list {
  display: grid;
  margin: 1.75rem 0 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-2);
}

.req-row {
  display: grid;
  grid-template-columns: minmax(6rem, 0.4fr) minmax(0, 1fr);
  gap: 1rem;
  padding: 0.8rem 1.1rem;
}

.req-row:not(:last-child) {
  border-bottom: 1px solid var(--line-soft);
}

.req-row dt {
  color: var(--text);
  font-size: 0.82rem;
  font-weight: 750;
}

.req-row dd {
  margin: 0;
  color: var(--text-2);
  font-size: 0.82rem;
}

.steps {
  display: grid;
  gap: 1.5rem;
  margin: 0;
  list-style: none;
  padding: 0;
}

.step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1rem;
}

.step-number {
  display: grid;
  width: 1.85rem;
  height: 1.85rem;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: var(--bg);
  font-size: 0.75rem;
  font-weight: 820;
}

.step-body {
  min-width: 0;
}

.step-body h3 {
  margin: 0.1rem 0 0.45rem;
  color: var(--text);
  font-size: 1.02rem;
}

.step-body p {
  margin: 0 0 0.75rem;
  color: var(--text-2);
  font-size: 0.88rem;
}

.step-body p:last-child {
  margin-bottom: 0;
}

.step-body strong {
  color: var(--text);
  font-weight: 720;
}

/* Terminal bg, so a command block on the page matches a command block in the
   app — and stays distinct from the bg-card band it sits inside. */
.code-block {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-terminal);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.84rem;
  font-synthesis-weight: none;
  line-height: 1.7;
  padding: 0.8rem 3.4rem 0.8rem 0.95rem;
}

.code-block + .code-block {
  margin-top: 0.5rem;
}

.code-block::before {
  color: var(--accent);
  content: "$";
  flex: 0 0 auto;
  user-select: none;
}

/*
 * Wraps rather than scrolls. `white-space: pre` plus `overflow-x: auto` looked
 * fine until 375px, where `npm run tauri dev -- --features local-llm` (483px)
 * started scrolling inside a 297px box — and the copy button, being absolutely
 * positioned inside that scroll container, slid across the command text. The
 * reserved `padding-right` gutter applies to every wrapped line, so the button
 * now never overlaps. Nothing wraps above ~700px; the longest command is 605px
 * there.
 *
 * `min-width: 0` is what lets it wrap at all. As a flex item this defaults to
 * `min-width: auto`, so the box refused to shrink below the clone URL's
 * min-content width (314px in a 210px line) and overflowed instead — sliding
 * the copy button over the text.
 *
 * `break-word` is kept for the URL, which genuinely cannot fit on one line and
 * is fine to split. It is NOT trusted to place the other breaks: Blink splits
 * `--features` mid-token even though the line has spaces to break at, which
 * rendered the command as `-- --` then `features local-llm`. Where a mid-token
 * break would misread, the markup marks the unit `.nowrap` instead — explicit
 * and UA-independent, and it adds no characters, so the copied string is
 * unchanged.
 */
.code-block code {
  min-width: 0;
  background: none;
  color: inherit;
  font: inherit;
  padding: 0;
  white-space: pre-wrap;
  overflow-wrap: break-word;
}

.code-block .nowrap {
  white-space: nowrap;
}

.copy-button {
  position: absolute;
  top: 0.42rem;
  right: 0.42rem;
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 0.5rem;
  background: var(--bg-card);
  color: var(--text-2);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.copy-button:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.copy-button .ui-icon {
  width: 0.95rem;
  height: 0.95rem;
}

.copy-button[data-copied="true"] {
  border-color: rgba(16, 185, 129, 0.5);
  color: var(--accent);
}

.install-note {
  margin: 1.5rem 0 0;
  border-left: 2px solid var(--accent);
  color: var(--text-2);
  font-size: 0.86rem;
  line-height: 1.7;
  padding: 0.15rem 0 0.15rem 1rem;
}

/* -------------------------------------------------------------- keyboard */

.keys-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.6rem;
  margin: 2.5rem 0 0;
  list-style: none;
  padding: 0;
}

.keys-grid li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 0.7rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 0.82rem;
  padding: 0.7rem 0.85rem;
}

/* A shared min-width so the labels start on one line down the column —
   "⌘1…9" is otherwise half a chord wider than "⌘T" and left the list ragged. */
.keys-grid kbd {
  min-width: 3.15rem;
  flex: 0 0 auto;
  text-align: center;
}

kbd {
  border: 1px solid var(--line);
  border-radius: 0.4rem;
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.78rem;
  font-synthesis-weight: none;
  padding: 0.12rem 0.4rem;
  white-space: nowrap;
}

code {
  border-radius: 0.35rem;
  background: var(--bg-elevated);
  color: var(--text);
  font-family: var(--mono);
  font-size: 0.88em;
  font-synthesis-weight: none;
  padding: 0.1em 0.36em;
}

/* ------------------------------------------------------------------- CTA */

.cta-band {
  display: grid;
  justify-items: center;
  gap: 1.4rem;
  text-align: center;
}

.cta-band .section-heading,
.cta-band .section-lead {
  margin-inline: auto;
}

.cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.9rem;
}

/* ------------------------------------------------------------ legal page */

.header-back-link {
  margin-left: auto;
  color: var(--text-2);
  font-size: 0.88rem;
  font-weight: 650;
  text-decoration: none;
  white-space: nowrap;
}

.header-back-link:hover {
  color: var(--text);
}

.legal-main {
  min-height: calc(100vh - var(--header-height));
  padding-block: clamp(3rem, 7vw, 5.5rem);
}

.legal-doc {
  width: min(calc(100% - 3.5rem), 46rem);
  margin-inline: auto;
  overflow-wrap: break-word;
}

.legal-doc > h1 {
  margin: 0;
  color: var(--text);
  font-size: clamp(2.2rem, 5vw, 3.2rem);
  letter-spacing: -0.045em;
  line-height: 1.05;
}

.legal-updated {
  margin: 0.7rem 0 0;
  color: var(--text-3);
  font-size: 0.8rem;
}

.legal-toc {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 1.75rem 0 0;
  list-style: none;
  padding: 0;
}

.legal-toc a {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.45rem 0.85rem;
  text-decoration: none;
}

.legal-toc a:hover {
  border-color: var(--accent);
  color: var(--text);
}

.legal-block {
  margin-top: clamp(2.75rem, 6vw, 4rem);
}

.legal-block > h2 {
  margin: 0;
  color: var(--text);
  font-size: clamp(1.6rem, 3.4vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.12;
}

.legal-intro {
  margin: 0.9rem 0 0;
  color: var(--text-2);
  line-height: 1.75;
}

.legal-section {
  border-top: 1px solid var(--line-soft);
  padding-block: 1.35rem;
}

.legal-section h3 {
  margin: 0 0 0.6rem;
  color: var(--text);
  font-size: 1.02rem;
}

.legal-section p {
  margin: 0.6rem 0;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.75;
}

.legal-section ul {
  margin: 0.6rem 0;
  color: var(--text-2);
  font-size: 0.92rem;
  line-height: 1.7;
  padding-left: 1.1rem;
}

.legal-section li {
  margin: 0.35rem 0;
}

.legal-section li::marker {
  color: var(--accent);
}

/* Postal address and similar pre-formatted blocks. */
.legal-address {
  margin: 0.6rem 0;
  color: var(--text-2);
  font-size: 0.92rem;
  font-style: normal;
  line-height: 1.75;
}

.legal-note {
  margin-top: 1.35rem;
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  padding: 1.1rem 1.25rem;
}

.legal-note h3 {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0 0 0.45rem;
  color: var(--accent);
  font-size: 0.95rem;
}

.legal-note .ui-icon {
  width: 1rem;
  height: 1rem;
}

.legal-note p {
  margin: 0.45rem 0 0;
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.7;
}

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

.site-footer {
  border-top: 1px solid var(--line-soft);
  background: var(--bg-2);
  color: var(--text-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: minmax(15rem, 1.35fr) repeat(3, minmax(8rem, 0.75fr));
  gap: 2.5rem;
  padding-block: 4.5rem 3rem;
}

.footer-brand-row {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.footer-brand-row img {
  width: 2.1rem;
  height: 2.1rem;
}

.footer-brand-row span {
  color: var(--text);
  font-family: "Anton", "Arial Narrow", sans-serif;
  font-size: 1.15rem;
  line-height: 1;
}

.footer-brand p {
  max-width: 19rem;
  margin: 0 0 1.15rem;
  font-size: 0.85rem;
}

.site-footer h2 {
  margin: 0 0 0.9rem;
  color: var(--text);
  font-family: "Inter Variable", system-ui, sans-serif;
  font-size: 0.73rem;
  font-weight: 780;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.site-footer nav,
.site-footer .footer-grid > div:not(.footer-brand) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.55rem;
}

.site-footer a {
  color: var(--text-2);
  font-size: 0.84rem;
  text-decoration: none;
}

.site-footer a:hover {
  color: var(--text);
}

/* An inline link inside footer prose sits in text of the same colour, so the
   nav-link treatment above would leave it with no distinguishing feature at
   all. Underline it rather than rely on colour. */
.footer-brand p a,
.footer-bottom a {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
}

.social-link {
  display: inline-flex;
  width: 2.125rem;
  height: 2.125rem;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 0.5625rem;
  background: var(--bg-card);
  color: var(--text-2);
}

.social-link:hover {
  background: var(--bg-hover);
  color: var(--text);
}

.social-link + .social-link {
  margin-left: 0.45rem;
}

.social-link svg {
  width: 1rem;
  height: 1rem;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  border-top: 1px solid var(--line-soft);
  color: var(--text-3);
  padding-block: 1.5rem;
}

.footer-bottom small {
  font-size: 0.8125rem;
}

.footer-bottom sup {
  margin-left: 2px;
  font-size: 0.5625rem;
  line-height: 0;
  vertical-align: super;
}

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

@media (max-width: 1100px) {
  .plans-grid,
  .keys-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .plans-grid {
    row-gap: 1.5rem;
  }

  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1000px) {
  .desktop-nav,
  .header-cta {
    display: none;
  }

  .header-actions {
    margin-left: auto;
  }

  .menu-toggle {
    display: grid;
  }

  .assistant-layout,
  .install-layout,
  .why-layout {
    grid-template-columns: 1fr;
  }

  .why-layout {
    gap: 2.75rem;
  }

  .why-intro {
    max-width: 46rem;
    padding-top: 0;
  }

  .audience-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  :root {
    --header-height: 66px;
  }

  .shell,
  .header-inner {
    width: min(calc(100% - 2rem), var(--shell));
  }

  .feature-grid,
  .security-grid {
    grid-template-columns: 1fr;
  }

  /* The mock stacks: terminal above, AI panel below, both full width. */
  .mock-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .mock-ai {
    border-top: 1px solid var(--m-border);
    border-left: 0;
  }

  .mock {
    font-size: clamp(0.62rem, 2.1vw, 0.78rem);
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding-block: 4.5rem 5rem;
  }

  .hero h1 {
    font-size: clamp(2.35rem, 12vw, 3.3rem);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .button {
    width: 100%;
  }

  .hero-proof {
    align-items: center;
    flex-direction: column;
  }

  .dashboard-bridge {
    margin-top: -4rem;
  }

  .dashboard-frame {
    border-radius: 0.8rem;
  }

  .audience-band {
    gap: 0.75rem;
    padding: 1rem;
    text-align: left;
  }

  .audience-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .audience-list li {
    min-height: 0;
    justify-content: flex-start;
    padding: 0.68rem 0.75rem;
    text-align: left;
  }

  .why-section {
    padding-top: 3.75rem;
  }

  .assistant-grid,
  .plans-grid {
    grid-template-columns: 1fr;
  }

  /* .keys-grid deliberately stays at two columns: each row is a chord plus two
     or three words, so a single column doubles the section's height for no
     legibility gain. The longest pair measures 150px in a 166px cell at 375px. */

  .lifecycle {
    grid-template-columns: 1fr;
    gap: 0.15rem;
    border-radius: var(--radius-sm);
    padding: 0.9rem 1rem;
  }

  .lifecycle::before {
    top: 2.15rem;
    right: auto;
    bottom: 2.15rem;
    left: 2.21rem;
    width: 2px;
    height: auto;
    background: linear-gradient(180deg, var(--line), rgba(16, 185, 129, 0.75));
  }

  .lifecycle li {
    grid-template-columns: 2.5rem minmax(0, 1fr);
    min-height: 3.45rem;
    align-items: center;
    justify-items: start;
    gap: 0.8rem;
    text-align: left;
  }

  .package-card__description {
    min-height: 0;
  }

  .footer-grid {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  .brand-link {
    gap: 0.6rem;
  }

  .brand-mark {
    width: 1.7rem;
    height: 1.7rem;
  }

  .brand-product {
    font-size: 1rem;
  }

  .announcement {
    font-size: 0.76rem;
  }

  .why-list {
    border-radius: var(--radius-md);
  }

  .why-item {
    grid-template-columns: 2.35rem minmax(0, 1fr);
    gap: 0.8rem;
    padding: 1.2rem 1rem;
  }

  .why-item-number {
    width: 2.35rem;
    height: 2.35rem;
  }

  .callout {
    grid-template-columns: 1fr;
  }
}

/* Two keyboard columns hold every common phone width (375 and up); at the 320px
   floor `body` declares, a 139px cell clips "⌘K Command palette". Kept below
   the 420px block so 375px keeps two columns. */
@media (max-width: 360px) {
  .keys-grid {
    grid-template-columns: 1fr;
  }
}

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

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
  }
}
