:root {
  --bg: #f6f7f4;
  --surface: #ffffff;
  --text: #171a17;
  --muted: #5d665f;
  --line: #d9ddd8;
  --accent: #145c3b;
  --accent-dark: #0d432b;
  --accent-soft: #e6f0e9;
  --code: #111613;
  --shadow: 0 18px 50px rgba(24, 34, 27, 0.08);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
a:focus-visible, button:focus-visible, summary:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 10;
  background: var(--accent);
  color: #fff;
  padding: 12px 18px;
  border-radius: 0 0 12px 0;
  font-weight: 800;
  text-decoration: none;
}
.skip-link:focus { left: 0; }
.cta a:focus-visible { outline-color: #fff; }
.site-header {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 22px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 11px;
  background: var(--accent);
  color: #fff;
  font-size: 0.86rem;
}
nav { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; }
nav a, footer a { text-decoration: none; color: var(--muted); font-weight: 650; }
nav a:hover, footer a:hover { color: var(--accent); }
footer nav a:hover { text-decoration: underline; text-underline-offset: 3px; }
.site-header nav { gap: 10px; }
.site-header nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 7px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 0.9rem; }
.site-header nav a:hover { border-color: var(--accent); color: var(--accent); }
.site-header nav a.is-active, .site-header nav a.is-active:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
main { overflow: hidden; }
.hero {
  width: min(1080px, calc(100% - 32px));
  margin: 72px auto 64px;
  text-align: center;
}
.eyebrow {
  margin: 0 0 14px;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 1.08rem;
  font-weight: 800;
}
h1, h2, h3 { line-height: 1.1; letter-spacing: -0.035em; }
h1 { margin: 0 auto 24px; max-width: 900px; font-size: clamp(3rem, 7vw, 6.4rem); }
h2 { margin: 0 0 20px; font-size: clamp(2rem, 4vw, 3.8rem); }
h3 { margin: 0 0 12px; font-size: 1.28rem; }
p { margin: 0 0 18px; }
.hero-copy { max-width: 820px; margin: 0 auto 16px; color: var(--muted); font-size: clamp(1.05rem, 2vw, 1.32rem); }
.actions { margin-top: 34px; display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 20px;
  border-radius: 12px;
  text-decoration: none;
  font-family: inherit;
  font-size: 1rem;
  font-weight: 800;
  cursor: pointer;
}
.button.primary { background: var(--accent); color: #fff; }
.button.primary:hover { background: var(--accent-dark); }
.button.secondary { background: var(--surface); border: 1px solid var(--line); }
.platform-actions {
  margin: 38px auto 0;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 14px;
}
.platform-button {
  grid-column: span 3;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 88px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(24, 34, 27, 0.06);
  text-align: left;
  text-decoration: none;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}
.platform-button.guide, .platform-button.source { grid-column: span 6; }
/* The /install/ picker has five buttons: three across, then two. */
@media (min-width: 901px) {
  #install-picker .platform-button:nth-child(-n+3) { grid-column: span 4; }
  #install-picker .platform-button:nth-child(n+4) { grid-column: span 6; }
}
.section-links { margin: 22px 0 0; font-weight: 650; }
.platform-button:hover {
  transform: translateY(-3px);
  border-color: #aab4ac;
  box-shadow: 0 16px 36px rgba(24, 34, 27, 0.12);
}
.platform-button strong, .platform-button small { display: block; }
.platform-button strong { font-size: 1rem; line-height: 1.2; }
.platform-button small { margin-top: 4px; color: var(--muted); font-size: 0.8rem; line-height: 1.35; }
.platform-icon {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  color: #fff;
  font-size: 0.92rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}
.platform-button.claude .platform-icon { background: #c15f3c; }
.platform-button.chatgpt .platform-icon { background: #111; }
.platform-button.gemini .platform-icon { background: linear-gradient(135deg, #3154d9, #9b56d9); }
.platform-button.copilot .platform-icon { background: linear-gradient(135deg, #0a6ed1, #2ec6c2); }
.platform-button.guide .platform-icon { background: var(--accent); }
.platform-button.source .platform-icon { background: #333a35; font-size: 0.72rem; }
.platform-button.chatgpt .platform-icon { font-size: 0.72rem; }
.proof-strip {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.proof-strip div { padding: 24px; border-right: 1px solid var(--line); }
.proof-strip div:last-child { border-right: 0; }
.proof-strip strong, .proof-strip span { display: block; }
.proof-strip span { margin-top: 8px; color: var(--muted); font-size: 0.92rem; }
.section {
  width: min(1160px, calc(100% - 32px));
  margin: 120px auto;
}
.section-heading { max-width: 780px; margin-bottom: 42px; }
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.card {
  padding: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
}
.card p { color: var(--muted); margin: 0; }
.split { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.split > div:first-child p:not(.eyebrow) { color: var(--muted); font-size: 1.08rem; }
.code-panel { background: var(--code); color: #e8eee9; border-radius: 18px; padding: 28px; box-shadow: var(--shadow); }
.code-title { color: #9db6a6; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; font-weight: 800; }
.code-panel .code-note { margin: 16px 0 0; color: #9db6a6; font-size: 0.85rem; }
.code-panel .code-note a { color: #e8eee9; text-decoration: underline; }
pre { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
code { font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace; }
/* A prompt the reader types or pastes. Bold and chip-styled so it stands out
   from surrounding prose. Vertical padding on an inline element does not affect
   line box height, so this does not change line size. */
code.prompt {
  font-weight: 700;
  background: var(--accent-soft);
  color: var(--accent-dark);
  padding: 0.12em 0.4em;
  border-radius: 6px;
}
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.comparison > div { padding: 30px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); }
.comparison > div:last-child { background: var(--accent-soft); border-color: #b9d0c1; }
.label { display: inline-block; margin-bottom: 14px; color: var(--accent); font-size: 0.76rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.1em; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 800; }
.faq details p { margin: 14px 0 0; color: var(--muted); }
.cta {
  width: min(1040px, calc(100% - 32px));
  margin: 120px auto;
  padding: 64px;
  text-align: center;
  background: var(--text);
  color: #fff;
  border-radius: 24px;
}
.cta p { color: #c9d0cb; }
.page-hero {
  width: min(920px, calc(100% - 32px));
  margin: 72px auto;
}
.page-hero h1 { font-size: clamp(2.8rem, 6vw, 5.5rem); text-align: left; }
.page-hero p { color: var(--muted); font-size: 1.2rem; max-width: 760px; }
.content > .page-hero { width: auto; margin-top: 32px; }
.standard-tabs { width: min(1160px, calc(100% - 32px)); margin: 2px auto 0; display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.standard-tabs a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 15px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 650; font-size: 0.92rem; text-decoration: none; }
.standard-tabs a:hover { border-color: var(--accent); color: var(--accent); }
.standard-tabs a.is-active, .standard-tabs a.is-active:hover { background: var(--accent); border-color: var(--accent); color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.content { width: min(920px, calc(100% - 32px)); margin: 0 auto 120px; }
.content section { margin: 72px 0; scroll-margin-top: 24px; }
.content h2 { font-size: clamp(1.8rem, 3.5vw, 3rem); }
.content h3 { margin-top: 32px; }
h2.label, h3.label, .content h2.label, .content h3.label { margin: 0 0 14px; font-size: 0.76rem; line-height: 1.6; }
.content p, .content li { color: var(--muted); }
.content ul, .content ol { padding-left: 22px; }
.content pre { background: var(--code); color: #e8eee9; border-radius: 14px; padding: 22px; overflow-x: auto; }
.notice { padding: 20px 22px; border-radius: 14px; background: var(--accent-soft); border: 1px solid #b9d0c1; }
.verified { margin: -8px 0 20px; font-size: 0.85rem; color: var(--muted); }
.instructions-block { white-space: pre-wrap; }
.notice p { margin: 0 0 10px; }
.notice p:last-child { margin-bottom: 0; }
.step-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 0 0 18px; }
.step-actions code { color: var(--text); }
.pattern-list { display: grid; gap: 14px; }
.pattern-list.two-up { grid-template-columns: 1fr 1fr; }
.pattern-item { padding: 22px; border: 1px solid var(--line); background: var(--surface); border-radius: 14px; }
.pattern-item strong { display: block; margin-bottom: 8px; }
.spelling-details { margin-top: 18px; }
.spelling-details > summary { cursor: pointer; font-weight: 700; padding: 6px 0; }
.spelling-scroll { overflow-x: auto; }
.spelling-scroll:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.spelling-table { width: 100%; border-collapse: collapse; margin: 14px 0 4px; font-size: 0.95rem; }
.spelling-table caption { text-align: left; color: var(--muted); font-size: 0.9rem; margin-bottom: 10px; }
.spelling-table th, .spelling-table td { border: 1px solid var(--line); padding: 8px 12px; text-align: left; white-space: nowrap; }
.spelling-table thead th { background: var(--accent-soft); color: var(--accent-dark); font-weight: 700; }
.spelling-table tbody th { font-weight: 650; }
.spelling-note { color: var(--muted); font-size: 0.92rem; margin-top: 12px; }
footer {
  width: min(1160px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 44px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
}
footer p { margin: 0; color: var(--muted); }
footer p a { text-decoration: underline; }
footer nav { display: flex; flex-wrap: wrap; gap: 18px; }
@media (max-width: 900px) {
  .platform-actions { grid-template-columns: 1fr 1fr; }
  .platform-button, .platform-button.guide, .platform-button.source { grid-column: span 1; }
  .proof-strip { grid-template-columns: 1fr 1fr; }
  .proof-strip div:nth-child(2) { border-right: 0; }
  .proof-strip div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .card-grid { grid-template-columns: 1fr 1fr; }
  .split, .comparison { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .site-header { flex-direction: column; align-items: stretch; gap: 12px; padding: 16px 0; }
  .site-header nav { justify-content: flex-start; gap: 8px; }
  .site-header nav a { padding: 6px 12px; min-height: 40px; font-size: 0.85rem; }
  .site-header nav a.nav-collapse { display: none; }
  nav { gap: 12px; font-size: 0.9rem; }
  .hero { margin-top: 48px; }
  .platform-actions { grid-template-columns: 1fr; }
  .platform-button, .platform-button.guide, .platform-button.source { grid-column: span 1; }
  .pattern-list.two-up { grid-template-columns: 1fr; }
  .proof-strip, .card-grid { grid-template-columns: 1fr; }
  .proof-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .proof-strip div:last-child { border-bottom: 0; }
  .section { margin: 88px auto; }
  .cta { padding: 44px 24px; margin: 88px auto; }
  footer { align-items: flex-start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .platform-button { transition: none; }
  .platform-button:hover { transform: none; }
}

/* Install-page family filter. Only site/js/install.js sets data-family on the
   root, so every hiding rule below is inert when scripts are blocked, fail, or
   are disabled, and the whole page stays visible. */
html[data-family] section[data-family-section] { display: none; }
html[data-family="claude"] section[data-family-section="claude"],
html[data-family="chatgpt"] section[data-family-section="chatgpt"],
html[data-family="gemini"] section[data-family-section="gemini"],
html[data-family="copilot"] section[data-family-section="copilot"],
html[data-family="other-ai"] section[data-family-section="other-ai"] { display: block; }
.platform-button[aria-current="true"] { border-color: var(--accent); background: var(--accent-soft); }
.platform-button[aria-current="true"] strong { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.family-reset { margin: 14px 0 0; }
/* .button sets display:inline-flex, which outranks the UA [hidden] rule, so a
   hidden .button needs this to actually hide when JavaScript has not shown it. */
.button[hidden] { display: none; }
