/* The Digital Organizer quiz — tokens measured from thedigitalorganizer.com
   (passwords page, 2026-07-29): Matter Light type on cream #FAF5E8, ink
   #232222, 1px #161A1D borders, 12px radii, outline buttons with a plus. */

@font-face {
  font-family: "Matter";
  src: url("/fonts/Matter-Light.woff") format("woff");
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: "Matter";
  src: url("/fonts/Matter-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Matter";
  src: url("/fonts/Matter-Medium.woff") format("woff");
  font-weight: 500;
  font-display: swap;
}

:root {
  --cream: #FAF5E8;
  --ink: #232222;
  --border-ink: #161A1D;
  --ink-soft: rgba(35, 34, 34, 0.72);
  --line: rgba(22, 26, 29, 0.25);
  --line-soft: rgba(22, 26, 29, 0.14);
  --card: #FFFFFF;
  --good: #2E7D5B;
  --warn: #B7791F;
  --bad: #B4472E;
  --radius: 12px;
  --max-width: 680px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Matter", -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-weight: 300;
  font-size: 18px;
  line-height: 1.5;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

.site-header {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 28px 24px 8px;
  text-align: center;
}
.site-header .brand { display: inline-block; }
.site-header .brand img { width: 72px; height: 72px; display: block; margin: 0 auto; }

.site-footer {
  max-width: var(--max-width);
  width: 100%;
  margin: auto auto 0;
  padding: 32px 24px;
  display: flex;
  justify-content: center;
  gap: 20px;
  color: var(--ink-soft);
  font-size: 14px;
}
.site-footer a { color: var(--ink-soft); }

main {
  max-width: var(--max-width);
  width: 100%;
  margin: 0 auto;
  padding: 24px 24px 72px;
}

h1 {
  font-weight: 300;
  font-size: clamp(40px, 8vw, 64px);
  line-height: 0.95;
  letter-spacing: -0.3px;
  margin: 0 0 22px;
}
h2 {
  font-weight: 300;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.15;
  letter-spacing: -0.5px;
  margin: 0 0 12px;
}
h3 { font-weight: 400; letter-spacing: -0.2px; }
p.lead { font-size: 19px; color: var(--ink); }
strong { font-weight: 500; }

.intro-center { text-align: center; padding-top: 6vh; }
.intro-center .lead { max-width: 540px; margin-left: auto; margin-right: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 26px;
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--border-ink);
  border-radius: var(--radius);
  padding: 18px 26px;
  font-family: inherit;
  font-size: 20px;
  font-weight: 300;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.18s ease, color 0.18s ease;
}
.btn::after { content: "+"; font-size: 24px; font-weight: 300; line-height: 1; }
.btn:hover { background: var(--ink); color: var(--cream); }
.btn.solid { background: var(--ink); color: var(--cream); }
.btn.solid:hover { background: transparent; color: var(--ink); }
.btn.secondary { font-size: 17px; padding: 13px 22px; gap: 18px; }
.btn.secondary::after { font-size: 20px; }
.btn:disabled { opacity: 0.45; cursor: default; }

.muted { color: var(--ink-soft); font-size: 15px; }

/* Progress */
.progress {
  height: 2px;
  background: var(--line-soft);
  margin: 14px 0 40px;
  overflow: hidden;
}
.progress > div { height: 100%; background: var(--border-ink); transition: width 0.25s ease; }

/* Question */
.area-chip {
  display: inline-block;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.options { display: flex; flex-direction: column; gap: 12px; margin: 28px 0; }
.option {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 17px 20px;
  font-family: inherit;
  font-size: 17px;
  font-weight: 300;
  line-height: 1.4;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.14s ease, background 0.14s ease;
}
.option:hover { border-color: var(--border-ink); }
.option.selected { border-color: var(--border-ink); box-shadow: inset 0 0 0 1px var(--border-ink); }

.nav-row { display: flex; justify-content: space-between; align-items: center; margin-top: 30px; }
.back-link {
  background: none; border: none; cursor: pointer;
  font-family: inherit; font-weight: 300;
  color: var(--ink-soft); font-size: 16px; padding: 8px 0;
}
.back-link:hover { color: var(--ink); }

textarea {
  width: 100%;
  min-height: 140px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px 18px;
  font-family: inherit;
  font-weight: 300;
  font-size: 17px;
  resize: vertical;
}
textarea:focus, input:focus { outline: 1.5px solid var(--border-ink); outline-offset: 1px; }

input[type="text"], input[type="email"] {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  padding: 16px 18px;
  font-family: inherit;
  font-weight: 300;
  font-size: 17px;
}
.gate-form { display: flex; flex-direction: column; gap: 14px; margin: 26px 0; }
.gate-form .btn { align-self: flex-start; }
.error { color: var(--bad); font-size: 15px; min-height: 20px; }

/* Results */
.band-hero {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 40px 34px;
  margin-bottom: 34px;
  text-align: center;
}
.band-hero h1 { color: #fff; margin-bottom: 10px; }
.band-hero p { margin: 0; opacity: 0.85; font-size: 18px; }

.score-grid { display: flex; flex-direction: column; gap: 16px; margin: 24px 0 10px; }
.score-row { display: grid; grid-template-columns: 140px 1fr 48px; align-items: center; gap: 14px; }
.score-row .label { font-weight: 400; font-size: 16px; }
.bar { height: 8px; background: var(--line-soft); border-radius: 4px; overflow: hidden; }
.bar > div { height: 100%; border-radius: 4px; }
.score-num { font-variant-numeric: tabular-nums; font-weight: 400; text-align: right; font-size: 17px; }

.callout {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px 22px;
  margin: 26px 0;
  font-size: 17px;
}

.cost-figure {
  font-size: clamp(48px, 9vw, 72px);
  font-weight: 300;
  letter-spacing: -1.5px;
  line-height: 1;
  margin: 8px 0 4px;
}
.sliders { display: flex; flex-direction: column; gap: 20px; margin: 26px 0; }
.slider-row label { display: flex; justify-content: space-between; font-size: 15px; font-weight: 400; margin-bottom: 8px; }
.slider-row output { font-variant-numeric: tabular-nums; }
input[type="range"] { width: 100%; accent-color: var(--ink); }

.moves { display: flex; flex-direction: column; gap: 14px; margin: 20px 0; }
.move {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.move h3 { margin: 0 0 6px; font-size: 18px; }
.move p { margin: 0; font-size: 16px; color: var(--ink-soft); }

.paths { display: flex; flex-direction: column; gap: 16px; margin: 20px 0 32px; }
.path {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
}
.path.primary { border: 1.5px solid var(--border-ink); }
.path h3 { margin: 0 0 8px; font-size: 21px; }
.path p { margin: 0 0 18px; color: var(--ink-soft); font-size: 16px; }

.audit-block {
  background: var(--ink);
  color: var(--cream);
  border-radius: var(--radius);
  padding: 32px 30px;
  margin: 30px 0;
}
.audit-block h2 { color: #fff; }
.audit-block p { color: rgba(250, 245, 232, 0.85); font-size: 16.5px; }
.audit-block .btn { color: var(--cream); border-color: var(--cream); }
.audit-block .btn:hover { background: var(--cream); color: var(--ink); }

/* Sales-coach chat panel */
.chat-panel { margin-top: 18px; }
.chat-messages {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 420px;
  overflow-y: auto;
  padding: 4px 2px 12px;
}
.chat-msg {
  max-width: 85%;
  padding: 12px 16px;
  border-radius: var(--radius);
  font-size: 16px;
  line-height: 1.45;
  white-space: pre-wrap;
}
.chat-msg.user { align-self: flex-end; background: var(--ink); color: var(--cream); }
.chat-msg.assistant { align-self: flex-start; background: var(--cream); border: 1px solid var(--line); }
.chat-form { display: flex; gap: 10px; margin-top: 8px; }
.chat-form input { flex: 1; }
.chat-form .btn::after { content: none; }

section.block { margin-top: 52px; }
section.block > h2 { margin-bottom: 16px; }

.fade-in { animation: fade 0.3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

@media (max-width: 480px) {
  body { font-size: 17px; }
  .score-row { grid-template-columns: 100px 1fr 40px; }
  main { padding: 12px 20px 56px; }
  .site-header .brand img { width: 60px; height: 60px; }
  .btn { font-size: 18px; padding: 15px 22px; }
}
