/* ============================================================================
   PENG MENDOZA — GROWTH COMMAND CENTER
   Design system: "WARM COMMAND"
   Cream canvas · terracotta (Claude-orange) · espresso coffee · warm-black ink
   Built by Apex MD / Mharck Martinez
   ========================================================================== */

/* ----------------------------------------------------------------- Tokens */
:root {
  /* Canvas + surfaces */
  --cream:      #FAF6F0;   /* app background */
  --cream-2:    #F4ECE3;   /* recessed surface */
  --cream-3:    #EFE5D9;   /* deeper recess */
  --paper:      #FFFFFF;   /* elevated cards */

  /* Ink (warm near-black → muted) */
  --ink:        #241811;
  --ink-2:      #4A3A2E;
  --muted:      #8C7B6C;
  --faint:      #B4A392;

  /* Hairlines */
  --line:       #ECE1D5;
  --line-2:     #E2D4C4;

  /* Terracotta — primary accent (Claude orange) */
  --terra:      #C15F3C;
  --terra-600:  #A94E2E;
  --terra-700:  #8F3F24;
  --terra-tint: #F8EBE3;
  --terra-tint2:#F1DED2;

  /* Espresso / coffee — deep brand + dark surfaces */
  --espresso:   #3A2318;
  --espresso-2: #2A1810;
  --coffee:     #5C2417;

  /* Support */
  --amber:      #D8A24A;
  --sage:       #6E8A5E;   /* live / positive */
  --sage-tint:  #EAF0E3;

  /* Gradients */
  --grad-hero:  linear-gradient(103deg, #C6512E 0%, #7C2F1C 52%, #45190F 100%);
  --grad-terra: linear-gradient(135deg, #CE6A45 0%, #A5432A 100%);
  --grad-espr:  linear-gradient(160deg, #402A1D 0%, #251610 100%);

  /* Radii */
  --r-xs: 8px; --r-sm: 12px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px; --r-pill: 999px;

  /* Shadows (warm-tinted) */
  --sh-1: 0 1px 2px rgba(58,35,24,.05), 0 1px 3px rgba(58,35,24,.04);
  --sh-2: 0 2px 4px rgba(58,35,24,.05), 0 8px 20px -8px rgba(58,35,24,.10);
  --sh-3: 0 10px 34px -12px rgba(58,35,24,.20), 0 2px 8px rgba(58,35,24,.06);
  --sh-terra: 0 8px 24px -8px rgba(169,78,46,.45);

  /* Type — Notion-style default sans-serif (system stack) */
  --f-display: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-body: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --f-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;

  /* Layout */
  --sidebar-w: 264px;
  --sidebar-w-collapsed: 78px;
  --topbar-h: 68px;
  --content-max: 1240px;
  --ease: cubic-bezier(.22,.61,.36,1);
}

/* ------------------------------------------------------------------- Reset */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--f-body);
  background: var(--cream);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
h1,h2,h3,h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.08; margin: 0; letter-spacing: -.015em; color: var(--ink); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img { max-width: 100%; display: block; }
ul { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 2.5px solid var(--terra); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--terra-tint2); color: var(--coffee); }

/* Tabular figures for all data */
.tnum { font-variant-numeric: tabular-nums; }

/* Custom scrollbar */
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
*::-webkit-scrollbar { width: 10px; height: 10px; }
*::-webkit-scrollbar-thumb { background: var(--line-2); border-radius: 99px; border: 3px solid var(--cream); }

/* ============================================================== App shell */
.app { display: flex; height: 100dvh; overflow: hidden; }

/* ------------------------------------------------------------- Sidebar */
.sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--paper);
  border-right: 1px solid var(--line);
  display: flex; flex-direction: column;
  padding: 20px 16px;
  position: sticky; top: 0; height: 100dvh;
  transition: width .32s var(--ease);
  z-index: 40;
}
.app.collapsed .sidebar { width: var(--sidebar-w-collapsed); }

