:root {
  /* "Signal" — a clean cool-neutral base with a confident ink-blue accent. Built to read as
     modern, general-purpose business software rather than a heritage financial-house palette. */
  --bg: #F8FAFC;
  --bg-elevated: #FFFFFF;
  --bg-sunken: #EEF2F6;
  --border: #DCE3EB;
  --text: #10182B;
  --text-muted: #5E6B82;
  --accent: #2451C4;
  --accent-strong: #17357E;
  --accent-soft: #E7EEFC;
  --green: #027A48;
  --green-soft: #E7F8EF;
  --gold: #B54708;
  --gold-soft: #FEF1E4;
  --on-accent: #FFFFFF;
  --shadow: 0 1px 2px rgba(16,24,43,0.05), 0 12px 32px -16px rgba(16,24,43,0.18);

  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono: 'IBM Plex Mono', 'Courier New', monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1220;
    --bg-elevated: #121B2E;
    --bg-sunken: #080D18;
    --border: #263A55;
    --text: #E7EAF1;
    --text-muted: #8D98AF;
    --accent: #7096F8;
    --accent-strong: #A9C2FB;
    --accent-soft: #182543;
    --green: #3FCF8E;
    --green-soft: #0E2A20;
    --gold: #F0A85A;
    --gold-soft: #2E2011;
    --on-accent: #0B1220;
    --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -16px rgba(0,0,0,0.6);
  }
}
:root[data-theme="dark"] {
  --bg: #0B1220;
  --bg-elevated: #121B2E;
  --bg-sunken: #080D18;
  --border: #263A55;
  --text: #E7EAF1;
  --text-muted: #8D98AF;
  --accent: #7096F8;
  --accent-strong: #A9C2FB;
  --accent-soft: #182543;
  --green: #3FCF8E;
  --green-soft: #0E2A20;
  --gold: #F0A85A;
  --gold-soft: #2E2011;
  --on-accent: #0B1220;
  --shadow: 0 1px 2px rgba(0,0,0,0.3), 0 12px 32px -16px rgba(0,0,0,0.6);
}

