/* ===========================
   Shared CSS — Rise People Tools
   =========================== */

/* === Brand Tokens & Reset === */
:root {
  /* Brand: Deep Blue */
  --b150: #9DA7CB;
  --b450: #09247C;
  --b550: #071D63;
  /* Brand: Orange */
  --o150: #FFDAA5;
  --o450: #FFA31D;
  --o550: #E6931A;
  /* Brand: Primary/Interaction */
  --p100: #CCCEFB;
  --p450: #555DF2;
  --p500: #4D54DA;
  --p550: #444AC2;
  --p600: #3C41AA;
  /* Brand: Neutrals */
  --n000: #FFFFFF;
  --n100: #F2F5FB;
  --n150: #E1E6EF;
  --n250: #CBCFD9;
  --n300: #C8D0D8;
  --n400: #AAADB0;
  --n550: #6A7075;
  --n600: #555C61;
  --n650: #40474D;
  --n700: #2B333A;
  --n1000: #0F151B;
  /* Brand: Semantic */
  --g100: #C8F1DA;
  --g450: #49D186;
  --r100: #F6B2B2;
  --r450: #E00000;
  --y100: #FFF0C1;
  --y450: #FFCC33;
  /* Brand: Marketing/Tertiary */
  --coral: #F76B63;
  --mango: #FB8740;
  /* Shadows (Depth 1 & 2) */
  --shadow-1: 0 4px 16px -8px rgba(9,36,124,0.10), 0 1px 3px -1px rgba(9,36,124,0.20), 0 1px 1px 0 rgba(9,36,124,0.10);
  --shadow-2: 0 2px 2px -2px rgba(9,36,124,0.08), 0 16px 56px -24px rgba(9,36,124,0.16), 0 2px 6px -2px rgba(9,36,124,0.16);
  /* Typography */
  --font-serif: 'Source Serif Pro', Georgia, serif;
  --font-sans: 'Open Sans', -apple-system, BlinkMacSystemFont, Verdana, Arial, sans-serif;
  /* Layout */
  --card-radius: 12px;
  --btn-radius: 8px;
}

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

body {
  font-family: var(--font-sans);
  color: var(--n700);
  background: var(--n100);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

/* === Layout === */
.page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* === Header === */
.header {
  display: flex;
  justify-content: center;
  padding: 16px 0 24px;
}
.header svg { height: 28px; width: auto; }

/* === Buttons === */
.btn-primary {
  background: var(--p450);
  color: var(--n000);
  border: none;
  border-radius: var(--btn-radius);
  padding: 14px 40px;
  font-family: var(--font-sans);
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.1s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.btn-primary:hover { background: var(--p500); }
.btn-primary:active { transform: scale(0.98); }
.btn-primary:focus-visible { outline: 3px solid var(--p450); outline-offset: 2px; }

.btn-secondary {
  background: none;
  border: none;
  color: var(--p450);
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  padding: 8px 16px;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-secondary svg { border-bottom: 1px solid currentColor; }
.btn-secondary:hover { color: var(--p500); }
.btn-secondary:focus-visible { outline: 2px solid var(--p450); outline-offset: 2px; }

/* === Index: Hero === */
.hero {
  text-align: center;
  padding: 32px 0 40px;
}
.hero h1 {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--n1000);
  line-height: 1.3;
  margin-bottom: 12px;
}
.hero p {
  font-size: 16px;
  color: var(--n550);
  line-height: 1.6;
  max-width: 520px;
  margin: 0 auto;
}

/* === Index: Tools Grid === */
.tools {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  padding-bottom: 24px;
}

.tool-card {
  background: var(--n000);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  text-decoration: none;
  color: inherit;
  border: 1.5px solid transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
  display: block;
}
.tool-card:hover {
  border-color: var(--p450);
  box-shadow: 0 2px 8px rgba(85,93,242,0.1);
}
.tool-overline {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--p450);
  margin-bottom: 6px;
}
.tool-name {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 700;
  color: var(--n1000);
  margin-bottom: 6px;
}
.tool-desc {
  font-size: 15px;
  color: var(--n550);
  line-height: 1.5;
}
.tool-cta {
  display: inline-block;
  margin-top: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--p450);
}
.tool-card:hover .tool-cta { text-decoration: underline; }

