/* Geist and Geist Mono (SIL OFL 1.1, fonts/GEIST-OFL.txt), self-hosted so
   visitors' IPs are not sent to a third-party font CDN. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/fonts/geist-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-display: swap;
  font-weight: 300 700;
  src: url(/fonts/geist-latin-wght-normal.woff2) format("woff2");
  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;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400 600;
  src: url(/fonts/geist-mono-latin-ext-wght-normal.woff2) format("woff2");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Geist Mono";
  font-style: normal;
  font-display: swap;
  font-weight: 400 600;
  src: url(/fonts/geist-mono-latin-wght-normal.woff2) format("woff2");
  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;
}

:root {
  --bg: #f6f1ec;
  --bg-soft: #efe7df;
  --raised: #fffdfb;
  --ink: #1d1b18;
  --muted: #6f6860;
  --line: #e2d8ce;
  --line-strong: #cfc2b6;
  --brand: #e8421a;
  --brand-dark: #c2410c;
  --green: #0fa968;
  --teal: #0e9c86;
  --yellow: #fff3c5;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 26px 26px;
  opacity: 0.22;
  z-index: -1;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img { max-width: 100%; }
code, pre, .mono { font-family: var(--mono); }
.wrap { width: min(1120px, calc(100% - 48px)); margin: 0 auto; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px;
  border-radius: 2px;
  background: var(--brand);
  display: inline-block;
}

/* Nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  flex-direction: row-reverse;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  font-size: 1.05rem;
}
.brand-mark {
  width: 22px; height: 22px;
  border-radius: 6px;
  background: var(--brand);
  display: inline-grid;
  place-items: center;
  color: #fff;
  font-family: var(--mono);
  font-size: 0.7rem;
  font-weight: 700;
}
.logo {
  display: inline-block;
  width: 120px;
  height: 50px;
  background: url("/logo.svg") no-repeat left center / contain;
  font-size: 0;
  line-height: 0;
  color: transparent;
  text-decoration: none;
}
.logo:hover { text-decoration: none; opacity: 0.85; }
.logo-sm { width: 90px; height: 38px; }
.brand-word { color: var(--brand); }
.nav-links { display: flex; align-items: center; gap: 1.2rem; }
.nav-links a { font-size: 0.9rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 0.6rem; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  padding: 0.7rem 1.05rem;
  border-radius: 10px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 120ms ease, border-color 120ms ease, transform 120ms ease;
}
.btn:hover { text-decoration: none; border-color: var(--ink); }
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); border-color: var(--brand-dark); }
.btn-ghost { border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--ink); border-color: var(--line-strong); }
.btn-sm { padding: 0.45rem 0.75rem; font-size: 0.8rem; }

/* Hero */
.hero { padding: 88px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: 56px;
  align-items: center;
}
.hero h1 {
  margin: 1.1rem 0 1rem;
  font-size: clamp(2.6rem, 6vw, 4.7rem);
  line-height: 1.02;
  letter-spacing: -0.045em;
  font-weight: 600;
}
.hero h1 em {
  font-style: normal;
  color: var(--brand);
}
.lead {
  margin: 0;
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.7rem; margin-top: 1.6rem; }
.chips { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-top: 1.4rem; }
.chip {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: color-mix(in srgb, var(--raised) 60%, transparent);
}

