/* list2flow.com. Created: 14 Nov 2026 | v1.0
   The app's own colours and type: Schibsted Grotesk for headings, Atkinson Hyperlegible Next for reading.
   Box-type colours (step, question, document, fixed, ask for help) are the same ones the app uses. */
:root {
  --bg: #F2F4F7; --surface: #FFFFFF; --sunk: #E8ECF1; --ink: #17202B; --muted: #55616F; --line: #D3DAE2;
  --accent: #2742C4; --accent-ink: #FFFFFF; --accent-soft: #E3E8FB; --err: #BF3129; --ok: #1F7A4B;
  --t-step: #3E4B5C; --t-step-bg: #E8ECF1;
  --t-question: #935D00; --t-question-bg: #FBEFD6; --t-q-fill: #F5B841;
  --t-doc: #1C66A6; --t-doc-bg: #E0EDF8;
  --t-jump: #6B3DBA; --t-jump-bg: #EEE6FA;
  --t-fixed: #1F7A4B; --t-fixed-bg: #E0F1E7;
  --t-escalate: #BF3129; --t-escalate-bg: #FBE6E4;
  --f-display: "Schibsted Grotesk", "Helvetica Neue", Arial, sans-serif;
  --f-body: "Atkinson Hyperlegible Next", "Atkinson Hyperlegible", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 34rem;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #10151B; --surface: #19202A; --sunk: #141A22; --ink: #E5EAF0; --muted: #A0ABB8; --line: #2D3742;
    --accent: #8FA3FF; --accent-ink: #0D1330; --accent-soft: #232B4A; --err: #F2837A; --ok: #62C990;
    --t-step: #AEBACA; --t-step-bg: #232C37;
    --t-question: #F0B652; --t-question-bg: #372B15; --t-q-fill: #F0B652;
    --t-doc: #6DB5F0; --t-doc-bg: #162A3C;
    --t-jump: #B898F3; --t-jump-bg: #2B2240;
    --t-fixed: #62C990; --t-fixed-bg: #16301F;
    --t-escalate: #F2837A; --t-escalate-bg: #3B1D1B;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #10151B; --surface: #19202A; --sunk: #141A22; --ink: #E5EAF0; --muted: #A0ABB8; --line: #2D3742;
  --accent: #8FA3FF; --accent-ink: #0D1330; --accent-soft: #232B4A; --err: #F2837A; --ok: #62C990;
  --t-step: #AEBACA; --t-step-bg: #232C37;
  --t-question: #F0B652; --t-question-bg: #372B15; --t-q-fill: #F0B652;
  --t-doc: #6DB5F0; --t-doc-bg: #162A3C;
  --t-jump: #B898F3; --t-jump-bg: #2B2240;
  --t-fixed: #62C990; --t-fixed-bg: #16301F;
  --t-escalate: #F2837A; --t-escalate-bg: #3B1D1B;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.55 var(--f-body); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 max(16px, env(safe-area-inset-left, 0px)); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--surface); padding: 8px 12px; border-radius: 8px; }
.skip:focus { left: 16px; z-index: 10; }

/* Top */
.top { padding-block: 22px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font: 800 21px/1 var(--f-display); letter-spacing: -0.01em; }
.brand img { width: 32px; height: 32px; border-radius: 8px; }

/* Hero: words on the left, the list that becomes a flow on the right */
.hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 5vw, 72px); align-items: start; padding-block: clamp(20px, 5vw, 64px) clamp(48px, 7vw, 96px); }
h1 { font: 800 clamp(36px, 5.4vw, 62px)/1.02 var(--f-display); letter-spacing: -0.025em; margin: 0 0 22px; max-width: 13ch; text-wrap: balance; }
.lede { font-size: clamp(18px, 1.6vw, 20px); color: var(--ink); max-width: var(--measure); margin: 0 0 28px; }
.lede + .lede { margin-top: -14px; color: var(--muted); font-size: 17px; }

