:root {
  --green: #4ce48a; --ink: #0b0d0c; --paper: #f5f6f4; --white: #ffffff; --grey: #5d635f; --rule: #0b0d0c;
  --up: #0f9d4f; --down: #d93a3a;
  --sans: 'Archivo', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--green); color: var(--ink); font: 450 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
em { font-style: normal; font-weight: 700; }
code { font-family: var(--mono); font-weight: 700; }
h1, h2 { font-stretch: 112%; font-weight: 900; letter-spacing: -.02em; margin: 0; }

.cabar { display: flex; gap: 12px; justify-content: center; padding: 10px 16px; background: var(--ink); color: var(--green); font: 700 13px var(--mono); cursor: pointer; white-space: nowrap; overflow: hidden; }
.cabar span { overflow: hidden; text-overflow: ellipsis; color: var(--paper); }

.top { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; border-bottom: 3px solid var(--rule); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-stretch: 112%; font-size: 20px; text-decoration: none; }
.brand img { border-radius: 8px; }
.top nav { display: flex; gap: 24px; font-weight: 700; font-size: 15px; }
.top nav a { text-decoration: none; border-bottom: 2px solid transparent; }
.top nav a:hover { border-color: var(--ink); }

/* hero */
.hero { display: grid; grid-template-columns: 1.15fr .85fr; align-items: center; gap: 24px; padding: 72px 40px 80px; max-width: 1360px; margin: 0 auto; }
.pitch, .art { min-width: 0; }
h1 { font-size: clamp(42px, 5.6vw, 86px); line-height: .94; }
.lede { font-size: 21px; max-width: 560px; margin: 26px 0 30px; }
.cable { display: flex; max-width: 560px; border: 3px solid var(--ink); background: var(--ink); }
.cable code { flex: 1; min-width: 0; padding: 16px 20px; color: var(--green); font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cable button { appearance: none; border: 0; cursor: pointer; background: var(--paper); color: var(--ink); font: 800 16px var(--sans); font-stretch: 112%; padding: 0 28px; }
.cable button:hover { background: var(--white); }
.fine { margin: 14px 0 0; font-weight: 600; font-size: 15px; }

.art { width: 100%; height: auto; overflow: visible; }
.wire { fill: none; stroke: var(--ink); stroke-width: 18; stroke-linecap: round; }
.plug { fill: var(--ink); animation: plugin 1.1s cubic-bezier(.3, 1.4, .5, 1) .3s both; }
.zap path { stroke: var(--ink); stroke-width: 7; stroke-linecap: round; animation: zap .5s 1.2s both; }
@keyframes plugin { from { transform: translateX(-70px); } to { transform: none; } }
@keyframes zap { from { opacity: 0; } 40% { opacity: 1; } to { opacity: 1; } }

/* sections */
section h2 { font-size: clamp(34px, 4.4vw, 60px); line-height: 1; }
.steps { background: var(--ink); color: var(--paper); padding: 72px 40px; }
.steps h2 { color: var(--green); max-width: 1280px; margin: 0 auto 40px; }
.steps ol { list-style: none; margin: 0 auto; padding: 0; max-width: 1280px; display: grid; grid-template-columns: repeat(3, 1fr); }
.steps li { padding: 0 32px 0 0; margin-right: 32px; border-right: 2px solid #2b302c; min-width: 0; }
.steps li:last-child { border: 0; margin: 0; }
.steps li b { display: block; font: 900 64px/1 var(--sans); font-stretch: 112%; color: var(--green); margin-bottom: 14px; }
.steps li p { margin: 0; font-size: 18px; color: #c9cec9; }
.steps li em { color: var(--paper); }
.steps li code { color: var(--green); word-break: break-all; }
.steps .note { max-width: 1280px; margin: 40px auto 0; color: #8b928c; font-size: 15px; }
.steps .note em { color: #c9cec9; }

/* live preview: a plain chat window on paper */
.preview { background: var(--paper); display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; padding: 80px 40px; border-top: 3px solid var(--rule); }
.preview > * { min-width: 0; }
.side { max-width: 460px; justify-self: end; }
.side p { margin: 20px 0 28px; color: #3b403c; }
.qs { display: flex; flex-direction: column; gap: 10px; }
.qs button { appearance: none; text-align: left; cursor: pointer; border: 3px solid var(--ink); background: transparent; color: var(--ink); padding: 14px 18px; font: 700 17px var(--sans); }
.qs button.on { background: var(--ink); color: var(--green); }
.window { background: var(--white); border: 3px solid var(--ink); max-width: 720px; box-shadow: 10px 10px 0 var(--ink); }
.window .bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 2px solid #e6e8e6; }
.window .bar span { width: 11px; height: 11px; border-radius: 50%; background: #d8dbd8; }
.window .bar small { margin-left: auto; font: 700 12px var(--mono); color: var(--grey); }
.convo { padding: 26px 28px 30px; font-size: 16px; }
.you { margin-left: auto; width: fit-content; max-width: 85%; background: #f0f1f0; border-radius: 20px; padding: 10px 18px; }
.used { margin: 22px 0 10px; font-size: 13px; font-weight: 600; color: var(--grey); }
.used::before { content: ''; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--green); margin-right: 8px; border: 1.5px solid var(--ink); vertical-align: 1px; }
.reply p { margin: 0 0 12px; }
.reply .wait { color: var(--grey); }
.reply ol { margin: 0; padding-left: 22px; }
.reply li { padding: 6px 0; }
.reply li a { font-weight: 800; text-decoration: none; border-bottom: 2px solid var(--green); }
.reply li span { color: #3b403c; }
.reply .up { color: var(--up); font-weight: 700; } .reply .down { color: var(--down); font-weight: 700; }
.reply .hid { margin-top: 12px; color: var(--grey); font-size: 14px; }

/* questions as a menu */
.ask { padding: 80px 40px; border-top: 3px solid var(--rule); }
.ask h2, .ask .sub, .menu { max-width: 1280px; margin-left: auto; margin-right: auto; }
.ask .sub { margin-top: 12px; margin-bottom: 32px; font-weight: 600; }
.menu { list-style: none; padding: 0; border-top: 3px solid var(--ink); }
.menu button { appearance: none; width: 100%; display: flex; justify-content: space-between; align-items: baseline; gap: 24px; padding: 18px 4px; border: 0; border-bottom: 2px solid var(--ink); background: transparent; color: var(--ink); cursor: pointer; text-align: left; font: inherit; }
.menu button span { font-weight: 800; font-size: 22px; font-stretch: 106%; }
.menu button small { font-size: 15px; text-align: right; color: #1d3a27; }
.menu button:hover { background: var(--ink); color: var(--green); padding-left: 16px; padding-right: 16px; }
.menu button:hover small { color: var(--paper); }

footer { background: var(--ink); color: #8b928c; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 28px 40px; font-size: 14px; }
footer .brand { color: var(--paper); font-size: 17px; }
footer p { margin: 0; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: var(--green); font-weight: 800; padding: 12px 22px; z-index: 30; }

@media (prefers-reduced-motion: reduce) { .plug, .zap path { animation: none; } }
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 44px; }
  .art { max-width: 560px; }
  .steps ol { grid-template-columns: 1fr; gap: 32px; }
  .steps li { border: 0; margin: 0; padding: 0; }
  .preview { grid-template-columns: 1fr; gap: 36px; }
  .side { justify-self: start; }
  .menu button { flex-direction: column; gap: 4px; }
  .menu button small { text-align: left; }
}
@media (max-width: 560px) {
  .top, .hero, .steps, .preview, .ask, footer { padding-left: 16px; padding-right: 16px; }
  .top nav a:not(:last-child) { display: none; }
  .lede { font-size: 18px; }
  .cable code { font-size: 15px; padding: 14px 14px; }
  .cable button { padding: 0 18px; }
  .convo { padding: 20px 16px; }
  .window { box-shadow: 6px 6px 0 var(--ink); }
  .menu button span { font-size: 19px; }
  footer { flex-direction: column; align-items: flex-start; }
}