/* Prompt-first hero */
.prompt-hero { padding: 44px 0 8px; }
.prompt-hero .wrap { width: min(1280px, calc(100% - 32px)); }
.prompt-hero-card {
  border: 1px solid var(--line);
  border-top: 4px solid var(--brand);
  border-radius: 20px;
  padding: clamp(1.5rem, 4vw, 3rem);
  background:
    radial-gradient(circle at 12% 10%, color-mix(in srgb, var(--yellow) 65%, transparent), transparent 45%),
    var(--raised);
  box-shadow: 0 24px 70px rgba(30, 20, 10, 0.09);
}
.prompt-hero-top h1 {
  margin: 0.55rem 0 0.6rem;
  font-size: clamp(2.3rem, 5.5vw, 4.2rem);
  line-height: 1.02;
  letter-spacing: -0.05em;
  font-weight: 600;
}
.prompt-hero-top p {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  max-width: none;
  width: 100%;
}
.prompt-hero-box {
  margin: 1.6rem 0 1.2rem;
  display: flex;
  align-items: stretch;
  gap: 0.75rem;
  flex-wrap: wrap;
}
.prompt-hero-box code {
  flex: 1 1 560px;
  display: flex;
  align-items: center;
  font-family: var(--sans);
  font-size: clamp(1.05rem, 1.8vw, 1.35rem);
  font-weight: 500;
  line-height: 1.45;
  background: var(--bg);
  border: 1px dashed var(--line-strong);
  border-radius: 14px;
  padding: 1.1rem 1.25rem;
  color: var(--ink);
}
.prompt-hero-box .btn {
  flex: 0 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  font-size: 1rem;
}
.prompt-hero-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--muted);
}
.prompt-hero-foot a { color: var(--ink); }

.hero-simple { padding: 44px 0 64px; }
.hero-simple .lead { max-width: none; }

.flow { display: grid; gap: 0.65rem; }
.flow-item { display: flex; align-items: center; gap: 0.7rem; font-size: 0.92rem; }
.flow-num {
  width: 24px; height: 24px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--bg-soft);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--brand);
  flex: 0 0 auto;
}
.flow-sep { color: var(--muted); font-family: var(--mono); font-size: 0.7rem; padding-left: 2.2rem; }

