:root {
  --chalk: #f1f3ec;
  --chalk-2: #e4e8dd;
  --pitch: #17331f;
  --turf: #2f5a3a;
  --mute: #5a685d;
  --tape: #e9c653;
  --flag: #c2412d;
  --line: #c9d1c3;
  --font: "Archivo", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--chalk);
  color: var(--pitch);
  font: 400 17px/1.55 var(--font);
  font-variation-settings: "wdth" 100;
  overflow-x: hidden;
}
h1, h2, h3 { margin: 0; line-height: 1.05; }
h2 { font-size: 1.55rem; font-weight: 800; font-stretch: 112%; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 0.9em; }
a { color: var(--turf); }
:focus-visible { outline: 3px solid var(--flag); outline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }

.top, main > section, .foot { width: min(1180px, 100% - 40px); margin-inline: auto; }

.top { display: flex; justify-content: space-between; align-items: center; padding: 18px 0; }
.mark { font-weight: 900; font-stretch: 125%; font-size: 1.1rem; letter-spacing: -0.01em; }
.mark-tape { background: var(--tape); padding: 1px 6px 2px; display: inline-block; transform: rotate(-2deg); margin-right: 2px; }
.top-link { font-weight: 600; text-underline-offset: 3px; }

/* Hero: the scoreboard with its scores taped over is the whole idea in one picture. */
.hero { padding: 40px 0 56px; display: grid; gap: 28px; }
.board {
  background: var(--pitch); color: var(--chalk); width: min(360px, 100%);
  padding: 18px 20px 14px; border-radius: 6px; font-stretch: 125%;
  box-shadow: inset 0 0 0 3px #224a2d;
}
.board-row { display: flex; justify-content: space-between; align-items: center; font-weight: 900; font-size: 2.6rem; line-height: 1.15; }
.board-score { position: relative; width: 5.2ch; height: 0.9em; }
.board-score::before { content: "88"; position: absolute; inset: auto 0 0 auto; color: #26492f; }
.tape {
  position: absolute; right: -10px; top: -4px; width: 130%; height: 1.05em;
  background: var(--tape);
  clip-path: polygon(2% 8%, 98% 0, 100% 46%, 97% 100%, 1% 92%, 0 50%);
  transform: rotate(-3deg); transform-origin: right center;
  animation: tape-on 0.55s cubic-bezier(.2,.8,.2,1) both;
}
.tape.t2 { transform: rotate(2deg); animation-delay: 0.2s; }
@keyframes tape-on { from { clip-path: polygon(98% 8%, 98% 0, 100% 46%, 97% 100%, 97% 92%, 98% 50%); } }
.board-foot { margin-top: 8px; font-size: 0.85rem; font-weight: 600; letter-spacing: 0.02em; display: flex; align-items: center; gap: 8px; color: #b8c6b6; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--flag); }

h1 { font-size: clamp(2.5rem, 7.4vw, 5.4rem); font-weight: 900; font-stretch: 118%; letter-spacing: -0.025em; line-height: 0.98; max-width: 14ch; }
.h1-2 { display: block; color: var(--turf); }
.lede { font-size: 1.15rem; max-width: 58ch; color: #2a3b2f; }

@media (min-width: 900px) {
  .hero { grid-template-columns: 1.5fr 1fr; grid-template-areas: "h board" "p board"; align-items: end; padding: 64px 0 80px; column-gap: 48px; }
  .hero h1 { grid-area: h; }
  .hero .lede { grid-area: p; }
  .board { grid-area: board; justify-self: end; align-self: center; transform: rotate(1.5deg); }
}

/* Builder + demo */
.work { display: grid; gap: 28px; padding-bottom: 72px; }
@media (min-width: 900px) { .work { grid-template-columns: 1fr 1.1fr; gap: 48px; align-items: start; } }

.builder { display: grid; gap: 22px; }
.builder h2 { margin-bottom: 2px; }
.field { display: grid; gap: 8px; min-width: 0; }
.field label, .label { font-weight: 700; }
.field.row { grid-template-columns: auto 1fr; align-items: end; gap: 16px; }
.field.row > div { display: grid; gap: 8px; }
.field.row .hint { margin: 0 0 10px; }
.hint { font-size: 0.92rem; color: var(--mute); margin: 0; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; min-height: 38px; }
.chip {
  border: 0; background: var(--pitch); color: var(--chalk); border-radius: 3px;
  padding: 6px 10px 6px 12px; font-weight: 600; cursor: pointer; display: inline-flex; gap: 8px; align-items: center;
}
.chip::after { content: "×"; color: var(--tape); font-weight: 800; }
.chip:hover { background: var(--turf); }
.chips-empty { color: var(--mute); font-size: 0.95rem; align-self: center; }

.add { display: flex; gap: 8px; min-width: 0; }
input:not([type=checkbox]), select, textarea {
  min-width: 0; width: 100%; background: #fff; border: 1.5px solid var(--line); border-radius: 4px; padding: 10px 12px;
}
input[type=time] { width: auto; }
input:focus, select:focus, textarea:focus { border-color: var(--turf); outline: none; box-shadow: 0 0 0 3px rgba(47,90,58,.18); }
.btn-ghost {
  flex: none; background: transparent; border: 1.5px solid var(--pitch); border-radius: 4px; padding: 9px 16px; font-weight: 700; cursor: pointer;
}
.btn-ghost:hover:not(:disabled) { background: var(--pitch); color: var(--chalk); }
.btn-ghost:disabled { opacity: 0.45; cursor: not-allowed; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 0.97rem; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--turf); margin-top: 2px; flex: none; }

.demo { background: #fff; border: 1.5px solid var(--line); border-radius: 8px; padding: 20px; min-width: 0; }
.demo-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.demo-head h2 { font-size: 1.2rem; font-stretch: 100%; }
.demo-count { margin: 10px 0 12px; font-weight: 600; color: var(--turf); min-height: 1.5em; }
.switch {
  display: inline-flex; align-items: center; gap: 10px; border: 0; background: none; cursor: pointer; font-weight: 700; padding: 4px 0;
}
.switch-knob { width: 42px; height: 24px; border-radius: 99px; background: #b9c2b5; position: relative; transition: background .2s; }
.switch-knob::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .2s; }
.switch[aria-pressed=true] .switch-knob { background: var(--turf); }
.switch[aria-pressed=true] .switch-knob::after { transform: translateX(18px); }

.feed { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--chalk-2); }
.feed li { padding: 14px 4px 12px; border-bottom: 1px solid var(--chalk-2); min-height: 72px; }
.feed b { font-weight: 700; }
.feed .handle { color: var(--mute); font-size: 0.88rem; margin-left: 8px; }
.feed p { margin: 4px 0 0; }
.demo-note { margin-top: 14px; }

/* Take it everywhere */
.take { padding: 56px 0 72px; border-top: 2px solid var(--pitch); }
.take h2 { margin-bottom: 20px; }
.take-grid { display: grid; gap: 40px; }
@media (min-width: 900px) { .take-grid { grid-template-columns: 1.2fr 1fr; gap: 64px; } }
.take-main p, .take-side p { max-width: 60ch; }
.bm {
  display: inline-block; margin: 6px 0 16px; padding: 14px 24px 14px 20px; background: var(--tape); color: var(--pitch);
  font-weight: 900; font-stretch: 120%; font-size: 1.15rem; text-decoration: none; cursor: grab;
  clip-path: polygon(1% 6%, 99% 0, 100% 50%, 98% 100%, 0 94%, 2% 48%);
  transform: rotate(-1.5deg);
}
.bm:hover { background: #f0d26b; }
.take-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.copied { font-size: 0.92rem; color: var(--turf); font-weight: 600; }
details { margin: 4px 0 16px; border-left: 3px solid var(--tape); padding: 2px 0 2px 14px; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 8px; }
.take-side textarea { resize: vertical; font-size: 0.95rem; margin: 4px 0 12px; }
.take-side h3 { margin-bottom: 8px; }

/* Season pass */
.season {
  background: var(--pitch); color: var(--chalk); border-radius: 10px; padding: 32px 22px;
  display: grid; gap: 32px; margin-bottom: 56px;
}
@media (min-width: 900px) { .season { grid-template-columns: 1.2fr 1fr; padding: 48px; gap: 56px; } }
.season h2 { font-stretch: 125%; }
.price { font-size: 2.6rem; font-weight: 900; font-stretch: 120%; margin: 12px 0 18px; color: var(--tape); }
.price span { font-size: 1rem; font-weight: 500; font-stretch: 100%; color: #c9d6c7; margin-left: 6px; }
.season ul { margin: 0 0 24px; padding: 0; list-style: none; display: grid; gap: 14px; }
.season li { padding-left: 22px; position: relative; max-width: 58ch; color: #d8e1d6; }
.season li::before { content: ""; position: absolute; left: 0; top: 0.55em; width: 12px; height: 6px; background: var(--tape); transform: rotate(-8deg); }
.season li strong { color: var(--chalk); }
.season-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; }
.btn-pay {
  background: var(--tape); color: var(--pitch); text-decoration: none; font-weight: 800; padding: 13px 24px; border-radius: 4px; font-size: 1.05rem;
}
.btn-pay:hover { background: #f3d877; }
.link { background: none; border: 0; color: #c9d6c7; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px 0; }
.link:hover { color: var(--chalk); }
.season-tools { background: #20402a; border-radius: 6px; padding: 22px; display: grid; gap: 22px; align-content: start; min-width: 0; }
.season-tools .hint { color: #b3c2b0; }
.season-tools select { background: #fff; color: var(--pitch); }
.season-tools .btn-ghost { border-color: var(--chalk); color: var(--chalk); justify-self: start; }
.season-tools .btn-ghost:hover:not(:disabled) { background: var(--chalk); color: var(--pitch); }
.season-tools[data-locked=true] .field { opacity: 0.55; }
.locked-note { margin: 0; font-weight: 600; color: var(--tape); }

.foot { padding: 0 0 40px; color: var(--mute); font-size: 0.9rem; }
.foot p { margin: 0 0 4px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
