:root {
  --bg: #ffffff;
  --fg: #1a1a1a;
  --muted: #5a5f66;
  --accent: #c0392b;
  --link: #1a6fe0;
  --code-bg: #f4f4f4;
  --border: #e6e6e6;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #16181c;
    --fg: #e8e8e8;
    --muted: #9aa0a6;
    --accent: #ff6b5e;
    --link: #6ea8fe;
    --code-bg: #22262c;
    --border: #2d3138;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

main {
  max-width: 1080px;
  margin: 0 auto;
  padding: 4rem 1.25rem 4rem;
}

/* ---- two-column layout (stacks on narrow screens) ---- */
.cols {
  display: flex;
  gap: 3rem;
  align-items: flex-start;
}
.col-left { flex: 1 1 0; min-width: 0; }
.col-right { flex: 1.35 1 0; min-width: 0; padding-top: 1rem; }
.col-right .usps { margin-top: 0; }

@media (max-width: 900px) {
  .cols { flex-direction: column; gap: 0; }
  .col-right { padding-top: 0; }
  .col-right .usps { margin-top: 3rem; }
}

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

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  font-size: .9em;
}

p code, li code, .for-claude code {
  background: var(--code-bg);
  padding: .12rem .38rem;
  border-radius: 4px;
  word-break: break-word;
}

/* ---- hero ---- */
.hero { text-align: left; }

h1 {
  margin: 0 0 .35rem;
  font-size: 2.6rem;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.tagline {
  color: var(--muted);
  font-size: 1.15rem;
  margin: 0 0 2rem;
  max-width: 32rem;
}

/* ---- steps with copy boxes ---- */
.step { margin-top: 2.25rem; }
.step .label {
  margin: 0 0 .5rem;
  font-size: .9rem;
  color: var(--muted);
}
.step .label-claude {
  color: var(--accent);
  font-weight: 700;
}

/* off-screen but kept in the DOM/text — reinforcement for fetchers + screen readers */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  border: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}

.copybox {
  display: flex;
  align-items: stretch;
  gap: 1.25rem;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .85rem 1rem;
}
.copybox code {
  flex: 1 1 auto;
  background: none;
  padding: 0;
  align-self: center;
  word-break: break-word;
  text-wrap: balance;
  font-size: 1rem;
}
.copy {
  flex: 0 0 auto;
  align-self: center;
  border: none;
  background: none;
  color: var(--link);
  font-size: .8rem;
  font-family: inherit;
  line-height: 1;
  padding: 0;
  cursor: pointer;
}
.copy:hover { text-decoration: underline; }
.copy.copied { color: var(--accent); }

/* ---- For Claude (grey box under a label, like the human steps) ---- */
.for-claude {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: .85rem 1rem;
}
.for-claude p { margin: 0; font-size: .9rem; color: var(--muted); }
.for-claude code { background: none; padding: 0; word-break: break-all; }

/* ---- USPs (2-column grid, 3 + 2) ---- */
.usps { margin-top: 3rem; }
.usps h2 { font-size: 1.05rem; margin: 0 0 .5rem; }
.usps ul {
  list-style: none;
  margin: 0;
  padding: 0;
  column-count: 2;
  column-gap: 2rem;
}
.usps li {
  padding: 1rem 0;
  border-top: 1px solid var(--border);
  break-inside: avoid;
}
.usps strong { display: block; }
.usps span { color: var(--muted); font-size: .92rem; }

@media (max-width: 900px) {
  .usps ul { column-count: 1; }
}

/* ---- stats (compact, bottom of left column; wraps 2x2) ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem .9rem;
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.stats div { display: flex; flex-direction: column; }
.stats strong { font-size: 1.3rem; line-height: 1.1; letter-spacing: -0.01em; }
.stats span { color: var(--muted); font-size: .72rem; line-height: 1.25; margin-top: .15rem; }

/* ---- footer ---- */
footer {
  margin-top: 3.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: .88rem;
  text-align: left;
}
