/* One centered column, five steps, one job per screen. Plain and readable on a laptop. */
:root {
  --bg: #f4f6f7; --surface: #ffffff; --ink: #17222a; --muted: #5b6a73; --line: #d9e0e4;
  --accent: #0e6b68; --accent-ink: #ffffff; --accent-soft: #e2f1f0;
  --warn-soft: #fff4d6; --warn-ink: #6b4b00; --bad-soft: #fde8e6; --bad-ink: #8a1f17;
  --font: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #12191d; --surface: #1a242a; --ink: #e8eef1; --muted: #9db0ba; --line: #2c3a42;
    --accent: #4cc4be; --accent-ink: #082725; --accent-soft: #17383a; --warn-soft: #3a3115; --warn-ink: #f0d58a; --bad-soft: #3d1f1c; --bad-ink: #f4b4ad;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #12191d; --surface: #1a242a; --ink: #e8eef1; --muted: #9db0ba; --line: #2c3a42;
  --accent: #4cc4be; --accent-ink: #082725; --accent-soft: #17383a; --warn-soft: #3a3115; --warn-ink: #f0d58a; --bad-soft: #3d1f1c; --bad-ink: #f4b4ad;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.55; padding: 24px 16px 64px; }
main { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 20px; }
h1 { font-size: 22px; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: 20px; margin: 0; text-wrap: balance; }
h3 { margin: 0; font-size: 16px; line-height: 1.4; }
p { margin: 0; }
.muted { color: var(--muted); font-size: 14px; }
.banner { border-radius: 8px; padding: 8px 12px; font-size: 13px; background: var(--warn-soft); color: var(--warn-ink); }
.banner.live { background: var(--bad-soft); color: var(--bad-ink); }
.error { border-radius: 8px; padding: 10px 12px; background: var(--bad-soft); color: var(--bad-ink); font-size: 14px; }
ol.steps { list-style: none; margin: 0; padding: 0; display: flex; gap: 6px; flex-wrap: wrap; }
ol.steps li { flex: 1 1 110px; font-size: 13px; color: var(--muted); border-top: 3px solid var(--line); padding-top: 6px; }
ol.steps li.done, ol.steps li.now { border-top-color: var(--accent); color: var(--ink); }
ol.steps li.now { font-weight: 600; }
section.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 22px; display: flex; flex-direction: column; gap: 16px; }
label { font-weight: 600; font-size: 14px; }
input[type=text], textarea { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
textarea { min-height: 120px; resize: vertical; }
input:focus-visible, textarea:focus-visible, button:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.spread { justify-content: space-between; }
button { font: inherit; font-weight: 600; border-radius: 8px; padding: 10px 16px; cursor: pointer; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
button.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
button:disabled { opacity: 0.45; cursor: not-allowed; }
button.link { border: 0; background: none; padding: 6px 2px; color: var(--muted); font-weight: 500; text-decoration: underline; }
.cards, .hooks { display: flex; flex-direction: column; gap: 12px; }
.card { border: 1px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.tag { display: inline-block; font-size: 12px; font-weight: 600; background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 2px 10px; width: fit-content; }
dl.facts { margin: 0; display: grid; grid-template-columns: 90px 1fr; gap: 6px 12px; font-size: 14px; }
dl.facts dt { color: var(--muted); }
dl.facts dd { margin: 0; }
.hook { text-align: left; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; background: var(--bg); }
.hook[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--accent-soft); }
.hook .line { font-size: 18px; font-weight: 600; line-height: 1.35; }
.hook .why { font-weight: 400; font-size: 14px; color: var(--muted); }
.progress { display: flex; flex-direction: column; gap: 8px; padding: 14px; border: 1px dashed var(--line); border-radius: 10px; }
.bar { height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 40%; background: var(--accent); border-radius: 999px; animation: slide 1.1s ease-in-out infinite; }
@keyframes slide { 0% { margin-left: -40%; } 100% { margin-left: 100%; } }
@media (prefers-reduced-motion: reduce) { .bar i { animation: none; width: 100%; } }
.q { display: flex; flex-direction: column; gap: 8px; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { font-weight: 500; font-size: 14px; border-radius: 999px; padding: 8px 14px; background: var(--bg); text-align: left; }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.post { white-space: pre-wrap; border: 1px solid var(--line); border-radius: 10px; padding: 18px; background: var(--bg); line-height: 1.6; }
.post .first { font-weight: 700; background: var(--accent-soft); border-radius: 4px; padding: 0 3px; }
.checks { display: flex; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.checks span { background: var(--accent-soft); color: var(--accent); border-radius: 999px; padding: 3px 10px; font-weight: 600; }
.counter { font-size: 13px; color: var(--muted); }
.counter.ok { color: var(--accent); font-weight: 600; }
.note { background: var(--warn-soft); color: var(--warn-ink); border-radius: 8px; padding: 10px 12px; font-size: 14px; }
.extra { display: flex; flex-direction: column; gap: 10px; border-top: 1px solid var(--line); padding-top: 16px; }
.hook.small .line { font-size: 16px; font-weight: 500; }
ul.tags { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
ul.tags a { color: var(--accent); }
footer { font-size: 13px; color: var(--muted); }

/* ---- shell: login and the top bar ---- */
:root { --lane-a: #2457a6; --lane-a-soft: #e4ecf8; --lane-b: #a85d0a; --lane-b-soft: #fbeedb; --ok: #1f7a4d; --code: #eef1f0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --lane-a: #86adf0; --lane-a-soft: #1b2a45; --lane-b: #f0b46a; --lane-b-soft: #3a2a12; --ok: #5fcf97; --code: #0f1412; } }
:root[data-theme="dark"] { --lane-a: #86adf0; --lane-a-soft: #1b2a45; --lane-b: #f0b46a; --lane-b-soft: #3a2a12; --ok: #5fcf97; --code: #0f1412; }
input[type=email], select { width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; }
.login { max-width: 420px; padding-top: 6vh; }
.codebox { font: 600 28px/1 ui-monospace, Menlo, monospace; letter-spacing: 0.4em; text-align: center; }
.stack { display: flex; flex-direction: column; gap: 14px; }
.topbar { max-width: 1040px; margin: 0 auto 18px; display: flex; align-items: center; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.topbar nav { display: flex; gap: 4px; }
.topbar nav a { padding: 6px 12px; border-radius: 8px; text-decoration: none; color: var(--muted); font-weight: 600; }
.topbar nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.topbar .spacer { flex: 1; }
.who { overflow-wrap: anywhere; }

/* ---- organic growth ---- */
main.wide { max-width: 1040px; }
.pick { display: flex; align-items: center; gap: 8px; }
.pick select { width: auto; max-width: 100%; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.kpi { background: var(--surface); padding: 10px 14px; min-width: 0; }
.kpi b { display: block; font: 600 20px ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 11.5px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs a { padding: 9px 14px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; }
.tabs a[aria-current="page"] { color: var(--ink); border-color: var(--ink); }
.pill { display: inline-block; font-size: 12px; font-weight: 600; padding: 2px 9px; border-radius: 999px; background: var(--code); color: var(--muted); }
.pill.a { background: var(--lane-a-soft); color: var(--lane-a); } .pill.b { background: var(--lane-b-soft); color: var(--lane-b); }
.pill.ok { color: var(--ok); } .pill.bad { background: var(--bad-soft); color: var(--bad-ink); margin-left: 6px; }
.ocard { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; }
.topic { font-size: 17px; line-height: 1.35; font-weight: 650; text-wrap: pretty; }
.hookline { border-left: 3px solid var(--ink); padding-left: 12px; }
.hookline small { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.07em; color: var(--muted); font-weight: 600; }
.src { background: var(--code); border-radius: 6px; padding: 10px 12px; display: grid; gap: 8px; font-size: 14px; overflow-wrap: anywhere; }
.src.a { border-left: 3px solid var(--lane-a); } .src.b { border-left: 3px solid var(--lane-b); }
.parts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.meter { height: 6px; background: var(--line); border-radius: 3px; margin-top: 3px; overflow: hidden; }
.meter i { display: block; height: 100%; background: var(--ink); } .src.a .meter i { background: var(--lane-a); } .src.b .meter i { background: var(--lane-b); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px 22px; }
.fields > div { min-width: 0; } .fields p, .ocard p { font-size: 14px; overflow-wrap: anywhere; }
.fields h3, .ocard h3 { font-size: 11.5px; letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.italic { font-style: italic; }
.flag { font-size: 13px; background: var(--bad-soft); color: var(--bad-ink); border-radius: 6px; padding: 7px 10px; }
.tablewrap { overflow-x: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.tablewrap table { width: 100%; min-width: 620px; border-collapse: collapse; font-size: 13.5px; }
.tablewrap th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); padding: 7px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tablewrap td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; min-width: 0; overflow-wrap: anywhere; }
.tablewrap td.n { font: 400 12.5px ui-monospace, Menlo, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim { display: inline-flex; align-items: center; gap: 8px; } .sim b { display: inline-block; min-width: 1.5em; font-weight: 500; }
.sim i { display: inline-block; height: 6px; border-radius: 3px; background: var(--lane-a); }
.funnel { display: flex; height: 16px; border-radius: 4px; overflow: hidden; background: var(--line); min-width: 160px; } .funnel i { display: block; height: 100%; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; }
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
main.wide code { font: 400 12.5px ui-monospace, Menlo, monospace; background: var(--code); padding: 1px 6px; border-radius: 4px; overflow-wrap: anywhere; }
main.wide details { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
main.wide details > summary { cursor: pointer; padding: 10px 14px; font-weight: 600; }
.call { margin-top: 8px; } .call > summary { list-style: none; display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 4px 12px; align-items: baseline; }
.call > summary::-webkit-details-marker { display: none; }
.callname { font-weight: 600; overflow-wrap: anywhere; } .mtag { margin-left: 8px; font: 500 11px ui-monospace, Menlo, monospace; padding: 1px 7px; border-radius: 4px; border: 1px solid currentColor; background: none; }
.mtag.cheap { color: var(--lane-a); } .mtag.big { color: var(--lane-b); }
.meta { font: 400 12px ui-monospace, Menlo, monospace; text-align: right; font-variant-numeric: tabular-nums; }
.callbody { padding: 12px 14px; display: flex; flex-direction: column; gap: 12px; border-top: 1px solid var(--line); }
.callbody pre { margin: 0; background: var(--code); border: 1px solid var(--line); border-radius: 6px; padding: 10px 12px; font: 400 12.5px/1.55 ui-monospace, Menlo, monospace; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 420px; overflow: auto; }
.blockhead { display: flex; gap: 10px; align-items: center; font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
button.tiny { font-size: 11px; padding: 1px 8px; font-weight: 500; }
.phase { margin: 18px 0 6px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); font-weight: 600; }
@media (max-width: 560px) { .parts { grid-template-columns: 1fr; } .call > summary { grid-template-columns: 24px minmax(0, 1fr); } .meta { grid-column: 2; text-align: left; } }

/* points of the post (step 3) */
.pointlist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.pointlist li { display: flex; gap: 8px; align-items: flex-start; }
.pt { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; cursor: pointer; }
.pt input { margin-top: 4px; }
.pointlist .src { font-size: 13px; }
.pointlist.own .owntext { flex: 1; }

/* feedback: thumbs and an optional comment */
.feedback { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.feedback .fb-q { font-weight: 500; font-size: 14px; }
.feedback.compact .fb-q { font-weight: 400; color: var(--muted); }
.thumb { font-size: 18px; line-height: 1; padding: 6px 10px; border-radius: 8px; background: var(--bg); }
.thumb[aria-pressed="true"] { border-color: var(--accent); box-shadow: 0 0 0 2px var(--accent); background: var(--accent-soft); }
.fb-comment { flex-basis: 100%; display: flex; flex-direction: column; gap: 8px; }
.fb-msg { font-size: 14px; }
