/* Karvo - static marketing site v2 (2026-07-12), v5 additions (2026-11) at the end.
   Evidence-driven rebuild: see karvo-os/research/2026-07-12-design-conversion-research.md
   Budget rules: no JS, no external requests, one self-hosted font, total weight ≤300KB.
   v2.1 brand pass: palette sampled from karvo_logo.png - violet #6448dc (K stroke),
   blue #2a63c9 (gradient blue, darkened for 4.5:1 on white), navy #151c38 (wordmark),
   light violet #9a7dff → sky #58a6f8 for decorative gradients. Gold #f4b26e survives
   only as the demo-code highlight on dark cards. WhatsApp green is functional only
   (wa buttons, live dot, the WhatsApp phone mock). */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url("fonts/bricolage-latin.woff2") format("woff2");
  font-weight: 200 800;
  font-display: swap;
}

:root {
  --ink: #151c38;
  --ink-soft: #4a5372;
  --paper: #fafaff;
  --band: #f0f1fa;
  --card: #ffffff;
  --line: rgba(100, 72, 220, 0.16);
  --line-soft: rgba(100, 72, 220, 0.10);
  --brand: #6448dc;
  --brand-dark: #4f35c4;
  --accent: #2a63c9;
  --wa: #25d366;
  --wa-dark: #1eb355;
  --dark: #10162e;
  --shadow: 0 1px 2px rgba(21, 28, 56, 0.06), 0 8px 24px rgba(21, 28, 56, 0.08);
  --shadow-lift: 0 2px 4px rgba(21, 28, 56, 0.08), 0 12px 32px rgba(21, 28, 56, 0.12);
  --display: "Bricolage Grotesque", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --max: 70rem;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Ubuntu, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.6;
  font-size: 1.0625rem; /* 17px - older-audience readability (Frontiers review) */
}
a { color: var(--brand); text-underline-offset: 2px; transition: color 150ms ease; }
a:hover { color: var(--brand-dark); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 2px; }

h1, h2, h3 { font-family: var(--display); line-height: 1.12; }
h1 {
  font-size: clamp(2.2rem, 6vw, 3.5rem);
  line-height: 1.06;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 1rem;
}
h2 { font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.01em; font-weight: 700; margin: 0 0 0.9rem; }
h3 { font-size: 1.15rem; font-weight: 600; margin: 1.25rem 0 0.5rem; }
p, li { max-width: 65ch; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 1.25rem; }

/* ---------- Header: single compact row + scrollable nav strip ---------- */
header.site { background: var(--card); border-bottom: 1px solid var(--line-soft); }
header.site .bar {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding-top: 0.7rem; padding-bottom: 0.6rem;
}
.logo {
  font-family: var(--display); font-weight: 700; font-size: 1.45rem;
  color: var(--ink); text-decoration: none; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 0.5rem;
}
.logo img { height: 1.65rem; width: auto; display: block; }
.nav-cta {
  display: inline-flex; align-items: center; gap: 0.45rem;
  background: var(--brand); color: #fff !important; text-decoration: none;
  padding: 0.55rem 1rem; border-radius: 0.55rem; font-weight: 700; font-size: 0.95rem;
  white-space: nowrap; transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.nav-cta:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: var(--shadow); }
.nav-cta svg { flex: none; }
nav.main {
  display: flex; gap: 1.4rem; overflow-x: auto; white-space: nowrap;
  padding-top: 0; padding-bottom: 0.65rem; font-size: 0.95rem;
  scrollbar-width: none; -webkit-overflow-scrolling: touch;
}
nav.main::-webkit-scrollbar { display: none; }
nav.main a { color: var(--ink-soft); text-decoration: none; padding: 0.15rem 0; }
nav.main a:hover { color: var(--brand); }
nav.main a[aria-current="page"] { color: var(--brand); font-weight: 700; border-bottom: 2px solid var(--brand); }

