/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f4f6fb;
  --surface-100: #ffffff;
  --surface-200: #f3f5f9;
  --surface-300: #e9edf3;
  --surface-400: #d7dce6;
  --border: #e6e9f0;
  --border-strong: #d6dbe4;

  --text: #2b303b;
  --text-strong: #161a22;
  --text-muted: #6b7280;
  --text-dim: #9aa2b1;

  --accent: #14b8a6;
  --accent-hover: #0f9e8e;
  --accent-ink: #0d9488;      /* readable teal for text/links on light */
  --accent-light: var(--accent-ink);
  --accent-soft: rgba(20, 184, 166, 0.12);
  --coral: #ff6f5c;

  --primary: var(--accent);
  --primary-hover: var(--accent-hover);
  --danger: #ef5b46;
  --success: #10b981;
  --warning: #f59e0b;
  --info: #3b82f6;

  --radius: 10px;
  --shadow: 0 1px 2px rgba(16,24,40,.05), 0 1px 3px rgba(16,24,40,.04);
  --shadow-md: 0 6px 20px rgba(16,24,40,.08);

  --sidebar-w: 240px;
}
html, body { background: var(--bg); }
body { font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif; color: var(--text); line-height: 1.6; min-height: 100vh; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-ink); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent-hover); text-decoration: none; }

/* ===== App shell (authenticated): sidebar + main ===== */
body.app { display: flex; align-items: stretch; }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--surface-100); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 0.25rem;
  padding: 1.1rem 0.75rem; position: sticky; top: 0; height: 100vh;
}
.sidebar-head { display: flex; align-items: center; justify-content: space-between; }
.sidebar .brand { padding: 0.25rem 0.6rem 1.25rem; }
.sidebar .brand img { height: 30px; width: auto; display: block; }
.sidebar-toggle { display: none; align-items: center; justify-content: center; background: var(--surface-100); border: 1px solid var(--border-strong); border-radius: 8px; padding: 5px; color: var(--text); cursor: pointer; }
.sidebar-toggle svg { width: 22px; height: 22px; }
.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }
.sidebar-nav a {
  display: flex; align-items: center; gap: 0.7rem;
  padding: 0.6rem 0.7rem; border-radius: 8px;
  color: var(--text-muted); font-weight: 500; font-size: 0.9rem;
}
.sidebar-nav a:hover { background: var(--surface-200); color: var(--text-strong); }
.sidebar-nav a.active { background: var(--accent-soft); color: var(--accent-ink); }
.sidebar-nav a svg { width: 18px; height: 18px; flex-shrink: 0; }
.sidebar-nav .nav-badge { margin-left: auto; background: var(--coral); color: #fff; border-radius: 999px; font-size: 0.7rem; font-weight: 600; padding: 0 7px; line-height: 1.5; }
.sidebar-nav a.sidebar-nav-logout { display: none; margin-top: 4px; }  /* shown in the mobile menu only */

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  display: flex; align-items: center; gap: 1rem;
  padding: 0.7rem 1.75rem; background: var(--surface-100);
  border-bottom: 1px solid var(--border); position: sticky; top: 0; z-index: 5;
}
.topbar .spacer { margin-left: auto; }
.topbar .usage-pill { font-size: 0.8rem; text-decoration: none; }
.topbar .nav-user { color: var(--text-muted); font-size: 0.875rem; }
.current-client { font-size: 0.8rem; color: var(--text); background: var(--surface-200); border: 1px solid var(--border); padding: 0.3rem 0.8rem; border-radius: 999px; }

/* ===== Auth (logged-out) layout ===== */
.auth-topbar { display: flex; justify-content: center; padding: 2rem 1rem 0; }
.auth-topbar img { height: 34px; width: auto; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; width: 100%; padding: 1.75rem; }

