@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,500;0,600;1,400&family=DM+Sans:wght@300;400;500&display=swap');

:root {
  --terracotta: #C1622A;
  --terracotta-dark: #712B13;
  --terracotta-mid: #993C1D;
  --terracotta-light: #FAECE7;
  --terracotta-border: #E8A882;
  --terracotta-hover: #F0C4B0;
  --gold: #A0843A;
  --gold-light: #FDF8EE;
  --stone: #B8AFA4;
  --sage: #5E8F80;
  --sage-light: #E4EDEA;
  --sage-dark: #3D6358;
  --warm-white: #FAF8F5;
  --warm-off: #F2EDE8;
  --text-primary: #2A2118;
  --text-secondary: #6B5C50;
  --text-tertiary: #9E8E82;
  --border: #E5DDD8;
  --border-light: #EDE8E3;
  --card-bg: #FFFFFF;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 1px 3px rgba(42,33,24,0.06), 0 4px 16px rgba(42,33,24,0.04);
  --shadow-md: 0 2px 8px rgba(42,33,24,0.08), 0 8px 32px rgba(42,33,24,0.06);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--warm-white);
  color: var(--text-primary);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { font-family: 'Lora', serif; }

.page {
  max-width: 640px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.page-wide {
  max-width: 960px;
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

/* NAV */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 2rem;
  border-bottom: 0.5px solid var(--border);
  background: var(--warm-white);
  position: sticky;
  top: 0;
  z-index: 100;
}
.nav-logo {
  font-family: 'Lora', serif;
  font-size: 18px;
  font-weight: 600;
  color: var(--terracotta-dark);
  text-decoration: none;
  letter-spacing: -0.01em;
}
.nav-back {
  font-size: 13px;
  color: var(--text-tertiary);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
}
.nav-back:hover { color: var(--text-secondary); }

/* EYEBROW */
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 0.6rem;
  font-family: 'DM Sans', sans-serif;
}

/* HEADLINES */
.headline {
  font-size: 26px;
  font-weight: 500;
  color: var(--text-primary);
  line-height: 1.35;
  margin-bottom: 0.6rem;
  letter-spacing: -0.01em;
}
.subhead {
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 2rem;
}

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

/* SECTION LABEL */
.section-label {
  font-size: 11px;
  letter-spacing: 0.09em;
  color: var(--text-tertiary);
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

/* BUTTONS */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 500;
  background: var(--terracotta);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  padding: 12px 24px;
  cursor: pointer;
  transition: background 0.15s, transform 0.1s;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}
.btn-primary:hover { background: var(--terracotta-mid); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary.disabled { opacity: 0.35; pointer-events: none; }

.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: var(--terracotta-mid);
  background: none;
  border: 1px solid var(--terracotta-border);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  cursor: pointer;
  transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
  text-decoration: none;
}
.btn-ghost:hover { background: var(--terracotta-light); }

/* CARDS */
.card {
  background: var(--card-bg);
  border: 0.5px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
}

/* PILLS */
.pill-top { display: inline-flex; align-items: center; background: var(--terracotta-light); color: var(--terracotta-mid); font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 20px; white-space: nowrap; font-family: 'DM Sans', sans-serif; }
.pill-mid { display: inline-flex; align-items: center; background: var(--warm-off); color: var(--text-secondary); font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 20px; border: 0.5px solid var(--border); white-space: nowrap; font-family: 'DM Sans', sans-serif; }
.pill-low { display: inline-flex; align-items: center; background: var(--sage-light); color: var(--sage-dark); font-size: 12px; font-weight: 500; padding: 2px 10px; border-radius: 20px; white-space: nowrap; font-family: 'DM Sans', sans-serif; }

/* INTERPRETATION BLOCKS */
.interp-block {
  background: var(--warm-off);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1rem;
}
.interp-title {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-tertiary);
  margin-bottom: 0.5rem;
}
.interp-body {
  font-size: 15px;
  color: var(--text-primary);
  line-height: 1.75;
}

/* HANDOFF */
.handoff {
  margin-top: 2rem;
  padding: 1.25rem 1.5rem;
  background: var(--terracotta-light);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.handoff-text {
  font-size: 15px;
  color: var(--terracotta-dark);
  line-height: 1.5;
}

/* FLOAT DOT PLOT */
.float-col { position: relative; margin: 0 auto; }
.float-item { position: absolute; display: flex; align-items: center; gap: 10px; }
.float-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.float-name { font-size: 14px; line-height: 1.3; }

/* RATER LEGEND */
.rater-legend { display: flex; gap: 1.5rem; margin-bottom: 1.75rem; align-items: center; }
.rater-item { display: flex; align-items: center; gap: 8px; }
.rater-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; }
.rater-name { font-size: 14px; font-weight: 500; }

/* FLOAT ROW (two rater) */
.float-row { position: absolute; display: flex; align-items: center; width: 100%; }
.var-label { font-size: 13px; width: 130px; min-width: 130px; color: var(--text-secondary); line-height: 1.3; }
.dot-zone { position: relative; flex: 1; height: 2px; }
.fdot { position: absolute; width: 11px; height: 11px; border-radius: 50%; transform: translate(-50%, -50%); top: 50%; }
.connect-line { position: absolute; top: 50%; height: 2px; transform: translateY(-50%); opacity: 0.25; border-radius: 1px; }

/* ANIMATE IN */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fade-up { animation: fadeUp 0.4s ease both; }
.fade-up-1 { animation-delay: 0.05s; }
.fade-up-2 { animation-delay: 0.1s; }
.fade-up-3 { animation-delay: 0.15s; }
.fade-up-4 { animation-delay: 0.2s; }
.fade-up-5 { animation-delay: 0.25s; }
