/* KytherIQ Demos — shared styles. Dark theme only (brand). No build step. */
:root {
  --bg: hsl(228 20% 7%);
  --card: hsl(228 20% 9%);
  --card-2: hsl(228 18% 11%);
  --border: hsl(228 15% 15%);
  --border-2: hsl(228 14% 21%);
  --text: hsl(220 15% 90%);
  --muted: hsl(220 15% 65%);
  --faint: hsl(220 12% 45%);
  --primary: hsl(185 100% 45%);
  --primary-ink: hsl(228 30% 8%);
  --primary-soft: hsl(185 100% 45% / 0.12);
  --blue: hsl(215 100% 65%);
  --green: hsl(150 80% 50%);
  --amber: hsl(45 100% 50%);
  --danger: hsl(0 85% 68%);
  --radius: 4px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: "Space Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --wrap: 1180px;
  --gutter: 16px;
  --header-h: 60px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  overflow-wrap: break-word;
}
[data-biz], [data-city], [data-name], .personal { overflow-wrap: anywhere; }
img, svg { max-width: 100%; }
svg { display: block; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.9rem, 6vw, 3.1rem); font-weight: 800; letter-spacing: -0.025em; }
h2 { font-size: clamp(1.35rem, 3.6vw, 1.9rem); font-weight: 750; }
h3 { font-size: 1.08rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); text-underline-offset: 3px; }
a:hover { color: hsl(185 100% 60%); }
small, .small { font-size: .85rem; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.mono, .num { font-family: var(--mono); }
.num { font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.label {
  font-family: var(--mono); font-size: .72rem; text-transform: uppercase;
  letter-spacing: .08em; color: var(--muted);
}
.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--primary); color: var(--primary-ink); padding: 8px 12px; border-radius: var(--radius);
  font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 8px; }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 2px; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible {
  outline: 2px solid var(--primary); outline-offset: 2px;
}

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
main { display: block; min-width: 0; }
section { padding: 40px 0; }
.section-tight { padding: 24px 0; }
.stack > * + * { margin-top: 12px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.between { justify-content: space-between; }
.grid { display: grid; gap: 16px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 720px) {
  .grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.split { display: grid; gap: 20px; grid-template-columns: 1fr; }
@media (min-width: 960px) {
  .split { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
  .split-wide { grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); }
  .split-narrow { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); }
}

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: hsl(228 20% 7% / 0.92);
  border-bottom: 1px solid var(--border);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
}
.hdr .btn, .sticky-cta .btn { white-space: nowrap; overflow-wrap: normal; }
.hdr { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.brand {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  color: var(--text); font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; white-space: nowrap;
}
.brand:hover { color: var(--text); }
.brand .iq { color: var(--primary); }
.brand svg { width: 24px; height: 24px; flex: none; }
.hdr-spacer { flex: 1; }
.site-nav { display: flex; align-items: center; gap: 4px; }
.site-nav a, .site-nav summary {
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: .93rem;
  padding: 8px 10px; border-radius: var(--radius); cursor: pointer; list-style: none;
}
.site-nav summary::-webkit-details-marker { display: none; }
.site-nav a:hover, .site-nav summary:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--card-2); }
.dd { position: relative; }
.dd summary::after { content: ""; display: inline-block; width: 6px; height: 6px; margin-left: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-3px) rotate(45deg); }
.dd[open] summary::after { transform: translateY(0) rotate(-135deg); }
.dd-panel {
  position: absolute; top: calc(100% + 6px); left: 0; min-width: 290px; z-index: 60;
  background: var(--card); border: 1px solid var(--border-2); border-radius: var(--radius);
  padding: 6px; margin: 0; list-style: none; box-shadow: 0 16px 40px hsl(228 40% 3% / 0.6);
}
.dd-panel a { display: block; padding: 9px 10px; color: var(--text); }
.dd-panel a span { display: block; font-weight: 500; font-size: .8rem; color: var(--muted); }
.menu-btn {
  display: none; background: transparent; color: var(--text); border: 1px solid var(--border-2);
  border-radius: var(--radius); padding: 7px 10px; font: inherit; font-weight: 600; font-size: .88rem; cursor: pointer;
}
@media (max-width: 899px) {
  .menu-btn { display: inline-flex; align-items: center; gap: 6px; }
  .site-nav {
    display: none; position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--border); padding: 8px var(--gutter) 14px;
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
  }
  .site-nav.open { display: flex; }
  .site-nav a, .site-nav summary { padding: 11px 10px; font-size: 1rem; }
  .dd-panel { position: static; min-width: 0; box-shadow: none; border: 0; border-left: 2px solid var(--border-2); border-radius: 0; margin: 2px 0 6px 10px; padding: 0 0 0 6px; background: transparent; }
  .hdr .btn-book { padding: 8px 12px; font-size: .86rem; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: .95rem; line-height: 1.2;
  padding: 11px 18px; border-radius: var(--radius); border: 1px solid transparent;
  text-decoration: none; cursor: pointer; white-space: normal; text-align: center; overflow-wrap: anywhere;
  transition: background-color .15s, border-color .15s, color .15s, transform .15s;
}
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { background: hsl(185 100% 55%); color: var(--primary-ink); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border-2); }
.btn-ghost:hover { border-color: var(--primary); color: var(--text); }
.btn-sm { padding: 7px 12px; font-size: .84rem; }
.btn-block { width: 100%; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.link-arrow { font-weight: 700; text-decoration: none; }
.link-arrow::after { content: " \2192"; }

/* ---------- Badges / chips ---------- */
.demo-badge {
  display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: .72rem;
  letter-spacing: .04em; color: var(--amber); border: 1px solid hsl(45 100% 50% / .45);
  background: hsl(45 100% 50% / .08); padding: 5px 10px; border-radius: 999px; white-space: normal;
}
.demo-badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--amber); flex: none; }
.chip {
  display: inline-flex; align-items: center; gap: 5px; font-family: var(--mono); font-size: .68rem;
  text-transform: uppercase; letter-spacing: .05em; padding: 3px 8px; border-radius: 999px;
  border: 1px solid var(--border-2); color: var(--muted); white-space: nowrap; line-height: 1.4;
}
.chip-cyan { color: var(--primary); border-color: hsl(185 100% 45% / .45); background: var(--primary-soft); }
.chip-green { color: var(--green); border-color: hsl(150 80% 50% / .4); background: hsl(150 80% 50% / .08); }
.chip-amber { color: var(--amber); border-color: hsl(45 100% 50% / .4); background: hsl(45 100% 50% / .08); }
.chip-blue { color: var(--blue); border-color: hsl(215 100% 65% / .45); background: hsl(215 100% 65% / .08); }
.chip-red { color: var(--danger); border-color: hsl(0 85% 68% / .4); background: hsl(0 85% 68% / .08); }
.draft-tag { display: inline-block; font-family: var(--mono); font-weight: 700; font-size: .72rem; letter-spacing: .12em; color: var(--amber); border: 1px dashed var(--amber); padding: 2px 8px; border-radius: var(--radius); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px; min-width: 0;
}
.card-link { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); transition: border-color .15s, transform .15s; }
.card-link:hover { border-color: hsl(185 100% 45% / .6); color: var(--text); }
.card-link .go { margin-top: auto; color: var(--primary); font-weight: 700; font-size: .9rem; }
.card h3 { margin-bottom: .35em; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2, .card-head h3 { margin: 0; }
.panel-title { font-size: 1rem; font-weight: 700; margin: 0; }
.divider { height: 1px; background: var(--border); margin: 14px 0; border: 0; }
.note {
  font-size: .84rem; color: var(--muted); border-left: 2px solid var(--amber); padding: 6px 10px; background: hsl(45 100% 50% / .04);
}
.callout { border: 1px solid hsl(185 100% 45% / .35); background: linear-gradient(135deg, hsl(185 100% 45% / .09), hsl(215 100% 65% / .05)); border-radius: var(--radius); padding: 20px; }

/* ---------- Hero ---------- */
.hero { padding: 36px 0 24px; position: relative; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 260px at 15% 0%, hsl(185 100% 45% / .12), transparent 70%),
    radial-gradient(500px 240px at 90% 10%, hsl(215 100% 65% / .08), transparent 70%);
}
.hero .lede { font-size: 1.08rem; color: var(--muted); max-width: 62ch; }
.hero .row { margin-top: 18px; }
.eyebrow { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.personal { color: var(--primary); }
.live-link { display: inline-flex; gap: 6px; align-items: center; font-size: .9rem; font-weight: 600; }

/* ---------- KPIs ---------- */
.kpis { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 720px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .kpis.kpis-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.kpi { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 12px 14px; min-width: 0; }
.kpi .v { font-family: var(--mono); font-size: clamp(1.25rem, 5vw, 1.7rem); font-weight: 700; letter-spacing: -0.03em; display: block; margin-top: 2px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.kpi .s { font-size: .76rem; color: var(--muted); display: block; }
.kpi.hl { border-color: hsl(185 100% 45% / .5); background: linear-gradient(180deg, hsl(185 100% 45% / .08), var(--card)); }
.kpi.hl .v { color: var(--primary); }
.kpi.good .v { color: var(--green); }
.flash { animation: flash 1s ease; }
@keyframes flash { 0% { background-color: hsl(185 100% 45% / .28); } 100% { background-color: transparent; } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field + .field { margin-top: 14px; }
.field label, .field .flabel { font-weight: 600; font-size: .9rem; }
.field .hint { font-size: .78rem; color: var(--muted); }
input[type="text"], input[type="tel"], input[type="email"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--text); background: var(--bg);
  border: 1px solid var(--border-2); border-radius: var(--radius); padding: 10px 12px; min-width: 0;
}
textarea { min-height: 88px; resize: vertical; line-height: 1.45; }
input:focus, select:focus, textarea:focus { border-color: var(--primary); }
select { appearance: none; -webkit-appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 34px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; cursor: pointer; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--primary); flex: none; }
input[type="range"] { width: 100%; accent-color: var(--primary); height: 28px; background: transparent; }
.range-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.range-row output { font-family: var(--mono); font-weight: 700; color: var(--primary); }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg button, .opt {
  font: inherit; font-size: .88rem; font-weight: 600; color: var(--text); background: var(--bg);
  border: 1px solid var(--border-2); border-radius: var(--radius); padding: 8px 12px; cursor: pointer; text-align: left;
}
.seg button[aria-pressed="true"], .opt[aria-pressed="true"], .opt[aria-checked="true"] { border-color: var(--primary); background: var(--primary-soft); color: var(--text); }
.seg button:hover, .opt:hover { border-color: hsl(185 100% 45% / .6); }
.opt:disabled { opacity: .4; cursor: not-allowed; text-decoration: line-through; }
.form-grid { display: grid; gap: 14px; grid-template-columns: 1fr; }
.form-grid .field + .field { margin-top: 0; }
@media (min-width: 640px) { .form-grid.cols-2 { grid-template-columns: 1fr 1fr; } .form-grid .span-2 { grid-column: 1 / -1; } }

/* ---------- Tabs ---------- */
.tabs {
  display: flex; gap: 4px; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin;
  border-bottom: 1px solid var(--border); margin-bottom: 18px; max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.tabs [role="tab"] {
  font: inherit; font-weight: 600; font-size: .9rem; color: var(--muted); background: transparent;
  border: 0; border-bottom: 2px solid transparent; padding: 10px 12px; cursor: pointer; white-space: nowrap; flex: none;
}
.tabs [role="tab"][aria-selected="true"] { color: var(--text); border-bottom-color: var(--primary); }
.tabs [role="tab"]:hover { color: var(--text); }
@media (max-width: 899px) { .tabs { -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent); mask-image: linear-gradient(90deg, #000 88%, transparent); padding-right: 24px; } }
.tabs .count { font-family: var(--mono); font-size: .7rem; color: var(--primary); margin-left: 4px; }
[role="tabpanel"][hidden] { display: none; }

/* ---------- Phone mock / SMS ---------- */
.phone {
  width: 100%; max-width: 340px; margin: 0 auto; background: hsl(228 22% 5%);
  border: 1px solid var(--border-2); border-radius: 28px; padding: 10px; box-shadow: 0 20px 50px hsl(228 40% 2% / .6);
}
.phone-screen { background: var(--card); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; height: 460px; }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--card-2); }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-weight: 800; font-size: .8rem; flex: none; }
.phone-top .who { min-width: 0; }
.phone-top .who b { display: block; font-size: .88rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-top .who span { font-size: .72rem; color: var(--muted); font-family: var(--mono); }
.thread { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; scroll-behavior: smooth; }
.msg { max-width: 85%; padding: 8px 11px; border-radius: 14px; font-size: .86rem; line-height: 1.4; overflow-wrap: anywhere; animation: pop .25s ease; }
.msg.in { align-self: flex-start; background: var(--card-2); border: 1px solid var(--border-2); border-bottom-left-radius: 4px; }
.msg.out { align-self: flex-end; background: var(--primary); color: var(--primary-ink); border-bottom-right-radius: 4px; }
.msg.sys { align-self: center; background: transparent; color: var(--muted); font-family: var(--mono); font-size: .68rem; text-align: center; padding: 2px 6px; max-width: 100%; }
.msg.sys.call { color: var(--amber); }
.msg .meta { display: block; font-size: .64rem; opacity: .75; margin-top: 3px; font-family: var(--mono); }
.msg .optout { display: block; font-size: .72rem; opacity: .85; margin-top: 4px; }
.typing { align-self: flex-start; display: inline-flex; gap: 4px; padding: 10px 12px; background: var(--card-2); border-radius: 14px; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.phone-empty { margin: auto; text-align: center; color: var(--muted); font-size: .85rem; padding: 20px; }

/* ---------- Steps / pipeline ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: 1fr; counter-reset: step; }
@media (min-width: 720px) { .steps.h { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.steps li { position: relative; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 14px 14px 52px; min-width: 0; }
.steps li::before {
  counter-increment: step; content: counter(step); position: absolute; left: 14px; top: 14px;
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-family: var(--mono); font-size: .8rem; font-weight: 700; color: var(--primary); border: 1px solid hsl(185 100% 45% / .5);
}
.steps li b { display: block; }
.steps li span { font-size: .86rem; color: var(--muted); }
.steps li.active { border-color: var(--primary); background: linear-gradient(90deg, hsl(185 100% 45% / .1), var(--card)); }
.steps li.done::before { content: "\2713"; background: var(--primary); color: var(--primary-ink); border-color: var(--primary); }

.timeline { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 0; }
.timeline li { position: relative; padding: 0 0 14px 22px; font-size: .88rem; animation: pop .25s ease; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); }
.timeline li::after { content: ""; position: absolute; left: 7.5px; top: 18px; bottom: 0; width: 1px; background: var(--border-2); }
.timeline li:last-child::after { display: none; }
.timeline li.warn::before { background: var(--amber); }
.timeline li.good::before { background: var(--green); }
.timeline li.blue::before { background: var(--blue); }
.timeline time { font-family: var(--mono); font-size: .72rem; color: var(--muted); display: block; }

/* ---------- Tables / lists ---------- */
.table-wrap { width: 100%; overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: .9rem; }
table.t th { text-align: left; font-family: var(--mono); font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 400; padding: 8px 10px; border-bottom: 1px solid var(--border); }
table.t td { padding: 10px; border-bottom: 1px solid var(--border); vertical-align: top; }
table.t td.r, table.t th.r { text-align: right; }
table.t tfoot td { font-weight: 700; border-bottom: 0; }
.list { list-style: none; margin: 0; padding: 0; }
.list > li { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.list > li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .grow b { display: block; }
.list .grow span { font-size: .82rem; color: var(--muted); }
.new-row { animation: rowin 1.4s ease; }
@keyframes rowin { 0% { background: hsl(185 100% 45% / .22); } 100% { background: transparent; } }

/* ---------- Charts ---------- */
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--mono); font-size: 10px; fill: var(--muted); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: .78rem; color: var(--muted); margin-top: 8px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 2px; margin-right: 6px; vertical-align: -1px; }

.heat { display: grid; gap: 3px; font-family: var(--mono); font-size: .62rem; color: var(--muted); }
.heat .cell { aspect-ratio: 1 / 1; border-radius: 3px; background: var(--card-2); border: 1px solid transparent; min-width: 0; }
.heat .cell.bump { border-color: var(--text); animation: flash 1.2s ease; }
.heat .hl { display: flex; align-items: center; justify-content: center; text-align: center; min-width: 0; }
.heat .rl { display: flex; align-items: center; }
.heat-scale { display: flex; align-items: center; gap: 6px; font-size: .72rem; color: var(--muted); margin-top: 10px; font-family: var(--mono); }
.heat-scale span.bar { height: 8px; width: 120px; border-radius: 2px; background: linear-gradient(90deg, hsl(45 100% 50% / .15), hsl(45 100% 50%)); }

/* ---------- Kanban ---------- */
.kanban { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .kanban { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.kcol { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 10px; min-width: 0; }
.kcol h3 { display: flex; justify-content: space-between; font-size: .85rem; margin: 2px 2px 10px; }
.kcol h3 .num { color: var(--primary); }
.kcards { display: flex; flex-direction: column; gap: 8px; min-height: 40px; }
.kcard { background: var(--card-2); border: 1px solid var(--border-2); border-radius: var(--radius); padding: 10px; font-size: .86rem; animation: pop .25s ease; }
.kcard .top { display: flex; justify-content: space-between; gap: 8px; align-items: baseline; }
.kcard .top b { overflow-wrap: anywhere; }
.kcard .amt { font-family: var(--mono); font-weight: 700; color: var(--green); white-space: nowrap; }
.kcard .sub { color: var(--muted); font-size: .78rem; margin: 3px 0 8px; }
.kcard .foot { display: flex; justify-content: space-between; align-items: center; gap: 6px; flex-wrap: wrap; }
.kcard.new-row { border-color: var(--primary); }

/* ---------- Browser mock ---------- */
.browser { border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; background: var(--card); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; background: var(--card-2); border-bottom: 1px solid var(--border); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--border-2); flex: none; }
.browser-bar .url { flex: 1; min-width: 0; margin-left: 6px; font-family: var(--mono); font-size: .7rem; color: var(--muted); background: var(--bg); border-radius: 3px; padding: 4px 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Sticky CTA ---------- */
.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  background: hsl(228 20% 9% / .96); border-top: 1px solid hsl(185 100% 45% / .4);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
}
.sticky-cta .inner { max-width: var(--wrap); margin: 0 auto; display: flex; gap: 12px; align-items: center; justify-content: space-between; }
.sticky-cta .txt { min-width: 0; font-size: .86rem; line-height: 1.3; }
.sticky-cta .txt > b { display: block; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sticky-cta .txt > span { color: var(--muted); font-size: .76rem; }
.has-sticky { padding-bottom: 84px; }
@media (max-width: 420px) { .sticky-cta .txt > span { display: none; } }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); margin-top: 40px; padding: 28px 0 36px; color: var(--muted); font-size: .88rem; }
.site-footer .cols { display: flex; flex-wrap: wrap; gap: 18px 28px; justify-content: space-between; align-items: flex-start; }
.site-footer nav ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; padding: 0; }
.site-footer a { color: var(--text); text-decoration: none; }
.site-footer a:hover { color: var(--primary); }
.site-footer .fine { margin-top: 16px; font-size: .78rem; color: var(--faint); max-width: 80ch; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 70;
  background: var(--card-2); border: 1px solid var(--primary); color: var(--text); border-radius: var(--radius);
  padding: 10px 14px; font-size: .88rem; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px hsl(228 40% 2% / .6);
  animation: pop .2s ease;
}

.hide { display: none !important; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
}
.kpis.kpis-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.tpl-thread { padding: 0; }
.legend i.sw-muted { background: hsl(228 14% 24%); }
.legend i.sw-cyan { background: var(--primary); }
.legend i.sw-blue { background: var(--blue); }
.legend i.sw-green { background: var(--green); }
.legend i.sw-amber { background: var(--amber); }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset.field { margin-top: 14px; }
legend { padding: 0; margin-bottom: 6px; }

/* ---------- Booking calendar ---------- */
.err { color: var(--danger); }
[aria-invalid="true"] { border-color: var(--danger) !important; }
.cal { display: grid; grid-template-columns: 40px repeat(5, minmax(0, 1fr)); grid-auto-rows: 30px; gap: 2px; font-size: .7rem; position: relative; }
.cal .ch { font-family: var(--mono); color: var(--muted); text-align: center; align-self: end; padding-bottom: 4px; line-height: 1.1; }
.cal .ch b { display: block; color: var(--text); font-size: .78rem; }
.cal .th { font-family: var(--mono); color: var(--faint); text-align: right; padding-right: 6px; line-height: 1; padding-top: 2px; }
.cal .bg { background: var(--card-2); border-radius: 2px; }
.cal .ap { z-index: 1; border-radius: 3px; padding: 3px 5px; overflow: hidden; background: hsl(228 14% 24%); color: var(--text); border-left: 3px solid var(--blue); line-height: 1.2; min-width: 0; white-space: nowrap; text-overflow: ellipsis; }
@media (max-width: 560px) { .cal .ap { font-size: .6rem; padding: 3px 3px; border-left-width: 2px; } }
.cal .ap.new { background: var(--primary); color: var(--primary-ink); border-left-color: var(--text); font-weight: 700; animation: flash 1.2s ease; }
.svc { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; }
.svc .p { font-family: var(--mono); font-weight: 700; color: var(--primary); white-space: nowrap; }
.svc small { display: block; color: var(--muted); font-weight: 500; }

/* ---------- Bid doc ---------- */
.bid-doc { position: relative; overflow: hidden; }
.bid-doc::after {
  content: "DRAFT"; position: absolute; right: -10px; top: 45%; transform: rotate(-18deg);
  font-family: var(--mono); font-weight: 700; font-size: 5.5rem; letter-spacing: .1em;
  color: hsl(45 100% 50% / .06); pointer-events: none;
}
.bid-doc.approved::after { content: "REVIEWED"; color: hsl(150 80% 50% / .07); font-size: 4rem; }
table.t td.total { color: var(--primary); font-size: 1.1rem; }

/* ---------- Before / after ---------- */
.ba { position: relative; aspect-ratio: 8 / 5; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border-2); --pos: 50%; background: var(--card-2); touch-action: pan-y; }
.ba svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.ba .after { clip-path: inset(0 0 0 var(--pos)); }
.ba .divider { position: absolute; top: 0; bottom: 0; left: var(--pos); width: 2px; margin-left: -1px; background: var(--text); pointer-events: none; }
.ba .handle { position: absolute; top: 50%; left: var(--pos); width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 800; pointer-events: none; box-shadow: 0 4px 14px hsl(228 40% 3% / .5); font-family: var(--mono); font-size: .8rem; }
.ba input[type="range"] { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: ew-resize; }
.ba:focus-within { outline: 2px solid var(--primary); outline-offset: 2px; }
.ba .tag { position: absolute; top: 10px; font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; background: hsl(228 20% 7% / .8); padding: 3px 8px; border-radius: 3px; pointer-events: none; }
.ba .tag.l { left: 10px; } .ba .tag.r { right: 10px; color: var(--primary); }
.ba[data-style="modern"] { --deck: hsl(220 8% 42%); --deck-line: hsl(220 8% 32%); --perg: hsl(220 10% 16%); --cush: hsl(185 60% 40%); }
.ba[data-style="coastal"] { --deck: hsl(35 30% 70%); --deck-line: hsl(35 25% 58%); --perg: hsl(40 30% 92%); --cush: hsl(205 70% 55%); }
.ba[data-style="tropical"] { --deck: hsl(25 55% 42%); --deck-line: hsl(25 50% 32%); --perg: hsl(25 45% 28%); --cush: hsl(150 55% 40%); }
.ba .deck { fill: var(--deck); } .ba .deck-line { stroke: var(--deck-line); } .ba .perg { fill: var(--perg); } .ba .cush { fill: var(--cush); }
.list .r { text-align: right; }
.list .r > * { display: block; }

/* ---------- Website mock ---------- */
.mock-wrap { background: hsl(228 18% 12%); padding: 0; display: flex; justify-content: center; }
.site-mock { --acc: hsl(150 60% 35%); --bg2: #fff; --ink: #14161a; --sub: #555b66; --card2: #f3f4f6; --head: var(--font);
  width: 100%; background: var(--bg2); color: var(--ink); font-size: 13px; line-height: 1.45; transition: max-width .3s ease; overflow: hidden; }
.site-mock.narrow { max-width: 340px; }
.site-mock[data-style="bold"] { --bg2: #0f1115; --ink: #f4f5f7; --sub: #a9afbb; --card2: #1a1d24; }
.site-mock[data-style="warm"] { --bg2: #fbf6ee; --ink: #2a211a; --sub: #6e6056; --card2: #f1e7d8; --head: Georgia, "Times New Roman", serif; }
.site-mock .m-nav { display: flex; align-items: center; gap: 12px; padding: 12px 18px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); flex-wrap: wrap; }
.site-mock .m-logo { font-weight: 800; font-family: var(--head); font-size: 15px; margin-right: auto; overflow-wrap: anywhere; }
.site-mock .m-links { display: flex; gap: 12px; color: var(--sub); font-size: 12px; flex-wrap: wrap; }
.site-mock .m-btn { display: inline-block; background: var(--acc); color: #fff; font-weight: 700; padding: 8px 14px; border-radius: 4px; font-size: 12px; }
.site-mock .m-btn.ghost { background: transparent; color: var(--ink); border: 1px solid color-mix(in srgb, var(--ink) 25%, transparent); }
.site-mock .m-hero { padding: 36px 18px 30px; background: linear-gradient(135deg, color-mix(in srgb, var(--acc) 22%, var(--bg2)), var(--bg2) 70%); }
.site-mock .m-hero h2 { font-family: var(--head); font-size: 28px; line-height: 1.1; margin: 0 0 10px; max-width: 18ch; letter-spacing: -0.02em; }
.site-mock[data-style="bold"] .m-hero h2 { font-size: 32px; text-transform: uppercase; letter-spacing: -0.01em; }
.site-mock .m-hero p { color: var(--sub); max-width: 46ch; margin: 0 0 16px; }
.site-mock .m-hero .m-row { display: flex; gap: 8px; flex-wrap: wrap; }
.site-mock .m-strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1px; background: color-mix(in srgb, var(--ink) 10%, transparent); }
.site-mock .m-strip div { background: var(--bg2); padding: 10px 14px; font-size: 11px; color: var(--sub); }
.site-mock .m-strip b { display: block; color: var(--ink); font-size: 12px; }
.site-mock .m-sec { padding: 22px 18px; }
.site-mock .m-sec h3 { font-family: var(--head); font-size: 18px; margin: 0 0 12px; }
.site-mock .m-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.site-mock .m-card { background: var(--card2); border-radius: 6px; padding: 12px; }
.site-mock .m-card i { display: block; width: 26px; height: 26px; border-radius: 6px; background: var(--acc); opacity: .85; margin-bottom: 8px; }
.site-mock .m-card b { display: block; font-size: 13px; }
.site-mock .m-card span { color: var(--sub); font-size: 11.5px; }
.site-mock .m-cta { margin: 0 18px 20px; padding: 18px; border-radius: 8px; background: var(--acc); color: #fff; display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.site-mock .m-cta b { font-family: var(--head); font-size: 16px; }
.site-mock .m-cta .m-btn { background: #fff; color: var(--ink); }
.site-mock .m-foot { padding: 12px 18px; font-size: 11px; color: var(--sub); border-top: 1px solid color-mix(in srgb, var(--ink) 12%, transparent); }
.site-mock.narrow .m-cards, .site-mock.narrow .m-strip { grid-template-columns: 1fr; }
.site-mock.narrow .m-links { display: none; }
.site-mock.narrow .m-hero h2 { font-size: 24px; }
@media (max-width: 560px) {
  .site-mock .m-cards, .site-mock .m-strip { grid-template-columns: 1fr; }
  .site-mock .m-links { display: none; }
  .site-mock .m-hero h2 { font-size: 23px; }
}

/* ---------- Offers / work ---------- */
.offer { display: flex; flex-direction: column; }
.offer .row:last-child { margin-top: auto; padding-top: 12px; }
.offer-price { margin: 0 0 10px; }
.offer-price .num { font-size: 1.6rem; font-weight: 700; color: var(--primary); }
.ticks { list-style: none; padding: 0; margin: 0 0 12px; font-size: .9rem; }
.ticks li { position: relative; padding-left: 22px; margin: 5px 0; }
.ticks li::before { content: ""; position: absolute; left: 3px; top: 7px; width: 10px; height: 5px; border-left: 2px solid var(--green); border-bottom: 2px solid var(--green); transform: rotate(-45deg); }
#founding-points { padding-left: 20px; margin: 0 0 16px; }
.work-img { width: 100%; height: auto; border-radius: var(--radius); margin-bottom: 10px; border: 1px solid var(--border); }
@media (max-width: 480px) {
  .sticky-cta .txt > b { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: .88rem; line-height: 1.25; }
  .sticky-cta .btn { padding: 10px 14px; }
}

/* ---------- Simulation layout: controls, phone, then log on mobile ---------- */
.sim-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .sim-grid { grid-template-columns: minmax(300px, 380px) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "phone ctrl" "phone log"; align-items: start; }
  .sim-grid > .a-phone { grid-area: phone; }
  .sim-grid > .a-ctrl { grid-area: ctrl; }
  .sim-grid > .a-log { grid-area: log; }
}
.phone, [data-tabs], .card { scroll-margin-top: 76px; }
@media (max-width: 959px) { .sim-grid .phone-screen { height: 400px; } }
@media (max-width: 639px) { .spacer-label { display: none; } }
.convo-list > li { padding: 4px 0; border-bottom: 0; }
.convo { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; text-align: left; font: inherit; color: var(--text); background: transparent; border: 1px solid var(--border); border-radius: var(--radius); padding: 10px 12px; cursor: pointer; }
.convo:hover { border-color: hsl(185 100% 45% / .5); }
.convo[aria-pressed="true"] { border-color: var(--primary); background: var(--primary-soft); }
.convo-main { min-width: 0; }
.convo-main b { display: block; }
.convo-main span { display: block; font-size: .82rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wl-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 960px) {
  .wl-grid { grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); grid-template-rows: auto 1fr; grid-template-areas: "ctrl preview" "price preview"; align-items: start; }
  .wl-grid > .a-ctrl { grid-area: ctrl; } .wl-grid > .a-preview { grid-area: preview; } .wl-grid > .a-price { grid-area: price; }
}
.offer-price .num { display: block; line-height: 1.15; }
.offer-price .muted { display: block; margin-top: 4px; }
.reply-draft { min-height: 128px; }

/* ==========================================================================
   KytherIQ brand alignment (2026-10). Matches kytheriq.com (apps/sites/www/style.css):
   paper surfaces, pine actions, brass accents, Manrope + DM Mono, the gold mark.
   Appended so every rule above keeps working; only colors, fonts and the mark change.
   Keep this file identical to apps/kytheriq-sites/_shared/assets/site.css.
   ========================================================================== */
@font-face { font-family: "Manrope"; font-style: normal; font-weight: 200 800; font-display: swap; src: url("fonts/manrope-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/dm-mono-400-latin.woff2") format("woff2"); }
@font-face { font-family: "DM Mono"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/dm-mono-500-latin.woff2") format("woff2"); }
:root {
  --bg: #F4F3EC;
  --card: #FBFAF5;
  --card-2: #EDEFE7;
  --border: rgba(41,68,56,.14);
  --border-2: rgba(41,68,56,.24);
  --text: #1D2C25;
  --muted: #3F5347;
  --faint: #526258;
  --primary: #294438;
  --primary-ink: #FAF9F1;
  --primary-soft: rgba(41,68,56,.08);
  --blue: #2B5F9E;
  --green: #1B6E42;
  --amber: #8A632C;
  --danger: #A83232;
  --brass: #7A5626;
  --radius: 2px;
  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "DM Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
a:hover { color: var(--brass); }
.site-header { background: rgba(244,243,236,.96); }
.brand { color: var(--text); font-weight: 600; font-size: 13.5px; letter-spacing: .16em; text-transform: uppercase; gap: 10px; }
.brand .iq, .brand > span { color: var(--brass); }
.brand .iq { color: inherit; }
.brand img, .brand .brand-mark { width: 28px; height: 28px; }
.brand:not(:has(img))::before { content: ""; width: 28px; height: 28px; flex: none; background: url("logo.svg") center / contain no-repeat; }
.btn-primary:hover { background: #395B48; color: var(--primary-ink); }
.chip-cyan { color: var(--brass); border-color: rgba(138,99,44,.4); background: rgba(138,99,44,.10); }
.card-link:hover, .seg button:hover, .opt:hover, .convo:hover { border-color: var(--border-2); }
.callout { border-color: rgba(41,68,56,.24); background: var(--card-2); }
.kpi.hl { border-color: rgba(41,68,56,.34); background: var(--card); }
.steps li.active { background: var(--card-2); }
.sticky-cta { background: rgba(251,250,245,.97); border-top-color: var(--border-2); }
.legend i.sw-muted, .cal .ap { background: #DFE5DC; }
.mock-wrap { background: var(--card-2); }
.ba .tag { background: rgba(251,250,245,.9); color: var(--text); }
.brand:not(:has(img)) > svg { display: none; }
