@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:wght@600;700&display=swap');

:root {
  --green-dark: #141518;
  --green: #8c6a2e;
  --green-light: #f2efe9;
  --cream: #faf9f6;
  --text: #141518;
  --text-muted: #555963;
  --white: #ffffff;
  --shadow: 0 4px 24px rgba(20,21,24,0.08);
  --radius: 12px;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--cream);
  color: var(--text);
  line-height: 1.6;
}

a { color: var(--green); text-decoration: none; }
a:hover { text-decoration: underline; }

.site-header {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  padding: 0.9rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.site-header .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--white);
  text-decoration: none;
  flex-shrink: 0;
}

.site-header .site-nav,
.site-header nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem 1.1rem;
}

.site-header nav a,
.site-header .site-nav a {
  color: rgba(255,255,255,0.92);
  margin-left: 0;
  font-weight: 500;
  text-decoration: none;
  font-size: 0.95rem;
}

.site-header nav a:hover,
.site-header .site-nav a:hover { color: var(--white); text-decoration: none; }

.site-header .nav-cta {
  background: rgba(255,255,255,0.16);
  border: 1px solid rgba(255,255,255,0.55);
  border-radius: 999px;
  padding: 0.35rem 0.9rem;
}

.site-header .nav-cta:hover {
  background: rgba(255,255,255,0.28);
}

.nav-toggle {
  display: none;
  background: rgba(255,255,255,0.12);
  color: #fff;
  border: 1px solid rgba(255,255,255,0.45);
  border-radius: 8px;
  padding: 0.4rem 0.75rem;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
}

@media (max-width: 760px) {
  .nav-toggle { display: inline-flex; }
  .site-header {
    flex-wrap: wrap;
  }
  .site-header .site-nav,
  .site-header nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0.15rem;
    padding-top: 0.35rem;
  }
  .site-header .site-nav.is-open,
  .site-header nav.is-open {
    display: flex;
  }
  .site-header nav a,
  .site-header .site-nav a {
    padding: 0.65rem 0.2rem;
    border-top: 1px solid rgba(255,255,255,0.12);
  }
  .site-header .nav-cta {
    text-align: center;
  }
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 2rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}

.card h2 {
  margin-top: 0;
  color: var(--green-dark);
  font-family: 'Playfair Display', serif;
}

.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(0,0,0,0.15); text-decoration: none; }

.btn-primary { background: var(--green); color: var(--white); }
.btn-primary:hover { background: var(--green-dark); color: var(--white); }

.btn-secondary { background: var(--green-dark); color: var(--white); }
.btn-outline { background: transparent; color: var(--green); border: 2px solid var(--green); }

.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
  color: var(--green-dark);
}

.form-group input,
.form-group textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1px solid #e7e2d8;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

.form-group textarea {
  min-height: 220px;
  font-family: 'Consolas', 'Monaco', monospace;
  font-size: 0.9rem;
  line-height: 1.5;
}

.flash {
  padding: 0.85rem 1.25rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-weight: 500;
}

.flash.success { background: #e6f2ed; color: #1f6f54; border: 1px solid #c5ddd3; }
.flash.error { background: #f6e8e8; color: #a63a3a; border: 1px solid #e8c4c4; }
.flash.warning { background: #fff3cd; color: #856404; border: 1px solid #ffeeba; }

.hero {
  background: linear-gradient(135deg, var(--green-dark) 0%, var(--green) 100%);
  color: var(--white);
  padding: 4.25rem 1.5rem 4.5rem;
  text-align: center;
}

.hero-eyebrow {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  opacity: 0.85;
  font-weight: 600;
}

.hero h1,
.hero-title-sm {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.1rem);
  margin: 0 0 1rem;
  line-height: 1.15;
}

.hero .tagline {
  font-size: clamp(1.05rem, 2.4vw, 1.25rem);
  opacity: 0.95;
  margin: 0 auto 1.75rem;
  max-width: 36rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  align-items: center;
}

.hero .btn { margin: 0; }

.hero .btn-ghost {
  background: rgba(255,255,255,0.12);
  border: 1.5px solid rgba(255,255,255,0.85);
  color: #fff;
}

.hero .btn-ghost:hover {
  background: rgba(255,255,255,0.22);
  color: #fff;
  text-decoration: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2rem;
  margin: 3rem 0;
}

.feature {
  text-align: center;
  padding: 1.5rem;
}

.feature h3 { color: var(--green-dark); margin-bottom: 0.5rem; }

.trust-banner {
  background: var(--white);
  padding: 1.5rem 2rem;
  border-radius: var(--radius);
  text-align: center;
  box-shadow: var(--shadow);
  max-width: 700px;
  margin: -2rem auto 2rem;
  position: relative;
}

/* ---- Bio Report Styles ---- */

.bio-report,
.scan-report {
  font-size: 1rem;
  line-height: 1.75;
  color: #141518;
}

.scan-cover {
  text-align: center;
  padding: 1.5rem 1rem 2rem;
  border-bottom: 3px solid var(--green-light);
  margin-bottom: 1.5rem;
}

.scan-main-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem;
  color: var(--green-dark);
  margin: 0.25rem 0;
}

.scan-client-line { font-size: 1.1rem; color: var(--text-muted); margin: 0; }
.scan-section h2 {
  font-family: 'Playfair Display', serif;
  color: var(--green-dark);
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 0.35rem;
  margin: 1.5rem 0 0.75rem;
}

.scan-system-pill {
  display: inline-block;
  background: #f2efe9;
  color: var(--green-dark);
  padding: 0.35rem 0.75rem;
  margin: 0.2rem;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.body-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  margin-top: 1rem;
}

.body-system-card {
  border: 1px solid #e7e2d8;
  border-radius: var(--radius);
  background: #faf9f6;
  overflow: hidden;
}

.body-system-summary {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  cursor: pointer;
  list-style: none;
  font-weight: 600;
}

.body-system-summary::-webkit-details-marker { display: none; }

.body-system-name {
  color: var(--green-dark);
  font-size: 1rem;
}

.body-system-detail {
  padding: 0 1rem 1rem;
  border-top: 1px solid #e7e2d8;
}

.body-system-def {
  font-size: 0.92rem;
  color: #555963;
  line-height: 1.65;
  margin: 0.75rem 0;
}

.body-system-detail h4 {
  font-size: 0.88rem;
  color: var(--green-dark);
  margin: 0.5rem 0 0.35rem;
}

.body-marker-list {
  margin: 0;
  padding-left: 1.2rem;
  font-size: 0.9rem;
}

.body-marker-list li { margin-bottom: 0.25rem; }

.stress-badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  white-space: nowrap;
}