/* === Quiz: Screens === */
.screen { display: none; flex-direction: column; align-items: center; flex: 1; width: 100%; max-width: 720px; margin: 0 auto; }
.screen.active { display: flex; }

/* === Quiz: Landing === */
.landing-hero {
  max-width: 280px;
  width: 100%;
  height: auto;
  margin-bottom: 32px;
  margin-top: 32px;
}
.landing-card {
  background: var(--n000);
  border-radius: var(--card-radius);
  padding: 48px 40px;
  text-align: center;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.landing-title {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--n1000);
  line-height: 1.2;
  margin-bottom: 16px;
}
.landing-subtitle {
  font-size: 16px;
  line-height: 1.6;
  color: var(--n550);
  margin-bottom: 8px;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.landing-teaser {
  font-size: 14px;
  color: var(--n550);
  margin-bottom: 32px;
  font-weight: 600;
}

/* === Quiz: Progress === */
.progress-area {
  width: 100%;
  margin-bottom: 24px;
}
.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--n550);
  margin-bottom: 8px;
}
.progress-bar-bg {
  width: 100%;
  height: 6px;
  background: var(--n300);
  border-radius: 3px;
  overflow: hidden;
}
.progress-bar-fill {
  height: 100%;
  background: var(--p450);
  border-radius: 3px;
  transition: width 0.4s ease;
}

/* === Quiz: Questions === */
.question-card {
  background: var(--n000);
  border-radius: var(--card-radius);
  padding: 48px 40px;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  margin-bottom: 8px;
}
.question-text {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--n1000);
  margin-bottom: 28px;
}
.answer-list { display: flex; flex-direction: column; gap: 12px; }
.answer-card {
  background: var(--n000);
  border: 1.5px solid var(--n300);
  border-radius: 12px;
  padding: 16px 20px;
  font-size: 15px;
  line-height: 1.5;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s, transform 0.15s, box-shadow 0.2s;
  user-select: none;
}
@media (hover: hover) {
  .answer-card:hover {
    border-color: var(--p450);
    background: #F7F7FF;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(85, 93, 242, 0.08);
  }
}
.answer-card:active {
  transform: scale(0.98);
}
.answer-card:focus-visible { outline: 2px solid var(--p450); outline-offset: 2px; }
.answer-card.selected {
  border-color: var(--p450);
  background: #EEEFFE;
}
.back-btn {
  background: none;
  border: none;
  color: var(--n550);
  font-family: var(--font-sans);
  font-size: 14px;
  cursor: pointer;
  padding: 12px 0;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 16px;
  align-self: flex-start;
}
.back-btn:hover { color: var(--n700); }

/* === Quiz: Screen Transitions === */
.question-card.slide-out-left {
  animation: slideOutLeft 0.25s ease forwards;
}
.question-card.slide-in-right {
  animation: slideInRight 0.25s ease forwards;
}
.question-card.slide-out-right {
  animation: slideOutRight 0.25s ease forwards;
}
.question-card.slide-in-left {
  animation: slideInLeft 0.25s ease forwards;
}
@keyframes slideOutLeft {
  to { opacity: 0; transform: translateX(-30px); }
}
@keyframes slideInRight {
  from { opacity: 0; transform: translateX(30px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideOutRight {
  to { opacity: 0; transform: translateX(30px); }
}
@keyframes slideInLeft {
  from { opacity: 0; transform: translateX(-30px); }
  to { opacity: 1; transform: translateX(0); }
}

/* === Quiz: Lead Capture === */
.lead-card {
  background: var(--n000);
  border-radius: var(--card-radius);
  padding: 48px 40px;
  margin-bottom: 24px;
  text-align: center;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.lead-hero {
  max-width: 200px;
  width: 100%;
  height: auto;
  margin-bottom: 24px;
}
.lead-title {
  font-family: var(--font-serif);
  font-size: 32px;
  font-weight: 700;
  color: var(--n1000);
  margin-bottom: 8px;
}
.lead-subtitle {
  font-size: 15px;
  color: var(--n550);
  margin-bottom: 32px;
}
.lead-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: left;
}
.form-group label {
  display: block;
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}
.form-group input {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--n300);
  border-radius: var(--btn-radius);
  font-family: var(--font-sans);
  font-size: 15px;
  color: var(--n700);
  transition: border-color 0.2s;
  outline: none;
}
.form-group input:focus {
  border-color: var(--p450);
}
.form-group input.error {
  border-color: #E53E3E;
}
.form-error {
  font-size: 13px;
  color: #E53E3E;
  margin-top: 4px;
  display: none;
}
.form-group input.error + .form-error { display: block; }
.lead-form .btn-primary {
  width: 100%;
  margin-top: 8px;
}
.privacy-note {
  font-size: 12px;
  color: var(--n550);
  margin-top: 12px;
  text-align: center;
}
.checkbox-group { margin-top: 4px; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--n550);
  cursor: pointer;
  line-height: 1.5;
}
.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  accent-color: var(--p450);
  cursor: pointer;
}

