/* ============================================
   EpiphanyMade — Layout & Component Styles
   Imports brand.css for all design tokens.
   ============================================ */

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

/* Global */
html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-body);
  line-height: var(--leading-body);
  background: var(--color-bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3 {
  font-family: var(--font-heading);
  color: var(--color-heading);
  line-height: var(--leading-heading);
}

h1 {
  font-size: var(--text-h1);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-h1);
}

h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-bold);
  letter-spacing: var(--tracking-h2);
}

h3 {
  font-size: var(--text-h3);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-tight);
}

a { color: var(--color-teal); text-decoration: none; transition: color var(--ease-default); }
a:hover { color: var(--color-teal-light); }

img { max-width: 100%; display: block; }

/* ---- Utility ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-section-x);
}

.section {
  padding: var(--space-section) 0;
}

.section-header {
  text-align: center;
  margin-bottom: var(--space-xl);
}

.section-header h2 {
  margin-bottom: var(--space-sm);
}

.section-header p {
  font-size: var(--text-body-lg);
  color: var(--color-secondary);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ---- Buttons ---- */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--color-lime);
  color: var(--color-lime-text);
  border: none;
  border-radius: var(--radius-md);
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-button);
  cursor: pointer;
  transition: background var(--ease-default), transform var(--ease-default);
  text-decoration: none;
  line-height: 1;
}
.btn-primary:hover {
  background: var(--color-lime-hover);
  color: var(--color-lime-text);
  transform: translateY(-1px);
}
.btn-primary:active {
  transform: translateY(0);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.btn-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-ghost-bg);
  color: rgba(255, 255, 255, 0.7);
  border: 1px solid var(--hero-ghost-border);
  border-radius: var(--radius-md);
  padding: 16px 36px;
  font-family: var(--font-body);
  font-size: var(--text-button);
  font-weight: var(--weight-semibold);
  letter-spacing: var(--tracking-button);
  cursor: pointer;
  transition: all var(--ease-default);
  text-decoration: none;
  line-height: 1;
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.1);
  color: white;
  border-color: rgba(255, 255, 255, 0.25);
}

.btn-small {
  padding: 10px 24px;
  font-size: var(--text-small);
  border-radius: var(--radius-sm);
}

.btn-full {
  width: 100%;
}

/* ---- Cards ---- */
.card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  transition: transform var(--ease-default), box-shadow var(--ease-default);
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

/* ---- Scroll Animations ---- */
.animate-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.animate-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- Form Elements ---- */
.form-group {
  margin-bottom: var(--space-sm);
}

.form-label {
  display: block;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-heading);
  margin-bottom: 6px;
}

.form-input {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-body);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--ease-default), box-shadow var(--ease-default);
}
.form-input::placeholder {
  color: var(--color-faint);
}
.form-input:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}
.form-input.error {
  border-color: var(--color-error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.form-error {
  font-size: var(--text-xs);
  color: var(--color-error);
  margin-top: 4px;
  display: none;
}
.form-error.active {
  display: block;
}

.form-consent {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: var(--text-small);
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}
.form-consent input[type="checkbox"] {
  margin-top: 2px;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  accent-color: var(--color-teal);
}

/* ============================================
   NAV
   ============================================ */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0;
  transition: background var(--ease-default), border-color var(--ease-default), box-shadow var(--ease-default);
  border-bottom: 1px solid transparent;
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px var(--space-section-x);
}

.nav__logo {
  font-family: var(--font-heading);
  font-size: 20px;
  font-weight: var(--weight-semibold);
  color: white;
  text-decoration: none;
  transition: color var(--ease-default);
}

.nav.scrolled .nav__logo {
  color: var(--color-navy);
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
  list-style: none;
}

.nav__link {
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--hero-nav-link);
  text-decoration: none;
  transition: color var(--ease-default);
}
.nav__link:hover {
  color: white;
}

.nav.scrolled .nav__link {
  color: var(--color-secondary);
}
.nav.scrolled .nav__link:hover {
  color: var(--color-heading);
}

.nav__cta {
  margin-left: var(--space-xs);
}

.nav.scrolled {
  background: white;
  border-bottom-color: var(--color-border);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

/* Hamburger */
.nav__hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 44px;
  height: 44px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  position: relative;
  z-index: 110;
}

