/* Must Be Viral · mustbeviral.com
   One stylesheet, no framework. Display face: Bricolage Grotesque (OFL), self-hosted. */

@font-face {
  font-family: "Bricolage";
  src: url("/fonts/bricolage-grotesque-latin-wght-v5.woff2") format("woff2-variations");
  font-weight: 200 800;
  font-style: normal;
  font-display: swap;
}

:root {
  --paper: #f4f1ea;
  --paper-2: #ebe6db;
  --card: #fbfaf6;
  --ink: #151413;
  --ink-2: #3c3a36;
  --muted: #625e56;
  --line: #d6cfc1;
  --signal: #ff5a1f;
  --signal-ink: #151413;
  --live: #1f8a4c;
  --build: #c27c00;
  --plan: #8a857a;
  --board: #151413;
  --board-ink: #f4f1ea;
  --board-muted: #a9a398;
  --board-line: #34312d;
  --focus: #1f4bff;
  --radius: 14px;
  --gutter: clamp(16px, 4vw, 40px);
  --display: "Bricolage", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --body: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "Cascadia Mono", "Segoe UI Mono", Menlo, Consolas, monospace;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #121110;
    --paper-2: #1a1917;
    --card: #1c1b19;
    --ink: #f2eee6;
    --ink-2: #d4cfc5;
    --muted: #a39e94;
    --line: #322f2b;
    --signal: #ff6a33;
    --live: #3cbf75;
    --build: #f0a42a;
    --plan: #8f8a80;
    --board: #1c1b19;
    --board-ink: #f2eee6;
    --board-muted: #a39e94;
    --board-line: #34312d;
    --focus: #7d9bff;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 1.0625rem/1.6 var(--body);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { margin: 0; font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { top: 12px; }

/* ---------- Header ---------- */
.top { position: sticky; top: 0; z-index: 5; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid transparent; }
.top-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 68px; }
.mark { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 750 1.125rem/1 var(--display); letter-spacing: -0.02em; }
.mark-glyph { width: 30px; height: 30px; }
.mark-glyph rect { fill: var(--signal); }
.mark-glyph circle { fill: none; stroke: var(--signal-ink); stroke-width: 2.4; }
.mark-glyph path { fill: var(--signal-ink); }
.top-nav { display: flex; align-items: center; gap: 22px; font-size: 0.95rem; }
.top-nav a:not(.btn) { text-decoration: none; color: var(--ink-2); }
.top-nav a:not(.btn):hover { color: var(--ink); text-decoration: underline; }
@media (max-width: 720px) { .top-nav a:not(.btn) { display: none; } }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 24px; border: 2px solid var(--ink); border-radius: 999px;
  background: var(--signal); color: var(--signal-ink);
  font: 700 1rem/1 var(--body); text-decoration: none; cursor: pointer;
  box-shadow: 0 3px 0 var(--ink); transition: transform .12s ease, box-shadow .12s ease;
}
.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 0 var(--ink); text-decoration: none; }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--ink); }
.btn[disabled] { opacity: .6; cursor: progress; transform: none; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .9rem; box-shadow: 0 2px 0 var(--ink); }
.btn-ghost { background: transparent; color: var(--ink); }
.btn-wide { width: 100%; }

/* ---------- Type helpers ---------- */
.label { margin: 0 0 14px; font: 600 .8rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.label-inv { color: var(--board-muted); }
.h-hero { font-size: clamp(2.9rem, 8.2vw, 6.6rem); line-height: .93; letter-spacing: -0.045em; font-weight: 780; margin-bottom: 26px; }
.h-hero .accent { display: block; color: var(--signal); -webkit-text-stroke: 0; }
.h-sec { font-size: clamp(2rem, 4.6vw, 3.4rem); line-height: 1; letter-spacing: -0.035em; margin-bottom: 18px; text-wrap: balance; }
.h-page { font-size: clamp(2.4rem, 6vw, 4.2rem); line-height: .98; letter-spacing: -0.04em; margin-bottom: 20px; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 38em; }
.fine { font-size: .875rem; color: var(--muted); }
.prose p { font-size: 1.125rem; color: var(--ink-2); max-width: 36em; }

.pill { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); font-size: .875rem; font-weight: 600; color: var(--ink-2); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.dot-live { background: var(--live); }
.dot-build { background: var(--build); box-shadow: 0 0 0 0 color-mix(in srgb, var(--build) 60%, transparent); animation: pulse 2.4s ease-out infinite; }
.dot-plan { background: transparent; border: 2px solid var(--plan); }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--build) 55%, transparent); } 80%, 100% { box-shadow: 0 0 0 8px transparent; } }

