/* AGI for Anyone — agiforanyone.com
   Tokens from docs/BRAND-DA.md §2.1 "Chrome & Rose". Dark-only; system type (§2.2).
   Discipline: one filled accent CTA, focus rings, small highlights. Bordeaux = one brand surface. */

:root {
  /* Neutrals (app-derived, cool) */
  --bg-0: #16181d;
  --bg-1: #21252b;
  --bg-2: #282c34;
  --bg-3: #313640;
  --text-1: #f2f3f5;
  --text-2: #b3bac6;
  --text-3: #7d8493;
  --border-1: #ffffff14;
  --border-2: #ffffff29;

  /* THE accent — framboise, and its companions */
  --accent: #ec5578;
  --accent-soft: #ff8fae;
  --accent-deep: #c22a54;
  --accent-tint: #ec55781f;

  /* Brand surface — bordeaux (surface only, never text) */
  --brand-0: #6e2434;
  --brand-1: #8e2f3f;

  /* Type */
  --font-sans: -apple-system, ui-sans-serif, system-ui, 'SF Pro Display', 'Segoe UI', sans-serif;
  --font-mono: ui-monospace, 'SF Mono', 'Cascadia Mono', 'Menlo', monospace;

  --radius-s: 6px;
  --radius-m: 10px;
}

/* ---------- Reset ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 24px;
}

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

body {
  margin: 0;
  background: var(--bg-0);
  color: var(--text-2);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, p, figure { margin: 0; }

a { color: inherit; }

::selection { background: rgba(236, 85, 120, 0.30); color: var(--text-1); }

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

/* ---------- Signature kbd chip (§2.2) ---------- */

kbd {
  font-family: var(--font-mono);
  font-size: 0.85em;
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: 6px;
  padding: 1px 6px 2px;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  color: var(--text-1);
}

/* ---------- Top strip ---------- */

.top {
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.mark { display: block; flex-shrink: 0; }

.lockup {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text-1);
  white-space: nowrap;
}

.lockup .prefix { color: var(--accent); }

.top-links {
  display: flex;
  align-items: center;
  gap: 18px;
}

.icon-link {
  display: inline-flex;
  color: var(--text-3);
  transition: color 0.15s ease;
}

.icon-link:hover { color: var(--text-1); }

.ghost-link {
  color: var(--text-2);
  font-size: 14.5px;
  text-decoration: none;
  white-space: nowrap;
  transition: color 0.15s ease;
}

.ghost-link:hover {
  color: var(--text-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Hero ---------- */

.hero {
  max-width: 920px;
  margin: 0 auto;
  padding: 72px 24px 0;
  text-align: center;
}

.kicker {
  color: var(--text-3);
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 18px;
}

h1 {
  font-size: clamp(2.5rem, 8vw, 4.5rem);
  line-height: 1.05;
  letter-spacing: -0.022em;
  font-weight: 800;
  color: var(--text-1);
  margin: 0 auto 20px;
  max-width: 18ch;
}

.sub {
  font-size: 18px;
  color: var(--text-2);
  max-width: 36em;
  margin: 0 auto 32px;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin-bottom: 14px;
}

.btn {
  display: inline-block;
  padding: 12px 22px;
  border-radius: var(--radius-m);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.4;
  text-decoration: none;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: var(--bg-0);
  transition: filter 0.15s ease;
}

.btn-primary:hover { filter: brightness(1.08); }

.btn-ghost {
  border: 1px solid var(--border-2);
  color: var(--text-2);
  transition: color 0.15s ease, border-color 0.15s ease;
}

.btn-ghost:hover {
  color: var(--text-1);
  border-color: #ffffff59;
}

.cta-micro {
  color: var(--text-3);
  font-size: 13px;
  line-height: 1.7;
  max-width: 52em;
  margin: 0 auto;
}

.nonmac { margin-top: 8px; }

/* ---------- Media (real recordings only — §2.5, §3.1) ---------- */

.media { margin: 48px auto 0; }

.media video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  background: var(--bg-1);
  border: 1px solid var(--border-1);
  border-radius: 12px;
  object-fit: cover;
}

.media figcaption {
  color: var(--text-3);
  font-size: 13px;
  margin-top: 10px;
}

.honesty {
  display: inline-block;
  margin: 28px auto 0;
  padding: 7px 16px;
  border: 1px solid var(--border-1);
  border-radius: 999px;
  color: var(--text-2);
  font-size: 14px;
}

/* ---------- Feature blocks ---------- */

.features {
  max-width: 820px;
  margin: 0 auto;
  padding: 112px 24px 0;
}

.feature { margin-bottom: 96px; }

.feature h2 {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  line-height: 1.15;
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 14px;
}

.feature p { max-width: 62ch; }

.feature .media { margin-top: 28px; }

.extras {
  color: var(--text-3);
  font-size: 14.5px;
  line-height: 1.9;
  max-width: 62ch;
  padding-bottom: 112px;
}

/* ---------- Second door — the one bordeaux brand surface (§2.1) ---------- */

.build {
  /* Sanctioned brand-surface treatment: faint vertical bordeaux (§2.1, §2.3) */
  background: linear-gradient(180deg, var(--brand-0), var(--brand-1));
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
}

.build-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 88px 24px;
}

