/* GNS BESA Leadership Team | Shared Styles */

:root {
  --navy: #013148;
  --navy-deep: #011f2e;
  --coral: #FA7357;
  --coral-hover: #e85e3e;
  --coral-light: rgba(250,115,87,0.12);
  --white: #FFFFFF;
  --off-white: #F6F4F1;
  --light-gray: #E5E1DB;
  --mid-gray: #8C8680;
  --dark: #2A2724;
  --navy-subtle: rgba(1,49,72,0.07);
  --shadow: 0 2px 20px rgba(1,49,72,0.09);
  --shadow-lg: 0 8px 48px rgba(1,49,72,0.14);
  --radius: 14px;
  --radius-sm: 9px;
  --ease: all 0.2s cubic-bezier(0.4,0,0.2,1);
}

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

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--off-white);
  color: var(--dark);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.hdr { position: fixed; top: 0; left: 0; right: 0; z-index: 200; background: var(--navy-deep); }
.hdr-inner { max-width: 780px; margin: 0 auto; padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; }
.hdr-brand { display: flex; align-items: center; gap: 11px; }
.hdr-logo { width: 38px; height: 38px; background: transparent; border-radius: 8px; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.hdr-logo img { width: 100%; height: 100%; object-fit: contain; display: block; padding: 2px; }
.hdr-name { line-height: 1.25; }
.hdr-name strong { display: block; color: white; font-size: 14px; font-weight: 600; letter-spacing: 0.01em; }
.hdr-name span { color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 400; }
.hdr-step { color: rgba(255,255,255,0.5); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.prog-track { height: 3px; background: rgba(255,255,255,0.1); }
.prog-fill { height: 100%; background: var(--coral); border-radius: 0 2px 2px 0; transition: width 0.5s cubic-bezier(0.4,0,0.2,1); }

.main { max-width: 780px; margin: 0 auto; padding: 90px 24px 72px; }

.scr { display: none; }
.scr.on { display: block; animation: popIn 0.28s cubic-bezier(0.4,0,0.2,1); }
@keyframes popIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }

.gate-top { text-align: center; padding: 36px 0 28px; }
.badge { display: inline-block; background: var(--coral-light); color: var(--coral); border: 1.5px solid rgba(250,115,87,0.25); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 5px 14px; border-radius: 100px; margin-bottom: 20px; }
.gate-h1 { font-family: 'Fraunces', serif; font-size: clamp(26px, 5vw, 42px); font-weight: 600; color: var(--navy); line-height: 1.15; margin-bottom: 14px; }
.gate-sub { font-size: 16px; color: var(--mid-gray); line-height: 1.65; max-width: 480px; margin: 0 auto 32px; }
.gate-card { background: white; border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); max-width: 460px; margin: 0 auto; }
.time-pill { display: flex; align-items: center; gap: 9px; background: var(--navy-subtle); border-radius: var(--radius-sm); padding: 11px 14px; margin-bottom: 24px; }
.time-pill-icon { font-size: 15px; }
.time-pill-text { font-size: 13px; color: var(--navy); line-height: 1.45; }
.flabel { display: block; font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--navy); margin-bottom: 7px; }
.finput { width: 100%; padding: 12px 15px; border: 2px solid var(--light-gray); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 15px; color: var(--dark); background: var(--off-white); outline: none; transition: var(--ease); margin-bottom: 18px; }
.finput:focus { border-color: var(--coral); background: white; }
.finput::placeholder { color: var(--mid-gray); }
.finput:read-only { background: var(--navy-subtle); color: var(--navy); cursor: default; }
.finput:read-only:focus { border-color: var(--light-gray); background: var(--navy-subtle); }

.btn-p { display: block; width: 100%; padding: 15px 28px; background: var(--coral); color: white; border: none; border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 16px; font-weight: 600; cursor: pointer; transition: var(--ease); letter-spacing: 0.02em; }
.btn-p:hover { background: var(--coral-hover); transform: translateY(-1px); box-shadow: 0 6px 24px rgba(250,115,87,0.38); }
.btn-p:active { transform: translateY(0); }
.btn-p:disabled { background: var(--light-gray); color: var(--mid-gray); cursor: not-allowed; transform: none; box-shadow: none; }
.btn-p.sm { width: auto; display: inline-block; padding: 13px 28px; font-size: 15px; }
.btn-s { padding: 13px 24px; background: transparent; color: var(--mid-gray); border: 2px solid var(--light-gray); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--ease); }
.btn-s:hover { border-color: var(--navy); color: var(--navy); }

