/* yayce — dark, minimal, Supabase-inspired. Dark is the only mode. */

:root {
  --bg: #171717;
  --surface: #1c1c1c;
  --raised: #222222;
  --border: #2e2e2e;
  --border-strong: #3a3a3a;
  --text: #ededed;
  --muted: #8f8f8f;
  --accent: #3ecf8e;
  --accent-text: #0a1f15;
  --danger: #f87171;
  --warn: #fbbf24;
  --radius: 6px;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { color-scheme: dark; }

body {
  background: var(--bg);
  color: var(--text);
  font: 14px/1.55 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--text); text-decoration: none; }
a.link { color: var(--accent); }
a.link:hover { text-decoration: underline; }

.mono { font-family: var(--mono); font-size: 12.5px; }
.muted { color: var(--muted); }

/* ---- app shell ---- */

.shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 220px;
  flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
}

.brand {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 16px;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.brand-dot {
  width: 9px; height: 9px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  box-shadow: 0 0 8px color-mix(in srgb, var(--accent) 60%, transparent);
}

.ws-switch { padding: 12px 12px 4px; }
.ws-switch select {
  width: 100%;
  background: var(--raised);
  font-size: 12.5px;
  padding: 6px 8px;
}

.invite-link { min-width: 260px; max-width: 420px; cursor: copy; }

.sidebar nav { padding: 10px 8px; display: flex; flex-direction: column; gap: 1px; }

.sidebar nav a {
  display: block;
  padding: 7px 10px;
  border-radius: var(--radius);
  color: var(--muted);
  font-size: 13.5px;
}
.sidebar nav a:hover { color: var(--text); background: var(--raised); }
.sidebar nav a.active { color: var(--text); background: var(--raised); }

.sidebar-footer {
  margin-top: auto;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.user-email {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
a.user-email:hover { color: var(--text); text-decoration: underline; }

.main { flex: 1; padding: 36px 44px; max-width: 1060px; }

.page-head { margin-bottom: 24px; }
.page-head h1 { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.page-head .sub { color: var(--muted); margin-top: 3px; font-size: 13.5px; }

/* ---- cards ---- */

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 20px;
  margin-bottom: 18px;
}

.card h2 {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 4px;
}
.card .card-sub { color: var(--muted); font-size: 13px; margin-bottom: 16px; }

.stat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}
.stat { padding: 18px 20px; margin: 0; }
.stat .stat-label { color: var(--muted); font-size: 12.5px; }
.stat .stat-value { font-size: 26px; font-weight: 600; letter-spacing: -0.02em; margin-top: 4px; }
.stat .stat-note { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* ---- tables ---- */

.table-card { padding: 0; overflow-x: auto; }

table { width: 100%; border-collapse: collapse; font-size: 13.5px; }

th {
  text-align: left;
  font-weight: 500;
  font-size: 12px;
  color: var(--muted);
  padding: 10px 16px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

td {
  padding: 11px 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

tbody tr:last-child td { border-bottom: none; }
tbody tr:hover { background: color-mix(in srgb, var(--raised) 55%, transparent); }

.cell-strong { font-weight: 500; }

.chip {
  display: inline-block;
  font-size: 11.5px;
  padding: 1px 8px;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  color: var(--muted);
}
.chip.ok {
  color: var(--accent);
  border-color: color-mix(in srgb, var(--accent) 40%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent);
}
.chip.warn {
  color: var(--warn);
  border-color: color-mix(in srgb, var(--warn) 40%, transparent);
  background: color-mix(in srgb, var(--warn) 10%, transparent);
}

/* ---- forms ---- */

label {
  display: block;
  font-size: 12.5px;
  color: var(--muted);
  margin-bottom: 5px;
}

input, select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 7px 10px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.12s;
}
input:focus { border-color: var(--accent); }
input::placeholder { color: #5c5c5c; }

.form-inline {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.form-inline .field { flex: 1; min-width: 170px; }

.form-grid { display: flex; flex-direction: column; gap: 14px; max-width: 460px; }

.form-error { color: var(--danger); font-size: 12.5px; width: 100%; }
.form-notice { color: var(--accent); font-size: 12.5px; width: 100%; margin-bottom: 8px; }
.form-hint { color: var(--muted); font-size: 12px; margin-top: 5px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--raised);
  border: 1px solid var(--border-strong);
  color: var(--text);
  border-radius: var(--radius);
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.12s, border-color 0.12s;
}
.btn:hover { border-color: #4a4a4a; }

.btn.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--accent-text);
}
.btn.primary:hover { filter: brightness(1.08); }

.btn.ghost { background: transparent; }
.btn.sm { padding: 4px 10px; font-size: 12px; }

.plan-assign {
  display: flex;
  gap: 6px;
  align-items: center;
}
.plan-assign select {
  width: auto;
  min-width: 110px;
  padding: 4px 8px;
  font-size: 12.5px;
}

select {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 7px 10px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
}
select:focus { border-color: var(--accent); }

.saved-chip {
  display: inline-block;
  color: var(--accent);
  font-size: 12.5px;
  margin-left: 10px;
}

/* ---- CRM ---- */

.toolbar { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.row-link { cursor: pointer; }

.tag-chip { font-size: 11px; }

.detail-grid {
  display: grid;
  grid-template-columns: minmax(320px, 7fr) minmax(280px, 5fr);
  gap: 18px;
  align-items: start;
}
@media (max-width: 900px) { .detail-grid { grid-template-columns: 1fr; } }

.field-pair { display: flex; gap: 12px; }
.field-pair .field { flex: 1; }

textarea {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  color: var(--text);
  padding: 8px 10px;
  font-size: 13.5px;
  font-family: inherit;
  outline: none;
  resize: vertical;
}
textarea:focus { border-color: var(--accent); }

.timeline { display: flex; flex-direction: column; gap: 14px; }
.timeline-item { display: flex; gap: 10px; }
.timeline-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border-strong);
  margin-top: 6px;
  flex-shrink: 0;
}
.timeline-dot.accent { background: var(--accent); }
.timeline-body { font-size: 13px; white-space: pre-wrap; word-break: break-word; }
.timeline-meta { font-size: 11.5px; color: var(--muted); margin-top: 2px; }

.kanban {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  overflow-x: auto;
  padding-bottom: 12px;
}
.kanban-col {
  flex: 1;
  min-width: 220px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}
.kanban-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
}
.kanban-head .muted { font-size: 11.5px; font-weight: 400; }
.kanban-cards {
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 120px;
}
.deal-card {
  background: var(--raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 10px 12px;
  cursor: grab;
}
.deal-card:active { cursor: grabbing; }
.deal-ghost { opacity: 0.4; border-style: dashed; }
.deal-title { font-size: 13px; font-weight: 500; }
.deal-contact { font-size: 12px; color: var(--muted); margin-top: 2px; }
.deal-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 8px;
}
.deal-value { font-size: 12.5px; color: var(--accent); font-weight: 500; }
.deal-actions { display: flex; gap: 4px; opacity: 0; transition: opacity 0.12s; }
.deal-card:hover .deal-actions { opacity: 1; }
.deal-actions form { display: inline; }
.deal-actions button {
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--muted);
  border-radius: 4px;
  width: 22px; height: 22px;
  font-size: 12px;
  cursor: pointer;
  line-height: 1;
}
.deal-actions button:hover { color: var(--text); border-color: #4a4a4a; }

/* ---- bare pages (login / landing) ---- */

.bare {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.auth-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 32px;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 16px;
  margin-bottom: 6px;
}
.auth-sub { color: var(--muted); font-size: 13px; margin-bottom: 24px; }
.auth-card .field { margin-bottom: 14px; }
.auth-card .btn { width: 100%; justify-content: center; margin-top: 6px; }

.task-check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: transparent;
  color: transparent;
  cursor: pointer;
  font-size: 12px;
  line-height: 1;
}
.task-check:hover { color: var(--accent); border-color: var(--accent); }

/* ---- segment builder ---- */

.cond-row {
  display: flex;
  gap: 8px;
  align-items: center;
  margin-bottom: 8px;
}
.cond-row select { width: auto; min-width: 130px; }
.cond-row input { flex: 1; }

/* ---- modal ---- */

dialog.modal {
  /* the global `* { margin: 0 }` reset kills the UA's centering — restore it */
  margin: auto;
  position: fixed;
  inset: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  color: var(--text);
  padding: 0;
  width: min(600px, 94vw);
  max-height: 88vh;
}
dialog.modal::backdrop { background: rgba(0, 0, 0, 0.62); }
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-head h2 { font-size: 15px; font-weight: 600; }
.modal-body { padding: 18px 20px; overflow-y: auto; max-height: 60vh; }
.modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid var(--border);
}

