:root {
  --gold: #d7b46a;
  --dark: #1f1f1f;
  --charcoal: #2b2b2b;
  --muted: #6f6f6f;
  --surface: #ffffff;
  --background: #f5f5f2;
  --border: #ece8df;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--background);
  color: var(--dark);
}

img {
  max-width: 100%;
  display: block;
}

.hero {
  background: linear-gradient(120deg, #111111, #2b2b2b);
  color: #fff;
  padding: 4rem 1.5rem;
}

.hero-content {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2rem;
}

.hero-content .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 0.8rem;
  color: var(--gold);
}

.hero-content h1 {
  font-size: clamp(2rem, 4vw, 3.5rem);
  margin-bottom: 1rem;
}

.hero-subheading {
  font-size: clamp(1.2rem, 2.5vw, 1.8rem);
  font-weight: 600;
  margin: 0 0 1.5rem;
  color: #f5f5f2;
}

.hero-content .lead {
  max-width: 520px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #e3e3e3;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.5rem;
}

.hero-logo {
  width: 240px;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.08);
  padding: 1.5rem;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35);
}

.primary-btn,
.ghost-btn {
  border-radius: 999px;
  padding: 0.85rem 1.8rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.primary-btn {
  background: var(--gold);
  color: var(--dark);
  box-shadow: 0 10px 20px rgba(215, 180, 106, 0.3);
}

.primary-btn:hover {
  transform: translateY(-2px);
}

.ghost-btn {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.4);
}

.page {
  max-width: 1200px;
  margin: -4rem auto 4rem;
  padding: 0 1.5rem;
}

.scorecard {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 2rem;
  margin-bottom: 3rem;
  align-items: start;
}

.score-summary {
  background: var(--surface);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 20px 50px rgba(15, 15, 15, 0.08);
  position: sticky;
  top: 2rem;
  align-self: start;
}

.score-summary h2 {
  margin-top: 0;
  font-size: 1.6rem;
}

.total-score {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

.total-score strong {
  font-size: 2rem;
}

.rating-box {
  background: #f9f5ed;
  border-radius: 18px;
  padding: 1.5rem;
  border: 1px solid #f1e3c9;
}

.rating-label {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.rating-value {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0.3rem 0 0.7rem;
}

.share-tools {
  margin-top: 2rem;
}

.share-icons {
  display: flex;
  gap: 0.8rem;
}

.share-btn {
  background: transparent;
  border: none;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 6px 18px rgba(12, 12, 12, 0.12);
}

.share-btn img {
  width: 36px;
  height: 36px;
  display: block;
}

.share-btn:hover {
  transform: translateY(-2px) scale(1.03);
}

.questions {
  background: var(--surface);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 70px rgba(12, 12, 12, 0.07);
}

.stock-notes-card {
  background: var(--surface);
  border-radius: 24px;
  padding: 2.5rem;
  box-shadow: 0 25px 70px rgba(12, 12, 12, 0.07);
  margin: 0 auto 3rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  max-width: 1200px;
}

.stock-notes-card .eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.75rem;
  color: var(--muted);
  margin-bottom: 0.4rem;
}

.stock-notes-card h3 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
}

.stock-notes-card p {
  margin: 0;
  color: var(--muted);
}

.stock-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.stock-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-weight: 600;
  color: var(--dark);
}

.stock-field input,
.stock-field textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.85rem 1rem;
  font-size: 1rem;
  font-family: inherit;
  background: #fcfbf9;
}

.stock-field input[readonly] {
  background: #f4f2ec;
  color: var(--muted);
  cursor: not-allowed;
}

.stock-field textarea {
  resize: vertical;
  min-height: 160px;
}

@media (max-width: 960px) {
  .scorecard {
    grid-template-columns: 1fr;
  }

  .score-summary {
    position: static;
    order: -1;
  }
}

.question-card {
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 0;
}

.question-card:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.question-title {
  font-size: 1.05rem;
  margin-bottom: 1rem;
}

.slider-row {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.slider-row input[type="range"] {
  flex: 1;
  accent-color: var(--gold);
}

.slider-value {
  min-width: 2.5rem;
  font-weight: 600;
  text-align: center;
}

.embed-section {
  background: var(--surface);
  border-radius: 24px;
  padding: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: 0 15px 40px rgba(15, 15, 15, 0.06);
}

.embed-code {
  background: #0f0f0f;
  color: #f5f1e6;
  border-radius: 18px;
  padding: 1.2rem 1.5rem;
  display: flex;
  gap: 1rem;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.embed-code code {
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', monospace;
  font-size: 0.95rem;
  overflow-wrap: anywhere;
}

.embed-code .ghost-btn {
  border-color: rgba(255, 255, 255, 0.3);
}

.site-footer {
  padding: 2rem 1.5rem 3rem;
  background: #111;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
}

.site-footer a {
  color: var(--gold);
  text-decoration: none;
}

.email-gate {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  z-index: 999;
}

.email-gate.hidden {
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.gate-card {
  background: #fff;
  border-radius: 24px;
  padding: 2.5rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: 0 40px 80px rgba(0, 0, 0, 0.2);
}

.gate-logo {
  width: 180px;
  margin: 0 auto 1rem;
}

.gate-form {
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.form-field {
  text-align: left;
}

.form-field input {
  width: 100%;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  border: 1px solid var(--border);
  font-size: 1rem;
}

.gate-note {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

@media (max-width: 960px) {
  .scorecard {
    grid-template-columns: 1fr;
  }
  .score-summary {
    position: static;
  }
}

@media (max-width: 640px) {
  .questions,
  .score-summary,
  .embed-section {
    padding: 1.5rem;
  }
  .hero {
    padding-top: 3rem;
  }
  .hero-actions {
    flex-direction: column;
    align-items: flex-start;
  }
  .embed-code {
    flex-direction: column;
    align-items: flex-start;
  }
  .ghost-btn {
    width: 100%;
    text-align: center;
  }
}
