/* The Echelon Advisory brand standards (Nov 17, 2026) */
:root {
  --navy: #0B2341; --navy-hover: #0a3266; --accent: #F05A1A;
  --ink: #1c2430; --muted: #5b6573; --faint: #9aa2ad; --line: #d9dde3; --panel: #f2f4f6; --paper: #ffffff;
  --hit: #2f6b47; --hit-bg: #e8f2ec; --miss: #a4432d; --miss-bg: #f8ebe7;
  --display: 'Libre Caslon Text', Georgia, serif;
  --body: 'Libre Franklin', 'Helvetica Neue', Arial, sans-serif;
  --t: 0.18s ease;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; border-radius: 0; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.65; min-height: 100vh; -webkit-font-smoothing: antialiased; }

/* Labels: Franklin 600 uppercase, tracked */
.label, .field-label, .section-eyebrow, .intro-eyebrow, .header-right, .tag, .gap-label, .note-label, .save-status, .link-ghost, .progress-label {
  font-family: var(--body); font-weight: 600; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase;
}

/* ── HEADER ── */
.site-header { background: var(--paper); border-bottom: 1px solid var(--navy); padding: 0 48px; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.header-left { display: flex; align-items: center; gap: 14px; }
.logo-mark { width: 40px; height: 40px; flex-shrink: 0; display: block; }
.logo-mark svg { width: 34px; height: 34px; display: block; }
.header-name { font-family: var(--display); font-size: 15px; color: var(--navy); letter-spacing: 0.22em; text-transform: uppercase; }
.header-right { color: var(--accent); }

.page { max-width: 720px; margin: 0 auto; padding: 0 40px 100px; }
.page.wide { max-width: 1080px; }

.screen { display: none; }
.screen.active { display: block; animation: fadeUp 0.3s ease both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ── INTRO ── */
.intro-wrap { padding: 64px 0 0; }
.intro-eyebrow { color: var(--accent); margin-bottom: 20px; }
.intro-title { font-family: var(--display); font-size: 46px; font-weight: 400; color: var(--navy); line-height: 1.12; margin-bottom: 28px; }
.intro-title em { font-style: italic; }
.intro-rule { width: 48px; height: 2px; background: var(--accent); margin-bottom: 28px; }
.intro-body { font-size: 16px; color: var(--ink); line-height: 1.75; margin-bottom: 12px; max-width: 580px; }
.intro-bullets { list-style: none; margin: 28px 0 40px; border-top: 1px solid var(--line); padding-top: 20px; }
.intro-bullets li { font-size: 15px; color: var(--muted); padding: 7px 0 7px 22px; position: relative; }
.intro-bullets li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 8px; height: 2px; background: var(--navy); }

/* ── SECTION HEADS ── */
.section-eyebrow { color: var(--accent); margin: 48px 0 12px; }
.section-title { font-family: var(--display); font-size: 34px; font-weight: 400; color: var(--navy); line-height: 1.2; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--navy); }

/* ── CALLOUT ── */
.demo-note { font-size: 14px; color: var(--ink); margin-bottom: 28px; padding: 14px 18px; background: var(--panel); border-left: 3px solid var(--navy); }
.demo-note.accent { border-left-color: var(--accent); }

/* ── FIELDS ── */
.field-group { margin-bottom: 22px; }
.field-label { color: var(--muted); margin-bottom: 8px; display: block; }
.field-hint { font-size: 13px; color: var(--muted); margin-top: -2px; margin-bottom: 8px; display: block; }
.open-textarea, .text-input { width: 100%; background: var(--paper); border: 1px solid var(--line); color: var(--ink); font-family: var(--body); font-size: 15px; line-height: 1.6; padding: 12px 14px; transition: border-color var(--t); outline: none; }
.open-textarea { min-height: 96px; resize: vertical; }
.open-textarea::placeholder, .text-input::placeholder { color: var(--faint); }
.open-textarea:focus, .text-input:focus { border-color: var(--navy); }
.code-input { font-size: 16px; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; max-width: 320px; }

.radio-row { display: flex; flex-wrap: wrap; gap: 7px; }
.radio-option { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border: 1px solid var(--line); cursor: pointer; transition: var(--t); user-select: none; background: var(--paper); }
.radio-option:hover { border-color: var(--navy); }
.radio-option.selected { border-color: var(--navy); background: var(--panel); }
.radio-dot { width: 14px; height: 14px; border: 1.5px solid var(--faint); border-radius: 50%; flex-shrink: 0; position: relative; }
.radio-option.selected .radio-dot { border-color: var(--navy); background: var(--navy); }
.radio-option.selected .radio-dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: white; }
.radio-label { font-size: 14px; color: var(--muted); }
.radio-option.selected .radio-label { color: var(--navy); font-weight: 600; }
.check-row { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; font-size: 15px; color: var(--ink); user-select: none; }
.check-row input { margin-top: 5px; accent-color: var(--navy); width: 15px; height: 15px; }

.open-question-block { margin-bottom: 30px; }
.open-question-text { font-size: 16px; color: var(--ink); line-height: 1.55; margin-bottom: 12px; font-weight: 500; }
.q-divider { height: 1px; background: var(--line); margin: 28px 0; }

