@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --orange: #F15A22;
  --orange-dark: #D14A15;
  --orange-light: #FDF1EC;
  --grey: #6D6E71;
  --grey-dark: #2C2C2C;
  --grey-mid: #9A9A9A;
  --grey-light: #F5F5F5;
  --white: #FFFFFF;
  --border: #E8E8E8;
  --success: #2D7D52;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', sans-serif;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.10);
  --shadow-lg: 0 8px 32px rgba(0,0,0,0.12);
  --radius: 8px;
  --radius-lg: 16px;
  --max-width: 760px;
}

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

html { font-size: 17px; scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  color: var(--grey-dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* TYPOGRAPHY */
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; }
h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.3rem, 3vw, 1.8rem); font-weight: 600; }
h3 { font-size: 1.1rem; font-weight: 600; }
p { color: var(--grey); line-height: 1.7; }
a { color: var(--orange); text-decoration: none; }
a:hover { text-decoration: underline; }

/* LAYOUT */
.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 24px;
}

/* HEADER */
.site-header {
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
  background: var(--white);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo img { width: 36px; height: 36px; }

.logo-text {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--grey-dark);
  letter-spacing: -0.02em;
}

.logo-text span { color: var(--orange); }

/* HERO */
.hero {
  padding: 80px 0 64px;
  text-align: center;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}

.hero h1 {
  margin-bottom: 20px;
  color: var(--grey-dark);
}

.hero h1 em {
  font-style: normal;
  color: var(--orange);
}

.hero__sub {
  font-size: 1.05rem;
  max-width: 540px;
  margin: 0 auto 40px;
  color: var(--grey);
}

/* BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s ease;
  text-decoration: none;
}

.btn--primary {
  background: var(--orange);
  color: var(--white);
}

.btn--primary:hover {
  background: var(--orange-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(241, 90, 34, 0.3);
  text-decoration: none;
  color: var(--white);
}

.btn--secondary {
  background: var(--white);
  color: var(--orange);
  border: 2px solid var(--orange);
}

.btn--secondary:hover {
  background: var(--orange-light);
  text-decoration: none;
}

.btn--ghost {
  background: transparent;
  color: var(--grey);
  border: 1px solid var(--border);
}

.btn--ghost:hover {
  background: var(--grey-light);
  text-decoration: none;
}

.btn--full { width: 100%; }
.btn--lg { padding: 16px 36px; font-size: 1rem; }

.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* CARDS */
.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
}

.card--elevated {
  box-shadow: var(--shadow-md);
}

/* FORMS */
.form-group {
  margin-bottom: 14px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--grey-dark);
  margin-bottom: 6px;
}

label .optional {
  font-weight: 400;
  color: var(--grey-mid);
  font-size: 0.8rem;
}

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
textarea,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--grey-dark);
  background: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(241, 90, 34, 0.08);
}

input.error,
textarea.error {
  border-color: #E53E3E;
}

.field-error {
  font-size: 0.8rem;
  color: #E53E3E;
  margin-top: 4px;
}

textarea { resize: vertical; min-height: 80px; }

/* SCALE QUESTION */
.scale-question {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 16px;
  transition: box-shadow 0.2s;
}

.scale-question:hover {
  box-shadow: var(--shadow-sm);
}

.scale-question.answered {
  border-color: var(--orange);
  background: var(--orange-light);
}

.question-area {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 8px;
}

.question-text {
  font-size: 1rem;
  font-weight: 500;
  color: var(--grey-dark);
  margin-bottom: 20px;
  line-height: 1.5;
}

.scale-options {
  display: flex;
  gap: 8px;
  align-items: center;
}

.scale-labels {
  display: flex;
  justify-content: space-between;
  margin-top: 8px;
}

.scale-label {
  font-size: 0.75rem;
  color: var(--grey-mid);
}

.scale-btn {
  flex: 1;
  aspect-ratio: 1;
  max-width: 52px;
  border: 2px solid var(--border);
  border-radius: var(--radius);
  background: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--grey);
  cursor: pointer;
  transition: all 0.15s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.scale-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
}

.scale-btn.selected {
  border-color: var(--orange);
  background: var(--orange);
  color: var(--white);
}

/* PROGRESS */
.progress-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 32px;
}

.progress-bar__fill {
  height: 100%;
  background: var(--orange);
  border-radius: 2px;
  transition: width 0.4s ease;
}

.progress-text {
  font-size: 0.8rem;
  color: var(--grey-mid);
  text-align: right;
  margin-bottom: 8px;
}

/* STATUS BADGE */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 600;
}

.badge--active {
  background: #E8F5EE;
  color: var(--success);
}

.badge--closed {
  background: var(--grey-light);
  color: var(--grey);
}

.badge--dot::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

/* STAT BLOCKS */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 16px;
  margin: 24px 0;
}

.stat-block {
  background: var(--grey-light);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}

.stat-block__number {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--orange);
  line-height: 1;
  margin-bottom: 4px;
}

.stat-block__label {
  font-size: 0.8rem;
  color: var(--grey);
  font-weight: 500;
}