.sec-hdr { margin-bottom: 28px; }
.sec-tag { display: inline-block; background: var(--coral-light); color: var(--coral); font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; padding: 4px 12px; border-radius: 100px; margin-bottom: 11px; }
.sec-h { font-family: 'Fraunces', serif; font-size: clamp(22px, 4vw, 32px); font-weight: 600; color: var(--navy); line-height: 1.18; margin-bottom: 8px; }
.sec-desc { font-size: 15px; color: var(--mid-gray); line-height: 1.65; }

.q-card { background: white; border-radius: var(--radius); padding: 26px 28px; margin-bottom: 14px; box-shadow: var(--shadow); }
.q-num { font-size: 11px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 9px; }
.q-text { font-size: 16px; font-weight: 500; color: var(--navy); line-height: 1.55; margin-bottom: 20px; }
.scale-row { display: flex; gap: 8px; }
.scale-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; background: var(--off-white); border: 2px solid var(--light-gray); border-radius: var(--radius-sm); cursor: pointer; transition: var(--ease); font-family: 'DM Sans', sans-serif; }
.scale-btn:hover { border-color: rgba(250,115,87,0.4); background: var(--coral-light); }
.scale-btn.sel { border-color: var(--coral); background: var(--coral-light); }
.scale-num { font-family: 'Fraunces', serif; font-size: 18px; font-weight: 600; color: var(--navy); transition: var(--ease); }
.scale-btn.sel .scale-num { color: var(--coral); }
.scale-lbl { font-size: 10px; font-weight: 600; color: var(--mid-gray); text-transform: uppercase; letter-spacing: 0.06em; text-align: center; line-height: 1.3; }
.scale-btn.sel .scale-lbl { color: var(--coral); }

.pillar-screen { display: none; }
.pillar-screen.on { display: block; animation: popIn 0.28s cubic-bezier(0.4,0,0.2,1); }

.open-ta { width: 100%; padding: 13px 15px; border: 2px solid var(--light-gray); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 14px; color: var(--dark); background: var(--off-white); resize: vertical; min-height: 96px; outline: none; transition: var(--ease); line-height: 1.6; }
.open-ta:focus { border-color: var(--coral); background: white; }
.open-ta::placeholder { color: var(--mid-gray); }

.nav-row { display: flex; align-items: center; justify-content: space-between; margin-top: 30px; gap: 14px; }
.nav-row.end { justify-content: flex-end; }

.loading-screen { display: flex; flex-direction: column; align-items: center; justify-content: center; min-height: 70vh; text-align: center; padding: 48px 24px; }
.loading-icon { width: 72px; height: 72px; margin: 0 auto 28px; border-radius: 50%; background: var(--coral-light); display: flex; align-items: center; justify-content: center; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 0%, 100% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.06); opacity: 0.8; } }
.loading-icon svg { width: 32px; height: 32px; }
.loading-h { font-family: 'Fraunces', serif; font-size: 28px; font-weight: 600; color: var(--navy); margin-bottom: 12px; }
.loading-sub { font-size: 15px; color: var(--mid-gray); line-height: 1.65; max-width: 380px; margin: 0 auto 32px; }
.loading-dots { display: flex; gap: 8px; justify-content: center; }
.loading-dots span { width: 8px; height: 8px; border-radius: 50%; background: var(--coral); animation: dot-bounce 1.4s ease-in-out infinite; }
.loading-dots span:nth-child(2) { animation-delay: 0.2s; }
.loading-dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-bounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.4; } 40% { transform: scale(1); opacity: 1; } }

.results-top { text-align: center; padding: 28px 0 20px; }
.score-card { background: white; border-radius: var(--radius); padding: 40px 32px; box-shadow: var(--shadow-lg); text-align: center; margin-bottom: 20px; position: relative; overflow: hidden; }
.score-card::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--coral); }
.score-eyebrow { font-size: 11px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 6px; }
.score-num { font-family: 'Fraunces', serif; font-size: clamp(64px, 12vw, 88px); font-weight: 700; color: var(--navy); line-height: 1; }
.score-denom { font-size: 20px; color: var(--mid-gray); margin-bottom: 12px; }
.score-interp { font-family: 'Fraunces', serif; font-size: 20px; color: var(--coral); font-weight: 600; margin-bottom: 10px; }
.score-blurb { font-size: 14px; color: var(--mid-gray); line-height: 1.65; max-width: 400px; margin: 0 auto; }
.ai-badge { display: inline-flex; align-items: center; gap: 6px; background: var(--navy-subtle); border-radius: 100px; padding: 4px 12px; margin-top: 16px; font-size: 11px; font-weight: 600; color: var(--navy); letter-spacing: 0.06em; text-transform: uppercase; }

