:root {
  --cream: #fdf3e3;
  --cream-deep: #f7e7c8;
  --ink: #1a1714;
  --ink-soft: #4a423a;
  --alert: #ff3b1f;
  --alert-dark: #d52a10;
  --paper: #fffaf0;
  --rule: #1a1714;
  --shadow: 6px 6px 0 var(--ink);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 18px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar { display: none; }

img { max-width: 100%; height: auto; display: block; }

a { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--alert); }

h1, h2, h3 {
  font-family: "Bricolage Grotesque", "Inter", sans-serif;
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
}

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* ---------- nav ---------- */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 32px;
  max-width: 1200px;
  margin: 0 auto;
}
.wordmark {
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 22px;
  text-decoration: none;
  letter-spacing: -0.02em;
}
.nav-links { display: flex; gap: 24px; font-size: 15px; font-weight: 500; }
.nav-links a { text-decoration: none; }
.nav-links a:hover { color: var(--alert); }

/* ---------- hero ---------- */
.hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 32px 80px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 60px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  background: var(--ink);
  color: var(--paper);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}
.hero h1 {
  font-size: clamp(48px, 6.5vw, 88px);
  margin-bottom: 24px;
}
.lede {
  font-size: 20px;
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 32px;
}
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 14px;
}
.cta-reassure {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  color: var(--ink);
  margin: 0 0 6px;
  max-width: 540px;
}
.cta-reassure .shield { font-size: 16px; }
.cta-reassure a {
  text-decoration: none;
  border-bottom: 2px solid var(--ink);
  font-weight: 600;
}
.cta-reassure a:hover { color: var(--alert); border-color: var(--alert); }

.cta-note {
  font-size: 13px;
  color: var(--ink-soft);
  margin: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: "Bricolage Grotesque", sans-serif;
  font-size: 18px;
  font-weight: 700;
  padding: 14px 22px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease;
  box-shadow: var(--shadow);
  background: var(--paper);
  color: var(--ink);
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--ink); color: var(--ink); }
.btn:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.btn-primary { background: var(--alert); color: var(--paper); }
.btn-primary:hover { color: var(--paper); background: var(--alert-dark); }
.btn-secondary { background: var(--paper); }
.btn-icon { font-size: 20px; line-height: 1; }

.hero-art {
  position: relative;
}
.hero-art img {
  border: 3px solid var(--ink);
  border-radius: 16px;
  box-shadow: var(--shadow);
  background: var(--paper);
}
.hero-sticker {
  position: absolute;
  top: -18px;
  right: -18px;
  background: var(--alert);
  color: var(--paper);
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 14px;
  text-align: center;
  padding: 14px 16px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  transform: rotate(8deg);
  box-shadow: 4px 4px 0 var(--ink);
  line-height: 1.1;
}

/* ---------- how it works ---------- */
.how {
  background: var(--cream-deep);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 80px 32px;
}
.how h2 {
  font-size: clamp(36px, 4.5vw, 56px);
  margin: 0 auto 48px;
  max-width: 1200px;
}
.steps {
  list-style: none;
  padding: 0;
  margin: 0 auto;
  max-width: 1200px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.steps li {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.step-num {
  display: inline-block;
  font-family: "Bricolage Grotesque", sans-serif;
  font-weight: 800;
  font-size: 36px;
  color: var(--alert);
  line-height: 1;
  margin-bottom: 12px;
}
.steps h3 { font-size: 22px; margin: 0 0 10px; }
.steps p { margin: 0; color: var(--ink-soft); }

/* ---------- clips ---------- */
.clips { max-width: 1200px; margin: 0 auto; padding: 80px 32px; }
.clips-head { margin-bottom: 40px; }
.clips-head h2 { font-size: clamp(36px, 4.5vw, 56px); margin-bottom: 10px; }
.clips-head p { color: var(--ink-soft); margin: 0; }
.clip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.clip-card {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 14px;
  padding: 20px;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: inherit;
  box-shadow: 4px 4px 0 var(--ink);
  transition: transform 0.08s ease, box-shadow 0.08s ease, background 0.15s ease;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 140px;
}
.clip-card:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.clip-card:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--ink); }
.clip-card.playing { background: var(--alert); color: var(--paper); }
.clip-card .play-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--alert);
}
.clip-card.playing .play-row { color: var(--paper); }
.clip-card .play-icon {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--paper);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}
.clip-card.playing .play-icon { background: var(--paper); color: var(--alert); }
.clip-title { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 22px; line-height: 1.05; }
.clip-teaser { font-size: 14px; color: var(--ink-soft); margin: 0; }
.clip-card.playing .clip-teaser { color: var(--paper); opacity: 0.9; }

/* ---------- faq ---------- */
.faq {
  background: var(--cream-deep);
  border-top: 3px solid var(--ink);
  border-bottom: 3px solid var(--ink);
  padding: 80px 32px;
}
.faq-inner { max-width: 1000px; margin: 0 auto; }
.faq h2 { font-size: clamp(36px, 4.5vw, 56px); margin: 0 0 40px; }
.faq-list { display: flex; flex-direction: column; gap: 18px; }
.faq-item {
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 24px 28px;
  box-shadow: 4px 4px 0 var(--ink);
}
.faq-item h3 { font-size: 24px; margin: 0 0 8px; }
.faq-item p { margin: 0; color: var(--ink-soft); }
.faq-item code { background: var(--cream-deep); padding: 1px 6px; border-radius: 4px; font-size: 0.9em; }