/* Page header */
.page-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.5rem; flex-wrap: wrap; gap: 1rem; }
.page-header h1 { font-size: 1.4rem; font-weight: 600; color: var(--text-strong); }
.page-header-actions { display: flex; align-items: center; gap: 1rem; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; padding: 0.5rem 1rem; border: 1px solid transparent; border-radius: var(--radius); font-family: inherit; font-size: 0.875rem; font-weight: 500; line-height: 1.25rem; cursor: pointer; transition: all 0.15s; }
.btn:hover { text-decoration: none; }
.btn-primary { background: var(--accent-ink); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); color: #fff; }
.btn-outline { background: var(--surface-100); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover { background: var(--surface-200); border-color: var(--surface-400); }
.btn-danger { background: var(--surface-100); color: var(--danger); border-color: rgba(239, 91, 70, 0.4); }
.btn-danger:hover { background: rgba(239, 91, 70, 0.1); color: #c23a27; border-color: rgba(239, 91, 70, 0.6); }
.btn-sm { padding: 0.25rem 0.625rem; font-size: 0.8rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-google { gap: 0.6rem; background: #fff; color: #1f1f1f; border-color: #dadce0; font-weight: 500; }
.btn-google:hover { background: #f7f8fa; color: #1f1f1f; }

/* "or" divider on the auth pages */
.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1rem 0; color: var(--text-dim); font-size: 0.8rem; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Honeypot field */
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Cards */
.form-card, .dashboard-section, .filter-bar, .empty-state, .table-wrap {
  background: var(--surface-100); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--shadow);
}

/* Tables */
.table { width: 100%; border-collapse: collapse; background: var(--surface-100); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.table th { text-align: left; padding: 0.7rem 1rem; background: var(--surface-200); font-weight: 600; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-muted); border-bottom: 1px solid var(--border); }
.table td { padding: 0.75rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.875rem; color: var(--text); }
.table tbody tr:last-child td { border-bottom: none; }
.table tbody tr:hover { background: var(--surface-200); }
.table-responsive { overflow-x: auto; }
.actions-cell { white-space: nowrap; display: flex; gap: 0.5rem; }
.inline-form { display: inline; }
.url-cell { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 0.8rem; color: var(--text-muted); }
.prompt-cell { max-width: 420px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nowrap { white-space: nowrap; }
.table td { white-space: nowrap; }
.table td.prompt-cell { white-space: nowrap; }

/* Badges */
.badge { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; border: 1px solid transparent; }
.badge-success { background: rgba(16, 185, 129, 0.12); color: #047857; border-color: rgba(16, 185, 129, 0.25); }
.badge-danger { background: rgba(239, 91, 70, 0.12); color: #c23a27; border-color: rgba(239, 91, 70, 0.25); }
.badge-warning { background: rgba(245, 158, 11, 0.14); color: #b45309; border-color: rgba(245, 158, 11, 0.3); }
.badge-info { background: rgba(59, 130, 246, 0.12); color: #1d4ed8; border-color: rgba(59, 130, 246, 0.25); }
.badge-default { background: var(--surface-300); color: var(--text-muted); border-color: var(--border); }
.badge-feature { background: var(--accent-soft); color: var(--accent-ink); border-color: rgba(20, 184, 166, 0.2); }

/* Feature chip cluster (e.g. plan "Includes" column) */
.feature-chips { display: flex; flex-wrap: wrap; gap: 0.35rem; white-space: normal; }
.feature-chips .badge { white-space: nowrap; }
.includes-col { min-width: 280px; white-space: normal; }
.text-dim { color: var(--text-dim); }

/* Alerts */
.alert { padding: 0.75rem 1rem; border-radius: var(--radius); margin-bottom: 1rem; font-size: 0.875rem; border: 1px solid transparent; }
.alert-success { background: rgba(16, 185, 129, 0.1); color: #047857; border-color: rgba(16, 185, 129, 0.3); }
.alert-error { background: rgba(239, 91, 70, 0.1); color: #c23a27; border-color: rgba(239, 91, 70, 0.3); }
.alert-warning { background: rgba(245, 158, 11, 0.12); color: #b45309; border-color: rgba(245, 158, 11, 0.3); }

/* Result flagged for human review */
.row-flagged { background: rgba(245, 158, 11, 0.07); }
.row-flagged td:first-child { box-shadow: inset 3px 0 0 var(--warning); }

/* Forms */
.form-card { max-width: 960px; padding: 1.5rem; }
.form-group { margin-bottom: 1rem; }
.form-group label { display: block; font-weight: 500; font-size: 0.875rem; margin-bottom: 0.375rem; color: var(--text); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 0.6rem 0.75rem; background: var(--surface-100); color: var(--text-strong);
  border: 1px solid var(--border-strong); border-radius: var(--radius);
  font-size: 0.875rem; transition: border-color 0.15s, box-shadow 0.15s;
}
.form-group input::placeholder, .form-group textarea::placeholder { color: var(--text-dim); }
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(20, 184, 166, 0.18);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

/* Auth */
.auth-container { display: flex; justify-content: center; align-items: center; min-height: 70vh; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface-100); padding: 2rem; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 1.4rem; font-weight: 600; margin-bottom: 1.5rem; text-align: center; color: var(--text-strong); }
.auth-link { text-align: center; margin-top: 1rem; font-size: 0.875rem; color: var(--text-muted); }

/* Dashboard metric cards (pastel) */
.metrics-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(175px, 1fr)); gap: 1rem; margin-bottom: 1.75rem; }
.metric-card { padding: 1.35rem 1rem; border-radius: 14px; text-align: center; border: none; }
.metric-value { font-size: 1.75rem; font-weight: 700; line-height: 1.2; }
.metric-label { font-size: 0.72rem; font-weight: 600; margin-top: 0.35rem; text-transform: uppercase; letter-spacing: 0.05em; opacity: 0.85; }
.metric-card:nth-child(5n+1) { background: #e6f7f4; } .metric-card:nth-child(5n+1) .metric-value { color: #0d9488; } .metric-card:nth-child(5n+1) .metric-label { color: #0d9488; }
.metric-card:nth-child(5n+2) { background: #ffe9e5; } .metric-card:nth-child(5n+2) .metric-value { color: #e0492f; } .metric-card:nth-child(5n+2) .metric-label { color: #e0492f; }
.metric-card:nth-child(5n+3) { background: #eeeafe; } .metric-card:nth-child(5n+3) .metric-value { color: #6d5ae0; } .metric-card:nth-child(5n+3) .metric-label { color: #6d5ae0; }
.metric-card:nth-child(5n+4) { background: #e6f0fe; } .metric-card:nth-child(5n+4) .metric-value { color: #2563eb; } .metric-card:nth-child(5n+4) .metric-label { color: #2563eb; }
.metric-card:nth-child(5n+5) { background: #fdf1dd; } .metric-card:nth-child(5n+5) .metric-value { color: #c07a08; } .metric-card:nth-child(5n+5) .metric-label { color: #c07a08; }
.metric-card .metric-value { overflow-wrap: anywhere; }

.dashboard-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.dashboard-section { padding: 1.25rem; }
.dashboard-section h2 { font-size: 1rem; font-weight: 600; margin-bottom: 1rem; color: var(--text-strong); }
.dashboard-section .table { box-shadow: none; border-radius: 8px; }

/* Client selector */
.client-selector { display: flex; align-items: center; gap: 0.5rem; }
.client-selector label { font-size: 0.8rem; font-weight: 500; color: var(--text-muted); }
.client-selector select { padding: 0.45rem 0.7rem; background: var(--surface-100); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: 0.85rem; }

/* Filter bar */
.filter-bar { display: flex; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.5rem; padding: 1rem; }
.filter-group { display: flex; flex-direction: column; gap: 0.25rem; }
.filter-group label { font-size: 0.75rem; font-weight: 500; color: var(--text-muted); }
.filter-group input, .filter-group select { padding: 0.4rem 0.55rem; background: var(--surface-100); color: var(--text); border: 1px solid var(--border-strong); border-radius: var(--radius); font-size: 0.8rem; }

/* Empty state */
.empty-state { text-align: center; padding: 3rem 1rem; }
.empty-state p { color: var(--text-muted); margin-bottom: 1rem; }

/* Confirmation pages */
.text-center { text-align: center; }
.confirmation-icon { font-size: 3rem; margin-bottom: 1rem; line-height: 1; }
.confirmation-icon-success { color: var(--success); }
.confirmation-text { font-size: 1.05rem; color: var(--text); margin-bottom: 0.75rem; line-height: 1.6; }
.confirmation-subtext { font-size: 0.9rem; color: var(--text-muted); line-height: 1.5; }
.confirmation-divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.confirmation-help { font-size: 0.85rem; color: var(--text-muted); }

/* Footer */
.footer { text-align: center; padding: 1.5rem 1rem; color: var(--text-dim); font-size: 0.8rem; }
.text-muted { color: var(--text-muted); font-size: 0.875rem; }

/* Scrollbar */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--surface-400); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: #c2c8d4; }

/* Selection & focus */
::selection { background: rgba(20, 184, 166, 0.25); }
*:focus-visible { outline: 2px solid rgba(20, 184, 166, 0.55); outline-offset: 2px; }

/* Responsive */
@media (max-width: 900px) {
  body.app { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; flex-direction: column; gap: 0; border-right: none; border-bottom: 1px solid var(--border); padding: 0.6rem 1rem; }
  .sidebar .brand { padding: 0; }
  .sidebar-toggle { display: inline-flex; }
  .sidebar-nav { display: none; margin-top: 0.6rem; }
  .sidebar.open .sidebar-nav { display: flex; }
  .sidebar-nav a.sidebar-nav-logout { display: flex; }
  .topbar-logout { display: none; }
  .topbar { position: static; padding: 0.7rem 1rem; flex-wrap: wrap; }
  .container { padding: 1.1rem; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .filter-bar { flex-direction: column; align-items: stretch; }
}

/* ============================================================
   Marketing site (public: home, pricing, privacy, terms)
   ============================================================ */
body.marketing { background: var(--surface-100); display: block; }
body.marketing [hidden] { display: none !important; }
.m-container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; width: 100%; }
.m-narrow { max-width: 760px; }

.btn-lg { padding: 0.8rem 1.5rem; font-size: 1rem; border-radius: 12px; }

/* Header */
.m-header { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.9); backdrop-filter: saturate(180%) blur(8px); border-bottom: 1px solid var(--border); }
.m-header-inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 66px; }
.m-logo img { height: 30px; width: auto; display: block; }
.m-nav { display: flex; align-items: center; gap: 1.6rem; }
.m-nav a { color: var(--text-muted); font-weight: 500; font-size: 0.92rem; }
.m-nav a:hover { color: var(--text-strong); }
.m-nav a.btn { color: #fff; }
.m-nav-toggle { display: none; background: none; border: 1px solid var(--border-strong); border-radius: 8px; padding: 5px; color: var(--text); cursor: pointer; }
.m-nav-toggle svg { width: 22px; height: 22px; }

/* Hero */
.m-hero { padding: 5rem 0 4rem; text-align: center; background: radial-gradient(1200px 500px at 50% -120px, var(--accent-soft), transparent 70%); }
.m-hero-sm { padding: 3.5rem 0 2rem; }
.m-eyebrow { text-transform: uppercase; letter-spacing: .08em; font-size: .78rem; font-weight: 700; color: var(--accent-ink); margin-bottom: .9rem; }
.m-hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--text-strong); max-width: 16ch; margin: 0 auto 1.2rem; }
.m-hero-sm h1 { max-width: none; }
.m-lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 60ch; margin: 0 auto 2rem; }
.m-hero-cta { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
.m-hero-note { margin-top: 1rem; font-size: .85rem; color: var(--text-dim); }
.m-engines { margin-top: 3rem; display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.m-engines span { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--text-dim); }
.m-engines ul { list-style: none; display: flex; gap: 1.75rem; flex-wrap: wrap; justify-content: center; }
.m-engines li { font-weight: 700; color: var(--text); font-size: 1.05rem; opacity: .8; }

/* Bands & sections */
.m-band { background: var(--bg); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 4rem 0; }
.m-section { padding: 4rem 0; }
.m-section[id], .m-band[id] { scroll-margin-top: 82px; }  /* clear the sticky header on anchor jumps */
.m-section-head { text-align: center; max-width: 60ch; margin: 0 auto 2.75rem; }
.m-section-head h2, .m-band > .m-container > .m-section-head h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--text-strong); letter-spacing: -0.01em; margin-bottom: .6rem; }
.m-section-head p { color: var(--text-muted); font-size: 1.05rem; }
.m-band .m-narrow h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--text-strong); margin-bottom: .8rem; }
.m-band-lede { color: var(--text-muted); font-size: 1.08rem; }

/* Features */
.m-features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.m-feature { background: var(--surface-100); border: 1px solid var(--border); border-radius: 14px; padding: 1.6rem; box-shadow: var(--shadow); }
.m-feature-icon { font-size: 1.7rem; line-height: 1; margin-bottom: .9rem; }
.m-feature h3 { font-size: 1.1rem; color: var(--text-strong); margin-bottom: .4rem; }
.m-feature p { color: var(--text-muted); font-size: .95rem; }

/* Steps */
.m-steps { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; counter-reset: step; }
.m-steps li { background: var(--surface-100); border: 1px solid var(--border); border-radius: 14px; padding: 1.6rem; box-shadow: var(--shadow); }
.m-step-num { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent-ink); color: #fff; font-weight: 700; margin-bottom: .9rem; }
.m-steps h3 { font-size: 1.1rem; color: var(--text-strong); margin-bottom: .4rem; }
.m-steps p { color: var(--text-muted); font-size: .95rem; }

/* Split accuracy section */
.m-split { display: grid; grid-template-columns: 1.1fr .9fr; gap: 3rem; align-items: center; }
.m-split h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); color: var(--text-strong); margin-bottom: .8rem; }
.m-checklist { list-style: none; display: flex; flex-direction: column; gap: .8rem; }
.m-checklist li { position: relative; padding-left: 2rem; color: var(--text); font-weight: 500; }
.m-checklist li::before { content: "✓"; position: absolute; left: 0; top: -1px; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center; background: var(--accent-soft); color: var(--accent-ink); border-radius: 50%; font-size: .8rem; font-weight: 700; }

/* Pricing teaser (home) */
.m-price-teaser { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }
.m-price-mini { background: var(--surface-100); border: 1px solid var(--border); border-radius: 14px; padding: 1.6rem; box-shadow: var(--shadow); position: relative; }
.m-price-mini.featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.m-price-mini h3 { color: var(--text-strong); margin-bottom: .5rem; }
.m-price-mini ul { list-style: none; margin-top: 1rem; display: flex; flex-direction: column; gap: .45rem; color: var(--text-muted); font-size: .92rem; }

/* Pricing page */
.m-toggle { display: inline-flex; background: var(--surface-200); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 4px; margin-top: 1.5rem; }
.m-toggle-btn { border: none; background: transparent; padding: .5rem 1.1rem; border-radius: 999px; font-family: inherit; font-size: .9rem; font-weight: 600; color: var(--text-muted); cursor: pointer; display: inline-flex; align-items: center; gap: .5rem; }
.m-toggle-btn.is-active { background: var(--surface-100); color: var(--text-strong); box-shadow: var(--shadow); }
.m-save { background: var(--accent-soft); color: var(--accent-ink); font-size: .68rem; font-weight: 700; padding: 1px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }

.m-plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: start; }
.m-plan { background: var(--surface-100); border: 1px solid var(--border); border-radius: 16px; padding: 1.75rem; box-shadow: var(--shadow); position: relative; }
.m-plan.featured { border-color: var(--accent); box-shadow: var(--shadow-md); }
.m-plan h2 { font-size: 1.25rem; color: var(--text-strong); margin-bottom: .75rem; }
.m-badge { position: absolute; top: -12px; left: 1.75rem; background: var(--coral); color: #fff; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 10px; border-radius: 999px; }
.m-price { display: flex; align-items: baseline; gap: .25rem; flex-wrap: wrap; margin-bottom: 1.1rem; }
.m-amount { font-size: 2.4rem; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; }
.m-per { color: var(--text-muted); font-weight: 500; }
.m-price-sub { flex-basis: 100%; font-size: .82rem; color: var(--accent-ink); font-weight: 600; margin-top: .25rem; }
.m-plan-list { list-style: none; margin-top: 1.3rem; display: flex; flex-direction: column; gap: .6rem; }
.m-plan-list li { position: relative; padding-left: 1.6rem; color: var(--text); font-size: .92rem; }
.m-plan-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-ink); font-weight: 700; }
.m-free-note { text-align: center; color: var(--text-muted); font-size: .9rem; max-width: 70ch; margin: 2rem auto 0; }

/* Comparison table */
.m-compare td, .m-compare th { text-align: center; }
.m-compare td:first-child, .m-compare th:first-child { text-align: left; font-weight: 500; color: var(--text); }
.m-compare th.featured, .m-compare td.featured { background: var(--accent-soft); }
.m-yes { color: var(--success); font-weight: 700; }
.m-no { color: var(--text-dim); }

/* CTA */
.m-cta { text-align: center; padding: 4.5rem 0; background: linear-gradient(135deg, var(--accent-ink), #0b7d72); color: #fff; }
.m-cta h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-bottom: .6rem; }
.m-cta p { color: rgba(255,255,255,.85); margin-bottom: 1.6rem; font-size: 1.05rem; }
.m-cta .btn-primary { background: #fff; color: var(--accent-ink); }
.m-cta .btn-primary:hover { background: #f2fbf9; color: var(--accent-ink); }

/* Legal pages */
.m-legal { padding: 3rem 0 4rem; }
.m-legal h1 { font-size: 2rem; color: var(--text-strong); margin-bottom: .4rem; }
.m-legal-meta { color: var(--text-dim); font-size: .9rem; margin-bottom: 2rem; }
.m-legal h2 { font-size: 1.2rem; color: var(--text-strong); margin: 2rem 0 .6rem; }
.m-legal p, .m-legal li { color: var(--text); font-size: .97rem; }
.m-legal ul { margin: .5rem 0 .5rem 1.2rem; display: flex; flex-direction: column; gap: .4rem; }

/* Footer */
.m-footer { background: var(--text-strong); color: #cbd2df; padding: 3rem 0 2rem; margin-top: 0; }
.m-footer-inner { display: flex; justify-content: space-between; gap: 2.5rem; flex-wrap: wrap; }
.m-footer-brand { max-width: 300px; }
.m-footer-brand img { height: 26px; filter: brightness(0) invert(1); opacity: .95; margin-bottom: .8rem; }
.m-footer-brand p { color: #98a2b3; font-size: .9rem; }
.m-footer-cols { display: flex; gap: 3.5rem; flex-wrap: wrap; }
.m-footer-cols h4 { color: #fff; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .8rem; }
.m-footer-cols a { display: block; color: #cbd2df; font-size: .92rem; margin-bottom: .5rem; }
.m-footer-cols a:hover { color: #fff; }
.m-footer-legal { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2.5rem; padding-top: 1.5rem; }
.m-footer-legal p { color: #8a93a5; font-size: .78rem; line-height: 1.6; }

/* Marketing responsive */
@media (max-width: 860px) {
  .m-nav { position: absolute; top: 66px; left: 0; right: 0; background: var(--surface-100); border-bottom: 1px solid var(--border); flex-direction: column; align-items: stretch; gap: 0; padding: .5rem 1rem 1rem; display: none; box-shadow: var(--shadow-md); }
  .m-nav.open { display: flex; }
  .m-nav a { padding: .7rem .3rem; }
  .m-nav a.btn { margin-top: .5rem; text-align: center; }
  .m-nav-toggle { display: inline-flex; }
  .m-features, .m-steps, .m-price-teaser, .m-plans { grid-template-columns: 1fr; }
  .m-split { grid-template-columns: 1fr; gap: 1.5rem; }
  .m-footer-inner { flex-direction: column; gap: 2rem; }
}

/* ============================================================
   White-label report (standalone, print-friendly)
   ============================================================ */
.report-body { background: var(--surface-200); display: block; }
.report-actions { display: flex; gap: .6rem; justify-content: flex-end; max-width: 900px; margin: 0 auto; padding: 1rem 1.5rem 0; }
.report { max-width: 900px; margin: 1rem auto 3rem; background: #fff; border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-md); padding: 2.5rem 2.75rem; }
.report-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 2rem; border-bottom: 2px solid var(--surface-300); padding-bottom: 1.5rem; margin-bottom: 2rem; flex-wrap: wrap; }
.report-kicker { text-transform: uppercase; letter-spacing: .08em; font-size: .72rem; font-weight: 700; color: var(--accent-ink); margin-bottom: .35rem; }
.report-head h1 { font-size: 1.9rem; color: var(--text-strong); letter-spacing: -0.01em; }
.report-sub { color: var(--text-muted); margin-top: .2rem; }
.report-meta { text-align: right; font-size: .82rem; color: var(--text); }
.report-meta div { margin-bottom: .3rem; }
.report-meta span { display: block; text-transform: uppercase; letter-spacing: .05em; font-size: .64rem; color: var(--text-dim); font-weight: 700; }

.report-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 2.25rem; }
.report-card { background: var(--surface-200); border: 1px solid var(--border); border-radius: 12px; padding: 1.1rem 1rem; text-align: center; }
.report-card-value { font-size: 1.7rem; font-weight: 800; color: var(--text-strong); letter-spacing: -0.02em; line-height: 1.2; }
.report-card-label { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); font-weight: 600; margin-top: .25rem; }

.report-section { margin-bottom: 2rem; }
.report-section h2 { font-size: 1.05rem; color: var(--text-strong); margin-bottom: .75rem; }
.report-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.report-columns .report-section { margin-bottom: 1rem; }
.report-url { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .82rem; color: var(--text-muted); }
.report-empty { color: var(--text-muted); text-align: center; padding: 2rem 0; }
.report-footer { border-top: 1px solid var(--surface-300); margin-top: 1.5rem; padding-top: 1rem; }
.report-footer p { color: var(--text-dim); font-size: .78rem; }

@media (max-width: 720px) {
  .report { padding: 1.5rem 1.25rem; }
  .report-cards { grid-template-columns: repeat(2, 1fr); }
  .report-columns { grid-template-columns: 1fr; }
}

@media print {
  .report-body { background: #fff; }
  .report-actions { display: none !important; }
  .report { max-width: none; margin: 0; border: none; border-radius: 0; box-shadow: none; padding: 0; }
  .report-section, .report-card, .report-columns, table { break-inside: avoid; }
  .table { box-shadow: none; }
  a[href]::after { content: ""; }  /* don't append URLs when printing links */
}
