/* Seedline: a league sign-up sheet on a bar wall.
   Marker yellow, ink, one electric blue. Hard borders, square corners, system fonts only. */
:root {
  --ink: #0e1726;
  --ink-soft: #2a3550;
  --muted: #475066;
  --yellow: #ffd23f;
  --yellow-soft: #fff1b8;
  --blue: #1d3fbb;
  --paper: #ffffff;
  --mist: #eef1f6;
  --err: #a4161a;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
  --bw: 3px;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 16px/1.5 var(--sans); color: var(--ink); background: var(--paper); }
h1, h2, h3, p, dl, dd, ol, figure { margin: 0; }
a { color: var(--blue); text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 3px; box-shadow: 0 0 0 6px var(--paper); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 8px; top: -60px; background: var(--ink); color: #fff; padding: 12px 16px; z-index: 10; }
.skip:focus { top: 8px; }
.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }

/* Header */
.bar { background: var(--ink); color: #fff; }
.bar-in { display: flex; align-items: center; justify-content: space-between; min-height: 52px; }
.brand { display: inline-flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; font-weight: 800; font-size: 19px; letter-spacing: -.01em; min-height: 44px; }
.brand-mark { width: 26px; height: 26px; color: var(--yellow); }
.bar-by { font-size: 13px; color: #cfd6e6; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 22px; font: 800 17px/1 var(--sans); border: var(--bw) solid var(--ink); border-radius: 2px; cursor: pointer; text-decoration: none; box-shadow: 4px 4px 0 var(--ink); transition: transform .08s, box-shadow .08s; }
.btn:hover { transform: translate(1px, 1px); box-shadow: 3px 3px 0 var(--ink); }
.btn:active { transform: translate(4px, 4px); box-shadow: 0 0 0 var(--ink); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-ink { background: var(--blue); color: #fff; }
.btn-quiet { background: var(--paper); color: var(--ink); }
.link-btn { background: none; border: 0; padding: 0; font: 700 15px/1.3 var(--sans); color: var(--blue); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 44px; }

/* Hero */
.hero { background: var(--yellow); border-bottom: var(--bw) solid var(--ink); padding: 20px 0 28px; }
.hero-grid { display: grid; gap: 20px; }
.eyebrow { font: 800 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px; }
.headline { font-size: 29px; line-height: 1.08; font-weight: 900; letter-spacing: -.025em; text-wrap: balance; }
.subhead { margin-top: 12px; font-size: 16px; line-height: 1.45; color: var(--ink); }
.hero-actions { margin-top: 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.btn-note { font-size: 14px; font-weight: 600; }
.terms { margin-top: 16px; display: flex; gap: 0; border: var(--bw) solid var(--ink); background: var(--paper); width: fit-content; max-width: 100%; }
.terms > div { padding: 6px 14px; border-left: 2px solid var(--ink); }
.terms > div:first-child { border-left: 0; }
.terms dt { font: 700 11px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.terms dd { font-weight: 800; font-size: 16px; }
.contrast-line { display: none; margin-top: 14px; font-size: 15px; }
.contrast-line a { color: var(--ink); font-weight: 700; }

/* Example poster */
.poster { position: relative; background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 14px 12px 12px; margin-top: 6px; }
.poster-tag { position: absolute; top: -14px; left: 12px; background: var(--ink); color: var(--yellow); font: 800 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 10px; }
.poster-title, .out-title { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin: 6px 0 10px; }
.poster-title strong, .out-title strong { font-size: 18px; font-weight: 900; letter-spacing: -.01em; }
.poster-title span, .out-title span { font: 600 12px/1.2 var(--mono); color: var(--muted); }
.print-foot-demo, .print-foot { margin-top: 10px; padding-top: 8px; border-top: 2px dashed var(--ink); font: 600 12px/1.3 var(--mono); }
.print-foot { display: none; }
.poster-caption { margin-top: 8px; font-size: 13px; color: var(--muted); }

/* Bracket */
.bracket { display: flex; gap: 16px; overflow-x: auto; padding: 2px 2px 8px; scroll-snap-type: x proximity; -webkit-overflow-scrolling: touch; }
.round { flex: 1 0 158px; display: flex; flex-direction: column; justify-content: space-around; gap: 10px; scroll-snap-align: start; }
.round-h { font: 800 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); padding-bottom: 2px; }
.match { position: relative; border: 2px solid var(--ink); background: var(--paper); }
.round:not(:last-child) .match::after { content: ""; position: absolute; left: 100%; top: 50%; width: 16px; border-top: 2px solid var(--ink); }
.team { display: grid; grid-template-columns: 18px 1fr auto; align-items: center; gap: 6px; min-height: 34px; padding: 0 8px; font-size: 13.5px; color: var(--muted); }
.team + .team { border-top: 1px solid var(--ink); }
.team .seed { font: 700 11px/1 var(--mono); color: var(--muted); }
.team .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.team .sc { font: 800 13px/1 var(--mono); min-width: 18px; text-align: right; }
.team.win { background: var(--yellow); color: var(--ink); font-weight: 800; }
.team.win .seed { color: var(--ink); }
.bracket--tap .team { min-height: 44px; font-size: 14.5px; cursor: pointer; }
.bracket--tap .round { flex-basis: 172px; }
.bracket--tap .team:hover { background: var(--yellow-soft); }
.bracket--tap .team.win:hover { background: var(--yellow); }

/* Sections */
.section { padding: 36px 0; border-bottom: var(--bw) solid var(--ink); }
.section-head { margin-bottom: 18px; }
.section-title { font-size: 25px; line-height: 1.15; font-weight: 900; letter-spacing: -.02em; }
.section-lede { margin-top: 8px; color: var(--ink-soft); max-width: 62ch; }

/* Tool */
.tool { background: var(--mist); }
.tool-grid { display: grid; gap: 22px; }
.form { background: var(--paper); border: var(--bw) solid var(--ink); padding: 16px; display: grid; gap: 18px; align-content: start; }
.field { margin: 0; padding: 0; border: 0; min-width: 0; }
.field label, .field legend, .label-row label { font-weight: 800; font-size: 15px; display: block; padding: 0; margin-bottom: 6px; }
.hint { font-weight: 500; color: var(--muted); font-size: 13px; margin-left: 4px; }
.label-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 0 12px; }
input[type=text], textarea { width: 100%; font: 500 17px/1.35 var(--sans); color: var(--ink); background: #fff; border: 2px solid var(--ink); border-radius: 2px; padding: 12px; min-height: 48px; }
textarea { resize: vertical; min-height: 180px; }
::placeholder { color: #5d6780; opacity: 1; }
.count { margin-top: 6px; font: 600 12.5px/1.3 var(--mono); color: var(--muted); }
.choices { display: grid; gap: 8px; }
.choices legend { margin-bottom: 8px; }
.choice { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; margin: 0 !important; padding: 8px 12px; border: 2px solid var(--ink); border-radius: 2px; cursor: pointer; background: #fff; font-weight: 400 !important; }
.choice input { appearance: none; -webkit-appearance: none; flex: none; width: 22px; height: 22px; margin: 0; border: 2px solid var(--ink); border-radius: 50%; background: #fff; display: grid; place-content: center; }
.choice input::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--ink); transform: scale(0); transition: transform .08s; }
.choice input:checked::before { transform: scale(1); }
.choice:has(input:checked) { background: var(--yellow); box-shadow: 3px 3px 0 var(--ink); }
.choice:has(input:focus-visible) { outline: 3px solid var(--blue); outline-offset: 3px; }
.choice strong { display: block; font-size: 16px; font-weight: 800; }
.choice em { display: block; font-style: normal; font-size: 13.5px; color: var(--ink-soft); }
.choices-2 { grid-template-columns: 1fr 1fr; }
.choices-2 .choice { flex-direction: row; }
.error { color: var(--err); font-weight: 700; }
.form-actions .btn { width: 100%; }
.form-note { font-size: 13.5px; color: var(--muted); }

.tool-out { min-width: 0; }
.out-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 2px 12px; margin-bottom: 8px; }
.out-head h3 { font-size: 18px; font-weight: 900; }
.out-head p { font: 600 12.5px/1.3 var(--mono); color: var(--muted); }
.out-sheet { background: var(--paper); border: var(--bw) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 12px; min-width: 0; }
.out-actions { margin-top: 18px; display: grid; gap: 12px; }
.out-note { margin-top: 12px; font-size: 14px; color: var(--ink-soft); }

/* Success */
.done-wrap { padding-top: 28px; padding-bottom: 28px; }
.done { background: var(--yellow); border: var(--bw) solid var(--ink); box-shadow: 6px 6px 0 var(--ink); padding: 18px 16px; display: grid; gap: 12px; }
.done h2 { font-size: 26px; font-weight: 900; letter-spacing: -.02em; }
.done-actions { display: grid; gap: 12px; }
.done .ask { font-weight: 700; }
.done a { color: var(--ink); font-weight: 800; }
.done .link-btn { color: var(--ink); }

/* Steps */
.steps { list-style: none; padding: 0; display: grid; gap: 14px; }
.steps li { display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; border: 2px solid var(--ink); padding: 14px; background: #fff; }
.step-n { display: grid; place-content: center; width: 48px; height: 48px; background: var(--ink); color: var(--yellow); font: 900 24px/1 var(--mono); }
.steps h3 { font-size: 18px; font-weight: 800; margin-bottom: 2px; }
.steps p { color: var(--ink-soft); }

/* Comparison */
.why { background: var(--mist); }
.compare-wrap { overflow-x: auto; border: var(--bw) solid var(--ink); background: #fff; }
.compare { border-collapse: collapse; min-width: 760px; width: 100%; font-size: 14.5px; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid #b7bfd0; border-left: 1px solid #b7bfd0; }
.compare thead th { background: var(--ink); color: #fff; font-weight: 800; border-left-color: #3a4560; border-bottom: 0; }
.compare thead th a { color: #fff; }
.compare tbody th { font-weight: 800; background: var(--mist); width: 14%; border-left: 0; position: sticky; left: 0; }
.compare .ours { background: var(--yellow-soft); font-weight: 700; }
.compare thead .ours { background: var(--yellow); color: var(--ink); }
.compare-notes { margin-top: 14px; display: grid; gap: 8px; font-size: 14px; color: var(--ink-soft); max-width: 70ch; }

/* Reply band + trust */
.ask-band { background: var(--yellow); }
.ask-band .section-lede { color: var(--ink); }
.ask-band a { color: var(--ink); font-weight: 800; }
.facts { display: grid; gap: 12px; }
.facts > div { border-left: var(--bw) solid var(--ink); padding: 2px 0 2px 14px; }
.facts dt { font: 800 12px/1.2 var(--mono); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 4px; }
.facts dd { color: var(--ink-soft); max-width: 64ch; }
.trust { border-bottom: 0; }

/* Footer */
.foot { background: var(--ink); color: #dfe5f2; padding: 24px 0 32px; font-size: 14px; }
.foot .wrap { display: grid; gap: 6px; }
.foot a { color: var(--yellow); }
.foot-privacy { color: #b9c2d8; }

/* Wider screens */
@media (min-width: 760px) {
  .wrap { padding: 0 28px; }
  .hero { padding: 40px 0 48px; }
  .hero-grid { grid-template-columns: 5fr 7fr; gap: 44px; align-items: center; }
  .headline { font-size: 44px; }
  .subhead { font-size: 18px; }
  .contrast-line { display: block; }
  .poster { padding: 18px 18px 14px; margin-top: 0; }
  .team { min-height: 38px; font-size: 14px; }
  .section { padding: 56px 0; }
  .section-title { font-size: 32px; }
  .tool-grid { grid-template-columns: 5fr 7fr; gap: 32px; align-items: start; }
  .form { padding: 22px; }
  .out-actions { grid-template-columns: auto auto; justify-content: start; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .steps li { grid-template-columns: 1fr; }
  .facts { grid-template-columns: 1fr 1fr; gap: 20px 32px; }
  .done-actions { grid-template-columns: auto auto; justify-content: start; }
  .form-actions .btn { width: auto; }
}
@media (max-width: 400px) {
  .eyebrow { display: none; }
  .hero { padding-top: 16px; }
  .headline { font-size: 27px; }
  .btn-note { display: none; }
  .terms > div { padding: 5px 10px; }
  .hero-actions .btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

/* Print: the bracket alone, landscape, with the address line */
@media print {
  @page { size: landscape; margin: 14mm; }
  .no-print, .skip { display: none !important; }
  body { background: #fff; }
  main > section:not(#tool) { display: none !important; }
  .tool { background: #fff; padding: 0; border: 0; }
  .tool-grid { display: block; }
  .out-sheet { border: 0; box-shadow: none; padding: 0; }
  .bracket { overflow: visible; }
  .out-title strong { font-size: 26px; }
  .team { min-height: 34px; font-size: 14px; }
  .team.win { background: #e5e5e5; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .print-foot { display: block; font-size: 13px; }
}