.nav__hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: white;
  transition: all 0.25s ease;
  border-radius: 1px;
}
.nav__hamburger span + span {
  margin-top: 5px;
}

.nav.scrolled .nav__hamburger span {
  background: var(--color-heading);
}

.nav.nav-open .nav__hamburger span:nth-child(1) {
  transform: rotate(45deg) translate(3px, 4px);
}
.nav.nav-open .nav__hamburger span:nth-child(2) {
  opacity: 0;
}
.nav.nav-open .nav__hamburger span:nth-child(3) {
  transform: rotate(-45deg) translate(3px, -4px);
}

/* Mobile nav dropdown */
.nav__dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: white;
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-dropdown);
  padding: var(--space-md) var(--space-section-x);
}

.nav.nav-open .nav__dropdown {
  display: block;
}

.nav__dropdown .nav__link {
  display: block;
  color: var(--color-body);
  padding: 14px 0;
  font-size: var(--text-body);
  border-bottom: 1px solid var(--color-border);
}
.nav__dropdown .nav__link:last-child {
  border-bottom: none;
}
.nav__dropdown .nav__link:hover {
  color: var(--color-teal);
}

.nav__dropdown .nav__cta {
  display: block;
  margin: var(--space-sm) 0 0;
  text-align: center;
}

@media (max-width: 768px) {
  .nav__links {
    display: none;
  }
  .nav__hamburger {
    display: flex;
  }
}

/* ============================================
   HERO
   ============================================ */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--hero-bg);
  overflow: hidden;
}

.hero__grain {
  position: absolute;
  inset: 0;
  background: url('assets/grain.svg') repeat;
  opacity: 0.35;
  pointer-events: none;
  z-index: 2;
}

.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  max-width: 780px;
  padding: 0 var(--space-section-x);
}

.hero__title {
  color: var(--hero-text);
  margin-bottom: var(--space-md);
  line-height: var(--leading-heading);
}

.hero__subtitle {
  font-size: var(--text-body-lg);
  color: var(--hero-subtitle);
  margin-bottom: var(--space-xl);
  line-height: var(--leading-relaxed);
}

.hero__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--space-md);
}

.hero__secondary {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.6);
  background: none;
  border: none;
  cursor: pointer;
  font-family: var(--font-body);
  transition: color var(--ease-default);
}
.hero__secondary:hover {
  color: rgba(255, 255, 255, 0.9);
}

/* ============================================
   DEMOS SECTION
   ============================================ */
.demos {
  background: var(--color-bg-alt);
}

.demos__grid {
  display: grid;
  gap: var(--space-md);
}

.demos__quiz {
  margin-bottom: var(--space-md);
}

.demos__secondary {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-md);
}

@media (max-width: 768px) {
  .demos__secondary {
    grid-template-columns: 1fr;
  }
}

/* Demo cards */
.demo-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  overflow: hidden;
}

.demo-card__header h3 {
  margin-bottom: 8px;
}

.demo-card__header p {
  color: var(--color-secondary);
  font-size: var(--text-small);
  margin-bottom: var(--space-md);
}

/* Quiz card */
.quiz-card {
  padding: 48px 40px;
}

.quiz__start {
  text-align: center;
}

.quiz__start h3 {
  font-size: var(--text-h2);
  margin-bottom: var(--space-xs);
}

.quiz__start p {
  color: var(--color-secondary);
  margin-bottom: var(--space-md);
}

.quiz__progress {
  height: 3px;
  background: var(--color-border);
  border-radius: 2px;
  margin-bottom: var(--space-lg);
  overflow: hidden;
  display: none;
}

.quiz__progress-bar {
  height: 100%;
  background: var(--color-teal);
  border-radius: 2px;
  transition: width 0.3s ease;
  width: 0;
}

.quiz__question {
  display: none;
}