.stress-minor { background: #e6f2ed; color: #1f6f54; }
.stress-moderate { background: #e6f2ed; color: #1f6f54; }
.stress-chronic { background: #fff3cd; color: #856404; }
.stress-weakness { background: #ffe8cc; color: #a05a00; }
.stress-severe { background: #f6e8e8; color: #a63a3a; }

.body-overview-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0.75rem 0 0.25rem;
}

.legend-title {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.legend-item { display: inline-flex; }

.scan-comparison-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 900px) {
  .scan-comparison-grid { grid-template-columns: 1fr; }
}

.scan-comparison-panel h3 {
  font-family: 'Playfair Display', serif;
  color: var(--green-dark);
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}

.scan-comparison-meta {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 0 0 0.65rem;
}

.scan-comparison-body {
  max-height: 420px;
  overflow-y: auto;
  margin: 0;
  box-shadow: none;
}

.blood-reconciliation { margin-top: 1rem; }

.reconcile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.75rem;
  margin: 1rem 0;
}

.reconcile-panel {
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid #e7e2d8;
}

.reconcile-panel h3 {
  font-size: 0.95rem;
  margin: 0 0 0.5rem;
  color: var(--green-dark);
}

.reconcile-adjusted { background: #fff8e6; border-color: #f0d78a; }
.reconcile-confirmed { background: #f2efe9; border-color: #c5ddd3; }
.reconcile-scan-only { background: #f4f6f8; border-color: #d5dbe0; }

.reconcile-list {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.9rem;
}

.reconcile-list li { margin-bottom: 0.55rem; }

.reconcile-note {
  font-size: 0.85rem;
  color: #555963;
}

.scan-col {
  display: inline-block;
  width: 23%;
  vertical-align: top;
  padding: 0 1% 1rem 0;
}

.scan-imbalance-card,
.marker-card {
  background: #faf9f6;
  border: 1px solid #e7e2d8;
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.75rem 0;
}

.marker-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
}

.marker-card {
  margin: 0;
}

.marker-title {
  color: var(--green-dark);
  font-size: 1rem;
  margin: 0 0 0.5rem;
}

.marker-card p {
  margin: 0.35rem 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

.marker-card strong {
  color: var(--green-dark);
}

.marker-subsection {
  margin: 1.25rem 0 0.5rem;
}

.marker-subsection h3 {
  font-family: 'Playfair Display', serif;
  color: var(--green-dark);
  font-size: 1.1rem;
  margin: 0 0 0.75rem;
  border-bottom: 1px solid #e7e2d8;
  padding-bottom: 0.25rem;
}

.marker-card-hormone {
  border-left: 3px solid #9b59b6;
}

.scan-remedy-card {
  border: 1px solid #e7e2d8;
  border-radius: var(--radius);
  padding: 1rem;
  margin: 0.65rem 0;
}

.scan-disclaimer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #ddd;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.scan-lead {
  font-size: 1rem;
  color: #555963;
  margin: 0 0 1rem;
  max-width: 52rem;
}

.scan-summary,
.scan-prose {
  font-size: 1.02rem;
  line-height: 1.8;
  max-width: 52rem;
}

.scan-prose p {
  margin: 0 0 1rem;
}

.scan-steps {
  margin: 0.5rem 0 0;
  padding-left: 1.35rem;
  max-width: 52rem;
}

.scan-steps li {
  margin-bottom: 0.85rem;
  padding-left: 0.25rem;
  line-height: 1.7;
}

.scan-remedy-category {
  font-family: 'Playfair Display', serif;
  color: var(--green-dark);
  font-size: 1.15rem;
  margin: 1.25rem 0 0.5rem;
  border-bottom: 1px solid #e7e2d8;
  padding-bottom: 0.25rem;
}

.scan-price {
  font-weight: 700;
  color: var(--green);
  margin-top: 0.5rem;
}

.scan-imbalance-card p {
  margin: 0.4rem 0;
}

.scan-imbalance-card strong {
  color: var(--green-dark);
}

@media (max-width: 900px) {
  .scan-col {
    width: 48%;
  }
}

@media (max-width: 560px) {
  .scan-col {
    width: 100%;
    display: block;
  }
}

.report-header {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
  color: var(--white);
  padding: 2rem;
  border-radius: var(--radius) var(--radius) 0 0;
  margin: -2rem -2rem 1.5rem;
}

.report-brand {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.brand-icon { font-size: 2.5rem; }

.brand-tag {
  margin: 0;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.85;
}

.report-title {
  margin: 0.25rem 0 0;
  font-family: 'Playfair Display', serif;
  font-size: 1.75rem;
}

.report-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 1rem;
}

.meta-item {
  background: rgba(255,255,255,0.12);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

.meta-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.8;
}

.meta-value { font-weight: 600; font-size: 1rem; }

.report-executive {
  background: var(--green-light);
  padding: 1.5rem;
  border-radius: var(--radius);
  margin-bottom: 1.5rem;
  border-left: 4px solid var(--green);
}

.report-executive h3 { margin-top: 0; color: var(--green-dark); }

.top-findings { margin: 1rem 0 0; padding-left: 1.25rem; }

.top-findings li { margin-bottom: 0.35rem; }

.report-section {
  margin-bottom: 1.5rem;
}

.report-section h3 {
  color: var(--green-dark);
  font-family: 'Playfair Display', serif;
  border-bottom: 2px solid var(--green-light);
  padding-bottom: 0.5rem;
}

.findings-grid { display: flex; flex-direction: column; gap: 0.5rem; }

.finding-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  background: #fafbfc;
  border-radius: 8px;
  border: 1px solid #eee;
}

.finding-label { font-weight: 500; flex: 1; min-width: 180px; }

.finding-meta { display: flex; align-items: center; gap: 0.75rem; }

.severity-badge {
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.55rem;
  border-radius: 4px;
}

.badge-high { background: #f6e8e8; color: #a63a3a; }
.badge-moderate { background: #fff3cd; color: #856404; }
.badge-low { background: #e6f2ed; color: #1f6f54; }
.badge-info { background: #e2e3e5; color: #383d41; }

.stress-bar-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-width: 120px;
}

.stress-bar {
  height: 6px;
  border-radius: 3px;
  min-width: 20px;
  max-width: 80px;
}

.bar-high { background: #a63a3a; }
.bar-moderate { background: #f39c12; }
.bar-low { background: #1f6f54; }

.stress-value { font-size: 0.8rem; font-weight: 600; color: var(--text-muted); }

.report-columns {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem;
}

.rec-box {
  background: #faf9f6;
  padding: 1.25rem;
  border-radius: var(--radius);
  border: 1px solid #e8ece9;
}

.rec-box ul { margin: 0.5rem 0 0; padding-left: 1.25rem; }
.rec-box li { margin-bottom: 0.4rem; }

.rec-note { font-size: 0.85rem; color: var(--text-muted); margin: 0 0 0.5rem; }

.report-footer {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid #eee;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.report-id { font-style: italic; }

.raw-fallback {
  white-space: pre-wrap;
  background: #f4f4f4;
  padding: 1rem;
  border-radius: 8px;
  font-size: 0.85rem;
  max-height: 400px;
  overflow-y: auto;
}

/* Admin report cards */

.report-card {
  border: 2px solid var(--green-light);
  border-radius: var(--radius);
  overflow: hidden;
  margin-bottom: 2rem;
  background: var(--white);
}

.report-card-header {
  background: #f0f9f6;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  border-bottom: 1px solid #e7e2d8;
}

.report-card-header strong { color: var(--green-dark); font-size: 1.1rem; }

.report-card-body { padding: 0; }

.report-card-body .bio-report .report-header {
  margin: 0;
  border-radius: 0;
}

.latest-report-highlight {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(140,106,46,0.2);
}

.admin-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 900px) {
  .admin-grid.has-reports {
    grid-template-columns: 380px 1fr;
  }
}

.admin-form-panel { position: sticky; top: 1rem; align-self: start; }

.client-bucket-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 0.75rem;
}

.client-bucket {
  border: 1px solid #e7e2d8;
  border-radius: var(--radius);
  background: #faf9f6;
  padding: 0.65rem 0.85rem;
}

.client-bucket summary {
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  color: var(--green-dark);
  list-style: none;
}

.client-bucket summary::-webkit-details-marker { display: none; }

.client-bucket-count {
  background: var(--green-light);
  color: var(--green-dark);
  border-radius: 999px;
  padding: 0.1rem 0.55rem;
  font-size: 0.8rem;
  min-width: 1.5rem;
  text-align: center;
}

.client-bucket-list {
  list-style: none;
  padding: 0.65rem 0 0;
  margin: 0.65rem 0 0;
  border-top: 1px solid #e7e2d8;
}

.client-bucket-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid #eef2f0;
}

.client-bucket-list li:last-child { border-bottom: none; }

.client-bucket-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.6rem;
  align-items: baseline;
}

.client-bucket-email {
  font-size: 0.82rem;
  color: var(--text-muted);
  word-break: break-all;
}

.client-bucket-meta {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 0.2rem;
  line-height: 1.35;
}

.client-bucket-pending {
  color: #856404;
  font-weight: 600;
  margin-left: 0.25rem;
}

.client-bucket-empty {
  margin: 0.65rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.client-portal-link {
  margin-top: 0.45rem;
  padding: 0.2rem 0.55rem !important;
  font-size: 0.75rem !important;
}

.admin-preview-banner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  background: #fff8e6;
  border: 2px solid #f0d78c;
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  margin-bottom: 1.25rem;
  color: #856404;
}

.admin-preview-note {
  margin: 0.75rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-style: italic;
}

@media (max-width: 720px) {
  .site-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 1rem;
  }
  .site-header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.9rem;
    width: 100%;
  }
  .site-header nav a {
    margin-left: 0;
  }
  .hero {
    padding: 2.25rem 1.1rem;
  }
  .hero h1 {
    font-size: 1.85rem;
  }
  .container {
    padding: 1.25rem 1rem;
  }
  .btn {
    margin: 0.2rem 0.35rem 0.2rem 0;
  }
}

.admin-client-note {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--green-dark);
  background: #f0f9f6;
  padding: 0.5rem 0.65rem;
  border-radius: 8px;
  border-left: 3px solid var(--green);
}

.client-select-list {
  width: 100%;
  padding: 0.35rem;
  border: 1px solid #ddd;
  border-radius: 8px;
  background: #fff;
  font-size: 0.9rem;
}

.client-select-list option {
  padding: 0.35rem 0.25rem;
}

.awaiting-scan-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.awaiting-scan-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid #dce9f5;
}

.awaiting-scan-list li:last-child {
  border-bottom: none;
}

.empty-state {
  text-align: center;
  padding: 3rem;
  color: var(--text-muted);
}

.btn-group { display: flex; gap: 0.75rem; flex-wrap: wrap; margin-top: 1rem; }

.ai-section {
  background: #f0f7ff;
  padding: 1.25rem;
  border-radius: var(--radius);
  border-left: 4px solid #2980b9;
  margin: 1.5rem 0;
}

.ai-section h4 { color: #1a5276; margin: 1rem 0 0.5rem; font-size: 0.95rem; }

.doc-list li:last-child { border-bottom: none !important; }

input[type="file"] {
  width: 100%;
  padding: 0.5rem;
  border: 1px dashed #ccc;
  border-radius: 8px;
  background: #fafbfc;
}

.raw-data-admin summary { user-select: none; }

.affiliate-note { font-size: 0.8rem; color: var(--text-muted); }

.lab-links { font-size: 0.85rem; }
.lab-links a { font-weight: 600; }

.grok-assistant {
  margin: 1.25rem 0 0.5rem;
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  background: linear-gradient(135deg, #eef6ff, #f8fbff);
  border: 1px solid #c5daf0;
}

.grok-ask-label {
  display: block;
  font-weight: 700;
  color: #1a5276;
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.grok-ask-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.grok-ask-input {
  flex: 1 1 220px;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid #b8cfe6;
  border-radius: 8px;
  font-size: 0.95rem;
}

.grok-ask-btn {
  flex-shrink: 0;
  padding: 0.65rem 1rem;
}

.grok-ask-hint {
  margin: 0.55rem 0 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.grok-term-sample {
  color: #1a5276;
  font-weight: 600;
  border-bottom: 1px dashed #5dade2;
}

.grok-response-panel {
  margin-top: 0.85rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  background: #fff;
  border-left: 4px solid #2980b9;
  font-size: 0.92rem;
  line-height: 1.55;
}

.grok-response-panel.is-loading {
  opacity: 0.85;
}

.grok-response-label {
  font-weight: 700;
  color: #1a5276;
  margin-bottom: 0.35rem;
  font-size: 0.85rem;
}

.grok-response-body p {
  margin: 0.35rem 0;
}

.grok-loading {
  color: var(--text-muted);
  font-style: italic;
}

.grok-error-note {
  font-size: 0.82rem;
  color: #856404;
}

a.grok-term {
  color: #1a5276;
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px dashed #5dade2;
  cursor: pointer;
}

a.grok-term:hover,
a.grok-term:focus {
  color: #0d3d56;
  border-bottom-color: #2980b9;
  background: rgba(93, 173, 226, 0.12);
}

.grok-analysis-content a.grok-term-strong {
  border-bottom: none;
}

.grok-clear-link {
  font-size: 0.8rem;
  color: #1a5276;
  text-decoration: underline;
  cursor: pointer;
}
.grok-clear-link:hover {
  color: #0d3d56;
}

.scan-date-group:last-child ul li:last-child { border-bottom: none; }

.approval-panel label input[type="checkbox"] {
  width: auto;
  margin: 0;
  accent-color: var(--green);
}

.hero .btn { margin: 0.4rem; }

.purchase-card { text-align: center; }

.purchase-pricing { margin: 1rem 0 1.5rem; }

.purchase-was {
  text-decoration: line-through;
  color: #999;
  font-size: 1.25rem;
  margin: 0;
}

.purchase-now {
  font-size: 3rem;
  font-weight: 700;
  color: var(--green-dark);
  margin: 0.25rem 0;
  line-height: 1.1;
}

.purchase-actions { margin-top: 1rem; }

.purchase-form {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  text-align: left;
}

.purchase-actions-row .purchase-form {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  text-align: left;
}

.purchase-btn-primary,
.purchase-btn-bundle {
  width: 100%;
  font-size: 1.05rem;
  padding: 0.9rem 1.5rem;
}

.purchase-actions-row .purchase-btn-primary,
.purchase-actions-row .purchase-btn-bundle {
  width: auto;
  flex: 1 1 220px;
}

.purchase-savings {
  display: block;
  font-size: 0.8rem;
  opacity: 0.9;
  font-weight: 400;
}

.purchase-methods {
  margin: 1rem 0 0.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  text-align: center;
}

.purchase-methods-icons {
  margin: 0;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
}

.purchase-config-note {
  color: #856404;
  background: #fff3cd;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  margin: 0;
  text-align: center;
  line-height: 1.5;
}

.purchase-actions-row .purchase-methods,
.purchase-actions-row .purchase-methods-icons {
  flex-basis: 100%;
}

.purchase-email-order {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.purchase-email-order .btn-outline {
  width: 100%;
  text-align: center;
  padding: 0.9rem 1.5rem;
  font-size: 1.05rem;
}

.purchase-actions-row .purchase-email-order {
  flex-direction: row;
  flex-wrap: wrap;
}

.purchase-actions-row .purchase-email-order .btn-outline {
  flex: 1 1 220px;
  width: auto;
}

.checkout-single-card { text-align: center; padding: 2rem 1.5rem; }

.checkout-single-form { margin: 0; }

.checkout-single-btn {
  width: 100%;
  font-size: 1.15rem;
  padding: 1rem 1.5rem;
}

/* ---- Site polish: homepage + footer ---- */

.section-title {
  text-align: center;
  font-family: 'Playfair Display', serif;
  color: var(--green-dark);
  margin: 2.5rem 0 1.25rem;
}

.home-page .step-grid,
.home-page .include-grid {
  margin-bottom: 0.5rem;
}

.trust-banner .trust-price {
  margin: 0.35rem 0 0;
}

.trust-banner .trust-price span {
  color: var(--green);
  font-weight: 700;
  font-size: 1.2rem;
}

.shipping-list {
  margin: 0 0 0.85rem;
  padding-left: 1.15rem;
}

.shipping-list li { margin: 0.35rem 0; }

.fine-inline,
.muted {
  color: var(--text-muted);
  margin-bottom: 0;
}

.eyebrow {
  margin: 0 0 0.35rem;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.card-actions { margin-bottom: 0; }

.table-card { overflow-x: auto; }

.home-cta {
  text-align: center;
  margin: 2.75rem 0 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.site-footer {
  background: var(--green-dark);
  color: rgba(255,255,255,0.88);
  margin-top: 3rem;
  padding: 2.5rem 1.5rem 2.75rem;
}

.site-footer .footer-inner { max-width: 1100px; margin: 0 auto; }
.site-footer a { color: #e6f2ed; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: baseline;
  margin-bottom: 1.25rem;
}

.footer-brand strong { font-size: 1.05rem; color: #fff; }
.footer-brand span { font-size: 0.85rem; opacity: 0.75; }

.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
  margin: 0 0 1.5rem;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-col h4 {
  margin: 0 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}

.site-footer .fine {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.7);
  line-height: 1.55;
  max-width: 720px;
  margin: 0;
}

@media (max-width: 700px) {
  .footer-cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 420px) {
  .footer-cols { grid-template-columns: 1fr; }
}



/* === Functional Forward additions (divisions, forms, chat, catalog) === */
.ff-divisions-bar {
  background: var(--white);
  border-bottom: 1px solid #e7e2d8;
  padding: 0.55rem 1.5rem;
}
.ff-divisions-bar .inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1.25rem;
  align-items: center;
  font-size: 0.88rem;
}
.ff-divisions-bar a { color: var(--green-dark); font-weight: 500; }
.ff-divisions-bar .label { color: var(--text-muted); font-size: 0.75rem; text-transform: uppercase; letter-spacing: .05em; margin-right: .25rem; }

.page-hero, .hero {
  text-align: center;
  padding: 2.75rem 1.5rem 2rem;
}
.hero h1, .page-hero h1 {
  font-family: 'Playfair Display', serif;
  color: var(--green-dark);
  font-size: clamp(1.85rem, 4vw, 2.6rem);
  margin: 0 0 0.85rem;
  line-height: 1.2;
}
.hero .lede, .page-hero p {
  max-width: 640px;
  margin: 0 auto 1.25rem;
  color: var(--text-muted);
  font-size: 1.05rem;
}
.price-strike { text-decoration: line-through; opacity: .65; margin-right: .35rem; }
.price-now { color: var(--green-dark); font-weight: 700; }
.btn {
  display: inline-block;
  background: var(--green-dark);
  color: #fff !important;
  border: none;
  border-radius: 999px;
  padding: 0.7rem 1.35rem;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  text-decoration: none !important;
}
.btn:hover { background: var(--green); text-decoration: none !important; }
.btn-ghost, .btn-outline {
  background: transparent;
  color: var(--green-dark) !important;
  border: 1.5px solid var(--green-dark);
}
.btn-ghost:hover, .btn-outline:hover { background: var(--green-light); }
.btn-teal { background: var(--green); }
.btn-sm { padding: 0.4rem 0.85rem; font-size: 0.85rem; }
.wrap, .container { max-width: 1100px; margin: 0 auto; padding: 0 1.5rem; }
.section { padding: 1.5rem 0 2rem; }
.section-alt { background: var(--white); padding: 2rem 0; }
.section-title { text-align: center; font-family: "Playfair Display", serif; color: var(--green-dark); margin: 2.25rem 0 1.25rem; }
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem 1.35rem;
}
.include-grid, .step-grid, .features-grid, .divisions-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}
@media (min-width: 760px) {
  .include-grid, .step-grid, .features-grid { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
  .divisions-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1000px) {
  .divisions-grid { grid-template-columns: repeat(4, 1fr); }
}
.division-card, .feature-card, .include-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.25rem;
  text-decoration: none;
  color: inherit;
  display: block;
}
.division-card:hover { box-shadow: 0 8px 28px rgba(20,21,24,.14); text-decoration: none; }
.division-card h3, .feature-card h3, .include-card h3 {
  font-family: 'Playfair Display', serif;
  color: var(--green-dark);
  margin: 0.5rem 0 0.4rem;
  font-size: 1.15rem;
}
.division-icon {
  width: 42px; height: 42px;
  background: var(--green-light);
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: var(--green-dark);
}
.division-icon svg { width: 22px; height: 22px; }
.card-link { color: var(--green); font-weight: 600; font-size: 0.9rem; }
.compare-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; background: #fff; }
.compare-table th, .compare-table td { border: 1px solid #e7e2d8; padding: 0.7rem 0.8rem; text-align: left; }
.compare-table th { background: #141518; color: #fff; }
.compare-table tr:nth-child(even) td { background: #f3faf7; }
.faq details {
  background: #fff; border-radius: 12px; padding: 1rem 1.15rem;
  margin: 0 0 0.75rem; box-shadow: var(--shadow);
}
.faq summary { cursor: pointer; font-weight: 600; color: #141518; }
.disclaimer, .fine {
  font-size: 0.85rem; color: var(--text-muted); line-height: 1.55;
}
.eyebrow { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.5rem; }
.eyebrow a { color: var(--green); }
.two-col { display: grid; gap: 1.5rem; }
@media (min-width: 800px) { .two-col { grid-template-columns: 1fr 1fr; } }
.narrow { max-width: 640px; margin: 0 auto; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 600; margin-bottom: 0.35rem; color: var(--green-dark); font-size: 0.92rem; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 0.65rem 0.8rem; border: 1px solid #e7e2d8;
  border-radius: 8px; font: inherit; background: #fff;
}
.form-row { display: grid; gap: 1rem; }
@media (min-width: 600px) { .form-row { grid-template-columns: 1fr 1fr; } }
.form-note, .optional { font-size: 0.85rem; color: var(--text-muted); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem 1rem; z-index: 200; }
.catalog-toolbar { margin-bottom: 1.25rem; }
.catalog-toolbar input[type=search] {
  width: 100%; max-width: 480px; padding: 0.7rem 1rem;
  border: 1px solid #e7e2d8; border-radius: 999px; font: inherit; margin-bottom: 0.85rem;
}
.filter-chips { display: flex; flex-wrap: wrap; gap: 0.45rem; }
.chip {
  border: 1px solid #e7e2d8; background: #fff; border-radius: 999px;
  padding: 0.35rem 0.85rem; font-size: 0.85rem; cursor: pointer; color: var(--green-dark);
}
.chip.is-active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.catalog-grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 700px) { .catalog-grid { grid-template-columns: 1fr 1fr; } }
.catalog-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem 1.25rem; }
.catalog-card h3 { font-family: 'Playfair Display', serif; color: var(--green-dark); margin: 0.4rem 0; font-size: 1.1rem; }
.catalog-card-top { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; font-size: 0.78rem; }
.catalog-badge { background: var(--green-light); color: var(--green-dark); padding: 0.15rem 0.55rem; border-radius: 999px; text-transform: capitalize; font-weight: 600; }
.catalog-collection { color: var(--text-muted); }
.catalog-card-actions { display: flex; align-items: center; justify-content: space-between; gap: .75rem; margin-top: .85rem; flex-wrap: wrap; }
.price-tag { font-weight: 700; color: var(--green-dark); }
.steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 1rem; }
.step-card { display: flex; gap: 1rem; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem 1.25rem; }
.step-num {
  flex-shrink: 0; width: 2.2rem; height: 2.2rem; border-radius: 50%;
  background: var(--green-dark); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700;
}
.step-card h3 { margin: 0 0 0.35rem; color: var(--green-dark); font-family: 'Playfair Display', serif; }
.cta-row { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; justify-content: center; align-items: center; }
.site-footer { background: #141518; color: rgba(255,255,255,.88); margin-top: 3rem; padding: 2.5rem 1.5rem 2.75rem; }
.site-footer .footer-inner { max-width: 1100px; margin: 0 auto; }
.site-footer a { color: #e6f2ed; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-brand { display: flex; flex-wrap: wrap; gap: .5rem 1rem; align-items: baseline; margin-bottom: 1.25rem; }
.footer-brand strong { font-size: 1.05rem; color: #fff; font-family: 'Playfair Display', serif; }
.footer-brand span { font-size: .85rem; opacity: .75; }
.footer-cols { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 1.5rem; margin: 0 0 1.5rem; }
.footer-col { display: flex; flex-direction: column; gap: .45rem; }
.footer-col h4 { margin: 0 0 .35rem; font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: rgba(255,255,255,.55); font-weight: 600; }
.site-footer .fine { font-size: .82rem; color: rgba(255,255,255,.7); line-height: 1.55; max-width: 720px; margin: 0; }
@media (max-width: 800px) { .footer-cols { grid-template-columns: 1fr 1fr; } }
@media (max-width: 420px) { .footer-cols { grid-template-columns: 1fr; } }
.focus-tags { display: flex; flex-wrap: wrap; gap: 0.4rem; margin-top: 0.75rem; }
.focus-tag { background: var(--green-light); color: var(--green-dark); padding: 0.25rem 0.65rem; border-radius: 999px; font-size: 0.8rem; font-weight: 600; }
.listings-grid { display: grid; gap: 1rem; }
@media (min-width: 700px) { .listings-grid { grid-template-columns: 1fr 1fr; } }
.listing-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.15rem; }
.quiz-card { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.5rem; max-width: 560px; margin: 0 auto; }
.quiz-options { display: grid; gap: 0.5rem; margin: 1rem 0; }
.quiz-options label {
  display: block; padding: 0.75rem 1rem; border: 1px solid #e7e2d8; border-radius: 10px; cursor: pointer;
}
.quiz-options input { margin-right: 0.5rem; }
.sample-banner {
  background: #fff3cd; color: #856404; border-radius: 10px; padding: 0.85rem 1rem; margin-bottom: 1rem; font-size: 0.92rem;
}
.report-tabs { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 1rem 0; }
.report-tabs button {
  border: 1px solid #e7e2d8; background: #fff; border-radius: 999px; padding: 0.4rem 0.9rem; cursor: pointer; font: inherit;
}
.report-tabs button.is-active { background: var(--green-dark); color: #fff; border-color: var(--green-dark); }
.report-panel { display: none; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 1.25rem; }
.report-panel.is-active { display: block; }
.score-row { display: flex; justify-content: space-between; padding: 0.45rem 0; border-bottom: 1px solid #e7e2d8; }
.menu-toggle, .nav-toggle {
  display: none; background: rgba(255,255,255,0.12); color: #fff; border: 1px solid rgba(255,255,255,0.45);
  border-radius: 8px; padding: 0.4rem 0.75rem; font-weight: 600;
}
@media (max-width: 860px) {
  .menu-toggle, .nav-toggle { display: inline-block; }
  .site-header .site-nav, .site-header nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    background: var(--green-dark); flex-direction: column; padding: 1rem 1.5rem; gap: 0.75rem;
  }
  .site-header nav.is-open, .site-header .site-nav.is-open { display: flex; }
  .site-header { position: sticky; flex-wrap: wrap; }
}
.header-inner { width: 100%; max-width: 1100px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.site-header { position: sticky; top: 0; z-index: 100; }
.waitlist-success { display: none; background: #e6f2ed; color: #1f6f54; padding: 0.85rem 1rem; border-radius: 10px; margin-top: 0.75rem; }
.content-block h2 { font-family: 'Playfair Display', serif; color: var(--green-dark); }
.empty-state { color: var(--text-muted); padding: 1.5rem; text-align: center; }
.scanner-box {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.5rem; max-width: 520px; margin: 1rem auto; text-align: center;
}
.scanner-box .upload-zone {
  border: 2px dashed #e7e2d8; border-radius: 12px; padding: 2rem 1rem; margin: 1rem 0; color: var(--text-muted);
}
.warning-box { background: #fff3cd; border-radius: 10px; padding: 0.85rem 1rem; color: #856404; font-size: 0.9rem; }
.info-box { background: var(--green-light); border-radius: 10px; padding: 0.85rem 1rem; color: var(--green-dark); font-size: 0.9rem; }
.order-price-card {
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 1.75rem; max-width: 420px; margin: 0 auto 1.5rem; text-align: center;
}
.order-price-card .big-price { font-size: 2.2rem; font-weight: 700; color: var(--green-dark); font-family: 'Playfair Display', serif; }

/* === Chat widget (preserved) === */
.ff-chat {
  position: fixed;
  right: 1.25rem;
  bottom: 5.5rem;
  z-index: 2147483000;
  font-family: var(--font);
}
.ff-chat-toggle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--teal), var(--navy));
  color: white;
  box-shadow: 0 8px 28px rgba(14, 15, 18, 0.28);
  display: grid;
  place-items: center;
  transition: transform 0.2s, box-shadow 0.2s;
}
.ff-chat-toggle:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 32px rgba(14, 15, 18, 0.35);
}
.ff-chat-toggle:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}
.ff-chat-toggle svg { width: 26px; height: 26px; }
.ff-chat-toggle-close { display: none; }
.ff-chat.is-open .ff-chat-toggle-icon { display: none; }
.ff-chat.is-open .ff-chat-toggle-close { display: grid; }

.ff-chat-panel {
  display: none;
  flex-direction: column;
  position: absolute;
  right: 0;
  bottom: calc(56px + 0.75rem);
  width: min(380px, calc(100vw - 2rem));
  height: min(560px, calc(100vh - 7rem));
  background: white;
  border-radius: 16px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ff-chat.is-open .ff-chat-panel { display: flex; }

.ff-chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.9rem 1rem;
  background: linear-gradient(135deg, var(--navy), var(--teal));
  color: white;
}
.ff-chat-header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}
.ff-chat-header-text strong { font-size: 0.95rem; }
.ff-chat-header-text span {
  font-size: 0.75rem;
  opacity: 0.85;
}
.ff-chat-close {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.ff-chat-close:hover { background: rgba(255,255,255,0.25); }

.ff-chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  background: var(--off-white);
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}
.ff-chat-bubble {
  max-width: 88%;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  font-size: 0.9rem;
  line-height: 1.45;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.ff-chat-bubble a {
  color: var(--teal);
  font-weight: 600;
  text-decoration: underline;
}
.ff-chat-bubble--assistant {
  align-self: flex-start;
  background: white;
  border: 1px solid var(--border);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.ff-chat-bubble--user {
  align-self: flex-end;
  background: var(--teal);
  color: white;
  border-bottom-right-radius: 4px;
}
.ff-chat-typing {
  display: inline-flex;
  gap: 4px;
  align-items: center;
  padding: 0.85rem 1rem;
}
.ff-chat-typing span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--text-muted);
  animation: ff-bounce 1.2s infinite ease-in-out;
}
.ff-chat-typing span:nth-child(2) { animation-delay: 0.15s; }
.ff-chat-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes ff-bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: 0.4; }
  40% { transform: translateY(-4px); opacity: 1; }
}

.ff-chat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.65rem 0.85rem;
  border-top: 1px solid var(--border);
  background: white;
}
.ff-chat-chips.is-hidden { display: none; }
.ff-chat-chip {
  border: 1.5px solid var(--border);
  background: var(--teal-soft);
  color: var(--teal);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.ff-chat-chip:hover {
  background: var(--teal);
  color: white;
  border-color: var(--teal);
}

.ff-chat-form {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem;
  border-top: 1px solid var(--border);
  background: white;
}
.ff-chat-input {
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  font-size: 0.9rem;
}
.ff-chat-input:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgba(140,106,46,0.15);
}
.ff-chat-send {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: var(--accent);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.ff-chat-send:hover { background: var(--accent-hover); }
.ff-chat-send:disabled { opacity: 0.6; cursor: not-allowed; }
.ff-chat-send svg { width: 18px; height: 18px; }

@media (max-width: 480px) {
  .ff-chat {
    right: 0.75rem;
    bottom: 5rem;
  }
  .ff-chat-panel {
    position: fixed;
    right: 0.5rem;
    left: 0.5rem;
    bottom: calc(56px + 1rem);
    width: auto;
    height: min(70vh, 560px);
  }
}

/* —— Flagship app banner —— */
.flagship-banner {
  background: linear-gradient(145deg, var(--teal-soft), var(--accent-soft));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.75rem;
  text-align: center;
  max-width: 820px;
  margin-inline: auto;
}
.flagship-badge-row {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.85rem;
}
.flagship-label {
  display: inline-block;
  background: var(--navy);
  color: white;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.25rem 0.65rem;
  border-radius: 4px;
}
.flagship-banner h2 {
  font-family: var(--font-display);
  color: var(--navy);
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin-bottom: 0.75rem;
  letter-spacing: -0.02em;
}
.flagship-banner > p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 58ch;
  margin-inline: auto;
}
.flagship-features {
  grid-template-columns: repeat(2, 1fr);
}
.flagship-features .coming-soon {
  margin-bottom: 0.5rem;
  align-self: flex-start;
}
.flagship-features .feature-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
@media (max-width: 560px) {
  .flagship-features { grid-template-columns: 1fr; }
  .apps-grid[style] { grid-template-columns: 1fr !important; }
}


.waitlist-success.is-visible, .waitlist-success.is-visible { display: block !important; }
.form-success.is-visible { display: block !important; }
.ff-chat { z-index: 9999; }


/* —— UX polish: a11y, mobile, forms, focus (Functional Forward) —— */
html{scroll-behavior:smooth}
body{overflow-x:hidden;-webkit-text-size-adjust:100%}
img,video,svg,canvas{max-width:100%;height:auto}
:focus-visible{outline:3px solid #8c6a2e;outline-offset:2px}
.site-header a:focus-visible,.site-nav a:focus-visible,.btn:focus-visible,
.hub-card:focus-visible,.ff-hub-bar a:focus-visible{outline:3px solid #dec28b;outline-offset:2px}
.skip-link{position:absolute;left:-9999px;z-index:999;background:#fff;color:#141518;padding:.65rem 1rem;border-radius:8px;font-weight:700;text-decoration:none}
.skip-link:focus,.skip-link:focus-visible{left:1rem;top:1rem;outline:3px solid #8c6a2e}
/* Forms: large taps, no iOS zoom, clear labels */
input,select,textarea,button{font:inherit;max-width:100%;box-sizing:border-box}
.form-group label,.ff-quote-form label{display:block;font-weight:600;color:#141518;margin:0 0 .35rem;font-size:.95rem}
.form-group input,.form-group select,.form-group textarea,
.ff-quote-form input,.ff-quote-form select,.ff-quote-form textarea{
  width:100%;min-height:48px;padding:.75rem .9rem;font-size:16px;line-height:1.4;
  border:1.5px solid #e7e2d8;border-radius:10px;background:#fff;color:#141518}
.form-group textarea,.ff-quote-form textarea{min-height:120px;resize:vertical}
.form-group input:focus,.form-group select:focus,.form-group textarea:focus,
.ff-quote-form input:focus,.ff-quote-form select:focus,.ff-quote-form textarea:focus{
  border-color:#8c6a2e;outline:3px solid rgba(140,106,46,.35);outline-offset:0}
.btn,.btn-primary,button[type=submit]{min-height:48px;padding:.85rem 1.35rem;font-size:1rem;font-weight:700;border-radius:999px;cursor:pointer}
.optional{font-weight:500;color:#555963;font-size:.9em}
.form-note{font-size:.9rem;color:#555963;line-height:1.45}
/* Hub chrome for division/business pages */
.ff-hub-bar{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:.5rem 1rem;
  padding:.55rem 1rem;background:#0e0f12;color:#fff;font-size:.9rem;position:sticky;top:0;z-index:120}
.ff-hub-bar a{color:rgba(255,255,255,.92);text-decoration:none;min-height:44px;display:inline-flex;align-items:center;padding:.25rem .35rem}
.ff-hub-bar a:hover{text-decoration:underline;color:#fff}
.ff-hub-home{font-weight:700}
.ff-hub-links{display:flex;flex-wrap:wrap;align-items:center;gap:.15rem .75rem}
.ff-hub-cta{background:#8c6a2e;border-radius:999px;padding:.4rem .85rem!important;font-weight:700}
.ff-hub-more{position:relative}
.ff-hub-more>summary{list-style:none;cursor:pointer;color:rgba(255,255,255,.92);min-height:44px;display:inline-flex;align-items:center}
.ff-hub-more>summary::-webkit-details-marker{display:none}
.ff-hub-more-panel{position:absolute;right:0;top:calc(100% + .35rem);min-width:200px;background:#fff;color:#141518;border-radius:12px;
  box-shadow:0 12px 32px rgba(0,0,0,.18);padding:.5rem;z-index:130;display:flex;flex-direction:column}
.ff-hub-more-panel a{color:#141518!important;padding:.55rem .7rem!important;border-radius:8px}
.ff-hub-more-panel a:hover{background:#f2efe9;text-decoration:none!important}
@media(max-width:520px){
  .ff-hub-bar{padding:.5rem .75rem}
  .ff-hub-more-panel{position:static;box-shadow:none;background:rgba(255,255,255,.08);margin-top:.25rem}
  .ff-hub-more-panel a{color:#fff!important}
}
/* Page CTA strip */
.ff-page-cta{text-align:center;padding:1.75rem 1.25rem;background:#f2efe9;border-top:1px solid #e7e2d8;margin-top:2rem}
.ff-page-cta p{margin:0 auto .85rem;max-width:36rem;color:#374151;font-size:1rem}
.ff-page-cta .btn{display:inline-flex;align-items:center;justify-content:center;background:#141518;color:#fff;text-decoration:none}
.ff-page-cta .btn:hover{filter:brightness(1.06);text-decoration:none}
/* Footer contact clarity */
.site-footer .footer-contact{margin:.75rem 0 0;font-size:.92rem}
.site-footer .footer-contact a{font-weight:700}
/* Narrow phones */
@media(max-width:400px){
  .hub-hero{padding:2.25rem 1rem 2rem}
  .hub-hero h1{font-size:1.75rem}
  .hub-section{padding:1.5rem 1rem}
  .site-header{padding:.65rem .85rem}
  .site-header .logo{font-size:1.1rem}
  .container{padding-left:1rem;padding-right:1rem}
}

/* —— CORELI HOME START —— */

/* —— Site-wide editorial restyle (hub pages) —— */
@import url('https://fonts.googleapis.com/css2?family=EB+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Inter:wght@400;500;600;700&display=swap');
:root {
  --ff-cream: #faf9f6;
  --ff-taupe: #0e0f12;
  --ff-olive: #8c6a2e;
  --ff-ink: #141518;
  --ff-muted: #555963;
  --ff-serif: "EB Garamond", "Playfair Display", Georgia, serif;
  --ff-sans: Inter, "General Sans", -apple-system, BlinkMacSystemFont, sans-serif;
}
/* Soften headers toward taupe editorial on standard hub pages */
body:not(.hub-home):not(.af-page) .site-header {
  background: #0e0f12 !important;
  background-image: none !important;
}
body:not(.hub-home):not(.af-page) .site-header .logo {
  font-family: "EB Garamond", "Playfair Display", Georgia, serif !important;
  font-weight: 500;
}
body:not(.hub-home):not(.af-page) .site-header .nav-cta {
  background: #8c6a2e !important;
  border-color: transparent !important;
}
body:not(.hub-home):not(.af-page) .ff-hub-bar {
  background: #0e0f12 !important;
}
body:not(.hub-home):not(.af-page) .ff-hub-cta {
  background: #8c6a2e !important;
}
body:not(.af-page) h1, body:not(.af-page) h2 {
  font-family: "EB Garamond", "Playfair Display", Georgia, serif;
}
body:not(.hub-home):not(.af-page) {
  background: #faf9f6;
}
body:not(.hub-home):not(.af-page) .site-footer {
  background: #f2efe9;
}
:focus-visible {
  outline: 3px solid #dec28b;
  outline-offset: 2px;
}

/* —— CORELI HOME END —— */