/* ---- marketing site ---- */

body.mkt { display: flex; flex-direction: column; min-height: 100vh; }

.mkt-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 14px 28px;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(8px);
  z-index: 10;
}
.mkt-brand {
  display: flex; align-items: center; gap: 8px;
  font-weight: 650; font-size: 16px; letter-spacing: -0.01em;
}
.mkt-links { display: flex; gap: 18px; }
.mkt-links a { color: var(--muted); font-size: 13.5px; }
.mkt-links a:hover, .mkt-links a.active { color: var(--text); }
.mkt-cta { margin-left: auto; display: flex; gap: 10px; }

.mkt-main { flex: 1; width: 100%; max-width: 1060px; margin: 0 auto; padding: 0 24px 60px; }

.mkt-hero { text-align: center; padding: 84px 0 40px; }
.mkt-hero.small { padding: 60px 0 20px; }
.mkt-eyebrow {
  color: var(--accent);
  font-size: 13px;
  font-weight: 500;
  margin-bottom: 16px;
  letter-spacing: 0.02em;
}
.mkt-hero h1 {
  font-size: clamp(30px, 5vw, 46px);
  font-weight: 680;
  letter-spacing: -0.03em;
  line-height: 1.12;
  margin-bottom: 18px;
}
.mkt-lede {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.65;
  max-width: 640px;
  margin: 0 auto 26px;
}
.mkt-hero-cta { display: flex; gap: 12px; justify-content: center; }

