/* ============================================================
   PSALM - "Illuminated" design language
   Night lapis + gold leaf + vellum. Cardo display, Inter UI.
   ============================================================ */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

:root {
  --night: #080c1a;
  --night-2: #0d1428;
  --lapis: #243c8c;
  --lapis-deep: #1b2f73;
  --lapis-bright: #3d59b9;
  --gold: #c29b45;
  --gold-bright: #d8b260;
  --champagne: rgba(255, 233, 194, 0.55);
  --champagne-dim: rgba(255, 233, 194, 0.16);
  --vellum: #f1ebdc;
  --vellum-deep: #e9e1cd;
  --paper: #fffdf8;
  --ink: #2c2620;
  --ink-soft: #6a6250;
  --line: #ded5bf;
  --white-warm: #f7f3e9;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", system-ui, sans-serif;
  color: var(--ink);
  background: var(--vellum);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; }
h1, h2, h3 { font-family: "Cardo", serif; font-weight: 700; line-height: 1.08; letter-spacing: -0.01em; }
a { color: inherit; }
button { font-family: inherit; }
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }

.skip {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--gold-bright); color: #241c08; padding: 10px 18px; border-radius: 0 0 10px 0;
  font-weight: 600; text-decoration: none;
}
.skip:focus { left: 0; }

/* ---------- kicker / titles ---------- */
.kicker {
  font-size: 12px; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 18px;
}
.section-title { font-size: clamp(32px, 4.6vw, 52px); margin-bottom: 18px; color: var(--ink); }
.section-title em { font-style: italic; font-weight: 400; color: var(--lapis); }
.section-sub { color: var(--ink-soft); max-width: 640px; margin-bottom: 44px; font-size: 16.5px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-block; text-decoration: none; font-weight: 600; font-size: 15px;
  padding: 14px 30px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform 0.18s var(--ease), box-shadow 0.25s var(--ease), background 0.2s;
  position: relative;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn-sm { padding: 10px 22px; font-size: 14px; }
.btn-gold {
  color: #241c08;
  background: linear-gradient(180deg, #e5c47a 0%, var(--gold-bright) 38%, var(--gold) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55), inset 0 -2px 4px rgba(90, 62, 10, 0.25),
    0 8px 24px rgba(0, 0, 0, 0.35);
}
.btn-gold:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.55), inset 0 -2px 4px rgba(90,62,10,0.25), 0 14px 34px rgba(0,0,0,0.45); }
.btn-ghost-light {
  color: var(--white-warm); border: 1px solid rgba(255, 233, 194, 0.4);
  background: rgba(255, 253, 248, 0.07);
}
.btn-ghost-light:hover { background: rgba(255, 253, 248, 0.1); border-color: rgba(255, 233, 194, 0.7); transform: translateY(-2px); }
.btn-lapis {
  color: #fff;
  background: linear-gradient(180deg, var(--lapis-bright) 0%, var(--lapis) 45%, var(--lapis-deep) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.3), 0 8px 22px rgba(27, 47, 115, 0.35);
}
.btn-lapis:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.3), 0 14px 30px rgba(27,47,115,0.45); }
.btn-lapis-ghost { color: var(--lapis); border: 1.5px solid rgba(36, 60, 140, 0.45); }
.btn-lapis-ghost:hover { background: rgba(36, 60, 140, 0.07); border-color: var(--lapis); transform: translateY(-2px); }

/* ---------- nav ---------- */
.nav-bar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background 0.35s, box-shadow 0.35s, border-color 0.35s;
  border-bottom: 1px solid transparent;
}
.nav-bar.scrolled {
  background: rgba(8, 12, 26, 0.82);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255, 233, 194, 0.12);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.nav-logo img { display: block; }
.nav-links { display: flex; align-items: center; gap: 30px; font-size: 14px; font-weight: 500; }
.nav-links a { text-decoration: none; color: rgba(247, 243, 233, 0.78); transition: color 0.2s; }
.nav-links a:hover { color: var(--gold-bright); }
.nav-links .btn { color: #241c08; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; color: var(--white-warm);
  background:
    radial-gradient(1100px 520px at 78% -12%, rgba(194, 155, 69, 0.22), transparent 62%),
    radial-gradient(900px 700px at 12% 8%, rgba(61, 89, 185, 0.28), transparent 60%),
    linear-gradient(175deg, #101a3d 0%, var(--night-2) 34%, var(--night) 100%);
  padding: 150px 0 0;
  text-align: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--noise); opacity: 0.035;
}
.hero-glow {
  position: absolute; left: 50%; top: 46%;
  width: 900px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 178, 96, 0.14), transparent 72%);
  pointer-events: none; transform: translateX(-50%) translateZ(0);
}
.hero-inner { position: relative; z-index: 2; }
.hero .kicker { color: var(--gold-bright); }
.hero-h1 { font-size: clamp(44px, 7.4vw, 88px); margin: 0 auto 24px; max-width: 900px; color: var(--white-warm); }
.hero-h1 em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, #e8cd8a 10%, var(--gold-bright) 45%, #a8853a 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { font-size: clamp(16px, 2.1vw, 19px); max-width: 660px; margin: 0 auto 38px; color: rgba(247, 243, 233, 0.75); }
.hero-ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 2; }
.hero-note { margin-top: 18px; font-size: 13px; color: rgba(247, 243, 233, 0.5); }

/* ---------- the product window frame ---------- */
.window-stage { position: relative; z-index: 2; margin-top: 64px; }
.crm-frame {
  position: relative; border-radius: 18px;
  background: #0c1122;
  border: 1px solid rgba(255, 233, 194, 0.2);
  box-shadow:
    0 0 0 1px rgba(8, 12, 26, 0.8),
    0 30px 90px rgba(0, 0, 0, 0.55),
    0 6px 24px rgba(0, 0, 0, 0.4);
  overflow: hidden;
}
.crm-frame::before {
  content: ""; position: absolute; inset: -1px; border-radius: 18px; pointer-events: none; z-index: 5;
  background: linear-gradient(160deg, rgba(255, 233, 194, 0.22), transparent 28%, transparent 74%, rgba(255, 233, 194, 0.12));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; padding: 1px;
}
.frame-light { box-shadow: 0 24px 70px rgba(44, 38, 32, 0.22), 0 4px 18px rgba(44, 38, 32, 0.12); border-color: rgba(194, 155, 69, 0.35); }
.frame-phone { max-width: 380px; margin: 0 auto; border-radius: 34px; }