.sec-scores { display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; }
.ss-card { background: white; border-radius: var(--radius); padding: 18px 22px; box-shadow: var(--shadow); display: flex; align-items: center; gap: 16px; }
.ss-info { flex: 1; min-width: 0; }
.ss-name { font-size: 14px; font-weight: 600; color: var(--navy); margin-bottom: 6px; }
.ss-bar-bg { height: 6px; background: var(--light-gray); border-radius: 3px; overflow: hidden; }
.ss-bar { height: 100%; border-radius: 3px; transition: width 0.9s cubic-bezier(0.4,0,0.2,1); }
.ss-bar.good { background: var(--navy); }
.ss-bar.flag { background: var(--coral); }
.ss-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.ss-val { font-family: 'Fraunces', serif; font-size: 20px; font-weight: 600; color: var(--navy); }
.ss-val span { font-family: 'DM Sans', sans-serif; font-size: 12px; color: var(--mid-gray); font-weight: 400; }
.flag-pill { background: var(--coral-light); color: var(--coral); font-size: 10px; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase; padding: 3px 9px; border-radius: 100px; }

.response-card { background: white; border-radius: var(--radius); padding: 24px 28px; box-shadow: var(--shadow); margin-bottom: 14px; }
.response-label { font-size: 11px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mid-gray); margin-bottom: 10px; }
.response-text { font-size: 15px; color: var(--dark); line-height: 1.7; font-style: italic; }

.sub-notice { background: var(--navy-subtle); border: 1.5px solid rgba(1,49,72,0.12); border-radius: var(--radius-sm); padding: 13px 17px; margin-bottom: 20px; font-size: 13px; color: var(--navy); line-height: 1.5; }

.cta-card { background: var(--coral); border-radius: var(--radius); padding: 32px; text-align: center; margin-top: 20px; }
.cta-h { font-family: 'Fraunces', serif; font-size: 24px; color: white; font-weight: 600; margin-bottom: 8px; }
.cta-b { font-size: 15px; color: rgba(255,255,255,0.85); line-height: 1.65; }

.btn-download { display: inline-flex; align-items: center; gap: 8px; padding: 13px 24px; background: white; color: var(--navy); border: 2px solid var(--light-gray); border-radius: var(--radius-sm); font-family: 'DM Sans', sans-serif; font-size: 14px; font-weight: 600; cursor: pointer; transition: var(--ease); margin-top: 16px; }
.btn-download:hover { border-color: var(--navy); box-shadow: var(--shadow); }

@media(max-width: 560px) {
  .main { padding: 78px 16px 60px; }
  .hdr-inner { padding: 12px 16px; }
  .gate-card { padding: 24px 18px; }
  .q-card { padding: 20px; }
  .score-card { padding: 32px 20px; }
  .scale-lbl { font-size: 9px; }
}

@media print {
  @page { margin: 72px 48px 60px 48px; }
  .hdr, .nav-row, .btn-p, .btn-s, .btn-download, .cta-card { display: none !important; }
  .main { padding: 0; max-width: none; }
  .print-header { display: flex !important; position: fixed; top: 0; left: 0; right: 0; padding: 12px 48px; border-bottom: 2px solid var(--coral); background: white; z-index: 999; justify-content: space-between; align-items: center; }
  .print-header-left { font-size: 11px; font-weight: 700; color: var(--navy); letter-spacing: 0.04em; }
  .print-header-right { font-size: 11px; color: var(--mid-gray); text-align: right; line-height: 1.4; }
  .print-footer { display: flex !important; position: fixed; bottom: 0; left: 0; right: 0; padding: 10px 48px; border-top: 1px solid var(--light-gray); font-size: 10px; color: var(--mid-gray); justify-content: space-between; align-items: center; background: white; }
  body { background: white; }
  .score-card, .ss-card, .response-card { box-shadow: none; border: 1px solid var(--light-gray); }
  .score-card::before, .ss-bar, .flag-pill { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
}

.print-header, .print-footer { display: none; }
