/* ============================================================
   BILLQIX — Option A "Clean & Calm" for public pages
   (blog, legal, auth). Loaded AFTER app.css + marketing.css and
   scoped to body.mkt-page, so the logged-in app is untouched.
   ============================================================ */

.mkt-page {
  /* re-map the old marketing palette to the new brand */
  --ink: #0F1222; --ink-2: #1A1E33; --ink-soft: #262A40;
  --paper: #ffffff; --paper-2: #F6F7FB; --paper-line: #E7E8EF;
  --ink-text: #0F1222; --ink-muted: #5B6075; --ink-faint: #9095A8;
  --on-ink: #ffffff; --on-ink-muted: #A7ABC2;
  --signal: #5B4CF5; --signal-2: #4A3CE0; --signal-soft: #EFEDFF;
  --gold: #B26A00; --gold-soft: #FFF4E0;
  --font-display: 'Geist', system-ui, -apple-system, sans-serif;
  --font-body: 'Geist', system-ui, -apple-system, sans-serif;
  /* app.css tokens used by forms/buttons on these pages */
  --primary: #5B4CF5; --primary-hover: #4A3CE0; --primary-soft: #EFEDFF;
  --bg: #F6F7FB; --surface: #fff; --surface-2: #F6F7FB; --border: #E7E8EF;
  --text: #0F1222; --text-muted: #5B6075; --text-faint: #9095A8;
  background: #fff;
  -webkit-font-smoothing: antialiased;
}
.mkt-page h1, .mkt-page h2, .mkt-page h3 { letter-spacing: -0.03em; }
.mkt-page em { color: var(--signal); }
html { scroll-padding-top: 90px; scrollbar-color: #C9CCD8 #fff; }
::-webkit-scrollbar-track { background: #fff; }
::-webkit-scrollbar-thumb { background: #C9CCD8; border-color: #fff; }
::-webkit-scrollbar-thumb:hover { background: #5B4CF5; }

/* ---------- nav ---------- */
.sn { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.86); backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s; font-family: var(--font-body); }
.sn.sn-scrolled { border-bottom-color: var(--paper-line); }
.sn-wrap { width: min(1180px, 100% - 40px); margin: 0 auto; height: 72px; display: flex; align-items: center; justify-content: space-between; }
.sn-logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 22px; letter-spacing: -.5px; color: var(--ink-text) !important; text-decoration: none; }
.sn-logo b { color: var(--signal); font-weight: 700; }
.sn-links { display: flex; gap: 32px; }
.sn-links a { color: var(--ink-muted); font-size: 15px; font-weight: 500; text-decoration: none; }
.sn-links a:hover { color: var(--ink-text); }
.sn-cta { display: flex; gap: 10px; align-items: center; }
.sn-btn { display: inline-flex; align-items: center; justify-content: center; padding: 11px 18px; border-radius: 10px; font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: background .2s, transform .2s; white-space: nowrap; }
.sn-btn:hover { transform: translateY(-1px); }
.sn-btn-o { border-color: var(--paper-line); background: #fff; color: var(--ink-text) !important; }
.sn-btn-o:hover { background: var(--paper-2); }
.sn-btn-p { background: var(--ink); color: #fff !important; }
.sn-btn-p:hover { background: #262A40; }
.sn-btn-v { background: var(--signal); color: #fff !important; }
.sn-burger { display: none; width: 42px; height: 42px; border: 1px solid var(--paper-line); border-radius: 10px; background: #fff; color: var(--ink-text); cursor: pointer; place-items: center; }
.sn-menu { display: none; border-top: 1px solid var(--paper-line); background: #fff; padding: 8px 20px 20px; }
.sn-menu.open { display: block; }
.sn-menu a { display: block; padding: 14px 4px; border-bottom: 1px solid var(--paper-line); font-weight: 500; color: var(--ink-text); text-decoration: none; }
.sn-menu .sn-btn { width: 100%; margin-top: 14px; border: 0; }

/* ---------- footer ---------- */
.sf { border-top: 1px solid var(--paper-line); margin-top: 40px; font-family: var(--font-body); }
.sf-wrap { width: min(1180px, 100% - 40px); margin: 0 auto; }
.sf-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; padding: 60px 0 40px; }
.sf-grid h5 { font-size: 14px; font-weight: 600; margin: 0 0 10px; color: var(--ink-text); }
.sf-grid a:not(.sn-logo) { display: block; color: var(--ink-muted); font-size: 14px; line-height: 2.1; text-decoration: none; }
.sf-grid a:not(.sn-logo):hover { color: var(--ink-text); }
.sf-grid p { color: var(--ink-muted); font-size: 14px; line-height: 1.6; max-width: 300px; margin: 12px 0 0; }
.sf-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; padding: 22px 0 40px; border-top: 1px solid var(--paper-line); color: var(--ink-muted); font-size: 13px; }

/* ---------- shared bits ---------- */
.mkt-page .mkt-eyebrow { color: var(--signal); font-family: var(--font-body); font-weight: 600; font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.mkt-page .mkt-eyebrow::before { content: none; }
.mkt-page .mkt-btn-secondary { border: 1px solid var(--paper-line) !important; color: var(--ink-text) !important; background: #fff; border-radius: 10px; }
.mkt-page .mkt-btn-secondary:hover { background: var(--paper-2); }

/* ---------- blog index ---------- */
.mkt-page .blog-hero { max-width: 100%; background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(91,76,245,.10), transparent 70%), #fff; padding: 80px 20px 50px; text-align: center; }
.mkt-page .blog-hero h1 { color: var(--ink-text); font-family: var(--font-display); font-size: clamp(34px, 5vw, 54px); font-weight: 600; line-height: 1.08; letter-spacing: -.04em; margin: 14px auto 16px; max-width: 760px; }
.mkt-page .blog-hero p.lead { color: var(--ink-muted); font-size: 18px; max-width: 600px; margin: 0 auto; }
.mkt-page .blog-layout { max-width: 1180px; padding: 30px 20px 100px; gap: 48px; grid-template-columns: 270px 1fr; }
.mkt-page .blog-sidebar { top: 96px; }
.mkt-page .blog-search input { border-radius: 10px; padding: 12px 14px 12px 40px; font-size: 14px; border-color: var(--paper-line); }
.mkt-page .blog-side-card { background: #fff; border: 1px solid var(--paper-line); border-radius: 16px; padding: 20px; box-shadow: none; }
.mkt-page .blog-side-card h4 { font-size: 12px; letter-spacing: .06em; color: var(--ink-muted); }
.mkt-page .blog-cat-link { font-size: 14px; border-radius: 8px; }
.mkt-page .blog-cat-link.active { background: var(--signal-soft); color: var(--signal); }
.mkt-page .blog-cat-link.active .blog-cat-count { background: var(--signal); color: #fff; }
.mkt-page .blog-newsletter { background: var(--paper-2); border-color: transparent; }
.mkt-page .blog-newsletter input[type="email"] { background: #fff; border-radius: 10px; padding: 11px 12px; }
.mkt-page .blog-newsletter button { background: var(--signal); color: #fff; border-radius: 10px; width: 42px; }
.mkt-page .blog-main-toolbar { font-size: 14px; }
.mkt-page .blog-main-toolbar select { width: auto; border-radius: 10px; padding: 8px 12px; }
.mkt-page .blog-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.mkt-page .blog-card { border: 1px solid var(--paper-line); border-radius: 18px; box-shadow: none; background: #fff; }
.mkt-page .blog-card:hover { transform: translateY(-4px); box-shadow: 0 20px 40px rgba(30,30,80,.08); }
.mkt-page .blog-card img, .mkt-page .blog-card .blog-card-image-fallback { height: 180px; }
.mkt-page .blog-card .blog-card-image-fallback { background: linear-gradient(135deg, #EFEDFF, #E4F7F0); }
.mkt-page .blog-card .blog-card-body { padding: 22px; }
.mkt-page .blog-card-badge { background: var(--signal-soft); color: var(--signal); font-weight: 600; border-radius: 99px; }
.mkt-page .blog-card h3 { font-family: var(--font-display); font-weight: 600; font-size: 19px; line-height: 1.35; letter-spacing: -.02em; margin-top: 10px; }
.mkt-page .blog-card p { font-size: 14px; }
.mkt-page .blog-card-meta { color: var(--ink-faint); font-size: 13px; }
.mkt-page .blog-empty { border: 1px dashed var(--paper-line); border-radius: 18px; padding: 60px 20px; text-align: center; color: var(--ink-muted); }

/* ---------- blog post ---------- */
.mkt-page .blog-post-layout { max-width: 1180px; padding: 60px 20px 90px; grid-template-columns: minmax(0, 1fr) 300px; gap: 64px; }
.mkt-page .blog-post-breadcrumb { font-size: 14px; color: var(--ink-faint); }
.mkt-page .blog-post-breadcrumb a { color: var(--ink-muted); font-weight: 500; }
.mkt-page .blog-post-breadcrumb a:hover { color: var(--signal); }
.mkt-page .blog-post-title { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.5vw, 48px); line-height: 1.1; letter-spacing: -.04em; margin-top: 14px; }
.mkt-page .blog-post-main .blog-card-meta { border: 0; padding: 0; }
.mkt-page .blog-post-cover { border-radius: 18px; box-shadow: none; border: 1px solid var(--paper-line); }
.mkt-page .blog-post-content { font-size: 18px; line-height: 1.8; color: #2A2E42; max-width: 720px; }
.mkt-page .blog-post-content h2 { font-family: var(--font-display); font-size: 28px; font-weight: 600; letter-spacing: -.03em; margin: 44px 0 12px; border: 0; padding: 0; }
.mkt-page .blog-post-content h2::before { content: none; }
.mkt-page .blog-post-content h3 { font-size: 21px; font-weight: 600; margin-top: 32px; }
.mkt-page .blog-post-content a { color: var(--signal); text-decoration-color: rgba(91,76,245,.35); }
.mkt-page .blog-post-content blockquote { border-left: 3px solid var(--signal); background: var(--paper-2); border-radius: 0 12px 12px 0; padding: 16px 22px; font-style: normal; color: var(--ink-text); }
.mkt-page .blog-post-content ul { list-style: disc; padding-left: 24px; }
.mkt-page .blog-post-content ol { list-style: decimal; padding-left: 24px; }
.mkt-page .blog-post-content li { padding-left: 4px; margin: 6px 0; }
.mkt-page .blog-post-content li::marker { color: var(--signal); }
.mkt-page .blog-tag { background: var(--paper-2); border: 1px solid var(--paper-line); color: var(--ink-muted); border-radius: 99px; }
.mkt-page .blog-post-main > p:last-child a { border: 1px solid var(--paper-line); border-radius: 10px; color: var(--ink-text); }
.mkt-page .blog-post-main > p:last-child a:hover { border-color: var(--signal); color: var(--signal); }
.mkt-page .blog-recent-link span { font-weight: 500; }
.mkt-page .blog-recent-link:hover span { color: var(--signal); }

/* ---------- legal pages ---------- */
.legal-hero { background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(91,76,245,.09), transparent 70%), #fff; border-bottom: 1px solid var(--paper-line); padding: 70px 20px 46px; text-align: center; }
.legal-hero h1 { font-family: var(--font-display); font-size: clamp(34px, 5vw, 52px); font-weight: 600; letter-spacing: -.04em; margin: 12px 0 10px; }
.legal-hero p { color: var(--ink-muted); font-size: 16px; }
.legal-wrap { width: min(1080px, 100% - 40px); margin: 0 auto; display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 60px; padding: 50px 0 80px; align-items: start; }
.legal-toc { position: sticky; top: 100px; display: flex; flex-direction: column; gap: 2px; }
.legal-toc h4 { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-muted); margin: 0 0 10px; font-weight: 600; }
.legal-toc a { color: var(--ink-muted); font-size: 14px; padding: 7px 12px; border-left: 2px solid var(--paper-line); text-decoration: none; transition: color .2s, border-color .2s; }
.legal-toc a:hover { color: var(--ink-text); }
.legal-toc a.on { color: var(--signal); border-left-color: var(--signal); font-weight: 500; }
.mkt-page .legal-wrap .mkt-content { padding: 0; max-width: 720px; margin: 0; font-size: 16px; line-height: 1.8; color: #2A2E42; }
.mkt-page .legal-wrap .mkt-content h1 { display: none; }
.mkt-page .legal-wrap .mkt-content .mkt-updated { background: var(--gold-soft); color: var(--gold); border-radius: 12px; padding: 12px 16px; font-size: 14px; margin-bottom: 30px; }
.mkt-page .legal-wrap .mkt-content h2 { font-family: var(--font-display); font-size: 22px; font-weight: 600; margin: 40px 0 10px; padding-top: 30px; border-top: 1px solid var(--paper-line); }
.mkt-page .legal-wrap .mkt-content h2:first-of-type { border-top: 0; padding-top: 0; margin-top: 10px; }
.mkt-page .mkt-content { padding-top: 60px; }

/* ---------- auth pages ---------- */
.mkt-page .auth-shell { min-height: 0; padding: 0; background: #fff; display: block; }
.auth-split { display: grid; grid-template-columns: 1fr 1fr; min-height: min(calc(100vh - 72px), 880px); }
.auth-form-col { display: flex; align-items: center; justify-content: center; padding: 60px 20px; }
.mkt-page .auth-card { width: 100%; max-width: 420px; background: #fff; border: 0; box-shadow: none; padding: 0; border-radius: 0; }
.mkt-page .auth-card h2 { font-family: var(--font-display); font-weight: 600; font-size: 32px; letter-spacing: -.035em; }
.mkt-page .auth-card .text-muted { color: var(--ink-muted); font-size: 15px; }
.mkt-page .auth-card label { font-size: 14px; font-weight: 500; color: var(--ink-text); }
.mkt-page .auth-card input[type=text], .mkt-page .auth-card input[type=email], .mkt-page .auth-card input[type=password], .mkt-page .auth-card select {
  padding: 12px 14px; font-size: 15px; border-radius: 10px; border-color: var(--paper-line); background: #fff;
}
.mkt-page .auth-card input:focus, .mkt-page .auth-card select:focus { border-color: var(--signal); box-shadow: 0 0 0 4px var(--signal-soft); }
.mkt-page .auth-card input[type=checkbox] { accent-color: var(--signal); }
.mkt-page .auth-card button[type="submit"], .mkt-page .auth-card .btn-primary {
  background: var(--signal); border-color: var(--signal); color: #fff; padding: 13px 18px; font-size: 15px; font-weight: 600; border-radius: 10px; box-shadow: 0 6px 16px rgba(91,76,245,.25);
}
.mkt-page .auth-card button[type="submit"]:hover, .mkt-page .auth-card .btn-primary:hover { background: var(--signal-2); border-color: var(--signal-2); }
.mkt-page .auth-card a { color: var(--signal); font-weight: 500; }
.mkt-page .auth-logo { font-family: var(--font-display); color: var(--ink-text); }
.auth-side { background: linear-gradient(160deg, #EFEDFF 0%, #F6F7FB 60%, #E4F7F0 100%); display: flex; align-items: center; justify-content: center; padding: 60px; border-left: 1px solid var(--paper-line); }
.auth-side-inner { max-width: 440px; }
.auth-side-k { font-size: 13px; font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--signal); }
.auth-side h3 { font-family: var(--font-display); font-size: 34px; font-weight: 600; line-height: 1.12; letter-spacing: -.035em; margin: 12px 0 22px; color: var(--ink-text); }
.auth-side ul { list-style: none; padding: 0; margin: 0 0 30px; }
.auth-side li { padding: 9px 0; font-size: 15px; color: var(--ink-text); display: flex; gap: 10px; }
.auth-side li::before { content: "✓"; color: var(--signal); font-weight: 700; }
.auth-mini { background: #fff; border-radius: 14px; padding: 20px 22px; box-shadow: 0 20px 50px rgba(30,30,80,.12); }
.auth-mini-h { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 15px; }
.auth-tag { background: #E4F7F0; color: #12A37A; font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 99px; }
.auth-mini-r { display: flex; justify-content: space-between; font-size: 13px; color: var(--ink-muted); padding: 6px 0; border-bottom: 1px solid var(--paper-line); }
.auth-mini-t { display: flex; justify-content: space-between; font-weight: 600; font-size: 16px; padding-top: 10px; }
.mkt-auth .sf { margin-top: 0; }

/* ---------- responsive ---------- */
@media (max-width: 960px) {
  .sn-links, .sn-cta .sn-btn-o { display: none; }
  .sn-burger { display: grid; }
  .mkt-page .blog-layout { grid-template-columns: 1fr; }
  .mkt-page .blog-sidebar { position: static; order: 2; }
  .mkt-page .blog-post-layout { grid-template-columns: 1fr; }
  .legal-wrap { grid-template-columns: 1fr; gap: 20px; }
  .legal-toc { position: static; border: 1px solid var(--paper-line); border-radius: 14px; padding: 16px; }
  .auth-split { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .sf-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) {
  .sn-cta .sn-btn-p { display: none; }
  .legal-toc { display: none; }
  .mkt-page .blog-hero { padding: 50px 20px 30px; }
  .mkt-page .blog-post-content { font-size: 17px; }
}

/* tl1: nav "New" badge + free-tools links */
.sn-new { display:inline-block; margin-left:4px; padding:2px 7px; border-radius:99px; background:#EFEDFF; color:#5B4CF5; font-size:11px; font-weight:600; letter-spacing:.2px; vertical-align:2px; }
.sn-links { gap:28px; }
@media (max-width: 1100px) and (min-width: 961px) { .sn-links { gap:20px; } .sn-links a { font-size:14.5px; } }
.sf-grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
@media (max-width: 960px) { .sf-grid { grid-template-columns: 1fr 1fr; } }

/* bg1: blog guide tables + in-article call to action */
.blog-post-main { min-width:0; }
.blog-post-content .blog-table { overflow-x:auto; -webkit-overflow-scrolling:touch; margin:20px 0; border:1px solid var(--line, #E4E6EF); border-radius:12px; }
.blog-post-content .blog-table table { width:100%; border-collapse:collapse; font-size:15px; line-height:1.5; min-width:420px; }
.blog-post-content .blog-table th, .blog-post-content .blog-table td { padding:10px 14px; text-align:left; border-bottom:1px solid var(--line, #E4E6EF); vertical-align:top; }
.blog-post-content .blog-table thead th { background:var(--paper-2, #F5F6FA); font-weight:600; white-space:nowrap; }
.blog-post-content .blog-table tbody tr:last-child td { border-bottom:0; }
.blog-post-content .blog-cta { margin:32px 0; padding:22px 24px; border-radius:16px; background:var(--paper-2, #F5F6FA); border:1px solid var(--line, #E4E6EF); display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.blog-post-content .blog-cta p { margin:0; flex:1 1 260px; font-weight:500; font-size:16.5px; line-height:1.5; }
.mkt-page .blog-post-content a.blog-cta-btn, .blog-post-content a.blog-cta-btn { display:inline-flex; align-items:center; padding:11px 18px; border-radius:10px; background:var(--signal, #5B4CF5); color:#fff; font-weight:600; font-size:15px; text-decoration:none; white-space:nowrap; }
.blog-post-content a.blog-cta-btn:hover { filter:brightness(1.08); }
@media (max-width: 560px) { .blog-post-content .blog-cta { padding:18px; } .blog-post-content a.blog-cta-btn { width:100%; justify-content:center; white-space:normal; text-align:center; } }