* { box-sizing: border-box; }
html { color-scheme: light dark; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 600; text-wrap: balance; margin: 0; color: var(--text); }
p { margin: 0; }
a { color: inherit; }
::selection { background: var(--accent); color: var(--on-accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.tnum { font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 28px; }
section { padding: 104px 0; }
@media (max-width: 720px) { section { padding: 64px 0; } .wrap { padding: 0 20px; } }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 200; background: var(--accent); color: var(--on-accent);
  padding: 12px 18px; border-radius: 0 0 8px 0; font-weight: 700; font-size: 14px; text-decoration: none;
}
.skip-link:focus { left: 0; }

/* ---------- trust seal ---------- */
.trust-seal-strip { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 36px auto 0; flex-wrap: wrap; text-align: left; }
.trust-seal-strip .seal-text strong { display: block; font-size: 14.5px; color: var(--text); margin-bottom: 3px; }
.trust-seal-strip .seal-text span { display: block; font-size: 12.5px; color: var(--text-muted); max-width: 34ch; }
.trust-seal-mini { display: inline-flex; align-items: center; gap: 10px; }
.trust-seal-mini span { font-size: 12px; color: var(--text-muted); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12.5px;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--accent-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.brand-mark { width: 30px; height: 30px; flex: none; }
.brand-text { display: inline-flex; align-items: baseline; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 22px; letter-spacing: -0.01em; color: var(--text); }
.brand-text span { font-family: var(--font-mono); font-size: 11px; font-weight: 500; color: var(--text-muted); letter-spacing: 0.06em; text-transform: uppercase; }
.nav-links { display: flex; gap: 32px; font-size: 14.5px; font-weight: 500; }
.nav-links a { text-decoration: none; color: var(--text-muted); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta-group { display: flex; align-items: center; gap: 18px; }
@media (max-width: 780px) { .nav-links { display: none; } }

.btn {
  font-family: var(--font-body); font-weight: 700; font-size: 14.5px; border-radius: 8px;
  padding: 12px 20px; border: 1px solid transparent; cursor: pointer; display: inline-flex;
  align-items: center; gap: 8px; text-decoration: none; transition: transform .12s ease, background .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }
.btn-primary { background: var(--accent); color: var(--on-accent); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--text-muted); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 15px 26px; font-size: 15.5px; border-radius: 10px; }

/* ---------- Hero ---------- */
.hero { padding-top: 76px; padding-bottom: 96px; }
.hero .wrap { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 64px; align-items: center; }
@media (max-width: 940px) { .hero .wrap { grid-template-columns: 1fr; gap: 48px; } }
.hero h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.06; letter-spacing: -0.015em; margin: 22px 0 22px; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero-sub { font-size: 18px; color: var(--text-muted); max-width: 46ch; margin-bottom: 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 28px; }
.hero-meta { display: flex; gap: 22px; flex-wrap: wrap; font-size: 13px; color: var(--text-muted); font-family: var(--font-mono); padding: 0; margin: 0; }
.hero-meta li { list-style: none; display: flex; gap: 7px; align-items: center; }
.hero-meta svg { flex: none; }

.demo-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); overflow: hidden; }
.demo-head { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.demo-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--border); }
.demo-body { padding: 22px; display: flex; flex-direction: column; gap: 14px; min-height: 260px; }
.bubble { max-width: 88%; padding: 12px 15px; border-radius: 13px; font-size: 14.5px; line-height: 1.5; }
.bubble-user { align-self: flex-end; background: var(--bg-sunken); border: 1px solid var(--border); border-bottom-right-radius: 3px; }
.bubble-ai { align-self: flex-start; background: var(--accent-soft); border-bottom-left-radius: 3px; }
.bubble-ai .who { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--accent-strong); display: block; margin-bottom: 5px; font-weight: 600; }
.caret { display: inline-block; width: 2px; height: 13px; background: var(--accent-strong); vertical-align: -2px; animation: blink 1s step-end infinite; }
@keyframes blink { 50% { opacity: 0; } }
.demo-foot { border-top: 1px solid var(--border); padding: 12px 18px; display: flex; gap: 10px; align-items: center; }
.demo-input { flex: 1; background: var(--bg-sunken); border-radius: 8px; padding: 9px 12px; font-size: 13px; color: var(--text-muted); font-family: var(--font-body); border: none; }

.trust { padding: 26px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 28px 40px; justify-content: center; }
.trust-item { display: flex; align-items: center; gap: 9px; font-size: 13.5px; color: var(--text-muted); font-weight: 600; }
.trust-item svg { flex: none; color: var(--green); }

.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 14px; letter-spacing: -0.01em; }
.section-head p { color: var(--text-muted); font-size: 16.5px; margin-top: 14px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: 14px; overflow: hidden; }
@media (max-width: 820px) { .problem-grid { grid-template-columns: 1fr; } }
.problem-cell { background: var(--bg-elevated); padding: 32px 28px; }
.problem-cell .tag { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-strong); text-transform: uppercase; letter-spacing: .07em; font-weight: 600; }
.problem-cell h3 { font-size: 19px; margin: 12px 0 10px; }
.problem-cell p { color: var(--text-muted); font-size: 14.5px; }

.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 900px) { .feat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .feat-grid { grid-template-columns: 1fr; } }
.feat-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.feat-icon { width: 38px; height: 38px; border-radius: 9px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.feat-card h3 { font-size: 16.5px; font-family: var(--font-body); font-weight: 700; }
.feat-card p { font-size: 14.5px; color: var(--text-muted); }

.receipt-wrap { display: grid; grid-template-columns: 0.95fr 1.05fr; gap: 56px; align-items: center; }
@media (max-width: 900px) { .receipt-wrap { grid-template-columns: 1fr; } }
.receipt { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 4px; box-shadow: var(--shadow); font-family: var(--font-mono); font-size: 13.5px; padding: 30px 26px; position: relative; max-width: 380px; }
.receipt h4 { font-family: var(--font-mono); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; text-align: center; margin-bottom: 4px; }
.receipt .sub { text-align: center; color: var(--text-muted); font-size: 11.5px; margin-bottom: 18px; }
.r-line { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--border); color: var(--text-muted); }
.r-line span:last-child { color: var(--text); }
.r-total { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 6px; border-top: 1.5px solid var(--text); font-weight: 600; font-size: 15px; }
.r-save { margin-top: 16px; background: var(--green-soft); color: var(--green); text-align: center; padding: 10px; border-radius: 4px; font-weight: 600; font-size: 12.5px; }
.r-fine { margin-top: 14px; font-size: 10.5px; color: var(--text-muted); text-align: center; line-height: 1.5; }
.receipt-copy h2 { margin-bottom: 16px; }
.receipt-copy p { color: var(--text-muted); margin-bottom: 14px; font-size: 16px; }

