:root {
  color-scheme: light;
  --brand: #e11d2e;
  --ink: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --surface: #ffffff;
  --soft: #f8fafc;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: radial-gradient(circle at top left, #fee2e2 0, transparent 32rem), var(--soft);
}

.page-shell {
  width: min(1080px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 56px;
}

.hero-card,
.panel,
.widget-card,
.quote-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-radius: 24px;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.08);
}

.hero-card { padding: clamp(24px, 5vw, 48px); margin-bottom: 20px; }
.widget-card { padding: 0; overflow: hidden; }
.panel { padding: 20px; margin-bottom: 20px; }

.eyebrow {
  color: var(--brand);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin: 0 0 10px;
  text-transform: uppercase;
}

h1 { font-size: clamp(2rem, 6vw, 4rem); line-height: 0.98; margin: 0 0 16px; }
p { line-height: 1.65; }

label { display: grid; gap: 7px; font-weight: 700; margin-bottom: 14px; }
input, select, textarea {
  border: 1px solid var(--line);
  border-radius: 14px;
  font: inherit;
  padding: 12px 13px;
  width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(225, 29, 46, 0.12);
  outline: none;
}

.button,
button {
  background: var(--brand);
  border: 0;
  border-radius: 999px;
  color: white;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-weight: 800;
  min-height: 44px;
  padding: 10px 18px;
  text-decoration: none;
}
.button.secondary, button.secondary { background: var(--ink); }
.button.ghost, button.ghost { background: #f3f4f6; color: var(--ink); }
.button.danger, button.danger { background: #991b1b; }
.button:disabled, button:disabled { cursor: not-allowed; opacity: 0.55; }
.button-row, .hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.muted { color: var(--muted); font-size: 0.94rem; }
.quote-list { display: grid; gap: 14px; }
.quote-card { padding: 18px; }
.quote-card header { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.quote-card h2 { font-size: 1.2rem; margin: 0; }
.status {
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 900;
  padding: 6px 10px;
  text-transform: uppercase;
}
.status.submitted { background: #fef3c7; color: #92400e; }
.status.accepted { background: #dcfce7; color: #166534; }
.status.declined { background: #fee2e2; color: #991b1b; }
.quote-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 14px 0; }
.quote-grid div { background: #f9fafb; border-radius: 14px; padding: 10px; }
.quote-grid span { color: var(--muted); display: block; font-size: 0.78rem; font-weight: 800; text-transform: uppercase; }
code { background: #f3f4f6; border-radius: 6px; overflow-wrap: anywhere; padding: 2px 5px; }

.join-grid { display: grid; gap: 0 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.join-error { background: #fee2e2; border-radius: 14px; color: #991b1b; font-weight: 700; margin-bottom: 14px; padding: 12px; }
.join-honeypot { left: -10000px; position: absolute; }
.snippet-row { display: grid; gap: 10px; margin-bottom: 8px; }
.snippet {
  background: #111827;
  border-radius: 14px;
  color: #e5e7eb;
  font-size: 0.82rem;
  margin: 0;
  overflow-x: auto;
  padding: 14px;
  white-space: pre-wrap;
  word-break: break-all;
}
.install-steps { background: #f9fafb; border-radius: 14px; margin-top: 12px; padding: 6px 18px; }
.install-steps li { line-height: 1.6; margin: 8px 0; }
.install-section-title { color: var(--ink, #111827); font-weight: 900; margin: 14px 0 0; }
.discover-row { align-items: center; display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 10px; }
.palette-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 14px; }
.palette-swatch { border: 2px solid #d1d5db; border-radius: 12px; cursor: pointer; height: 44px; width: 44px; }
.palette-swatch:focus, .palette-swatch:hover { border-color: #111827; }
input[type="color"] { cursor: pointer; height: 48px; padding: 6px; }
.owner-stats { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); margin-bottom: 16px; }
.owner-stats[hidden] { display: none; }
.stat-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 14px; display: grid; gap: 2px; padding: 12px 14px; text-align: center; }
.stat-card strong { font-size: 1.25rem; }
.stat-card span { color: #6b7280; font-size: 0.8rem; font-weight: 700; }

@media (max-width: 700px) {
  .quote-grid { grid-template-columns: 1fr; }
  .quote-card header { display: grid; }
  .join-grid { grid-template-columns: 1fr; }
}