.mkt-section { padding: 36px 0; }
.mkt-section h2 {
  font-size: 22px;
  font-weight: 650;
  letter-spacing: -0.02em;
  text-align: center;
  margin-bottom: 26px;
}
.mkt-grid { display: grid; gap: 16px; }
.mkt-grid.two { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.mkt-grid.three { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.mkt-grid .card { margin-bottom: 0; }
.mkt-grid h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.mkt-grid p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.mkt-step {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--accent) 14%, transparent);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 13px;
  margin-bottom: 12px;
}

.mkt-request { max-width: 560px; margin: 0 auto; padding: 28px; }
.mkt-request h2 { text-align: left; margin-bottom: 8px; }
.mkt-request > p { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }

.mkt-center { text-align: center; margin-top: 26px; }

.mkt-price-card { text-align: center; padding: 28px 22px; }
.mkt-price { font-size: 34px; font-weight: 680; letter-spacing: -0.02em; margin: 10px 0 18px; }
.mkt-list { list-style: none; text-align: left; margin: 0 auto 22px; max-width: 240px; }
.mkt-list li { color: var(--muted); font-size: 13.5px; padding: 5px 0 5px 22px; position: relative; }
.mkt-list li::before { content: "✓"; color: var(--accent); position: absolute; left: 0; }

.mkt-faq { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 16px; }
.mkt-faq h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.mkt-faq p { color: var(--muted); font-size: 13.5px; line-height: 1.6; }