.price-toggle { display: inline-flex; background: var(--bg-sunken); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 2px; margin: 0 auto 8px; }
.price-toggle button { border: none; background: transparent; padding: 9px 18px; border-radius: 999px; font-family: var(--font-body); font-weight: 700; font-size: 13.5px; color: var(--text-muted); cursor: pointer; }
.price-toggle button.active { background: var(--bg-elevated); color: var(--text); box-shadow: var(--shadow); }
.price-save-note { text-align: center; font-size: 12.5px; color: var(--green); font-weight: 600; font-family: var(--font-mono); margin-top: 10px; }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 44px; align-items: stretch; }
@media (max-width: 900px) { .plans { grid-template-columns: 1fr; max-width: 420px; margin-left: auto; margin-right: auto; } }
.plan { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px; padding: 30px 26px; display: flex; flex-direction: column; position: relative; }
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); }
.plan-ribbon { position: absolute; top: -13px; left: 26px; background: var(--accent); color: var(--on-accent); font-family: var(--font-mono); font-size: 11px; font-weight: 600; letter-spacing: .04em; padding: 5px 12px; border-radius: 999px; text-transform: uppercase; }
.plan-name { font-family: var(--font-body); font-weight: 800; font-size: 15px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); }
.plan-price { display: flex; align-items: baseline; gap: 6px; margin: 16px 0 4px; font-family: var(--font-mono); }
.plan-price .amt { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; }
.plan-price .per { font-size: 13px; color: var(--text-muted); }
.plan-billed { font-size: 12.5px; color: var(--text-muted); margin-bottom: 22px; font-family: var(--font-mono); min-height: 16px; }
.plan-desc { font-size: 14px; color: var(--text-muted); margin-bottom: 22px; }
.plan-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.plan-list li { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.plan-list svg { flex: none; margin-top: 3px; color: var(--green); }

.uc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 820px) { .uc-grid { grid-template-columns: 1fr; } }
.uc-card { border: 1px solid var(--border); border-radius: 12px; padding: 22px; background: var(--bg-elevated); }
.uc-card .num { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.uc-card h4 { font-size: 15.5px; margin: 8px 0 8px; font-family: var(--font-body); font-weight: 700; }
.uc-card p { font-size: 13.5px; color: var(--text-muted); }
.uc-card .uc-best { font-family: var(--font-mono); font-size: 11.5px; color: var(--accent-strong); margin-top: 10px; font-weight: 600; }

.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 10px; }
details.faq { border: 1px solid var(--border); border-radius: 10px; background: var(--bg-elevated); padding: 4px 22px; }
details.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 15.5px; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .plus { font-family: var(--font-mono); font-size: 20px; color: var(--accent); flex: none; transition: transform .15s; }
details.faq[open] summary .plus { transform: rotate(45deg); }
details.faq p { color: var(--text-muted); font-size: 14.5px; padding-bottom: 20px; max-width: 62ch; }

.final-cta { background: var(--bg-sunken); border-radius: 22px; padding: 64px 48px; text-align: center; }
@media (max-width: 620px) { .final-cta { padding: 44px 26px; } }
.final-cta h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.final-cta p { color: var(--text-muted); font-size: 16.5px; margin-bottom: 30px; }
.final-cta .hero-ctas { justify-content: center; margin-bottom: 0; }

