/* ============================================================
   CloudFinOpsKit — landing page styles
   Plain CSS, no build step. Edit the variables below to rebrand.
   ============================================================ */

:root {
  --bg: #0b1020;
  --bg-soft: #111831;
  --surface: #151d39;
  --surface-2: #1b2547;
  --border: #263157;
  --text: #e9edf7;
  --text-muted: #9aa6c4;
  --accent: #5b8cff;
  --accent-2: #38e1c4;
  --accent-strong: #4070ff;
  --danger-strike: #6b7798;
  --radius: 14px;
  --radius-sm: 9px;
  --maxw: 1120px;
  --shadow: 0 18px 40px -18px rgba(0, 0, 0, 0.6);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(91, 140, 255, 0.18), transparent 60%),
    radial-gradient(900px 500px at -10% 10%, rgba(56, 225, 196, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

h1, h2, h3 { line-height: 1.15; letter-spacing: -0.02em; }
a { color: inherit; text-decoration: none; }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; font-weight: 600; font-size: 0.98rem;
  padding: 12px 20px; border-radius: var(--radius-sm);
  border: 1px solid transparent; cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 26px; font-size: 1.05rem; }
.btn-sm { padding: 9px 16px; font-size: 0.9rem; }
.btn-block { width: 100%; }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #fff; box-shadow: 0 10px 26px -12px var(--accent);
}
.btn-primary:hover { box-shadow: 0 14px 30px -10px var(--accent); transform: translateY(-1px); }

.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: #fff; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(10px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.15rem; }
.brand-mark { color: var(--accent-2); font-size: 1.1rem; }
img.brand-mark { width: 30px; height: 30px; display: inline-block; vertical-align: middle; }
.brand-name .accent { color: var(--accent); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a { color: var(--text-muted); font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--text); }
.nav .btn-primary { color: #fff; }

/* ===== Hero ===== */
.hero { padding: 86px 0 60px; }
.hero-inner { max-width: 820px; }
.eyebrow {
  display: inline-block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: var(--accent-2);
  background: rgba(56, 225, 196, 0.08); border: 1px solid rgba(56, 225, 196, 0.25);
  padding: 6px 12px; border-radius: 999px; margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.5rem); font-weight: 800; margin-bottom: 18px; }
.lede { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--text-muted); max-width: 640px; margin-bottom: 30px; }
.lede strong { color: var(--text); }
.hero-banner {
  display: inline-block; max-width: 640px; margin: 0 0 28px;
  padding: 12px 18px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(91,140,255,0.14), rgba(56,225,196,0.12));
  border: 1px solid rgba(56,225,196,0.35);
  color: var(--text); font-size: 0.98rem; line-height: 1.5;
}
.hero-banner strong { color: var(--accent-2); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 30px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px 26px; list-style: none; color: var(--text-muted); font-size: 0.95rem; }

/* ===== Proof strip ===== */
.proof-strip { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-soft); }
.proof-strip p { text-align: center; color: var(--text-muted); font-size: 0.9rem; padding: 18px 0; letter-spacing: 0.02em; }

/* ===== Section heads ===== */
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3.5vw, 2.4rem); font-weight: 800; margin-bottom: 12px; }
.section-head p { color: var(--text-muted); font-size: 1.05rem; }

