/* Revision: 2026-04-24 – Light mode landing header background fix (logo visibility) */
/* Revision: 2026-04-22-nav-fix — Nav dropdown background: #111827 → #111a14 */
/* Filename: public/stylesheets/clarity-landing.css
   Revision: 2026-04-22 – Single CSS file for all clarity -landing pages
   Replaces: qbo-clarity.css, xero-clarity.css, landing.css (for clarity pages),
             and all inline style blocks across all six clarity landing views. */

/* ── Variables ─────────────────────────────────────────────────────────────── */
:root {
  --ink:          #0f0e0c;
  --ink-2:        #3d3c39;
  --ink-3:        #7a7870;
  --ink-4:        #4a4d44;
  --paper:        #faf9f6;
  --surface:      #f2f0eb;
  --rule:         #e2dfd7;
  --accent:       #1a4a3a;
  --accent-light: #e8f0ed;
  --red-soft:     #c0392b;
  --red-light:    #fdf0ee;
  --amber:        #c97b2a;
  --amber-light:  #fdf3e7;
  --green-dark::         #1a4a3a;
  --green-dark:-light:   #e8f0ed;
  --tr-dark:      #0f1109;
  --tr-green:     #22a559;
  --qb-green:     #1f8340;
  --qb-green-lt:  #e6f3eb;
}

[data-theme="dark"] {
  --ink:          #f0efe9;
  --ink-2:        #c8c7c0;
  --ink-3:        #7a7870;
  --ink-4:        #4a4d44;
  --paper:        #0f1109;
  --surface:      #161a0e;
  --rule:         #2a2d22;
  --accent:       #2ec76a;
  --accent-light: #0d2a18;
  --red-soft:     #e05555;
  --red-light:    #2a1010;
  --amber:        #e89a3c;
  --amber-light:  #2a1e0a;
  --green-dark::         #22a559;
  --green-dark:-light:   #152818;
  --tr-dark:      #060809;
  --qb-green:     #2ec76a;
  --qb-green-lt:  #0d2016;
}
[data-theme="light"] .theme-icon-light      { display: inline; }
[data-theme="light"] .theme-icon-dark       { display: none; }
[data-theme="light"] .theme-logo-dark       { display: none; }
[data-theme="light"] .theme-logo-light      { display: inline-block; }

/* ── Reset ─────────────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--paper); }

body {
  font-family: 'DM Sans', sans-serif;
  background:  var(--paper);
  color:       var(--ink);
  font-size:   15px;
  line-height: 1.65;
  min-height:  100vh;
  display:     flex;
  flex-direction: column;
}

/* ── TR band ───────────────────────────────────────────────────────────────── */
.tr-band {
  background: var(--tr-dark);
  padding:    7px 48px;
  font-size:  11.5px;
  color:      rgba(255,255,255,.4);
  display:    flex;
  align-items: center;
  justify-content: space-between;
}
.tr-band a { color: var(--tr-green); text-decoration: none; font-weight: 500; }
.tr-band a:hover { text-decoration: underline; }

/* ── Nav (clarity-nav partial: header.landing-header > nav.landing-nav) ────── */
.landing-header {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         16px 48px;
  border-bottom:   1px solid var(--rule);
  background:      var(--accent);
  position:        sticky;
  top:             0;
  z-index:         100;
}
[data-theme="dark"]  .landing-header { background: var(--paper); }
[data-theme="light"] .landing-header { background: var(--paper); }
[data-theme="light"] .theme-logo-dark       { display: none; }
[data-theme="light"] .theme-logo-light      { display: inline-block; }
[data-theme="dark"] .theme-logo-light       { display: none; }
[data-theme="dark"] .theme-logo-dark      { display: inline-block; }

.landing-header .logo {
  display:         flex;
  align-items:     center;
  text-decoration: none;
}
.landing-header .logo img { height: 36px; }

.landing-nav {
  display:     flex;
  align-items: center;
  gap:         6px;
}

/* ── Nav dropdowns ─────────────────────────────────────────────────────────── */
.nav-dropdown { position: relative; }

.nav-dropdown > .nav-drop-trigger {
  display:     flex;
  align-items: center;
  gap:         4px;
  color:       var(--ink-3);
  font-size:   13px;
  font-weight: 500;
  cursor:      pointer;
  padding:     6px 10px;
  background:  none;
  border:      none;
  font-family: inherit;
  border-radius: 6px;
  transition:  color .15s, background .15s;
}
.nav-dropdown > .nav-drop-trigger:hover,
.nav-dropdown.is-open > .nav-drop-trigger {
  color:       var(--ink);
  background:  var(--surface);
}
.nav-drop-trigger .caret {
  font-size:  9px;
  opacity:    .6;
  transition: transform .2s;
  display:    inline-block;
}
.nav-dropdown.is-open .caret { transform: rotate(180deg); }