/* ---------- Hero ---------- */
.hero {
  padding: 3rem 0 3.25rem;
  background: radial-gradient(80% 60% at 50% 0%, rgba(100, 72, 220, 0.08), transparent);
}
.hero-grid { display: grid; gap: 2.5rem; align-items: center; }
@media (min-width: 56rem) { .hero-grid { grid-template-columns: 1.15fr 0.85fr; } }
.kicker {
  color: var(--accent); font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; font-size: 0.78rem; margin-bottom: 0.9rem;
}
.hero p.lead { font-size: 1.15rem; color: var(--ink-soft); margin: 0 0 1.1rem; }
.trust-line { color: var(--ink-soft); font-size: 0.92rem; margin-top: 0.9rem; }
.trust-line b { color: var(--ink); }

/* ---------- The live demo card (the product, staged) ---------- */
.demo-card {
  background: linear-gradient(160deg, #1b2348, var(--dark));
  color: #eef0f8; border-radius: 1rem; padding: 1.4rem 1.5rem;
  box-shadow: var(--shadow-lift); max-width: 34rem;
  border: 1px solid rgba(154, 125, 255, 0.28);
}
.demo-card .live {
  display: inline-flex; align-items: center; gap: 0.5rem;
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase;
  color: #8fe3bd; margin-bottom: 0.6rem;
}
.live-dot {
  width: 0.55rem; height: 0.55rem; border-radius: 50%; background: #34d399;
  box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.55);
}
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse 2s ease-out infinite; }
  @keyframes pulse { 70% { box-shadow: 0 0 0 11px rgba(52, 211, 153, 0); } 100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); } }
}
.demo-card .phone {
  font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums;
  font-size: clamp(1.6rem, 4.5vw, 2.1rem); letter-spacing: 0.02em; margin: 0;
}
.demo-card .phone a { color: #a5b4fc; text-decoration: none; display: inline-flex; align-items: center; gap: 0.55rem; }
.demo-card .phone a:hover { color: #c7d2fe; }
.demo-card p { margin: 0.55rem 0 0; color: #c5cbe6; font-size: 0.95rem; max-width: 30rem; }
.demo-card .code { color: #f4b26e; font-weight: 700; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-block; background: var(--brand); color: #fff; text-decoration: none;
  padding: 0.75rem 1.35rem; border-radius: 0.6rem; font-weight: 700;
  margin: 0.25rem 0.5rem 0.25rem 0;
  transition: background 150ms ease, transform 150ms ease, box-shadow 150ms ease;
}
.btn:hover { background: var(--brand-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn.ghost { background: transparent; color: var(--brand); border: 2px solid var(--brand); }
.btn.ghost:hover { background: rgba(100, 72, 220, 0.07); color: var(--brand-dark); }

/* ---------- Phone mock (WhatsApp lead summary illustration) ---------- */
.phone-mock { margin: 0; justify-self: center; width: min(21rem, 100%); }
.pm-screen {
  background: #e5ddd2; border: 8px solid var(--dark); border-radius: 1.6rem;
  overflow: hidden; box-shadow: var(--shadow-lift);
}
.pm-head {
  background: #0b5c42; color: #fff; padding: 0.6rem 0.9rem;
  display: flex; align-items: center; gap: 0.6rem; font-weight: 600; font-size: 0.95rem;
}
.pm-avatar {
  width: 1.8rem; height: 1.8rem; border-radius: 50%;
  background: linear-gradient(135deg, #9a7dff, #58a6f8);
  color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 0.95rem; flex: none;
}
.pm-sub { margin-left: auto; font-size: 0.72rem; font-weight: 400; opacity: 0.85; }
.pm-chat { padding: 0.9rem 0.8rem 1.1rem; display: grid; gap: 0.55rem; }
.pm-msg {
  background: #fff; border-radius: 0.65rem 0.65rem 0.65rem 0.2rem;
  padding: 0.6rem 0.75rem; font-size: 0.86rem; line-height: 1.45;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.08); position: relative; max-width: 95%;
}
.pm-msg strong { color: var(--brand-dark); }
.pm-msg .pm-time { display: block; text-align: right; font-size: 0.68rem; color: #8a938d; margin-top: 0.25rem; }
.pm-note { background: #dcf3e6; border-radius: 0.65rem; font-size: 0.8rem; color: var(--ink-soft); }
.phone-mock figcaption { font-size: 0.82rem; color: var(--ink-soft); text-align: center; margin-top: 0.6rem; }

/* ---------- Call transcript bubbles ---------- */
.convo { display: grid; gap: 0.7rem; max-width: 40rem; margin: 1.5rem 0; }
.convo p { margin: 0; padding: 0.7rem 1rem; border-radius: 0.9rem; font-size: 0.98rem; }
.c-caller {
  background: var(--card); border: 1px solid var(--line);
  border-bottom-left-radius: 0.2rem; justify-self: start; max-width: 85%;
}
.c-karvo {
  background: #edebfc; border: 1px solid rgba(100, 72, 220, 0.20);
  border-bottom-right-radius: 0.2rem; justify-self: end; max-width: 85%;
}
.convo .who { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ink-soft); padding: 0; background: none; border: none; }
.convo .who.right { justify-self: end; }

/* ---------- Bento grid ---------- */
.bento { display: grid; gap: 1rem; margin: 1.75rem 0; }
@media (min-width: 46rem) { .bento { grid-template-columns: repeat(3, 1fr); } .bento .span2 { grid-column: span 2; } }
.bento .cell {
  background: var(--card); border: 1px solid var(--line); border-radius: 0.9rem;
  padding: 1.3rem 1.4rem;
}
.bento .cell.feature { background: linear-gradient(160deg, #efedfc, #fdfdff); }
.bento h3 { margin-top: 0; }
.bento p { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.97rem; }
.stat { font-family: var(--display); font-weight: 700; font-size: 2rem; color: var(--brand); line-height: 1.1; }
.src { display: block; font-size: 0.78rem; color: var(--ink-soft); margin-top: 0.5rem; }

/* ---------- Sections ---------- */
main { padding-bottom: 1rem; }
section.pad { padding: 2.75rem 0; }
section.band { background: var(--band); }
section.page { padding-top: 2.5rem; }

/* ---------- Cards, tables, callouts (v1, refined) ---------- */
.grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr)); margin: 1.5rem 0; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 0.9rem; padding: 1.25rem 1.4rem; }
.card h3 { margin-top: 0.25rem; }
.card p { margin: 0.4rem 0 0; color: var(--ink-soft); font-size: 0.98rem; }

/* ---------- Industry cards (the /industries hub - new pages slot in here) ---------- */
.ind-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); margin: 1.75rem 0; }
.ind-card {
  background: var(--card); border: 1px solid var(--line); border-radius: 0.9rem;
  padding: 1.3rem 1.4rem; display: flex; flex-direction: column;
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.ind-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.ind-card.lead-vertical { border: 2px solid var(--brand); box-shadow: var(--shadow); }
.ind-card h3 { margin: 0.45rem 0 0.4rem; }
.ind-card p { margin: 0 0 0.9rem; color: var(--ink-soft); font-size: 0.97rem; }
.ind-card .go { margin-top: auto; font-weight: 700; text-decoration: none; }
.ind-card.soon { background: var(--band); border-style: dashed; }
.ind-card.soon h3 { color: var(--ink-soft); }
.badge {
  display: inline-block; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.07em;
  text-transform: uppercase; padding: 0.2rem 0.55rem; border-radius: 999px;
  background: var(--brand); color: #fff; align-self: flex-start;
}
.badge.second { background: var(--accent); }
.badge.later { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }

.table-scroll { overflow-x: auto; margin: 1.5rem 0; }
table { border-collapse: collapse; width: 100%; min-width: 38rem; background: var(--card); font-size: 0.95rem; }
th, td { border: 1px solid var(--line); padding: 0.6rem 0.8rem; text-align: left; vertical-align: top; }
th { background: #eef0fa; font-family: var(--display); font-weight: 600; }

.price-card { border: 2px solid var(--brand); position: relative; box-shadow: var(--shadow); }
.price-card .tag {
  position: absolute; top: -0.8rem; left: 1rem; background: var(--accent); color: #fff;
  font-size: 0.75rem; font-weight: 700; padding: 0.15rem 0.6rem; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.05em;
}
.price { font-family: var(--display); font-size: 2.2rem; font-weight: 700; margin: 0.5rem 0 0; }
.price small { font-size: 1rem; font-weight: 500; color: var(--ink-soft); font-family: -apple-system, sans-serif; }
.was { text-decoration: line-through; color: var(--ink-soft); font-weight: 500; font-size: 1.1rem; }

ul.checks { list-style: none; padding: 0; }
ul.checks li { padding-left: 1.6rem; position: relative; margin: 0.45rem 0; }
ul.checks li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }

.note {
  border-left: 4px solid var(--accent); background: #edf4fd;
  padding: 0.9rem 1.1rem; border-radius: 0 0.6rem 0.6rem 0; margin: 1.5rem 0; font-size: 0.98rem;
}
.quiet { color: var(--ink-soft); font-size: 0.9rem; }

details { border: 1px solid var(--line); border-radius: 0.6rem; background: var(--card); padding: 0.8rem 1.1rem; margin: 0.6rem 0; }
summary { font-weight: 700; cursor: pointer; }
@media (min-width: 56rem) { .faq-cols { columns: 2; column-gap: 1.5rem; } .faq-cols details { break-inside: avoid; } }

/* ---------- Founder block ---------- */
.founder {
  display: flex; gap: 1.25rem; align-items: center; flex-wrap: wrap;
  background: var(--card); border: 1px solid var(--line); border-radius: 1rem;
  padding: 1.4rem 1.6rem; box-shadow: var(--shadow); margin: 1.75rem 0;
}
.founder .avatar {
  width: 4.5rem; height: 4.5rem; border-radius: 50%; flex: none;
  background: linear-gradient(160deg, var(--brand), var(--brand-dark)); color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--display); font-weight: 700; font-size: 1.6rem;
}
.founder .avatar img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.founder p { margin: 0.2rem 0 0; font-size: 0.98rem; }
.founder .name { font-family: var(--display); font-weight: 700; font-size: 1.05rem; margin: 0; }

/* ---------- Floating WhatsApp (desktop) + sticky action bar (mobile) ---------- */
.wa-float {
  position: fixed; right: 1.4rem; bottom: 1.4rem; z-index: 40;
  width: 3.5rem; height: 3.5rem; border-radius: 50%; background: var(--wa);
  display: none; align-items: center; justify-content: center;
  box-shadow: var(--shadow-lift); transition: transform 150ms ease, background 150ms ease;
}
.wa-float:hover { transform: translateY(-2px); background: var(--wa-dark); }
.wa-float svg { width: 1.9rem; height: 1.9rem; fill: #fff; }

.action-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 1px;
  background: rgba(21, 28, 56, 0.15); border-top: 1px solid var(--line);
  padding-bottom: env(safe-area-inset-bottom);
  backdrop-filter: none;
}
.action-bar a {
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
  min-height: 3.4rem; font-weight: 700; font-size: 0.98rem; text-decoration: none;
}
.action-bar .ab-call { background: var(--brand); color: #fff; }
.action-bar .ab-call:hover { background: var(--brand-dark); color: #fff; }
.action-bar .ab-wa { background: var(--wa); color: #fff; }
.action-bar .ab-wa:hover { background: var(--wa-dark); color: #fff; }
.action-bar svg { width: 1.15rem; height: 1.15rem; fill: currentColor; flex: none; }

@media (min-width: 56rem) {
  .action-bar { display: none; }
  .wa-float { display: flex; }
  body { padding-bottom: 0; }
}
@media (max-width: 55.99rem) {
  body { padding-bottom: 4.2rem; } /* room for the action bar */
}

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line-soft); margin-top: 4rem; padding: 2rem 0 2.5rem;
  color: var(--ink-soft); font-size: 0.9rem; background: var(--card);
}
footer.site nav { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 0.85rem; }
footer.site a { color: var(--ink-soft); }
footer.site .legal { margin: 0.3rem 0; }

.icon { width: 1.05rem; height: 1.05rem; fill: currentColor; flex: none; }

/* ---------- v5: two demo tenants on one card ---------- */
.demo-codes { list-style: none; padding: 0; margin: 0.8rem 0 0; display: grid; gap: 0.5rem; }
.demo-codes li {
  display: grid; gap: 0.1rem;
  background: rgba(255, 255, 255, 0.05); border: 1px solid rgba(154, 125, 255, 0.22);
  border-radius: 0.6rem; padding: 0.55rem 0.8rem; font-size: 0.93rem; color: #c5cbe6; max-width: none;
}
.demo-codes .dc-name { color: #eef0f8; font-weight: 600; }
.demo-codes .dc-name small { display: block; color: #9aa3c7; font-weight: 400; font-size: 0.8rem; }
.demo-card .code { overflow-wrap: anywhere; }
.bento .cell { display: flex; flex-direction: column; }
.bento .cell .src { margin-top: auto; padding-top: 0.6rem; }
footer.site .legal { max-width: none; }

/* ---------- v5: does / never split ---------- */
.split { display: grid; gap: 1.1rem; margin: 1.5rem 0; }
@media (min-width: 46rem) { .split { grid-template-columns: 1fr 1fr; } }
.split .card h3 { margin-top: 0; }
.split ul.checks { margin: 0.6rem 0 0; }
.split ul.checks li { font-size: 0.98rem; }
.card.never { background: #fbf8ff; }
ul.nevers li::before { content: "\2715"; color: #b42318; font-weight: 700; }

/* ---------- v5: weekly report sample ---------- */
.report {
  background: var(--card); border: 1px solid var(--line); border-radius: 0.9rem;
  box-shadow: var(--shadow); padding: 1.2rem 1.4rem; margin: 1.5rem 0; max-width: 40rem;
}
.report .r-head { font-family: var(--display); font-weight: 700; margin: 0; }
.report .r-sub { color: var(--ink-soft); font-size: 0.88rem; margin: 0.15rem 0 0.9rem; }
.report dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(8rem, 1fr)); gap: 0.6rem; margin: 0; }
.report dl div { background: var(--band); border-radius: 0.6rem; padding: 0.6rem 0.75rem; }
.report dt { font-size: 0.82rem; color: var(--ink-soft); }
.report dd { margin: 0; font-family: var(--display); font-weight: 700; font-size: 1.5rem; color: var(--brand); }
.report .r-line { font-size: 0.9rem; color: var(--ink-soft); margin: 0.9rem 0 0; }

/* ---------- v5: compliance sheet (doubles as the printed handout) ---------- */
.sheet { display: grid; gap: 1rem; margin: 1.5rem 0; }
@media (min-width: 46rem) { .sheet { grid-template-columns: 1fr 1fr; } .sheet .wide { grid-column: span 2; } }
.sheet .card h2 { font-size: 1.15rem; margin: 0 0 0.4rem; }
.sheet .card ul { margin: 0.3rem 0 0; padding-left: 1.1rem; }
.sheet .card li { color: var(--ink-soft); font-size: 0.96rem; margin: 0.2rem 0; }
.sheet .card p { font-size: 0.96rem; }
.sheet .src { margin-top: 0.6rem; }
.price-card .price small, .price-note { white-space: nowrap; }
.btn-row { margin: 1.25rem 0 0; }

@media print {
  header.site nav.main, .nav-cta, .action-bar, .wa-float, footer.site nav, .no-print { display: none !important; }
  body { background: #fff; font-size: 10.5pt; padding-bottom: 0 !important; }
  section.page { padding-top: 0.5rem; }
  .card { box-shadow: none; break-inside: avoid; }
  .sheet { gap: 0.45rem; grid-template-columns: 1fr 1fr; margin: 0.6rem 0; }
  .sheet .wide { grid-column: span 2; }
  .sheet .card { padding: 0.45rem 0.75rem; }
  .sheet .card li { margin: 0.05rem 0; }
  .sheet .src { margin-top: 0.25rem; }
  section.page > p { font-size: 9.5pt; margin: 0.3rem 0; }
  @page { size: A4; margin: 10mm; }
  .sheet .card h2 { font-size: 11.5pt; margin-bottom: 0.2rem; }
  .sheet .card li, .sheet .card p { font-size: 9pt; line-height: 1.32; max-width: none; }
  h1 { font-size: 20pt; margin-bottom: 0.3rem; }
  p.lead { font-size: 10.5pt; margin: 0; }
  header.site .bar { padding: 0 0 0.3rem; }
  a { color: var(--ink); }
  footer.site { margin-top: 0.4rem; padding: 0.3rem 0; font-size: 8.5pt; }
  main { padding-bottom: 0; }
}

section.page > h2 { margin-top: 2.4rem; }
section.page > h1 + p.lead { margin-bottom: 0.5rem; }
.card p.price { font-size: clamp(1.7rem, 4vw, 2.2rem); color: var(--ink); line-height: 1.15; }
section.page > .demo-card { margin: 1.75rem 0; }