/* ── BUTTONS ── */
.btn-row { display: flex; gap: 12px; margin-top: 36px; align-items: center; flex-wrap: wrap; }
.btn-primary, .btn-accent, .btn-secondary { display: inline-flex; align-items: center; gap: 8px; padding: 13px 26px; font-family: var(--body); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; cursor: pointer; transition: var(--t); border: 1px solid var(--navy); }
.btn-primary { background: var(--navy); color: white; }
.btn-primary:hover { background: var(--navy-hover); border-color: var(--navy-hover); }
.btn-accent { background: var(--accent); border-color: var(--accent); color: white; }
.btn-accent:hover { filter: brightness(0.94); }
.btn-secondary { background: var(--paper); color: var(--navy); }
.btn-secondary:hover { background: var(--panel); }
.btn-primary:disabled, .btn-accent:disabled { opacity: 0.4; cursor: not-allowed; }
.btn-small { padding: 8px 14px; font-size: 11px; }
.btn-danger { color: var(--miss); border-color: var(--miss); }

.validation-msg { font-size: 14px; color: var(--miss); background: var(--miss-bg); padding: 14px 18px; margin-top: 16px; display: none; }
.validation-msg.visible { display: block; }
.validation-msg ul { margin: 6px 0 0 18px; }

/* ── COMPLETION ── */
.thankyou-wrap { padding: 72px 0 40px; }
.thankyou-icon { width: 48px; height: 48px; border: 1px solid var(--navy); display: flex; align-items: center; justify-content: center; margin-bottom: 28px; color: var(--navy); font-size: 20px; }
.thankyou-title { font-family: var(--display); font-size: 40px; color: var(--navy); margin-bottom: 16px; }
.thankyou-body { font-size: 16px; color: var(--ink); max-width: 480px; line-height: 1.75; margin-bottom: 10px; }

.sending-overlay { display: none; position: fixed; inset: 0; background: rgba(255,255,255,0.9); z-index: 100; align-items: center; justify-content: center; flex-direction: column; gap: 16px; }
.sending-overlay.active { display: flex; }
.sending-spinner { width: 30px; height: 30px; border: 2px solid var(--line); border-top-color: var(--navy); border-radius: 50%; animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sending-text { font-weight: 600; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }

.site-footer { margin-top: 72px; padding: 24px 0; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* ── PERCEPTIONS COMPONENTS ── */
.card { background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--navy); padding: 24px 26px; margin-bottom: 18px; }
.card-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.card-title { font-family: var(--display); font-size: 23px; color: var(--navy); line-height: 1.25; }
.tag { color: var(--muted); border: 1px solid var(--line); padding: 3px 9px; white-space: nowrap; font-size: 10px; display: inline-block; }
.tag.done { color: var(--hit); background: var(--hit-bg); border-color: var(--hit-bg); }
.tag.short { color: var(--miss); background: var(--miss-bg); border-color: var(--miss-bg); }
.tag.friction { color: var(--accent); border-color: var(--accent); }
.tag.navy { color: var(--navy); border-color: var(--navy); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.link-ghost { background: none; border: none; color: var(--faint); cursor: pointer; font-size: 10px; }
.link-ghost:hover { color: var(--miss); }
.save-status { color: var(--faint); font-size: 10px; }
.spread { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }

.status-list { border-top: 1px solid var(--navy); }
.status-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.status-name { font-weight: 600; color: var(--navy); }
.status-meta { font-size: 13px; color: var(--muted); }
.copy-link { font-size: 12px; color: var(--muted); background: var(--panel); padding: 8px 10px; word-break: break-all; flex: 1 1 100%; }

/* Gap view */
.gap { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-top: 3px solid var(--navy); }
.gap-col { padding: 18px 18px 20px; border-right: 1px solid var(--line); }
.gap-col:last-child { border-right: none; background: var(--panel); }
.gap-label { color: var(--accent); margin-bottom: 2px; }
.gap-sub { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.gap-text { font-size: 15px; color: var(--ink); white-space: pre-wrap; margin-bottom: 12px; }
.gap-q { font-size: 12px; color: var(--muted); margin-bottom: 2px; font-weight: 500; }
.words { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-bottom: 14px; }
.word { font-family: var(--display); font-size: 18px; font-style: italic; color: var(--navy); }

.note-block { border-left: 3px solid var(--navy); padding: 14px 18px; background: var(--panel); margin-top: 16px; }
.note-label { color: var(--navy); margin-bottom: 6px; }
.note-text { font-size: 15px; white-space: pre-wrap; }

.eng-row { display: grid; grid-template-columns: 1.6fr 1fr 1fr auto; gap: 12px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--line); cursor: pointer; }
.eng-row:hover { background: var(--panel); }
.eng-name { font-weight: 600; color: var(--navy); }
.eng-org { font-size: 13px; color: var(--muted); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; }
.kv { font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.kv b { font-weight: 600; font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-right: 10px; }

@media (max-width: 760px) {
  .gap { grid-template-columns: 1fr; }
  .gap-col { border-right: none; border-bottom: 1px solid var(--line); }
  .eng-row { grid-template-columns: 1fr auto; }
  .eng-row .hide-sm { display: none; }
}
@media (max-width: 560px) {
  .site-header { padding: 0 20px; }
  .header-name { font-size: 12px; letter-spacing: 0.16em; }
  .page { padding: 0 20px 80px; }
  .intro-title { font-size: 34px; }
  .section-title { font-size: 27px; }
  .header-right { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .card { padding: 20px 18px; }
}

/* In-page confirmation */
.ask-overlay { position: fixed; inset: 0; background: rgba(11,35,65,0.45); z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.ask-box { background: var(--paper); border-top: 3px solid var(--navy); max-width: 460px; width: 100%; padding: 26px 26px 22px; }
.ask-msg { font-size: 16px; color: var(--ink); line-height: 1.6; margin-bottom: 14px; }
.ask-box .btn-row { margin-top: 18px; }
