/* One 1040px column of full-width bands. The hero splits text | example on
   desktop and stacks on a phone, example right after the buttons. */
@font-face {
  font-family: "Inter Variable";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url("fonts/inter-latin-wght-normal.woff2") format("woff2");
}

:root {
  --bg: #f7f7fb;
  --surface: #ffffff;
  --ink: #16161f;
  --muted: #555a70;
  --line: #dcdde8;
  --accent: #4744cf; /* text and outlines */
  --accent-solid: #5653e0; /* filled buttons, white text */
  --accent-soft: #e9e9ff;
  --chip-ink: #3d3ab8;
  --mark: #fff0a8; /* a value that will be redacted */
  --back: #d9f3e2; /* a value put back into the answer */
  --code-bg: #16161f;
  --code-ink: #e6e7f0;
  --code-dim: #a3a8bf;
  --sans: "Inter Variable", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0d15;
    --surface: #161722;
    --ink: #f3f4f8;
    --muted: #a8adc0;
    --line: #2a2c3d;
    --accent: #a9abff;
    --accent-solid: #5653e0;
    --accent-soft: #22234a;
    --chip-ink: #c3c5ff;
    --mark: #5c4c12;
    --back: #173d2a;
    --code-bg: #07080e;
    --code-ink: #e6e7f0;
    --code-dim: #9499b2;
    color-scheme: dark;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  * {
    transition: none !important;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.6;
}
.wrap {
  max-width: 1040px;
  margin: 0 auto;
  padding-left: max(16px, env(safe-area-inset-left, 0px));
  padding-right: max(16px, env(safe-area-inset-right, 0px));
}
a {
  color: var(--accent);
}
a:focus-visible,
summary:focus-visible,
.term:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}
h1,
h2,
h3 {
  margin: 0;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
h1 {
  font-size: clamp(2.1rem, 4.9vw, 3.4rem);
  font-weight: 800;
}
h2 {
  font-size: clamp(1.6rem, 3.2vw, 2.3rem);
  font-weight: 750;
}
h3 {
  font-size: 1.12rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
p {
  margin: 0;
}
.eyebrow {
  font-family: var(--mono);
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
}
.lead {
  color: var(--muted);
  font-size: 1.1rem;
  max-width: 36em;
}

/* header */
.top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
  padding-block: 14px;
  flex-wrap: wrap;
}
.logo {
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.7rem;
  letter-spacing: -0.03em;
  color: var(--ink);
  text-decoration: none;
  min-height: 44px;
  line-height: 44px;
}
.logo svg {
  height: 0.727em;
  width: 0.62em;
  margin-inline: 0.02em;
}
.logo .bracket {
  stroke: #6e6bf4;
}
.nav {
  display: flex;
  align-items: center;
  gap: 4px 18px;
  flex-wrap: wrap;
}
.nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 0.95rem;
  padding-block: 11px;
}
.nav a:hover {
  color: var(--ink);
}
.lang {
  display: inline-flex;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px;
  gap: 2px;
}
.nav .lang a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  padding: 0 15px;
  border-radius: 999px;
  font-size: 0.85rem;
}
.nav .lang a[aria-current="true"] {
  background: var(--ink);
  color: var(--bg);
  font-weight: 600;
}

/* hero */
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding-block: 48px 72px;
}
.hero-text {
  display: grid;
  gap: 20px;
  min-width: 0;
}
.caveat {
  color: var(--muted);
  font-size: 0.95rem;
  border-left: 3px solid var(--accent);
  padding-left: 12px;
}
.ctas {
  display: flex;
  gap: 10px 18px;
  flex-wrap: wrap;
  align-items: center;
}
.btn {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 650;
  font-size: 1rem;
  text-decoration: none;
  border: 1px solid transparent;
}
.btn-primary {
  background: var(--accent-solid);
  color: #ffffff;
}
.btn-primary:hover {
  filter: brightness(1.08);
}
.btn-ghost {
  border-color: var(--line);
  background: var(--surface);
  color: var(--ink);
}
.textlink {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  font-weight: 600;
}
.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  padding: 0;
  margin: 0;
  list-style: none;
  color: var(--muted);
  font-size: 0.9rem;
}
.facts li::before {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 8px;
  border-radius: 2px;
  background: var(--accent);
  vertical-align: 1px;
}

/* the example: what you write, what the model receives, what you read */
.proof {
  display: grid;
  gap: 10px;
  min-width: 0;
}
.pane {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 18px;
  min-width: 0;
}
.pane .label {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
}
.pane p {
  font-size: 0.97rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}