/* ===== Products ===== */
.products { padding: 78px 0; }
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 22px; }
.product-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow);
  transition: transform 0.16s ease, border-color 0.16s ease;
}
.product-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.product-badge {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.05em;
  text-transform: uppercase; color: var(--accent-2);
  background: rgba(56, 225, 196, 0.1); border: 1px solid rgba(56, 225, 196, 0.28);
  padding: 4px 10px; border-radius: 999px; margin-bottom: 16px;
}
.product-card h3 { font-size: 1.25rem; margin-bottom: 8px; }
.product-desc { color: var(--text-muted); font-size: 0.96rem; flex-grow: 1; margin-bottom: 16px; }
.product-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.product-tag { font-size: 0.78rem; color: var(--text-muted); background: var(--surface-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
.product-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.product-price { font-size: 1.4rem; font-weight: 800; }
.product-price .strike { color: var(--danger-strike); text-decoration: line-through; font-size: 0.95rem; font-weight: 600; margin-right: 6px; }
.product-card.featured { border-color: var(--accent-2); box-shadow: 0 18px 40px -18px rgba(56, 225, 196, 0.45); }
.product-card.featured .product-badge { color: #0b1020; background: var(--accent-2); border-color: var(--accent-2); }
.product-note { color: var(--accent-2); font-weight: 600; font-size: 0.92rem; margin-top: -6px; margin-bottom: 16px; }

/* ===== Bundle ===== */
.bundle { padding: 70px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.bundle-inner { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; }
.bundle-copy h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 14px; }
.bundle-copy p { color: var(--text-muted); margin-bottom: 18px; font-size: 1.05rem; }
.bundle-list { list-style: none; display: grid; gap: 10px; }
.bundle-list li { padding-left: 28px; position: relative; color: var(--text); }
.bundle-list li::before { content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 800; }
.bundle-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 30px; text-align: center; box-shadow: var(--shadow); }
.bundle-price { font-size: 2.6rem; font-weight: 800; margin-bottom: 4px; }
.bundle-price .strike { color: var(--danger-strike); text-decoration: line-through; font-size: 1.4rem; font-weight: 600; margin-right: 8px; }
.bundle-sub { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 22px; }
.bundle-guarantee { color: var(--text-muted); font-size: 0.85rem; margin-top: 14px; }

/* ===== Live demo (sample assessment output) ===== */
.demo { padding: 78px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.demo-window {
  max-width: 920px; margin: 0 auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.demo-chrome {
  display: flex; align-items: center; gap: 7px;
  padding: 11px 16px; background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.demo-dot { width: 11px; height: 11px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--border); }
.demo-dot:nth-child(1) { background: #ff5f57; }
.demo-dot:nth-child(2) { background: #febc2e; }
.demo-dot:nth-child(3) { background: #28c840; }
.demo-url { margin-left: 10px; font-size: 0.8rem; color: var(--text-muted); font-family: ui-monospace, "Cascadia Code", Consolas, monospace; }

.demo-tabs { display: flex; flex-wrap: wrap; gap: 2px; padding: 0 10px; background: var(--bg); border-bottom: 1px solid var(--border); }
.demo-tab {
  appearance: none; background: transparent; border: none;
  border-bottom: 2px solid transparent; color: var(--text-muted);
  font: inherit; font-size: 0.92rem; font-weight: 600;
  padding: 13px 16px; cursor: pointer; transition: color 0.15s ease, border-color 0.15s ease;
}
.demo-tab:hover { color: var(--text); }
.demo-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.demo-tab:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; border-radius: 4px; }

.demo-panel { padding: 26px; animation: demo-fade 0.25s ease; }
.demo-panel[hidden] { display: none; }
@keyframes demo-fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.demo-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; }
.demo-kpi {
  background: var(--surface-2); border: 1px solid var(--border);
  border-top: 3px solid var(--kpi, var(--accent)); border-radius: var(--radius-sm);
  padding: 18px; display: flex; flex-direction: column; gap: 6px;
}
.demo-kpi-label { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.demo-kpi-value { font-size: 1.85rem; font-weight: 800; }
.demo-kpi-value.accent-2 { color: var(--accent-2); }
.demo-kpi-sub { font-size: 0.82rem; color: var(--text-muted); }

.demo-bars { list-style: none; display: grid; gap: 14px; }
.demo-bars li { display: grid; grid-template-columns: 220px 1fr auto; align-items: center; gap: 14px; }
.demo-bar-label { font-size: 0.92rem; font-weight: 600; }
.demo-bar-track { height: 10px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.demo-bar-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.demo-bar-value { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.demo-bar-value small, .demo-table small { color: var(--text-muted); font-weight: 500; font-size: 0.72em; }

.demo-table-wrap { overflow-x: auto; }
.demo-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.demo-table th { text-align: left; color: var(--text-muted); font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 12px; border-bottom: 1px solid var(--border); }
.demo-table td { padding: 11px 12px; border-bottom: 1px solid var(--border); }
.demo-table tr:last-child td { border-bottom: none; }
.demo-table .num { text-align: right; white-space: nowrap; font-weight: 700; }
.demo-table code { font-family: ui-monospace, "Cascadia Code", Consolas, monospace; font-size: 0.85em; color: var(--accent); background: var(--surface-2); border: 1px solid var(--border); padding: 2px 7px; border-radius: 6px; }

.demo-pill { font-size: 0.75rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; }
.demo-pill.high { color: #ff8f8f; background: rgba(255,95,87,0.14); border: 1px solid rgba(255,95,87,0.3); }
.demo-pill.med { color: #f4c66a; background: rgba(244,163,56,0.14); border: 1px solid rgba(244,163,56,0.3); }
.demo-pill.low { color: var(--text-muted); background: rgba(255,255,255,0.05); border: 1px solid var(--border); }

.demo-note { margin-top: 20px; color: var(--text-muted); font-size: 0.92rem; border-left: 3px solid var(--accent-2); padding-left: 14px; }
.demo-note strong { color: var(--text); }
.demo-cta { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; margin-top: 34px; }

/* ROI panel */
.roi-grid { display: grid; grid-template-columns: 1.1fr 2fr; gap: 18px; align-items: stretch; }
.roi-card { border: 1px solid var(--border); border-radius: var(--radius-sm); }
.roi-headline {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; padding: 24px;
  background: linear-gradient(135deg, rgba(91,140,255,0.16), rgba(56,225,196,0.12));
  border-color: rgba(56,225,196,0.35);
}
.roi-multiple { font-size: 2.6rem; font-weight: 800; line-height: 1; color: var(--accent-2); }
.roi-headline-label { font-size: 0.95rem; font-weight: 700; }
.roi-headline-sub { font-size: 0.85rem; color: var(--text-muted); }
.roi-stats { list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 0; }
.roi-stats li { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 18px; display: flex; flex-direction: column; gap: 5px; }
.roi-stat-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.roi-stat-value { font-size: 1.55rem; font-weight: 800; }
.roi-stat-value.accent-2 { color: var(--accent-2); }
.roi-stat-sub { font-size: 0.8rem; color: var(--text-muted); }
.roi-subhead { font-size: 1.02rem; margin: 26px 0 14px; }
.roi-ramp { list-style: none; display: grid; gap: 12px; margin: 0; }
.roi-ramp li { display: grid; grid-template-columns: 44px 1fr auto; align-items: center; gap: 14px; }
.roi-ramp-month { font-weight: 700; font-size: 0.85rem; color: var(--text-muted); }
.roi-ramp-track { height: 12px; background: rgba(255,255,255,0.06); border-radius: 999px; overflow: hidden; }
.roi-ramp-fill { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--accent), var(--accent-2)); }
.roi-ramp-val { font-weight: 700; font-size: 0.95rem; white-space: nowrap; }
.roi-ramp-val small { color: var(--text-muted); font-weight: 500; font-size: 0.72em; }

/* Savings forecast panel */
.fc-controls { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin-bottom: 20px; }
.fc-controls-label { font-size: 0.78rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; }
.fc-segment { display: inline-flex; background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 4px; gap: 2px; }
.fc-seg-btn { appearance: none; border: none; background: transparent; color: var(--text-muted); font: inherit; font-size: 0.88rem; font-weight: 600; padding: 7px 16px; border-radius: 999px; cursor: pointer; transition: background 0.15s, color 0.15s; }
.fc-seg-btn:hover { color: var(--text); }
.fc-seg-btn.is-active { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #07111f; }
.fc-seg-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.fc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 22px; }
.fc-kpi { background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.fc-kpi-label { font-size: 0.74rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }
.fc-kpi-value { font-size: 1.5rem; font-weight: 800; line-height: 1.1; transition: color 0.2s; }
.fc-kpi-value.accent-2 { color: var(--accent-2); }
.fc-kpi-value small { color: var(--text-muted); font-weight: 500; font-size: 0.62em; }
.fc-chart-wrap { margin: 0; }
.fc-chart-title { font-size: 0.92rem; font-weight: 700; color: var(--text-muted); margin-bottom: 10px; }
.fc-chart { width: 100%; height: auto; display: block; }
.fc-grid line { stroke: var(--border); stroke-width: 1; }
.fc-grid text { fill: var(--text-muted); font-size: 11px; }
.fc-xlabels text { fill: var(--text-muted); font-size: 11px; text-anchor: middle; }
.fc-line { transition: d 0.4s ease; }
.fc-area { transition: d 0.4s ease; }
.fc-dots circle { fill: var(--bg); stroke: var(--accent-2); stroke-width: 2; transition: cx 0.4s ease, cy 0.4s ease; }
@media (prefers-reduced-motion: reduce) {
  .fc-line, .fc-area, .fc-dots circle { transition: none; }
}

/* ===== Why ===== */
.why { padding: 78px 0; }
.why-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 22px; }
.why-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 26px; }
.why-icon { font-size: 1.7rem; display: block; margin-bottom: 14px; }
.why-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.why-card p { color: var(--text-muted); font-size: 0.95rem; }

/* ===== Signup ===== */
.signup { padding: 70px 0; background: linear-gradient(135deg, rgba(91,140,255,0.12), rgba(56,225,196,0.08)); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.signup-inner { text-align: center; max-width: 600px; margin: 0 auto; }
.signup-inner h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: 10px; }
.signup-inner p { color: var(--text-muted); margin-bottom: 26px; }
.signup-form { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
.signup-form input {
  flex: 1 1 280px; max-width: 360px; padding: 13px 16px; font-size: 1rem;
  border-radius: var(--radius-sm); border: 1px solid var(--border);
  background: var(--surface); color: var(--text);
}
.signup-form input::placeholder { color: var(--text-muted); }
.signup-form input:focus { outline: none; border-color: var(--accent); }
.signup-note { margin-top: 16px; color: var(--accent-2); font-size: 0.95rem; }
.signup-note--error { color: #ff8a8a; }

/* ===== FAQ ===== */
.faq { padding: 78px 0; }
.faq-list { max-width: 760px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 4px 20px; }
.faq summary { cursor: pointer; font-weight: 600; padding: 16px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 1.4rem; font-weight: 700; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--text-muted); padding-bottom: 18px; }

/* ===== Footer ===== */
.site-footer { background: var(--bg-soft); border-top: 1px solid var(--border); padding-top: 40px; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; gap: 24px; padding-bottom: 28px; }
.footer-tag { color: var(--text-muted); font-size: 0.9rem; margin-top: 8px; }
.footer-nav { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-nav a { color: var(--text-muted); font-size: 0.92rem; }
.footer-nav a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bottom p { color: var(--text-muted); font-size: 0.85rem; text-align: center; }

/* ===== Legal pages (Terms, Privacy) ===== */
.legal { padding: 56px 0 72px; }
.legal-inner { max-width: 820px; margin: 0 auto; }
.legal-eyebrow {
  font-size: 0.8rem; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent-2);
}
.legal h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); margin: 8px 0 6px; }
.legal .legal-updated { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 28px; }
.legal h2 {
  font-size: 1.15rem; margin: 30px 0 10px; color: var(--text);
  padding-top: 18px; border-top: 1px solid var(--border);
}
.legal h2:first-of-type { border-top: 0; padding-top: 0; }
.legal h3 { font-size: 1rem; margin: 18px 0 8px; color: var(--text); }
.legal p, .legal li { color: var(--text-muted); font-size: 0.96rem; }
.legal p { margin: 10px 0; }
.legal ul { margin: 10px 0 10px 22px; }
.legal li { margin: 6px 0; }
.legal a { color: var(--accent); }
.legal a:hover { text-decoration: underline; }
.legal .legal-callout {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-sm); padding: 16px 18px; margin: 18px 0;
}
.legal .back-link { display: inline-block; margin-bottom: 22px; color: var(--text-muted); font-size: 0.9rem; }
.legal .back-link:hover { color: var(--text); }

/* ===== AI Advisor chatbot ===== */
.chat-toggle {
  position: fixed; right: 22px; bottom: 22px; z-index: 60;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 12px 18px; border: 1px solid var(--border); cursor: pointer;
  border-radius: 999px; color: #fff; font-weight: 600; font-size: 0.95rem;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  box-shadow: 0 12px 30px -10px var(--accent);
  transition: transform 0.12s ease, box-shadow 0.18s ease;
}
.chat-toggle:hover { transform: translateY(-1px); box-shadow: 0 16px 34px -10px var(--accent); }
.chat-toggle:active { transform: translateY(0); }
.chat-toggle-icon { font-size: 1.1rem; line-height: 1; }

.chat-panel {
  position: fixed; right: 22px; bottom: 84px; z-index: 60;
  width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 560px);
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
/* The class above sets display:flex, which would otherwise override the
   browser's default [hidden] { display:none }. This keeps the close button
   (and Esc / toggle) working on every browser, including mobile. */
.chat-panel[hidden] { display: none; }

.chat-head {
  display: flex; align-items: flex-start; justify-content: space-between; gap: 10px;
  padding: 14px 16px; border-bottom: 1px solid var(--border); background: var(--surface-2);
}
.chat-title { font-weight: 700; font-size: 1rem; }
.chat-subtitle { color: var(--text-muted); font-size: 0.82rem; margin-top: 2px; }
.chat-close {
  background: transparent; border: none; color: var(--text-muted);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
  width: 40px; height: 40px; flex: 0 0 auto; margin: -6px -6px 0 0;
  border-radius: 10px; display: inline-flex; align-items: center; justify-content: center;
}
.chat-close:hover { color: var(--text); background: var(--bg-soft); }

.chat-log {
  flex: 1; overflow-y: auto; padding: 14px 16px;
  display: flex; flex-direction: column; gap: 10px;
}

.chat-msg {
  max-width: 85%; padding: 9px 13px; border-radius: 13px;
  font-size: 0.92rem; line-height: 1.5; white-space: pre-wrap; word-wrap: break-word;
}
.chat-msg-user {
  align-self: flex-end; color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  border-bottom-right-radius: 4px;
}
.chat-msg-bot {
  align-self: flex-start; background: var(--surface-2);
  border: 1px solid var(--border); border-bottom-left-radius: 4px;
}
.chat-msg-error { color: #ffd5d5; border-color: #5a2a39; background: #2a1622; }
.chat-msg-typing { color: var(--text-muted); letter-spacing: 2px; }

.chat-form {
  display: flex; gap: 8px; padding: 12px 14px;
  border-top: 1px solid var(--border); background: var(--surface-2);
}
.chat-input {
  flex: 1; padding: 10px 13px; border-radius: var(--radius-sm);
  border: 1px solid var(--border); background: var(--bg-soft); color: var(--text);
  font-size: 0.92rem; font-family: inherit;
}
.chat-input:focus { outline: none; border-color: var(--accent); }
.chat-input:disabled { opacity: 0.6; }

.chat-disclaimer {
  padding: 0 14px 12px; margin-top: -4px;
  color: var(--text-muted); font-size: 0.72rem; background: var(--surface-2);
}

/* ===== Responsive ===== */
@media (max-width: 760px) {
  .nav a:not(.btn) { display: none; }
  .bundle-inner { grid-template-columns: 1fr; }
  .hero { padding: 56px 0 40px; }
  /* Advisor becomes a bottom sheet: pinned header + close button stay visible,
     dynamic viewport height avoids being cut off by mobile browser chrome,
     and the floating toggle hides while open so it can't overlap the panel. */
  .chat-panel {
    right: 0; left: 0; bottom: 0; width: 100%;
    max-height: 85vh; max-height: 85dvh;
    border-radius: var(--radius) var(--radius) 0 0;
    border-bottom: none;
  }
  .chat-toggle { right: 12px; bottom: 12px; }
  .chat-toggle[aria-expanded="true"] { display: none; }
  .chat-form { padding-bottom: calc(12px + env(safe-area-inset-bottom)); }
  .demo-panel { padding: 18px; }
  .demo-bars li { grid-template-columns: 1fr auto; }
  .demo-bar-track { grid-column: 1 / -1; order: 3; }
  .demo-tab { padding: 12px 11px; font-size: 0.85rem; }
  .roi-grid { grid-template-columns: 1fr; }
  .roi-stats { grid-template-columns: 1fr; }
  .fc-kpis { grid-template-columns: repeat(2, 1fr); }
}

/* ===== Thank-you / downloads page ===== */
.thankyou { padding: 64px 0 80px; }
.thankyou-inner { max-width: 760px; }
.thankyou-inner h1 { margin: 8px 0 14px; }
.thankyou-status { margin: 22px 0 8px; }
.thankyou-loading,
.thankyou-info { color: var(--text-muted); }
.thankyou-success {
  color: var(--accent-2); font-weight: 600;
  padding: 12px 16px; border: 1px solid var(--border);
  border-radius: var(--radius-sm); background: var(--bg-soft);
}
.thankyou-error {
  color: #ffd5d5; padding: 12px 16px; border: 1px solid #5a2a39;
  border-radius: var(--radius-sm); background: #2a1622;
}
.thankyou-help { margin-top: 28px; color: var(--text-muted); font-size: 0.9rem; }

.download-list { display: grid; gap: 18px; margin-top: 22px; }
.download-card {
  padding: 20px 22px; border: 1px solid var(--border);
  border-radius: var(--radius); background: var(--surface);
}
.download-card h2 { font-size: 1.12rem; margin: 0 0 14px; }
.download-files { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.download-files li { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.download-size { color: var(--text-muted); font-size: 0.82rem; }

/* Share row — sits below the email signup and on the thank-you page so happy
   visitors / buyers can amplify with one click. */
.share-row {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px dashed var(--border);
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
}
.share-row .share-label {
  color: var(--text-muted); font-size: 0.92rem;
  margin-right: 6px; flex-basis: 100%; margin-bottom: 4px;
}
@media (min-width: 720px) {
  .share-row .share-label { flex-basis: auto; margin-bottom: 0; }
}
.share-row .share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 14px; border-radius: var(--radius-sm); cursor: pointer;
  font: inherit; font-size: 0.88rem; font-weight: 600; line-height: 1;
  color: var(--text); background: var(--surface-2); border: 1px solid var(--border);
  text-decoration: none; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}
.share-row .share-btn:hover {
  background: rgba(91, 140, 255, 0.12); border-color: var(--accent); color: #fff;
}
.share-row .share-btn.is-copied {
  background: rgba(56, 225, 196, 0.15); border-color: var(--accent-2); color: var(--accent-2);
}
.share-row--thankyou {
  margin-top: 28px; padding: 16px 18px;
  border: 1px dashed var(--border); border-radius: var(--radius-sm);
  background: rgba(91, 140, 255, 0.04);
}

/* Friendly "get fresh download links" box on the thank-you page. */
.thankyou-refresh {
  margin-top: 22px; padding: 14px 18px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: rgba(56, 225, 196, 0.06);
  color: var(--text-muted); font-size: 0.94rem;
}
.thankyou-refresh .link {
  color: var(--accent-2); font-weight: 600; text-decoration: underline;
}
.thankyou-refresh .link:hover { color: var(--accent); }

/* One-click "Download everything" — the primary path on the thank-you page. */
.download-primary { margin: 0 0 14px; }
.download-primary .btn-block { font-size: 1.08rem; padding: 16px 24px; }
.download-primary-meta {
  margin: 8px 2px 0; color: var(--text-muted); font-size: 0.85rem;
  font-style: normal;
}
.download-individual {
  margin-top: 12px; padding-top: 12px;
  border-top: 1px dashed var(--border);
}
.download-individual summary {
  cursor: pointer; color: var(--text-muted); font-size: 0.92rem;
  padding: 6px 0; user-select: none;
}
.download-individual summary:hover { color: var(--text); }
.download-individual[open] summary { margin-bottom: 12px; }