/* ---------- Hero ---------- */
.hero { padding: clamp(36px, 7vw, 88px) 0 clamp(48px, 8vw, 104px); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, .65fr); gap: clamp(32px, 6vw, 80px); align-items: center; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 16px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero .reel { max-width: 260px; margin: 8px auto 0; }
}

/* The reel illustration: a phone-shaped frame with a washer door spinning inside. */
.reel { margin: 0; justify-self: center; width: 100%; max-width: 340px; }
.reel figcaption { margin-top: 12px; text-align: center; font: 500 .8rem/1.3 var(--mono); color: var(--muted); }
.reel-frame {
  position: relative; aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden;
  background: linear-gradient(170deg, #2a2723 0%, #151413 70%);
  border: 2px solid var(--ink); box-shadow: 10px 12px 0 var(--signal);
  transform: rotate(2deg);
}
.reel-bars { position: absolute; top: 14px; left: 14px; right: 14px; display: flex; gap: 5px; z-index: 2; }
.reel-bars span { flex: 1; height: 3px; border-radius: 3px; background: rgba(255,255,255,.28); overflow: hidden; position: relative; }
.reel-bars span:first-child::after { content: ""; position: absolute; inset: 0; background: #fff; transform-origin: left; animation: fill 4.5s linear infinite; }
@keyframes fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

.washer { position: absolute; left: 12%; right: 12%; top: 21%; aspect-ratio: 1 / 1.18; border-radius: 18px; background: linear-gradient(180deg, #ece8df, #d5cfc3); box-shadow: inset 0 -6px 0 rgba(0,0,0,.08); }
.washer-panel { position: absolute; top: 6%; left: 9%; right: 9%; height: 11%; display: flex; align-items: center; gap: 7%; }
.washer-panel i { display: block; height: 42%; flex: 1; border-radius: 4px; background: #bdb6a8; }
.washer-panel i:last-child { flex: none; aspect-ratio: 1; height: 70%; border-radius: 50%; background: var(--signal); }
.washer-door { position: absolute; left: 13%; right: 13%; bottom: 9%; aspect-ratio: 1; border-radius: 50%; background: #2d2a26; box-shadow: 0 0 0 6px #9f978a, inset 0 0 0 5px #3e3a35; overflow: hidden; }
.washer-drum {
  position: absolute; inset: 9%; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 70%, #ff5a1f 0 17%, transparent 18%),
    radial-gradient(circle at 68% 34%, #f4f1ea 0 15%, transparent 16%),
    radial-gradient(circle at 70% 72%, #3f63ff 0 14%, transparent 15%),
    radial-gradient(circle at 33% 30%, #ffc23d 0 12%, transparent 13%),
    conic-gradient(from 0deg, #4a6b8a, #5f86a8, #4a6b8a, #3c5a76, #4a6b8a);
  animation: spin 3.2s linear infinite;
}
.washer-glass { position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 32% 28%, rgba(255,255,255,.42), rgba(255,255,255,0) 42%); }
@keyframes spin { to { transform: rotate(360deg); } }

.reel-caption { position: absolute; left: 50%; top: 71%; transform: translateX(-50%) rotate(-2deg); white-space: nowrap; padding: 8px 14px; border-radius: 8px; background: #fff; color: #151413; font: 700 clamp(.85rem, 1.4vw, 1rem)/1 var(--display); box-shadow: 0 3px 0 #151413; }
.reel-caption b { color: var(--signal); font-weight: 800; margin-right: 4px; }
.reel-side { position: absolute; right: 12px; bottom: 16%; display: grid; gap: 14px; }
.reel-side span { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.22); }

@media (prefers-reduced-motion: reduce) {
  .washer-drum, .reel-bars span:first-child::after, .dot-build { animation: none; }
  .reel-bars span:first-child::after { transform: scaleX(.6); }
}

/* ---------- Bands and sections ---------- */
.band { padding: clamp(48px, 7vw, 88px) 0; background: var(--signal); color: var(--signal-ink); border-block: 2px solid var(--ink); }
.band .prose p { color: var(--signal-ink); }
.band .h-sec { color: var(--signal-ink); }
.section { padding: clamp(64px, 9vw, 120px) 0; border-top: 1px solid var(--line); }
.two-col { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(20px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }

/* Steps */
.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; counter-reset: none; }
.step { position: relative; display: flex; flex-direction: column; padding: 26px 22px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); }
.step-n { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 22px; border: 2px solid var(--ink); border-radius: 50%; font: 750 1.2rem/1 var(--display); }
.step h3 { font-size: 1.35rem; line-height: 1.1; letter-spacing: -0.02em; margin-bottom: 10px; }
.step p { color: var(--ink-2); font-size: 1rem; }
.step .tag { margin-top: auto; padding-top: 16px; }
.tag { display: inline-flex; align-items: center; gap: 8px; font: 600 .78rem/1.2 var(--mono); letter-spacing: .02em; text-transform: uppercase; color: var(--muted); }
@media (max-width: 1000px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* Status board */
.board-section { border-top: 0; padding-top: 0; }
.board { background: var(--board); color: var(--board-ink); border-radius: calc(var(--radius) + 6px); padding: clamp(26px, 4.5vw, 56px); border: 2px solid var(--ink); }
.board .h-sec { color: var(--board-ink); max-width: 14em; }
.board-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px 32px; margin-bottom: 28px; }
.board-date { margin: 0 0 22px; font: 500 .85rem/1.2 var(--mono); color: var(--board-muted); }
.board-table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.board-table thead th { text-align: left; padding: 0 12px 12px 0; font: 600 .75rem/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--board-muted); border-bottom: 1px solid var(--board-line); }
.board-table tbody th, .board-table td { padding: 16px 12px 16px 0; border-bottom: 1px solid var(--board-line); vertical-align: top; text-align: left; }
.board-table tbody th { font: 650 1.05rem/1.3 var(--display); letter-spacing: -0.01em; width: 26%; }
.board-table td:nth-child(2) { color: var(--board-muted); }
.board-table td:last-child { width: 1%; white-space: nowrap; padding-right: 0; }
.st { display: inline-flex; align-items: center; gap: 8px; font: 600 .8rem/1 var(--mono); text-transform: uppercase; letter-spacing: .03em; }
.st::before { content: ""; width: 9px; height: 9px; border-radius: 50%; flex: none; }
.st-live::before { background: #3cbf75; }
.st-build::before { background: #f0a42a; animation: pulse 2.4s ease-out infinite; }
.st-plan::before { border: 2px solid #8f8a80; }
.st-none::before { background: transparent; border: 2px dashed #8f8a80; }
.st-live { color: #7fe0a6; }
.st-build { color: #ffc96b; }
.st-plan, .st-none { color: var(--board-muted); }
.board-foot { margin-top: 22px; font-size: .9rem; color: var(--board-muted); }
@media (max-width: 720px) {
  .board-table thead { display: none; }
  .board-table, .board-table tbody, .board-table tr, .board-table th, .board-table td { display: block; width: auto; }
  .board-table tr { padding: 16px 0; border-bottom: 1px solid var(--board-line); }
  .board-table tbody th, .board-table td { padding: 0; border: 0; }
  .board-table tbody th { width: auto; margin-bottom: 4px; }
  .board-table td:nth-child(2) { margin-bottom: 10px; }
  .board-table td:last-child { white-space: normal; }
}

/* Rules */
.rules { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 48px; }
.rules li { padding: 22px 0 22px 46px; border-top: 1px solid var(--line); position: relative; font-size: 1.08rem; color: var(--ink-2); }
.rules li::before { content: ""; position: absolute; left: 0; top: 24px; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--ink); background: linear-gradient(135deg, transparent 45%, var(--signal) 45%, var(--signal) 55%, transparent 55%); }
.rules strong { display: block; color: var(--ink); font: 700 1.3rem/1.15 var(--display); letter-spacing: -0.02em; margin-bottom: 4px; }
@media (max-width: 760px) { .rules { grid-template-columns: 1fr; } }

/* FAQ */
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font: 650 1.2rem/1.3 var(--display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font: 400 1.6rem/1 var(--body); color: var(--muted); transition: transform .15s ease; }
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); }

/* Join */
.join-section { background: var(--paper-2); }
.join-grid { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
@media (max-width: 860px) { .join-grid { grid-template-columns: 1fr; } }
.card { background: var(--card); border: 2px solid var(--ink); border-radius: calc(var(--radius) + 4px); padding: clamp(20px, 3.5vw, 36px); box-shadow: 8px 10px 0 var(--ink); }
.form .field { margin: 0 0 18px; padding: 0; border: 0; min-width: 0; }
.form label, .form legend { display: block; margin-bottom: 8px; font-weight: 650; font-size: .95rem; padding: 0; }
.req { font: 500 .72rem/1 var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-left: 6px; }
.form input[type="email"], .form input[type="text"], .form textarea {
  width: 100%; min-height: 50px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: 10px;
  background: var(--paper); color: var(--ink); font: 400 1rem/1.4 var(--body);
}
.form textarea { min-height: 96px; resize: vertical; }
.form input:hover, .form textarea:hover { border-color: var(--muted); }
.form input:focus-visible, .form textarea:focus-visible { outline: 3px solid var(--focus); outline-offset: 1px; border-color: var(--ink); }
.form [aria-invalid="true"] { border-color: #c4351b; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
@media (max-width: 520px) { .field-row { grid-template-columns: 1fr; } }
.choices { display: flex; flex-wrap: wrap; gap: 10px; }
.form .choice { display: inline-flex; align-items: center; gap: 10px; margin: 0; min-height: 48px; padding: 0 18px 0 14px; border: 1.5px solid var(--line); border-radius: 999px; font-weight: 550; cursor: pointer; background: var(--paper); }
.form .choice:has(input:checked) { border-color: var(--ink); background: color-mix(in srgb, var(--signal) 18%, var(--paper)); }
.choice input { width: 18px; height: 18px; margin: 0; accent-color: var(--ink); }
.err { margin: 8px 0 0; color: #c4351b; font-size: .9rem; font-weight: 600; }
@media (prefers-color-scheme: dark) { .err, .form [aria-invalid="true"] { color: #ff8a70; border-color: #ff8a70; } }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-fine { margin-top: 14px; text-align: center; }
.form-status { margin: 12px 0 0; font-weight: 650; text-align: center; min-height: 1.2em; }
.form-done { text-align: left; }
.form-done h3 { font-size: clamp(1.6rem, 3vw, 2.1rem); line-height: 1.05; letter-spacing: -0.03em; margin-bottom: 12px; }
.form-done p { color: var(--ink-2); }

/* Footer */
.foot { border-top: 2px solid var(--ink); padding: 28px 0 40px; font-size: .9rem; color: var(--muted); }
.foot-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 28px; }
.foot-row p { margin: 0; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot a { color: var(--ink-2); }

/* Plain pages: legal, thanks, 404, errors */
.plain .page { padding: clamp(40px, 7vw, 88px) 0 clamp(64px, 9vw, 120px); }
.legal h2 { font-size: 1.45rem; line-height: 1.2; letter-spacing: -0.02em; margin: 2.2em 0 .6em; }
.legal p, .legal li { color: var(--ink-2); max-width: 42em; }
.legal ul { padding-left: 1.2em; margin: 0 0 1em; }
.legal li { margin-bottom: .4em; }
.meta { font: 500 .85rem/1.4 var(--mono); color: var(--muted); margin-bottom: 2em; }
.errors { padding-left: 1.2em; margin: 0 0 28px; font-size: 1.1rem; }
.errors li { margin-bottom: .4em; }
.form-done:focus { outline: none; }