.mkt-footer {
  padding: 32px 28px;
  border-top: 1px solid var(--border);
  font-size: 13px;
  color: var(--muted);
}
.mkt-footer-grid { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.mkt-footer-links { display: flex; flex-direction: column; gap: 8px; }
.mkt-footer-links a { color: var(--muted); font-size: 13px; }
.mkt-footer-links a:hover { color: var(--text); }

/* ---- production design layer ---- */

.mkt h1, .mkt h2, .mkt-brand {
  font-family: "Bricolage Grotesque", -apple-system, "Segoe UI", sans-serif;
}
.mkt-hero h1 { font-weight: 800; }
.mkt-accent-word {
  font-family: "Newsreader", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  color: var(--accent);
  font-size: 1.06em;
}
.mkt-glow { position: relative; }
.mkt-glow::before {
  content: "";
  position: absolute;
  inset: -40px -80px auto;
  height: 340px;
  background: radial-gradient(ellipse 60% 100% at 50% 0%,
    color-mix(in srgb, var(--accent) 13%, transparent), transparent 70%);
  pointer-events: none;
}
.mkt-hero > * { position: relative; }

@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.reveal { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) backwards; }
.r1 { animation-delay: 0.08s; } .r2 { animation-delay: 0.16s; }
.r3 { animation-delay: 0.24s; } .r4 { animation-delay: 0.36s; }
@media (prefers-reduced-motion: reduce) { .reveal { animation: none; } }

/* CSS product mockup */
.mkt-frame {
  margin: 52px auto 0;
  max-width: 720px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, 0.8),
    0 0 0 1px color-mix(in srgb, var(--accent) 8%, transparent);
  overflow: hidden;
  text-align: left;
}
.mkt-frame-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 14px; border-bottom: 1px solid var(--border);
}
.mkt-frame-bar span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-strong); }
.mkt-frame-bar i {
  font-style: normal; font-family: var(--mono); font-size: 11px; color: var(--muted);
  margin-left: 12px; background: var(--bg); border: 1px solid var(--border);
  border-radius: 5px; padding: 2px 10px;
}
.mkt-frame-body { display: flex; min-height: 190px; }
.mkt-frame-side { width: 120px; border-right: 1px solid var(--border); padding: 12px; }
.mkt-frame-side b { display: block; width: 60px; height: 9px; border-radius: 4px; background: var(--accent); opacity: 0.85; margin-bottom: 14px; }
.mkt-frame-side u { display: block; width: 80%; height: 7px; border-radius: 4px; background: var(--raised); margin-bottom: 9px; }
.mkt-frame-side u.on { background: color-mix(in srgb, var(--accent) 35%, var(--raised)); }
.mkt-frame-cols { flex: 1; display: flex; gap: 10px; padding: 12px; }
.mkt-frame-cols > div { flex: 1; background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 8px; }
.mkt-frame-cols s {
  display: block; text-decoration: none; font-size: 9.5px; color: var(--muted);
  background: var(--raised); border: 1px solid var(--border-strong);
  border-radius: 5px; padding: 7px 8px; margin-bottom: 7px; min-height: 12px;
}
.mkt-frame-cols s.hot { border-color: color-mix(in srgb, var(--accent) 45%, transparent); color: var(--text); }
@media (max-width: 640px) { .mkt-frame-side { display: none; } }

@media (max-width: 640px) {
  .mkt-nav { flex-wrap: wrap; gap: 12px; padding: 12px 16px; }
  .mkt-cta { margin-left: 0; }
  .mkt-hero { padding: 48px 0 28px; }
  .mkt-hero-cta { flex-direction: column; align-items: center; }
}

.hero { text-align: center; max-width: 520px; }
.hero .brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: 34px;
  font-weight: 650;
  letter-spacing: -0.03em;
  line-height: 1.2;
  margin-bottom: 14px;
}
.hero p { color: var(--muted); font-size: 15px; margin-bottom: 28px; }

/* ================================================================
   marketing — production design layer v2
   Extends the block above. Uses the app tokens + --accent theme
   presets, so the platform's chosen accent still drives the site.
   ================================================================ */