.quiz__question-text {
  font-size: var(--text-body-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  margin-bottom: var(--space-md);
  line-height: var(--leading-tight);
}

.quiz__question-count {
  font-size: var(--text-small);
  color: var(--color-muted);
  margin-bottom: var(--space-xs);
}

.quiz__options {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quiz__option {
  display: block;
  width: 100%;
  text-align: left;
  padding: 16px 20px;
  background: var(--color-bg-alt);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-body);
  cursor: pointer;
  transition: all var(--ease-default);
  line-height: var(--leading-tight);
}
.quiz__option:hover {
  border-color: var(--color-teal);
  background: var(--color-teal-bg);
}

.quiz__results {
  display: none;
  text-align: center;
}

.quiz__score-display {
  margin-bottom: var(--space-md);
}

.quiz__score-number {
  font-family: var(--font-heading);
  font-size: 72px;
  font-weight: var(--weight-bold);
  color: var(--color-teal);
  line-height: 1;
}

.quiz__score-band {
  font-size: var(--text-body-lg);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  margin-top: 4px;
}

.quiz__radar {
  max-width: 340px;
  margin: var(--space-md) auto;
}

.quiz__insight {
  font-size: var(--text-body);
  color: var(--color-body);
  margin: var(--space-md) auto;
  max-width: 560px;
  line-height: var(--leading-relaxed);
}

.quiz__insight strong {
  color: var(--color-heading);
}

.quiz__gate {
  margin-top: var(--space-lg);
  padding-top: var(--space-lg);
  border-top: 1px solid var(--color-border);
}

.quiz__gate h3 {
  margin-bottom: 4px;
}
.quiz__gate p {
  color: var(--color-secondary);
  font-size: var(--text-small);
  margin-bottom: var(--space-sm);
}

.quiz__gate-form {
  display: flex;
  gap: 10px;
  max-width: 480px;
  margin: 0 auto;
}

.quiz__gate-form .form-input {
  flex: 1;
}

.quiz__full-breakdown {
  display: none;
  text-align: left;
  margin-top: var(--space-lg);
}

.quiz__category-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}

.quiz__category-name {
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  text-transform: capitalize;
}

.quiz__category-score {
  font-family: var(--font-heading);
  font-weight: var(--weight-bold);
  color: var(--color-teal);
  font-size: var(--text-body-lg);
}

.quiz__category-desc {
  font-size: var(--text-small);
  color: var(--color-secondary);
  margin-top: 2px;
}

.quiz__follow-up {
  display: none;
  margin-top: var(--space-lg);
  text-align: left;
}

.quiz__follow-up label {
  display: block;
  font-size: var(--text-small);
  font-weight: var(--weight-medium);
  color: var(--color-heading);
  margin-bottom: 6px;
}

.quiz__follow-up textarea {
  width: 100%;
  padding: 14px 16px;
  font-family: var(--font-body);
  font-size: var(--text-body);
  color: var(--color-body);
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  resize: vertical;
  min-height: 80px;
  transition: border-color var(--ease-default);
}
.quiz__follow-up textarea:focus {
  border-color: var(--color-teal);
}

.quiz__follow-up .form-group + .form-group {
  margin-top: var(--space-sm);
}

/* Text-back demo */
.textback__form {
  display: flex;
  gap: 10px;
  margin-bottom: var(--space-sm);
}

.textback__form .form-input {
  flex: 1;
}

.textback__otp {
  display: none;
}

.textback__otp-inputs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: var(--space-sm) 0;
}

.textback__otp-input {
  width: 48px;
  height: 56px;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 24px;
  font-weight: var(--weight-bold);
  color: var(--color-heading);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color var(--ease-default);
}
.textback__otp-input:focus {
  border-color: var(--color-teal);
  box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.1);
}

.textback__resend {
  font-size: var(--text-small);
  color: var(--color-muted);
  text-align: center;
  margin-top: var(--space-xs);
}
.textback__resend button {
  background: none;
  border: none;
  color: var(--color-teal);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: var(--text-small);
}
.textback__resend button:disabled {
  color: var(--color-muted);
  cursor: not-allowed;
}

.textback__status {
  display: none;
  text-align: center;
  padding: var(--space-sm) 0;
  font-size: var(--text-small);
  color: var(--color-secondary);
}

.textback__conversation {
  display: none;
  margin-top: var(--space-sm);
}

.textback__msg {
  max-width: 80%;
  padding: 12px 16px;
  border-radius: 16px;
  font-size: var(--text-small);
  line-height: var(--leading-body);
  margin-bottom: 8px;
}
.textback__msg--sent {
  background: var(--color-teal);
  color: white;
  margin-left: auto;
  border-bottom-right-radius: 4px;
}
.textback__msg--received {
  background: var(--color-bg-alt);
  color: var(--color-body);
  border-bottom-left-radius: 4px;
}

