/* ============================================================
   trades.withquiet.com
   Editorial / flowchart-style billboard page
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --ink: #1a1918;
  --ink-mid: #4a4845;
  --ink-light: #807d75;
  --ink-faint: #d8d2c8;
  --paper: #fdfdfc;
  --mono: 'DM Mono', monospace;
  --serif: 'Libre Baskerville', serif;
}

html { scroll-behavior: smooth; }

body {
  background: var(--paper);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

.page {
  max-width: 720px;
  margin: 0 auto;
  padding: 2.5rem clamp(1.25rem, 5vw, 2.5rem) 3rem;
}

/* ── SMALL MASTHEAD ── */
.mast {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-bottom: 0.85rem;
  border-bottom: 1.5px solid var(--ink);
  margin-bottom: 0.6rem;
}

.mast-mark {
  font-family: var(--serif);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  text-decoration: none;
}

.mast-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-light);
}

.mast-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-light);
  margin-bottom: 2.5rem;
}

/* ── FLOW ── */
.flow {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* The vertical spine of the flow — drawn between nodes */
.spine {
  width: 1.5px;
  background: var(--ink);
  flex-shrink: 0;
}
.spine-short { height: 38px; }
.spine-tall  { height: 56px; }

/* ── NODE — base (statement nodes — boxed problems) ── */
.node {
  position: relative;
  width: 100%;
  max-width: 540px;
  border: 1.5px solid var(--ink);
  border-radius: 14px;
  background: var(--paper);
  padding: 1.5rem 1.65rem;
  opacity: 0;
  transform: translateY(8px);
  animation: rise 0.5s ease forwards;
}

/* Stagger the rise of each node */
.node:nth-of-type(1) { animation-delay: 0.05s; }
.node:nth-of-type(2) { animation-delay: 0.15s; }
.node:nth-of-type(3) { animation-delay: 0.25s; }
.node:nth-of-type(4) { animation-delay: 0.35s; }
.node:nth-of-type(5) { animation-delay: 0.45s; }
.node:nth-of-type(6) { animation-delay: 0.55s; }

.node-head {
  font-family: var(--serif);
  font-weight: 700;
  font-size: clamp(22px, 4.2vw, 28px);
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--ink);
}

.node-sub {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink-mid);
  line-height: 1.55;
  margin-top: 0.6rem;
  font-style: italic;
}

/* ── CURIOSITY NODES — outside the box, fragment only ── */
.node-curiosity {
  border: none;
  background: transparent;
  padding: 0.5rem 0.5rem;
  text-align: center;
}

.node-curiosity .node-head {
  font-style: italic;
  font-weight: 400;
  color: var(--ink-mid);
}

/* ── FINAL NODE — the form ── */
.node-final {
  border: 2px solid var(--ink);
  border-radius: 14px;
  background: var(--ink);
  color: var(--paper);
  padding: 1.85rem 1.85rem 1.65rem;
  text-align: left;
}

.node-final .node-head {
  color: var(--paper);
  font-style: italic;
  font-weight: 400;
  margin-bottom: 0.35rem;
}

.node-final .node-sub {
  color: #c9c5bb;
  margin-top: 0;
  margin-bottom: 1.4rem;
  font-style: normal;
}

/* ── FORM ── */
.form {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b4b0a6;
}

.field input,
.field textarea {
  background: transparent;
  border: none;
  border-bottom: 1px solid #6a6862;
  padding: 6px 0 7px;
  font-family: var(--serif);
  font-size: 15px;
  color: var(--paper);
  outline: none;
  transition: border-color 0.15s;
  width: 100%;
  border-radius: 0;
}

.field input::placeholder,
.field textarea::placeholder { color: #6a6862; }

.field input:focus,
.field textarea:focus { border-bottom-color: var(--paper); }

.row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

/* Radio group */
.prefer {
  margin-top: 0.5rem;
  padding-top: 1rem;
  border-top: 1px solid #3a3835;
}

.prefer-label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b4b0a6;
  margin-bottom: 0.7rem;
}

.prefer-options {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prefer-options label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-family: var(--serif);
  font-size: 14px;
  color: var(--paper);
  cursor: pointer;
  line-height: 1.45;
  padding: 4px 0;
}

.prefer-options input[type="radio"] {
  appearance: none;
  width: 14px;
  height: 14px;
  border: 1.5px solid #b4b0a6;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 3px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  position: relative;
}

.prefer-options input[type="radio"]:checked {
  border-color: var(--paper);
}
.prefer-options input[type="radio"]:checked::after {
  content: '';
  position: absolute;
  inset: 2.5px;
  background: var(--paper);
  border-radius: 50%;
}

.submit {
  margin-top: 1.1rem;
  align-self: flex-start;
  background: var(--paper);
  color: var(--ink);
  border: none;
  padding: 10px 22px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  border-radius: 999px;
  transition: background 0.15s, color 0.15s;
}
.submit:hover { background: #e8e4da; }
.submit:disabled { cursor: wait; opacity: 0.6; }

/* Success / error */
.panel-success,
.panel-error {
  padding-top: 0.5rem;
}

.panel-success p {
  font-family: var(--serif);
  font-size: 15px;
  color: var(--paper);
  line-height: 1.55;
}
.panel-error p {
  font-family: var(--mono);
  font-size: 11px;
  color: #f0a890;
  letter-spacing: 0.04em;
}

/* ── FOOTER ── */
.foot {
  margin-top: 2.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--ink-faint);
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.foot-link {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--ink-mid);
  text-decoration: none;
  border-bottom: 1px solid var(--ink-faint);
  padding-bottom: 2px;
  transition: color 0.15s, border-color 0.15s;
}
.foot-link:hover { color: var(--ink); border-color: var(--ink); }

.foot-mark {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  color: var(--ink-light);
  text-transform: uppercase;
}

/* ── ANIMATION ── */
@keyframes rise {
  to { opacity: 1; transform: translateY(0); }
}

/* ── RESPONSIVE — collapse to clean vertical stack on mobile ── */
@media (max-width: 600px) {
  .spine-tall { height: 38px; }
  .spine-short { height: 28px; }
  .node { padding: 1.25rem 1.25rem; }
  .node-curiosity { padding: 0.5rem 0.5rem; }
  .node-final { padding: 1.5rem 1.4rem; }
  .row-2 { grid-template-columns: 1fr; gap: 0.7rem; }
}