/* === Quiz: Results === */
.results-card {
  background: var(--n000);
  border-radius: var(--card-radius);
  padding: 48px 40px;
  text-align: center;
  width: 100%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.result-emoji {
  max-width: 160px;
  width: 100%;
  height: auto;
  margin-bottom: 16px;
  opacity: 0;
  transform: scale(0.5);
  animation: popIn 0.5s ease 0.2s forwards;
}
@keyframes popIn {
  to { opacity: 1; transform: scale(1); }
}
.result-pre-title {
  font-size: 14px;
  color: var(--n550);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.4s ease 0.5s forwards;
}
.result-type-name {
  font-family: var(--font-serif);
  font-size: 36px;
  font-weight: 700;
  color: var(--n1000);
  margin-bottom: 8px;
  opacity: 0;
  animation: fadeUp 0.4s ease 0.6s forwards;
}
.result-tagline {
  font-size: 18px;
  color: var(--n550);
  font-style: normal;
  margin-bottom: 24px;
  opacity: 0;
  animation: fadeUp 0.4s ease 0.7s forwards;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.result-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 32px;
  opacity: 0;
  animation: fadeUp 0.4s ease 0.9s forwards;
}
.badge-pill {
  background: #FFF3E0;
  border: none;
  border-radius: 20px;
  padding: 6px 16px;
  font-size: 14px;
  color: #B87200;
  font-weight: 600;
  white-space: nowrap;
}
.result-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  opacity: 0;
  animation: fadeUp 0.4s ease 1.1s forwards;
}
.result-actions .btn-primary { width: 100%; max-width: 320px; padding: 12px 24px; }
.result-links {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}

/* === Quiz: Profile Modal === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 100;
  justify-content: center;
  align-items: center;
  padding: 24px;
}
.modal-overlay.active { display: flex; }
.modal-content {
  background: var(--n000);
  border-radius: var(--card-radius);
  max-width: 560px;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  padding: 40px 32px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--n550);
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}
.modal-close:hover { background: var(--n100); }
.modal-type-name {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--n1000);
  margin-bottom: 16px;
}
.modal-type-icon {
  width: 36px;
  height: 36px;
  object-fit: contain;
  vertical-align: middle;
  margin-right: 4px;
}
.modal-description {
  font-size: 15px;
  line-height: 1.7;
  color: var(--n700);
  margin-bottom: 24px;
}
.modal-section-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.modal-section-text {
  font-size: 15px;
  line-height: 1.7;
  color: var(--n700);
  margin-bottom: 24px;
}

/* === Quiz: Types Grid === */
.types-grid-title {
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--n1000);
  margin-bottom: 8px;
}
.types-grid-subtitle {
  font-size: 15px;
  color: var(--n550);
  margin-bottom: 24px;
  text-align: center;
}
.types-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  width: 100%;
  margin-bottom: 24px;
}
.type-grid-card {
  background: var(--n000);
  border: 1.5px solid var(--n300);
  border-radius: 12px;
  padding: 20px 16px;
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s;
  text-align: center;
}
.type-grid-card:hover {
  border-color: var(--p450);
  box-shadow: 0 2px 8px rgba(85, 93, 242, 0.08);
}
.type-grid-card.is-you {
  border-color: var(--p450);
}
.type-grid-emoji { width: 160px; height: 160px; object-fit: contain; margin-bottom: 8px; }
.type-grid-name {
  font-weight: 700;
  font-size: 15px;
  margin-bottom: 4px;
}
.type-grid-tagline {
  font-size: 14px;
  color: var(--n550);
}
.you-badge {
  display: inline-block;
  background: var(--p450);
  color: white;
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  margin-left: 4px;
  vertical-align: middle;
  text-transform: uppercase;
}