footer { border-top: 1px solid var(--border); padding: 52px 0 40px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; margin-bottom: 40px; }
@media (max-width: 780px) { .foot-grid { grid-template-columns: repeat(2, 1fr); } }
.foot-col h5 { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); margin-bottom: 14px; }
.foot-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.foot-col a { font-size: 14px; text-decoration: none; color: var(--text-muted); }
.foot-col a:hover { color: var(--text); }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-top: 28px; border-top: 1px solid var(--border); font-size: 12.5px; color: var(--text-muted); }
.foot-disclaimer { max-width: 640px; }

.modal-overlay { position: fixed; inset: 0; background: rgba(10,13,22,0.6); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 100; padding: 20px; }
.modal { background: var(--bg-elevated); border-radius: 16px; max-width: 440px; width: 100%; padding: 30px; border: 1px solid var(--border); box-shadow: var(--shadow); max-height: 90vh; overflow-y: auto; }
.modal-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 4px; }
.modal-close { background: none; border: none; cursor: pointer; color: var(--text-muted); font-size: 20px; line-height: 1; padding: 4px; }
.modal-plan { font-family: var(--font-mono); font-size: 12.5px; color: var(--accent-strong); background: var(--accent-soft); display: inline-block; padding: 5px 11px; border-radius: 999px; margin-bottom: 16px; font-weight: 600; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 13px; font-weight: 700; }
.field input { font-family: var(--font-body); font-size: 14.5px; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.field input:focus { border-color: var(--accent); }
.modal-note { font-size: 12px; color: var(--text-muted); margin-top: 14px; line-height: 1.5; }
.modal-error { font-size: 13px; color: var(--accent-strong); background: var(--accent-soft); padding: 10px 12px; border-radius: 8px; margin-bottom: 14px; }
.modal-success h3 { font-size: 19px; margin-bottom: 10px; }
.modal-success p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 6px; }

/* ---------- hero watermark ---------- */
.hero { position: relative; overflow: hidden; }
.hero-petal { position: absolute; top: -40px; right: -60px; width: 420px; height: 420px; color: var(--accent); opacity: 0.09; pointer-events: none; z-index: 0; }
.hero .wrap { position: relative; z-index: 1; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .hero-petal { opacity: 0.14; } }
:root[data-theme="dark"] .hero-petal { opacity: 0.14; }

/* ---------- guarantee badge ---------- */
.guarantee-row { display: flex; align-items: center; gap: 10px; margin-top: 22px; font-size: 13px; color: var(--text-muted); }
.guarantee-badge { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--gold-soft); color: var(--gold); display: flex; align-items: center; justify-content: center; }

/* ---------- comparison table ---------- */
.compare-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: 14px; margin-top: 20px; }
table.compare-table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14px; background: var(--bg-elevated); }
.compare-table caption { text-align: left; padding: 18px 20px 0; font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); }
.compare-table th, .compare-table td { padding: 14px 18px; border-bottom: 1px solid var(--border); text-align: left; vertical-align: middle; }
.compare-table thead th { font-family: var(--font-body); font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .03em; color: var(--text-muted); }
.compare-table thead th.fundi-col { color: var(--accent-strong); }
.compare-table td.fundi-col, .compare-table th.fundi-col { background: var(--accent-soft); }
.compare-table tbody th { font-weight: 600; font-size: 13.5px; }
.compare-table .yes { color: var(--green); font-weight: 700; }
.compare-table .no { color: var(--text-muted); }
.compare-table tbody tr:last-child td, .compare-table tbody tr:last-child th { border-bottom: none; }

