/* Hiro marketing site, first mockup (WS-176). Tokens from docs/designs/website-brand-sheet.html. */
:root {
  --ink: #181818;
  --body: #404040;
  --secondary: #525252;
  --muted: #757370;
  --disabled: #a5a39f;
  --page: #faf9f6;
  --card: #ffffff;
  --well: #f4f2ee;
  --line: #e6e3dd;
  --control: #dcd8d1;
  --green: #519f83;
  --green-strong: #228466;
  --green-deep: #005b44;
  --green-10: #e6f6ef;
  --green-20: #c6e7d9;
  --green-35: #91cdb5;
  --green-55: #62b194;
  --blue: #5a94bf;
  --mauve: #b4789b;
  --gold: #d9bc72;
  --coral: #be796b;
  --ok-bg: #e4f9f0;
  --ok-fg: #00664b;
  --bad-bg: #ffeee8;
  --bad-fg: #813f2f;
  --info-bg: #e6f6ff;
  --info-fg: #1e5a86;
  --shadow-sm: 0 2px 4px rgba(55, 55, 55, .08), 0 1px 1px rgba(0, 0, 0, .12);
  --shadow-md: 0 6px 12px rgba(55, 55, 55, .08), 0 2px 6px rgba(0, 0, 0, .12);
  --shadow-lg: 0 10px 20px rgba(55, 55, 55, .08), 0 4px 10px rgba(0, 0, 0, .12);
  --shadow-btn: 0 1px 2px rgba(55, 55, 55, .04), 0 1px 1px rgba(0, 0, 0, .04);
  --radius-sm: 6px;
  --radius-lg: 12px;
  --max: 1200px;
  --font: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--page); color: var(--body); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; }
