/* Riff Locker marketing site. Plain CSS, no build step. Palette from the locker artwork and logo. */
:root {
  --navy: #0b1030;
  --navy-2: #121a40;
  --navy-3: #1a2455;
  --locker: #6e7db8;
  --locker-deep: #2a3a86;
  --ember: #f56b2e;
  --gold: #ffd61a;
  --mint: #5cd9ad;
  --red: #ee3b3d;
  --text: #f4f6ff;
  --muted: #b7bfe0;
  --line: rgba(183, 191, 224, 0.18);
  --radius: 18px;
  --max: 1120px;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--navy);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.2rem; font-weight: 700; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 22px; }
.eyebrow { text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.78rem; font-weight: 700; color: var(--gold); margin-bottom: 0.8em; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 640px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 24px; border-radius: 999px; font-weight: 700; font-size: 1rem;
  border: 1px solid transparent; cursor: pointer; transition: transform 0.12s ease, opacity 0.12s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--ember), var(--gold)); color: #1a1000; }
.btn-secondary { background: rgba(110, 125, 184, 0.16); color: var(--text); border-color: var(--line); }
.btn-ghost { color: var(--text); border-color: var(--line); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(11, 16, 48, 0.82); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 800; letter-spacing: -0.01em; }
.brand img { width: 40px; height: 40px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { color: var(--muted); font-weight: 600; font-size: 0.95rem; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); text-decoration: none; }
.nav-links .btn { padding: 10px 18px; font-size: 0.9rem; }
.nav-links a.btn-primary { color: #1a1000; }
.nav-links a.btn-primary:hover { color: #1a1000; }
.nav-toggle { display: none; background: none; border: 1px solid var(--line); color: var(--text); border-radius: 10px; padding: 8px 10px; font-size: 1.1rem; }
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .nav-links {
    display: none; position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--navy-2); border-bottom: 1px solid var(--line); padding: 10px 22px 18px;
  }
  .nav-links li { padding: 10px 0; border-bottom: 1px solid var(--line); }
  .nav-links li:last-child { border-bottom: 0; padding-top: 16px; }
  .nav-open .nav-links { display: flex; }
}

/* Hero */
.hero { position: relative; overflow: hidden; padding: 72px 0 40px; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 500px at 15% 0%, rgba(110, 125, 184, 0.32), transparent 60%),
              radial-gradient(700px 500px at 90% 30%, rgba(245, 107, 46, 0.18), transparent 60%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: 1.15fr 1fr; gap: 40px; align-items: center; }
.hero-wordmark { width: min(420px, 90%); margin-bottom: 18px; }
.hero-visual { position: relative; display: flex; justify-content: center; align-items: flex-end; min-height: 520px; }
.hero-visual .locker { position: absolute; right: -10px; bottom: 0; width: 240px; opacity: 0.95; filter: drop-shadow(0 30px 40px rgba(0, 0, 0, 0.5)); transform: rotate(-4deg); }
.phone {
  width: 280px; padding: 12px; border-radius: 44px;
  background: linear-gradient(160deg, #2a2f4a, #0e1230); border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.55), inset 0 0 0 2px rgba(255, 255, 255, 0.05);
  position: relative; z-index: 2;
}
.phone img { border-radius: 34px; }
.phone.small { width: 230px; padding: 9px; border-radius: 36px; }
.phone.small img { border-radius: 28px; }
.hero-notes { display: flex; gap: 22px; flex-wrap: wrap; margin-top: 26px; color: var(--muted); font-size: 0.95rem; }
.hero-notes span::before { content: "✓ "; color: var(--mint); font-weight: 700; }
@media (max-width: 900px) {
  .hero { padding-top: 40px; }
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-visual { min-height: 0; margin-top: 10px; }
  .hero-visual .locker { display: none; }
}

/* Sections */
section { padding: 72px 0; }
section.alt { background: var(--navy-2); }
section.texture { position: relative; overflow: hidden; }
section.texture::after {
  content: ""; position: absolute; right: -60px; top: -40px; width: 520px; height: 700px; pointer-events: none; opacity: 0.08;
  background: url("../img/joy-lines.png") no-repeat center / contain;
}
.section-head { max-width: 720px; margin-bottom: 40px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr; } .grid-2 { grid-template-columns: 1fr; } }
.card {
  background: rgba(110, 125, 184, 0.10); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.card .icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 14px; background: rgba(245, 107, 46, 0.18); color: var(--gold); font-size: 1.3rem; }