/* Secretary demo */
.secretary__mic-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--color-teal), var(--color-teal-light));
  color: white;
  cursor: pointer;
  margin: var(--space-md) auto;
  transition: transform var(--ease-default), box-shadow var(--ease-default);
  position: relative;
}
.secretary__mic-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 8px 30px rgba(8, 145, 178, 0.3);
}
.secretary__mic-btn:active {
  transform: scale(0.98);
}
.secretary__mic-btn.active {
  animation: mic-pulse 1.5s ease-in-out infinite;
}

.secretary__mic-icon {
  width: 32px;
  height: 32px;
}

@keyframes mic-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(8, 145, 178, 0.4); }
  50% { box-shadow: 0 0 0 16px rgba(8, 145, 178, 0); }
}

.secretary__status {
  text-align: center;
  font-size: var(--text-small);
  color: var(--color-muted);
  margin-top: var(--space-xs);
}

.secretary__timer {
  display: none;
  text-align: center;
  font-family: var(--font-heading);
  font-size: var(--text-h3);
  font-weight: var(--weight-bold);
  color: var(--color-heading);
  margin-top: var(--space-xs);
}

.secretary__end-btn {
  display: none;
  margin: var(--space-sm) auto 0;
  padding: 10px 24px;
  background: var(--color-error);
  color: white;
  border: none;
  border-radius: var(--radius-md);
  font-family: var(--font-body);
  font-size: var(--text-small);
  font-weight: var(--weight-semibold);
  cursor: pointer;
  transition: background var(--ease-default);
}
.secretary__end-btn:hover {
  background: #b91c1c;
}

.secretary__error {
  display: none;
  text-align: center;
  font-size: var(--text-small);
  color: var(--color-error);
  margin-top: var(--space-sm);
}

.secretary__cta {
  display: none;
  text-align: center;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
}

/* Snapshot demo */
.snapshot__form {
  display: flex;
  gap: 10px;
  margin-bottom: var(--space-sm);
}
.snapshot__form .form-input {
  flex: 1;
}

.snapshot__loading {
  display: none;
  padding: var(--space-md) 0;
}

.snapshot__loading-step {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: var(--text-small);
  color: var(--color-muted);
  padding: 6px 0;
  opacity: 0.4;
  transition: opacity 0.3s ease, color 0.3s ease;
}
.snapshot__loading-step.active {
  opacity: 1;
  color: var(--color-body);
}
.snapshot__loading-step.done {
  opacity: 0.6;
  color: var(--color-success);
}

.snapshot__spinner {
  width: 16px;
  height: 16px;
  border: 2px solid var(--color-border);
  border-top-color: var(--color-teal);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
}
.snapshot__loading-step.done .snapshot__spinner {
  border-color: var(--color-success);
  border-top-color: var(--color-success);
  animation: none;
}
.snapshot__loading-step:not(.active):not(.done) .snapshot__spinner {
  border-top-color: var(--color-border);
  animation: none;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.snapshot__results {
  display: none;
}

.snapshot__finding {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--color-border);
}
.snapshot__finding:last-child {
  border-bottom: none;
}

.snapshot__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.snapshot__dot--green { background: var(--color-success); }
.snapshot__dot--yellow { background: var(--color-warning); }
.snapshot__dot--red { background: var(--color-error); }

.snapshot__finding-title {
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  font-size: var(--text-small);
}

.snapshot__finding-desc {
  font-size: var(--text-xs);
  color: var(--color-secondary);
  margin-top: 2px;
}

.snapshot__gate {
  display: none;
  margin-top: var(--space-md);
  padding-top: var(--space-md);
  border-top: 1px solid var(--color-border);
  text-align: center;
}
.snapshot__gate p {
  font-size: var(--text-small);
  color: var(--color-secondary);
  margin-bottom: var(--space-sm);
}

/* ============================================
   WHAT WE FIX
   ============================================ */
.what-we-fix {
  background: var(--color-bg);
}

.fix-table {
  max-width: 900px;
  margin: 0 auto;
}