/* === Quiz: Share === */
.share-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}
.share-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px;
  border-radius: var(--btn-radius);
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1.5px solid var(--n300);
  background: var(--n000);
  color: var(--n700);
  transition: background 0.2s, border-color 0.2s;
}
.share-btn:hover { border-color: var(--p450); background: #F7F7FF; }
.share-btn:focus-visible { outline: 2px solid var(--p450); outline-offset: 2px; }
.share-btn.linkedin { background: #0A66C2; color: white; border-color: #0A66C2; }
.share-btn.linkedin:hover { background: #004182; border-color: #004182; }
.share-btn.x-twitter { background: #000000; color: white; border-color: #000000; }
.share-btn.x-twitter:hover { background: #333333; border-color: #333333; }
.share-btn.copied { background: #48BB78; color: white; border-color: #48BB78; }

/* === Quiz: Toast === */
.toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--n700);
  color: white;
  padding: 12px 24px;
  border-radius: var(--btn-radius);
  font-size: 14px;
  font-weight: 600;
  z-index: 200;
  transition: transform 0.3s ease;
}
.toast.visible { transform: translateX(-50%) translateY(0); }

/* === Footer === */
.footer {
  text-align: center;
  padding: 32px 16px;
  font-size: 13px;
  color: var(--n550);
  /* border-top: 1px solid var(--n300); */
  margin-top: auto;
}
.footer a {
  color: var(--p450);
  text-decoration: none;
  font-weight: 600;
}
.footer a:hover { text-decoration: underline; }
.footer .maple-leaf { height: 16px; width: auto; vertical-align: middle; margin: 0 2px; }

/* === Quiz: Shared Result View === */
.shared-notice {
  background: #FFFBEB;
  border: 1px solid #FED7AA;
  border-radius: var(--btn-radius);
  padding: 12px 20px;
  font-size: 14px;
  color: #92400E;
  text-align: center;
  margin-bottom: 24px;
  width: 100%;
}

/* === Calculator: Header === */
.calc-header {
  width: 100%;
  background: var(--b450);
  padding: 64px 24px 72px;
  text-align: center;
}
.calc-header .overline {
  font-weight: 700;
  font-size: 12px;
  line-height: 16px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--b150);
  margin-bottom: 12px;
}
.calc-header h1 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 42px;
  line-height: 50px;
  color: var(--n000);
  margin-bottom: 16px;
}
.calc-header p {
  font-size: 16px;
  line-height: 24px;
  color: var(--b150);
  max-width: 640px;
  margin: 0 auto;
}

/* === Calculator: Full-width elements (needed for body flex centering) === */
.calc-header-nav,
.calc-header,
.calc-wrap,
.cta-wrap,
.calc-disclaimer,
.calc-footer {
  align-self: stretch;
}

/* === Calculator: Layout === */
.calc-wrap {
  width: 100%;
  max-width: 1120px;
  margin: -32px auto 0;
  padding: 0 24px 48px;
  display: grid;
  grid-template-columns: 380px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
}

/* === Calculator: Inputs Panel === */
.inputs-panel {
  position: sticky;
  top: 24px;
}
.inputs-card {
  background: var(--n000);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--shadow-1);
}
.inputs-card h2 {
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--n1000);
  margin-bottom: 24px;
}
.input-group {
  margin-bottom: 20px;
}
.input-group:last-child { margin-bottom: 0; }
.input-group label {
  display: block;
  font-weight: 600;
  font-size: 12px;
  line-height: 16px;
  color: var(--n650);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.input-group select {
  width: 100%;
  height: 44px;
  padding: 8px 40px 8px 16px;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--n700);
  border: 1px solid var(--n250);
  border-radius: 4px;
  background: var(--n000);
  appearance: none;
  -webkit-appearance: none;
  outline: none;
  transition: border-color 0.15s;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none'%3E%3Cpath d='M1 1.5l5 5 5-5' stroke='%236A7075' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}
.input-group select:focus {
  border: 2px solid var(--p450);
  padding: 7px 39px 7px 15px;
}

/* === Calculator: Slider === */
.slider-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.slider-row input[type="range"] {
  flex: 1;
  height: 6px;
  -webkit-appearance: none;
  appearance: none;
  border-radius: 3px;
  background: var(--n150);
  outline: none;
}
.slider-row input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--p450);
  cursor: pointer;
  border: 3px solid var(--n000);
  box-shadow: 0 1px 3px rgba(9,36,124,0.3);
}
.slider-row input[type="range"]::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--p450);
  cursor: pointer;
  border: 3px solid var(--n000);
  box-shadow: 0 1px 3px rgba(9,36,124,0.3);
}
.emp-input {
  width: 64px;
  height: 36px;
  padding: 6px 8px;
  background: var(--n000);
  border: 1px solid var(--n250);
  border-radius: 4px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  color: var(--n700);
  text-align: center;
  flex-shrink: 0;
  outline: none;
  transition: border-color 0.15s;
  -moz-appearance: textfield;
}
.emp-input::-webkit-outer-spin-button,
.emp-input::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}
.emp-input:focus {
  border: 2px solid var(--p450);
  padding: 5px 7px;
}