/* ---------- reviews ---------- */
.reviews-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 14px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.review-stars { color: var(--gold); font-size: 15px; letter-spacing: 2px; }
.review-quote { font-size: 14.5px; color: var(--text); line-height: 1.6; flex: 1; }
.review-biz { font-size: 12.5px; font-weight: 700; color: var(--text-muted); font-family: var(--font-mono); text-transform: uppercase; letter-spacing: .04em; }
.reviews-empty { border: 1px dashed var(--border); border-radius: 14px; padding: 48px 32px; text-align: center; }
.reviews-empty h3 { font-size: 19px; margin-bottom: 10px; }
.reviews-empty p { color: var(--text-muted); font-size: 14.5px; max-width: 46ch; margin: 0 auto 20px; }
.reviews-summary { display: flex; align-items: baseline; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.reviews-summary .avg { font-family: var(--font-mono); font-size: 30px; font-weight: 600; }
.reviews-summary .stars { color: var(--gold); font-size: 18px; letter-spacing: 2px; }
.reviews-summary .count { color: var(--text-muted); font-size: 13.5px; }

/* ---------- security / founder trust block ---------- */
.trust-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
@media (max-width: 900px) { .trust-split { grid-template-columns: 1fr; gap: 40px; } }
.security-list { display: flex; flex-direction: column; gap: 18px; margin-top: 22px; }
.security-item { display: flex; gap: 14px; align-items: flex-start; }
.security-item .ic { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--green-soft); color: var(--green); display: flex; align-items: center; justify-content: center; }
.security-item h4 { font-size: 14.5px; font-family: var(--font-body); font-weight: 700; margin-bottom: 3px; }
.security-item p { font-size: 13.5px; color: var(--text-muted); }
.founder-card { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px; padding: 30px; }
.founder-card p { color: var(--text-muted); font-size: 15px; line-height: 1.7; margin-bottom: 16px; }
.founder-card .sign { font-family: var(--font-display); font-size: 19px; color: var(--text); }
.founder-card .role { font-size: 12.5px; color: var(--text-muted); font-family: var(--font-mono); margin-top: 3px; }

/* ---------- sticky mobile cta ---------- */
.sticky-cta { display: none; }
@media (max-width: 720px) {
  .sticky-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 60;
    background: var(--bg-elevated); border-top: 1px solid var(--border); padding: 12px 16px;
    box-shadow: 0 -8px 24px -12px rgba(0,0,0,0.25); gap: 10px; align-items: center;
  }
  .sticky-cta span { font-size: 12.5px; color: var(--text-muted); flex: 1; }
  body:has(.sticky-cta:not([hidden])) { padding-bottom: 68px; }
}
/* the [hidden] attribute must win over the display:flex above (same specificity, so without
   this the media query's flex would silently beat JS setting .hidden on a signed-in visit) */
.sticky-cta[hidden] { display: none !important; }

/* ---------- auth pages ---------- */
.auth-shell { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px; box-shadow: var(--shadow); padding: 36px 32px; }
.auth-card h1 { font-size: 26px; margin-bottom: 8px; }
.auth-card .sub { color: var(--text-muted); font-size: 14.5px; margin-bottom: 26px; }
.auth-switch { text-align: center; font-size: 14px; color: var(--text-muted); margin-top: 20px; }
.auth-switch a { color: var(--accent-strong); font-weight: 700; text-decoration: none; }

/* ---------- dashboard ---------- */
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: 250px; flex: none; border-right: 1px solid var(--border); padding: 24px 18px; display: flex; flex-direction: column; gap: 22px; background: var(--bg-elevated); }
.app-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.app-topbar { border-bottom: 1px solid var(--border); padding: 16px 28px; display: flex; align-items: center; gap: 14px; justify-content: space-between; }
.app-topbar .topbar-left { display: flex; align-items: center; gap: 14px; min-width: 0; }

