*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange: #FF4500;
  --orange-dark: #CC3700;
  --black: #0A0A0A;
  --dark: #141414;
  --mid: #1E1E1E;
  --border: #2A2A2A;
  --text: #E8E8E8;
  --muted: #888;
  --green: #22C55E;
}

html { font-size: 16px; }
body {
  background: var(--black);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  line-height: 1.6;
  min-height: 100vh;
}

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

/* Layout */
.container { max-width: 680px; margin: 0 auto; padding: 0 24px; }

/* Nav */
nav {
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.logo {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.logo span { color: var(--orange); }

/* Hero */
.hero {
  text-align: center;
  padding: 72px 0 48px;
}
.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}
.hero h1 em {
  color: var(--orange);
  font-style: normal;
}
.hero p {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 480px;
  margin: 0 auto 40px;
}

/* Input */
.roast-form {
  display: flex;
  gap: 8px;
  max-width: 560px;
  margin: 0 auto;
}
.roast-form input {
  flex: 1;
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text);
  font-size: 1rem;
  padding: 14px 16px;
  outline: none;
  transition: border-color 0.15s;
}
.roast-form input:focus { border-color: var(--orange); }
.roast-form input::placeholder { color: var(--muted); }

.btn {
  background: var(--orange);
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-size: 1rem;
  font-weight: 700;
  padding: 14px 24px;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--orange-dark); }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.hint {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 12px;
  text-align: center;
}

/* Results */
#results { display: none; padding: 0 0 80px; }

.score-block {
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 32px;
}
.score-circle {
  flex-shrink: 0;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  border: 3px solid currentColor;
}
.score-circle .num { font-size: 2rem; line-height: 1; }
.score-circle .label { font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; }
.score-low { color: #EF4444; }
.score-mid { color: #F59E0B; }
.score-ok  { color: #22C55E; }

.verdict-text h3 { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); margin-bottom: 6px; }
.verdict-text p  { font-size: 1rem; line-height: 1.5; }

.card {
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  margin-bottom: 16px;
}
.card h2 {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
  margin-bottom: 14px;
}
.card p { font-size: 1rem; line-height: 1.65; }

.fixes-list { list-style: none; }
.fixes-list li {
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  font-size: 0.95rem;
  line-height: 1.55;
  display: flex;
  gap: 14px;
}
.fixes-list li:last-child { border-bottom: none; }
.fix-num {
  color: var(--orange);
  font-weight: 700;
  font-size: 0.85rem;
  flex-shrink: 0;
  padding-top: 2px;
}

.locked-card {
  background: var(--mid);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 28px 32px;
  text-align: center;
  margin-bottom: 24px;
}
.locked-card h2 { font-size: 1.1rem; font-weight: 700; margin-bottom: 8px; }
.locked-card p  { color: var(--muted); font-size: 0.95rem; margin-bottom: 24px; }
.price-tag {
  display: inline-block;
  background: var(--orange);
  color: #fff;
  font-weight: 800;
  font-size: 1.5rem;
  border-radius: 8px;
  padding: 2px 16px;
  margin-right: 8px;
}

/* Social proof */
.proof {
  text-align: center;
  padding: 40px 0;
  color: var(--muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
  margin-top: 24px;
}

/* Loading */
.loading {
  text-align: center;
  padding: 48px 0;
  color: var(--muted);
  display: none;
}
.spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--orange);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  margin: 0 auto 16px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  background: #1A0A0A;
  border: 1px solid #4A1A1A;
  border-radius: 8px;
  color: #FF8080;
  padding: 14px 18px;
  margin-top: 16px;
  display: none;
  font-size: 0.95rem;
}

@media (max-width: 560px) {
  .roast-form { flex-direction: column; }
  .score-block { flex-direction: column; text-align: center; gap: 20px; }
  .card, .locked-card { padding: 20px; }
}