/* The form */
.join { max-width: 30rem; }
.join label.field { display: block; font-weight: 600; margin-bottom: 6px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; }
.row input[type=email] { flex: 1 1 14rem; min-width: 0; height: 52px; padding: 0 16px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--surface); font-size: 17px; }
.row input[type=email]:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.btn { height: 52px; padding: 0 22px; border: 0; border-radius: 12px; background: var(--accent); color: var(--accent-ink); font-weight: 700; cursor: pointer; white-space: nowrap; }
a.btn { display: inline-flex; align-items: center; text-decoration: none; }
.btn:hover { filter: brightness(1.08); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn.quiet { background: transparent; color: var(--accent); border: 1.5px solid var(--line); height: 44px; padding: 0 16px; }
.note { color: var(--muted); font-size: 15px; margin: 10px 0 0; }
.msg { margin: 10px 0 0; font-size: 15px; font-weight: 600; }
.msg.bad { color: var(--err); }
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.done h2 { font: 800 26px/1.15 var(--f-display); margin: 0 0 6px; display: flex; align-items: center; gap: 10px; }
.done h2 svg { width: 26px; height: 26px; flex: none; color: var(--t-fixed); }
.done > p { margin: 0 0 18px; color: var(--muted); }
.more { display: grid; gap: 14px; padding: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
.more label { font-weight: 600; display: block; margin-bottom: 6px; }
.more textarea, .more select { width: 100%; border: 1.5px solid var(--line); border-radius: 10px; background: var(--bg); padding: 10px 12px; }
.more textarea { min-height: 76px; resize: vertical; }
.more select { height: 44px; }

/* The demo: one panel, a list or a flow */
.demo { margin: 0; min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 14px 18px; box-shadow: 0 1px 0 var(--line), 0 18px 40px -28px rgba(23, 32, 43, 0.35); }
.demo-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 2px 4px 10px; }
.demo-title { font-weight: 700; font-size: 15px; color: var(--muted); }
.seg { display: inline-flex; background: var(--sunk); border-radius: 10px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 8px; font-weight: 600; font-size: 15px; cursor: pointer; color: var(--muted); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12); }
.board { position: relative; height: 420px; border-radius: 14px; background:
  radial-gradient(circle at 1px 1px, var(--line) 1px, transparent 1.4px) 0 0 / 18px 18px, var(--bg); overflow: hidden; }
.board svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.board .edge { fill: none; stroke: var(--muted); stroke-width: 2; stroke-linejoin: round; transition: stroke-dashoffset 0.6s ease 0.45s, stroke 0.2s; }
.board .arrow { transition: opacity 0.3s ease 0.9s; }
.board[data-view="list"] .arrow { opacity: 0; transition: none; }
.board .edge.walked { stroke: var(--accent); stroke-width: 2.5; }
.board .elabel { font: 700 12px var(--f-body); fill: var(--muted); transition: opacity 0.3s ease 0.8s; }
.board[data-view="list"] .edge { stroke-dashoffset: var(--len); transition: none; }
.board[data-view="list"] .elabel { opacity: 0; transition: none; }
.node { position: absolute; display: flex; align-items: center; gap: 8px; width: 42%; min-height: 44px; padding: 8px 12px; border: 2px solid var(--c); background: var(--cb); color: var(--ink); border-radius: 10px;
  font-size: 14px; line-height: 1.3; font-weight: 600; transform: translate(-50%, -50%); left: var(--x); top: var(--y);
  transition: left 0.7s cubic-bezier(.2,.7,.2,1), top 0.7s cubic-bezier(.2,.7,.2,1), transform 0.7s cubic-bezier(.2,.7,.2,1), width 0.7s, background-color 0.3s, border-color 0.3s, box-shadow 0.2s; }