/* SCORE BAR */
.score-area {
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
}

.score-area:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.score-area__header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
}

.score-area__name {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--grey-dark);
}

.score-area__value {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--orange);
}

.score-area__value span {
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--grey-mid);
  font-weight: 400;
}

.score-track {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 8px;
}

.score-fill {
  height: 100%;
  background: var(--orange);
  border-radius: 4px;
  transition: width 0.8s ease;
}

.score-fill--low { background: #E53E3E; }
.score-fill--mid { background: #D97706; }
.score-fill--high { background: var(--success); }

.distribution {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.dist-bar {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}

.dist-bar__fill {
  width: 100%;
  background: var(--border);
  border-radius: 2px;
  transition: height 0.6s ease;
  min-height: 4px;
}

.dist-bar__label {
  font-size: 0.65rem;
  color: var(--grey-mid);
}

/* OPEN TEXT RESPONSES */
.response-item {
  background: var(--grey-light);
  border-left: 3px solid var(--orange);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 14px 16px;
  margin-bottom: 10px;
  font-size: 0.9rem;
  color: var(--grey-dark);
  line-height: 1.6;
}

/* CTA SECTION */
.cta-section {
  background: var(--grey-dark);
  border-radius: var(--radius-lg);
  padding: 40px;
  text-align: center;
  margin-top: 40px;
}

.cta-section h2 {
  color: var(--white);
  margin-bottom: 12px;
}

.cta-section p {
  color: rgba(255,255,255,0.7);
  margin-bottom: 28px;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

/* HOW IT WORKS */
.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 24px;
  margin: 40px 0;
}

.step {
  text-align: center;
  padding: 24px 16px;
}

.step__number {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--orange-light);
  color: var(--orange);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.step h3 {
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.step p {
  font-size: 0.85rem;
}

/* DIVIDER */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 32px 0;
}

/* SECTION */
.section {
  padding: 64px 0;
}

.section--grey {
  background: var(--grey-light);
}

.section__header {
  text-align: center;
  margin-bottom: 40px;
}

.section__header p {
  max-width: 500px;
  margin: 12px auto 0;
}

/* ALERT */
.alert {
  padding: 14px 18px;
  border-radius: var(--radius);
  font-size: 0.9rem;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.alert--info {
  background: #EBF4FF;
  color: #2B6CB0;
  border: 1px solid #BEE3F8;
}

.alert--success {
  background: #E8F5EE;
  color: var(--success);
  border: 1px solid #C6E6D4;
}

.alert--warning {
  background: #FFFBEB;
  color: #92400E;
  border: 1px solid #FDE68A;
}

/* COPY BOX */
.copy-box {
  display: flex;
  gap: 8px;
  align-items: center;
  background: var(--grey-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px 14px;
}

.copy-box input {
  flex: 1;
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.85rem;
  color: var(--grey);
}

.copy-box input:focus {
  box-shadow: none;
}

.copy-btn {
  flex-shrink: 0;
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* FOOTER */
.site-footer {
  padding: 32px 0;
  border-top: 1px solid var(--border);
  text-align: center;
}

.site-footer p {
  font-size: 0.8rem;
  color: var(--grey-mid);
}

/* PRINT */
@media print {
  .site-header,
  .site-footer,
  .cta-section,
  .btn--ghost,
  .no-print { display: none !important; }

  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; }

  body { font-size: 11pt; background: white; }

  .container { max-width: 100%; padding: 0 16px; }

  .card {
    box-shadow: none !important;
    border: 1px solid #ddd;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .overall-score-block {
    background: #2C2C2C !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .area-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .question-block {
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .range-bar-track { background: #eeeeee !important; }

  .range-bar-fill {
    background: linear-gradient(90deg, #C96A3A, #F15A22) !important;
    opacity: 0.35 !important;
  }

  .range-bar-avg {
    background: #F15A22 !important;
    border: 2px solid white !important;
  }

  .score-chip { color: white !important; }
  .score-chip--low  { background: #C96A3A !important; }
  .score-chip--mid  { background: #E07D3A !important; }
  .score-chip--high { background: #F15A22 !important; }

  .open-text-list li {
    border-left: 3px solid #F15A22 !important;
    background: #F5F5F5 !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }

  .report-header { padding: 24px 0 20px; }

  .animate-in,
  .animate-in--delay-1,
  .animate-in--delay-2,
  .animate-in--delay-3 { animation: none !important; opacity: 1 !important; }
}

/* ANIMATIONS */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.animate-in {
  animation: fadeInUp 0.4s ease forwards;
}

.animate-in--delay-1 { animation-delay: 0.1s; opacity: 0; }
.animate-in--delay-2 { animation-delay: 0.2s; opacity: 0; }
.animate-in--delay-3 { animation-delay: 0.3s; opacity: 0; }

/* RESPONSIVE */
@media (max-width: 600px) {
  .card { padding: 20px; }
  .hero { padding: 48px 0 40px; }
  .cta-section { padding: 28px 20px; }
  .scale-options { gap: 5px; }
}