.brand-wrap { position: relative; margin-bottom: 22px; }
.brand { display: flex; align-items: center; gap: 12px; padding: 8px; width: 100%; text-align: left; border-radius: var(--r-md); transition: background .16s var(--ease); }
.brand:hover { background: var(--cream-2); }
.brand__chev { width: 16px; height: 16px; stroke-width: 2.2; color: var(--faint); margin-left: auto; flex-shrink: 0; transition: transform .24s var(--ease); }
.app.acct-open .brand__chev { transform: rotate(180deg); }
.app.collapsed .brand__chev { display: none; }
.brand__mark {
  width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(160deg, #bcc636, #8f9a18); color: #fff;
  display: grid; place-items: center;
  font-family: var(--f-display); font-weight: 800; font-size: 19px;
  box-shadow: var(--sh-2); position: relative; overflow: hidden;
}
.brand__mark::after { content:""; position:absolute; inset:0; background: radial-gradient(90% 70% at 25% 12%, rgba(255,255,255,.30), transparent 62%); }
.brand__mark span { position: relative; z-index: 1; }
.brand__mark img { position: relative; z-index: 1; width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.brand__txt { min-width: 0; transition: opacity .2s; }
.brand__name { font-family: var(--f-display); font-weight: 700; font-size: 15.5px; letter-spacing: -.02em; white-space: nowrap; }
.brand__sub { font-size: 11px; color: var(--muted); font-weight: 500; letter-spacing: .02em; white-space: nowrap; }
.app.collapsed .brand__txt { opacity: 0; pointer-events: none; width: 0; }

.nav-group-label {
  font-family: var(--f-body); font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
  color: var(--faint); font-weight: 600; padding: 0 10px; margin: 14px 0 8px;
  white-space: nowrap; overflow: hidden;
}
.app.collapsed .nav-group-label { opacity: 0; }

.nav { display: flex; flex-direction: column; gap: 3px; }
.nav__item {
  display: flex; align-items: center; gap: 13px;
  padding: 11px 13px; border-radius: var(--r-sm);
  color: var(--ink-2); font-weight: 500; font-size: 14.5px;
  width: 100%; text-align: left; position: relative;
  transition: background .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.nav__item svg { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 1.9; }
.nav__item:hover { background: var(--cream-2); color: var(--ink); }
.nav__item.active { background: var(--grad-terra); color: #fff; box-shadow: var(--sh-terra); font-weight: 600; }
.nav__item.active svg { stroke-width: 2.1; }
.nav__label { transition: opacity .2s; }
.app.collapsed .nav__label { opacity: 0; width: 0; overflow: hidden; }
.nav__badge {
  margin-left: auto; font-size: 10.5px; font-weight: 700; font-family: var(--f-mono);
  padding: 2px 7px; border-radius: 99px; background: var(--cream-2); color: var(--muted);
}
.nav__item.active .nav__badge { background: rgba(255,255,255,.22); color: #fff; }
.app.collapsed .nav__badge { display: none; }
.nav__ext { margin-left: auto; display: flex; align-items: center; color: var(--muted); opacity: .55; transition: opacity .18s var(--ease); }
.nav__ext svg { width: 15px; height: 15px; stroke-width: 2; }
.nav__item:hover .nav__ext { opacity: 1; color: var(--terra); }
.app.collapsed .nav__ext { display: none; }

.sidebar__spacer { flex: 1; }

/* Circle-style links (Support) */
.side-links { padding: 6px 4px 2px; }
.side-link {
  display: flex; align-items: center; gap: 13px; width: 100%; text-align: left;
  padding: 10px 13px; border-radius: var(--r-sm); color: var(--muted); font-weight: 500; font-size: 14px;
  transition: background .16s var(--ease), color .16s var(--ease);
}
.side-link:hover { background: var(--cream-2); color: var(--ink); }
.side-link svg { width: 16px; height: 16px; stroke-width: 2; flex-shrink: 0; color: var(--faint); transition: color .16s; }
.side-link:hover svg { color: var(--terra); }
.app.collapsed .side-link span { display: none; }
.app.collapsed .side-link { justify-content: center; padding: 10px; }

.sidebar__foot { padding: 12px 10px 2px; border-top: 1px solid var(--line); margin-top: 12px; }
.owner { display: flex; align-items: center; gap: 11px; }
.owner__av { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: var(--cream-2); flex-shrink: 0; border: 1.5px solid var(--line-2); }
.owner__txt { min-width: 0; }
.owner__name { font-size: 13px; font-weight: 600; white-space: nowrap; }
.owner__role { font-size: 11px; color: var(--muted); white-space: nowrap; }
.app.collapsed .owner__txt { display: none; }

/* account switcher (upper-left) */
.acct-menu {
  position: absolute; top: calc(100% + 6px); left: 0; width: 248px; max-width: 84vw;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--sh-3); padding: 8px; z-index: 50; transform-origin: top left;
  opacity: 0; transform: translateY(-8px) scale(.97); pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.app.acct-open .acct-menu { opacity: 1; transform: none; pointer-events: auto; }
.acct-menu__label { font-family: var(--f-mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 6px 10px 8px; }
.acct-item { display: flex; align-items: center; gap: 11px; width: 100%; text-align: left; padding: 9px 10px; border-radius: var(--r-sm); transition: background .16s var(--ease); }
.acct-item:hover { background: var(--cream-2); }
.acct-item__mark { width: 34px; height: 34px; border-radius: 10px; flex-shrink: 0; overflow: hidden; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 15px; background: var(--grad-espr); color: #F6D9C6; }
.acct-item__mark img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
.acct-item__mark.s2 { background: linear-gradient(160deg,#3a5a46,#213528); color: #dbeecf; }
.acct-item__mark.s3 { background: linear-gradient(160deg,#4a3560,#281a38); color: #e7d8f2; }
.acct-item__txt { flex: 1; min-width: 0; }
.acct-item__name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 6px; }
.acct-item__role { font-size: 11px; color: var(--muted); }
.acct-item__tag { font-family: var(--f-mono); font-size: 8.5px; letter-spacing: .05em; font-weight: 700; padding: 2px 6px; border-radius: 99px; background: var(--cream-3); color: var(--muted); }
.acct-item__check { width: 18px; height: 18px; flex-shrink: 0; color: var(--terra); opacity: 0; }
.acct-item.active .acct-item__check { opacity: 1; }
.acct-item.active { background: var(--terra-tint); }
.acct-foot { border-top: 1px solid var(--line); margin-top: 6px; padding-top: 8px; }
.acct-add { display: flex; align-items: center; gap: 9px; width: 100%; padding: 9px 10px; border-radius: var(--r-sm); font-size: 13px; font-weight: 600; color: var(--terra-700); transition: background .16s; }
.acct-add:hover { background: var(--terra-tint); }
.acct-add svg { width: 17px; height: 17px; stroke-width: 2.2; }
.acct-note { font-size: 10.5px; color: var(--muted); padding: 6px 10px 2px; line-height: 1.4; }

/* company block + logout (lower-left) */
.company { display: flex; align-items: center; gap: 11px; padding: 6px 8px; }
.company__mark {
  width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center;
  background: var(--grad-terra); color: #fff; font-family: var(--f-display); font-weight: 800; font-size: 12.5px;
  letter-spacing: .02em; box-shadow: var(--sh-1); position: relative; overflow: hidden;
}
.company__mark::after { content:""; position: absolute; inset: 0; background: radial-gradient(80% 60% at 25% 20%, rgba(255,255,255,.28), transparent 60%); }
.company__mark span { position: relative; z-index: 1; }
.company__txt { min-width: 0; }
.company__name { font-size: 13.5px; font-weight: 700; font-family: var(--f-display); letter-spacing: -.01em; white-space: nowrap; }
.company__sub { font-size: 11px; color: var(--muted); white-space: nowrap; }
.app.collapsed .company__txt { display: none; }

.logout {
  display: flex; align-items: center; gap: 11px; width: 100%; margin-top: 8px; padding: 10px 12px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--cream);
  color: var(--muted); font-weight: 500; font-size: 13px; cursor: pointer;
  transition: background .16s var(--ease), border-color .16s var(--ease), color .16s var(--ease);
}
.logout:hover { background: var(--cream-2); border-color: var(--line-2); color: var(--ink); }
.logout svg { width: 17px; height: 17px; stroke-width: 2; flex-shrink: 0; }
.logout__lock { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-family: var(--f-mono); font-size: 9px; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.logout__lock svg { width: 12px; height: 12px; }
.app.collapsed .logout__label, .app.collapsed .logout__lock { display: none; }
.app-version { text-align: left; font-size: 11px; color: var(--faint); margin-top: 10px; padding-left: 3px; letter-spacing: .02em; }
.app.collapsed .app-version { display: none; }
.app.collapsed .logout { justify-content: center; padding: 10px; }

/* Collapsed sidebar (desktop only) — center every icon/mark on one axis */
@media (min-width: 761px) {
  .app.collapsed .side-links,
  .app.collapsed .sidebar__foot { padding-left: 0; padding-right: 0; }
  .app.collapsed .brand    { justify-content: center; padding: 0; gap: 0; }
  .app.collapsed .nav__item { justify-content: center; padding: 11px; gap: 0; }
  .app.collapsed .side-link { gap: 0; }
  .app.collapsed .company  { justify-content: center; padding: 6px 0; gap: 0; }
  .app.collapsed .logout   { gap: 0; }
}

/* ---------------------------------------------------------------- Main */
.main { flex: 1; min-width: 0; min-height: 0; display: flex; flex-direction: column; }

/* Topbar */
.topbar {
  height: var(--topbar-h); flex-shrink: 0;
  display: flex; align-items: center; gap: 16px;
  padding: 0 clamp(18px, 3vw, 34px);
  background: rgba(250,246,240,.82); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--r-sm); flex-shrink: 0;
  display: grid; place-items: center; color: var(--ink-2);
  border: 1px solid var(--line); background: var(--paper);
  transition: all .18s var(--ease);
}
.icon-btn:hover { background: var(--cream-2); color: var(--ink); border-color: var(--line-2); }
.icon-btn svg { width: 19px; height: 19px; stroke-width: 1.9; }

.crumb { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.crumb__title { font-family: var(--f-display); font-weight: 700; font-size: 19px; letter-spacing: -.02em; white-space: nowrap; }
.crumb__meta { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.topbar__spacer { flex: 1; }

.search {
  display: flex; align-items: center; gap: 9px;
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-pill); padding: 8px 14px; width: 230px;
  color: var(--muted); transition: all .18s var(--ease);
}
.search:hover { border-color: var(--line-2); }
.search svg { width: 16px; height: 16px; stroke-width: 2; }
.search span { font-size: 13px; }
.search kbd {
  margin-left: auto; font-family: var(--f-mono); font-size: 10.5px;
  background: var(--cream-2); border-radius: 5px; padding: 2px 6px; color: var(--faint);
}
.topbar-date {
  font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .04em;
  color: var(--muted); text-transform: uppercase; white-space: nowrap;
}
.btn-present {
  display: flex; align-items: center; gap: 8px;
  background: var(--espresso); color: #F6D9C6;
  padding: 9px 16px; border-radius: var(--r-pill); font-weight: 600; font-size: 13px;
  transition: all .18s var(--ease); box-shadow: var(--sh-1);
}
.btn-present:hover { background: var(--espresso-2); transform: translateY(-1px); }
.btn-present svg { width: 16px; height: 16px; stroke-width: 2; }

/* notifications */
.notif-wrap { position: relative; flex-shrink: 0; }
.notif-bell.ring svg { animation: bellRing .6s var(--ease); transform-origin: top center; }
@keyframes bellRing { 0%,100%{transform:rotate(0);} 20%{transform:rotate(16deg);} 40%{transform:rotate(-12deg);} 60%{transform:rotate(8deg);} 80%{transform:rotate(-4deg);} }
.notif-badge {
  position: absolute; top: -5px; right: -5px; min-width: 19px; height: 19px; padding: 0 5px;
  border-radius: 99px; background: #E5484D; color: #fff; font-size: 10.5px; font-weight: 700; font-family: var(--f-mono);
  display: grid; place-items: center; border: 2px solid var(--cream); box-shadow: 0 2px 6px rgba(229,72,77,.4);
}
.notif-badge.is-empty { display: none; }
.notif-badge.pop { animation: badgePop .35s var(--ease); }
@keyframes badgePop { 0%{transform:scale(0);} 60%{transform:scale(1.25);} 100%{transform:scale(1);} }

.notif-panel {
  position: absolute; top: calc(100% + 12px); right: 0; width: 344px; max-width: calc(100vw - 28px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-3);
  padding: 8px; z-index: 90; transform-origin: top right;
  opacity: 0; transform: translateY(-8px) scale(.97); pointer-events: none;
  transition: opacity .2s var(--ease), transform .2s var(--ease);
}
.notif-panel.on { opacity: 1; transform: none; pointer-events: auto; }
.notif-head { display: flex; align-items: center; justify-content: space-between; padding: 10px 12px 8px; }
.notif-head b { font-family: var(--f-display); font-size: 14.5px; font-weight: 700; }
.notif-head button { font-size: 11.5px; font-weight: 600; color: var(--terra-700); }
.notif-head button:hover { text-decoration: underline; }
.notif-empty { padding: 30px 16px 34px; text-align: center; color: var(--muted); }
.notif-empty svg { width: 30px; height: 30px; stroke-width: 1.6; color: var(--faint); margin-bottom: 8px; }
.notif-empty div { font-size: 12.5px; }
.notif-list { display: flex; flex-direction: column; gap: 2px; max-height: 380px; overflow-y: auto; }
.notif-item { display: flex; gap: 12px; padding: 12px; border-radius: var(--r-sm); position: relative; transition: background .16s; }
.notif-item:hover { background: var(--cream-2); }
.notif-item.unread { background: var(--terra-tint); }
.notif-item.unread:hover { background: var(--terra-tint2); }
.notif-item__ico { width: 38px; height: 38px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--sage-tint); color: #3f5a32; }
.notif-item__ico svg { width: 20px; height: 20px; stroke-width: 2.2; }
.notif-item__txt { flex: 1; min-width: 0; padding-right: 42px; }
.notif-item__title { font-size: 13px; font-weight: 600; }
.notif-item__desc { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.notif-item__link { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 700; color: var(--terra-700); margin-top: 7px; }
.notif-item__link svg { width: 13px; height: 13px; stroke-width: 2.4; }
.notif-item__time { position: absolute; top: 12px; right: 12px; font-size: 10px; color: var(--faint); font-family: var(--f-mono); }

/* Scroll region */
.scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; }
.view {
  max-width: var(--content-max); margin: 0 auto;
  padding: clamp(20px, 3vw, 36px) clamp(18px, 3vw, 34px) 80px;
}

/* View switching */
.view { display: none; }
.view.active { display: block; animation: viewIn .42s var(--ease); }
@keyframes viewIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* ============================================================= Primitives */
.eyebrow {
  font-family: var(--f-mono); font-size: 11px; letter-spacing: .16em; text-transform: uppercase;
  color: var(--terra-700); font-weight: 600; display: inline-flex; align-items: center; gap: 8px;
}
.eyebrow::before { content:""; width: 18px; height: 2px; background: var(--terra); border-radius: 2px; }

.section-head { margin: 42px 0 18px; display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.section-head:first-child { margin-top: 8px; }
.section-head h2 { font-size: clamp(20px, 2.4vw, 25px); }
.section-head p { font-size: 13.5px; color: var(--muted); margin-top: 5px; max-width: 60ch; }

.card {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: var(--r-lg); box-shadow: var(--sh-1);
}
.card--pad { padding: 22px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11.5px; font-weight: 600; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--cream-2); color: var(--ink-2); white-space: nowrap;
}
.chip--terra { background: var(--terra-tint); color: var(--terra-700); }
.chip--live { background: var(--sage-tint); color: #3f5a32; }
.chip--espr { background: var(--espresso); color: #F0CDB8; }
.chip--ghost { background: transparent; border: 1px dashed var(--line-2); color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.chip--live .dot { background: var(--sage); box-shadow: 0 0 0 3px rgba(110,138,94,.22); animation: pulse 2.4s infinite; }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 3px rgba(110,138,94,.22);} 50%{box-shadow:0 0 0 5px rgba(110,138,94,.08);} }

.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 10px 18px; border-radius: var(--r-pill); font-weight: 600; font-size: 13.5px;
  transition: all .18s var(--ease); white-space: nowrap;
}
.btn svg { width: 16px; height: 16px; stroke-width: 2; }
.btn--primary { background: var(--grad-terra); color: #fff; box-shadow: var(--sh-terra); }
.btn--primary:hover { transform: translateY(-1px); filter: brightness(1.04); }
.btn--ghost { background: var(--paper); border: 1px solid var(--line-2); color: var(--ink); }
.btn--ghost:hover { background: var(--cream-2); border-color: var(--muted); }
.btn--sm { padding: 7px 13px; font-size: 12.5px; }

/* ============================================================ OVERVIEW */
/* Greeting hero */
.hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: 30px 34px;
  background: var(--grad-hero); color: #fff8f3;
  display: flex; align-items: center; gap: 26px;
  box-shadow: var(--sh-3);
}
.hero::before {
  content:""; position: absolute; inset: 0;
  background:
    radial-gradient(60% 120% at 88% -10%, rgba(216,162,74,.30), transparent 55%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.05'/%3E%3C/svg%3E");
}
.hero__av {
  width: 92px; height: 92px; border-radius: 50%; flex-shrink: 0; object-fit: cover; object-position: top center;
  border: 3px solid rgba(255,255,255,.35); box-shadow: 0 8px 24px rgba(0,0,0,.28); position: relative; z-index: 1;
  background: #d9b7a4;
}
.hero__body { position: relative; z-index: 1; min-width: 0; }
.hero__day { font-family: var(--f-mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: rgba(255,240,232,.72); margin-bottom: 6px; }
.hero__title { font-size: clamp(23px, 3.4vw, 34px); color: #fff; }
.hero__title em { font-style: normal; color: #FBD9A6; }
.hero__msg { margin-top: 10px; font-size: 14.5px; color: rgba(255,244,238,.86); max-width: 62ch; line-height: 1.5; }
.hero__cta { display: flex; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.hero .btn--ghost { background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.28); color: #fff; backdrop-filter: blur(4px); }
.hero .btn--ghost:hover { background: rgba(255,255,255,.2); }
.hero .btn--light { background: #fff; color: var(--coffee); }
.hero .btn--light:hover { transform: translateY(-1px); }

/* KPI row */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 18px; }
.kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 18px 20px; box-shadow: var(--sh-1); transition: all .2s var(--ease); position: relative; overflow: hidden; }
.kpi:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.kpi__ico { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; margin-bottom: 12px; background: var(--terra-tint); color: var(--terra-700); }
.kpi__ico svg { width: 20px; height: 20px; stroke-width: 2; }
.kpi__ico--espr { background: var(--espresso); color: #F0CDB8; }
.kpi__ico--sage { background: var(--sage-tint); color: #45632f; }
.kpi__ico--amber { background: #FBEED2; color: #9a6b1e; }
.kpi__val { font-family: var(--f-display); font-weight: 700; font-size: 30px; letter-spacing: -.03em; line-height: 1; }
.kpi__val small { font-size: 16px; color: var(--muted); font-weight: 600; }
.kpi__label { font-size: 12.5px; color: var(--muted); margin-top: 5px; font-weight: 500; }
.kpi__trend { position: absolute; top: 18px; right: 18px; font-size: 11.5px; font-weight: 700; font-family: var(--f-mono); color: var(--sage); }

/* Module grid (the 4 areas) */
.modules { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.module {
  position: relative; text-align: left; overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  padding: 24px; box-shadow: var(--sh-1); transition: all .24s var(--ease); display: block;
}
.module::after {
  content:""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 0 1.5px transparent; transition: box-shadow .24s;
}
.module:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.module:hover::after { box-shadow: inset 0 0 0 1.5px var(--terra-tint2); }
.module__top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 40px; }
.module__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-espr); color: #F6D9C6; box-shadow: var(--sh-2); }
.module__ico svg { width: 24px; height: 24px; stroke-width: 1.9; }
.module__arrow { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); transition: all .24s var(--ease); }
.module:hover .module__arrow { background: var(--terra); color: #fff; border-color: var(--terra); transform: rotate(-45deg); }
.module__arrow svg { width: 17px; height: 17px; stroke-width: 2.2; }
.module h3 { font-size: 19px; margin-bottom: 6px; }
.module p { font-size: 13.5px; color: var(--muted); line-height: 1.5; max-width: 42ch; }
.module__foot { display: flex; gap: 8px; margin-top: 16px; flex-wrap: wrap; }
.module__num { position: absolute; top: 20px; right: 66px; font-family: var(--f-mono); font-size: 12px; color: var(--faint); }

/* Two-col split */
.split { display: grid; grid-template-columns: 1.5fr 1fr; gap: 18px; align-items: start; }

/* Activity timeline */
.timeline { display: flex; flex-direction: column; }
.tl-item { display: flex; gap: 15px; padding: 14px 0; border-bottom: 1px solid var(--line); position: relative; }
.tl-item:last-child { border-bottom: none; }
.tl-node { width: 32px; height: 32px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; background: var(--terra-tint); color: var(--terra-700); margin-top: 2px; }
.tl-node svg { width: 16px; height: 16px; stroke-width: 2; }
.tl-node--sage { background: var(--sage-tint); color: #45632f; }
.tl-node--espr { background: var(--espresso); color: #F0CDB8; }
.tl-main { min-width: 0; flex: 1; }
.tl-title { font-weight: 600; font-size: 14px; }
.tl-desc { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.tl-date { font-family: var(--f-mono); font-size: 11px; color: var(--faint); white-space: nowrap; margin-top: 3px; }

/* Status list (right rail) */
.statlist { display: flex; flex-direction: column; gap: 10px; }
.statrow { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--r-md); background: var(--cream); border: 1px solid var(--line); }
.statrow__ico { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; background: var(--paper); border: 1px solid var(--line); color: var(--ink-2); flex-shrink: 0; }
.statrow__ico svg { width: 16px; height: 16px; stroke-width: 1.9; }
.statrow__txt { flex: 1; min-width: 0; }
.statrow__name { font-size: 13.5px; font-weight: 600; }
.statrow__meta { font-size: 11.5px; color: var(--muted); }

/* ==================================================== GET STARTED (directory) */
.dir-list { display: flex; flex-direction: column; gap: 14px; }
.dir-card {
  display: grid; grid-template-columns: 1fr 310px; background: var(--paper);
  border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden;
  box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.dir-card:hover { transform: translateY(-2px); box-shadow: var(--sh-3); border-color: var(--terra-tint2); }
.dir-card__body { padding: 20px 22px; min-width: 0; display: flex; flex-direction: column; }
.dir-card__label { align-self: flex-start; font-family: var(--f-mono); font-size: 10px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; padding: 3px 9px; border-radius: 99px; margin-bottom: 11px; }
.dir-card__label.old { background: var(--cream-3); color: var(--muted); }
.dir-card__label.new { background: var(--sage-tint); color: #3f5a32; }
.dir-card__title { font-size: 17px; margin-bottom: 6px; }
.dir-card--old .dir-card__title { color: var(--ink-2); }
.dir-card__desc { font-size: 13px; color: var(--muted); line-height: 1.5; margin-bottom: auto; max-width: 52ch; }
.dir-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; font-family: var(--f-mono); font-size: 11.5px; color: var(--ink-2); min-width: 0; }
.dir-card__link span.u { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dir-card__link .arr { margin-left: 2px; color: var(--faint); flex-shrink: 0; }
.dir-card:hover .dir-card__link .arr { color: var(--terra); }
.dir-card__link .arr svg { width: 13px; height: 13px; stroke-width: 2.4; }
.fav { width: 20px; height: 20px; border-radius: 5px; flex-shrink: 0; display: grid; place-items: center; overflow: hidden; }
.fav svg { width: 13px; height: 13px; }
.fav img { width: 100%; height: 100%; object-fit: cover; }
.fav.gforms { background: #7248B9; color: #fff; }
.fav.site { background: var(--sage-tint); color: #3f5a32; }
.fav.tally { background: #0a0a0a; color: #fff; }
.dir-crit { margin: 2px 0 4px; display: flex; flex-direction: column; gap: 6px; }
.dir-crit li { display: flex; gap: 9px; font-size: 12.5px; color: var(--ink-2); line-height: 1.4; }
.dir-crit li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 1px; stroke-width: 2.4; }
.dir-crit--bad li svg { color: var(--muted); }
.dir-crit--good li svg { color: var(--sage); }
.dir-card__media { background: var(--cream-2); position: relative; overflow: hidden; min-height: 158px; }
.dir-card__media img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.dir-card--old .dir-card__media img { filter: saturate(.92); }
/* google-form mock (old coaching, no screenshot) */
.gform-mock { background: #fff; padding: 16px 16px 0; }
.gform-mock::before { content:""; position: absolute; top: 0; left: 0; right: 0; height: 7px; background: #7248B9; }
.gform-mock__hdr { font-size: 13px; font-weight: 700; color: #202124; margin-top: 4px; }
.gform-mock__req { font-size: 9.5px; color: #d93025; margin: 3px 0 12px; }
.gform-mock__f { font-size: 10.5px; color: #202124; margin-bottom: 5px; }
.gform-mock__f i { display: block; height: 26px; border-bottom: 1px solid #dadce0; margin-top: 3px; margin-bottom: 12px; }

/* get started — official workspace tour */
.gs-hero {
  background: var(--grad-espr); border-radius: var(--r-xl); color: #F6EDE4;
  padding: clamp(26px, 4vw, 44px); position: relative; overflow: hidden; box-shadow: var(--sh-3);
}
.gs-hero::after { content: ""; position: absolute; right: -80px; top: -80px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(193,95,60,.28), transparent 65%); pointer-events: none; }
.gs-hero__body { max-width: 640px; position: relative; }
.gs-hero__pill { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  background: rgba(110,138,94,.22); color: #C9DABC; border: 1px solid rgba(110,138,94,.45); padding: 6px 14px; border-radius: var(--r-pill); margin-bottom: 18px; }
.gs-hero__pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #9FBE8C; animation: pulse 2s infinite; }
.gs-hero h1 { font-size: clamp(22px, 3vw, 30px); line-height: 1.18; letter-spacing: -.02em; color: #FBF4EB; }
.gs-hero p { margin-top: 12px; font-size: 14.5px; line-height: 1.62; color: #D8C6B6; }
.gs-hero__cta { display: flex; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.gs-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 16px; }
.gs-stat { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 18px 20px 16px; }
.gs-stat b { display: block; font-size: 26px; letter-spacing: -.02em; color: var(--ink); }
/* full-width analytics chart (Baremetrics-style) */
.ana { margin-top: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 20px 22px 14px; }
.ana__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ana__label { display: block; font-size: 12px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.ana__big { display: block; font-size: 30px; letter-spacing: -.02em; color: var(--ink); margin-top: 3px; }
.ana__sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.ana__tabs { display: flex; gap: 4px; background: var(--cream-2); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 3px; }
.ana__tabs button { font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 14px; border-radius: var(--r-pill); transition: background .15s var(--ease), color .15s var(--ease); }
.ana__tabs button:hover { color: var(--ink-2); }
.ana__tabs button.on { background: var(--paper); color: var(--terra-700); box-shadow: var(--sh-1); }
.ana__chart { margin-top: 8px; }
.ana__chart svg { width: 100%; height: auto; display: block; }
.ana__grid { stroke: var(--line); stroke-width: 1; }
.ana__tick { font-size: 10.5px; fill: var(--muted); font-family: var(--f-mono); }
.ana__area { fill: var(--terra-tint); opacity: .75; }
.ana__line { fill: none; stroke: var(--terra); stroke-width: 2.2; stroke-linejoin: round; stroke-linecap: round; }
.ana__pt { fill: var(--paper); stroke: var(--terra); stroke-width: 1.6; }
.ana__end { fill: var(--terra); stroke: var(--paper); stroke-width: 2; }
.ana__pill { fill: var(--espresso); }
.ana__pilltxt { font-size: 11px; font-weight: 700; fill: #F6EDE4; font-family: var(--f-mono); }
.gs-stat span { display: block; margin-top: 3px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.gs-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.gs-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-1);
  padding: 22px 22px 18px; text-align: left; display: flex; flex-direction: column; gap: 16px; position: relative;
  transition: box-shadow .2s var(--ease), transform .2s var(--ease), border-color .2s var(--ease); color: var(--ink); }
button.gs-card, a.gs-card { cursor: pointer; }
.gs-card:not(.gs-card--static):hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--line-2); }
.gs-card:not(.gs-card--static):hover .gs-card__arr { color: var(--terra); transform: translate(2px,-2px); }
.gs-card__head { display: flex; gap: 14px; align-items: flex-start; }
.gs-card__ico { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 13px; background: var(--cream-2); color: var(--ink-2);
  display: flex; align-items: center; justify-content: center; }
.gs-card__ico svg { width: 22px; height: 22px; stroke-width: 1.9; }
.gs-card__ico--terra { background: var(--terra-tint); color: var(--terra-700); }
.gs-card__ico--espr { background: #EFE6DE; color: var(--espresso); }
.gs-card__ico--sage { background: var(--sage-tint); color: var(--sage); }
.gs-card__t { flex: 1; min-width: 0; }
.gs-card__t h3 { font-size: 16px; letter-spacing: -.01em; }
.gs-card__t p { margin-top: 5px; font-size: 13px; color: var(--ink-2); line-height: 1.52; }
.gs-card__arr { flex: 0 0 auto; color: var(--faint); transition: color .2s var(--ease), transform .2s var(--ease); }
.gs-card__arr svg { width: 18px; height: 18px; stroke-width: 2; }
.gs-card__foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.gs-thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.gs-thumbs img { width: 100%; aspect-ratio: 4/3; object-fit: cover; object-position: top center; border-radius: 10px; border: 1px solid var(--line); background: var(--cream-2); }
.gs-chain { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding: 14px 12px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; }
.gs-chain__node { font-size: 12px; font-weight: 700; color: var(--ink-2); background: var(--paper); border: 1px solid var(--line-2); padding: 6px 11px; border-radius: var(--r-pill); }
.gs-chain__node--end { background: var(--espresso); border-color: var(--espresso); color: #F6EDE4; }
.gs-chain__arr { color: var(--faint); font-size: 13px; }
.gs-chain--sm .gs-chain__node { font-size: 11.5px; padding: 6px 11px; }
.gs-academy { display: flex; align-items: center; gap: 13px; padding: 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; }
.gs-academy__mark { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 11px; background: #7E8718; color: #fff; font-weight: 800; font-size: 17px; display: flex; align-items: center; justify-content: center; }
.gs-academy__txt b { display: block; font-size: 13.5px; color: var(--ink); }
.gs-academy__txt small { display: block; margin-top: 2px; font-size: 11.5px; color: var(--muted); }
.gs-request { display: flex; align-items: center; gap: 10px; padding: 14px; background: var(--cream); border: 1px solid var(--line); border-radius: 14px; flex-wrap: wrap; }
.gs-request__fab { width: 40px; height: 40px; flex: 0 0 auto; border-radius: 50%; background: var(--grad-terra); color: #fff; font-size: 22px; font-weight: 600;
  display: flex; align-items: center; justify-content: center; box-shadow: var(--sh-terra); }
.gs-request__pill { font-size: 12px; font-weight: 700; color: var(--terra-700); background: var(--terra-tint); border: 1px solid var(--terra-tint2); padding: 7px 14px; border-radius: var(--r-pill); }
.gs-request__pill--soon { color: var(--muted); background: var(--cream-2); border-color: var(--line-2); }
.gs-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.gs-step { display: flex; gap: 14px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 18px 20px; }
.gs-step__num { font-family: var(--f-mono); font-size: 12px; font-weight: 700; color: var(--terra); padding-top: 2px; }
.gs-step b { font-size: 14px; color: var(--ink); }
.gs-step p { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); line-height: 1.5; }
@media (max-width: 900px) { .gs-stats { grid-template-columns: repeat(2, 1fr); } .gs-grid { grid-template-columns: 1fr; } .gs-steps { grid-template-columns: 1fr; } }

/* presentations — speaking decks */
.deck { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-1); padding: 22px 22px 20px; margin-bottom: 18px; }
.deck__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.deck__head h3 { font-size: 18px; letter-spacing: -.01em; }
.deck__head p { margin-top: 4px; font-size: 13px; color: var(--ink-2); }
.deck__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.deck__duo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.deck__pane { min-width: 0; }
.deck__label { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.deck__label a { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; color: var(--terra-700); }
.deck__label a:hover { color: var(--terra); }
.deck__label a svg { width: 13px; height: 13px; stroke-width: 2.2; }
.deck__frame { border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; background: var(--espresso-2); aspect-ratio: 16/9; }
.deck__frame iframe { width: 100%; height: 100%; border: 0; display: block; }
a.deck__frame { display: block; position: relative; text-decoration: none; }
.deck__frame--pdf { background: var(--cream-2); }
.deck__frame--pdf img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; transition: transform .25s var(--ease); }
.deck__frame--pdf:hover img { transform: scale(1.02); }
.deck__pdfbtn { position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%); display: inline-flex; align-items: center; gap: 7px;
  background: rgba(36,24,17,.82); color: #F6EDE4; font-size: 12.5px; font-weight: 700; padding: 9px 18px; border-radius: var(--r-pill);
  -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); transition: background .2s var(--ease); }
.deck__pdfbtn svg { width: 13px; height: 13px; stroke-width: 2.2; }
.deck__frame--pdf:hover .deck__pdfbtn { background: var(--terra); }
@media (max-width: 900px) { .deck__duo { grid-template-columns: 1fr; } }

/* services segmentation + marketing performance */
.svc-head { display: flex; align-items: center; gap: 16px; padding: 18px 22px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); }
.svc-head__num { font-family: var(--f-mono); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--terra-700); background: var(--terra-tint); border: 1px solid var(--terra-tint2); padding: 6px 12px; border-radius: var(--r-pill); flex: 0 0 auto; }
.svc-head__t { flex: 1; min-width: 0; }
.svc-head__t h2 { font-size: 19px; letter-spacing: -.01em; }
.svc-head__t p { margin-top: 2px; font-size: 12.5px; color: var(--muted); }
.chip--sage { background: var(--sage-tint); color: var(--sage); border-color: #DCE7D4; }
a.module { text-decoration: none; color: inherit; display: block; }
.mkt { margin-top: 16px; }
.mkt__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.mkt__src { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #1877F2; }
.mkt__src svg { width: 18px; height: 18px; }
.mkt__src a { color: inherit; text-decoration: none; }
.mkt__src a:hover { text-decoration: underline; }
.mkt__note { font-size: 12px; color: var(--muted); }
.mkt__src--ig { color: #C13584; }
.spark--igflat .spark__area { fill: var(--cream-2); }
.spark--igflat .spark__line, .spark--igflat .spark__dot { stroke: var(--line-2); fill: var(--line-2); }
.mkt-embeds { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fbembed { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 10px 10px 12px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.fbembed__frame { border-radius: 12px; overflow: hidden; background: var(--cream-2); position: relative; }
.fbembed__frame iframe { display: block; width: 100%; height: 420px; border: 0; }
.fbembed--reel .fbembed__frame iframe { height: 476px; }
.fbembed__chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 4px; }
.mkt-chip { font-size: 11px; font-weight: 600; color: var(--ink-2); background: var(--cream-2); border: 1px solid var(--line); padding: 4px 9px; border-radius: var(--r-pill); }
.mkt-chip b { color: var(--terra-700); margin-right: 3px; }
.fbembed__open { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--terra-700); padding: 0 4px; }
.fbembed__open svg { width: 13px; height: 13px; stroke-width: 2.2; }
.fbembed__open:hover { color: var(--terra); }
.mkt-log { margin-top: 18px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); overflow: hidden; }
.mkt-log summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 10px; padding: 15px 20px; font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.mkt-log summary::-webkit-details-marker { display: none; }
.mkt-log summary svg { width: 16px; height: 16px; stroke-width: 2; color: var(--muted); transition: transform .2s var(--ease); flex: 0 0 auto; }
.mkt-log[open] summary svg { transform: rotate(180deg); }
.mkt-log summary b { color: var(--terra-700); }
.mkt-log summary:hover { background: var(--cream); }
.mkt-log__scroll { max-height: 420px; overflow: auto; border-top: 1px solid var(--line); }
.mkt-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.mkt-table th { position: sticky; top: 0; background: var(--cream); text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); padding: 9px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.mkt-table td { padding: 8px 14px; border-bottom: 1px solid var(--line); color: var(--ink-2); white-space: nowrap; }
.mkt-table td.mk-cap { white-space: normal; min-width: 200px; max-width: 340px; color: var(--ink); font-weight: 500; }
.mkt-table tr:hover td { background: var(--cream); }
.mk-type { font-size: 10.5px; font-weight: 700; letter-spacing: .03em; padding: 3px 8px; border-radius: var(--r-pill); background: var(--cream-2); color: var(--muted); }
.mk-type.is-reel { background: var(--terra-tint); color: var(--terra-700); }
.mkt-table a { color: var(--terra-700); display: inline-flex; }
.mk-na { font-size: 10.5px; font-weight: 600; color: var(--faint); background: var(--cream-2); border: 1px dashed var(--line-2); padding: 2px 7px; border-radius: var(--r-pill); cursor: help; }
.mkt-foot { margin-top: 12px; font-size: 12px; color: var(--muted); }
@media (max-width: 900px) { .mkt-embeds { grid-template-columns: 1fr; } .svc-head { flex-wrap: wrap; } }

/* instagram profile comparison */
.igcmp { margin-top: 6px; }
.igcmp__stage { display: flex; align-items: flex-start; justify-content: center; gap: clamp(18px, 4vw, 56px); }
.igphone { flex: 1 1 0; max-width: 360px; margin: 0; min-width: 0; }
.igphone__tag { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 700; letter-spacing: .01em; color: var(--muted); margin-bottom: 11px; }
.igphone__tag--new { color: var(--terra-700); }
.igphone__frame { position: relative; border-radius: 24px; overflow: hidden; border: 1px solid var(--line-2); background: #fff; box-shadow: var(--sh-2); aspect-ratio: 820 / 1494; }
.igphone__frame img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.igphone__frame::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 58px; background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.92)); pointer-events: none; }
.igphone--after .igphone__frame { border-color: #E7D4BE; box-shadow: 0 3px 6px rgba(58,35,24,.06), 0 18px 44px -14px rgba(193,95,60,.42); }
.igphone__notes { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.igphone__notes li { display: flex; gap: 9px; font-size: 12.5px; color: var(--ink-2); line-height: 1.42; }
.igphone__notes li svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 2px; stroke-width: 2.4; }
.igphone__notes--bad li svg { color: var(--muted); }
.igphone__notes--good li svg { color: var(--sage); }
.igcmp__arrow { align-self: center; flex: 0 0 auto; color: var(--terra); margin-top: 40px; }
.igcmp__arrow svg { width: 32px; height: 32px; stroke-width: 2.2; display: block; }
.igwhy { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 26px; }
.igwhy__card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-1); padding: 20px 20px 18px; }
.igwhy__ico { width: 42px; height: 42px; border-radius: 12px; background: var(--terra-tint); display: flex; align-items: center; justify-content: center; color: var(--terra-700); margin-bottom: 13px; }
.igwhy__ico svg { width: 22px; height: 22px; stroke-width: 2; }
.igwhy__card h4 { font-size: 14.5px; line-height: 1.3; margin-bottom: 7px; color: var(--ink); }
.igwhy__card p { font-size: 13px; color: var(--ink-2); line-height: 1.52; }
.igwhy__k { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .01em; color: var(--terra-700); background: var(--terra-tint); padding: 4px 11px; border-radius: var(--r-pill); margin-top: 13px; }
@media (max-width: 760px) {
  .igcmp__stage { flex-wrap: wrap; gap: 22px; }
  .igphone { flex: 1 1 46%; max-width: none; }
  .igcmp__arrow { display: none; }
  .igwhy { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .igphone { flex: 1 1 100%; }
}

/* content engine */
.content-engine { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-1); overflow: hidden; }
.ce-stats { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--line); background: var(--cream); }
.ce-stat { padding: 20px 22px; border-right: 1px solid var(--line); }
.ce-stat:last-child { border-right: none; }
.ce-stat b { font-family: var(--f-display); font-weight: 700; font-size: 26px; letter-spacing: -.02em; display: block; }
.ce-stat span { font-size: 12.5px; color: var(--muted); }
.ce-samples { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; padding: 20px 22px; }
.ce-sample { display: block; width: 100%; padding: 0; cursor: pointer; border-radius: var(--r-md); overflow: hidden; border: 1px solid var(--line); position: relative; aspect-ratio: 1/1; background: var(--cream-2); box-shadow: var(--sh-1); transition: transform .2s var(--ease), box-shadow .2s var(--ease); }
.ce-sample:hover { box-shadow: var(--sh-2); }
.ce-sample:hover .ce-sample__play span { transform: scale(1.08); }
.ce-sample__play span { transition: transform .2s var(--ease); }
.ce-sample:hover { transform: translateY(-2px); }
.ce-sample img { width: 100%; height: 100%; object-fit: cover; }
.ce-sample__tag { position: absolute; bottom: 8px; left: 8px; font-family: var(--f-mono); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; background: rgba(20,16,12,.72); color: #fff; backdrop-filter: blur(4px); }
.ce-sample__play { position: absolute; inset: 0; display: grid; place-items: center; }
.ce-sample__play span { width: 40px; height: 40px; border-radius: 50%; background: rgba(255,255,255,.9); display: grid; place-items: center; box-shadow: 0 4px 14px rgba(0,0,0,.3); }
.ce-sample__play svg { width: 18px; height: 18px; color: var(--coffee); margin-left: 2px; }

@media (max-width: 720px) {
  .dir-card { grid-template-columns: 1fr; }
  .dir-card__media { min-height: 0; aspect-ratio: 16/9; order: -1; }
  .ce-stats { grid-template-columns: 1fr; } .ce-stat { border-right: none; border-bottom: 1px solid var(--line); }
  .ce-samples { grid-template-columns: repeat(2,1fr); }
}

/* ==================================================== WEBSITES & FUNNELS */
.compare { display: flex; flex-direction: column; gap: 26px; }
.cmp {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl);
  box-shadow: var(--sh-1); overflow: hidden;
}
.cmp__head { display: flex; align-items: center; gap: 16px; padding: 22px 24px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.cmp__ico { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--grad-espr); color: #F6D9C6; flex-shrink: 0; }
.cmp__ico svg { width: 23px; height: 23px; stroke-width: 1.9; }
.cmp__titles { min-width: 0; flex: 1; }
.cmp__titles h3 { font-size: 18px; }
.cmp__titles p { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.cmp__toggle { display: flex; background: var(--cream-2); border-radius: var(--r-pill); padding: 4px; gap: 2px; }
.cmp__toggle button { padding: 7px 15px; border-radius: var(--r-pill); font-size: 12.5px; font-weight: 600; color: var(--muted); transition: all .2s var(--ease); }
.cmp__toggle button.on { background: var(--paper); color: var(--ink); box-shadow: var(--sh-1); }
.cmp__toggle button.on[data-side="after"] { color: var(--terra-700); }

/* side-by-side panes */
.cmp__body { display: grid; grid-template-columns: 1fr 1fr; }
.pane { padding: 22px 24px; }
.pane--before { background: var(--cream); border-right: 1px solid var(--line); }
.pane__tag { display: inline-flex; align-items: center; gap: 7px; font-family: var(--f-mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; font-weight: 600; padding: 5px 11px; border-radius: 99px; margin-bottom: 14px; }
.pane--before .pane__tag { background: var(--cream-3); color: var(--muted); }
.pane--after .pane__tag { background: var(--terra-tint); color: var(--terra-700); }
/* browser frame preview */
.frame { border-radius: var(--r-md); border: 1px solid var(--line-2); overflow: hidden; background: var(--paper); box-shadow: var(--sh-1); }
.frame__bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: var(--cream-2); border-bottom: 1px solid var(--line); }
.frame__dots { display: flex; gap: 5px; }
.frame__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.frame__url { font-family: var(--f-mono); font-size: 10.5px; color: var(--muted); background: var(--paper); padding: 4px 10px; border-radius: 99px; margin-left: 6px; flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border: 1px solid var(--line); }
.frame__shot { position: relative; aspect-ratio: 16/10; background: var(--cream-2); display: grid; place-items: center; overflow: hidden; }
.frame__shot img { width: 100%; height: 100%; object-fit: cover; object-position: top center; }
/* live scaled preview embed (before/after) */
a.frame { display: block; cursor: pointer; text-decoration: none; transition: box-shadow .2s var(--ease), transform .2s var(--ease); }
a.frame:hover { box-shadow: var(--sh-2); transform: translateY(-2px); }
.embed-scale { position: absolute; inset: 0; overflow: hidden; background: #fff; }
.embed-scale iframe { position: absolute; top: 0; left: 0; width: 1280px; height: 800px; border: 0; transform-origin: top left; pointer-events: none; background: #fff; }
.frame__open {
  position: absolute; top: 10px; right: 10px; z-index: 3; display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 700; padding: 6px 11px; border-radius: 99px;
  background: rgba(36,24,17,.82); color: #fff; backdrop-filter: blur(6px);
  opacity: 0; transform: translateY(-4px); transition: all .2s var(--ease); font-family: var(--f-mono); letter-spacing: .03em;
}
a.frame:hover .frame__open { opacity: 1; transform: none; }
.frame__open svg { width: 13px; height: 13px; stroke-width: 2.4; }
.frame__shot .badge-live { position: absolute; bottom: 10px; left: 10px; z-index: 3; }

/* placeholder inside frame */
.shot-empty { text-align: center; color: var(--faint); padding: 20px; }
.shot-empty svg { width: 34px; height: 34px; stroke-width: 1.6; margin-bottom: 8px; }
.shot-empty b { display: block; font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.shot-empty span { font-size: 12px; }

.pane__list { margin-top: 16px; display: flex; flex-direction: column; gap: 9px; }
.pane__list li { display: flex; gap: 10px; font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.pane__list li svg { width: 17px; height: 17px; flex-shrink: 0; margin-top: 2px; stroke-width: 2.2; }
.pane--before li svg { color: var(--muted); }
.pane--after li svg { color: var(--sage); }
.pane__foot { margin-top: 18px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

/* metric delta strip */
.deltas { display: grid; grid-template-columns: repeat(4,1fr); gap: 0; border-top: 1px solid var(--line); background: var(--cream); }
.delta { padding: 16px 20px; border-right: 1px solid var(--line); }
.delta:last-child { border-right: none; }
.delta__label { font-size: 11.5px; color: var(--muted); font-weight: 500; }
.delta__val { font-family: var(--f-display); font-weight: 700; font-size: 20px; margin-top: 3px; display: flex; align-items: baseline; gap: 6px; }
.delta__val .up { font-size: 12px; color: var(--sage); font-family: var(--f-mono); }

/* ==================================================== CONTENT MARKETING */
.pillars { display: grid; grid-template-columns: repeat(5,1fr); gap: 12px; }
.pillar { padding: 18px 16px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: all .2s var(--ease); }
.pillar:hover { transform: translateY(-2px); box-shadow: var(--sh-2); }
.pillar__n { font-family: var(--f-mono); font-size: 11px; color: var(--terra); font-weight: 700; }
.pillar__ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--terra-tint); color: var(--terra-700); margin: 8px 0 12px; }
.pillar__ico svg { width: 18px; height: 18px; stroke-width: 2; }
.pillar h4 { font-size: 14.5px; margin-bottom: 5px; }
.pillar p { font-size: 12px; color: var(--muted); line-height: 1.45; }

/* content calendar strip */
.cal { display: grid; grid-template-columns: repeat(7,1fr); gap: 10px; }
.cal__day { border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--paper); padding: 12px; min-height: 118px; box-shadow: var(--sh-1); }
.cal__dow { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; }
.cal__pill { font-size: 11px; font-weight: 600; padding: 5px 8px; border-radius: 7px; margin-top: 8px; line-height: 1.3; }
.cal__pill--reel { background: var(--terra-tint); color: var(--terra-700); }
.cal__pill--carousel { background: var(--espresso); color: #F0CDB8; }
.cal__pill--story { background: #FBEED2; color: #8a5f18; }
.cal__pill--email { background: var(--sage-tint); color: #45632f; }
.cal__pill--live { background: var(--cream-3); color: var(--ink-2); }

/* outputs grid */
.outputs { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.output { border-radius: var(--r-lg); overflow: hidden; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-1); transition: all .22s var(--ease); }
.output:hover { transform: translateY(-3px); box-shadow: var(--sh-3); }
.output__media { aspect-ratio: 4/5; position: relative; display: grid; place-items: center; overflow: hidden; }
.output__media img { width: 100%; height: 100%; object-fit: cover; }
.output__tag { position: absolute; top: 12px; left: 12px; }
.output__body { padding: 14px 16px; }
.output__body h4 { font-size: 14px; margin-bottom: 4px; }
.output__body p { font-size: 12px; color: var(--muted); }
.output__stats { display: flex; gap: 14px; margin-top: 10px; font-size: 11.5px; color: var(--muted); font-family: var(--f-mono); }
.output__stats span { display: flex; align-items: center; gap: 5px; }
.output__stats svg { width: 13px; height: 13px; stroke-width: 2; }

/* ======================================================= BACKEND SYSTEM */
.flowmap { position: relative; padding: 6px; }
.flow-lane { display: grid; grid-template-columns: repeat(auto-fit, minmax(0,1fr)); gap: 0; align-items: stretch; }
.flow-col { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; padding: 0 6px; }
.flow-col:not(:last-child)::after {
  content:""; position: absolute; top: 46px; right: -3px; width: 12px; height: 12px;
  border-top: 2px solid var(--line-2); border-right: 2px solid var(--line-2);
  transform: rotate(45deg); z-index: 2; background: var(--cream);
}
.flow-node {
  width: 100%; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md);
  padding: 16px; box-shadow: var(--sh-1); text-align: center; position: relative; transition: all .2s var(--ease);
}
.flow-node:hover { box-shadow: var(--sh-2); border-color: var(--terra-tint2); }
.flow-node__ico { width: 42px; height: 42px; border-radius: 12px; margin: 0 auto 10px; display: grid; place-items: center; background: var(--terra-tint); color: var(--terra-700); }
.flow-node__ico svg { width: 21px; height: 21px; stroke-width: 1.9; }
.flow-node--dark .flow-node__ico { background: var(--espresso); color: #F0CDB8; }
.flow-node h4 { font-size: 13.5px; margin-bottom: 4px; }
.flow-node p { font-size: 11.5px; color: var(--muted); line-height: 1.4; }
.flow-node__badge { position: absolute; top: -8px; right: 12px; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 99px; font-weight: 700; }
.flow-node__badge.live { background: var(--sage); color: #fff; }
.flow-node__badge.queue { background: var(--cream-3); color: var(--muted); }
.flow-lane-label { font-family: var(--f-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); font-weight: 600; margin: 0 0 6px 6px; }

.stack-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; }
.stack-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.stack-item__ico { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; background: var(--cream-2); color: var(--ink); font-family: var(--f-display); font-weight: 800; font-size: 15px; }
.stack-item__txt h4 { font-size: 13.5px; }
.stack-item__txt p { font-size: 11.5px; color: var(--muted); }

/* ========================================================= OS DASHBOARD */
/* live embed of the real APEX OS backend */
.os-live { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-3); background: #070a10; }
.os-live__bar { display: flex; align-items: center; gap: 10px; padding: 11px 16px; background: #0c111a; border-bottom: 1px solid rgba(255,255,255,.06); }
.os-live__dots { display: flex; gap: 6px; }
.os-live__dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); }
.os-live__url { font-family: var(--f-mono); font-size: 11px; color: #7fe3d0; background: rgba(127,227,208,.08); padding: 5px 12px; border-radius: 99px; border: 1px solid rgba(127,227,208,.16); }
.os-live__badge { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .06em; color: #8ef0b0; }
.os-live__badge .dot { background: #6be09a; box-shadow: 0 0 0 3px rgba(107,224,154,.2); animation: pulse 2.4s infinite; }
.os-embed-wrap { position: relative; background: #070a10; overflow: hidden; }
.os-poster { width: 100%; height: auto; display: block; }
.os-embed { width: 100%; height: 100%; border: 0; display: block; background: #070a10; position: absolute; inset: 0; }
.os-play-overlay {
  position: absolute; inset: 0; display: grid; place-items: center; z-index: 2;
  background: radial-gradient(60% 60% at 50% 45%, rgba(7,10,16,.15), rgba(7,10,16,.55));
  transition: opacity .3s var(--ease); cursor: pointer;
}
.os-play {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 13px 24px; border-radius: 99px; font-weight: 700; font-size: 14px; font-family: var(--f-body);
  background: rgba(127,227,208,.14); color: #d7fff6; border: 1.5px solid rgba(127,227,208,.5);
  backdrop-filter: blur(8px); box-shadow: 0 8px 30px -8px rgba(0,0,0,.6); transition: all .2s var(--ease);
}
.os-play:hover { background: rgba(127,227,208,.24); transform: translateY(-1px); }
.os-play svg { width: 18px; height: 18px; }
.os-play-hint { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; z-index: 2; font-family: var(--f-mono); font-size: 11px; letter-spacing: .06em; color: rgba(215,255,246,.6); pointer-events: none; }
.os-embed-actions { display: flex; align-items: center; gap: 12px; padding: 14px 18px; background: #0c111a; border-top: 1px solid rgba(255,255,255,.06); flex-wrap: wrap; }
.os-embed-actions .note { font-size: 12px; color: rgba(255,255,255,.5); }
.btn--os { background: #7fe3d0; color: #06211d; }
.btn--os:hover { transform: translateY(-1px); filter: brightness(1.05); }

/* "what's inside" — APEX OS stack translated to warm theme */
.os-inside { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; }
.os-mod { display: flex; align-items: center; gap: 13px; padding: 15px 16px; border-radius: var(--r-md); background: var(--paper); border: 1px solid var(--line); box-shadow: var(--sh-1); }
.os-mod__ico { width: 40px; height: 40px; border-radius: 11px; flex-shrink: 0; display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; font-size: 15px; background: var(--espresso); color: #F0CDB8; }
.os-mod__txt { min-width: 0; }
.os-mod__name { font-size: 13.5px; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.os-mod__role { font-size: 11.5px; color: var(--muted); }
.os-mod__st { font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .05em; padding: 2px 7px; border-radius: 99px; font-weight: 700; }
.os-mod__st.on { background: var(--sage-tint); color: #3f5a32; }
.os-mod__st.rdy { background: var(--terra-tint); color: var(--terra-700); }
.os-mod__st.sby { background: var(--cream-3); color: var(--muted); }

.os-shell { border-radius: var(--r-xl); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--sh-3); background: var(--paper); }
.os-topbar { display: flex; align-items: center; gap: 12px; padding: 14px 20px; background: var(--espresso); color: #f6e6da; }
.os-topbar__dot { width: 30px; height: 30px; border-radius: 9px; background: var(--grad-terra); display: grid; place-items: center; font-family: var(--f-display); font-weight: 800; color: #fff; font-size: 15px; }
.os-topbar h3 { color: #fff; font-size: 15px; }
.os-topbar .chip { background: rgba(255,255,255,.12); color: #f6e6da; }
.os-body { padding: 22px; background: var(--cream); display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; }
.os-kpi { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 16px 18px; box-shadow: var(--sh-1); }
.os-kpi__label { font-size: 11.5px; color: var(--muted); font-weight: 500; display: flex; align-items: center; gap: 6px; }
.os-kpi__label svg { width: 14px; height: 14px; stroke-width: 2; color: var(--terra); }
.os-kpi__val { font-family: var(--f-display); font-weight: 700; font-size: 26px; margin-top: 8px; letter-spacing: -.02em; }
.os-kpi__bar { height: 5px; border-radius: 99px; background: var(--cream-3); margin-top: 12px; overflow: hidden; }
.os-kpi__bar i { display: block; height: 100%; border-radius: 99px; background: var(--grad-terra); }
.os-wide { grid-column: span 2; }
.os-panel { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-md); padding: 18px; box-shadow: var(--sh-1); }
.os-panel h4 { font-size: 14px; margin-bottom: 2px; }
.os-panel .sub { font-size: 11.5px; color: var(--muted); margin-bottom: 14px; }
/* svg chart */
.chart-svg { width: 100%; height: auto; display: block; }
.chart-svg .bar { fill: var(--terra); }
.chart-svg .bar.faint { fill: var(--terra-tint2); }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .axis { fill: var(--faint); font-family: var(--f-mono); font-size: 9px; }
/* funnel */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel__row { display: flex; align-items: center; gap: 12px; }
.funnel__label { font-size: 12px; width: 92px; color: var(--ink-2); flex-shrink: 0; }
.funnel__track { flex: 1; height: 30px; border-radius: 8px; background: var(--cream-2); overflow: hidden; position: relative; }
.funnel__fill { height: 100%; border-radius: 8px; background: var(--grad-terra); display: flex; align-items: center; padding-left: 12px; color: #fff; font-size: 12px; font-weight: 700; font-family: var(--f-mono); }
.funnel__fill.f2 { background: linear-gradient(135deg,#B85639,#8f3f24); }
.funnel__fill.f3 { background: var(--grad-espr); }
.funnel__pct { font-size: 12px; color: var(--muted); width: 42px; text-align: right; font-family: var(--f-mono); }

/* leads table */
.mini-table { width: 100%; border-collapse: collapse; }
.mini-table th { text-align: left; font-family: var(--f-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); font-weight: 600; padding: 0 8px 10px; }
.mini-table td { padding: 10px 8px; border-top: 1px solid var(--line); font-size: 12.5px; }
.mini-table tr:hover td { background: var(--cream); }
.av-sm { width: 26px; height: 26px; border-radius: 50%; background: var(--terra-tint); color: var(--terra-700); display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; margin-right: 8px; vertical-align: middle; }
.tag-sm { font-size: 10.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; font-family: var(--f-mono); }
.tag-sm.hot { background: var(--terra-tint); color: var(--terra-700); }
.tag-sm.warm { background: #FBEED2; color: #8a5f18; }
.tag-sm.new { background: var(--sage-tint); color: #45632f; }

/* plug-in note */
.plugnote {
  display: flex; align-items: flex-start; gap: 12px; padding: 16px 18px; border-radius: var(--r-md);
  background: repeating-linear-gradient(45deg, var(--terra-tint) 0 10px, #FBEEE6 10px 20px);
  border: 1.5px dashed var(--terra-tint2); color: var(--terra-700); margin-top: 22px;
}
.plugnote svg { width: 20px; height: 20px; flex-shrink: 0; stroke-width: 2; margin-top: 1px; }
.plugnote b { display: block; font-size: 13px; }
.plugnote span { font-size: 12.5px; color: var(--ink-2); }

/* mobile nav toggle (hidden desktop) */
.mnav-toggle { display: none; }
.scrim { display: none; }

/* =============================================================== Responsive */
@media (max-width: 1080px) {
  .kpis, .os-body, .os-inside { grid-template-columns: repeat(2,1fr); }
  .pillars { grid-template-columns: repeat(3,1fr); }
  .outputs { grid-template-columns: repeat(2,1fr); }
  .stack-grid { grid-template-columns: repeat(2,1fr); }
  .os-wide { grid-column: span 2; }
}
@media (max-width: 900px) {
  .modules { grid-template-columns: 1fr; }
  .split { grid-template-columns: 1fr; }
  .cmp__body { grid-template-columns: 1fr; }
  .pane--before { border-right: none; border-bottom: 1px solid var(--line); }
  .deltas { grid-template-columns: repeat(2,1fr); }
  .delta:nth-child(2) { border-right: none; }
  .delta:nth-child(1),.delta:nth-child(2) { border-bottom: 1px solid var(--line); }
  .cal { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 760px) {
  .sidebar {
    position: fixed; left: 0; top: 0; transform: translateX(-100%);
    transition: transform .3s var(--ease); width: var(--sidebar-w) !important;
    box-shadow: var(--sh-3);
  }
  .app.nav-open .sidebar { transform: none; }
  .app.collapsed .sidebar { width: var(--sidebar-w) !important; }
  .app.collapsed .brand__txt, .app.collapsed .nav__label, .app.collapsed .nav-group-label, .app.collapsed .owner__txt, .app.collapsed .nav__badge { opacity: 1; width: auto; display: block; }
  .mnav-toggle { display: grid; }
  .scrim.on { display: block; position: fixed; inset: 0; background: rgba(42,24,16,.42); z-index: 39; backdrop-filter: blur(2px); }
  .search, .topbar-date { display: none; }
  .pillars { grid-template-columns: repeat(2,1fr); }
  .kpis, .os-body, .stack-grid, .os-inside { grid-template-columns: 1fr; }
  .os-embed { height: 460px; }
  .os-wide { grid-column: span 1; }
  .outputs { grid-template-columns: 1fr; }
  .hero { flex-direction: column; align-items: flex-start; padding: 24px; }
  .cal { grid-template-columns: repeat(2,1fr); }
  .deltas { grid-template-columns: 1fr; } .delta { border-right: none; border-bottom: 1px solid var(--line); }
}

/* ============================================ REQUEST CREATOR (FAB + modal) */
.fab-wrap { position: fixed; right: clamp(18px, 3vw, 34px); bottom: clamp(18px, 3vw, 34px); z-index: 60; display: flex; flex-direction: column; align-items: flex-end; gap: 14px; }
.fab {
  width: 60px; height: 60px; border-radius: 50%; flex-shrink: 0; align-self: flex-end;
  background: var(--grad-terra); color: #fff; box-shadow: var(--sh-terra), var(--sh-3);
  display: grid; place-items: center; transition: transform .28s var(--ease), filter .2s;
}
.fab:hover { filter: brightness(1.05); transform: translateY(-2px); }
.fab svg { width: 26px; height: 26px; stroke-width: 2.2; transition: transform .3s var(--ease); }
.app.rq-open .fab svg { transform: rotate(135deg); }

/* the menu card */
.fab-menu {
  width: 300px; max-width: calc(100vw - 40px);
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  box-shadow: var(--sh-3); padding: 10px; transform-origin: bottom right;
  opacity: 0; transform: translateY(10px) scale(.96); pointer-events: none;
  transition: opacity .22s var(--ease), transform .22s var(--ease);
}
.app.rq-open .fab-menu { opacity: 1; transform: none; pointer-events: auto; }
.fab-menu__head { padding: 8px 10px 10px; }
.fab-menu__head b { font-family: var(--f-display); font-size: 14.5px; font-weight: 700; display: block; }
.fab-menu__head span { font-size: 11.5px; color: var(--muted); }
.fab-item {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 11px 12px; border-radius: var(--r-sm); transition: background .16s var(--ease);
}
.fab-item:not(:disabled):hover { background: var(--cream-2); }
.fab-item__ico { width: 36px; height: 36px; border-radius: 10px; flex-shrink: 0; display: grid; place-items: center; background: var(--terra-tint); color: var(--terra-700); }
.fab-item__ico svg { width: 19px; height: 19px; stroke-width: 1.9; }
.fab-item__txt { flex: 1; min-width: 0; }
.fab-item__name { display: block; font-size: 13.5px; font-weight: 600; line-height: 1.25; }
.fab-item__desc { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.3; margin-top: 1px; }
.fab-item__go { color: var(--faint); flex-shrink: 0; }
.fab-item__go svg { width: 16px; height: 16px; stroke-width: 2.2; }
.fab-item:disabled { cursor: default; opacity: .58; }
.fab-item:disabled .fab-item__ico { background: var(--cream-2); color: var(--faint); }
.fab-item .soon { margin-left: auto; font-family: var(--f-mono); font-size: 9.5px; letter-spacing: .06em; font-weight: 700; padding: 3px 8px; border-radius: 99px; background: var(--cream-3); color: var(--muted); }

/* modal */
.rq-scrim { position: fixed; inset: 0; z-index: 100; background: rgba(42,24,16,.5); backdrop-filter: blur(4px); opacity: 0; pointer-events: none; transition: opacity .26s var(--ease); }
.rq-scrim.on { opacity: 1; pointer-events: auto; }
.rq-modal {
  position: fixed; z-index: 101; left: 50%; top: 50%; transform: translate(-50%, -46%) scale(.97);
  width: 620px; max-width: calc(100vw - 32px); max-height: calc(100dvh - 48px); overflow: hidden;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-xl); box-shadow: var(--sh-3);
  opacity: 0; pointer-events: none; transition: opacity .26s var(--ease), transform .26s var(--ease);
  display: flex; flex-direction: column;
}
.rq-modal.on { opacity: 1; transform: translate(-50%, -50%) scale(1); pointer-events: auto; }
.rq-head { display: flex; align-items: flex-start; gap: 14px; padding: 22px 24px 16px; border-bottom: 1px solid var(--line); }
.rq-head__ico { width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0; display: grid; place-items: center; background: var(--grad-terra); color: #fff; box-shadow: var(--sh-terra); }
.rq-head__ico svg { width: 22px; height: 22px; stroke-width: 2; }
.rq-head__txt { flex: 1; min-width: 0; }
.rq-head__txt h3 { font-size: 18px; }
.rq-head__txt p { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.rq-close { width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--line); transition: all .16s; }
.rq-close:hover { background: var(--cream-2); color: var(--ink); }
.rq-close svg { width: 18px; height: 18px; stroke-width: 2; }
.rq-body { padding: 20px 24px 24px; overflow-y: auto; }

/* compose state */
.rq-label { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 8px; display: block; }
.rq-ta {
  width: 100%; min-height: 132px; resize: vertical; font-family: var(--f-body); font-size: 14px; line-height: 1.55;
  padding: 14px 15px; border-radius: var(--r-md); border: 1.5px solid var(--line-2); background: var(--cream); color: var(--ink);
  transition: border-color .16s, box-shadow .16s;
}
.rq-ta::placeholder { color: var(--faint); }
.rq-ta:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 4px var(--terra-tint); background: var(--paper); }
.rq-examples { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0 4px; }
.rq-ex { font-size: 11.5px; padding: 6px 11px; border-radius: 99px; background: var(--cream-2); color: var(--ink-2); border: 1px solid var(--line); transition: all .16s; }
.rq-ex:hover { background: var(--terra-tint); color: var(--terra-700); border-color: var(--terra-tint2); }
.rq-foot { display: flex; align-items: center; gap: 10px; margin-top: 20px; }
.rq-foot .spacer { flex: 1; }
.rq-hint { font-size: 11.5px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.rq-hint svg { width: 14px; height: 14px; stroke-width: 2; color: var(--sage); }

.sup-fields { display: flex; flex-direction: column; gap: 16px; }
.sup-err { color: #c0392b; font-size: 12.5px; margin-top: 12px; display: none; }

/* building state */
.rq-building { text-align: center; padding: 30px 10px 34px; }
.rq-orb { width: 66px; height: 66px; margin: 0 auto 20px; border-radius: 50%; background: var(--grad-terra); position: relative; box-shadow: var(--sh-terra); }
.rq-orb::before, .rq-orb::after { content:""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--terra); opacity: .35; animation: orbPulse 1.6s var(--ease) infinite; }
.rq-orb::after { animation-delay: .8s; }
@keyframes orbPulse { 0% { transform: scale(1); opacity: .4; } 100% { transform: scale(1.5); opacity: 0; } }
.rq-orb span { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; }
.rq-orb span svg { width: 30px; height: 30px; animation: spin 2.2s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.rq-building h4 { font-size: 17px; margin-bottom: 8px; }
.rq-steps { font-family: var(--f-mono); font-size: 12.5px; color: var(--terra-700); min-height: 20px; letter-spacing: .01em; }
.rq-prog { height: 6px; border-radius: 99px; background: var(--cream-3); overflow: hidden; margin: 20px auto 0; max-width: 320px; }
.rq-prog i { display: block; height: 100%; width: 0; background: var(--grad-terra); border-radius: 99px; transition: width .3s linear; }

/* result: generated form */
.rq-result-top { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.rq-result-top .ok { width: 30px; height: 30px; border-radius: 8px; background: var(--sage-tint); color: #3f5a32; display: grid; place-items: center; flex-shrink: 0; }
.rq-result-top .ok svg { width: 17px; height: 17px; stroke-width: 2.4; }
.rq-result-top b { font-size: 14.5px; }
.rq-result-top span { font-size: 11.5px; color: var(--muted); }
.rq-result-top .gen-time { margin-left: auto; font-family: var(--f-mono); font-size: 11px; color: var(--sage); background: var(--sage-tint); padding: 4px 9px; border-radius: 99px; }
.gform { border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--sh-1); }
.gform__cover { padding: 20px 22px; background: var(--grad-espr); color: #fff; }
.gform__cover .brandline { font-family: var(--f-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: #F0CDB8; margin-bottom: 8px; }
.gform__cover h3 { color: #fff; font-size: 20px; }
.gform__cover p { font-size: 12.5px; color: rgba(255,246,240,.75); margin-top: 5px; }
.gform__fields { padding: 20px 22px; background: var(--paper); display: flex; flex-direction: column; gap: 16px; }
.gfield label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 7px; }
.gfield label .req { color: var(--terra); margin-left: 3px; }
.gfield input, .gfield textarea, .gfield select {
  width: 100%; padding: 11px 13px; font-family: var(--f-body); font-size: 13.5px; color: var(--ink);
  border: 1.5px solid var(--line-2); border-radius: var(--r-sm); background: var(--cream); transition: all .16s;
}
.gfield textarea { min-height: 76px; resize: vertical; }
.gfield input:focus, .gfield textarea:focus, .gfield select:focus { outline: none; border-color: var(--terra); box-shadow: 0 0 0 3px var(--terra-tint); background: var(--paper); }
.gfield__opts { display: flex; flex-direction: column; gap: 8px; }
.gopt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1.5px solid var(--line-2); border-radius: var(--r-sm); font-size: 13px; cursor: pointer; transition: all .16s; }
.gopt:hover { border-color: var(--terra-tint2); background: var(--cream); }
.gopt i { display: block; width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--line-2); flex-shrink: 0; }
.gform__submit { padding: 0 22px 22px; background: var(--paper); }
.gform__submit button { width: 100%; padding: 13px; border-radius: var(--r-md); background: var(--grad-terra); color: #fff; font-weight: 700; font-size: 14px; box-shadow: var(--sh-terra); }
.rq-result-foot { display: flex; align-items: center; gap: 10px; margin-top: 18px; flex-wrap: wrap; }
.rq-result-foot .note { font-size: 12px; color: var(--muted); flex: 1; min-width: 200px; }
.rq-result-foot .note b { color: var(--ink); font-weight: 600; }

@media (max-width: 620px) {
  .rq-modal { border-radius: var(--r-lg) var(--r-lg) 0 0; top: auto; bottom: 0; transform: translate(-50%, 100%); max-height: 92dvh; }
  .rq-modal.on { transform: translate(-50%, 0) scale(1); }
}

/* ============================================ LIGHTBOX (content viewer) */
.lb-scrim { position: fixed; inset: 0; z-index: 200; background: rgba(12,8,5,.92); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .26s var(--ease); }
.lb-scrim.on { opacity: 1; pointer-events: auto; }
.lightbox { position: fixed; inset: 0; z-index: 201; display: flex; align-items: center; justify-content: center; padding: clamp(16px, 4vw, 56px); opacity: 0; pointer-events: none; transition: opacity .26s var(--ease); }
.lightbox.on { opacity: 1; pointer-events: auto; }
.lb-stage { max-width: min(94vw, 1080px); max-height: 84vh; display: flex; align-items: center; justify-content: center; }
.lb-stage img, .lb-stage video { max-width: 100%; max-height: 84vh; border-radius: 14px; box-shadow: 0 24px 70px rgba(0,0,0,.6); background: #000; display: block; }
.lb-stage img { animation: lbIn .28s var(--ease); }
@keyframes lbIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.lb-close, .lb-nav { position: fixed; z-index: 202; border-radius: 50%; background: rgba(255,255,255,.13); color: #fff; display: grid; place-items: center; backdrop-filter: blur(8px); transition: background .16s var(--ease), transform .16s var(--ease); }
.lb-close:hover, .lb-nav:hover { background: rgba(255,255,255,.26); }
.lb-close { top: 18px; right: 20px; width: 44px; height: 44px; }
.lb-close svg { width: 22px; height: 22px; stroke-width: 2; }
.lb-nav { top: 50%; transform: translateY(-50%); width: 50px; height: 50px; }
.lb-nav:hover { transform: translateY(-50%) scale(1.06); }
.lb-nav svg { width: 24px; height: 24px; stroke-width: 2.2; }
.lb-prev { left: 20px; } .lb-next { right: 20px; }
.lb-caption { position: fixed; bottom: 22px; left: 0; right: 0; text-align: center; z-index: 202; color: rgba(255,255,255,.85); font-family: var(--f-mono); font-size: 12px; letter-spacing: .03em; }
.lb-caption b { color: #fff; font-weight: 700; }
@media (max-width: 600px) { .lb-prev { left: 8px; } .lb-next { right: 8px; } .lb-nav { width: 42px; height: 42px; } }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  html { scroll-behavior: auto; }
}