p { margin: 0; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 20px; } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Type */
.eyebrow { font-size: 14px; font-weight: 600; color: var(--green-strong); letter-spacing: .01em; display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 99px; background: var(--green); }
.display { font-size: 64px; line-height: 1.04; letter-spacing: -0.035em; font-weight: 700; }
.h2 { font-size: 44px; line-height: 1.1; letter-spacing: -0.03em; }
.h3 { font-size: 24px; line-height: 1.3; letter-spacing: -0.015em; }
.lead { font-size: 20px; line-height: 1.55; color: var(--body); }
.small { font-size: 14px; color: var(--muted); }
@media (max-width: 900px) { .display { font-size: 48px; } .h2 { font-size: 34px; } }
@media (max-width: 640px) { .display { font-size: 40px; } .h2 { font-size: 30px; } .lead { font-size: 18px; } body { font-size: 16px; } }

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: var(--radius-sm); font: 600 16px/1 var(--font); text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, color .15s; white-space: nowrap; }
.btn.sm { height: 40px; padding: 0 16px; font-size: 15px; }
.btn.primary { background: var(--green-strong); color: #fff; box-shadow: var(--shadow-btn); }
.btn.primary:hover { background: var(--green-deep); }
.btn.secondary { background: #fff; color: var(--ink); border-color: var(--control); box-shadow: var(--shadow-btn); }
.btn.secondary:hover { border-color: var(--disabled); }
.btn.light { background: #fff; color: var(--ink); }
.btn.light:hover { background: var(--green-10); }
.btn.ghost-dark { color: #fff; border-color: #525252; }
.btn.ghost-dark:hover { border-color: #a3a3a3; }
.btn svg { width: 16px; height: 16px; }
.link { color: var(--green-strong); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Nav */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(250, 249, 246, .86); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.nav.scrolled { border-bottom-color: var(--line); }
.nav .wrap { display: flex; align-items: center; height: 68px; gap: 32px; }
.nav .logo img { height: 28px; width: auto; }
.nav .nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; font-size: 15px; font-weight: 500; color: var(--secondary); }
.nav .nav-links a { text-decoration: none; }
.nav .nav-links a:hover { color: var(--ink); }
.nav .actions { margin-left: auto; display: flex; gap: 10px; align-items: center; }
.nav .menu-btn { display: none; background: #fff; border: 1px solid var(--control); border-radius: var(--radius-sm); width: 40px; height: 40px; cursor: pointer; padding: 0; place-items: center; color: var(--ink); }
.nav .menu-btn svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 2; stroke-linecap: round; fill: none; }
.nav .menu-btn path { transition: transform .2s, opacity .2s; transform-origin: 12px 12px; }
.nav.open .menu-btn .l1 { transform: translateY(5px) rotate(45deg); }
.nav.open .menu-btn .l2 { opacity: 0; }
.nav.open .menu-btn .l3 { transform: translateY(-5px) rotate(-45deg); }
.mobile-menu { border-top: 1px solid var(--line); background: var(--page); padding: 8px 20px 24px; max-height: calc(100vh - 68px); overflow-y: auto; }
.mobile-menu ul { list-style: none; margin: 0; padding: 0; }
.mobile-menu li a { display: block; padding: 14px 2px; font-size: 18px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-ctas { display: grid; gap: 10px; margin-top: 20px; }
.mobile-ctas .btn { justify-content: center; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 60; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 6px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--green-strong); outline-offset: 2px; }
@media (max-width: 900px) {
  .nav .nav-links, .nav .hide-mobile { display: none; }
  .nav .menu-btn { display: grid; }
  .nav .wrap { gap: 16px; }
  .nav.open { background: var(--page); border-bottom-color: var(--line); }
}
@media (min-width: 901px) { .mobile-menu { display: none !important; } }
@media (max-width: 380px) { .nav .actions .btn.primary { padding: 0 12px; font-size: 14px; } }

/* Sections */
section { padding: 96px 0; }
@media (max-width: 640px) { section { padding: 64px 0; } }
.section-head { max-width: 720px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head .h2 { margin: 12px 0 16px; }

/* Hero */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 { margin: 18px 0 22px; }
.hero .lead { max-width: 540px; }
.hero .ctas { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.hero .fine { margin-top: 18px; font-size: 14px; color: var(--muted); }
@media (max-width: 980px) { .hero .wrap { grid-template-columns: 1fr; } .hero { padding-top: 40px; } }

/* Product card primitives (HTML versions of Home components) */
.pcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 20px; font-size: 13px; color: var(--body); position: relative; }
.pcard .ph { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.pcard .pt { color: var(--ink); font-weight: 600; font-size: 15px; letter-spacing: -0.01em; }
.pcard .ps { color: var(--muted); font-size: 12px; margin-top: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.chip i { width: 6px; height: 6px; border-radius: 99px; display: inline-block; }
.chip.ok { background: var(--ok-bg); color: var(--ok-fg); } .chip.ok i { background: var(--green); }
.chip.bad { background: var(--bad-bg); color: var(--bad-fg); } .chip.bad i { background: #dc6943; }
.chip.info { background: var(--info-bg); color: var(--info-fg); } .chip.info i { background: var(--blue); }
.chip.plain { background: #fff; border: 1px solid var(--control); color: var(--body); }
.delta { font-size: 11px; font-weight: 600; padding: 2px 6px; border-radius: 99px; white-space: nowrap; }
.delta.up { background: var(--ok-bg); color: var(--ok-fg); }
.delta.down { background: var(--bad-bg); color: var(--bad-fg); }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--well); border-radius: 8px; padding: 10px 12px; }
.stat .l { font-size: 11.5px; color: var(--body); }
.stat .v { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; line-height: 1.25; margin-top: 2px; }
.stat .c { font-size: 11px; margin-top: 3px; }
.stat .c .up { color: var(--ok-fg); font-weight: 600; } .stat .c .down { color: #c2502e; font-weight: 600; }
table.pt-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
table.pt-table th { text-align: left; font-weight: 500; color: var(--muted); font-size: 11.5px; padding: 0 8px 8px; border-bottom: 1px solid var(--line); }
table.pt-table td { padding: 9px 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.pt-table tr:last-child td { border-bottom: 0; }
table.pt-table .num { text-align: right; font-variant-numeric: tabular-nums; }
table.pt-table .name { color: var(--ink); font-weight: 500; }
.pace { height: 6px; border-radius: 99px; background: var(--well); position: relative; min-width: 80px; }
.pace b { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: var(--green); }
.pace b.behind { background: #dc6943; }
.pace .mark { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--ink); border-radius: 2px; }
.legend { display: flex; gap: 14px; font-size: 11.5px; color: var(--body); margin-top: 8px; flex-wrap: wrap; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.chart { width: 100%; height: auto; display: block; }
.chart text { font: 10px var(--font); fill: var(--muted); }

/* Hero composition */
.hero-visual { position: relative; padding: 24px 0 92px 24px; }
.hero-visual .float { position: absolute; left: -12px; bottom: 0; width: 230px; padding: 14px 16px; }
.hero-visual .float .v { font-size: 26px; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
@media (max-width: 980px) { .hero-visual { padding-left: 0; } .hero-visual .float { left: auto; right: 12px; } }
@media (max-width: 640px) { .hero-visual { padding-bottom: 0; } .hero-visual .float { position: relative; right: auto; margin: 12px 0 0 auto; width: 210px; } .pcard table .hide-sm { display: none; } .stat { padding: 8px 9px; } .stat .v { font-size: 17px; } .stat .l, .stat .c { font-size: 10.5px; } }

/* Logo strip */
.logos { padding: 32px 0 24px; }
.logos p { text-align: center; font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 22px; }
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee .track { display: flex; gap: 72px; width: max-content; animation: scroll 38s linear infinite; align-items: center; }
.marquee.reverse .track { animation-direction: reverse; }
.logos img { height: 28px; width: auto; max-width: 150px; object-fit: contain; filter: grayscale(1); opacity: .62; transition: opacity .2s; }
.logos img:hover { opacity: .9; }
.logos img.tall { height: 34px; }
.logos .brands-label { margin-top: 26px; }
.logos .cl-4 { height: 24px; } .logos .cl-1 { height: 22px; } .logos .cl-3 { height: 30px; } .logos .cl-5 { height: 26px; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* Tabs */
.tabs { display: flex; gap: 6px; background: var(--well); border: 1px solid var(--line); border-radius: 10px; padding: 4px; width: max-content; max-width: 100%; overflow-x: auto; margin: 0 auto 40px; }
.tabs button { font: 500 15px var(--font); color: var(--secondary); background: none; border: 0; border-radius: 7px; padding: 9px 16px; cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: var(--shadow-sm); }
.panel { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }
.panel[hidden] { display: none; }
.panel h3 { margin: 10px 0 14px; }
.panel ul { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.panel li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; }
.panel li::before { content: ""; width: 20px; height: 20px; border-radius: 99px; background: var(--green-10) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23228466' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; margin-top: 2px; }
@media (max-width: 1000px) { .panel { grid-template-columns: 1fr; gap: 32px; } }
@media (max-width: 900px) { .tabs { margin-left: 0; } }

/* MCP and API: chat mock */
.ai { background: var(--page); }
.questions { display: grid; gap: 12px; margin: 0 0 48px; }
.questions .track { gap: 12px; animation-duration: 60s; }
.q { background: var(--page); border: 1px solid var(--line); border-radius: 99px; padding: 10px 18px; font-size: 15px; color: var(--body); white-space: nowrap; }
.ai-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.ai-grid ol { padding: 0; margin: 26px 0 0; list-style: none; display: grid; gap: 16px; counter-reset: s; }
.ai-grid li { counter-increment: s; display: grid; grid-template-columns: 32px 1fr; gap: 12px; }
.ai-grid li::before { content: counter(s); width: 28px; height: 28px; border-radius: 99px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; display: grid; place-items: center; }
.ai-grid li b { color: var(--ink); font-weight: 600; display: block; }
@media (max-width: 900px) { .ai-grid { grid-template-columns: 1fr; } }
.chat .bar { display: flex; align-items: center; gap: 6px; padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.chat .bar i { width: 9px; height: 9px; border-radius: 99px; background: var(--control); }
.chat .bar .chip { margin-left: auto; }
.msg-user { margin-left: auto; max-width: 80%; background: var(--ink); color: #fff; border-radius: 14px 14px 4px 14px; padding: 10px 14px; font-size: 13.5px; width: max-content; }
.msg-ai { margin-top: 14px; background: var(--page); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 14px; font-size: 13.5px; line-height: 1.55; }
.msg-ai p + p, .msg-ai p + table, .msg-ai table + p { margin-top: 10px; }
.tool { display: inline-flex; gap: 6px; align-items: center; font: 11.5px ui-monospace, Menlo, monospace; color: var(--muted); margin-top: 12px; }
.tool::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: var(--green); }
.ask { margin-top: 14px; display: flex; align-items: center; gap: 10px; border: 1px solid var(--control); border-radius: 99px; padding: 8px 8px 8px 16px; color: var(--disabled); font-size: 13.5px; }
.ask span { margin-left: auto; width: 30px; height: 30px; border-radius: 99px; background: var(--ink); display: grid; place-items: center; color: #fff; }

/* Left-right rows */
.lr { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.6fr); gap: 56px; align-items: center; }
.lr + .lr { margin-top: 88px; }
.lr.rev { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); }
.lr-text .h2 { margin: 12px 0 14px; font-size: 34px; line-height: 1.15; letter-spacing: -0.025em; }
.lr-text .lead { font-size: 17px; line-height: 1.6; }
@media (max-width: 640px) { .lr-text .h2 { font-size: 28px; } .lr-text .lead { font-size: 16px; } }
.lr-text .tools { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.lr-visual { min-width: 0; }
.tl-api { background: var(--secondary); font-size: 10px !important; }
.api-strip { margin-top: 14px; font-size: 12px; padding: 10px 14px; }
@media (min-width: 901px) { .lr .board-table td { white-space: nowrap; padding: 11px 7px; } }
.lr .pchip { font-size: 11.5px; padding: 2px 8px 2px 3px; margin: 2px 3px 2px 0; }
.lr .pchip img, .lr .pchip .ltr { width: 16px; height: 16px; }
.lr .board-table .av { margin-right: 8px; }
@media (max-width: 640px) { .api-note { display: none; } }
@media (max-width: 900px) {
  .lr, .lr.rev { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .lr + .lr { margin-top: 64px; }
  .lr.rev .lr-text { order: -1; }
}

/* Integrations, MCP and API: one section */
.connect { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
.outs { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.out { min-width: 0; display: flex; flex-direction: column; }
.out .code, .out .tools { margin-top: auto; }
.mini-chat .cq { background: var(--ink); color: #fff; border-radius: 12px 12px 3px 12px; padding: 8px 12px; margin-left: auto; width: max-content; max-width: 100%; }
.mini-chat .ca { border: 1px solid var(--line); border-radius: 12px 12px 12px 3px; padding: 8px 12px; margin-top: 8px; max-width: 92%; }
.board-table .okdot { margin: 0 0 0 8px; }
.outs { display: grid; gap: 16px; }
.out { background: var(--page); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 18px 20px; }
.out-h { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.out-h h3 { font-size: 17px; letter-spacing: -0.01em; }
.out-n { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-strong); background: var(--green-10); border-radius: 99px; padding: 3px 9px; }
.out p { font-size: 15px; margin: 0 0 12px; }
.mini-chat { font-size: 13px; margin-bottom: 12px; }
.mini-chat .ca { background: #fff; }
.out .tools { display: flex; flex-wrap: wrap; gap: 6px; }
.tool-tile.sm { font-size: 13px; padding: 5px 10px 5px 5px; gap: 7px; background: #fff; }
.tool-tile.sm .tl { width: 22px; height: 22px; font-size: 11px; border-radius: 6px; }
.out .code { font-size: 12px; padding: 12px 14px; }
@media (max-width: 900px) { .outs { grid-template-columns: minmax(0, 1fr); } }

/* MCP and API */
.ai-left { display: grid; gap: 20px; min-width: 0; }
.ai-left > * { min-width: 0; }
.hero h1 { max-width: 10em; }
.works .tools { display: flex; flex-wrap: wrap; gap: 10px; margin: 14px 0 12px; }
.tool-tile { display: inline-flex; align-items: center; gap: 10px; background: var(--page); border: 1px solid var(--line); border-radius: 10px; padding: 9px 14px 9px 9px; font-weight: 500; color: var(--ink); font-size: 15px; }
.tl { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-weight: 700; font-size: 13px; color: #fff; }
.tl-claude { background: #d97757; } .tl-gpt { background: #181818; } .tl-any { background: var(--green-strong); }
.works .small { margin: 0; }
.pcard.api { padding-bottom: 16px; }
.code { margin: 0; background: var(--ink); color: #e8e6e1; border-radius: 10px; padding: 14px 16px; font: 12.5px/1.6 ui-monospace, "SF Mono", Menlo, Consolas, monospace; overflow-x: auto; white-space: pre; }
.code .c { color: #a3a3a3; } .code .v { color: var(--green-35); } .code .k { color: #a3a3a3; }
@media (max-width: 640px) { .code { font-size: 11.5px; padding: 12px; } }

/* Email and SMS: campaign deep dive, flow map, send timing */
.thumb { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 7px; flex: none; }
.thumb i { font: 700 8px/1 var(--font); letter-spacing: .08em; color: rgba(24, 24, 24, .55); font-style: normal; }
table.dd { table-layout: fixed; }
table.dd th:first-child { width: 46%; }
table.dd th.hide-sm { width: 17%; }
table.dd td:first-child { display: flex; align-items: center; gap: 10px; }
table.dd .sent { white-space: nowrap; font-size: 12px; }
table.dd td.num, table.dd th.num { padding-left: 4px; padding-right: 4px; }
.dd-name { min-width: 0; }
.dd-name b { display: block; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-sub { display: flex; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-sub .ch { width: 13px; height: 13px; color: var(--secondary); flex: none; display: inline-grid; }
.dd-sub .ch svg { width: 13px; height: 13px; }
.ab { font-size: 9.5px; font-weight: 700; letter-spacing: .04em; color: var(--info-fg); background: var(--info-bg); border-radius: 4px; padding: 1px 4px; }
.split { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; }
.split .l { color: var(--ink); font-weight: 500; white-space: nowrap; }
.split .bar { height: 8px; border-radius: 99px; background: var(--green-35); overflow: hidden; }
.split .bar b { display: block; height: 100%; background: var(--green); border-radius: 99px; }
.split .r { color: var(--body); white-space: nowrap; display: inline-flex; align-items: center; gap: 5px; }
.split .r i { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.fm { display: flex; flex-direction: column; align-items: stretch; }
.fm-node { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font-size: 12.5px; color: var(--ink); background: #fff; }
.fm-node.trig, .fm-node.split { background: var(--page); width: max-content; max-width: 100%; }
.fm-k { display: block; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); margin-bottom: 2px; }
.fm-br { display: flex; gap: 6px; margin-top: 8px; }
.fm-line { width: 2px; height: 18px; background: var(--control); margin-left: 24px; position: relative; }
.fm-line .fm-wait { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 11px; color: var(--muted); white-space: nowrap; background: #fff; padding: 0 4px; }
.fm-line:has(.fm-wait) { height: 26px; }
.fm-msg { display: flex; gap: 10px; align-items: center; }
.fm-msg b { display: block; }
.fm-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.fm-stats div { background: var(--page); border-radius: 6px; padding: 6px 8px; }
.fm-stats span { display: block; font-size: 10.5px; color: var(--muted); }
.fm-stats b { font-size: 13px; color: var(--ink); }
.fm-node.more { color: var(--muted); font-size: 12px; text-align: center; border-style: dashed; background: none; }
.heat { display: grid; gap: 4px; font-size: 11px; color: var(--muted); }
.heat-h, .heat-r { display: grid; grid-template-columns: 34px repeat(6, 1fr); gap: 4px; align-items: center; }
.heat-h span { text-align: center; }
.heat-r i { height: 26px; border-radius: 5px; background: rgba(154, 122, 31, calc(.08 + var(--v) * .8)); position: relative; }
.heat-r i[data-top]::after { content: attr(data-top); position: absolute; inset: 0; display: grid; place-items: center; font: 600 10.5px var(--font); color: #fff; }
.panel.accent-gold .heat-r i { background: rgba(217, 188, 114, calc(.15 + var(--v) * .85)); }
.panel.accent-gold .heat-r i[style*="--v:1"] { background: #9a7a1f; }

/* Retention suite: cohorts, RFM, time between orders, product paths */
table.cohort td.hc { text-align: right; font-variant-numeric: tabular-nums; background: rgba(34, 132, 102, calc(.06 + var(--v) * .5)); color: var(--ink); font-weight: 500; border-radius: 4px; }
table.cohort td.e { color: var(--disabled); }
table.cohort td, table.cohort th { padding: 7px 8px; }
.sw { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 8px; vertical-align: 0; }
table.rfm td { padding: 8px; }
.moves .mv { display: grid; grid-template-columns: auto auto auto 1fr auto; gap: 10px; align-items: center; font-size: 12.5px; color: var(--ink); padding: 7px 0; border-top: 1px solid var(--line); }
.moves .arr { color: var(--muted); }
.moves b { text-align: right; }
.tbo { display: grid; gap: 7px; }
.tbo-r { display: grid; grid-template-columns: 56px 1fr 52px; gap: 10px; align-items: center; font-size: 11.5px; color: var(--body); }
.tbo-r .bar { height: 12px; }
.tbo-r .bar b { display: block; height: 100%; border-radius: 99px; background: var(--green-20); overflow: hidden; }
.tbo-r .bar b i { display: block; height: 100%; background: var(--green); border-radius: 99px 0 0 99px; }
.tbo-r .n { text-align: right; font-variant-numeric: tabular-nums; }
.sankey { width: 100%; height: auto; display: block; }
.sankey text { font: 11px var(--font); fill: var(--body); paint-order: stroke; stroke: #fff; stroke-width: 3px; stroke-linejoin: round; }
.sankey .sk-l text { font-size: 10.5px; fill: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
@media (max-width: 640px) {
  table.dd th:first-child { width: 60%; }
  .thumb { width: 32px; height: 32px; }
  .fm-stats { grid-template-columns: repeat(2, 1fr); }
  .heat-r i { height: 22px; }
  .moves .mv { grid-template-columns: auto auto auto 1fr; }
  .moves .mv .chip { grid-column: 1 / -1; justify-self: start; }
  .sankey text { font-size: 12px; }
  table.cohort td, table.cohort th { padding: 6px 5px; font-size: 11.5px; }
}

/* Feature cards */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow-sm); }
.feature .ico { width: 38px; height: 38px; border-radius: 9px; background: var(--green-10); color: var(--green-strong); display: grid; place-items: center; }
.feature .ico svg { width: 20px; height: 20px; }
.feature h3 { font-size: 18px; letter-spacing: -0.01em; margin: 16px 0 4px; }
.feature .who { font-size: 13.5px; font-weight: 600; color: var(--green-strong); margin-bottom: 10px; }
.feature p { font-size: 15px; line-height: 1.55; }
@media (max-width: 900px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .features { grid-template-columns: 1fr; } }

/* Story / team */
.team { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 48px; box-shadow: var(--shadow-sm); }
.team p + p { margin-top: 14px; }
.team .big { font-size: 20px; color: var(--ink); font-weight: 500; line-height: 1.5; }
@media (max-width: 900px) { .team { grid-template-columns: 1fr; padding: 28px; gap: 24px; } }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 10px; }
.faq summary { list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 600; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; line-height: 1; color: var(--muted); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { padding: 0 22px 20px; font-size: 16px; }

/* Closing band */
.closing { background: var(--ink); color: #d4d4d4; text-align: center; }
.closing .h2 { color: #fafafa; margin: 14px auto 16px; max-width: 760px; }
.closing .eyebrow { color: var(--green-35); }
.closing .eyebrow::before { background: var(--green-35); }
.closing .lead { color: #a3a3a3; max-width: 620px; margin: 0 auto; }
.closing .ctas { display: flex; gap: 12px; justify-content: center; margin-top: 32px; flex-wrap: wrap; }

/* Footer */
footer.site { background: var(--ink); color: #a3a3a3; border-top: 1px solid #2b2b2b; padding: 48px 0 40px; font-size: 14px; }
footer.site .wrap { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
footer.site img { height: 24px; width: auto; filter: invert(1); }
footer.site h4 { color: #fafafa; font-size: 14px; margin-bottom: 12px; }
footer.site ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
footer.site a { text-decoration: none; }
footer.site a:hover { color: #fafafa; }
footer.site .copy { grid-column: 1 / -1; border-top: 1px solid #2b2b2b; padding-top: 20px; margin-top: 8px; font-size: 13px; }
@media (max-width: 760px) { footer.site .wrap { grid-template-columns: 1fr 1fr; } }

/* Grid children may shrink below their content width (stops wide cards from pushing past the screen). */
.hero .wrap > *, .panel > *, .ai-grid > *, .team > *, .stackboard > * { min-width: 0; }

/* Hero glow */
.hero { position: relative; }
.hero::before { content: ""; position: absolute; inset: -80px -6% auto auto; width: 860px; height: 720px; background: radial-gradient(closest-side, rgba(81, 159, 131, .22), rgba(217, 188, 114, .10) 55%, rgba(81, 159, 131, 0)); pointer-events: none; }
.hero .wrap { position: relative; }

/* Mobile layout */
@media (max-width: 640px) {
  .hero { padding: 32px 0 40px; }
  .hero .ctas .btn { flex: 1 1 auto; justify-content: center; }
  .pcard { padding: 16px; }
  table.pt-table .name { white-space: nowrap; }
  table.pt-table td, table.pt-table th { padding-left: 5px; padding-right: 5px; }
  .pace { min-width: 56px; }
  .section-head { margin-bottom: 32px; }
  .section-head.center { text-align: left; }
  .tabs { width: auto; max-width: none; margin: 0 -20px 28px; padding: 4px; border-radius: 0; border-left: 0; border-right: 0; scrollbar-width: none; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs button { padding: 9px 14px; }
  .panel li { font-size: 15px; }
  .questions { margin-bottom: 32px; }
  .q { font-size: 14px; padding: 8px 14px; }
  .msg-user { max-width: 92%; width: auto; }
  .chat table.pt-table { font-size: 12px; }
  .chat .bar span:not(.chip) { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .team { padding: 24px; }
  .faq summary { padding: 16px 18px; }
  .faq details p { padding: 0 18px 18px; }
  .closing .ctas .btn { flex: 1 1 auto; justify-content: center; }
  .mock-note { left: 12px; right: 12px; bottom: 12px; max-width: none; font-size: 12px; }
}
/* Legal pages */
.legal { padding: 48px 0 96px; }
.legal-head { max-width: 860px; margin-bottom: 36px; }
.legal-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 28px; }
.legal-tabs a { font-size: 14px; font-weight: 500; color: var(--secondary); text-decoration: none; padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: #fff; }
.legal-tabs a:hover { color: var(--ink); border-color: var(--control); }
.legal-tabs a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.legal-meta { margin-top: 10px; font-size: 15px; color: var(--muted); }
.legal-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal-toc { position: sticky; top: 92px; max-height: calc(100vh - 120px); overflow-y: auto; font-size: 14px; }
.legal-toc summary { font-weight: 600; color: var(--ink); cursor: pointer; list-style: none; margin-bottom: 10px; }
.legal-toc summary::-webkit-details-marker { display: none; }
.legal-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; border-left: 1px solid var(--line); }
.legal-toc a { display: block; padding: 4px 0 4px 14px; margin-left: -1px; border-left: 2px solid transparent; color: var(--muted); text-decoration: none; line-height: 1.4; }
.legal-toc a:hover { color: var(--ink); }
.legal-toc a.active { color: var(--green-strong); border-left-color: var(--green-strong); font-weight: 500; }
.legal-body { max-width: 760px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 40px 48px; font-size: 16px; line-height: 1.7; }
.legal-body h2 { font-size: 22px; letter-spacing: -0.015em; margin: 40px 0 12px; scroll-margin-top: 92px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 17px; margin: 26px 0 8px; }
.legal-body p, .legal-body ul, .legal-body ol { margin: 0 0 14px; }
.legal-body ul, .legal-body ol { padding-left: 22px; }
.legal-body li { margin: 4px 0; }
.legal-body a { color: var(--green-strong); font-weight: 500; text-decoration: underline; text-underline-offset: 2px; }
.legal-body strong { color: var(--ink); }
.legal-body address { font-style: normal; }
.legal-body .table-scroll { overflow-x: auto; margin: 0 0 18px; }
.legal-body table { border-collapse: collapse; width: 100%; font-size: 14px; }
.legal-body th, .legal-body td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.legal-body th { background: var(--well); color: var(--ink); font-weight: 600; }
.legal-body [class$="-tagline"] { font-size: 18px; font-weight: 600; color: var(--green-strong); }
.legal-body [class$="-footer"] { color: var(--muted); font-size: 14px; margin-top: 36px; padding-top: 16px; border-top: 1px solid var(--line); }
.legal-body .tos-acceptance { background: var(--green-10); border-radius: 8px; padding: 14px 16px; }
.legal-page .mock-note { display: none; }
@media (max-width: 900px) {
  .legal-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .legal-toc { position: static; max-height: none; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
  .legal-toc summary { margin: 0; display: flex; justify-content: space-between; }
  .legal-toc summary::after { content: "+"; color: var(--muted); font-weight: 400; }
  .legal-toc details[open] summary { margin-bottom: 10px; }
  .legal-toc details[open] summary::after { content: "–"; }
  .legal-body { padding: 24px 20px; font-size: 15.5px; }
  .legal-tabs { flex-wrap: nowrap; overflow-x: auto; margin: 0 -20px 24px; padding: 0 20px; scrollbar-width: none; }
  .legal-tabs a { white-space: nowrap; }
}

/* Hero: Ask Hiro chip */
.ask-chip { position: absolute; top: -2px; right: 18px; z-index: 2; display: inline-flex; align-items: center; gap: 10px; background: var(--ink); color: #fff; text-decoration: none; font-size: 13px; padding: 9px 14px 9px 12px; border-radius: 99px; box-shadow: var(--shadow-lg); }
.ask-chip b { color: var(--green-35); font-weight: 600; margin-right: 4px; }
.ask-chip .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--green-35); box-shadow: 0 0 0 0 rgba(145, 205, 181, .6); animation: pulse 2.4s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(145, 205, 181, 0); } 100% { box-shadow: 0 0 0 0 rgba(145, 205, 181, 0); } }
@media (max-width: 980px) { .ask-chip { display: none; } }

/* Feature bento: mini product visuals */
.feature { display: flex; flex-direction: column; padding: 14px 14px 22px; }
.feature > h3, .feature > .who, .feature > p { padding: 0 10px; }
.mini { background: var(--well); border: 0; border-radius: 10px; height: 168px; padding: 14px 16px; margin-bottom: 6px; overflow: hidden; font-size: 12.5px; color: var(--body); display: flex; flex-direction: column; justify-content: center; gap: 10px; }
.mini-rows { display: grid; gap: 11px; }
.mini-rows > div { display: grid; grid-template-columns: 26px 1fr 84px; gap: 10px; align-items: center; }
.mini-rows .av { width: 26px; height: 26px; border-radius: 7px; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.mini-rows .nm { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-rows .pace { display: block; min-width: 0; }
.mini-list { display: grid; gap: 6px; }
.mini-list > div { display: flex; justify-content: space-between; gap: 10px; align-items: center; background: #fff; border: 0; border-radius: 8px; padding: 6px 10px; box-shadow: 0 1px 1px rgba(0,0,0,.04); }
.mini-list span:first-child { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink); }
.mini-cap { font-size: 11.5px; color: var(--muted); }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; }
.mini-head b { font-size: 20px; color: var(--ink); letter-spacing: -0.02em; }
.spark { width: 100%; height: 64px; display: block; }
.spark .limit { stroke: #dc6943; stroke-width: 1; stroke-dasharray: 4 4; }
.spark .line { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.spark .hit { fill: #dc6943; }
.mini-dash { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 8px; height: 100%; }
.mini-dash .t { background: #fff; border: 0; border-radius: 8px; padding: 8px 10px; display: flex; flex-direction: column; justify-content: space-between; }
.mini-dash .t b { font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.mini-dash .t span { font-size: 11px; color: var(--muted); }
.mini-dash .bars { flex-direction: row; align-items: flex-end; gap: 5px; }
.mini-dash .bars i { flex: 1; background: var(--green); border-radius: 3px 3px 0 0; }
.mini-dash .wide { grid-column: 1 / -1; padding: 6px 8px; }
.mini-dash .wide svg { width: 100%; height: 100%; }
.mini-share .brandbar { display: flex; align-items: center; gap: 8px; background: #fff; border: 0; border-radius: 8px; padding: 10px 12px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; }
.mini-share .lg { width: 24px; height: 24px; border-radius: 6px; background: var(--ink); color: #fff; font-size: 10px; display: grid; place-items: center; }
.mini-share .x { color: var(--muted); font-weight: 400; }
.sharerow { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.mini-slack { display: grid; grid-template-columns: 28px 1fr; gap: 10px; background: #fff; border: 0; border-radius: 8px; padding: 10px 12px; line-height: 1.45; }
.mini-slack .hb { width: 28px; height: 28px; border-radius: 7px; background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 12px; }
.mini-slack b { color: var(--ink); }
.mini-slack .muted { color: var(--muted); font-size: 11px; }
@media (max-width: 640px) {
  .feature { display: flex; padding: 12px 12px 18px; }
  .feature > h3, .feature > .who, .feature > p { padding: 0 6px; }
  .mini { height: 160px; }
}

/* Integrations: client connections board */
.stackboard { display: grid; grid-template-columns: minmax(0, 1fr); }
.board { box-shadow: var(--shadow-md); }
.board-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.board-table { min-width: 640px; }
.board-table td { padding: 12px 10px; }
.board-table td:first-child { white-space: nowrap; }
.board-table .av { width: 26px; height: 26px; border-radius: 7px; color: #fff; font-size: 10px; font-weight: 700; display: inline-grid; place-items: center; vertical-align: middle; margin-right: 10px; }
.board-table .nm { color: var(--ink); font-weight: 500; }
.board-table .sync { text-align: right; white-space: nowrap; color: var(--muted); font-size: 12px; }
.okdot { display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: var(--green); margin-right: 6px; vertical-align: 1px; }
.pchip { display: inline-flex; align-items: center; gap: 6px; background: var(--page); border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px 3px 4px; margin: 2px 4px 2px 0; font-size: 12px; font-weight: 500; color: var(--ink); white-space: nowrap; transition: background .2s, border-color .2s, box-shadow .2s; }
.pchip img, .pchip .ltr { width: 18px; height: 18px; border-radius: 99px; object-fit: contain; }
.pchip .ltr { background: var(--well); display: inline-grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--secondary); }
.none { font-size: 12px; color: var(--disabled); }
}
@media (max-width: 640px) { .board-scroll { margin: 0 -16px; padding: 0 16px; } }


/* Per-pillar accents (the app's chart palette) */
.panel.accent-green { --acc: #228466; --acc-soft: #e6f6ef; }
.panel.accent-blue { --acc: #3f7ba8; --acc-soft: #e9f2f9; }
.panel.accent-mauve { --acc: #9a5f82; --acc-soft: #f6edf2; }
.panel.accent-gold { --acc: #9a7a1f; --acc-soft: #fbf4df; }
.panel .eyebrow { color: var(--acc); } .panel .eyebrow::before { background: var(--acc); }
.panel li::before { background-color: var(--acc-soft); }
.panel.accent-blue li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%233f7ba8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.panel.accent-mauve li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%239a5f82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.panel.accent-gold li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%239a7a1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.panel .pcard { border-top: 3px solid var(--acc); }
.tabs button[data-accent="blue"][aria-selected="true"] { color: #3f7ba8; }
.tabs button[data-accent="mauve"][aria-selected="true"] { color: #9a5f82; }
.tabs button[data-accent="gold"][aria-selected="true"] { color: #9a7a1f; }
.tabs button[data-accent="green"][aria-selected="true"] { color: #228466; }
.tabs button[aria-selected="true"]::before { content: ""; display: inline-block; width: 7px; height: 7px; border-radius: 99px; background: currentColor; margin-right: 8px; vertical-align: 1px; }

/* Section rhythm */
section.band { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
section.tight-top { padding-top: 0; }

/* FAQ, two columns on desktop */
.faq-section { padding-top: 0; }
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 56px; align-items: start; }
.faq-side { position: sticky; top: 100px; }
.faq-side .h2 { margin: 12px 0 16px; }
.faq-grid .faq { max-width: none; margin: 0; }
@media (max-width: 900px) { .faq-grid { grid-template-columns: 1fr; gap: 28px; } .faq-side { position: static; } }

/* Nav: current section */
.nav .nav-links a.current { color: var(--ink); }
.nav .nav-links a { position: relative; }
.nav .nav-links a.current::after { content: ""; position: absolute; left: 0; right: 0; bottom: -23px; height: 2px; background: var(--green-strong); border-radius: 2px; }

/* Reveal on scroll (only when JS has run, and never with reduced motion) */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js .reveal { opacity: 1; transform: none; transition: none; } .ask-chip .dot { animation: none; } }

/* Mockup notes (not part of the site) */
.mock-note { position: fixed; right: 16px; bottom: 16px; z-index: 50; background: var(--ink); color: #fff; font-size: 12.5px; padding: 10px 14px; border-radius: 10px; box-shadow: var(--shadow-lg); max-width: 280px; line-height: 1.45; }
.mock-note b { color: var(--green-35); }
.mock-note button { background: none; border: 0; color: #a3a3a3; cursor: pointer; float: right; font-size: 14px; padding: 0 0 0 8px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee .track { animation: none; }
}
footer.site .brand p { margin-top: 14px; max-width: 260px; }
.legal-grid > * { min-width: 0; }

@media (max-width: 640px) { .legal-body table { min-width: 560px; } }
@media (max-width: 640px) {
  .board-scroll { overflow: visible; margin: 0; padding: 0; }
  table.pt-table.board-table { min-width: 0; }
  table.pt-table.board-table thead { display: none; }
  table.pt-table.board-table tr { display: block; position: relative; padding: 12px 0 10px; border-bottom: 1px solid var(--line); }
  table.pt-table.board-table tr:last-child { border-bottom: 0; }
  table.pt-table.board-table td { display: inline; border: 0; padding: 0; }
  table.pt-table.board-table td:first-child { display: block; margin-bottom: 8px; }
  table.pt-table.board-table td.sync { position: absolute; right: 0; top: 17px; }
  table.pt-table.board-table .none { display: none; }
}
@media (max-width: 640px) { .split { grid-template-columns: 1fr; gap: 6px; } .split .r { white-space: normal; flex-wrap: wrap; } }

/* Hero: Klaviyo partner badge */
.partner-badge { display: block; width: 210px; height: auto; margin-top: 18px; }
@media (max-width: 640px) { .partner-badge { width: 180px; margin-top: 14px; } }

/* Subscriptions section: bento of product cards */
.sub-plats { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 18px; }
.subs-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.sc { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 20px; display: flex; flex-direction: column; gap: 12px; min-width: 0; font-size: 13px; }
.sc-wide { grid-column: span 2; }
.sc-h { display: flex; flex-direction: column; gap: 2px; }
.sc-h h3 { font-size: 17px; letter-spacing: -0.01em; }
.sc-h .ps { margin: 0; }
.stats.four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.sc-chart { width: 100%; height: 120px; display: block; }
.sc-p { margin: auto 0 0; font-size: 14px; color: var(--body); line-height: 1.5; }
.sc-bars { display: grid; gap: 8px; }
.sc-bars > div { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 56px; gap: 10px; align-items: center; }
.sc-bars span:first-child { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sc-bars .bar { height: 8px; border-radius: 99px; background: var(--well); overflow: hidden; }
.sc-bars .bar b { display: block; height: 100%; border-radius: 99px; background: var(--green); }
.sc-bars .n { text-align: right; font-variant-numeric: tabular-nums; }
.sc-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 7px 0; border-top: 1px solid var(--line); }
.sc-row span:first-child { color: var(--muted); }
.sc-row b { color: var(--ink); font-weight: 600; text-align: right; }
.sc-curve { width: 100%; height: 110px; display: block; }
.sc-marks { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.sc-marks b { color: var(--ink); }
.sc-big b { display: block; font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--green-strong); line-height: 1.1; }
.sc-big span { color: var(--muted); font-size: 13px; }
@media (max-width: 980px) { .subs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .subs-grid { grid-template-columns: minmax(0, 1fr); } .sc-wide { grid-column: auto; } .stats.four { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.sc-strip { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 24px; align-items: center; }
.sc-strip .sc-p { margin-top: 6px; }
.strip-cells { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.strip-cells .cell { background: var(--well); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.strip-cells .k { font-size: 11.5px; color: var(--muted); }
.strip-cells b { color: var(--ink); font-size: 15px; letter-spacing: -0.01em; }
.strip-cells .dim { font-size: 12px; color: var(--muted); }
@media (max-width: 980px) { .sc-strip { grid-template-columns: minmax(0, 1fr); } .strip-cells { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* New-feature badge */
.eyebrow-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.new-badge { display: inline-flex; align-items: center; gap: 5px; font: 700 11px/1 var(--font); letter-spacing: .06em; text-transform: uppercase; color: #fff; background: linear-gradient(135deg, var(--green-strong), #2f9b7a); padding: 5px 10px 5px 8px; border-radius: 99px; box-shadow: 0 1px 2px rgba(34, 132, 102, .3), 0 0 0 3px rgba(34, 132, 102, .12); }
.new-badge svg { width: 11px; height: 11px; fill: currentColor; }
.nav-new { display: inline-block; margin-left: 5px; font: 700 9.5px/1 var(--font); letter-spacing: .05em; text-transform: uppercase; color: var(--green-strong); background: var(--green-10); border-radius: 99px; padding: 3px 6px; vertical-align: 2px; }
.mobile-menu .nav-new { font-size: 10.5px; padding: 3px 7px; vertical-align: 3px; }

/* Reports: client report slide */
.slide { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 18px 20px; aspect-ratio: 16 / 9.4; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 6px 18px rgba(55,55,55,.07); }
.slide-top { display: flex; justify-content: space-between; align-items: center; font-size: 11px; }
.slide-logo { font-weight: 800; letter-spacing: .12em; color: var(--ink); border: 1.5px solid var(--ink); padding: 3px 7px; border-radius: 4px; font-size: 10px; }
.slide-client { color: var(--muted); }
.slide-title { font-size: 19px; font-weight: 600; color: var(--ink); letter-spacing: -0.015em; line-height: 1.25; }
.slide-title b { color: var(--green-strong); }
.slide-body { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1fr); gap: 16px; align-items: end; flex: 1; }
.slide-kpis { display: grid; gap: 8px; }
.slide-kpis div { border-left: 3px solid var(--green); padding-left: 10px; }
.slide-kpis span { display: block; font-size: 11px; color: var(--muted); }
.slide-kpis b { font-size: 18px; color: var(--ink); letter-spacing: -0.02em; }
.slide-chart { width: 100%; height: auto; }
.slide-chart text { font: 9px var(--font); fill: var(--muted); }
.slide-notes { margin: 0; padding-left: 16px; font-size: 12px; color: var(--body); display: grid; gap: 3px; }
.report-foot { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
@media (max-width: 640px) { .slide { aspect-ratio: auto; } .slide-body { grid-template-columns: minmax(0, 1fr); } .slide-title { font-size: 16px; } }

/* Motion: live dots */
.hero .chip.ok i, .board .okdot, .chat .chip.ok i { animation: livedot 2.4s ease-in-out infinite; }
@keyframes livedot { 0%, 100% { box-shadow: 0 0 0 0 rgba(81, 159, 131, .55); } 50% { box-shadow: 0 0 0 4px rgba(81, 159, 131, 0); } }
@media (prefers-reduced-motion: reduce) { .hero .chip.ok i, .board .okdot, .chat .chip.ok i { animation: none; } }
.panel .slide-notes { margin: 0; list-style: disc; display: grid; gap: 3px; }
.panel .slide-notes li { display: list-item; font-size: 12.5px; grid-template-columns: none; }
.panel .slide-notes li::before { content: none; }
.slide-logo { white-space: nowrap; }
.slide-top { gap: 10px; }
.slide-client { text-align: right; }

/* Built for every seat */
.seats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.seat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 24px; display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.seat-wide { grid-column: 1 / -1; }
.seat-who { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--green-strong); }
.seat h3 { font-size: 22px; letter-spacing: -0.02em; margin: 6px 0 8px; }
.seat p { font-size: 15px; line-height: 1.55; margin: 0; }
.seat-vis { background: var(--well); border-radius: 10px; padding: 14px; display: grid; gap: 10px; margin-top: auto; }
.roster { display: grid; gap: 6px; }
.roster .r { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 10px; align-items: center; background: #fff; border-radius: 8px; padding: 7px 10px; font-size: 13px; }
.roster .av { width: 26px; height: 26px; border-radius: 7px; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.roster .nm { color: var(--ink); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.roster .r.ok { opacity: .62; }
.roster .r.flag { box-shadow: inset 3px 0 0 #dc6943; }
.roster .r.warn { box-shadow: inset 3px 0 0 var(--gold); }
.st-ok { font-size: 12px; color: var(--muted); }
.flag-chip, .warn-chip { font-size: 11.5px; font-weight: 600; border-radius: 99px; padding: 3px 9px; white-space: nowrap; }
.flag-chip { background: var(--bad-bg); color: var(--bad-fg); }
.warn-chip { background: #fbf4df; color: #7a5f14; }
.creatives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.cr { background: #fff; border-radius: 8px; padding: 8px; display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--muted); }
.cr b { color: var(--ink); font-size: 15px; margin-top: 6px; }
.thumb.lg { width: 100%; height: 72px; border-radius: 6px; }
.seat .mini-list > div { font-size: 12.5px; }
.share3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.sh { background: var(--well); border-radius: 10px; padding: 14px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.sh-h b { display: block; color: var(--ink); font-size: 15px; }
.sh-h span { font-size: 12.5px; color: var(--muted); }
.mslide, .mdash, .mslack { background: #fff; border-radius: 8px; padding: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.05); display: flex; flex-direction: column; gap: 8px; font-size: 12px; flex: 1; }
.mslide-top { display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: 10.5px; }
.mslide-t { font-weight: 600; color: var(--ink); font-size: 13.5px; line-height: 1.3; }
.mslide-t b { color: var(--green-strong); }
.mslide svg { width: 100%; height: 84px; margin-top: auto; }
.mdash svg { width: 100%; height: 60px; }
.mdash-bar { display: flex; align-items: center; gap: 6px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; }
.mdash-bar .lg { width: 20px; height: 20px; border-radius: 5px; background: var(--ink); color: #fff; font-size: 9px; display: grid; place-items: center; flex: none; }
.mdash-bar .x { color: var(--muted); font-weight: 400; }
.mdash-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.mdash-tiles div { background: var(--page); border-radius: 6px; padding: 6px 8px; }
.mdash-tiles span { display: block; font-size: 10.5px; color: var(--muted); }
.mdash-tiles b { font-size: 15px; color: var(--ink); }
.mdash .chip { align-self: flex-start; }
.mslack-ch { font-weight: 700; color: var(--ink); }
.mslack-msg { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 8px; line-height: 1.45; }
.mslack-msg .hb { width: 26px; height: 26px; border-radius: 6px; background: var(--ink); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 11px; }
.mslack-msg b { color: var(--ink); }
.mslack-msg .muted { color: var(--muted); font-size: 10.5px; }
@media (max-width: 900px) { .seats { grid-template-columns: minmax(0, 1fr); } .share3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .seat { padding: 18px; } .seat h3 { font-size: 20px; } }

.seat-wide h3 { font-size: 26px; }
.seat-wide .seat-text p { max-width: 760px; }
@media (max-width: 640px) { .seat-wide h3 { font-size: 22px; } }

/* Our story sits after a band: give its card room */
section.story-sec { padding-top: 96px; }
@media (max-width: 640px) { section.story-sec { padding-top: 64px; } }

/* For your whole team: open layout, no card boxes */
#teams .seats { gap: 0; }
#teams .seat { background: none; border: 0; box-shadow: none; border-radius: 0; padding: 40px 0; }
#teams .seat-wide { padding-top: 8px; border-bottom: 1px solid var(--line); }
#teams .seat:not(.seat-wide):nth-of-type(2) { padding-right: 40px; border-right: 1px solid var(--line); }
#teams .seat:not(.seat-wide):nth-of-type(3) { padding-left: 40px; }
#teams .sh, #teams .seat-vis { background: var(--well); border: 0; }
@media (max-width: 900px) {
  #teams .seat { padding: 32px 0; }
  #teams .seat:not(.seat-wide):nth-of-type(2) { padding-right: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  #teams .seat:not(.seat-wide):nth-of-type(3) { padding-left: 0; }
}

/* Deliverability tab */
.dv-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; margin-bottom: 14px; }
.dv-score, .dv-growth { background: var(--well); border-radius: 8px; padding: 10px 12px; display: flex; flex-direction: column; }
.dv-score { position: relative; align-items: center; text-align: center; }
.dv-score svg { width: 120px; height: 70px; }
.dv-score b { font-size: 26px; color: var(--ink); letter-spacing: -0.02em; margin-top: -30px; }
.dv-score span { font-size: 11.5px; color: var(--muted); margin-top: 4px; }
.dv-growth { justify-content: center; gap: 4px; }
.dv-growth .l { font-size: 11.5px; color: var(--body); }
.dv-growth b { font-size: 26px; color: var(--ink); letter-spacing: -0.02em; }
.dv-growth .c { font-size: 11.5px; color: var(--muted); }
.dv-growth .up { color: var(--ok-fg); font-weight: 600; }
.dv-growth .down { color: var(--bad-fg); font-weight: 600; }
.dv-growth b.dv-send { font-size: 17px; line-height: 1.25; }
.dv-tab td.dim { color: var(--disabled); }

/* 404 page */
.notfound { padding: 120px 0 140px; }
.notfound .h2 { margin: 12px 0 14px; }
.notfound .ctas { display: flex; gap: 12px; margin-top: 28px; flex-wrap: wrap; }

/* Campaign Deep Dive: product popover hanging off the Knitwear row (WS-176) */
table.dd tr.dd-on td { background: var(--green-10); }
table.dd tr.dd-on td:first-child { border-radius: 8px 0 0 8px; } table.dd tr.dd-on td:last-child { border-radius: 0 8px 8px 0; }
.pcard.has-pop { margin-bottom: 170px; }
.dd-pop { position: absolute; right: -22px; top: calc(100% - 12px); width: 318px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 14px 14px 12px; z-index: 2; }
.dd-pop::before { content: ""; position: absolute; top: -7px; right: 58px; width: 12px; height: 12px; background: var(--card); border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
.dd-pop-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; margin-bottom: 10px; font-size: 12px; }
.dd-pop-h b { color: var(--ink); font-weight: 600; } .dd-pop-h span { color: var(--muted); font-size: 11px; white-space: nowrap; }
.dd-prods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.dd-prod { display: flex; flex-direction: column; gap: 2px; font-size: 11px; }
.dd-prod .pi { display: grid; place-items: center; height: 54px; border-radius: 8px; margin-bottom: 4px; }
.dd-prod .pi svg { width: 30px; height: 30px; fill: rgba(255, 255, 255, .9); stroke: rgba(24, 24, 24, .28); stroke-width: 1; stroke-linejoin: round; }
.dd-prod .pi svg .cut { fill: none; stroke: rgba(24, 24, 24, .35); }
.dd-prod .pn { color: var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dd-prod b { color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: -0.01em; }
.dd-prod .pv { color: var(--muted); }
.dd-pop-f { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--body); }
.dd-pop-f .bar { height: 6px; border-radius: 99px; background: var(--green-35); overflow: hidden; } .dd-pop-f .bar b { display: block; height: 100%; background: var(--green); }
@media (max-width: 1100px) { .dd-pop { right: -8px; } }
@media (max-width: 640px) { .pcard.has-pop { margin-bottom: 0; } .dd-pop { position: relative; right: auto; top: auto; width: auto; margin: 14px -4px -4px; box-shadow: none; } .dd-pop::before { right: 50%; } }

/* Second floating card: first-time vs. returning, under the Campaign Deep Dive (WS-176) */
.dd-buyers { position: absolute; left: -22px; top: calc(100% + 18px); width: 246px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 14px; z-index: 1; font-size: 12px; }
.dd-buyers .bar { height: 8px; border-radius: 99px; background: var(--green-35); overflow: hidden; margin-bottom: 10px; }
.dd-buyers .bar b { display: block; height: 100%; background: var(--green); }
.dd-bk { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dd-bk div { display: flex; flex-direction: column; gap: 2px; }
.dd-bk span { display: inline-flex; align-items: center; gap: 5px; color: var(--body); font-size: 11px; }
.dd-bk i { width: 8px; height: 8px; border-radius: 99px; display: inline-block; }
.dd-bk b { color: var(--ink); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.dd-bk em { font-style: normal; color: var(--muted); font-size: 11px; }
@media (max-width: 1100px) { .dd-buyers { left: -8px; } }
@media (max-width: 640px) { .dd-buyers { position: relative; left: auto; top: auto; width: auto; margin: 12px -4px -4px; box-shadow: none; } }
@media (min-width: 1001px) and (max-width: 1100px) { .dd-buyers { width: 204px; } .dd-pop { width: 288px; } .dd-pop-h span { display: none; } }

/* Retention: vertical accordion on the left, its card on the right; cycles on its own (WS-176) */
.vacc { display: grid; grid-template-columns: .8fr 1.2fr; gap: 56px; align-items: center; }
.vacc .accent-green { --acc: #228466; --acc-soft: #e6f6ef; } .vacc .accent-blue { --acc: #3f7ba8; --acc-soft: #e9f2f9; }
.vacc .accent-mauve { --acc: #9a5f82; --acc-soft: #f6edf2; } .vacc .accent-gold { --acc: #9a7a1f; --acc-soft: #fbf4df; }
.vacc-list { border-top: 1px solid var(--line); }
.vacc-item { position: relative; border-bottom: 1px solid var(--line); }
.vacc-h { display: flex; align-items: center; gap: 12px; width: 100%; background: none; border: 0; padding: 20px 0; font: 600 21px/1.25 var(--font); letter-spacing: -0.015em; color: var(--muted); text-align: left; cursor: pointer; transition: color .2s; }
.vacc-h::before { content: ""; width: 8px; height: 8px; border-radius: 99px; background: var(--line); flex: none; transition: background .2s; }
.vacc-h:hover { color: var(--ink); }
.vacc-item.open .vacc-h { color: var(--ink); } .vacc-item.open .vacc-h::before { background: var(--acc); }
.vacc-b { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s ease; }
.vacc-b > div { overflow: hidden; }
.vacc-item.open .vacc-b { grid-template-rows: 1fr; }
.vacc-b ul { list-style: none; padding: 0 0 22px 20px; margin: 0; display: grid; gap: 12px; }
.vacc-b li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; font-size: 16px; }
.vacc-b li::before { content: ""; width: 20px; height: 20px; border-radius: 99px; margin-top: 2px; background: var(--acc-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%23228466' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.vacc .accent-blue li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%233f7ba8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.vacc .accent-mauve li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%239a5f82' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.vacc .accent-gold li::before { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%239a7a1f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.vacc-prog { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; overflow: hidden; pointer-events: none; }
.vacc-prog b { display: block; height: 100%; width: 100%; background: var(--acc); transform: scaleX(0); transform-origin: left; }
.vacc.auto .vacc-item.open .vacc-prog b { animation: vacc-fill var(--vacc-ms, 7000ms) linear forwards; }
.vacc.auto.paused .vacc-item.open .vacc-prog b { animation-play-state: paused; }
@keyframes vacc-fill { to { transform: scaleX(1); } }
.vacc-cards { display: grid; }
.vacc-card { grid-area: 1 / 1; align-self: center; transition: opacity .35s ease, transform .35s ease; }
.vacc-card[hidden] { display: block; visibility: hidden; opacity: 0; transform: translateY(8px); }
.vacc-card .pcard { border-top: 3px solid var(--acc); }
@media (max-width: 1000px) { .vacc { grid-template-columns: 1fr; gap: 28px; } .vacc-card { transition: none; } .vacc-card[hidden] { display: none; } }
@media (max-width: 640px) { .vacc-h { font-size: 18px; padding: 16px 0; } .vacc-b li { font-size: 15px; } }
@media (prefers-reduced-motion: reduce) { .vacc-b, .vacc-card { transition: none; } }

/* Account managers: report deck and live dashboard previews (WS-176) */
.mdeck { position: relative; flex: 1; display: flex; flex-direction: column; padding: 0 10px 10px 0; }
.mdeck::before, .mdeck::after { content: ""; position: absolute; inset: 10px 0 0 10px; background: #fff; border-radius: 8px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.mdeck::before { inset: 5px 5px 5px 5px; } .mdeck::after { opacity: .7; z-index: 0; }
.mdeck::before { z-index: 1; }
.mdeck-slide { position: relative; z-index: 2; flex: 1; background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,.08), 0 6px 14px rgba(0,0,0,.05); padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 8px; font-size: 11px; color: var(--muted); border-top: 3px solid #1d4b3d; }
.mdeck-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 10px; white-space: nowrap; }
.mdeck-brand { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; color: var(--ink); font-size: 11px; }
.mdeck-brand i { font-style: normal; width: 18px; height: 18px; border-radius: 5px; background: #1d4b3d; color: #fff; font-size: 8.5px; display: grid; place-items: center; }
.mdeck-t { font-weight: 650; color: var(--ink); font-size: 14px; line-height: 1.3; letter-spacing: -0.01em; }
.mdeck-t b { color: var(--green-strong); }
.mdeck-body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: end; margin-top: auto; }
.mdeck-kpis { display: grid; gap: 8px; }
.mdeck-kpis span { display: inline-flex; align-items: center; gap: 5px; font-size: 10px; }
.mdeck-kpis i { width: 7px; height: 7px; border-radius: 2px; display: inline-block; }
.mdeck-kpis b { display: block; color: var(--ink); font-size: 14px; letter-spacing: -0.01em; }
.mdeck-body svg { width: 100%; height: auto; display: block; }
.mdeck-body svg text { font: 500 7.5px var(--font); fill: #9a958c; }
.mdeck-foot { display: flex; justify-content: space-between; font-size: 9.5px; color: #a8a39a; border-top: 1px solid #f0ede7; padding-top: 6px; }
.mdeck-pdf { position: absolute; z-index: 3; top: -9px; right: 2px; display: inline-flex; align-items: center; gap: 4px; background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 3px 8px 3px 6px; font: 700 10px/1 var(--font); letter-spacing: .04em; color: #b4463e; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.mdeck-pdf svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round; }
.mdash { padding: 0; gap: 0; overflow: hidden; }
.mdash svg { height: auto; }
.mdash-chrome { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: #f6f4f0; border-bottom: 1px solid #ece8e1; }
.mdash-chrome .dots { display: inline-flex; gap: 4px; } .mdash-chrome .dots i { width: 7px; height: 7px; border-radius: 99px; background: #dcd7cf; }
.mdash-chrome .url { flex: 1; min-width: 0; display: inline-flex; align-items: center; gap: 5px; background: #fff; border-radius: 5px; padding: 3px 8px; font-size: 10px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mdash-chrome .url svg { width: 10px; height: 10px; flex: none; fill: none; stroke: currentColor; stroke-width: 2.4; }
.mdash-in { padding: 10px 12px 6px; display: flex; flex-direction: column; gap: 8px; }
.mdash-bar .lg { background: #1d4b3d; }
.mdash-live { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 10px; font-weight: 600; color: var(--green-strong); }
.mdash-live i { width: 6px; height: 6px; border-radius: 99px; background: var(--green); }
.mdash-tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mdash-tiles b { display: block; font-size: 14px; letter-spacing: -0.01em; }
.mdash-tiles em { font-style: normal; font-size: 10px; font-weight: 600; }
.mdash-tiles em.up { color: var(--ok-fg); }
.mdash svg.mdash-chart { width: 100%; height: 56px; display: block; }
.mdash-x { display: flex; justify-content: space-between; font-size: 9.5px; color: #a8a39a; margin-top: -4px; }
.mdash-share { display: flex; align-items: center; gap: 8px; margin-top: auto; padding: 8px 12px; border-top: 1px solid #f0ede7; font-size: 11px; color: var(--body); }
.mdash-share .av { display: inline-flex; } .mdash-share .av i { font-style: normal; width: 20px; height: 20px; border-radius: 99px; border: 2px solid #fff; margin-left: -6px; font-size: 7.5px; font-weight: 700; color: rgba(24,24,24,.65); display: grid; place-items: center; }
.mdash-share .av i:first-child { margin-left: 0; }
/* Deck chart fills the slide's free height */
.mdeck-body { flex: 1; align-items: stretch; margin-top: 4px; }
.mdeck-kpis { align-content: end; }
.mdeck-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; min-height: 90px; }
.mdeck-bars .c { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mdeck-bars .st { flex: 1; display: flex; flex-direction: column-reverse; border-bottom: 1px solid #e7e3dc; }
.mdeck-bars .st b { background: #519F83; opacity: .55; }
.mdeck-bars .st i { background: #5A94BF; opacity: .55; border-radius: 2px 2px 0 0; }
.mdeck-bars .c.on .st b, .mdeck-bars .c.on .st i { opacity: 1; }
.mdeck-bars span { font-size: 9px; color: #9a958c; text-align: center; }