.node .glyph { flex: none; width: 14px; height: 14px; background: var(--c); transition: opacity 0.3s, width 0.5s, margin 0.5s; }
.node.t-step { --c: var(--t-step); --cb: var(--t-step-bg); }
.node.t-step .glyph { border-radius: 3px; }
.node.t-question { --c: var(--t-question); --cb: var(--t-question-bg); }
.node.t-question .glyph { background: var(--t-q-fill); transform: rotate(45deg) scale(0.82); border-radius: 2px; }
.node.t-fixed { --c: var(--t-fixed); --cb: var(--t-fixed-bg); border-radius: 22px; }
.node.t-fixed .glyph { border-radius: 7px; }
.node.t-escalate { --c: var(--t-escalate); --cb: var(--t-escalate-bg); border-radius: 22px; }
.node.t-escalate .glyph { border-radius: 7px; }
.node.on { box-shadow: 0 0 0 4px var(--surface), 0 0 0 7px var(--accent); }
.node.dim { opacity: 0.55; }
/* As a list: plain lines in a note, no shapes yet */
.board[data-view="list"] .node { left: 22px; top: calc(36px + var(--i) * 46px); transform: translate(0, -50%); width: calc(100% - 44px); border-color: transparent; background: transparent; font-size: 16px; font-weight: 400; box-shadow: none; opacity: 1; }
.board[data-view="list"] .node .glyph { opacity: 0; width: 0; margin-right: -8px; }
.board[data-view="list"] .node::before { content: "–"; color: var(--muted); }

/* Measuring, or the first switch to the list: no movement */
.board.instant .node, .board.instant .edge, .board.instant .elabel, .board.instant .glyph { transition: none !important; }

/* Running it */
.run { margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--sunk); min-height: 108px; }
.run p { margin: 0 0 10px; font-weight: 700; font-size: 17px; }
.run .say { font-weight: 400; color: var(--muted); font-size: 15px; margin-top: -6px; }
.run .answers { display: flex; flex-wrap: wrap; gap: 8px; }
.run .answers button { height: 40px; padding: 0 18px; border-radius: 10px; border: 1.5px solid var(--line); background: var(--surface); font-weight: 600; cursor: pointer; }
.run .answers button.go { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.run .answers button:hover { border-color: var(--accent); }

/* What it does: each point marked with the shape of the box it's about */
.what { padding-block: clamp(40px, 6vw, 80px); border-top: 1px solid var(--line); }
.what h2, .who h2 { font: 800 clamp(26px, 3vw, 34px)/1.1 var(--f-display); letter-spacing: -0.015em; margin: 0 0 28px; max-width: 22ch; }
.points { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 56px; }
.points li { display: grid; grid-template-columns: 40px 1fr; gap: 0 16px; }
.points h3 { font: 700 20px/1.25 var(--f-display); margin: 4px 0 6px; }
.points p { margin: 0; color: var(--muted); max-width: var(--measure); }
.shape { width: 40px; height: 40px; display: block; }
.shape svg { width: 40px; height: 40px; display: block; }
.shape svg * { stroke-width: 2.5; stroke-linejoin: round; }
.s-step { fill: var(--t-step-bg); stroke: var(--t-step); }
.s-question { fill: var(--t-question-bg); stroke: var(--t-question); }
.s-doc { fill: var(--t-doc-bg); stroke: var(--t-doc); }
.s-jump { fill: var(--t-jump-bg); stroke: var(--t-jump); }
.board .arrow { fill: var(--muted); }
.board .arrow.walked { fill: var(--accent); }

.who { padding-block: clamp(40px, 6vw, 72px); border-top: 1px solid var(--line); display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px 56px; align-items: end; }
.who p { margin: 0 0 14px; max-width: var(--measure); }
.who .again { justify-self: start; }

footer { border-top: 1px solid var(--line); padding-block: 28px 40px; color: var(--muted); font-size: 15px; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

/* The privacy page */
.doc { max-width: 40rem; padding-block: 24px 64px; }
.doc h1 { font-size: clamp(32px, 4vw, 44px); max-width: none; }
.doc h2 { font: 700 21px/1.25 var(--f-display); margin: 32px 0 8px; }
.doc p, .doc li { max-width: var(--measure); }

@media (max-width: 880px) {
  .hero, .who { grid-template-columns: 1fr; }
  .points { grid-template-columns: 1fr; gap: 28px; }
  h1 { max-width: 15ch; }
}
@media (max-width: 480px) {
  .board { height: 410px; }
  .node { width: 46%; font-size: 13px; padding: 7px 9px; }
  .board[data-view="list"] .node { font-size: 15px; }
  .row .btn { flex: 1 1 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}