.mkt-main { max-width: 1120px; padding-bottom: 20px; }
.mkt-section { padding: clamp(48px, 7vw, 84px) 0; }
.mkt-section.flush { padding-top: 10px; }
.mkt-section > h2 { margin-bottom: 12px; font-size: clamp(23px, 3vw, 32px); }
.mkt-section > h2.left { text-align: left; }
.mkt-sub { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto; font-size: 15px; line-height: 1.6; }
.mkt-hero-cta .btn, .mkt-final .btn { padding: 11px 18px; font-size: 14px; }
.mkt-hide-sm { display: inline-flex; }

/* progressive scroll reveal (only hides when JS is present) */
.mkt-js .reveal-up { opacity: 0; transform: translateY(20px); transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1); }
.mkt-js .reveal-up.in { opacity: 1; transform: none; }

/* ---- live white-label demo ---- */
.mkt-demo { --demo-accent: var(--accent); max-width: 780px; margin: 0 auto; }
.mkt-demo-controls {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: color-mix(in srgb, #000 24%, var(--surface));
  border: 1px solid var(--border-strong); border-bottom: 0;
  border-radius: 12px 12px 0 0; padding: 12px 16px;
}
.mkt-demo-controls .ctl-label { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.mkt-name {
  flex: 1; min-width: 140px; width: auto;
  background: var(--bg); border: 1px solid var(--border-strong); border-radius: 8px;
  color: var(--text); font: 600 13.5px var(--mono); padding: 8px 11px;
}
.mkt-name:focus { border-color: var(--demo-accent); }
.mkt-swatches { display: flex; gap: 8px; }
.swatch {
  width: 24px; height: 24px; border-radius: 50%; padding: 0; cursor: pointer;
  border: 2px solid transparent; box-shadow: 0 0 0 1px var(--border-strong);
  transition: transform .12s ease;
}
.swatch:hover { transform: scale(1.14); }
.swatch[aria-pressed="true"] { border-color: var(--bg); box-shadow: 0 0 0 2px currentColor; }
.mkt-demo .mkt-frame {
  margin: 0; max-width: none; border-radius: 0 0 12px 12px;
  box-shadow: 0 40px 90px -50px color-mix(in srgb, var(--demo-accent) 55%, #000);
  transition: box-shadow .4s ease;
}
.mkt-frame-bar i b { color: var(--text); font-style: normal; font-weight: 600; }
.mkt-frame-brand { display: flex; align-items: center; gap: 7px; padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--border); }
.mkt-frame-brand .d { width: 9px; height: 9px; border-radius: 50%; background: var(--demo-accent); box-shadow: 0 0 8px color-mix(in srgb, var(--demo-accent) 55%, transparent); flex-shrink: 0; }
.mkt-frame-brand em { font-style: normal; font-weight: 700; font-size: 13px; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mkt-demo .mkt-frame-side b { background: var(--demo-accent); }
.mkt-demo .mkt-frame-side u.on { background: color-mix(in srgb, var(--demo-accent) 35%, var(--raised)); }
.mkt-demo .mkt-frame-cols s.hot { border-color: color-mix(in srgb, var(--demo-accent) 45%, transparent); }
.mkt-demo-note { text-align: center; color: var(--muted); font-size: 12px; margin-top: 18px; }

/* ---- proof band ---- */
.mkt-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.brandcard { border: 1px solid var(--border); border-radius: 12px; overflow: hidden; background: var(--surface); --demo-accent: var(--accent); }
.brandcard.b1 { --demo-accent: #7c8cff; }
.brandcard.b2 { --demo-accent: #43c496; }
.brandcard.b3 { --demo-accent: #f2789a; }
.brandcard .bhead { display: flex; align-items: center; gap: 8px; padding: 13px 15px; border-bottom: 1px solid var(--border); }
.brandcard .bhead .d { width: 9px; height: 9px; border-radius: 50%; background: var(--demo-accent); box-shadow: 0 0 8px color-mix(in srgb, var(--demo-accent) 50%, transparent); }
.brandcard .bhead b { font-size: 14px; color: var(--text); }
.brandcard .bhead i { margin-left: auto; font-style: normal; font-size: 11px; color: var(--muted); }
.brandcard .bbody { padding: 16px 15px; }
.brandcard .ln { display: block; height: 8px; border-radius: 4px; background: var(--raised); margin-bottom: 9px; }
.brandcard .ln.a { width: 60%; background: color-mix(in srgb, var(--demo-accent) 70%, var(--raised)); }
.brandcard .ln.b { width: 88%; }
.brandcard .ln.c { width: 44%; }
.brandcard .btag { display: inline-block; margin-top: 6px; font-style: normal; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 6px; background: color-mix(in srgb, var(--demo-accent) 16%, transparent); color: var(--demo-accent); }

/* ---- steps ---- */
.mkt-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.stepc { border: 1px solid var(--border); border-radius: 12px; padding: 24px 22px; background: var(--surface); }
.stepc-idx { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--accent); font-weight: 700; margin-bottom: 14px; }
.stepc-idx::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.stepc h3 { font-size: 15.5px; font-weight: 700; margin-bottom: 8px; }
.stepc p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.stepc-term { margin-top: 14px; font-size: 12px; color: var(--muted); background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 8px 11px; }
.stepc-term b { color: var(--accent); }

/* ---- bento ---- */
.mkt-bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; margin-top: 30px; }
.tile { border: 1px solid var(--border); border-radius: 14px; padding: 24px; background: var(--surface); }
.tile.lead { grid-column: span 3; grid-row: span 2; background: linear-gradient(160deg, var(--raised), var(--surface)); }
.tile.wide, .tile.soon-tile { grid-column: span 3; }
.tile:not(.lead):not(.wide):not(.soon-tile) { grid-column: span 3; }
.mkt-bento.feat .tile:not(.lead) { grid-column: span 3; }
.tile .kicker { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.tile h3 { font-size: 16px; font-weight: 700; margin: 12px 0 8px; letter-spacing: -0.01em; }
.tile p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.tile-kanban { margin-top: 20px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tile-kanban .c { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px; }
.tile-kanban .c i { display: block; font-style: normal; font-size: 9.5px; letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.tile-kanban .c u { display: block; height: 20px; border-radius: 5px; background: var(--raised); border: 1px solid var(--border-strong); margin-bottom: 5px; }
.tile-kanban .c u.hi { border-color: color-mix(in srgb, var(--accent) 45%, var(--border-strong)); }

/* ---- ledger ---- */
.mkt-ledger { margin-top: 26px; border-top: 1px solid var(--border); }
.lrow { display: grid; grid-template-columns: 44px minmax(180px, 1fr) 1.6fr; gap: 22px; align-items: baseline; padding: 24px 0; border-bottom: 1px solid var(--border); }
.lrow .lno { font-size: 12px; color: var(--muted); padding-top: 3px; }
.lrow h3 { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; }
.lrow p { color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.lrow:hover h3 { color: var(--accent); transition: color .15s; }

/* ---- margin band ---- */
.mkt-margin { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.mkt-margin-text h2 { text-align: left; font-size: clamp(22px, 3vw, 30px); margin-bottom: 14px; }
.mkt-margin-text p { color: var(--muted); font-size: 15px; line-height: 1.65; margin-bottom: 16px; }
.mkt-margin-text .btn { margin-top: 4px; }
.mkt-margin-viz { border: 1px solid var(--border); border-radius: 14px; padding: 22px 26px; background: var(--surface); }
.mkt-margin-viz .mrow { display: flex; align-items: center; justify-content: space-between; padding: 15px 0; border-bottom: 1px solid var(--border); }
.mkt-margin-viz .mrow:last-child { border-bottom: 0; }
.mkt-margin-viz .mrow span { color: var(--muted); font-size: 14.5px; }
.mkt-margin-viz .mrow b { font-size: 18px; color: var(--text); font-weight: 600; }
.mkt-margin-viz .mrow.keep span { color: var(--text); font-weight: 600; }
.mkt-margin-viz .mrow.keep b { color: var(--accent); }

/* ---- accordion FAQ ---- */
.mkt-accordion { max-width: 780px; margin: 26px auto 0; border-top: 1px solid var(--border); }
.mkt-accordion details { border-bottom: 1px solid var(--border); }
.mkt-accordion summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: 16px; padding: 20px 2px; font-weight: 600; font-size: 15.5px; color: var(--text); }
.mkt-accordion summary::-webkit-details-marker { display: none; }
.mkt-accordion summary::after { content: "+"; margin-left: auto; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; transition: transform .2s ease; }
.mkt-accordion details[open] summary::after { transform: rotate(45deg); }
.mkt-accordion .acc-a { padding: 0 2px 22px; color: var(--muted); font-size: 14.5px; line-height: 1.65; max-width: 66ch; }

/* ---- final CTA ---- */
.mkt-final { text-align: center; border: 1px solid var(--border-strong); border-radius: 18px; padding: clamp(40px, 6vw, 64px); background: var(--surface); }
.mkt-final h2 { text-align: center; max-width: 18ch; margin: 14px auto 0; font-size: clamp(24px, 3.4vw, 34px); }
.mkt-final .mkt-lede { margin-top: 14px; }
.mkt-final .mkt-hero-cta { margin-top: 24px; }

/* ---- features page rows ---- */
.featrow { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; align-items: center; padding: clamp(34px, 5vw, 56px) 0; border-bottom: 1px solid var(--border); }
.featrow:first-child { border-top: 1px solid var(--border); }
.featrow:nth-child(even) .featrow-text { order: 2; }
.featrow-text .kicker { font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }
.featrow-text h2 { text-align: left; font-size: clamp(21px, 2.6vw, 27px); margin: 12px 0 12px; }
.featrow-text p { color: var(--muted); font-size: 15px; line-height: 1.65; }
.mkt-bul { list-style: none; margin: 18px 0 0; display: flex; flex-direction: column; gap: 9px; }
.mkt-bul li { position: relative; padding-left: 22px; color: var(--muted); font-size: 14px; }
.mkt-bul li::before { content: "→"; position: absolute; left: 0; color: var(--accent); }
.featrow-art { border: 1px solid var(--border); border-radius: 14px; min-height: 210px; padding: 22px; background: linear-gradient(160deg, var(--raised), var(--surface)); display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.addrbar { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--text); background: var(--bg); border: 1px solid var(--border); border-radius: 7px; padding: 9px 12px; }
.addrbar em { font-style: normal; color: #43c496; font-size: 11px; }
.addrbar i { font-style: normal; color: var(--muted); }
.mini-row { display: flex; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); font-size: 13.5px; color: var(--text); }
.mini-row:last-child { border-bottom: 0; }
.mini-row em { font-style: normal; font-size: 11px; color: var(--muted); }
.mini-row.keep em { color: var(--accent); }

/* ---- pricing tiers ---- */
.mkt-tiers { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.tierc { position: relative; border: 1px solid var(--border); border-radius: 15px; padding: 28px 26px; background: var(--surface); display: flex; flex-direction: column; text-align: center; }
.tierc.feature { border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); background: linear-gradient(180deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface)); box-shadow: 0 30px 70px -50px color-mix(in srgb, var(--accent) 60%, #000); }
.tierc-flag { position: absolute; top: -11px; left: 50%; transform: translateX(-50%); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent-text); background: var(--accent); padding: 4px 12px; border-radius: 999px; font-weight: 600; }
.tierc h3 { font-size: 15px; font-weight: 600; letter-spacing: 0.02em; text-transform: uppercase; color: var(--muted); }
.tierc.feature h3 { color: var(--accent); }
.tierc .mkt-list { margin-top: 4px; }
.tierc .btn { width: 100%; justify-content: center; margin-top: auto; }

/* ---- contact page ---- */
.mkt-contact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 42px; align-items: start; max-width: 940px; margin: 0 auto; }
.mkt-contact-form { padding: 30px; margin: 0; }
.mkt-contact-form .form-grid { max-width: none; }
.mkt-contact-form .btn { justify-content: center; margin-top: 4px; }
.mkt-formfoot { color: var(--muted); font-size: 12px; text-align: center; margin-top: 4px; }
.mkt-contact-aside .ablock { padding: 20px 0; border-bottom: 1px solid var(--border); }
.mkt-contact-aside .ablock:first-child { padding-top: 4px; }
.mkt-contact-aside .ablock:last-child { border-bottom: 0; }
.mkt-contact-aside h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.mkt-contact-aside p { color: var(--muted); font-size: 14px; line-height: 1.6; }
.mkt-check { list-style: none; display: flex; flex-direction: column; gap: 9px; }
.mkt-check li { position: relative; padding-left: 24px; color: var(--muted); font-size: 14px; }
.mkt-check li::before { content: "✓"; position: absolute; left: 0; color: #43c496; }
.mkt-sent { text-align: center; padding: 20px 4px; }
.mkt-sent-mark { width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; color: var(--accent-text); background: var(--accent); }
.mkt-sent h2 { text-align: center; margin-bottom: 8px; }
.mkt-sent p { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }

/* ---- richer footer ---- */
.mkt-footer-top { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; gap: 30px; }
.mkt-footer-brand .mkt-brand { margin-bottom: 12px; }
.mkt-footer-brand p { font-size: 13px; max-width: 300px; line-height: 1.6; }
.mkt-addr-tag { display: inline-flex; gap: 8px; margin-top: 16px; font-size: 12px; color: var(--muted); border: 1px solid var(--border); border-radius: 7px; padding: 8px 11px; }
.mkt-footer-col h4 { font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); font-weight: 500; margin-bottom: 13px; }
.mkt-footer-col a { display: block; padding: 6px 0; font-size: 14px; color: var(--muted); }
.mkt-footer-col a:hover { color: var(--text); }
.mkt-footer-base { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--border); font-size: 12.5px; }

/* ---- mobile nav ---- */
.mkt-nav-toggle { display: none; width: 38px; height: 38px; border-radius: 8px; background: transparent; border: 1px solid var(--border-strong); color: var(--text); font-size: 16px; cursor: pointer; }

@media (max-width: 860px) {
  .mkt-proof, .mkt-steps { grid-template-columns: 1fr; }
  .mkt-bento { grid-template-columns: 1fr; }
  .tile.lead, .tile.wide, .tile.soon-tile, .tile, .mkt-bento.feat .tile:not(.lead) { grid-column: auto; grid-row: auto; }
  .mkt-tiers { grid-template-columns: 1fr; }
  .mkt-margin, .featrow, .mkt-contact { grid-template-columns: 1fr; gap: 26px; }
  .featrow:nth-child(even) .featrow-text { order: 0; }
  .lrow { grid-template-columns: 1fr; gap: 6px; }
  .lrow .lno { display: none; }
  .mkt-footer-top { grid-template-columns: 1fr 1fr; gap: 26px; }
  .mkt-footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  .mkt-nav { flex-wrap: nowrap; gap: 12px; }
  .mkt-nav-toggle { display: inline-flex; }
  .mkt-links { display: none; }
  .mkt-nav[data-open="1"] .mkt-links { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--border); padding: 12px 20px 16px; gap: 4px; }
  .mkt-cta .mkt-hide-sm { display: none; }
  .mkt-footer-top { grid-template-columns: 1fr 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .mkt-js .reveal-up { opacity: 1; transform: none; transition: none; }
  .mkt-demo .mkt-frame, .swatch, .lrow:hover h3 { transition: none; }
}
