/* Colours and type follow the app's theme tokens (src/app/src/styles.css). */
:root {
  --brand: #465fff;
  --brand-strong: #3641f5;
  --brand-soft: #ecf3ff;
  --bg: #ffffff;
  --bg-alt: #f9fafb;
  --surface: #ffffff;
  --border: #e4e7ec;
  --text: #1d2939;
  --text-muted: #475467;
  --text-faint: #667085;
  --code-bg: #101828;
  --code-text: #f2f4f7;
  --code-bar: #1d2939;
  --shadow: 0 12px 16px -4px rgba(16, 24, 40, 0.08), 0 4px 6px -2px rgba(16, 24, 40, 0.03);
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --brand: #7592ff;
    --brand-strong: #9cb9ff;
    --brand-soft: rgba(70, 95, 255, 0.14);
    --bg: #101828;
    --bg-alt: #0c111d;
    --surface: #1a2231;
    --border: #344054;
    --text: rgba(255, 255, 255, 0.92);
    --text-muted: #d0d5dd;
    --text-faint: #98a2b3;
    --code-bg: #0c111d;
    --code-bar: #1a2231;
    --shadow: none;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: Outfit, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.88em;
}
p code, li code, .shot-body code {
  padding: 0.1em 0.35em;
  border-radius: 6px;
  background: var(--brand-soft);
}

.container { width: 100%; max-width: 1040px; margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 600; color: var(--text); white-space: nowrap; }
.brand:hover { text-decoration: none; }
.site-header nav { display: flex; gap: 24px; font-size: 15px; }
.site-header nav a { color: var(--text-muted); }
.site-header nav a:hover { color: var(--brand); text-decoration: none; }

/* Hero */
.hero { padding: 72px 0 56px; text-align: center; }
.eyebrow {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 14px;
  font-weight: 500;
}
h1 {
  margin: 0 auto 20px;
  max-width: 800px;
  font-size: clamp(34px, 6vw, 56px);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.lead { margin: 0 auto 36px; max-width: 680px; font-size: 19px; color: var(--text-muted); }

/* Command block */
.command {
  max-width: 820px;
  margin: 0 auto;
  border-radius: 14px;
  overflow: hidden;
  background: var(--code-bg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  text-align: left;
}
.command-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 8px 8px 18px;
  background: var(--code-bar);
  color: #98a2b3;
  font-size: 14px;
}
.command pre { margin: 0; padding: 18px; overflow-x: auto; color: var(--code-text); }
.command pre:focus-visible { outline: 2px solid var(--brand); outline-offset: -2px; }
.command code { font-size: 14px; white-space: pre; }
.copy {
  min-width: 76px;
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: #465fff;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
}
.copy:hover { background: #3641f5; }
.copy:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

.after-command { margin: 18px auto 0; max-width: 680px; font-size: 16px; color: var(--text-muted); }
.hero-note { margin: 20px auto 0; font-size: 15px; color: var(--text-faint); }

/* Screenshot frames */
.shot {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}
.shot img { display: block; width: 100%; height: auto; }
.shot-hero { max-width: 920px; margin: 56px auto 0; }
/* Sections */
.section { padding: 80px 0; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--border); }
h2 { margin: 0 0 16px; font-size: clamp(28px, 4vw, 36px); line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; }
h3 { margin: 0 0 10px; font-size: 22px; line-height: 1.3; font-weight: 600; }
.section-lead { margin: 0 0 40px; max-width: 640px; color: var(--text-muted); }

/* A screenshot of the whole app is unreadable at half width, so each feature stacks: text, then the picture. */
.feature { padding: 48px 0; }
.feature + .feature { border-top: 1px solid var(--border); }
.feature-text { max-width: 680px; margin-bottom: 28px; }
.feature p { margin: 0 0 14px; color: var(--text-muted); }
.feature p:last-child { margin-bottom: 0; }

.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.cards li {
  padding: 26px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
}
.cards h3 { font-size: 19px; }
.cards p { margin: 0; color: var(--text-muted); }

.limits { margin: 24px 0 0; padding: 0; list-style: none; max-width: 760px; }
.limits li { padding: 18px 0; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.limits strong { display: block; margin-bottom: 2px; color: var(--text); font-weight: 600; }

.update { max-width: 760px; margin-top: 40px; }
.update summary { cursor: pointer; font-weight: 600; color: var(--brand); }
.update p { color: var(--text-muted); }
.update .command { margin: 0; max-width: none; }

/* Footer */
.site-footer { padding: 40px 0; border-top: 1px solid var(--border); font-size: 15px; color: var(--text-muted); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 32px; }
.footer-row p { margin: 0; }
.fineprint { flex-basis: 100%; margin-top: 12px !important; font-size: 13px; color: var(--text-faint); }

@media (max-width: 760px) {
  .site-header nav a:not(:last-child) { display: none; }
  .hero { padding: 48px 0 40px; }
  .section { padding: 56px 0; }
  .feature { padding: 36px 0; }
  .cards { grid-template-columns: 1fr; }
}

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