/* Cards and code */
.card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 1.35rem;
}
.prompt-card {
  background: var(--raised);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.1rem;
  box-shadow: 0 18px 50px rgba(30, 20, 10, 0.08);
  transform: rotate(0.4deg);
}
.prompt-card .label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 0.6rem;
}
.prompt-box {
  font-family: var(--mono);
  font-size: 0.82rem;
  line-height: 1.5;
  background: var(--bg-soft);
  border: 1px dashed var(--line-strong);
  border-radius: 10px;
  padding: 0.9rem;
  color: var(--ink);
}
.prompt-actions { display: flex; justify-content: space-between; align-items: center; margin-top: 0.7rem; gap: 0.5rem; }
.code-card {
  background: #151311;
  color: #ece6df;
  border: 1px solid #2c2926;
  border-radius: 14px;
  padding: 1.1rem;
  overflow: auto;
  font-size: 0.78rem;
  line-height: 1.6;
}
.code-card .c-key { color: #ff9b7a; }
.code-card .c-str { color: #7ee2b8; }
.code-card .c-com { color: #8a827a; }
.code-card .c-fn { color: #8ec5ff; }
.window-dots { display: flex; gap: 5px; margin-bottom: 0.8rem; }
.window-dots span { width: 8px; height: 8px; border-radius: 50%; background: #3a3531; display: inline-block; }
.window-dots span:first-child { background: #ff5f57; }
.window-dots span:nth-child(2) { background: #febc2e; }
.window-dots span:nth-child(3) { background: #28c840; }

/* Sections */
.section { padding: 72px 0; border-top: 1px dashed var(--line); }
.section-head { max-width: 44rem; margin-bottom: 2.2rem; }
.section-head-wide { max-width: none; }
.section h2 {
  margin: 0.7rem 0 0.6rem;
  font-size: clamp(1.8rem, 3.4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  font-weight: 600;
}
.section p { margin: 0; color: var(--muted); }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.step { position: relative; }
.step .num {
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--brand);
  letter-spacing: 0.12em;
}
.step h3 { margin: 1.1rem 0 0.35rem; font-size: 1.02rem; font-weight: 600; }
.step p { font-size: 0.92rem; }
.card h3 { margin: 0 0 0.4rem; font-size: 1rem; font-weight: 600; }
.card p { font-size: 0.9rem; color: var(--muted); }
.card .mono-tag { font-family: var(--mono); font-size: 0.68rem; letter-spacing: 0.08em; color: var(--teal); text-transform: uppercase; }
.feature-icon {
  width: 28px; height: 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: var(--mono);
  font-size: 0.72rem;
  color: var(--brand);
  background: var(--bg-soft);
  margin-bottom: 0.9rem;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}
.split h2 { margin-top: 0.6rem; }
.checklist { list-style: none; padding: 0; margin: 1.2rem 0 0; display: grid; gap: 0.55rem; }
.checklist li { padding-left: 1.4rem; position: relative; color: var(--muted); font-size: 0.94rem; }
.checklist li::before {
  content: "";
  position: absolute; left: 0; top: 0.5rem;
  width: 8px; height: 8px; border-radius: 2px;
  background: var(--green);
}
.faq { display: grid; gap: 0; }
details { border-bottom: 1px dashed var(--line); padding: 1rem 0; }
summary {
  cursor: pointer;
  font-weight: 500;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  list-style: none;
}
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; font-family: var(--mono); color: var(--muted); }
details[open] summary::after { content: "−"; }
details p { margin: 0.7rem 0 0; color: var(--muted); font-size: 0.92rem; }
.cta-band {
  margin: 72px 0;
  padding: 2.4rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    radial-gradient(circle at 15% 20%, color-mix(in srgb, var(--yellow) 55%, transparent), transparent 40%),
    var(--raised);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.cta-band h2 { margin: 0; font-size: clamp(1.5rem, 3vw, 2.1rem); letter-spacing: -0.03em; }
.cta-band p { margin: 0.3rem 0 0; color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--line); padding: 44px 0 56px; }
.footer-grid { display: flex; justify-content: space-between; gap: 2rem; flex-wrap: wrap; }
.footer-links { display: flex; gap: 1.4rem; flex-wrap: wrap; font-size: 0.85rem; color: var(--muted); }
.footer-links a:hover { color: var(--ink); }
.footer-note { font-size: 0.8rem; color: var(--muted); margin-top: 2rem; }

/* Docs */
.doc {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 3rem;
  padding: 48px 0 80px;
}
.doc-nav { position: sticky; top: 92px; align-self: start; display: grid; gap: 0.35rem; font-size: 0.88rem; }
.doc-nav a { color: var(--muted); padding: 0.25rem 0; }
.doc-nav a:hover { color: var(--ink); text-decoration: none; }
.doc-body h1 { margin: 0 0 0.8rem; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -0.04em; line-height: 1.05; }
.doc-body h2 { margin: 2.2rem 0 0.7rem; font-size: 1.35rem; letter-spacing: -0.02em; }
.doc-body h3 { margin: 1.6rem 0 0.5rem; font-size: 1.02rem; }
.doc-body p { color: var(--muted); }
.doc-body ul, .doc-body ol { color: var(--muted); padding-left: 1.2rem; }
.doc-body li { margin: 0.35rem 0; }
.doc-body code { font-size: 0.85em; background: var(--bg-soft); padding: 0.12rem 0.3rem; border-radius: 4px; }
.doc-body pre {
  background: #151311;
  color: #ece6df;
  border: 1px solid #2c2926;
  border-radius: 12px;
  padding: 1rem 1.1rem;
  overflow: auto;
  font-size: 0.8rem;
  line-height: 1.6;
}
.doc-body pre code { background: none; padding: 0; color: inherit; }
.note {
  border: 1px solid var(--line);
  border-left: 3px solid var(--brand);
  border-radius: 8px;
  padding: 0.9rem 1rem;
  background: var(--raised);
  color: var(--muted);
  font-size: 0.9rem;
}
table { width: 100%; border-collapse: collapse; font-size: 0.86rem; margin: 1rem 0; }
th, td { text-align: left; padding: 0.55rem 0.6rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--mono); font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); }

@media (max-width: 900px) {
  .hero-grid, .split, .grid-3, .grid-2, .doc { grid-template-columns: 1fr; }
  .hero { padding-top: 56px; }
  .doc-nav { position: static; display: flex; flex-wrap: wrap; gap: 1rem; }
  .nav-links { display: none; }
  .prompt-card { transform: none; }
}
@media (max-width: 560px) {
  .wrap { width: min(1120px, calc(100% - 32px)); }
  .hero h1 { font-size: 2.4rem; }
  .cta-band { padding: 1.5rem; }
  .footer-grid { flex-direction: column; }
}