.card p { color: var(--muted); margin-bottom: 0; }
.feature-list { list-style: none; padding: 0; margin: 0 0 24px; }
.feature-list li { padding: 10px 0 10px 30px; position: relative; color: var(--muted); }
.feature-list li::before { content: "◆"; position: absolute; left: 4px; color: var(--gold); font-size: 0.8rem; top: 14px; }
.feature-list strong { color: var(--text); }

/* Whisper stages */
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: stage; }
.stage { background: rgba(42, 58, 134, 0.35); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.stage::before {
  counter-increment: stage; content: counter(stage);
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--locker-deep); color: var(--text); font-weight: 800; margin-bottom: 12px;
}
.stage h3 { font-size: 1.05rem; }
.stage p { color: var(--muted); font-size: 0.95rem; margin: 0; }
@media (max-width: 900px) { .stages { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .stages { grid-template-columns: 1fr; } }
.callout {
  border-left: 4px solid var(--gold); background: rgba(255, 214, 26, 0.07); padding: 16px 20px; border-radius: 0 12px 12px 0; color: var(--muted);
}
.callout strong { color: var(--text); }

/* Screenshot rail */
.rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.rail figure { margin: 0; text-align: center; }
.rail figcaption { color: var(--muted); font-size: 0.9rem; margin-top: 10px; }
.rail .phone { width: 100%; padding: 8px; border-radius: 30px; }
.rail .phone img { border-radius: 24px; }
@media (max-width: 900px) { .rail { grid-template-columns: 1fr 1fr; } }

/* Privacy strip */
.privacy-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.privacy-strip .card { text-align: center; }
.privacy-strip .big { font-size: 2rem; font-weight: 800; color: var(--mint); }
@media (max-width: 700px) { .privacy-strip { grid-template-columns: 1fr; } }

/* Signup */
.signup { background: linear-gradient(135deg, rgba(245, 107, 46, 0.16), rgba(110, 125, 184, 0.16)); border: 1px solid var(--line); border-radius: 24px; padding: 40px; display: grid; grid-template-columns: 1.2fr 1fr; gap: 30px; align-items: center; }
.signup form { display: flex; gap: 10px; flex-wrap: wrap; }
.signup input[type="email"] {
  flex: 1 1 220px; padding: 14px 16px; border-radius: 999px; border: 1px solid var(--line); background: rgba(11, 16, 48, 0.7); color: var(--text); font-size: 1rem;
}
.signup input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: 10px; }
.form-status { font-weight: 600; margin-top: 10px; color: var(--mint); }
@media (max-width: 820px) { .signup { grid-template-columns: 1fr; padding: 28px; } }

/* Footer */
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 50px; color: var(--muted); font-size: 0.92rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.site-footer ul { list-style: none; display: flex; gap: 20px; padding: 0; margin: 0; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* Prose pages (support, privacy, whisper) */
.page-head { padding-top: 60px; padding-bottom: 20px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; }
.prose ul, .prose ol { color: var(--muted); padding-left: 1.3em; }
.prose li { margin-bottom: 0.4em; }
.prose p { color: var(--muted); }
.prose p strong { color: var(--text); }
.prose table { width: 100%; border-collapse: collapse; margin: 1em 0 1.5em; font-size: 0.95rem; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); }
.prose td { color: var(--muted); }
.prose code { background: rgba(110, 125, 184, 0.18); padding: 2px 6px; border-radius: 6px; font-size: 0.9em; }
details { border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; margin-bottom: 12px; background: rgba(110, 125, 184, 0.08); }
details summary { cursor: pointer; font-weight: 700; color: var(--text); list-style: none; display: flex; justify-content: space-between; align-items: center; }
details summary::after { content: "+"; color: var(--gold); font-size: 1.3rem; font-weight: 400; }
details[open] summary::after { content: "–"; }
details p, details ul { color: var(--muted); margin-top: 10px; }
.toc { display: flex; gap: 10px; flex-wrap: wrap; margin: 10px 0 30px; }
.toc a { border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; color: var(--muted); }
.toc a:hover { color: var(--text); text-decoration: none; border-color: var(--gold); }
.pipeline { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; margin: 20px 0 30px; }
.pipeline div { background: rgba(42, 58, 134, 0.35); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 0.85rem; text-align: center; color: var(--muted); position: relative; }
.pipeline div strong { display: block; color: var(--text); margin-bottom: 4px; }
.pipeline div:not(:last-child)::after { content: "→"; position: absolute; right: -12px; top: 50%; transform: translateY(-50%); color: var(--gold); }
@media (max-width: 900px) { .pipeline { grid-template-columns: 1fr 1fr; } .pipeline div::after { display: none; } }
.kbd-note { font-size: 0.9rem; color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--gold); color: #000; padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip-link:focus { left: 12px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn:hover { transform: none; } }

