/* =====================================================================
   Cross-Functional Friction Scan™ - Apple Design Stylesheet
   ===================================================================== */

:root {
  --navy: #1a2633;
  --blue: #17609E;
  --orange: #F26622;
  --green: #99B63B;
  --yellow: #FF9500;
  --red: #FF3B30;
  --ink: #2D3E50;
  --muted: #5a6c7d;
  --line: rgba(45, 62, 80, 0.1);
  --paper: #FFFFFF;
  --soft: #F8F9FA;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

body {
  margin: 0;
  background: var(--soft);
  color: var(--ink);
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
}

h1, h2, .friction-hero h1 {
  font-family: var(--font-display);
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  background: #000;
  color: #fff;
  padding: 8px 16px;
  border-radius: 980px;
  z-index: 1000;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus {
  top: 16px;
}

main {
  width: 100%;
  margin: 0 auto;
}

.screen {
  display: none;
}
.screen.active {
  display: block;
}

/* Landing Hero */
.friction-hero {
  background: radial-gradient(1200px 600px at 85% 0%, rgba(23, 96, 158, 0.45), transparent 60%), #1a2633;
  color: #FFFFFF;
  padding: clamp(56px, 7vw, 84px) 24px clamp(64px, 8vw, 96px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.friction-hero-inner {
  max-width: 860px;
  margin: 0 auto;
}

.friction-hero h1 {
  font-size: clamp(2.3rem, 5vw, 3.8rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.08;
  margin: 14px 0 16px;
  color: #FFFFFF;
}

.friction-hero p.lede {
  font-size: 16px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.84);
  max-width: 68ch;
  margin: 0 auto 28px;
}

.friction-hero-pills {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Card Shell */
.friction-card-shell {
  max-width: 840px;
  margin: -50px auto 72px;
  padding: 0 20px;
  position: relative;
  z-index: 10;
}

.friction-card {
  background: #FFFFFF;
  border-radius: var(--ds-radius-xl);
  padding: clamp(28px, 5vw, 44px);
  border: 1px solid var(--ds-hairline);
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 20px 40px -8px rgba(0, 0, 0, 0.07);
}

.signal-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 28px;
}
@media (max-width: 580px) {
  .signal-strip {
    grid-template-columns: 1fr;
  }
}

.signal-card {
  background: #FBFBFD;
  border: 1px solid var(--ds-hairline);
  border-radius: var(--ds-radius-md);
  padding: 16px;
  text-align: center;
}

.signal-number {
  display: block;
  font-size: 30px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  color: var(--blue);
}

.signal-card span {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--muted);
}

/* Assessment Shell */
.assessment-shell {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.progress-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.progress-meter {
  height: 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: var(--ds-radius-pill);
  overflow: hidden;
  margin-bottom: 20px;
}

#progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--blue) 0%, var(--orange) 100%);
  border-radius: var(--ds-radius-pill);
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

#progress-text {
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  margin: 0;
}

.dimension-nav {
  display: none;
}

.question-card fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}

#dimension-title {
  font-size: clamp(22px, 3.2vw, 28px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  color: var(--ink);
  margin: 0 0 8px;
  display: block;
}

.dimension-description {
  font-size: 15px;
  line-height: 1.5;
  color: var(--muted);
  margin: 0 0 28px;
}

.rating-group {
  margin-bottom: 28px;
  background: #FBFBFD;
  border: 1px solid var(--ds-hairline);
  border-radius: var(--ds-radius-lg);
  padding: 20px;
}

.rating-group h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 4px;
}

.rating-group p {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 16px;
}

.scale {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
}

.scale label {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 12px 6px;
  background: #FFFFFF;
  border: 1.5px solid var(--ds-hairline);
  border-radius: var(--ds-radius-md);
  cursor: pointer;
  transition: transform 0.12s ease, border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.scale label:hover {
  background: #F2F2F5;
}

.scale label:active {
  transform: scale(0.96);
}

.scale label input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.scale label span {
  font-size: 18px;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: var(--ink);
}

.scale label small {
  display: block;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  margin-top: 2px;
}

.scale label:has(input:checked) {
  border-color: var(--blue);
  background: #FFFFFF;
  box-shadow: 0 2px 10px rgba(23, 96, 158, 0.15);
}

.scale label:has(input:checked) span,
.scale label:has(input:checked) small {
  color: var(--blue);
}

.scale label.unable-option:has(input:checked) {
  border-color: var(--muted);
}
.scale label.unable-option:has(input:checked) span,
.scale label.unable-option:has(input:checked) small {
  color: var(--muted);
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--ds-hairline);
  padding-top: 20px;
}

/* Reflection View */
.text-label {
  display: block;
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 12px;
  line-height: 1.45;
}

#open-text {
  width: 100%;
  padding: 14px 16px;
  font-size: 14.5px;
  line-height: 1.55;
  border-radius: var(--ds-radius-md);
  border: 1.5px solid var(--ds-hairline);
  background: #FBFBFD;
  color: var(--ink);
  resize: vertical;
  margin-bottom: 12px;
}

#open-text:focus {
  outline: none;
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(23, 96, 158, 0.15);
}

/* Results View */
.score-block {
  text-align: center;
  padding: 24px 0 28px;
  border-bottom: 1px solid var(--ds-hairline);
  margin-bottom: 28px;
}

.score {
  font-size: clamp(3.2rem, 8vw, 5.4rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.035em;
  line-height: 1;
  color: var(--ink);
  display: block;
}

.score-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 6px;
}

.band-pill {
  display: inline-block;
  font-size: 13.5px;
  font-weight: 700;
  padding: 6px 16px;
  border-radius: var(--ds-radius-pill);
  margin-top: 14px;
}

.band-low { background: var(--ds-green-subtle); color: #1b7a36; border: 1px solid rgba(52, 199, 89, 0.3); }
.band-moderate { background: var(--ds-yellow-subtle); color: #9c5c00; border: 1px solid rgba(255, 149, 0, 0.3); }
.band-material { background: var(--ds-orange-subtle); color: var(--orange); border: 1px solid var(--ds-orange-border); }
.band-high { background: var(--ds-red-subtle); color: #ba2820; border: 1px solid rgba(255, 59, 48, 0.3); }

.result-copy {
  font-size: 15px;
  line-height: 1.55;
  color: var(--muted);
  margin-bottom: 24px;
}

.top-areas {
  padding-left: 20px;
  margin: 0 0 28px;
  display: grid;
  gap: 12px;
}

.top-areas li {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink);
}

.top-areas li strong {
  color: var(--blue);
}

.examine-list {
  padding-left: 20px;
  margin: 0 0 28px;
  display: grid;
  gap: 10px;
}

.examine-list li {
  font-size: 14px;
  line-height: 1.5;
  color: var(--muted);
}

.all-seven {
  background: #FBFBFD;
  border: 1px solid var(--ds-hairline);
  border-radius: var(--ds-radius-md);
  padding: 16px 20px;
  margin-bottom: 28px;
}

.all-seven summary {
  font-size: 14px;
  font-weight: 600;
  color: var(--blue);
  cursor: pointer;
}

.dimension-results {
  margin-top: 16px;
  display: grid;
  gap: 10px;
  border-top: 1px solid var(--ds-hairline-subtle);
  padding-top: 14px;
}

.dimension-result {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  font-size: 13px;
}

.disclaimer {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  background: #FBFBFD;
  border: 1px solid var(--ds-hairline);
  border-radius: var(--ds-radius-sm);
  padding: 12px 16px;
  margin-bottom: 28px;
}

.lead-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 28px;
  padding-top: 24px;
  border-top: 1px solid var(--ds-hairline);
}
