/* Bogart landing site — single stylesheet, no external assets. */

:root {
  /* Palette: green = brand/action · orange = attention · purple = technical */
  --ink: #1c1917;
  --ink-soft: #57534e;
  --paper: #ffffff;
  --paper-alt: #f7f6f3;
  --card: #ffffff;
  --line: #e7e4de;
  --accent: #157a4e;        /* green */
  --accent-deep: #0d5134;
  --orange: #c2410c;        /* text-safe orange */
  --orange-bright: #ea580c; /* decorative only */
  --purple: #6d28d9;        /* text-safe purple */
  --purple-bright: #8b5cf6;
  --serif: Georgia, "Times New Roman", serif;
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, monospace;
}

::selection { background: rgba(139, 92, 246, 0.25); }

* { box-sizing: border-box; }

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

/* Anchored sections clear the sticky header. */
[id] { scroll-margin-top: 5.5rem; }

a:focus-visible,
.btn:focus-visible,
summary:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

body {
  margin: 0;
  font-family: var(--sans);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
}

.container { max-width: 960px; margin: 0 auto; padding: 0 1.25rem; }

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

.site-header {
  border-bottom: 1px solid var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-top: 0.9rem;
  padding-bottom: 0.9rem;
  flex-wrap: wrap;
}

.wordmark {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 700;
  color: var(--accent-deep);
  text-decoration: none;
  letter-spacing: 0.01em;
}

.wordmark-dot { color: var(--orange-bright); }

.site-nav { display: flex; gap: 1.1rem; flex-wrap: wrap; }

@media (max-width: 640px) {
  .site-nav { display: none; } /* single scroll narrative; wordmark stays */
}

.site-nav a {
  color: var(--ink-soft);
  text-decoration: none;
  font-size: 0.92rem;
}

.site-nav a:hover { color: var(--accent); }

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

.hero {
  padding: 4.5rem 0 4rem;
  background: var(--paper);
}

/* Signature detail: the three palette colors, nothing else */

.tri { display: flex; gap: 6px; margin-bottom: 1.1rem; }
.tri span { width: 22px; height: 4px; border-radius: 2px; }
.tri .t-green { background: var(--accent); }
.tri .t-orange { background: var(--orange-bright); }
.tri .t-purple { background: var(--purple-bright); }

.eyebrow {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--orange);
  margin: 0 0 1rem;
}

.hero h1 {
  font-family: var(--serif);
  font-size: clamp(1.9rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin: 0 0 1.2rem;
  color: var(--ink);
}

.lede { font-size: 1.12rem; max-width: 44rem; color: var(--ink-soft); }

.hero-actions { display: flex; gap: 0.8rem; margin: 1.8rem 0 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
}

.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }

.btn-ghost { color: var(--accent-deep); border-color: var(--accent); }
.btn-ghost:hover { background: rgba(30, 92, 70, 0.08); }

.hero-meta { font-size: 0.85rem; color: var(--ink-soft); }
.url-box {
  font-family: var(--mono);
  background: #f4f3ef;
  color: var(--ink);
  border: 1px solid var(--line);
  padding: 0.15em 0.45em;
  border-radius: 4px;
  font-size: 0.85em;
}

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

.section { padding: 3.5rem 0; }

.section-alt { background: var(--paper-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
h2 {
  font-family: var(--serif);
  font-size: 1.8rem;
  margin: 0 0 1rem;
  color: var(--ink);
}

h3 { font-size: 1.05rem; margin: 0 0 0.5rem; color: var(--ink); }

.section > .container > p { max-width: 46rem; }

code {
  font-family: var(--mono);
  font-size: 0.88em;
  background: var(--paper-alt);
  color: var(--purple);
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

.section-alt code { background: #ffffff; border: 1px solid var(--line); }

a { color: var(--accent); }

/* ---- cards & grids ---- */

.grid { display: grid; gap: 1.1rem; margin-top: 1.6rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }

@media (max-width: 760px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.2rem 1.3rem;
}

.card p { font-size: 0.92rem; color: var(--ink-soft); margin: 0; }

.tool-card h3 { font-family: var(--mono); font-size: 0.95rem; color: var(--purple); }

/* ---- steps ---- */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 1.6rem 0 0;
  display: grid;
  gap: 1rem;
}

.steps li {
  counter-increment: step;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 1.1rem 1.3rem 1.1rem 3.6rem;
  position: relative;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1.15rem;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.steps p { margin: 0; font-size: 0.92rem; color: var(--ink-soft); }

.url-box { display: inline-block; padding: 0.4em 0.8em; font-size: 1em; }

.note { font-size: 0.9rem; color: var(--ink-soft); margin-top: 1.4rem; }

.docs-link { font-size: 0.9rem; margin-top: 0.9rem; }

/* Provider chooser cards (ChatGPT / Claude / Gemini) */

.provider-card { display: block; text-decoration: none; color: inherit; }
.provider-card:hover { border-color: var(--accent); }
.provider-card h3 { color: var(--accent-deep); }
.provider-card p { margin-top: 0.3rem; }

.provider-card .provider-line {
  font-size: 0.82rem;
  color: var(--ink-soft);
  margin: 0 0 0.3rem;
}

.chip {
  display: inline-block;
  padding: 0.05rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
}

.chip-ok { background: rgba(21, 122, 78, 0.12); color: var(--accent-deep); }
.chip-soon { background: rgba(194, 65, 12, 0.12); color: #9a3412; }

/* Collapsible technical details (progressive disclosure) */

.tech-details {
  margin-top: 1.2rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.9rem 1.2rem;
  max-width: 46rem;
}

.tech-details summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--purple);
}

.tech-details[open] summary { margin-bottom: 0.8rem; }
.tech-details .specs li:last-child { border-bottom: none; }

/* ---- spec list ---- */

.specs { list-style: none; padding: 0; max-width: 46rem; }
.specs li {
  padding: 0.45rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}

/* ---- troubleshooting table ---- */

.trouble {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1.4rem;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: hidden;
  font-size: 0.92rem;
}

.trouble th, .trouble td {
  text-align: left;
  padding: 0.8rem 1rem;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

.trouble th { background: var(--paper-alt); font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.trouble tr:last-child td { border-bottom: none; }

@media (max-width: 700px) {
  .trouble { display: block; overflow-x: auto; }
}

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

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.footer-inner { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.footer-links a { color: var(--ink-soft); }