/* ---------- signup ---------- */
.signup {
  background: var(--ink);
  color: var(--paper);
  padding: 80px 32px;
  text-align: center;
}
.signup-inner { max-width: 600px; margin: 0 auto; }
.signup h2 { font-size: clamp(36px, 4.5vw, 56px); margin-bottom: 12px; }
.signup p { margin: 0 0 28px; opacity: 0.8; }
.signup-form { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }
.signup-form input[type="email"] {
  flex: 1 1 280px;
  font-family: inherit;
  font-size: 17px;
  padding: 14px 18px;
  border: 3px solid var(--paper);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
}
.signup-form input[type="email"]:focus { outline: 3px solid var(--alert); outline-offset: 2px; }
.signup-form .btn { box-shadow: 4px 4px 0 var(--paper); border-color: var(--paper); }
.signup-form .btn:hover { box-shadow: 6px 6px 0 var(--paper); }
.signup-success { margin-top: 20px; font-weight: 600; color: var(--alert); }

/* ---------- footer ---------- */
.footer { padding: 40px 32px; }
.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.footer-links { display: flex; gap: 20px; }
.footer-links a { text-decoration: none; font-weight: 500; }
.footer-fineprint { font-size: 13px; color: var(--ink-soft); width: 100%; margin: 0; text-align: center; padding-top: 12px; border-top: 1px dashed var(--ink-soft); }

/* ---------- support ---------- */
.nav-active { font-weight: 700; color: var(--alert) !important; }

.support-hero {
  max-width: 1200px;
  margin: 0 auto;
  padding: 48px 32px 56px;
}
.support-hero h1 { font-size: clamp(48px, 6vw, 80px); margin-bottom: 16px; }
.support-hero .lede { margin-bottom: 0; }

.support-layout {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 32px 80px;
  display: grid;
  grid-template-columns: 420px 1fr;
  gap: 48px;
  align-items: start;
}

.support-form-wrap h2,
.support-feed h2 {
  font-size: clamp(28px, 3vw, 40px);
  margin-bottom: 24px;
}

.support-form-wrap {
  position: sticky;
  top: 24px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
}
.form-group label {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.form-group select,
.form-group input,
.form-group textarea {
  font-family: inherit;
  font-size: 17px;
  padding: 12px 16px;
  border: 3px solid var(--ink);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  outline: none;
  transition: box-shadow 0.1s ease;
  appearance: none;
}
.form-group select { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%231a1714' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 40px; }
.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus { box-shadow: 4px 4px 0 var(--ink); }
.form-group textarea { resize: vertical; min-height: 120px; }
#submit-btn { margin-top: 4px; }
#submit-btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none; box-shadow: var(--shadow); }

.support-success { color: #16a34a; font-weight: 600; margin: 16px 0 0; }
.support-error { color: var(--alert); font-weight: 600; margin: 16px 0 0; }

.feed-loading { color: var(--ink-soft); }
.feed-empty { color: var(--ink-soft); font-style: italic; }
.feed-item {
  position: relative;
  background: var(--paper);
  border: 3px solid var(--ink);
  border-radius: 16px;
  padding: 22px 24px;
  box-shadow: 4px 4px 0 var(--ink);
  margin-bottom: 16px;
}
.feed-delete {
  position: absolute;
  top: 14px;
  right: 14px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--ink-soft);
  padding: 4px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color 0.1s, background 0.1s;
}
.feed-delete:hover { color: var(--alert); background: var(--cream-deep); }
.feed-delete:disabled { opacity: 0.4; cursor: not-allowed; }
.feed-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.feed-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  border: 2px solid var(--ink);
}
.feed-badge--bug { background: var(--alert); color: var(--paper); }
.feed-badge--feature { background: #2563eb; color: #fff; }
.feed-badge--question { background: #16a34a; color: #fff; }
.feed-badge--yell { background: var(--ink); color: var(--paper); }
.feed-time { font-size: 13px; color: var(--ink-soft); }
.feed-subject { font-family: "Bricolage Grotesque", sans-serif; font-weight: 800; font-size: 20px; line-height: 1.1; margin: 0 0 8px; }
.feed-message { font-size: 16px; color: var(--ink-soft); margin: 0; white-space: pre-wrap; word-break: break-word; }

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 20px; padding-bottom: 60px; }
  .hero-art { order: -1; max-width: 420px; }
  .hero-sticker { right: 10px; top: -14px; }
  .steps { grid-template-columns: 1fr; }
  .clip-grid { grid-template-columns: repeat(2, 1fr); }
  .support-layout { grid-template-columns: 1fr; }
  .support-form-wrap { position: static; }
}

@media (max-width: 540px) {
  body { font-size: 17px; }
  .nav { padding: 16px 20px; }
  .nav-links { gap: 12px; font-size: 13px; }
  .nav-links a:first-child { display: none; } /* "How it works" is too wide — drops to 3 links */
  .hero { padding: 16px 20px 56px; gap: 28px; }
  .hero-art { margin-top: 14px; } /* room for the sticker above the image */
  .hero h1 { font-size: 40px; }
  .hero h1 br { display: none; }
  .lede { font-size: 18px; }
  .how, .clips { padding-left: 20px; padding-right: 20px; padding-top: 60px; padding-bottom: 60px; }
  .clip-grid { grid-template-columns: 1fr; }
  .footer { padding: 30px 20px; }
}