.nav-drop-menu {
  display:      block;
  position:     absolute;
  top:          calc(100% + 8px);
  left:         50%;
  transform:    translateX(-50%);
  background:   #111a14;
  border:       1px solid rgba(255,255,255,.1);
  border-radius: 10px;
  padding:      8px;
  min-width:    210px;
  box-shadow:   0 8px 32px rgba(0,0,0,.4);
  z-index:      200;
  opacity:      0;
  pointer-events: none;
  transition:   opacity .15s ease, visibility .15s ease;
  visibility:   hidden;
}
.nav-dropdown.is-open .nav-drop-menu {
  opacity:        1;
  pointer-events: auto;
  visibility:     visible;
}
.nav-drop-menu a {
  display:         flex;
  flex-direction:  column;
  padding:         9px 12px;
  border-radius:   7px;
  text-decoration: none;
  transition:      background .15s;
  color:           #f9fafb;
}
.nav-drop-menu a:hover { background: rgba(255,255,255,.07); }
.nav-drop-menu .drop-label  { display: block; font-size: 13px; font-weight: 600; color: #f9fafb; }
.nav-drop-menu .drop-sub    { display: block; font-size: 11px; color: #6b7280; margin-top: 2px; }
.nav-drop-menu a:first-child .drop-label { color: #22a559; }
.nav-drop-divider { display: block; border: none; border-top: 1px solid rgba(255,255,255,.06); margin: 6px 4px; }

/* Standalone nav links (Pricing, Login) */
.landing-nav > a {
  font-size:       13px;
  color:           var(--ink-3);
  text-decoration: none;
  padding:         6px 10px;
  border-radius:   6px;
  transition:      color .15s, background .15s;
}
.landing-nav > a:hover { color: var(--ink); background: var(--surface); }

/* ── Theme toggle ──────────────────────────────────────────────────────────── */
.theme-toggle {
  background:    none;
  border:        1px solid var(--rule);
  border-radius: 99px;
  padding:       6px 12px;
  cursor:        pointer;
  font-size:     13px;
  color:         var(--ink-2);
  display:       flex;
  align-items:   center;
  gap:           6px;
  font-family:   'DM Sans', sans-serif;
  transition:    border-color .2s, color .2s;
  white-space:   nowrap;
}
.theme-toggle:hover { border-color: var(--ink-3); color: var(--ink); }
.toggle-icon { font-size: 14px; }

/* ── Nav CTA button ────────────────────────────────────────────────────────── */
.btn-nav-cta {
  background:      var(--tr-dark);
  color:           #ffffff !important;
  padding:         8px 18px;
  border-radius:   6px;
  font-size:       13px;
  font-weight:     600;
  text-decoration: none;
  white-space:     nowrap;
  transition:      background .15s;
}
.btn-nav-cta:hover { background: var(--accent) !important; color: #fff !important; }

/* Inline nav variant (account-clarity — uses plain <nav>, not .landing-header) */
nav {
  display:         flex;
  align-items:     center;
  justify-content: space-between;
  padding:         16px 48px;
  background:      var(--paper);
  position:        sticky;
  top:             0;
  z-index:         100;
}
[data-theme="dark"] nav { background: var(--paper); }

.logo {
  font-family:     'DM Serif Display', serif;
  font-size:       20px;
  color:           var(--ink);
  letter-spacing:  -.01em;
  text-decoration: none;
}
.logo span { color: var(--accent); }

.nav-links { display: flex; gap: 24px; align-items: center; list-style: none; }
.nav-links a {
  font-size:       13px;
  color:           var(--ink-3);
  text-decoration: none;
  cursor:          pointer;
}
.nav-links a:hover { color: var(--ink); }

.nav-back       { font-size: 13px; color: var(--ink-3); text-decoration: none; }
.nav-back:hover { color: var(--ink); }

.nav-cta {
  background:      var(--ink);
  color:           var(--paper);
  padding:         9px 22px;
  border-radius:   6px;
  font-size:       14px;
  font-weight:     500;
  text-decoration: none;
  cursor:          pointer;
  border:          none;
  font-family:     'DM Sans', sans-serif;
}
.nav-cta:hover { opacity: .85; }

/* ── Hero — centered narrow (qbo / qbd / xero / class) ─────────────────────── */
.hero {
  max-width:  680px;
  margin:     72px auto 0;
  padding:    0 24px;
  text-align: center;
}
.hero-eyebrow {
  font-size:      11px;
  font-weight:    500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  16px;
}
.hero h1 {
  font-family:   'DM Serif Display', serif;
  font-size:     48px;
  line-height:   1.05;
  margin-bottom: 16px;
}
.hero-sub {
  font-size:     17px;
  color:         var(--ink-2);
  line-height:   1.65;
  margin-bottom: 40px;
  max-width:     520px;
  margin-left:   auto;
  margin-right:  auto;
}

/* ── Hero — full split (account / customer) ─────────────────────────────────── */
.hero--full {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   0;
  min-height:            88vh;
  align-items:           center;
  max-width:             none;
  margin:                0;
  padding:               0;
  text-align:            left;
}
.hero-left  { padding: 80px 64px 80px 48px; border-right: 1px solid var(--rule); }
.hero-right {
  padding:         48px;
  background:      var(--surface);
  height:          100%;
  display:         flex;
  align-items:     center;
  justify-content: center;
}
[data-theme="dark"] .hero-right { background: var(--surface); }

.hero-headline {
  font-family:    'DM Serif Display', serif;
  font-size:      52px;
  line-height:    1.1;
  letter-spacing: -.02em;
  color:          var(--ink);
  margin-bottom:  24px;
}
.hero-headline em { font-style: italic; color: var(--accent); }
.hero-body {
  font-size:     17px;
  color:         var(--ink-2);
  line-height:   1.65;
  max-width:     440px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 12px; align-items: center; }

.btn-primary {
  background:      var(--ink);
  color:           var(--paper);
  padding:         13px 28px;
  border-radius:   6px;
  font-size:       15px;
  font-weight:     500;
  text-decoration: none;
  cursor:          pointer;
  border:          none;
  display:         inline-block;
  font-family:     'DM Sans', sans-serif;
}
.btn-primary:hover { opacity: .88; }

.btn-secondary {
  color:       var(--ink-2);
  font-size:   15px;
  text-decoration: none;
  padding:     13px 0;
  cursor:      pointer;
  background:  none;
  border:      none;
}
.btn-secondary:hover { color: var(--ink); }

.hero-note {
  margin-top: 20px;
  font-size:  12px;
  color:      var(--ink-3);
  display:    flex;
  align-items: center;
  gap:         6px;
}
.hero-note::before {
  content:    '';
  display:    inline-block;
  width:      14px;
  height:     1px;
  background: var(--ink-3);
}

/* ── Mock report (account / customer hero preview) ──────────────────────────── */
.mock-report {
  background:    white;
  border:        1px solid var(--rule);
  border-radius: 10px;
  width:         100%;
  max-width:     460px;
  overflow:      hidden;
  box-shadow:    0 4px 32px rgba(0,0,0,.07);
}
[data-theme="dark"] .mock-report { background: #1a1e16; border-color: var(--rule); box-shadow: 0 4px 32px rgba(0,0,0,.4); }

.mock-report-header { padding: 16px 20px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; }
.mock-report-title  { font-family: 'DM Serif Display', serif; font-size: 15px; color: var(--ink); }
.mock-report-meta   { font-size: 11px; color: var(--ink-3); }

.mock-stats { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--rule); }
.mock-stat  { padding: 16px 20px; border-right: 1px solid var(--rule); }
.mock-stat:last-child { border-right: none; }
.mock-stat-label { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 4px; }
.mock-stat-val   { font-size: 22px; font-weight: 500; color: var(--ink); }
.mock-stat-val.red   { color: var(--red-soft); }
.mock-stat-val.amber { color: var(--amber); }

.mock-clusters    { padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.mock-cluster     { border: 1px solid var(--rule); border-radius: 7px; overflow: hidden; }
.mock-cluster-head { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: #faf9f6; font-size: 13px; }
[data-theme="dark"] .mock-cluster-head { background: #1e2218; }
.mock-cluster-name  { font-weight: 500; flex: 1; }

.badge            { font-size: 10px; font-weight: 500; padding: 2px 7px; border-radius: 99px; letter-spacing: .03em; }
.badge-high       { background: #fee2e2; color: #991b1b; }
.badge-med        { background: #fef3c7; color: #92400e; }
.badge-risk       { background: white; border: 1.5px solid var(--red-soft); color: var(--red-soft); }
.badge-risk-amber { background: white; border: 1.5px solid var(--amber); color: var(--amber); }
[data-theme="dark"] .badge-high       { background: rgba(192,57,43,.25); color: #f09090; }
[data-theme="dark"] .badge-med        { background: rgba(201,123,42,.25); color: #e8b060; }
[data-theme="dark"] .badge-risk       { background: transparent; border-color: #e05555; color: #e05555; }
[data-theme="dark"] .badge-risk-amber { background: transparent; border-color: #e8a030; color: #e8a030; }

.mock-cluster-insight { padding: 7px 14px; font-size: 11px; color: var(--ink-2); font-style: italic; background: #f0f7f4; border-top: 1px solid #dceee7; }
[data-theme="dark"] .mock-cluster-insight { background: #0d2a18; border-top-color: #1a4a2a; }
.mock-cluster-verdict { padding: 6px 14px; font-size: 11px; font-weight: 500; color: #92400e; background: #fffbeb; border-top: 1px solid #fde68a; }
.mock-cluster-verdict.ok { color: #14532d; background: #f0fdf4; border-top-color: #86efac; }
[data-theme="dark"] .mock-cluster-verdict    { background: #2a1e06; border-top-color: #4a3a10; }
[data-theme="dark"] .mock-cluster-verdict.ok { background: #0d2a18; border-top-color: #1a4a2a; }
.mock-meta-row { font-size: 11px; color: var(--ink-3); padding: 6px 14px; background: #faf9f6; border-top: 1px solid var(--rule); }

/* ── Connect status card (xero / qbo) ──────────────────────────────────────── */
.connect-section {
  max-width: 540px;
  margin:    0 auto 48px;
  padding:   0 24px;
}
.connect-card {
  background:    var(--surface);
  border:        1px solid var(--rule);
  border-radius: 12px;
  padding:       24px 28px;
}
.connect-card-title {
  font-size:      12px;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color:          var(--ink-3);
  margin-bottom:  16px;
}
.connect-status {
  display:       flex;
  align-items:   center;
  gap:           12px;
  font-size:     14px;
  font-weight:   500;
  margin-bottom: 16px;
}
.connect-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.connect-dot.connected    { background: var(--accent); }
.connect-dot.disconnected { background: var(--red-soft); }
.connect-org { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }

/* Xero connect button */
.btn-xero {
  display:         inline-flex;
  align-items:     center;
  gap:             10px;
  background:      #13B5EA;
  color:           white;
  padding:         11px 22px;
  border-radius:   6px;
  font-size:       14px;
  font-weight:     600;
  text-decoration: none;
  border:          none;
  cursor:          pointer;
  transition:      background .15s;
}
.btn-xero:hover { background: #0fa3d4; }

/* QBO connect button */
.btn-qbo {
  display:         inline-flex;
  align-items:     center;
  gap:             10px;
  background:      var(--qb-green);
  color:           white;
  padding:         11px 22px;
  border-radius:   6px;
  font-size:       14px;
  font-weight:     600;
  text-decoration: none;
  border:          none;
  cursor:          pointer;
  transition:      background .15s;
}
.btn-qbo:hover { background: #176e34; }

.btn-disconnect {
  font-size:   13px;
  color:       var(--red-soft);
  background:  none;
  border:      1px solid var(--red-soft);
  border-radius: 6px;
  padding:     6px 14px;
  cursor:      pointer;
  margin-left: 12px;
  font-family: 'DM Sans', sans-serif;
  transition:  background .15s;
}
.btn-disconnect:hover { background: var(--red-light); }

/* ── Scan form (qbo / xero) ─────────────────────────────────────────────────── */
.scan-section {
  max-width: 540px;
  margin:    0 auto 80px;
  padding:   0 24px;
}
.scan-eyebrow {
  font-size:      11px;
  font-weight:    500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color:          var(--ink-3);
  margin-bottom:  16px;
  text-align:     center;
}
.scan-form {
  background:    var(--surface);
  border:        1px solid var(--rule);
  border-radius: 12px;
  padding:       24px 28px;
}
.form-row {
  display:               grid;
  gap:                   16px;
  grid-template-columns: 1fr 1fr;
  margin-bottom:         20px;
}
.form-group { display: flex; flex-direction: column; gap: 6px; }
.form-label { font-size: 12px; font-weight: 600; color: var(--ink-2); }
.form-input {
  padding:       9px 12px;
  border:        1px solid var(--rule);
  border-radius: 6px;
  font-size:     14px;
  font-family:   'DM Sans', sans-serif;
  background:    var(--paper);
  color:         var(--ink);
  transition:    border-color .15s;
}
.form-input:focus { outline: none; border-color: var(--accent); }
.btn-scan {
  width:         100%;
  background:    var(--ink);
  color:         var(--paper);
  border:        none;
  border-radius: 6px;
  padding:       12px;
  font-size:     15px;
  font-weight:   600;
  font-family:   'DM Sans', sans-serif;
  cursor:        pointer;
  transition:    background .15s;
}
.btn-scan:hover    { background: var(--accent); }
.btn-scan:disabled { opacity: .5; cursor: not-allowed; }
.scan-note {
  font-size:   11px;
  color:       var(--ink-3);
  text-align:  center;
  margin-top:  10px;
  line-height: 1.5;
}

.xero-error, .qbo-error {
  background:    var(--red-light);
  border:        1px solid #f5c6c0;
  border-radius: 8px;
  padding:       12px 16px;
  font-size:     13px;
  color:         var(--red-soft);
  margin-bottom: 16px;
}
.xero-success, .qbo-success {
  background:    var(--accent-light);
  border:        1px solid #a8d4bc;
  border-radius: 8px;
  padding:       12px 16px;
  font-size:     13px;
  color:         var(--accent);
  margin-bottom: 16px;
}

/* ── Scan / upload progress overlay ─────────────────────────────────────────── */
#scan-overlay, #upload-overlay {
  display:         none;
  position:        fixed;
  inset:           0;
  background:      rgba(15,14,12,.75);
  z-index:         500;
  align-items:     center;
  justify-content: center;
}
#scan-overlay.active, #upload-overlay.active { display: flex; }

.scan-modal, .upload-modal {
  background:    var(--paper);
  border-radius: 12px;
  padding:       48px 56px;
  text-align:    center;
  min-width:     380px;
  box-shadow:    0 20px 60px rgba(0,0,0,.2);
}
[data-theme="dark"] .upload-modal { background: var(--paper); }

.scan-modal-title, .upload-modal-title {
  font-family:   'DM Serif Display', serif;
  font-size:     22px;
  margin-bottom: 8px;
}
.scan-modal-sub, .upload-modal-sub {
  font-size:     14px;
  color:         var(--ink-3);
  margin-bottom: 28px;
}

.scan-progress-bar, .upload-progress-bar {
  height:        4px;
  background:    var(--rule);
  border-radius: 99px;
  overflow:      hidden;
  margin-bottom: 12px;
}
.scan-progress-fill, .upload-progress-fill {
  height:        100%;
  background:    var(--tr-green);
  border-radius: 99px;
  width:         0%;
  transition:    width .4s ease;
}
.scan-progress-label, .upload-progress-label { font-size: 12px; color: var(--ink-3); }
.upload-error { color: var(--red-soft); font-size: 14px; margin-top: 16px; display: none; }

.scan-phase-list {
  margin-top:  20px;
  text-align:  left;
  font-size:   12px;
  color:       var(--ink-3);
  line-height: 1.8;
}
.scan-phase-list .phase-done   { color: var(--accent); }
.scan-phase-list .phase-active { color: var(--ink); font-weight: 600; }

/* ── Upload zone (qbd) ──────────────────────────────────────────────────────── */
.upload-section { max-width: 540px; margin: 0 auto 48px; padding: 0 24px; }
.upload-eyebrow {
  font-size:      11px;
  font-weight:    500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color:          var(--ink-3);
  margin-bottom:  16px;
  text-align:     center;
}
.upload-card {
  background:    var(--surface);
  border:        1px solid var(--rule);
  border-radius: 12px;
  padding:       24px 28px;
}
.upload-zone {
  border:        2px dashed var(--rule);
  border-radius: 10px;
  padding:       36px 24px;
  text-align:    center;
  cursor:        pointer;
  transition:    border-color .2s, background .2s;
  margin-bottom: 20px;
}
.upload-zone:hover, .upload-zone.drag-over { border-color: var(--accent); background: var(--accent-light); }

.upload-icon   { font-size: 28px; margin-bottom: 12px; }
.upload-title  { font-size: 15px; font-weight: 500; margin-bottom: 4px; }
.upload-sub    { font-size: 13px; color: var(--ink-3); margin-bottom: 16px; }
.upload-status { font-size: 13px; color: var(--ink-3); text-align: center; min-height: 20px; }
.upload-note   { font-size: 11px; color: var(--ink-3); text-align: center; margin-top: 12px; line-height: 1.5; }
.upload-note a { color: var(--accent); text-decoration: none; }
.upload-btn    { background: var(--ink); color: var(--paper); padding: 11px 24px; border-radius: 6px; font-size: 14px; font-weight: 500; display: inline-block; text-decoration: none; cursor: pointer; border: none; font-family: 'DM Sans', sans-serif; }

.btn-choose {
  background:  var(--ink);
  color:       var(--paper);
  border:      none;
  border-radius: 6px;
  padding:     10px 22px;
  font-size:   14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor:      pointer;
  transition:  background .15s;
}
.btn-choose:hover { background: var(--accent); }
input[type=file] { display: none; }

.progress-bar-wrap { height: 4px; background: var(--rule); border-radius: 99px; margin: 4px 0 8px; display: none; }
.progress-bar      { height: 100%; background: var(--accent); border-radius: 99px; width: 0%; transition: width .2s; }

/* ── File-drop zone (class-clarity) ────────────────────────────────────────── */
.file-drop {
  border:        2px dashed var(--rule);
  border-radius: 10px;
  padding:       40px 32px;
  text-align:    center;
  cursor:        pointer;
  transition:    border-color .2s, background .2s;
  background:    var(--surface);
}
.file-drop:hover, .file-drop.drag-over { border-color: var(--accent); background: var(--accent-light); }
[data-theme="dark"] .file-drop { background: var(--surface); }
[data-theme="dark"] .file-drop:hover,
[data-theme="dark"] .file-drop.drag-over { background: var(--accent-light); }

.file-drop-icon  { width: 44px; height: 44px; background: var(--accent-light); border-radius: 10px; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; }
.file-drop-icon svg { width: 22px; height: 22px; stroke: var(--accent); fill: none; stroke-width: 2; }
.file-drop-label { font-size: 15px; font-weight: 500; margin-bottom: 6px; }
.file-drop-sub   { font-size: 13px; color: var(--ink-3); margin-bottom: 18px; }
.file-name       { font-size: 13px; color: var(--accent); font-weight: 500; margin-top: 10px; display: none; }

/* ── Gap box (class-clarity) ────────────────────────────────────────────────── */
.gap-box {
  background:    var(--surface);
  border:        1px solid var(--rule);
  border-radius: 12px;
  padding:       24px 28px;
  margin:        0 auto 48px;
  max-width:     560px;
  text-align:    left;
}
[data-theme="dark"] .gap-box { background: var(--surface); }

.gap-box-title {
  font-size:      12px;
  font-weight:    600;
  text-transform: uppercase;
  letter-spacing: .08em;
  color:          var(--ink-3);
  margin-bottom:  12px;
}
.gap-row {
  display:       flex;
  align-items:   center;
  gap:           12px;
  font-size:     13px;
  padding:       8px 0;
  border-bottom: 1px solid var(--rule);
}
.gap-row:last-child { border-bottom: none; }
.gap-badge           { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 99px; flex-shrink: 0; }
.gap-badge.ok        { background: rgba(26,74,58,.12); color: var(--accent); }
.gap-badge.missing   { background: rgba(192,57,43,.1);  color: var(--red-soft); }

/* QBO connect (class-clarity) */
.how-to { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 20px; margin-bottom: 20px; font-size: 13px; color: var(--ink-2); line-height: 1.7; }
.how-to strong { color: var(--ink); }
[data-theme="dark"] .how-to { background: var(--surface); }

.or-divider { text-align: center; font-size: 12px; color: var(--ink-3); margin: 20px 0; position: relative; }
.or-divider::before, .or-divider::after { content: ''; position: absolute; top: 50%; width: 42%; height: 1px; background: var(--rule); }
.or-divider::before { left: 0; }
.or-divider::after  { right: 0; }

.qbo-connect-wrap { text-align: center; margin-bottom: 12px; }
.qbo-connect-btn img { height: 40px; display: block; }
.qbo-connect-note { font-size: 12px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }

/* ── How it works — centered 3-step (qbo / qbd / xero / class) ─────────────── */
.how-section {
  max-width: 700px;
  margin:    0 auto 80px;
  padding:   0 24px;
}
.how-section h2 {
  font-family:   'DM Serif Display', serif;
  font-size:     28px;
  margin-bottom: 32px;
  text-align:    center;
}
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.step {
  background:    var(--surface);
  border:        1px solid var(--rule);
  border-radius: 10px;
  padding:       24px 20px;
}
[data-theme="dark"] .step { background: var(--surface); }
.step-num {
  width:           28px;
  height:          28px;
  border-radius:   50%;
  background:      var(--accent);
  color:           white;
  font-size:       12px;
  font-weight:     700;
  display:         flex;
  align-items:     center;
  justify-content: center;
  margin-bottom:   12px;
}
.step-title { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.step-body  { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

/* ── How / Problem / Outputs — full page sections (account / customer) ──────── */
.problem {
  padding:               100px 48px;
  border-top:            1px solid var(--rule);
  display:               grid;
  grid-template-columns: 1fr 2fr;
  gap:                   80px;
  align-items:           start;
}
.section-number { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.section-label  { font-family: 'DM Serif Display', serif; font-size: 34px; line-height: 1.15; letter-spacing: -.01em; color: var(--ink); }

.problem-item {
  display:               grid;
  grid-template-columns: 40px 1fr;
  gap:                   20px;
  padding:               28px 0;
  border-bottom:         1px solid var(--rule);
  align-items:           start;
}
.problem-item:first-child { border-top: 1px solid var(--rule); }
.problem-num   { font-family: 'DM Serif Display', serif; font-size: 22px; color: var(--ink-3); line-height: 1.3; }
.problem-title { font-size: 16px; font-weight: 500; margin-bottom: 6px; }
.problem-body  { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

.how {
  background:  var(--surface);
  border-top:  1px solid var(--rule);
  padding:     100px 48px;
}
.how-header {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  margin-bottom:         60px;
  align-items:           end;
}
.how-intro { font-size: 15px; color: var(--ink-2); line-height: 1.7; max-width: 400px; }

.how-steps {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   1px;
  background:            var(--rule);
  border:                1px solid var(--rule);
  border-radius:         10px;
  overflow:              hidden;
}
.how-step { background: var(--paper); padding: 32px 28px; }
[data-theme="dark"] .how-step { background: var(--surface); }
.how-step-num   { font-family: 'DM Serif Display', serif; font-size: 36px; color: var(--rule); line-height: 1; margin-bottom: 16px; }
.how-step-title { font-size: 15px; font-weight: 500; margin-bottom: 8px; }
.how-step-body  { font-size: 13px; color: var(--ink-2); line-height: 1.6; }

.outputs { padding: 100px 48px; border-top: 1px solid var(--rule); }
.outputs-header {
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  margin-bottom:         56px;
  align-items:           end;
}
.outputs-grid {
  display:               grid;
  grid-template-columns: repeat(2, 1fr);
  gap:                   1px;
  background:            var(--rule);
  border:                1px solid var(--rule);
  border-radius:         10px;
  overflow:              hidden;
}
.output-card { background: var(--paper); padding: 36px 32px; }
[data-theme="dark"] .output-card { background: var(--surface); }
.output-icon { width: 36px; height: 36px; border-radius: 8px; margin-bottom: 20px; display: flex; align-items: center; justify-content: center; }
.output-icon.green { background: var(--accent-light); }
.output-icon.amber { background: var(--amber-light); }
.output-icon.blue  { background: var(--green-dark-light); }
.output-icon.gray  { background: var(--surface); }
.output-title { font-size: 16px; font-weight: 500; margin-bottom: 8px; }
.output-body  { font-size: 14px; color: var(--ink-2); line-height: 1.6; }

/* ── Pricing section (account / customer) ───────────────────────────────────── */
.pricing {
  background:  var(--surface);
  border-top:  1px solid var(--rule);
  padding:     100px 48px;
  text-align:  center;
}
.pricing-eyebrow  { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 16px; }
.pricing-headline { font-family: 'DM Serif Display', serif; font-size: 40px; letter-spacing: -.02em; margin-bottom: 16px; }
.pricing-body     { font-size: 16px; color: var(--ink-2); max-width: 480px; margin: 0 auto 56px; }
.pricing-cards    { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 860px; margin: 0 auto; }

.pricing-card {
  background:    var(--paper);
  border:        1px solid var(--rule);
  border-radius: 10px;
  padding:       32px 28px;
  text-align:    left;
}
.pricing-card.featured { background: var(--ink); border-color: var(--ink); color: var(--paper); }
[data-theme="dark"] .pricing-card          { background: var(--surface); }
[data-theme="dark"] .pricing-card.featured { background: #e0ead8; color: #0f1109; }

.plan-name          { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 12px; }
.plan-name.light    { color: rgba(255,255,255,.5); }
.plan-price         { font-family: 'DM Serif Display', serif; font-size: 38px; line-height: 1; margin-bottom: 4px; }
.plan-period        { font-size: 13px; color: var(--ink-3); margin-bottom: 24px; }
.plan-period.light  { color: rgba(255,255,255,.4); }
[data-theme="dark"] .pricing-card.featured .plan-name.light   { color: rgba(15,17,9,.5); }
[data-theme="dark"] .pricing-card.featured .plan-period.light { color: rgba(15,17,9,.5); }

.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 28px; }
.plan-features li { font-size: 13px; color: var(--ink-2); display: flex; align-items: center; gap: 8px; }
.plan-features li.light { color: rgba(255,255,255,.75); }
.plan-features li::before { content: '—'; color: var(--ink-3); font-size: 12px; }
.plan-features li.light::before { color: rgba(255,255,255,.3); }
[data-theme="dark"] .pricing-card.featured .plan-features li.light { color: rgba(15,17,9,.75); }
[data-theme="dark"] .pricing-card.featured .plan-features li.light::before { color: rgba(15,17,9,.3); }

.plan-btn { display: block; text-align: center; padding: 11px 20px; border-radius: 6px; font-size: 14px; font-weight: 500; text-decoration: none; border: 1px solid var(--rule); color: var(--ink); background: transparent; cursor: pointer; font-family: 'DM Sans', sans-serif; }
.plan-btn.light { background: white; border-color: white; color: var(--ink); }
[data-theme="dark"] .plan-btn       { border-color: var(--rule); color: var(--ink); }
[data-theme="dark"] .plan-btn.light { background: #e0ead8; border-color: #e0ead8; color: #0f1109; }

/* ── CTA section (account / customer) ──────────────────────────────────────── */
.cta-section {
  padding:               120px 48px;
  border-top:            1px solid var(--rule);
  display:               grid;
  grid-template-columns: 1fr 1fr;
  gap:                   80px;
  align-items:           center;
}
.cta-headline    { font-family: 'DM Serif Display', serif; font-size: 44px; line-height: 1.1; letter-spacing: -.02em; }
.cta-headline em { font-style: italic; color: var(--accent); }
.cta-body        { font-size: 16px; color: var(--ink-2); line-height: 1.65; margin-bottom: 32px; }

.cta-upload {
  border:        2px dashed var(--rule);
  border-radius: 10px;
  padding:       48px 40px;
  text-align:    center;
  background:    var(--surface);
  cursor:        pointer;
  transition:    border-color .2s;
}
.cta-upload:hover     { border-color: var(--accent); }
.cta-upload.drag-over { border-color: var(--accent); background: var(--accent-light); }
[data-theme="dark"] .cta-upload { background: var(--surface); }
[data-theme="dark"] .upload-icon.box { background: var(--accent-light); }

/* ── Results: stats grid ────────────────────────────────────────────────────── */
.results-wrap {
  max-width: 960px;
  margin:    0 auto;
  padding:   48px 24px 80px;
  flex:      1;
}
.page-eyebrow {
  font-size:      11px;
  font-weight:    500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  8px;
}
.results-wrap h1 { font-family: 'DM Serif Display', serif; font-size: 34px; line-height: 1.1; margin-bottom: 6px; }
.page-meta       { font-size: 13px; color: var(--ink-3); margin-bottom: 32px; }

.health-row    { display: flex; align-items: center; gap: 24px; margin-bottom: 32px; }
.health-score-block {
  background:    var(--surface);
  border:        1px solid var(--rule);
  border-radius: 12px;
  padding:       20px 28px;
  display:       flex;
  align-items:   baseline;
  gap:           8px;
  flex-shrink:   0;
}
.health-score-num   { font-family: 'DM Serif Display', serif; font-size: 52px; line-height: 1; font-weight: 700; }
.health-score-denom { font-size: 16px; color: var(--ink-3); }
.health-score-grade { font-family: 'DM Serif Display', serif; font-size: 32px; font-weight: 700; margin-left: 4px; }
.health-score-num.green, .health-score-grade.green { color: #22a559; }
.health-score-num.amber, .health-score-grade.amber { color: var(--amber); }
.health-score-num.red,   .health-score-grade.red   { color: var(--red-soft); }

.severity-pills { display: flex; flex-direction: column; gap: 8px; }
.severity-pill  { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.sev-dot          { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.sev-dot.critical { background: var(--red-soft); }
.sev-dot.warning  { background: var(--amber); }
.sev-dot.advisory { background: var(--accent); }

.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 40px; }
.stat-card  { background: var(--surface); border: 1px solid var(--rule); border-radius: 10px; padding: 16px 18px; }
.stat-label { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); margin-bottom: 8px; }
.stat-val     { font-size: 28px; font-weight: 700; line-height: 1; }
.stat-val.ok  { color: #22a559; }
.stat-val.red { color: var(--red-soft); }
.stat-val.amb { color: var(--amber); }

/* ── Issue sections ─────────────────────────────────────────────────────────── */
.issue-section { margin-bottom: 36px; }
.issue-header  { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-radius: 8px 8px 0 0; border: 1px solid var(--rule); border-bottom: none; background: var(--surface); }
.issue-sev-bar          { width: 4px; height: 20px; border-radius: 2px; flex-shrink: 0; }
.issue-sev-bar.critical { background: var(--red-soft); }
.issue-sev-bar.warning  { background: var(--amber); }
.issue-sev-bar.advisory { background: var(--accent); }
.issue-title { font-size: 14px; font-weight: 600; }
.issue-count { margin-left: auto; font-size: 12px; color: var(--ink-3); }
.issue-body  { border: 1px solid var(--rule); border-radius: 0 0 8px 8px; padding: 16px; font-size: 13px; color: var(--ink-2); }
.issue-amount     { font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.issue-amount.red { color: var(--red-soft); }
.issue-amount.amb { color: var(--amber); }

/* ── Simple table ───────────────────────────────────────────────────────────── */
.data-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-top: 8px; }
.data-table thead th { background: var(--surface); padding: 8px 10px; text-align: left; font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); border-bottom: 2px solid var(--rule); }
.data-table tbody td { padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover td { background: var(--surface); }
.overflow-note { font-size: 11px; color: var(--ink-3); margin-top: 8px; font-style: italic; }

/* ── Report download form ───────────────────────────────────────────────────── */
.report-section {
  background:    var(--surface);
  border:        1px solid var(--rule);
  border-radius: 12px;
  padding:       28px;
  margin-bottom: 40px;
}
.report-section-title { font-family: 'DM Serif Display', serif; font-size: 20px; margin-bottom: 6px; }
.report-section-sub   { font-size: 13px; color: var(--ink-3); margin-bottom: 20px; }
.report-form-row      { display: flex; gap: 12px; align-items: flex-end; }
.report-form-row .form-group { flex: 1; }
.btn-report {
  background:  var(--tr-dark);
  color:       var(--tr-green);
  border:      none;
  border-radius: 6px;
  padding:     10px 22px;
  font-size:   14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor:      pointer;
  white-space: nowrap;
  transition:  background .15s;
}
.btn-report:hover { background: #111820; }

/* ── Doc pages (FAQ, TOS, Privacy) ─────────────────────────────────────────── */
.doc-wrap {
  max-width: 720px;
  margin:    0 auto;
  padding:   64px 48px 80px;
  flex:      1;
}
.doc-eyebrow {
  font-size:      11px;
  font-weight:    500;
  letter-spacing: .1em;
  text-transform: uppercase;
  color:          var(--accent);
  margin-bottom:  12px;
}
.doc-wrap h1 { font-family: 'DM Serif Display', serif; font-size: 42px; line-height: 1.1; margin-bottom: 8px; }
.doc-meta    { font-size: 13px; color: var(--ink-3); margin-bottom: 48px; }
.doc-section { margin-bottom: 36px; }
.doc-section h2 { font-family: 'DM Serif Display', serif; font-size: 22px; margin-bottom: 12px; margin-top: 36px; }
.doc-section p  { font-size: 15px; color: var(--ink-2); margin-bottom: 12px; line-height: 1.75; }
.doc-section ul { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; padding-left: 0; }
.doc-section ul li { font-size: 15px; color: var(--ink-2); display: flex; gap: 10px; }
.doc-section ul li::before { content: '—'; color: var(--ink-3); flex-shrink: 0; }
.doc-section a { color: var(--accent); }

.highlight-box   { background: var(--accent-light); border-left: 3px solid var(--accent); border-radius: 0 6px 6px 0; padding: 14px 18px; margin-bottom: 24px; }
.highlight-box p { font-size: 15px; color: var(--ink); margin: 0; }
.faq-item { border-bottom: 1px solid var(--rule); padding: 20px 0; }
.faq-q    { font-size: 16px; font-weight: 600; margin-bottom: 8px; }
.faq-a    { font-size: 14px; color: var(--ink-2); line-height: 1.7; }

/* ── Footer ─────────────────────────────────────────────────────────────────── */
footer {
  background:      var(--tr-dark);
  padding:         20px 48px;
  font-size:       12px;
  color:           rgba(255,255,255,.3);
  display:         flex;
  justify-content: space-between;
  margin-top:      auto;
}
footer a       { color: rgba(255,255,255,.3); text-decoration: none; }
footer a:hover { color: rgba(255,255,255,.6); }

/* Full footer variant (account / customer) */
.footer-inner { max-width: 1040px; margin: 0 auto; display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
.footer-brand .footer-logo { font-family: 'DM Serif Display', serif; font-size: 18px; color: white; margin-bottom: 6px; }
.footer-brand .footer-logo span { color: var(--tr-green); }
.footer-brand p { font-size: 12px; color: rgba(255,255,255,.65); line-height: 1.6; }
.footer-col-title { font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.55); margin-bottom: 12px; }
.footer-links     { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a   { font-size: 13px; color: rgba(255,255,255,.75); text-decoration: none; }
.footer-links a:hover { color: white; }
.footer-bottom    { max-width: 1040px; margin: 28px auto 0; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.5); }
.footer-bottom a  { color: rgba(255,255,255,.5); text-decoration: none; }
.footer-bottom a:hover { color: rgba(255,255,255,.85); }

.footer-logo { font-family: 'DM Serif Display', serif; font-size: 17px; color: white; }
.footer-logo span { color: var(--tr-green); }
.footer-by a { color: var(--tr-green); text-decoration: none; }
.footer-by a:hover { text-decoration: underline; }
.icon-out { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }

/* ── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .hero--full                { grid-template-columns: 1fr; min-height: auto; }
  .hero-left                 { padding: 60px 32px; border-right: none; border-bottom: 1px solid var(--rule); }
  .hero-right                { height: auto; padding: 32px; }
  .problem, .cta-section     { grid-template-columns: 1fr; gap: 40px; }
  .how-header, .outputs-header { grid-template-columns: 1fr; gap: 24px; }
  .how-steps                 { grid-template-columns: 1fr; }
  .outputs-grid              { grid-template-columns: 1fr; }
  .pricing-cards             { grid-template-columns: 1fr; }
  .footer-inner              { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 640px) {
  .landing-header { padding: 12px 20px; }
  nav             { padding: 12px 20px; }
  .tr-band        { padding: 7px 20px; }
  .hero           { margin-top: 40px; }
  .hero h1        { font-size: 34px; }
  .hero-headline  { font-size: 36px; }
  .form-row       { grid-template-columns: 1fr; }
  .steps          { grid-template-columns: 1fr; }
  .stats-grid     { grid-template-columns: repeat(2, 1fr); }
  .health-row     { flex-direction: column; align-items: flex-start; }
  .report-form-row { flex-direction: column; }
  footer          { flex-direction: column; gap: 8px; padding: 16px 20px; }
  .doc-wrap       { padding: 40px 20px 60px; }
  .problem        { padding: 60px 20px; }
  .how            { padding: 60px 20px; }
  .outputs, .pricing, .cta-section { padding: 60px 20px; }
  .landing-nav    { gap: 2px; }
  .nav-dropdown > .nav-drop-trigger,
  .landing-nav > a { padding: 4px 6px; font-size: 12px; }
  .btn-nav-cta    { padding: 6px 12px; font-size: 12px; }
}