/* === Calculator: Proof Strip === */
.proof-strip {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.proof-mini {
  background: var(--n100);
  border-radius: 8px;
  padding: 12px;
}
.proof-mini .pm-stat {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--b450);
}
.proof-mini .pm-desc {
  font-size: 14px;
  line-height: 20px;
  color: var(--n600);
  margin-top: 2px;
}
.proof-mini .pm-src {
  font-size: 12px;
  line-height: 16px;
  color: var(--n550);
  margin-top: 4px;
}
.proof-mini .pm-src a {
  color: var(--b450);
  text-decoration: underline;
}
.proof-mini .pm-src a:hover {
  color: var(--b550);
  text-decoration: none;
}

/* === Calculator: Results Panel === */
.calc-results-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* === Calculator: Hero Card === */
.hero-card {
  background: var(--n000);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--shadow-1);
  text-align: center;
}
.hero-number {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 56px;
  line-height: 64px;
  color: var(--b450);
  transition: opacity 0.15s;
}
.hero-sub {
  font-size: 16px;
  line-height: 24px;
  color: var(--n550);
  margin-top: 4px;
}
.savings-pill {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  line-height: 18px;
  padding: 6px 14px;
  background: #e6f7ee;
  color: #1a7a45;
  border-radius: 20px;
  margin-top: 16px;
}
.savings-pill span {
  font-weight: 700;
}
.savings-pill a {
  color: #1a7a45;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.savings-pill a:hover {
  color: #146335;
}
.savings-pill.hidden {
  display: none;
}
.hours-pill {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
  padding: 2px 8px;
  background: #DCEEFE;
  color: #154A7C;
  border-radius: 10px;
  vertical-align: middle;
  margin-left: 6px;
}

/* === Calculator: Breakdown Card === */
.breakdown-card {
  background: var(--n000);
  border-radius: var(--card-radius);
  padding: 32px;
  box-shadow: var(--shadow-1);
  overflow: hidden;
}
.breakdown-card h3 {
  font-weight: 700;
  font-size: 20px;
  line-height: 28px;
  color: var(--n1000);
  margin-bottom: 24px;
}
.chart-layout {
  display: flex;
  gap: 32px;
  align-items: center;
}
.pie-container {
  width: 180px;
  height: 180px;
  flex-shrink: 0;
}
.pie-container svg {
  width: 180px;
  height: 180px;
}

.breakdown-list {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.bd-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.bd-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 6px;
}
.bd-dot.time { background: var(--p450); }
.bd-dot.errors { background: var(--coral); }
.bd-dot.retention { background: var(--mango); }
.bd-dot.opportunity { background: var(--g450); }

.bd-info { flex: 1; min-width: 0; }
.bd-info .bd-label {
  font-weight: 600;
  font-size: 16px;
  line-height: 24px;
  color: var(--n700);
}
.bd-info .bd-sublabel {
  font-size: 14px;
  line-height: 20px;
  color: var(--n550);
}
.bd-values {
  text-align: right;
  flex-shrink: 0;
}
.bd-values .bd-amount {
  font-weight: 700;
  font-size: 16px;
  line-height: 24px;
  color: var(--n1000);
}
.bd-values .bd-pct {
  font-size: 14px;
  line-height: 20px;
  color: var(--n550);
}