.menu-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: 8px; width: 38px; height: 38px; cursor: pointer; color: var(--text); align-items: center; justify-content: center; flex: none; }
.app-shell-backdrop { display: none; position: fixed; inset: 0; background: rgba(8,11,20,0.55); z-index: 65; }
@media (max-width: 880px) {
  .menu-toggle { display: inline-flex; }
  .app-sidebar {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 70; width: 270px; max-width: 82vw;
    transform: translateX(-100%); transition: transform .22s ease; box-shadow: var(--shadow);
  }
  .app-sidebar.open { transform: translateX(0); }
  .app-shell-backdrop.open { display: block; }
  .app-topbar { padding: 14px 18px; }
  .hub-content { padding: 24px 18px; }
}
.plan-pill { font-family: var(--font-mono); font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: 999px; background: var(--green-soft); color: var(--green); text-transform: capitalize; }
.plan-pill.trialing { background: var(--gold-soft); color: var(--gold); }
.plan-pill.past_due, .plan-pill.canceled { background: var(--accent-soft); color: var(--accent-strong); }
.chat-scroll { flex: 1; overflow-y: auto; padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.chat-composer { border-top: 1px solid var(--border); padding: 18px 28px; display: flex; gap: 12px; }
.chat-composer textarea { flex: 1; resize: none; font-family: var(--font-body); font-size: 14.5px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--bg); color: var(--text); min-height: 48px; max-height: 160px; }
.side-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); text-decoration: none; }
.side-link:hover, .side-link.active { background: var(--bg-sunken); color: var(--text); }
.upgrade-box { border: 1px solid var(--border); border-radius: 12px; padding: 16px; background: var(--bg-sunken); }
.upgrade-box p { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.banner { padding: 12px 28px; font-size: 13.5px; font-weight: 600; text-align: center; }
.banner.success { background: var(--green-soft); color: var(--green); }
.banner.error { background: var(--accent-soft); color: var(--accent-strong); }

/* ---------- account hub: shared page content area ---------- */
.hub-content { flex: 1; overflow-y: auto; padding: 36px 40px; }
.hub-content > .wrap-narrow { max-width: 720px; }
.hub-head { margin-bottom: 28px; }
.hub-head h1 { font-size: 24px; margin-bottom: 6px; }
.hub-head p { color: var(--text-muted); font-size: 14.5px; }

.panel { background: var(--bg-elevated); border: 1px solid var(--border); border-radius: 16px; padding: 28px; margin-bottom: 24px; }
.panel-danger { border-color: var(--accent-soft); }
.panel-danger h2 { color: var(--accent-strong); }
.panel h2 { font-size: 16px; font-family: var(--font-body); font-weight: 700; margin-bottom: 4px; }
.panel .panel-sub { color: var(--text-muted); font-size: 13.5px; margin-bottom: 20px; }
.panel-foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 6px; }
.field-msg { font-size: 13px; margin-top: -4px; margin-bottom: 16px; }
.field-msg.error { color: var(--accent-strong); }
.field-msg.success { color: var(--green); }

/* current-plan summary card on the Billing page */
.plan-summary { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.plan-summary .name { font-family: var(--font-display); font-size: 22px; }
.plan-summary .meta { color: var(--text-muted); font-size: 13.5px; margin-top: 4px; }

.history-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.history-table th { text-align: left; font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--text-muted); padding: 8px 10px; border-bottom: 1px solid var(--border); }
.history-table td { padding: 10px 10px; border-bottom: 1px solid var(--border); color: var(--text-muted); }
.history-table tr:last-child td { border-bottom: none; }
.history-empty { color: var(--text-muted); font-size: 14px; padding: 8px 0; }

/* ---------- practice growth diagnostic ---------- */
.diag-intro { background: var(--bg-sunken); border-radius: 16px; padding: 26px 28px; margin-bottom: 24px; }
.diag-intro h1 { font-size: 22px; margin-bottom: 8px; }
.diag-intro p { color: var(--text-muted); font-size: 14.5px; max-width: 62ch; }

.diag-form-grid { display: flex; flex-direction: column; gap: 20px; }
.diag-q label.q-label { display: block; font-size: 14px; font-weight: 700; margin-bottom: 8px; }
.diag-q select, .diag-q textarea { width: 100%; font-family: var(--font-body); font-size: 14.5px; padding: 11px 13px; border-radius: 8px; border: 1px solid var(--border); background: var(--bg); color: var(--text); }
.diag-q textarea { min-height: 80px; resize: vertical; }
.diag-checks { display: flex; flex-wrap: wrap; gap: 8px; }
.diag-check { display: inline-flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; cursor: pointer; user-select: none; }
.diag-check input { accent-color: var(--accent); }
.diag-check.checked { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-strong); font-weight: 600; }

.overall-score { display: flex; align-items: center; gap: 20px; }
.overall-score .ring { position: relative; width: 84px; height: 84px; flex: none; }
.overall-score .ring svg { transform: rotate(-90deg); }
.overall-score .ring .num { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-family: var(--font-mono); font-size: 22px; font-weight: 600; }
.overall-score .label { font-size: 13.5px; color: var(--text-muted); }
.overall-score .label strong { display: block; font-family: var(--font-display); font-size: 18px; color: var(--text); }