.fix-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-lg);
  padding: var(--space-md) 0;
  border-bottom: 1px solid var(--color-border);
  align-items: start;
}
.fix-row:last-child {
  border-bottom: none;
}

.fix-problem {
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  line-height: var(--leading-tight);
  font-size: var(--text-body);
}

.fix-solution {
  color: var(--color-secondary);
  font-size: var(--text-body);
  line-height: var(--leading-body);
}

.what-we-fix__cta {
  text-align: center;
  margin-top: var(--space-xl);
}

@media (max-width: 768px) {
  .fix-row {
    grid-template-columns: 1fr;
    gap: var(--space-xs);
  }
}

/* ============================================
   FAQ
   ============================================ */
.faq {
  background: var(--color-bg-alt);
}

.faq__list {
  max-width: 720px;
  margin: 0 auto;
}

.faq__item {
  border-bottom: 1px solid var(--color-border);
}

.faq__question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 0;
  background: none;
  border: none;
  font-family: var(--font-body);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
  cursor: pointer;
  text-align: left;
  gap: var(--space-sm);
  transition: color var(--ease-default);
}
.faq__question:hover {
  color: var(--color-teal);
}

.faq__icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.25s ease;
}

.faq__item.open .faq__icon {
  transform: rotate(45deg);
}

.faq__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

.faq__item.open .faq__answer {
  max-height: 200px;
}

.faq__answer p {
  padding-bottom: 20px;
  color: var(--color-secondary);
  line-height: var(--leading-relaxed);
}

/* ============================================
   CTA / CONTACT
   ============================================ */
.contact {
  background: var(--color-bg-alt);
}

.contact__inner {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.contact__inner h2 {
  margin-bottom: var(--space-xs);
}

.contact__inner > p {
  color: var(--color-secondary);
  font-size: var(--text-body-lg);
  margin-bottom: var(--space-lg);
}

.contact__form {
  text-align: left;
}

.contact__form .btn-primary {
  margin-top: var(--space-xs);
}

.contact__turnstile {
  display: flex;
  justify-content: center;
  margin: var(--space-sm) 0;
}

.contact__below {
  margin-top: var(--space-md);
  font-size: var(--text-small);
  color: var(--color-muted);
}

.contact__success {
  display: none;
  text-align: center;
  padding: var(--space-xl) 0;
}

.contact__success h3 {
  color: var(--color-success);
  margin-bottom: var(--space-xs);
}

.contact__success p {
  color: var(--color-secondary);
}

.contact__error-msg {
  display: none;
  color: var(--color-error);
  font-size: var(--text-small);
  text-align: center;
  margin-top: var(--space-xs);
}

/* Honeypot */
.form-hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
  overflow: hidden;
}

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--color-navy-deep);
  padding: var(--space-xl) 0;
}

.footer__inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-section-x);
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: var(--space-lg);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__logo {
  font-family: var(--font-heading);
  font-size: 18px;
  font-weight: var(--weight-semibold);
  color: white;
}

.footer__tagline {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.5);
}

.footer__links {
  display: flex;
  gap: var(--space-md);
  list-style: none;
}

.footer__links a {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.5);
  transition: color var(--ease-default);
}
.footer__links a:hover {
  color: white;
}

.footer__right {
  text-align: right;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.footer__email {
  font-size: var(--text-small);
  color: rgba(255, 255, 255, 0.5);
}
.footer__email a {
  color: rgba(255, 255, 255, 0.7);
}
.footer__email a:hover {
  color: white;
}

.footer__copy {
  font-size: var(--text-xs);
  color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
  .footer__inner {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: var(--space-md);
  }
  .footer__right {
    text-align: center;
  }
}

/* ============================================
   CHATBOT WIDGET
   ============================================ */
.chatbot {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
  transition: opacity 0.3s ease;
}

body[data-demo-active] .chatbot {
  opacity: 0;
  pointer-events: none;
}

.chatbot__toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  background: var(--color-navy);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  transition: transform var(--ease-default), box-shadow var(--ease-default);
  position: relative;
}
.chatbot__toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0, 0, 0, 0.2);
}
.chatbot__toggle svg {
  width: 24px;
  height: 24px;
}