/* computer / phone view toggle */
.view-toggle { display: flex; justify-content: center; gap: 4px; margin-bottom: 16px; }
.vt-btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-family: "Inter", sans-serif; font-size: 13px; font-weight: 600;
  border-radius: 999px; padding: 8px 18px; border: 1px solid transparent;
  transition: background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
}
.vt-btn svg { width: 14px; height: 14px; }
.view-dark .vt-btn { color: rgba(247, 243, 233, 0.6); background: rgba(255, 253, 248, 0.05); border-color: rgba(255, 233, 194, 0.16); }
.view-dark .vt-btn:hover { color: var(--white-warm); border-color: rgba(255, 233, 194, 0.4); }
.view-dark .vt-btn.on {
  color: #241c08; background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  border-color: transparent; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.view-light .vt-btn { color: var(--ink-soft); background: var(--paper); border-color: var(--line); }
.view-light .vt-btn:hover { border-color: rgba(36, 60, 140, 0.45); }
.view-light .vt-btn.on {
  color: #fff; background: linear-gradient(180deg, var(--lapis-bright), var(--lapis));
  border-color: transparent; box-shadow: 0 4px 12px rgba(27, 47, 115, 0.3);
}

.stage-caption { margin-top: 22px; font-size: 14px; color: rgba(247, 243, 233, 0.55); }
.stage-caption strong { color: rgba(247, 243, 233, 0.9); font-weight: 600; }
.try-hint { display: block; margin-top: 6px; color: var(--gold-bright); font-weight: 500; }
.try-hint b { font-weight: 700; }

.confetti-canvas { position: absolute; inset: 0; z-index: 20; pointer-events: none; }

/* ---------- flow rail ---------- */
.rail { margin-top: 74px; border-top: 1px solid rgba(255, 233, 194, 0.12); background: rgba(255, 253, 248, 0.02); }
.rail-row { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 10px; padding: 22px 0; }
.rail-pill {
  font-size: 13px; font-weight: 600; letter-spacing: 0.03em; color: rgba(247, 243, 233, 0.8);
  border: 1px solid rgba(255, 233, 194, 0.2); background: rgba(255, 253, 248, 0.04);
  padding: 7px 16px; border-radius: 999px;
}
.rail-arrow { color: var(--gold-bright); font-size: 14px; }
.rail-paid { color: #241c08; background: linear-gradient(180deg, var(--gold-bright), var(--gold)); border-color: transparent; font-weight: 700; }

/* ============================================================
   THE INTERACTIVE APP WINDOW
   Styled after the real Christone House app: lavender-grey bed,
   near-white glass cards, glossy brand capsule, gold numbers.
   Theme vars --mp/--mpd/--ma/--mab are set per instance by JS.
   ============================================================ */
.crm {
  --mp: #602c64; --mpd: #4a2150; --ma: #c09038; --mab: #e5b84a;
  --bed: #eae6f1; --card: #fffdfe; --cline: #e5e0ec;
  --cink: #1c1526; --cmut: #6b6478; --cfnt: #9d97a8; --sbg: #f6f4f9;
  width: 1060px; height: 660px;
  background: var(--bed); color: var(--cink);
  font-family: "Inter", sans-serif; font-size: 12px; line-height: 1.45;
  display: flex; flex-direction: column;
  text-align: left; user-select: none; -webkit-user-select: none;
  transform-origin: 0 0;
}

.crm-chrome {
  height: 40px; flex: 0 0 40px; display: flex; align-items: center; gap: 14px; padding: 0 16px;
  background: #101527; border-bottom: 1px solid rgba(255, 233, 194, 0.1);
}
.crm-dots { display: flex; gap: 7px; }
.crm-dots i { width: 11px; height: 11px; border-radius: 50%; }
.crm-dots i:nth-child(1) { background: #f26d5f; } .crm-dots i:nth-child(2) { background: #f0b32f; } .crm-dots i:nth-child(3) { background: #55b658; }
.crm-url {
  flex: 1; max-width: 340px; margin: 0 auto; height: 24px; border-radius: 7px;
  background: rgba(255, 253, 248, 0.08); color: rgba(247, 243, 233, 0.6);
  font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.crm-url svg { opacity: 0.7; }
.crm-chrome-right { width: 60px; }

.crm-body { flex: 1; display: flex; min-height: 0; }

/* icon strip (mirrors the real app's 52px strip) */
.crm-strip {
  width: 40px; flex: 0 0 40px; background: var(--sbg); border-right: 1px solid var(--cline);
  padding: 12px 0; display: flex; flex-direction: column; align-items: center; gap: 13px;
}
.strip-logo { width: 22px; height: 22px; display: flex; align-items: center; justify-content: center; margin-bottom: 4px; }
.strip-logo img { width: 100%; height: 100%; object-fit: contain; }
.strip-mono {
  border-radius: 6px; background: linear-gradient(180deg, var(--mp), var(--mpd)); color: #fff;
  font-family: "Cardo", serif; font-weight: 700; font-size: 13px;
}
.strip-ic { color: var(--cfnt); display: flex; }
.strip-ic svg { width: 13px; height: 13px; }
.strip-on { color: var(--mp); }
.strip-end { margin-top: auto; }

/* sidebar panel */
.crm-side {
  width: 188px; flex: 0 0 188px; background: var(--sbg); border-right: 1px solid var(--cline);
  padding: 10px 9px; display: flex; flex-direction: column; gap: 1px; overflow: hidden;
}
.crm-brand { display: flex; align-items: center; gap: 8px; padding: 2px 6px 7px; }
.crm-ptitle {
  display: flex; align-items: center; justify-content: space-between;
  font-size: 12.5px; font-weight: 700; padding: 2px 7px 6px;
}
.crm-ptitle em { font-style: normal; color: var(--cfnt); font-size: 13px; }
.crm-logo {
  width: 26px; height: 26px; border-radius: 7px; flex: 0 0 26px;
  background: linear-gradient(180deg, var(--mp), var(--mpd));
  color: #fff; font-family: "Cardo", serif; font-weight: 700; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 2px 6px rgba(0, 0, 0, 0.18);
  overflow: hidden;
}
.crm-logo img { width: 100%; height: 100%; object-fit: contain; }
.crm-logo img.on-white { background: #fff; }
.crm-logo img.on-brand { padding: 4px; }
.crm-company { font-weight: 700; font-size: 12px; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crm-group { font-size: 8px; font-weight: 700; letter-spacing: 0.13em; color: var(--cfnt); padding: 8px 7px 3px; }
.crm-item {
  display: flex; align-items: center; gap: 8px; padding: 4.5px 9px; border-radius: 999px;
  color: var(--cmut); font-weight: 500; font-size: 10.8px; position: relative;
  border: 0; background: none; width: 100%; text-align: left; cursor: default;
}
.crm-item[data-nav] { cursor: pointer; }
.crm-item[data-nav]:hover:not(.active) { background: color-mix(in srgb, var(--mp) 7%, transparent); color: var(--cink); }
.crm-item svg { flex: 0 0 12px; width: 12px; height: 12px; opacity: 0.75; }
.crm-item.active {
  background: linear-gradient(100deg, var(--mpd) 0%, var(--mp) 100%);
  color: #fff; font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 3px 10px color-mix(in srgb, var(--mp) 42%, transparent);
}
.crm-item.active svg { opacity: 1; }
.crm-badge {
  margin-left: auto; background: var(--ma); color: #fff; font-size: 8.5px; font-weight: 700;
  border-radius: 999px; padding: 0.5px 6px;
}

/* main */
.crm-main { flex: 1; display: flex; flex-direction: column; min-width: 0; background: var(--bed); }
.crm-top {
  height: 46px; flex: 0 0 46px; display: flex; align-items: center; gap: 14px; padding: 0 18px;
  border-bottom: 1px solid var(--cline); background: rgba(255, 253, 254, 0.6);
}
.crm-title { font-weight: 700; font-size: 13.5px; }
.crm-search {
  margin-left: auto; width: 210px; height: 27px; border-radius: 999px;
  border: 1px solid var(--cline); background: var(--card); color: var(--cfnt);
  font-size: 11px; display: flex; align-items: center; gap: 7px; padding: 0 12px;
}
.crm-search em { margin-left: auto; font-style: normal; font-size: 9px; color: var(--cfnt); }
.crm-topic { color: var(--cmut); display: flex; }
.crm-topname { font-size: 11px; font-weight: 600; white-space: nowrap; }
.crm-bell { position: relative; color: var(--cmut); display: flex; }
.crm-bell::after { content: ""; position: absolute; top: -1px; right: -1px; width: 6px; height: 6px; border-radius: 50%; background: var(--ma); }
.crm-avatar {
  width: 26px; height: 26px; border-radius: 50%; color: #fff; font-size: 10.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--mp), var(--mpd));
}

.crm-content {
  flex: 1; padding: 14px 16px; overflow: hidden; min-height: 0;
  display: grid; grid-template-columns: minmax(0, 1fr) 218px; gap: 13px; align-items: stretch;
}
.crm-content-full { display: flex; flex-direction: column; gap: 12px; }
.crm-colL { display: flex; flex-direction: column; gap: 13px; min-width: 0; min-height: 0; }
.crm-colR { display: flex; flex-direction: column; gap: 13px; min-height: 0; }
.crm-cards3 { flex: 1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; min-height: 0; }
.card-arrow { float: right; color: var(--cfnt); font-weight: 400; font-size: 10px; }

/* greeting hero card (mirrors .dashboard-hero) */
.crm-hero {
  border-radius: 14px; padding: 16px 20px 14px; color: #fff; position: relative; overflow: hidden;
  background: var(--mpd);
  box-shadow: 0 8px 24px color-mix(in srgb, var(--mpd) 35%, transparent);
}
.crm-hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(420px 160px at 82% -20%, rgba(229, 184, 74, 0.42), transparent 65%),
    linear-gradient(115deg, rgba(255, 255, 255, 0.1), transparent 45%),
    linear-gradient(0deg, rgba(0, 0, 0, 0.18), transparent 55%);
}
.crm-hero > * { position: relative; }
.crm-hero-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; }
.crm-greet-label { font-size: 10.5px; color: rgba(255, 255, 255, 0.65); }
.crm-greet { font-family: "Playfair Display", "Cardo", serif; font-style: italic; font-weight: 500; font-size: 26px; line-height: 1.05; margin: 0; }
.crm-hero-right { text-align: right; flex: 0 0 auto; }
.crm-date { display: block; font-size: 9.5px; color: rgba(255, 255, 255, 0.62); }
.crm-clock { display: block; font-size: 22px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.15; }
.crm-clock em { font-style: normal; font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.crm-kpis { display: flex; gap: 36px; flex-wrap: wrap; border-top: 1px solid rgba(255, 255, 255, 0.22); margin-top: 10px; padding-top: 9px; }
.kpi b { display: block; font-size: 16px; font-weight: 700; color: var(--mab); letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.kpi span { font-size: 9.5px; color: rgba(255, 255, 255, 0.62); }

/* dashboard cards */
.crm-card {
  background: var(--card); border: 1px solid var(--cline); border-radius: 13px; padding: 12px 14px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.9) inset, 0 2px 10px rgba(28, 21, 38, 0.06);
  display: flex; flex-direction: column; min-height: 0; min-width: 0;
}
.crm-card h4 { font-size: 11.5px; font-weight: 700; color: var(--cink); margin-bottom: 2px; font-family: "Inter", sans-serif; }
.crm-card .sub { font-size: 9px; color: var(--cfnt); margin-bottom: 8px; }

.donut-wrap { flex: 1; display: flex; align-items: center; justify-content: center; position: relative; padding: 4px 0 8px; }
.donut-center { position: absolute; text-align: center; }
.donut-center b { display: block; font-size: 16px; font-weight: 700; color: var(--mp); font-variant-numeric: tabular-nums; }
.donut-center span { font-size: 8.5px; color: var(--cfnt); }
.donut-svg .ring-bg { stroke: color-mix(in srgb, var(--mp) 14%, #f0edf4); }
.donut-svg .ring-fg { stroke: var(--ma); }

.pipe-legend { display: flex; flex-direction: column; gap: 4.5px; margin-top: auto; }
.pipe-row { display: flex; align-items: center; gap: 6px; font-size: 9px; color: var(--cink); }
.pipe-row i { width: 7px; height: 7px; border-radius: 50%; flex: 0 0 7px; }
.pipe-row i.pl-soft { background: color-mix(in srgb, var(--mp) 26%, #f0edf4); }
.pipe-row b { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; }
.pipe-row em { font-style: normal; color: var(--cfnt); font-size: 8.5px; width: 24px; text-align: right; }

.owes-ava {
  width: 22px; height: 22px; border-radius: 50%; flex: 0 0 22px; color: #fff; font-size: 9px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; background: var(--mp);
}
.ref-body { display: flex; flex-direction: column; gap: 10px; flex: 1; }
.ref-row { display: flex; align-items: center; gap: 8px; padding: 8px 9px; border: 1px solid var(--cline); border-radius: 10px; background: var(--sbg); }
.ref-row b { display: block; font-size: 9.5px; line-height: 1.25; }
.ref-row small { display: block; font-size: 8.5px; color: var(--cfnt); }
.ref-note { font-size: 9px; color: var(--cmut); line-height: 1.55; }

/* right column: calendar + quick actions */
.cal-card { flex: 0 0 auto; }
.cal-dow { font-size: 9px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--ma); }
.cal-big { font-size: 14.5px; font-weight: 700; margin: 1px 0 7px; }
.cal-month { text-align: center; font-size: 9px; color: var(--cmut); margin-bottom: 4px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; text-align: center; }
.cal-grid span { font-size: 8px; color: var(--cink); padding: 2.5px 0; border-radius: 50%; }
.cal-grid .cal-h { color: var(--cfnt); font-weight: 600; }
.cal-grid .today { background: var(--mp); color: #fff; font-weight: 700; }
.cal-note { margin-top: 7px; padding-top: 6px; border-top: 1px solid var(--cline); font-size: 8.5px; color: var(--cfnt); }

.qk-card { flex: 1; }
.qk-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; flex: 1; }
.qk-tile {
  border: 1px solid var(--cline); border-radius: 10px; padding: 8px 9px;
  display: flex; flex-direction: column; gap: 5px; justify-content: center;
  font-size: 8.6px; font-weight: 600; color: var(--cink); background: var(--card);
}
.qk-ic {
  width: 22px; height: 22px; border-radius: 7px; display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--mp) 9%, #ffffff); color: var(--mp);
}
.qk-ic svg { width: 11px; height: 11px; }
.qk-live { cursor: pointer; font-family: inherit; text-align: left; transition: border-color 0.2s, transform 0.2s var(--ease); }
.qk-live:hover { border-color: color-mix(in srgb, var(--mp) 40%, #fff0); transform: translateY(-1px); }
.h4-link { cursor: pointer; }
.h4-link:hover .card-arrow { color: var(--mp); }

/* ---------- leads kanban (desktop window) ---------- */
.kb-top { display: flex; align-items: center; gap: 10px; }
.kb-title { font-weight: 700; font-size: 13px; }
.kb-count { font-size: 9.5px; font-weight: 700; color: var(--mp); background: color-mix(in srgb, var(--mp) 10%, #ffffff); border: 1px solid color-mix(in srgb, var(--mp) 20%, #ffffff); border-radius: 999px; padding: 2px 9px; }
.kb-hintbar { margin-left: auto; font-size: 10px; color: var(--cmut); }
.kb { flex: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; min-height: 0; }
.kb-col {
  border-radius: 12px; padding: 9px; display: flex; flex-direction: column; gap: 8px; min-height: 0;
  background: color-mix(in srgb, var(--sc) 8%, #ffffff62);
  border: 1px solid color-mix(in srgb, var(--sc) 18%, #ffffff00);
  transition: box-shadow 0.2s;
}
.kb-col.over { box-shadow: inset 0 0 0 2px var(--sc); }
.kb-head { display: flex; align-items: center; gap: 6px; font-size: 10.5px; font-weight: 700; color: var(--cink); padding: 2px 3px; }
.kb-head i { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); }
.kb-num { margin-left: auto; font-size: 9px; font-weight: 700; color: #fff; background: var(--sc); border-radius: 999px; padding: 1px 7px; }
.kb-card {
  background: var(--card); border: 1px solid var(--cline); border-left: 3px solid var(--sc);
  border-radius: 9px; padding: 8px 10px; cursor: grab;
  box-shadow: 0 1px 4px rgba(28, 21, 38, 0.06);
  transition: transform 0.18s var(--ease), box-shadow 0.18s, outline-color 0.15s;
}
.kb-card:hover { transform: translateY(-1px); box-shadow: 0 4px 12px rgba(28, 21, 38, 0.12); }
.kb-card.dragging { opacity: 0.45; }
.kb-card.selected { outline: 2px solid var(--mp); outline-offset: 1px; }
.kb-card b { display: block; font-size: 11px; }
.kb-card small { display: block; font-size: 9px; color: var(--cfnt); margin-top: 1px; }
.kb-move {
  display: none; margin-top: 6px; font-size: 9px; font-weight: 700; color: var(--sc);
}
.kb-hint {
  display: none; margin-top: auto; text-align: center; font-size: 9.5px; font-weight: 600;
  color: var(--sc); border: 1.5px dashed var(--sc); border-radius: 9px; padding: 7px 4px; cursor: pointer;
  animation: hintPulse 1.4s ease infinite;
}
.kb-col.cantarget .kb-hint { display: block; }
@keyframes hintPulse { 0%, 100% { opacity: 0.55; } 50% { opacity: 1; } }
.kb-won-note { font-size: 9px; color: var(--cfnt); text-align: center; padding: 3px 0 1px; }

/* ---------- phone variant of the app window ---------- */
.crm-ph {
  --mp: #602c64; --mpd: #4a2150; --ma: #c09038; --mab: #e5b84a;
  --bed: #eae6f1; --card: #fffdfe; --cline: #e5e0ec;
  --cink: #1c1526; --cmut: #6b6478; --cfnt: #9d97a8; --sbg: #f6f4f9;
  background: var(--bed); color: var(--cink);
  font-family: "Inter", sans-serif; font-size: 13.5px; line-height: 1.45;
  display: flex; flex-direction: column; height: 680px; text-align: left;
  position: relative; overflow: hidden;
  user-select: none; -webkit-user-select: none;
}
.cp-status {
  height: 30px; flex: 0 0 30px; display: flex; align-items: center; justify-content: space-between;
  padding: 0 20px; font-size: 11px; font-weight: 600; color: var(--cink); background: var(--sbg);
}
.cp-top {
  display: flex; align-items: center; gap: 10px; padding: 8px 16px 10px;
  background: var(--sbg); border-bottom: 1px solid var(--cline);
}
.cp-top .crm-logo { width: 32px; height: 32px; border-radius: 9px; font-size: 18px; }
.cp-top .crm-company { font-size: 14.5px; }
.cp-top .crm-topic { margin-left: auto; }
.cp-top .crm-topic svg { width: 15px; height: 15px; }
.cp-body { flex: 1; overflow-y: auto; padding: 14px 14px 86px; display: flex; flex-direction: column; gap: 12px; -webkit-overflow-scrolling: touch; }

/* floating glass tab bar (the real app's iOS-26 dock) */
.cp-tabs {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 20;
  display: flex; gap: 3px; padding: 5px; border-radius: 26px;
  background: rgba(250, 248, 253, 0.9);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow: 0 12px 32px rgba(28, 21, 38, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}
.cp-tab {
  flex: 1; border: 0; background: none; border-radius: 20px; cursor: pointer; padding: 7px 0 6px;
  font-size: 9.5px; font-weight: 600; color: var(--cmut);
}
.cp-tab-in { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cp-tab svg { width: 17px; height: 17px; }
.cp-tab.active {
  color: var(--mp); background: #fff;
  box-shadow: 0 4px 14px rgba(28, 21, 38, 0.16), inset 0 1px 0 #fff;
}
.cp-tab.inert { opacity: 0.55; cursor: default; }

/* phone hero (greeting left, date + clock pinned right, like the real app) */
.cp-hero { border-radius: 16px; padding: 15px 16px 14px; color: #fff; position: relative; overflow: hidden; background: var(--mpd); flex: 0 0 auto; }
.cp-hero::before { content: ""; position: absolute; inset: 0; background: radial-gradient(300px 130px at 85% -18%, rgba(229, 184, 74, 0.42), transparent 65%), linear-gradient(0deg, rgba(0, 0, 0, 0.16), transparent 55%); }
.cp-hero > * { position: relative; }
.cp-hr { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cp-hr.cp-base { align-items: baseline; }
.cp-greet-label { font-size: 11px; color: rgba(255, 255, 255, 0.65); }
.cp-date { font-size: 10px; color: rgba(255, 255, 255, 0.62); flex: 0 0 auto; }
.cp-greet { font-family: "Playfair Display", "Cardo", serif; font-style: italic; font-weight: 500; font-size: 24px; margin: 0; min-width: 0; }
.cp-clock { font-size: 19px; font-weight: 600; color: #fff; font-variant-numeric: tabular-nums; flex: 0 0 auto; }
.cp-clock em { font-style: normal; font-size: 10px; font-weight: 600; color: rgba(255, 255, 255, 0.75); }
.cp-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 14px; border-top: 1px solid rgba(255, 255, 255, 0.22); margin-top: 10px; padding-top: 9px; }
.cp-kpis .kpi b { font-size: 17px; }
.cp-kpis .kpi span { font-size: 10.5px; }

/* phone-scale overrides for the shared dashboard cards */
.crm-ph .crm-card h4, .crm-ph .cp-inner h4 { font-size: 13.5px; }
.crm-ph .cp-inner { display: flex; flex-direction: column; }
.crm-ph .cp-inner .sub { font-size: 11px; margin-bottom: 10px; }
.crm-ph .donut-svg { width: 118px; height: 118px; }
.crm-ph .donut-center b { font-size: 19px; }
.crm-ph .donut-center span { font-size: 10px; }
.crm-ph .pipe-row { font-size: 12.5px; gap: 8px; }
.crm-ph .pipe-row i { width: 9px; height: 9px; flex-basis: 9px; }
.crm-ph .pipe-row em { font-size: 10.5px; width: 36px; }
.crm-ph .pipe-legend { gap: 8px; margin-top: 6px; }
.crm-ph .card-arrow { display: none; }
.crm-ph .h4-link { cursor: pointer; }
.crm-ph .cal-dow { font-size: 11px; }
.crm-ph .cal-big { font-size: 18px; margin: 2px 0 10px; }
.crm-ph .cal-month { font-size: 11.5px; margin-bottom: 7px; }
.crm-ph .cal-grid { gap: 3px; }
.crm-ph .cal-grid span { font-size: 11px; padding: 4.5px 0; }
.crm-ph .cal-note { font-size: 11px; margin-top: 10px; padding-top: 9px; }
.crm-ph .qk-tiles { gap: 10px; }
.crm-ph .qk-tile { font-size: 11px; padding: 12px; gap: 7px; border-radius: 13px; }
.crm-ph .qk-ic { width: 30px; height: 30px; border-radius: 9px; }
.crm-ph .qk-ic svg { width: 14px; height: 14px; }

.cp-card { background: var(--card); border: 1px solid var(--cline); border-radius: 14px; padding: 14px; box-shadow: 0 2px 8px rgba(28, 21, 38, 0.05); }
.cp-card .cp-inner { display: flex; flex-direction: column; }
.cp-card h4 { font-size: 13.5px; font-weight: 700; font-family: "Inter", sans-serif; margin-bottom: 2px; }
.cp-card .sub { font-size: 11px; color: var(--cfnt); margin-bottom: 10px; }
.cp-card .donut-svg { width: 116px; height: 116px; }
.cp-card .donut-center b { font-size: 19px; }
.cp-card .donut-center span { font-size: 10px; }
.cp-card .pipe-row { font-size: 12px; gap: 8px; }
.cp-card .pipe-row i { width: 9px; height: 9px; flex-basis: 9px; }
.cp-card .pipe-row em { font-size: 10.5px; width: 34px; }
.cp-card .pipe-legend { gap: 8px; margin-top: 6px; }
.cp-card .card-arrow { display: none; }

.cp-pills { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.cp-pills::-webkit-scrollbar { display: none; }
.cp-pill {
  flex: 0 0 auto; border: 1px solid var(--cline); background: var(--card); color: var(--cink);
  font-size: 12px; font-weight: 600; border-radius: 999px; padding: 8px 15px; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.cp-pill i { width: 7px; height: 7px; border-radius: 50%; background: var(--sc); }
.cp-pill.on { background: var(--sc); border-color: var(--sc); color: #fff; }
.cp-pill.on i { background: #fff; }
.cp-pill em { font-style: normal; font-size: 10px; opacity: 0.75; }

.cp-lead {
  display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%;
  background: var(--card); border: 1px solid var(--cline); border-left: 4px solid var(--sc);
  border-radius: 12px; padding: 12px 14px; cursor: pointer; text-align: left;
  font-family: "Inter", sans-serif; color: var(--cink);
  transition: transform 0.2s var(--ease), box-shadow 0.2s;
}
.cp-lead:active { transform: scale(0.985); }
.cp-lead b { font-size: 13.5px; display: block; }
.cp-lead small { font-size: 11px; color: var(--cfnt); display: block; margin-top: 1px; }
.cp-lead-move { flex: 0 0 auto; font-size: 11px; font-weight: 600; color: var(--mp); display: inline-flex; align-items: center; gap: 3px; }
.cp-lead-move em { font-style: normal; font-size: 15px; line-height: 1; }
.cp-empty { text-align: center; font-size: 12px; color: var(--cfnt); padding: 26px 0; }

/* move-to bottom sheet (the real app's MoveStageSheet) */
.cp-scrim {
  position: absolute; inset: 0; z-index: 30;
  background: rgba(24, 14, 36, 0.34);
  backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px);
  animation: scrimIn 0.25s ease;
}
@keyframes scrimIn { from { opacity: 0; } }
.cp-sheet {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 31;
  background: var(--card); border-radius: 20px 20px 0 0; padding: 10px 14px 18px;
  box-shadow: 0 -12px 44px rgba(28, 21, 38, 0.3);
  animation: sheetUp 0.3s var(--ease);
}
@keyframes sheetUp { from { transform: translateY(48px); opacity: 0; } }
.cp-grab { display: block; width: 38px; height: 4px; border-radius: 999px; background: var(--cline); margin: 0 auto 10px; }
.cp-sheet h5 { font-size: 14px; font-weight: 700; font-family: "Inter", sans-serif; }
.cp-sheet-sub { font-size: 11px; color: var(--cmut); margin: 1px 0 10px; }
.cp-cur {
  display: inline-block; font-size: 10px; font-weight: 700; border-radius: 999px; padding: 1px 9px;
  background: color-mix(in srgb, var(--sc) 14%, #ffffff); color: var(--sc);
}
.cp-srow {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 8px;
  border: 0; background: none; border-radius: 12px; cursor: pointer; text-align: left;
  font-family: "Inter", sans-serif; font-size: 13.5px; font-weight: 600; color: var(--cink);
}
.cp-srow:hover { background: color-mix(in srgb, var(--sc) 7%, transparent); }
.cp-sq {
  width: 34px; height: 34px; border-radius: 10px; flex: 0 0 34px;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--sc) 13%, #ffffff); color: var(--sc);
}
.cp-sq svg { width: 14px; height: 14px; }
.cp-srow em { margin-left: auto; font-style: normal; color: var(--sc); font-size: 17px; }

/* freshly added lead pop */
.lead-fresh { animation: popIn 0.55s var(--ease); }
@keyframes popIn { 0% { transform: scale(0.85); opacity: 0; } 60% { transform: scale(1.03); } 100% { transform: none; opacity: 1; } }

/* ============================================================
   MAKE IT YOURS
   ============================================================ */
.demo { padding: 110px 0 100px; background: var(--vellum); position: relative; }
.demo::before {
  content: ""; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: min(720px, 80%); height: 1px;
  background: linear-gradient(90deg, transparent, rgba(194, 155, 69, 0.55), transparent);
}
.demo .section-title em { color: var(--lapis); }
.demo-grid { display: grid; grid-template-columns: 340px 1fr; gap: 40px; align-items: center; }
.demo-controls { display: flex; flex-direction: column; gap: 22px; }

.dropzone {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  text-align: center; padding: 34px 20px; cursor: pointer;
  border: 1.6px dashed rgba(36, 60, 140, 0.4); border-radius: 18px;
  background: rgba(255, 253, 248, 0.75);
  transition: border-color 0.25s, background 0.25s, transform 0.25s var(--ease);
}
.dropzone:hover, .dropzone.drag { border-color: var(--lapis); background: var(--paper); transform: translateY(-2px); }
.dz-icon { color: var(--lapis); }
.dz-title { font-weight: 700; font-size: 16px; font-family: "Cardo", serif; }
.dz-sub { font-size: 13px; color: var(--ink-soft); }

.field label { display: block; font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 7px; }
.field input {
  width: 100%; padding: 12px 16px; font-size: 15px; font-family: "Inter", sans-serif; color: var(--ink);
  border: 1px solid var(--line); border-radius: 12px; background: var(--paper); outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus { border-color: var(--lapis); box-shadow: 0 0 0 3px rgba(36, 60, 140, 0.12); }

.swatch-label { font-size: 12px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: 9px; }
.swatches { display: flex; gap: 12px; }
.swatch {
  display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600;
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 7px 16px 7px 8px;
}
.swatch i { width: 24px; height: 24px; border-radius: 50%; display: block; background: var(--sw, #ccc); box-shadow: inset 0 1px 2px rgba(0,0,0,0.2); }

.privacy-note { font-size: 12.5px; color: var(--ink-soft); }
.privacy-note::before { content: "\1F512\00a0\00a0"; font-size: 11px; }

.demo-stage { min-width: 0; }

/* ============================================================
   FEATURES / BENTO
   ============================================================ */
.features { content-visibility: auto; contain-intrinsic-size: auto 1400px; padding: 110px 0; background: linear-gradient(180deg, var(--vellum) 0%, var(--vellum-deep) 100%); }
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.cell {
  grid-column: span 2;
  background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 28px;
  box-shadow: 0 2px 12px rgba(44, 38, 32, 0.05);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
  display: flex; flex-direction: column; gap: 10px;
}
.cell:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(44, 38, 32, 0.1); }
.cell h3 { font-size: 21px; }
.cell p { font-size: 14px; color: var(--ink-soft); }
.cell-wide {
  grid-column: 1 / -1; display: grid; align-items: center;
  grid-template-columns: minmax(280px, 5fr) minmax(340px, 7fr);
  gap: 40px; padding: 34px 38px;
}
.cell-wide .cell-text { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.cell-wide .mini { min-width: 0; }
.bento > .cell-wide:nth-of-type(2) { grid-template-columns: minmax(340px, 7fr) minmax(280px, 5fr); }
.bento > .cell-wide:nth-of-type(2) .cell-text { order: 2; }
.cell-wide h3 { font-size: 24px; }
.cell-wide p { font-size: 15px; max-width: 46ch; }
.cell-foot { font-size: 12px !important; color: var(--gold) !important; font-weight: 600; margin-top: auto; }

.chip-row { display: flex; flex-wrap: wrap; gap: 7px; }
.chip {
  font-size: 11.5px; font-weight: 600; color: var(--ink-soft);
  background: #f5f1e6; border: 1px solid var(--line); border-radius: 999px; padding: 4px 12px;
}
.chip-wa { background: #e7f6e9; border-color: #cbe8cf; color: #1f7a33; }
.chip-ok { background: #fdf6e4; border-color: #eddfb8; color: #8a6a1f; }

/* mini kanban */
.mini-kanban { display: flex; gap: 12px; }
.cell-wide .mk-card { font-size: 12px; padding: 8px 11px; }
.cell-wide .mk-head { font-size: 11px; }
.mk-col { flex: 1; background: #f6f2e7; border: 1px solid var(--line); border-radius: 12px; padding: 9px; display: flex; flex-direction: column; gap: 7px; }
.mk-head { font-size: 10px; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-soft); display: flex; align-items: center; gap: 5px; }
.dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dot-green { background: #45725f; } .dot-amber { background: #c98a1e; } .dot-gold { background: var(--gold); }
.mk-card {
  background: var(--paper); border: 1px solid var(--line); border-left: 3px solid #45725f;
  border-radius: 8px; padding: 6px 9px; font-size: 11px; font-weight: 600; line-height: 1.3;
}
.mk-card small { display: block; font-weight: 500; color: var(--ink-soft); font-size: 9.5px; }
.mk-col:nth-child(2) .mk-card { border-left-color: #c98a1e; }
.mk-won { border-left-color: var(--gold) !important; background: #fdf9ec; }
.mk-new { animation: cardIn 5s ease infinite; }
@keyframes cardIn { 0%, 12% { opacity: 0; transform: translateY(-8px); } 24%, 100% { opacity: 1; transform: none; } }

/* mini doc */
.mini-doc { position: relative; display: flex; justify-content: center; }
.md-page {
  width: 190px; background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 14px;
  box-shadow: 0 10px 26px rgba(44, 38, 32, 0.14); transform: rotate(1.6deg);
}
.md-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.md-logo { width: 34px; height: 9px; border-radius: 3px; background: var(--lapis); }
.md-title { font-size: 8.5px; font-weight: 700; letter-spacing: 0.12em; color: var(--lapis); }
.md-rule { height: 2px; background: linear-gradient(90deg, var(--gold), rgba(194, 155, 69, 0.25)); border-radius: 2px; margin-bottom: 10px; }
.md-line { height: 6px; border-radius: 3px; background: #ece6d6; display: inline-block; }
.w80 { width: 80%; margin-bottom: 5px; } .w60 { width: 60%; margin-bottom: 10px; }
.w50 { width: 50%; } .w40 { width: 40%; } .w34 { width: 34%; } .w14 { width: 14%; }
.md-table { display: flex; flex-direction: column; gap: 6px; margin-bottom: 10px; }
.md-row { display: flex; justify-content: space-between; }
.md-total { display: flex; justify-content: space-between; align-items: center; border-top: 1.5px solid var(--lapis); padding-top: 7px; font-size: 9px; font-weight: 700; }
.md-amt { color: var(--lapis); font-size: 11px; }
.md-badge {
  position: absolute; right: -2%; bottom: -16px; background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  color: #241c08; font-size: 11px; font-weight: 700; border-radius: 999px; padding: 6px 14px;
  box-shadow: 0 8px 18px rgba(138, 106, 31, 0.35); transform: rotate(-2deg);
}

/* tax rows */
.tax-rows { display: flex; flex-direction: column; gap: 7px; margin: 4px 0; }
.tax-row {
  display: flex; justify-content: space-between; align-items: center; gap: 8px;
  background: #f6f2e7; border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 12px;
}
.tax-row b { font-weight: 600; color: var(--ink); font-size: 11.5px; }

/* aged bars */
.age-bars { display: flex; flex-direction: column; gap: 9px; margin-top: 6px; }
.ab { display: flex; flex-direction: column; gap: 3px; }
.ab-bar { display: block; height: 10px; border-radius: 999px; width: var(--w); background: linear-gradient(90deg, var(--lapis-bright), var(--lapis)); }
.ab-mid { background: linear-gradient(90deg, #d9ab4d, var(--gold)); }
.ab-hot { background: linear-gradient(90deg, #c65540, #ae3b2a); }
.ab label { font-size: 10.5px; color: var(--ink-soft); }

/* chat minis */
.chat-mini { display: flex; flex-direction: column; gap: 7px; margin-top: 4px; }
.cm-bubble {
  align-self: flex-start; max-width: 92%; background: #f6f2e7; border: 1px solid var(--line);
  border-radius: 12px 12px 12px 4px; padding: 7px 12px; font-size: 12px;
}
.cm-mine { align-self: flex-end; background: var(--lapis); color: #fff; border: 0; border-radius: 12px 12px 4px 12px; }
.cm-remind {
  align-self: stretch; text-align: center; font-size: 11px; font-weight: 600; color: #8a6a1f;
  background: #fdf6e4; border: 1px dashed #e3cf9a; border-radius: 999px; padding: 5px 10px;
}

/* stock bar */
.stock-bar { display: flex; gap: 4px; height: 30px; margin: 8px 0 2px; border-radius: 10px; overflow: hidden; }
.sb-seg { display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }
.sb-free { background: linear-gradient(180deg, #518468, #45725f); }
.sb-committed { background: linear-gradient(180deg, #d9ab4d, var(--gold)); color: #241c08; }

/* ============================================================
   TRADES MARQUEE
   ============================================================ */
.trades { padding: 100px 0 90px; background: var(--vellum-deep); overflow: hidden; }
.trades-head { text-align: center; }
.trades-head .section-sub { margin-left: auto; margin-right: auto; }
.marquee { margin-top: 10px; overflow: hidden; max-width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee-track { display: flex; gap: 12px; width: max-content; animation: marquee 36s linear infinite; will-change: transform; padding: 4px 0; }
.marquee-track span {
  font-family: "Cardo", serif; font-size: 19px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; padding: 10px 26px; white-space: nowrap;
}
@keyframes marquee { to { transform: translateX(-50%); } }

/* ============================================================
   TRUST
   ============================================================ */
.trust {
  content-visibility: auto; contain-intrinsic-size: auto 700px;
  position: relative; overflow: hidden; padding: 120px 0; color: var(--white-warm);
  background:
    radial-gradient(1000px 500px at 20% -10%, rgba(61, 89, 185, 0.3), transparent 60%),
    linear-gradient(180deg, var(--night-2) 0%, var(--night) 100%);
}
.trust::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--noise); opacity: 0.035; }
.trust-glow {
  position: absolute; right: -140px; top: 30%; width: 560px; height: 560px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 178, 96, 0.12), transparent 74%); transform: translateZ(0);
}
.trust .section-title { color: var(--white-warm); }
.trust .kicker { color: var(--gold-bright); }
.trust-grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 46px; position: relative; }
.tcard {
  background: rgba(24, 33, 66, 0.55); border: 1px solid rgba(255, 233, 194, 0.14); border-radius: 18px;
  padding: 28px; transition: border-color 0.3s, transform 0.35s var(--ease);
}
.tcard:hover { border-color: rgba(255, 233, 194, 0.35); transform: translateY(-4px); }
.tcard h3 { font-size: 20px; color: var(--gold-bright); margin-bottom: 9px; }
.tcard p { font-size: 14px; color: rgba(247, 243, 233, 0.68); }

/* ============================================================
   PRICING
   ============================================================ */
/* ============================================================
   AI EMPLOYEE
   ============================================================ */
.ai-emp {
  position: relative; overflow: hidden; padding: 120px 0 110px; color: var(--white-warm);
  background:
    radial-gradient(900px 480px at 82% -8%, rgba(194, 155, 69, 0.16), transparent 62%),
    radial-gradient(900px 620px at 8% 20%, rgba(61, 89, 185, 0.26), transparent 60%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 55%, var(--night) 100%);
  content-visibility: auto; contain-intrinsic-size: auto 900px;
}
.ai-emp::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--noise); opacity: 0.035; }
.ai-glow {
  position: absolute; left: -120px; bottom: -140px; width: 520px; height: 520px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 178, 96, 0.12), transparent 74%); transform: translateZ(0); pointer-events: none;
}
.ai-emp .section-title { color: var(--white-warm); }
.ai-emp .section-title em { font-style: italic; color: var(--gold-bright); }
.kicker-gold { color: var(--gold-bright); }
.section-sub.on-dark { color: rgba(247, 243, 233, 0.72); }
.ai-grid { display: grid; gap: 34px; grid-template-columns: minmax(300px, 460px) 1fr; align-items: start; margin-top: 48px; position: relative; z-index: 1; }
.ai-chat {
  background: rgba(16, 24, 52, 0.75); border: 1px solid rgba(255, 233, 194, 0.18); border-radius: 20px;
  padding: 18px 18px 20px; box-shadow: 0 24px 60px rgba(4, 8, 24, 0.45);
}
.aic-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--gold-bright); margin-bottom: 14px; }
.aic-dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 8px rgba(74, 222, 128, 0.8); }
.aic-body { display: flex; flex-direction: column; gap: 9px; }
.aic-bubble {
  max-width: 88%; padding: 9px 13px; border-radius: 14px 14px 14px 4px; font-size: 13.5px; line-height: 1.45;
  background: rgba(255, 253, 248, 0.09); color: rgba(247, 243, 233, 0.92);
}
.aic-user { align-self: flex-end; border-radius: 14px 14px 4px 14px; background: linear-gradient(180deg, var(--lapis-bright), var(--lapis)); color: #fff; }
.aic-action { font-size: 11.5px; color: var(--gold-bright); padding: 7px 2px 0; letter-spacing: 0.01em; }
.ai-points { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.ai-point {
  background: rgba(24, 33, 66, 0.55); border: 1px solid rgba(255, 233, 194, 0.14); border-radius: 18px; padding: 24px;
  transition: border-color 0.3s, transform 0.35s var(--ease);
}
.ai-point:hover { border-color: rgba(255, 233, 194, 0.35); transform: translateY(-4px); }
.ai-point h3 { font-size: 18.5px; color: var(--gold-bright); margin-bottom: 8px; }
.ai-point p { font-size: 13.5px; color: rgba(247, 243, 233, 0.68); }
.ai-cta { display: flex; align-items: center; justify-content: center; gap: 22px; flex-wrap: wrap; margin-top: 44px; position: relative; z-index: 1; }
.ai-status { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; color: rgba(247, 243, 233, 0.75); }
.cell-link { color: var(--lapis-bright); font-weight: 600; text-decoration: none; white-space: nowrap; }
.cell-link:hover { text-decoration: underline; }
.tcard-wide { grid-column: 1 / -1; }

/* ============================================================
   EARLY ACCESS / WAITING LIST
   ============================================================ */
.early { padding: 116px 0 104px; background: var(--vellum); content-visibility: auto; contain-intrinsic-size: auto 560px; }
.early-wrap { max-width: 760px; }
.wl-form { margin-top: 38px; }
.wl-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; margin-bottom: 12px; }
.wl-form input {
  width: 100%; padding: 14px 18px; font: inherit; font-size: 15px; color: var(--ink);
  background: var(--paper); border: 1px solid var(--line); border-radius: 999px; outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}
.wl-form input:focus { border-color: var(--lapis-bright); box-shadow: 0 0 0 3px rgba(61, 89, 185, 0.15); }
.wl-form input.wl-bad { border-color: #c2452e; box-shadow: 0 0 0 3px rgba(194, 69, 46, 0.15); }
.wl-form .btn { width: 100%; text-align: center; }
.wl-note, .wl-done { font-size: 13.5px; color: var(--ink-soft); margin-top: 14px; }
.wl-done { color: #2e7d4f; font-weight: 600; font-size: 15px; }


/* ============================================================
   FAQ
   ============================================================ */
.faq { content-visibility: auto; contain-intrinsic-size: auto 700px; padding: 100px 0 110px; background: var(--vellum); }
.faq::before { content: ""; display: block; width: min(720px, 80%); height: 1px; margin: 0 auto 96px; background: linear-gradient(90deg, transparent, rgba(194, 155, 69, 0.5), transparent); }
.faq-wrap { max-width: 780px; }
.qa-list { display: flex; flex-direction: column; gap: 12px; }
.qa { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color 0.25s; }
.qa[open] { border-color: rgba(194, 155, 69, 0.55); }
.qa summary {
  cursor: pointer; list-style: none; padding: 19px 54px 19px 24px; position: relative;
  font-family: "Cardo", serif; font-weight: 700; font-size: 18px;
}
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  font-family: "Inter", sans-serif; font-size: 20px; font-weight: 400; color: var(--gold);
  transition: transform 0.25s var(--ease);
}
.qa[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.qa p { padding: 0 24px 20px; font-size: 14.5px; color: var(--ink-soft); }

/* ============================================================
   FINAL CTA + FOOTER
   ============================================================ */
.cta-final {
  position: relative; overflow: hidden; text-align: center; padding: 140px 0 130px; color: var(--white-warm);
  background:
    radial-gradient(900px 460px at 50% 120%, rgba(61, 89, 185, 0.35), transparent 65%),
    linear-gradient(180deg, var(--night) 0%, var(--night-2) 100%);
}
.cta-final::after { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: var(--noise); opacity: 0.035; }
.cta-glow {
  position: absolute; left: 50%; top: 0; transform: translate(-50%, -40%);
  width: 780px; height: 480px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(216, 178, 96, 0.16), transparent 74%); transform: translate(-50%, -40%) translateZ(0);
}
.cta-mark {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 460px; opacity: 0.05; pointer-events: none;
}
.cta-title { position: relative; font-size: clamp(36px, 5.6vw, 64px); margin-bottom: 18px; color: var(--white-warm); }
.cta-title em {
  font-style: italic; font-weight: 400;
  background: linear-gradient(100deg, #e8cd8a 10%, var(--gold-bright) 50%, #a8853a 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.cta-sub { position: relative; color: rgba(247, 243, 233, 0.7); margin-bottom: 36px; font-size: 17px; }

footer { background: var(--night); color: rgba(247, 243, 233, 0.6); border-top: 1px solid rgba(255, 233, 194, 0.1); }
.foot-grid { display: flex; flex-wrap: wrap; gap: 30px; align-items: flex-start; justify-content: space-between; padding: 46px 24px 30px; }
.foot-brand p { font-size: 13px; max-width: 300px; margin-top: 14px; color: rgba(247, 243, 233, 0.45); }
.foot-links { display: flex; flex-wrap: wrap; gap: 22px; font-size: 13.5px; align-items: center; }
.foot-links a { text-decoration: none; transition: color 0.2s; }
.foot-links a:hover { color: var(--gold-bright); }
.foot-legal { padding: 18px 24px 34px; font-size: 12px; color: rgba(247, 243, 233, 0.35); border-top: 1px solid rgba(255, 253, 248, 0.06); }

/* ============================================================
   REVEALS + RESPONSIVE
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.8s var(--ease), transform 0.8s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.34s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
  .mk-new { animation: none; }
  .kb-hint { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

@media (max-width: 1000px) {
  .demo-grid { grid-template-columns: 1fr; }
  .demo-controls { max-width: 560px; }
  .cell { grid-column: span 3; }
  .cell-wide, .bento > .cell-wide:nth-of-type(2) { grid-column: 1 / -1; grid-template-columns: 1fr; gap: 22px; }
  .bento > .cell-wide:nth-of-type(2) .cell-text { order: 0; }
}

@media (max-width: 680px) {
  .nav-links { gap: 18px; }
  .nav-links a.hide-m { display: none; }
  .hero { padding-top: 116px; }
  .window-stage { margin-top: 44px; }
  .rail { margin-top: 54px; }
  .demo, .features, .trades, .trust, .ai-emp, .early, .faq { padding-top: 76px; padding-bottom: 72px; }
  .ai-grid { grid-template-columns: 1fr; }
  .wl-row { grid-template-columns: 1fr; }
  .cta-final { padding: 96px 0 90px; }
  .cell, .cell-wide { grid-column: span 6; }
  .cell-wide { padding: 28px; }
  .section-sub { font-size: 15px; }
  .foot-grid { flex-direction: column; }
  .stage-caption { padding: 0 8px; }
}