mark {
  background: var(--mark);
  color: inherit;
  padding: 1px 4px;
  border-radius: 4px;
}
mark.back {
  background: var(--back);
}
.ph {
  font-family: var(--mono);
  font-size: 0.86em;
  font-weight: 600;
  background: var(--accent-soft);
  color: var(--chip-ink);
  padding: 2px 6px;
  border-radius: 6px;
  white-space: nowrap;
}
h1 .ph {
  font-size: 0.8em;
  padding: 0.04em 0.22em;
  border-radius: 0.22em;
  letter-spacing: 0;
}
.arrow {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.caption {
  color: var(--muted);
  font-size: 0.85rem;
}

/* bands */
.band {
  padding-block: 68px;
  border-top: 1px solid var(--line);
}
.band-head {
  display: grid;
  gap: 12px;
  margin-bottom: 32px;
  max-width: 42em;
}
.shot {
  margin: 0;
  display: grid;
  gap: 10px;
}
.shot img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  border: 1px solid var(--line);
}
.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  counter-reset: step;
  padding: 0;
  margin: 0;
  list-style: none;
}
.steps li {
  display: grid;
  gap: 8px;
  align-content: start;
  padding-top: 14px;
  border-top: 2px solid var(--accent);
  min-width: 0;
}
.steps li::before {
  counter-increment: step;
  content: counter(step);
  font-family: var(--mono);
  color: var(--accent);
  font-size: 0.85rem;
}
.steps p {
  color: var(--muted);
  font-size: 0.95rem;
}
.where {
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 20px 22px;
  display: grid;
  gap: 6px;
}
.where p {
  color: var(--muted);
  max-width: 50em;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}
.card p,
.card ul {
  color: var(--muted);
  font-size: 0.97rem;
}
.card ul {
  margin: 0;
  padding-left: 1.1em;
  display: grid;
  gap: 4px;
}
.card .btn,
.card .pill {
  justify-self: start;
}
.pill {
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--accent-soft);
  color: var(--chip-ink);
  padding: 3px 10px;
  border-radius: 999px;
}
.trust {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 36px;
}
.trust div {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.trust p {
  color: var(--muted);
  font-size: 0.97rem;
}

/* self-host */
.dev {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
.dev > * {
  min-width: 0;
}
.term {
  background: var(--code-bg);
  color: var(--code-ink);
  border-radius: 14px;
  padding: 18px 20px;
  font-family: var(--mono);
  font-size: 0.85rem;
  line-height: 1.8;
  overflow-x: auto;
}
.term pre {
  margin: 0;
  font: inherit;
  white-space: pre;
}
.term .c {
  color: var(--code-dim);
}
.doclinks {
  display: flex;
  flex-wrap: wrap;
  gap: 0 20px;
  margin-top: 14px;
  font-size: 0.95rem;
}
.doclinks a {
  padding-block: 11px;
}
.spec {
  margin: 0;
}
.spec div {
  display: grid;
  grid-template-columns: 7.5em minmax(0, 1fr);
  gap: 14px;
  padding: 11px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
}
.spec dt {
  font-family: var(--mono);
  font-size: 0.76rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  padding-top: 3px;
}
.spec dd {
  margin: 0;
}

/* faq */
details {
  border-top: 1px solid var(--line);
}
details:last-of-type {
  border-bottom: 1px solid var(--line);
}
summary {
  cursor: pointer;
  font-weight: 650;
  font-size: 1.02rem;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding-block: 10px;
}
summary::-webkit-details-marker {
  display: none;
}
summary::after {
  content: "+";
  font-family: var(--mono);
  color: var(--accent);
  font-size: 1.2rem;
}
details[open] summary::after {
  content: "\2212";
}
details p {
  color: var(--muted);
  padding-bottom: 16px;
  max-width: 46em;
}

/* closing block and footer */
.cta {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 40px 32px;
  display: grid;
  gap: 16px;
  justify-items: start;
}
.addr {
  font-family: var(--mono);
  font-size: 0.95rem;
}
footer {
  border-top: 1px solid var(--line);
  padding-block: 28px 40px;
  color: var(--muted);
  font-size: 0.88rem;
  display: grid;
  gap: 6px;
}
footer nav {
  display: flex;
  gap: 0 20px;
  flex-wrap: wrap;
}
footer a {
  color: var(--muted);
  padding-block: 12px;
  display: inline-block;
}

/* not found */
.lost {
  min-height: 70vh;
  display: grid;
  align-content: center;
  gap: 18px;
  justify-items: start;
}

@media (max-width: 860px) {
  .hero {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
    padding-block: 24px 52px;
  }
  .hero-text {
    display: contents;
  }
  /* On a phone the example comes right after the buttons. */
  .hero .eyebrow {
    order: 1;
  }
  .hero h1 {
    order: 2;
  }
  .hero .lead {
    order: 3;
  }
  .hero .ctas {
    order: 4;
  }
  .hero .proof {
    order: 5;
  }
  .hero .caveat {
    order: 6;
  }
  .hero .facts {
    order: 7;
  }
  .steps,
  .grid-2,
  .trust,
  .dev {
    grid-template-columns: minmax(0, 1fr);
  }
  .band {
    padding-block: 52px;
  }
  .nav .sec {
    display: none;
  }
  .cta {
    padding: 28px 20px;
  }
}
@media (min-width: 861px) and (max-width: 1000px) {
  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