/* === Calculator: Assumptions === */
.assumptions-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid rgba(20,28,36,0.10);
}
.assumptions-link {
  background: none;
  border: none;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--n550);
  cursor: pointer;
  padding: 0;
  text-decoration: underline;
}
.assumptions-link:hover { color: var(--p450); }

.assumptions-body {
  display: none;
  margin-top: 16px;
  overflow-x: auto;
}
.assumptions-body.visible { display: block; }
.assumptions-body h4 {
  font-weight: 700;
  font-size: 14px;
  line-height: 20px;
  color: var(--n1000);
  margin-bottom: 8px;
  margin-top: 32px;
}
.assumptions-body h4:first-child { margin-top: 0; }
.assumptions-body .assumptions-desc {
  font-size: 13px;
  line-height: 19px;
  color: var(--n550);
  margin: 0 0 12px;
}
.assumptions-body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  line-height: 20px;
  table-layout: fixed;
}
.assumptions-body colgroup col:nth-child(1) { width: 50%; }
.assumptions-body colgroup col:nth-child(2) { width: 20%; }
.assumptions-body colgroup col:nth-child(3) { width: 30%; }
.assumptions-body th {
  text-align: left;
  font-weight: 600;
  color: var(--n650);
  padding: 8px 12px;
  border-bottom: 1px solid rgba(20,28,36,0.10);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.assumptions-body td {
  padding: 8px 12px;
  color: var(--n600);
  border-bottom: 1px solid rgba(20,28,36,0.10);
}
.assumptions-body a {
  color: var(--b450);
  text-decoration: underline;
}
.assumptions-body a:hover {
  color: var(--b550);
  text-decoration: none;
}

/* === Calculator: CTA Banner === */
.cta-wrap {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px 24px;
}
.cta-banner {
  background: var(--p450);
  border-radius: 24px;
  padding: 48px 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.cta-banner h2 {
  font-family: var(--font-serif);
  font-weight: 700;
  font-size: 32px;
  line-height: 40px;
  color: var(--n000);
  margin: 0;
}
.cta-btn {
  display: inline-block;
  background: var(--n000);
  color: var(--p450);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 16px;
  padding: 12px 32px;
  border-radius: var(--btn-radius);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s;
  border: none;
  cursor: pointer;
}
.cta-btn:hover { background: var(--n100); }

/* === Calculator: Disclaimer === */
.calc-disclaimer {
  text-align: center;
  font-size: 12px;
  line-height: 16px;
  color: var(--n550);
  padding: 0 48px 48px;
  max-width: 1120px;
  margin: 0 auto;
}

/* === Responsive === */
@media (max-width: 900px) {
  /* Calculator */
  .calc-header h1 { font-size: 32px; line-height: 40px; }
  .calc-wrap {
    grid-template-columns: 1fr;
    margin-top: -24px;
  }
  .inputs-panel {
    position: static;
  }
  .chart-layout {
    flex-direction: column;
  }
  .pie-container {
    margin: 0 auto;
  }
  .hero-number { font-size: 40px; line-height: 48px; }
  .cta-banner {
    flex-direction: column;
    text-align: center;
    padding: 32px 24px;
    border-radius: 16px;
  }
}

@media (max-width: 600px) {
  /* Index */
  .hero h1 { font-size: 26px; }
  .tools { grid-template-columns: 1fr; }
  .tool-card { padding: 24px 20px; }
  .tool-name { font-size: 18px; }

  /* Quiz */
  .landing-title { font-size: 28px; }
  .landing-card { padding: 32px 24px; }
  .question-card { padding: 32px 24px; }
  .question-text { font-size: 22px; }
  .lead-card { padding: 32px 24px; }
  .results-card { padding: 32px 24px; }
  .result-type-name { font-size: 28px; }
  .types-grid { grid-template-columns: 1fr; }
  .modal-content { padding: 32px 20px; margin: 16px; }
  .landing-hero { max-width: 200px; }
  .result-emoji { max-width: 120px; }
  .lead-hero { max-width: 160px; }
}