.pillar-row { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--border); }
.pillar-row:last-child { border-bottom: none; }
.pillar-row .pillar-name { flex: 1; font-size: 14px; font-weight: 600; }
.pillar-row .pillar-rationale { font-size: 13px; color: var(--text-muted); margin-top: 3px; font-weight: 400; }
.pillar-bar-wrap { width: 120px; flex: none; height: 7px; border-radius: 999px; background: var(--bg-sunken); overflow: hidden; }
.pillar-bar { height: 100%; border-radius: 999px; }
.risk-pill { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; padding: 4px 9px; border-radius: 999px; flex: none; }
.risk-low { background: var(--green-soft); color: var(--green); }
.risk-medium { background: var(--gold-soft); color: var(--gold); }
.risk-high { background: var(--accent-soft); color: var(--accent-strong); }

.action-card { border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; margin-bottom: 12px; }
.action-card:last-child { margin-bottom: 0; }
.action-card h4 { font-size: 15px; font-family: var(--font-body); font-weight: 700; margin-bottom: 6px; }
.action-card p { font-size: 13.5px; color: var(--text-muted); margin-bottom: 8px; }
.action-card .fundi-note { font-size: 13px; background: var(--accent-soft); color: var(--accent-strong); padding: 8px 12px; border-radius: 8px; }

.report-list-item { display: flex; justify-content: space-between; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.report-list-item:last-child { border-bottom: none; }
.report-list-item a { font-weight: 600; text-decoration: none; color: var(--accent-strong); }

/* ---------- blog ---------- */
.blog-wrap { max-width: 760px; margin: 0 auto; padding: 56px 24px 100px; }
.blog-wrap a.back { display: inline-block; margin-bottom: 28px; color: var(--accent-strong); text-decoration: none; font-weight: 700; font-size: 14px; }
.blog-index-head { max-width: 640px; margin-bottom: 48px; }
.blog-index-head h1 { font-size: clamp(1.9rem, 4vw, 2.5rem); margin-top: 14px; letter-spacing: -0.01em; }
.blog-index-head p { color: var(--text-muted); font-size: 16.5px; margin-top: 14px; }
.blog-list { display: flex; flex-direction: column; gap: 4px; }
.blog-card { display: block; text-decoration: none; color: inherit; padding: 26px 0; border-bottom: 1px solid var(--border); }
.blog-card:first-child { padding-top: 0; }
.blog-card .meta { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--text-muted); margin-bottom: 8px; }
.blog-card h2 { font-size: 21px; margin-bottom: 8px; }
.blog-card p { color: var(--text-muted); font-size: 14.5px; line-height: 1.6; max-width: 60ch; }
.blog-card .read-more { display: inline-block; margin-top: 10px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 700; color: var(--accent-strong); }

.blog-article-head { margin-bottom: 8px; }
.blog-article-head .eyebrow { margin-bottom: 14px; }
.blog-article-head h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); letter-spacing: -0.01em; margin-bottom: 14px; }
.blog-byline { display: flex; align-items: center; gap: 10px; color: var(--text-muted); font-size: 13px; font-family: var(--font-mono); margin-bottom: 40px; }
.blog-byline .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--text-muted); }
.blog-body h2 { font-size: 20px; margin: 36px 0 12px; font-family: var(--font-body); font-weight: 800; }
.blog-body p, .blog-body li { color: var(--text-muted); font-size: 15.5px; line-height: 1.75; margin-bottom: 16px; }
.blog-body ul, .blog-body ol { padding-left: 22px; margin-bottom: 16px; }
.blog-body strong { color: var(--text); }
.blog-body .lede { font-size: 18px; color: var(--text); line-height: 1.6; }
.blog-cta { background: var(--bg-sunken); border-radius: 16px; padding: 30px 28px; margin-top: 44px; text-align: center; }
.blog-cta h3 { font-size: 19px; margin-bottom: 10px; }
.blog-cta p { color: var(--text-muted); font-size: 14.5px; margin-bottom: 20px; }
.blog-disclaimer { font-size: 13px; color: var(--text-muted); background: var(--bg-sunken); border-radius: 10px; padding: 14px 16px; margin-top: 32px; line-height: 1.6; }