.build h2 {
  font-size: clamp(1.8rem, 5vw, 2.6rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  font-weight: 800;
  color: var(--text-1);
  margin-bottom: 16px;
}

.build .body {
  color: rgba(242, 243, 245, 0.85);
  max-width: 60ch;
  margin-bottom: 32px;
}

.tabs {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  background: rgba(22, 24, 29, 0.45);
  border: 1px solid #ffffff1a;
  border-radius: var(--radius-m);
  margin-bottom: 16px;
}

.tabs [role="tab"] {
  font-family: var(--font-sans);
  font-size: 14.5px;
  font-weight: 500;
  color: rgba(242, 243, 245, 0.75);
  background: transparent;
  border: 0;
  padding: 8px 16px;
  border-radius: 7px;
  cursor: pointer;
  transition: color 0.15s ease;
}

.tabs [role="tab"]:hover { color: var(--text-1); }

.tabs [role="tab"][aria-selected="true"] {
  background: var(--bg-0);
  color: var(--text-1);
}

.leadin {
  color: rgba(242, 243, 245, 0.85);
  font-size: 15.5px;
  margin: 6px 0 12px;
}

.code-block {
  position: relative;
  background: var(--bg-0);
  border: 1px solid #ffffff1f;
  border-radius: 12px;
  padding: 18px 20px;
}

.code-block pre {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--text-1);
  overflow-x: auto;
  padding-right: 64px;
}

.code-block.prose pre {
  white-space: pre-wrap;
  overflow-wrap: break-word;
  overflow-x: visible;
}

.copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-2);
  background: var(--bg-3);
  border: 1px solid var(--border-2);
  border-radius: var(--radius-s);
  padding: 5px 10px;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.copy-btn:hover { color: var(--text-1); }

.copy-btn.copied {
  color: var(--accent-soft);
  border-color: rgba(236, 85, 120, 0.5);
}

.wink {
  color: rgba(242, 243, 245, 0.62);
  font-size: 13.5px;
  margin-top: 20px;
}

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

.faq {
  max-width: 720px;
  margin: 0 auto;
  padding: 112px 24px 0;
}

.faq h2 {
  font-size: clamp(1.6rem, 4vw, 2rem);
  letter-spacing: -0.02em;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 24px;
}

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

.faq details:last-of-type { border-bottom: 1px solid var(--border-1); }

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 16px 0;
  color: var(--text-1);
  font-weight: 600;
  font-size: 16.5px;
}

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

.faq summary::after {
  content: "+";
  color: var(--text-3);
  font-weight: 400;
  font-size: 18px;
  flex-shrink: 0;
}

.faq details[open] summary::after { content: "–"; }

.faq details p {
  padding: 0 0 18px;
  max-width: 60ch;
}

/* ---------- Closer ---------- */

.closer {
  max-width: 720px;
  margin: 0 auto;
  padding: 112px 24px 120px;
  text-align: center;
}

.closer-line {
  color: var(--text-1);
  font-size: clamp(1.4rem, 3.5vw, 1.8rem);
  letter-spacing: -0.015em;
  font-weight: 700;
  margin-bottom: 24px;
}

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border-1);
  padding: 56px 24px 72px;
  text-align: center;
  font-size: 13.5px;
  color: var(--text-3);
}

.foot-brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 14px;
}

.foot-brand .lockup { font-size: 15px; }

.foot-line {
  color: var(--text-2);
  margin-bottom: 18px;
}

.foot-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px 20px;
  margin-bottom: 18px;
}

.foot-links a {
  color: var(--text-2);
  text-decoration: none;
}

.foot-links a:hover {
  color: var(--text-1);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------- Small screens (375px checked) ---------- */

@media (max-width: 560px) {
  .top { padding: 16px 18px; }
  .hero { padding-top: 48px; }
  .btn { width: 100%; }
  .features { padding-top: 88px; }
  .feature { margin-bottom: 72px; }
  .extras { padding-bottom: 88px; }
  .build-inner { padding: 64px 18px; }
  .faq { padding-top: 88px; }
  .closer { padding: 88px 24px 96px; }

  /* Keep the copy button clear of wrapped prompt text */
  .code-block { padding-top: 50px; }
  .code-block pre { padding-right: 0; }
}