.chatbot__toggle::after {
  content: 'Got questions?';
  position: absolute;
  bottom: calc(100% + 8px);
  right: 0;
  white-space: nowrap;
  background: white;
  color: var(--color-body);
  font-size: var(--text-xs);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-dropdown);
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--ease-default);
}
.chatbot__toggle:hover::after {
  opacity: 1;
}

.chatbot.open .chatbot__toggle::after {
  display: none;
}

.chatbot__pulse {
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--color-teal);
  animation: chatbot-pulse 2s ease-in-out infinite;
}
.chatbot.open .chatbot__pulse {
  display: none;
}

@keyframes chatbot-pulse {
  0%, 100% { opacity: 0; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(1.15); }
}

.chatbot__panel {
  display: none;
  position: absolute;
  bottom: calc(100% + 12px);
  right: 0;
  width: 380px;
  max-height: 520px;
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.12);
  border: 1px solid var(--color-border);
  overflow: hidden;
  flex-direction: column;
}

.chatbot.open .chatbot__panel {
  display: flex;
}

.chatbot__panel-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--color-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chatbot__panel-title {
  font-family: var(--font-heading);
  font-size: var(--text-body);
  font-weight: var(--weight-semibold);
  color: var(--color-heading);
}

.chatbot__close {
  background: none;
  border: none;
  cursor: pointer;
  color: var(--color-muted);
  padding: 4px;
  transition: color var(--ease-default);
}
.chatbot__close:hover {
  color: var(--color-heading);
}

.chatbot__messages {
  flex: 1;
  overflow-y: auto;
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 280px;
  max-height: 360px;
}

.chatbot__msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: var(--text-small);
  line-height: var(--leading-body);
}
.chatbot__msg--bot {
  background: var(--color-bg-alt);
  color: var(--color-body);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}
.chatbot__msg--user {
  background: var(--color-teal);
  color: white;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot__typing {
  display: none;
  align-self: flex-start;
  padding: 10px 14px;
  background: var(--color-bg-alt);
  border-radius: 14px;
  border-bottom-left-radius: 4px;
}

.chatbot__typing-dots {
  display: flex;
  gap: 4px;
}

.chatbot__typing-dot {
  width: 6px;
  height: 6px;
  background: var(--color-muted);
  border-radius: 50%;
  animation: typing-bounce 1.2s ease-in-out infinite;
}
.chatbot__typing-dot:nth-child(2) { animation-delay: 0.2s; }
.chatbot__typing-dot:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); }
  30% { transform: translateY(-4px); }
}

.chatbot__input-area {
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
  display: flex;
  gap: 8px;
}

.chatbot__input {
  flex: 1;
  padding: 10px 14px;
  font-family: var(--font-body);
  font-size: var(--text-small);
  color: var(--color-body);
  border: 1px solid var(--color-border);
  border-radius: 20px;
  outline: none;
  transition: border-color var(--ease-default);
}
.chatbot__input::placeholder {
  color: var(--color-faint);
}
.chatbot__input:focus {
  border-color: var(--color-teal);
}

.chatbot__send {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--color-teal);
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background var(--ease-default);
}
.chatbot__send:hover {
  background: var(--color-teal-light);
}
.chatbot__send:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.chatbot__send svg {
  width: 16px;
  height: 16px;
}

.chatbot__limit {
  display: none;
  padding: 12px 20px;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--color-muted);
  border-top: 1px solid var(--color-border);
}

@media (max-width: 768px) {
  .chatbot {
    bottom: 16px;
    right: 16px;
  }
  .chatbot__panel {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    max-height: 100%;
    border-radius: 0;
  }
  .chatbot__messages {
    max-height: none;
    flex: 1;
  }
}

/* ============================================
   UTILITY STATES
   ============================================ */
.hidden { display: none !important; }

.status-msg {
  font-size: var(--text-small);
  text-align: center;
  padding: var(--space-xs) 0;
}
.status-msg--success { color: var(--color-success); }
.status-msg--error { color: var(--color-error); }
.status-msg--loading { color: var(--color-muted); }

@media (max-width: 768px) {
  .quiz-card {
    padding: 28px 20px;
  }
  .quiz__gate-form {
    flex-direction: column;
  }
  .textback__form,
  .snapshot__form {
    flex-direction: column;
  }
}
