:root {
  --primary-color: #3b916efa;
  --primary-color-dark: #2a6b52;
  --success-color: #10b981;
  --danger-color: #dc2626;
  --text-color: #333;
  --text-muted: #666;
  --border-color: #e8e8e8;
  --card-bg: #ffffff;
  --hover-bg: #f9fafb;
  --bg-light: #f5f5f5;
  --shadow: 0 22px 45px rgba(20, 25, 30, 0.12);
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/gilroy/Gilroy-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/gilroy/Gilroy-Medium.ttf') format('truetype');
    font-weight: 500;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Gilroy';
    src: url('/assets/fonts/gilroy/Gilroy-Bold.ttf') format('truetype');
    font-weight: 700;
    font-style: normal;
    font-display: swap;
}

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

body {
  font-family: 'Gilroy', "Merriweather", Georgia, serif;
  color: var(--text-color);
  background: radial-gradient(circle at top, #e8f4ee 0%, #f9fbf8 55%, #f4f6f2 100%);
  min-height: 100vh;
}

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px 60px;
}

.card {
  background: var(--card-bg);
  border-radius: 28px;
  box-shadow: var(--shadow);
  padding: 40px;
  max-width: 700px;
  width: 100%;
  border: 1px solid rgba(59, 145, 110, 0.18);
}

.card__header h1 {
  font-size: clamp(1.6rem, 2.2vw, 2.4rem);
  line-height: 1.2;
  margin-bottom: 12px;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-weight: 600;
  font-size: 0.75rem;
  color: var(--primary-color-dark);
  margin-bottom: 10px;
}

.subtitle {
  color: var(--text-muted);
  font-size: 1rem;
}

.card__body {
  margin-top: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.grade-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(60px, 1fr));
  gap: 12px;
}

.grade {
  padding: 18px 0;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 16px;
  border: 1px solid var(--border-color);
  background: var(--hover-bg);
  color: var(--text-color);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.grade:hover,
.grade:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 12px 22px rgba(15, 40, 30, 0.15);
  outline: none;
}

.grade.is-selected {
  background: var(--primary-color);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 26px rgba(42, 107, 82, 0.3);
}

.followup {
  border-radius: 20px;
  padding: 20px;
  border: 1px dashed rgba(42, 107, 82, 0.4);
  background: rgba(59, 145, 110, 0.08);
}

.followup__question {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 16px;
}

.toggle {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.toggle__btn {
  flex: 1 1 140px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid var(--border-color);
  background: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}

.toggle__btn:hover,
.toggle__btn:focus-visible {
  transform: translateY(-1px);
  outline: none;
}

.toggle__btn.is-yes {
  background: var(--success-color);
  color: #fff;
  border-color: transparent;
}

.toggle__btn.is-no {
  background: var(--danger-color);
  color: #fff;
  border-color: transparent;
}

.action {
  display: flex;
  justify-content: flex-end;
}

.cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--primary-color-dark);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  transition: transform 0.2s ease, background 0.2s ease;
}

.cta:hover,
.cta:focus-visible {
  background: #214f3d;
  transform: translateY(-1px);
  outline: none;
}

@media (max-width: 600px) {
  .card {
    padding: 28px 20px;
  }

  .action {
    justify-content: stretch;
  }

  .cta {
    width: 100%;
  }
}
