/* Startup Roast — dark, sharp, share-friendly. No external libraries. */
:root {
  --bg: #0d0e14;
  --bg-elev: #161824;
  --bg-card: #1b1e2c;
  --border: #2a2e40;
  --text: #edeef3;
  --muted: #969aaa;
  --accent: #ff5c5c;
  --accent-2: #ff8a3d;
  --good: #4cd97b;
  --mid: #f0c850;
  --bad: #ff5c5c;
  --radius: 14px;
  --maxw: 880px;
  --shadow: 0 8px 30px rgba(0, 0, 0, 0.35);
  font-synthesis: none;
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

body {
  background:
    radial-gradient(1100px 500px at 80% -10%, rgba(255, 92, 92, 0.10), transparent 60%),
    radial-gradient(900px 500px at -10% 0%, rgba(255, 138, 61, 0.08), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
}

main.container { flex: 1 0 auto; padding-bottom: 64px; }

a { color: var(--accent-2); text-decoration: none; }
a:hover { text-decoration: underline; }

h1, h2, h3 { line-height: 1.2; letter-spacing: -0.01em; }

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(13, 14, 20, 0.7);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  padding-bottom: 14px;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand-mark { font-size: 1.3rem; }
.brand-name { font-size: 1.1rem; letter-spacing: -0.02em; }
.nav { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.nav a { color: var(--muted); font-size: 0.95rem; font-weight: 500; }
.nav a:hover { color: var(--text); text-decoration: none; }
.nav .nav-cta {
  color: var(--text);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--bg-elev);
}
.nav .nav-cta:hover { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 28px; text-align: center; }
.hero-compact { padding: 40px 0 16px; }
.hero-title {
  font-size: clamp(2.1rem, 5vw, 3.4rem);
  margin: 0 0 14px;
  font-weight: 900;
  letter-spacing: -0.03em;
  background: linear-gradient(120deg, #fff, #ffb199);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub { color: var(--muted); font-size: 1.12rem; max-width: 620px; margin: 0 auto; }

/* ---------- Alerts ---------- */
.alert {
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid rgba(255, 92, 92, 0.4);
  color: #ffd2d2;
  padding: 14px 16px;
  border-radius: var(--radius);
  margin: 8px 0 20px;
}

/* ---------- Form ---------- */
.roast-form-wrap { margin: 18px 0 36px; }
.roast-form {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
}
.field { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.field-label { font-weight: 600; font-size: 0.95rem; }
.req { color: var(--accent); }
.opt, .field-hint { color: var(--muted); font-weight: 400; font-size: 0.85rem; }
.char-count-under { color: var(--accent); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

textarea, input[type="text"] {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text);
  padding: 12px 14px;
  font: inherit;
  resize: vertical;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
textarea:focus, input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(255, 92, 92, 0.18);
}
textarea::placeholder, input::placeholder { color: #5e6377; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 700;
  font-size: 0.98rem;
  cursor: pointer;
  transition: transform 0.08s ease, filter 0.15s ease, background 0.15s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 14px 26px; font-size: 1.05rem; }
.btn-primary {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #1a0c0c;
}
.btn-primary:hover { filter: brightness(1.07); }
.btn-primary:disabled { opacity: 0.6; cursor: progress; }
.btn-ghost { background: var(--bg-card); border-color: var(--border); color: var(--text); }
.btn-ghost:hover { border-color: var(--accent); }

#submit-btn { width: 100%; margin-top: 4px; }
.microcopy { color: var(--muted); font-size: 0.85rem; text-align: center; margin: 14px 0 0; }

/* ---------- How it works / steps ---------- */
.featured-victims {
  margin: 8px 0 34px;
}
.section-heading-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}
.section-heading-row h2 {
  font-size: 1.3rem;
  margin: 0;
}
.section-heading-row a {
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
  white-space: nowrap;
}
.victim-list {
  display: grid;
  gap: 10px;
}
.victim-row {
  display: grid;
  gap: 4px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text);
  padding: 14px 16px;
}
.victim-row:hover {
  border-color: var(--accent-2);
  text-decoration: none;
}
.victim-row strong {
  overflow-wrap: anywhere;
}
.victim-row span {
  color: var(--muted);
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.intro-copy {
  margin: 8px 0 32px;
  color: #d6d8e2;
}
.intro-copy h2 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}
.intro-copy p {
  margin: 10px 0;
}

.how-it-works { margin: 40px 0; }
.how-it-works h2 { font-size: 1.3rem; }
.steps { padding-left: 20px; color: var(--muted); }
.steps li { margin: 8px 0; }
.steps strong { color: var(--text); }

/* ---------- Roast report ---------- */
.roast { padding: 30px 0 10px; }
.roast-head { margin-bottom: 18px; }
.roast-title {
  font-size: clamp(1.7rem, 4vw, 2.6rem);
  font-weight: 900;
  margin: 0;
  letter-spacing: -0.02em;
}

.idea-card {
  background: linear-gradient(140deg, rgba(255, 138, 61, 0.10), rgba(255, 92, 92, 0.06));
  border: 1px solid rgba(255, 138, 61, 0.36);
  border-left: 4px solid var(--accent-2);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 8px 0 26px;
}
.idea-card-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.idea-card h2 {
  margin: 0;
  font-size: 1.15rem;
}
.idea-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.idea-quote {
  margin: 0;
  color: #fff4ec;
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  font-weight: 650;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.idea-facts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}
.idea-fact {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: min(240px, 100%);
  flex: 1 1 220px;
  background: rgba(13, 14, 20, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 10px 12px;
}
.idea-fact-label {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.10em;
  text-transform: uppercase;
}
.idea-fact-value {
  color: #edeef3;
  overflow-wrap: anywhere;
}

.score-block {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 30px;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  margin: 8px 0 26px;
  box-shadow: var(--shadow);
}
.score-number {
  font-size: clamp(3.6rem, 10vw, 6rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.04em;
}
.score-max { font-size: 0.35em; color: var(--muted); font-weight: 700; }
.score-label {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 700;
}
.score-meta { flex: 1 1 280px; min-width: 0; }
.verdict { font-size: 1.2rem; font-weight: 600; margin: 0; }

/* Death clock — the shareable hero metric */
.death-clock {
  flex: 0 0 auto;          /* keep natural width, never shrink under content */
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 100%;
}
.bankruptcy-time {
  font-size: clamp(2.1rem, 6vw, 3.5rem);
  font-weight: 900;
  line-height: 1.04;
  letter-spacing: -0.03em;
  overflow-wrap: anywhere;
}
.survivability-chip {
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px 10px;
}

.score-good .score-number,
.score-good .bankruptcy-time { color: var(--good); }
.score-mid .score-number,
.score-mid .bankruptcy-time { color: var(--mid); }
.score-bad .score-number,
.score-bad .bankruptcy-time { color: var(--bad); }
.score-good { border-color: rgba(76, 217, 123, 0.4); }
.score-mid { border-color: rgba(240, 200, 80, 0.4); }
.score-bad { border-color: rgba(255, 92, 92, 0.4); }

section h2 { font-size: 1.25rem; margin: 0 0 12px; }

.cause-of-death {
  background: rgba(255, 92, 92, 0.07);
  border: 1px solid rgba(255, 92, 92, 0.3);
  border-radius: var(--radius);
  padding: 18px 20px;
  margin-bottom: 26px;
}
.cause-of-death p { margin: 0; font-size: 1.05rem; }

.voices { margin-bottom: 26px; }
.voice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.voice-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left-width: 4px;
  border-radius: 12px;
  padding: 16px 18px;
}
.voice-card p { margin: 8px 0 0; color: #dfe1ea; }
.voice-tag {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-weight: 800;
  color: var(--muted);
}
.voice-investor { border-left-color: #6aa3ff; }
.voice-cynic { border-left-color: #b07cff; }
.voice-market { border-left-color: var(--accent-2); }
.voice-reality { border-left-color: var(--good); }

.columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 18px; }
.panel {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 18px;
}
.panel ul { margin: 0; padding-left: 20px; }
.panel li { margin: 8px 0; }
.list-fail li::marker { color: var(--bad); }
.list-good li::marker { color: var(--good); }
.list-insist li::marker { color: var(--accent-2); }

.next-test {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin-bottom: 26px;
}
.next-test p { margin: 0; font-size: 1.05rem; }

.citeora-cta {
  text-align: center;
  background: linear-gradient(140deg, rgba(255, 92, 92, 0.14), rgba(255, 138, 61, 0.10));
  border: 1px solid rgba(255, 138, 61, 0.4);
  border-radius: var(--radius);
  padding: 30px 24px;
  margin: 10px 0 26px;
}
.citeora-cta h2 { margin-top: 0; }
.citeora-cta p { color: #e9d9cf; max-width: 560px; margin: 8px auto; }
.citeora-line { font-style: italic; color: var(--muted) !important; }
.citeora-cta .btn { margin-top: 14px; }

.share {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-top: 10px;
  padding: 22px;
}
.share h2 {
  margin-bottom: 6px;
}
.share-nudge {
  color: #d6d8e2;
  margin: 0 0 16px;
}
.share-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.permalink-input {
  flex: 1 1 280px;
  min-width: 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.share-actions .btn {
  flex: 0 0 auto;
}
.share-toast {
  background: rgba(76, 217, 123, 0.12);
  border: 1px solid rgba(76, 217, 123, 0.36);
  border-radius: 12px;
  color: #d9ffe4;
  font-weight: 700;
  margin-top: 12px;
  padding: 12px 14px;
}
.roast-again { display: inline-block; margin-top: 18px; color: var(--muted); }

/* ---------- Gallery ---------- */
.hall-hero .hero-title {
  background: linear-gradient(120deg, #fff, #ffcf8a 45%, #ff5c5c);
  -webkit-background-clip: text;
  background-clip: text;
}
.gallery-intro {
  color: #d6d8e2;
  margin: 8px 0 20px;
}
.gallery-intro p {
  margin: 0;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
  margin: 20px 0 30px;
}
.hall-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  align-items: stretch;
}
.gallery-card {
  display: block;
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-top-width: 3px;
  border-radius: 12px;
  padding: 18px;
  color: var(--text);
}
.gallery-card:hover { border-color: var(--accent); text-decoration: none; transform: translateY(-2px); transition: transform 0.12s ease; }
.gallery-card.score-good { border-top-color: var(--good); }
.gallery-card.score-mid { border-top-color: var(--mid); }
.gallery-card.score-bad { border-top-color: var(--bad); }
.gallery-score { font-size: 2.2rem; font-weight: 900; line-height: 1; }
.gallery-card-title { font-size: 1.05rem; margin: 8px 0 6px; }
.gallery-verdict { color: var(--muted); font-size: 0.92rem; margin: 0; }
.hall-card {
  display: flex;
  flex-direction: column;
  min-height: 310px;
  border-top-width: 4px;
  padding: 18px;
}
.hall-card:hover {
  transform: translateY(-2px);
}
.hall-badge {
  align-self: flex-start;
  background: rgba(255, 138, 61, 0.12);
  border: 1px solid rgba(255, 138, 61, 0.34);
  border-radius: 999px;
  color: #ffd2b4;
  font-size: 0.75rem;
  font-weight: 800;
  margin-bottom: 12px;
  padding: 5px 10px;
}
.hall-card .gallery-card-title {
  font-size: 1.2rem;
  line-height: 1.25;
  margin: 0 0 8px;
}
.hall-stars {
  color: #ffd45c;
  font-size: 0.9rem;
  letter-spacing: 0.06em;
  margin-bottom: 14px;
}
.hall-quote {
  color: #f1e8df;
  flex: 1;
  font-size: 1rem;
  font-weight: 650;
  line-height: 1.5;
  margin: 0 0 18px;
  overflow-wrap: anywhere;
}
.hall-score-row {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  padding-top: 14px;
}
.hall-score-row strong {
  color: var(--text);
  font-size: 1.25rem;
}
.hall-open {
  color: var(--accent-2);
  font-weight: 800;
  margin-top: 16px;
}

.empty-state { text-align: center; color: var(--muted); padding: 50px 0; }
.citeora-strip {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 22px;
  margin-top: 20px;
  color: var(--muted);
}

/* ---------- Prose / about ---------- */
.prose { max-width: 680px; margin: 10px auto 0; }
.prose h2 { margin-top: 28px; }
.prose p { color: #d6d8e2; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 26px; }

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--bg-elev);
  flex-shrink: 0;
}
.footer-inner { padding: 26px 20px; color: var(--muted); font-size: 0.9rem; }
.footer-inner p { margin: 6px 0; }
.footer-citeora { color: #c9ccd8; }
.muted { color: var(--muted); }

/* ---------- Responsive ---------- */
@media (max-width: 640px) {
  .field-row { grid-template-columns: 1fr; }
  .voice-grid { grid-template-columns: 1fr; }
  .columns { grid-template-columns: 1fr; }
  .score-block { flex-direction: column; align-items: flex-start; gap: 12px; }
  .share-actions .btn { width: 100%; }
  .nav { gap: 12px; }
}