/* Forms and legal pages (beta program) */
.form-card { background: rgba(110, 125, 184, 0.10); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 700; margin-bottom: 8px; }
.field label .muted { font-weight: 500; }
.field input[type="text"], .field input[type="email"], .field select, .field textarea {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid var(--line); background: rgba(11, 16, 48, 0.7); color: var(--text); font-size: 1rem; font-family: inherit;
}
.field select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 14px) 50%; background-size: 6px 6px; background-repeat: no-repeat; }
.field select option { color: #000; }
.field textarea { resize: vertical; min-height: 96px; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.field-help { font-size: 0.86rem; color: var(--muted); margin: 8px 0 0; }
.field-error { font-size: 0.9rem; color: #ff8a8c; font-weight: 600; margin: 8px 0 0; }
.check { display: flex; gap: 12px; align-items: flex-start; font-weight: 500 !important; color: var(--muted); margin-bottom: 12px; cursor: pointer; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--ember); }
.check span { flex: 1; }
.check a { text-decoration: underline; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { border-radius: 12px; padding: 12px 16px; margin-bottom: 18px; font-weight: 600; border: 1px solid var(--line); }
.notice-ok { background: rgba(92, 217, 173, 0.12); color: var(--mint); }
.notice-bad { background: rgba(238, 59, 61, 0.12); color: #ff8a8c; }
.notice-wait { background: rgba(255, 214, 26, 0.10); color: var(--gold); }
.badge { display: inline-block; font-size: 0.78rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); vertical-align: middle; letter-spacing: 0.02em; }
.badge-ok { color: var(--mint); border-color: rgba(92, 217, 173, 0.5); }
.badge-bad { color: #ff8a8c; border-color: rgba(238, 59, 61, 0.5); }
.badge-wait { color: var(--gold); border-color: rgba(255, 214, 26, 0.5); }
.badge-muted { color: var(--muted); }
.agreement-box { max-height: 480px; overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 26px 26px; background: rgba(11, 16, 48, 0.6); max-width: none; }
.agreement-box:focus { outline: 2px solid var(--gold); }
.agreement-box h2 { margin-top: 1em; font-size: 1.35rem; }
.agreement-box h3 { font-size: 1.05rem; }
.legal-meta { color: var(--muted); font-size: 0.9rem; }
.fill { background: rgba(255, 214, 26, 0.18); color: var(--gold); padding: 0 4px; border-radius: 4px; }
.steps { padding-left: 1.3em; color: var(--muted); margin: 0; }
.steps li { margin-bottom: 8px; }
.steps strong { color: var(--text); }
.signup .btn { width: 100%; justify-content: center; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 0.92rem; min-width: 760px; }
.table th, .table td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--text); background: rgba(110, 125, 184, 0.12); }
.table td { color: var(--muted); }
.table .actions { white-space: nowrap; }
.linkish { background: none; border: 0; color: var(--gold); font: inherit; cursor: pointer; padding: 0; }
.linkish:hover { text-decoration: underline; }
.audit { list-style: none; padding: 0; margin: 0; font-size: 0.9rem; color: var(--text); }
.audit li { padding: 6px 0; border-bottom: 1px solid var(--line); }
