/* ============================================================
   DataRepo — "Ink" design system (v2, new direction)
   Near-monochrome premium light UI. No framework, no build.
   Derived from the reference screenshots: soft grey canvas,
   white cards, near-black accents, subtle borders, gentle shadows.
   ============================================================ */

/* ---------- Design tokens ---------- */
:root {
  /* neutral canvas */
  --bg:        #f3f3f4;
  --bg-2:      #ececee;
  --surface:   #fafafa;
  --card:      #ffffff;

  /* text */
  --ink:       #17171a;
  --ink-2:     #56565e;
  --muted:     #9a9aa3;

  /* lines + accents */
  --border:    #e6e6e9;
  --border-2:  #efeff1;
  --accent:    #141416;   /* primary = near-black ink */
  --accent-ink:#ffffff;   /* text on accent */
  --accent-2:  #5b53e0;   /* restrained indigo, used sparingly */

  /* status */
  --success:   #17914e;
  --success-bg:#e7f4ec;
  --warning:   #b7791f;
  --warning-bg:#fbf1de;
  --error:     #d0342c;
  --error-bg:  #fbe9e8;
  --violet:    #6d47d9;   /* "completed" tone in refs */
  --violet-bg: #efeafb;

  /* geometry */
  --r-card: 16px;
  --r-ctrl: 10px;
  --r-pill: 999px;

  /* shadows */
  --sh-1: 0 1px 2px rgba(20,20,22,.05), 0 1px 3px rgba(20,20,22,.04);
  --sh-2: 0 2px 4px rgba(20,20,22,.05), 0 6px 16px rgba(20,20,22,.06);
  --sh-3: 0 10px 30px rgba(20,20,22,.10), 0 4px 10px rgba(20,20,22,.06);
  --sh-pop: 0 8px 28px rgba(20,20,22,.14);

  --ring: 0 0 0 3px rgba(91,83,224,.22);

  --container: 1160px;
  --nav-h: 66px;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
          Helvetica, Arial, sans-serif;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

:root[data-theme="dark"] {
  --bg:        #0b0b0d;
  --bg-2:      #121214;
  --surface:   #141417;
  --card:      #16161a;
  --ink:       #f4f4f6;
  --ink-2:     #a6a6b0;
  --muted:     #6c6c78;
  --border:    #262629;
  --border-2:  #1e1e22;
  --accent:    #f4f4f6;   /* invert: light accent on dark */
  --accent-ink:#141416;
  --accent-2:  #8b83ff;
  --success:   #46c98a; --success-bg:#12291d;
  --warning:   #e0b155; --warning-bg:#2a2213;
  --error:     #ec6a63; --error-bg:#2c1717;
  --violet:    #a892f5; --violet-bg:#1e1830;
  --sh-1: 0 1px 2px rgba(0,0,0,.4);
  --sh-2: 0 2px 6px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.35);
  --sh-3: 0 12px 34px rgba(0,0,0,.5);
  --sh-pop: 0 10px 30px rgba(0,0,0,.55);
}

/* ---------- Reset ---------- */
*,*::before,*::after { box-sizing: border-box; }
* { margin: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv02","cv03","cv04","ss01";
  overflow-x: hidden;
}
img,svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: none; }
input,select,textarea { font: inherit; color: inherit; }
ul { list-style: none; padding: 0; }
:focus-visible { outline: none; box-shadow: var(--ring); border-radius: 8px; }

/* ---------- Typography ---------- */
h1,h2,h3,h4 { font-weight: 640; letter-spacing: -.02em; line-height: 1.1; color: var(--ink); }
.display { font-size: clamp(2.35rem, 5.4vw, 3.9rem); font-weight: 660; letter-spacing: -.035em; line-height: 1.03; }
.h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -.03em; }
.h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
.lead { font-size: clamp(1.02rem, 1.5vw, 1.18rem); color: var(--ink-2); line-height: 1.6; }
.eyebrow {
  font-size: .72rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  color: var(--ink-2); display: inline-flex; align-items: center; gap: 8px;
}
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: 22px; }
.section { padding: clamp(64px, 9vw, 116px) 0; }
.section-sm { padding: clamp(44px, 6vw, 72px) 0; }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head.center { margin-inline: auto; text-align: center; }
.stack-sm > * + * { margin-top: 10px; }
.grid { display: grid; gap: 20px; }
.divider { height: 1px; background: var(--border); border: 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: var(--r-ctrl);
  font-size: .92rem; font-weight: 550; white-space: nowrap;
  border: 1px solid transparent; transition: transform .15s var(--ease), background .18s, box-shadow .18s, border-color .18s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 17px; height: 17px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: var(--sh-1); }
.btn-primary:hover { box-shadow: var(--sh-2); transform: translateY(-1px); }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--border); box-shadow: var(--sh-1); }
.btn-ghost:hover { border-color: var(--muted); box-shadow: var(--sh-2); }
.btn-subtle { background: var(--bg-2); color: var(--ink); }
.btn-subtle:hover { background: var(--border); }
.btn-sm { height: 36px; padding: 0 13px; font-size: .85rem; }
.btn-lg { height: 50px; padding: 0 24px; font-size: 1rem; }
.btn-block { width: 100%; }
.btn-link { color: var(--ink-2); font-weight: 550; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.btn-link:hover { color: var(--ink); }
.btn-link svg { transition: transform .2s var(--ease); }
.btn-link:hover svg { transform: translateX(3px); }

/* ---------- Badges / pills ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  height: 24px; padding: 0 10px; border-radius: var(--r-pill);
  font-size: .74rem; font-weight: 560; letter-spacing: .01em;
  background: var(--bg-2); color: var(--ink-2); border: 1px solid var(--border);
}
.badge .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge-success { background: var(--success-bg); color: var(--success); border-color: transparent; }
.badge-warning { background: var(--warning-bg); color: var(--warning); border-color: transparent; }
.badge-error   { background: var(--error-bg);   color: var(--error);   border-color: transparent; }
.badge-violet  { background: var(--violet-bg);  color: var(--violet);  border-color: transparent; }
.badge-ghost   { background: transparent; border-color: var(--border); color: var(--ink-2); }

/* ---------- Cards ---------- */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--r-card); box-shadow: var(--sh-1);
}
.card-pad { padding: 22px; }
.card-hover { transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.card-hover:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--border-2); }
.icon-tile {
  width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center;
  background: var(--bg-2); border: 1px solid var(--border); color: var(--ink);
}
.icon-tile svg { width: 20px; height: 20px; }
.icon-tile.ink { background: var(--accent); color: var(--accent-ink); border-color: transparent; }

/* ---------- Chips row (integration-style small icons) ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px 0 8px;
  border-radius: var(--r-pill); background: var(--card); border: 1px solid var(--border);
  font-size: .78rem; color: var(--ink-2); box-shadow: var(--sh-1); }
.chip .sw { width: 15px; height: 15px; border-radius: 4px; }

/* ============================================================
   NAVBAR
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60; height: var(--nav-h);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(14px);
  -webkit-backdrop-filter: saturate(1.6) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .25s, background .25s;
}
.nav.scrolled { border-bottom-color: var(--border); background: color-mix(in srgb, var(--bg) 90%, transparent); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 100%; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 640; letter-spacing: -.02em; font-size: 1.06rem; }
.brand .logo { width: 30px; height: 30px; border-radius: 9px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; box-shadow: var(--sh-1); }
.brand .logo svg { width: 17px; height: 17px; }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: 8px; }
.nav-links a { padding: 8px 12px; border-radius: 8px; font-size: .9rem; font-weight: 500; color: var(--ink-2);
  transition: color .15s, background .15s; }
.nav-links a:hover { color: var(--ink); background: var(--bg-2); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--card); color: var(--ink-2); box-shadow: var(--sh-1);
  transition: color .15s, border-color .15s, transform .15s; }
.icon-btn:hover { color: var(--ink); border-color: var(--muted); }
.icon-btn svg { width: 18px; height: 18px; }
.nav-toggle { display: none; }

/* mega dropdown */
.has-mega { position: relative; }
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(6px);
  width: min(560px, 90vw); background: var(--card); border: 1px solid var(--border);
  border-radius: 14px; box-shadow: var(--sh-3); padding: 12px; opacity: 0; visibility: hidden;
  transition: opacity .18s var(--ease), transform .18s var(--ease); z-index: 70;
}
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; }
.mega-item { display: flex; gap: 11px; padding: 10px; border-radius: 10px; transition: background .15s; }
.mega-item:hover { background: var(--bg-2); }
.mega-item .icon-tile { width: 34px; height: 34px; flex: none; }
.mega-item strong { font-size: .88rem; font-weight: 560; display: block; }
.mega-item span { font-size: .78rem; color: var(--muted); line-height: 1.4; }

/* mobile nav sheet */
.mobile-nav { position: fixed; inset: var(--nav-h) 0 0; z-index: 55; background: var(--bg);
  padding: 20px 22px; display: none; flex-direction: column; gap: 6px; overflow-y: auto; }
.mobile-nav.open { display: flex; animation: fade .2s var(--ease); }
.mobile-nav a { padding: 13px 8px; font-size: 1.05rem; font-weight: 540; border-bottom: 1px solid var(--border-2); }
.mobile-nav .btn { margin-top: 8px; }

/* ============================================================
   HERO
   ============================================================ */
.hero { position: relative; padding-top: clamp(48px, 8vw, 84px); padding-bottom: clamp(40px, 6vw, 60px); overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.04fr .96fr; gap: 48px; align-items: center; }
.hero-copy { max-width: 560px; }
.hero h1 { margin: 18px 0 20px; }
.hero .lead { max-width: 480px; }
.hero-cta { display: flex; gap: 12px; margin-top: 30px; flex-wrap: wrap; }
.hero-meta { margin-top: 34px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; color: var(--muted); font-size: .84rem; }
.hero-meta .split { width: 1px; height: 16px; background: var(--border); }
.hero-bg { position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 50% at 82% 8%, rgba(91,83,224,.07), transparent 70%),
    radial-gradient(50% 40% at 8% 92%, rgba(20,20,22,.04), transparent 70%);
}
.grid-lines { position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(var(--border-2) 1px, transparent 1px), linear-gradient(90deg, var(--border-2) 1px, transparent 1px);
  background-size: 46px 46px; mask-image: radial-gradient(75% 60% at 50% 30%, #000, transparent 78%); }

/* app-window mock frame (used across software visuals) */
.window { background: var(--card); border: 1px solid var(--border); border-radius: 15px; box-shadow: var(--sh-3); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 8px; padding: 11px 14px; border-bottom: 1px solid var(--border-2); background: var(--surface); }
.window-bar .dots { display: flex; gap: 6px; }
.window-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.window-bar .title { font-size: .8rem; color: var(--ink-2); font-weight: 540; }
.window-bar .spacer { margin-left: auto; display: flex; gap: 7px; }
.window-body { padding: 16px; }

/* KPI mini-cards (dashboard) */
.kpis { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.kpi { background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; padding: 12px; }
.kpi .lab { font-size: .72rem; color: var(--muted); display: flex; align-items: center; justify-content: space-between; }
.kpi .lab svg { width: 14px; height: 14px; }
.kpi .val { font-size: 1.35rem; font-weight: 640; letter-spacing: -.02em; margin-top: 6px; }
.kpi .delta { font-size: .72rem; margin-top: 3px; color: var(--success); font-weight: 540; }
.kpi .delta.down { color: var(--error); }

/* ============================================================
   TRUST / logos strip
   ============================================================ */
.trust { padding: 30px 0; border-block: 1px solid var(--border); }
.trust-in { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.trust-lab { font-size: .78rem; color: var(--muted); font-weight: 540; }
.trust-item { display: inline-flex; align-items: center; gap: 8px; font-weight: 580; color: var(--ink-2); font-size: .95rem; }
.trust-item svg { width: 18px; height: 18px; }

/* ============================================================
   BENTO / feature grids
   ============================================================ */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 16px; }
.bento > .card { padding: 24px; display: flex; flex-direction: column; }
.col-2 { grid-column: span 2; } .col-3 { grid-column: span 3; } .col-4 { grid-column: span 4; } .col-6 { grid-column: span 6; }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.feature h3 { font-size: 1.08rem; margin: 14px 0 7px; }
.feature p { color: var(--ink-2); font-size: .92rem; }

/* problem cards */
.problem { padding: 22px; }
.problem .q { color: var(--muted); font-size: .8rem; font-weight: 560; letter-spacing: .04em; text-transform: uppercase; }
.problem h3 { font-size: 1.05rem; margin: 8px 0 8px; }
.problem p { color: var(--ink-2); font-size: .92rem; }
.problem .arrow { margin-top: 14px; display: inline-flex; align-items: center; gap: 6px; font-size: .84rem; color: var(--ink); font-weight: 540; }

/* solution/outcome list rows */
.outcome-row { display: flex; gap: 12px; padding: 16px 0; border-bottom: 1px solid var(--border-2); }
.outcome-row:last-child { border-bottom: 0; }
.outcome-row .ic { width: 34px; height: 34px; flex: none; border-radius: 9px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink); }
.outcome-row .ic svg { width: 18px; height: 18px; }
.outcome-row strong { font-weight: 560; font-size: .96rem; }
.outcome-row p { font-size: .87rem; color: var(--ink-2); }

/* ============================================================
   TABS (interactive software visual + need finder)
   ============================================================ */
.tabs { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border-radius: 12px; border: 1px solid var(--border); flex-wrap: wrap; }
.tab { padding: 8px 15px; border-radius: 9px; font-size: .87rem; font-weight: 540; color: var(--ink-2); transition: all .18s var(--ease); }
.tab[aria-selected="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.tab:hover { color: var(--ink); }
.tabpanel { display: none; animation: fade .3s var(--ease); }
.tabpanel.active { display: block; }

/* CRM board */
.crm-board { display: grid; grid-template-columns: repeat(5,1fr); gap: 10px; }
.crm-col { background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; padding: 10px; min-height: 180px; }
.crm-col h4 { font-size: .78rem; color: var(--ink-2); display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-weight: 560; }
.crm-col h4 span { color: var(--muted); font-weight: 500; }
.crm-card { background: var(--card); border: 1px solid var(--border); border-radius: 9px; padding: 9px 10px; margin-bottom: 8px; box-shadow: var(--sh-1); }
.crm-card .nm { font-size: .82rem; font-weight: 540; }
.crm-card .mt { font-size: .72rem; color: var(--muted); margin-top: 2px; }
.crm-card .av { display: flex; align-items: center; gap: 6px; margin-top: 7px; }
.crm-card .av i { width: 16px; height: 16px; border-radius: 50%; background: var(--bg-2); border: 1px solid var(--border); }

/* automation flow */
.flow { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; }
.flow-node { flex: 1 1 0; min-width: 120px; background: var(--surface); border: 1px solid var(--border-2); border-radius: 12px; padding: 14px; text-align: center; position: relative; }
.flow-node .ic { width: 36px; height: 36px; margin: 0 auto 8px; border-radius: 10px; display: grid; place-items: center; background: var(--card); border: 1px solid var(--border); color: var(--ink); }
.flow-node .ic svg { width: 18px; height: 18px; }
.flow-node strong { font-size: .84rem; font-weight: 550; display: block; }
.flow-node span { font-size: .72rem; color: var(--muted); }
.flow-node.accent .ic { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.flow-arrow { align-self: center; color: var(--muted); flex: 0 0 26px; display: grid; place-items: center; }
.flow-arrow svg { width: 18px; height: 18px; }

/* project milestones */
.milestones { display: flex; flex-direction: column; }
.ms-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border-2); }
.ms-row:last-child { border-bottom: 0; }
.ms-check { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 2px solid var(--border); color: transparent; }
.ms-row.done .ms-check { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.ms-row.done .ms-check svg { width: 12px; height: 12px; }
.ms-row.active .ms-check { border-color: var(--accent); position: relative; }
.ms-row.active .ms-check::after { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.ms-row .nm { font-size: .9rem; font-weight: 500; flex: 1; }
.ms-row.done .nm { color: var(--ink-2); }
.ms-row .st { font-size: .75rem; color: var(--muted); }

/* ============================================================
   CHARTS (inline SVG helpers)
   ============================================================ */
.chart-card { padding: 20px; }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.chart-head h4 { font-size: 1rem; }
.spark path, .area-line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.area-fill { fill: url(#areaGrad); opacity: .9; }
.grid-line { stroke: var(--border-2); stroke-width: 1; }
.axis-txt { fill: var(--muted); font-size: 10px; font-family: var(--font); }
.bar { fill: var(--border); }
.bar.hi { fill: var(--ink); }
.donut-track { fill: none; stroke: var(--border); stroke-width: 14; }
.donut-seg { fill: none; stroke-width: 14; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); }

/* animated draw for line charts */
.draw { stroke-dasharray: var(--len, 1000); stroke-dashoffset: var(--len, 1000); }
.reveal.in .draw { animation: draw 1.4s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }

/* ============================================================
   INDUSTRIES marquee/grid
   ============================================================ */
.ind-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; }
.ind-card { padding: 16px; display: flex; align-items: center; gap: 12px; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; }
.ind-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--muted); }
.ind-card .icon-tile { width: 36px; height: 36px; flex: none; }
.ind-card strong { font-size: .92rem; font-weight: 550; display: block; }
.ind-card span { font-size: .78rem; color: var(--muted); line-height: 1.35; display: block; margin-top: 2px; }

/* ============================================================
   PRODUCTS
   ============================================================ */
.product-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; }
.product-card { padding: 22px; display: flex; flex-direction: column; }
.product-card .top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.product-card h3 { font-size: 1.15rem; }
.product-card .cat { font-size: .76rem; color: var(--muted); }
.product-card p { color: var(--ink-2); font-size: .9rem; margin: 6px 0 14px; }
.product-card ul { display: flex; flex-direction: column; gap: 7px; margin-bottom: 18px; }
.product-card li { font-size: .84rem; color: var(--ink-2); display: flex; gap: 8px; align-items: flex-start; }
.product-card li svg { width: 15px; height: 15px; color: var(--ink); flex: none; margin-top: 3px; }
.product-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; }

/* ============================================================
   PROCESS timeline
   ============================================================ */
.process { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; counter-reset: step; }
.process-step { padding: 22px; position: relative; }
.process-step .num { font-family: var(--mono); font-size: .82rem; color: var(--muted); font-weight: 600; }
.process-step h3 { font-size: 1.05rem; margin: 12px 0 8px; }
.process-step p { font-size: .9rem; color: var(--ink-2); }
.process-step .line { position: absolute; top: 34px; right: -8px; width: 16px; height: 1px; background: var(--border); }

/* ============================================================
   PRICING
   ============================================================ */
.price-toggle { display: inline-flex; gap: 4px; padding: 4px; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-pill); }
.price-toggle button { padding: 7px 16px; border-radius: var(--r-pill); font-size: .85rem; font-weight: 540; color: var(--ink-2); transition: all .18s; }
.price-toggle button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }
.price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 16px; align-items: start; }
.plan { padding: 26px; display: flex; flex-direction: column; }
.plan.featured { border-color: var(--accent); box-shadow: var(--sh-3); position: relative; }
.plan.featured::before { content: "Most Popular"; position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: var(--accent-ink); font-size: .68rem; font-weight: 600; letter-spacing: .06em;
  text-transform: uppercase; padding: 4px 12px; border-radius: var(--r-pill); }
.plan .name { font-size: .8rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.plan .price { font-size: 2.3rem; font-weight: 680; letter-spacing: -.03em; margin: 14px 0 2px; }
.plan .price span { font-size: .9rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.plan .desc { font-size: .88rem; color: var(--ink-2); min-height: 40px; }
.plan ul { margin: 18px 0 22px; display: flex; flex-direction: column; gap: 10px; }
.plan li { font-size: .88rem; display: flex; gap: 9px; align-items: flex-start; color: var(--ink-2); }
.plan li svg { width: 16px; height: 16px; color: var(--ink); flex: none; margin-top: 3px; }
.plan .btn { margin-top: auto; }

/* ============================================================
   FAQ (native details)
   ============================================================ */
.faq { max-width: 760px; margin-inline: auto; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 4px; display: flex; align-items: center;
  justify-content: space-between; gap: 16px; font-weight: 550; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--border); display: grid;
  place-items: center; flex: none; transition: transform .25s var(--ease), background .2s; color: var(--ink-2); }
.faq summary .ic svg { width: 15px; height: 15px; }
.faq details[open] summary .ic { transform: rotate(45deg); background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.faq .ans { padding: 0 4px 20px; color: var(--ink-2); font-size: .95rem; max-width: 640px; }

/* ============================================================
   CTA band
   ============================================================ */
.cta-band { background: var(--accent); color: var(--accent-ink); border-radius: 22px; padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden; }
.cta-band h2 { color: var(--accent-ink); }
.cta-band p { color: color-mix(in srgb, var(--accent-ink) 72%, transparent); max-width: 520px; margin: 14px auto 28px; }
.cta-band .btn-primary { background: var(--accent-ink); color: var(--accent); }
.cta-band .btn-ghost { background: transparent; border-color: color-mix(in srgb, var(--accent-ink) 30%, transparent); color: var(--accent-ink); }
.cta-band .glow { position: absolute; inset: 0; z-index: 0; opacity: .5;
  background: radial-gradient(40% 60% at 80% 20%, rgba(255,255,255,.14), transparent 70%); }
.cta-band .container { position: relative; z-index: 1; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { border-top: 1px solid var(--border); padding: 56px 0 34px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, 1fr); gap: 32px; }
.footer h5 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 14px; font-weight: 600; }
.footer ul { display: flex; flex-direction: column; gap: 10px; }
.footer a { font-size: .9rem; color: var(--ink-2); }
.footer a:hover { color: var(--ink); }
.footer .brand { margin-bottom: 14px; }
.footer .about { font-size: .9rem; color: var(--ink-2); max-width: 300px; }
.footer-bottom { display: flex; align-items: center; justify-content: space-between; margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--border); flex-wrap: wrap; gap: 12px; }
.footer-bottom p { font-size: .84rem; color: var(--muted); }
.footer-social { display: flex; gap: 8px; }

/* ============================================================
   FORMS / AUTH
   ============================================================ */
.auth-wrap { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--accent); color: var(--accent-ink); padding: 48px; display: flex; flex-direction: column; position: relative; overflow: hidden; }
.auth-aside .grid-lines { opacity: .12; mask-image: none; }
.auth-aside .brand { color: var(--accent-ink); position: relative; z-index: 1; }
.auth-aside .brand .logo { background: var(--accent-ink); color: var(--accent); }
.auth-aside .aside-body { margin-top: auto; position: relative; z-index: 1; }
.auth-aside h2 { color: var(--accent-ink); font-size: 1.9rem; max-width: 360px; }
.auth-aside p { color: color-mix(in srgb, var(--accent-ink) 70%, transparent); margin-top: 14px; max-width: 360px; }
.auth-aside .points { margin-top: 26px; display: flex; flex-direction: column; gap: 12px; }
.auth-aside .points li { display: flex; gap: 10px; align-items: center; font-size: .92rem; color: color-mix(in srgb, var(--accent-ink) 88%, transparent); }
.auth-aside .points svg { width: 18px; height: 18px; flex: none; }
.auth-main { display: grid; place-items: center; padding: 40px 24px; background: var(--bg); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card h1 { font-size: 1.7rem; }
.auth-card .sub { color: var(--ink-2); margin: 8px 0 26px; font-size: .95rem; }
.field { margin-bottom: 15px; }
.field label { display: block; font-size: .82rem; font-weight: 540; margin-bottom: 7px; color: var(--ink); }
.input, .select {
  width: 100%; height: 46px; padding: 0 13px; border-radius: var(--r-ctrl);
  background: var(--card); border: 1px solid var(--border); color: var(--ink);
  transition: border-color .15s, box-shadow .15s; font-size: .95rem;
}
textarea.input { height: auto; padding: 12px 13px; resize: vertical; min-height: 110px; line-height: 1.5; }
.input::placeholder { color: var(--muted); }
.input:focus, .select:focus { border-color: var(--accent-2); box-shadow: var(--ring); }
.input.error { border-color: var(--error); }
.field .hint { font-size: .76rem; color: var(--muted); margin-top: 6px; }
.field .err { font-size: .76rem; color: var(--error); margin-top: 6px; display: none; }
.field.invalid .err { display: block; }
.input-icon { position: relative; }
.input-icon .input { padding-right: 42px; }
.input-icon .toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--muted); }
.input-icon .toggle:hover { color: var(--ink); background: var(--bg-2); }
.form-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 18px; flex-wrap: wrap; }
.checkbox { display: flex; align-items: center; gap: 8px; font-size: .86rem; color: var(--ink-2); cursor: pointer; }
.checkbox input { width: 16px; height: 16px; accent-color: var(--accent); }
.divider-txt { display: flex; align-items: center; gap: 12px; margin: 20px 0; color: var(--muted); font-size: .8rem; }
.divider-txt::before, .divider-txt::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-google { width: 100%; height: 46px; border: 1px solid var(--border); border-radius: var(--r-ctrl); background: var(--card);
  display: flex; align-items: center; justify-content: center; gap: 10px; font-weight: 540; font-size: .92rem; box-shadow: var(--sh-1); transition: border-color .15s, box-shadow .15s; }
.btn-google:hover { border-color: var(--muted); box-shadow: var(--sh-2); }
.auth-alt { text-align: center; margin-top: 22px; font-size: .9rem; color: var(--ink-2); }
.auth-alt a { color: var(--ink); font-weight: 560; }
.form-2col { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* ---------- Phone input ---------- */
.phone { display: grid; grid-template-columns: auto 1fr; gap: 8px; }
.phone-cc { position: relative; }
.phone-cc-btn { height: 46px; padding: 0 12px; border: 1px solid var(--border); border-radius: var(--r-ctrl);
  background: var(--card); display: flex; align-items: center; gap: 8px; font-size: .92rem; min-width: 108px; }
.phone-cc-btn:hover { border-color: var(--muted); }
.phone-cc-btn .flag { font-size: 1.15rem; line-height: 1; }
.phone-cc-btn .code { font-weight: 540; }
.phone-cc-btn .caret { margin-left: auto; color: var(--muted); width: 15px; height: 15px; }
.phone-menu { position: absolute; top: calc(100% + 6px); left: 0; z-index: 40; width: 300px; max-width: 78vw;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; box-shadow: var(--sh-pop); padding: 8px; display: none; }
.phone-menu.open { display: block; animation: pop .16s var(--ease); }
.phone-search { width: 100%; height: 38px; padding: 0 12px 0 34px; border: 1px solid var(--border); border-radius: 9px;
  background: var(--bg-2); font-size: .88rem; margin-bottom: 8px; background-image: none; }
.phone-search-wrap { position: relative; }
.phone-search-wrap svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--muted); }
.phone-list { max-height: 240px; overflow-y: auto; }
.phone-opt { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 8px; cursor: pointer; font-size: .88rem; }
.phone-opt:hover, .phone-opt.hl { background: var(--bg-2); }
.phone-opt .flag { font-size: 1.1rem; }
.phone-opt .nm { flex: 1; }
.phone-opt .code { color: var(--muted); }
.phone-empty { padding: 16px; text-align: center; color: var(--muted); font-size: .85rem; }

/* ============================================================
   APP SHELL (dashboard + admin)
   ============================================================ */
.app { display: grid; grid-template-columns: 250px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); display: flex; flex-direction: column;
  padding: 16px 14px; position: sticky; top: 0; height: 100vh; }
.sidebar .brand { padding: 6px 8px 18px; }
.side-account { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border: 1px solid var(--border);
  border-radius: 11px; background: var(--card); margin-bottom: 14px; }
.side-account .av { width: 30px; height: 30px; border-radius: 8px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: .78rem; font-weight: 600; }
.side-account .nm { font-size: .84rem; font-weight: 550; line-height: 1.2; }
.side-account .rl { font-size: .72rem; color: var(--muted); }
.side-account svg { margin-left: auto; width: 15px; height: 15px; color: var(--muted); }
.side-group { font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 600; padding: 14px 10px 6px; }
.side-link { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; font-size: .89rem;
  font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; margin-bottom: 1px; cursor: pointer; }
.side-link:hover { background: var(--bg-2); color: var(--ink); }
.side-link.active { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); border: 1px solid var(--border); }
.side-link svg { width: 18px; height: 18px; flex: none; }
.side-link .count { margin-left: auto; font-size: .72rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: var(--r-pill); padding: 1px 7px; color: var(--ink-2); }
.side-foot { margin-top: auto; }
.usage { background: var(--card); border: 1px solid var(--border); border-radius: 12px; padding: 13px; }
.usage .lab { display: flex; align-items: center; justify-content: space-between; font-size: .8rem; font-weight: 540; }
.usage .lab .pct { color: var(--muted); }
.usage .bar { height: 6px; background: var(--bg-2); border-radius: var(--r-pill); margin: 9px 0; overflow: hidden; }
.usage .bar i { display: block; height: 100%; background: var(--accent); border-radius: var(--r-pill); }
.usage small { font-size: .72rem; color: var(--muted); }

.app-main { display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 62px; display: flex; align-items: center; gap: 14px; padding: 0 26px; border-bottom: 1px solid var(--border);
  background: color-mix(in srgb, var(--bg) 80%, transparent); backdrop-filter: blur(10px); position: sticky; top: 0; z-index: 30; }
.topbar h1 { font-size: 1.15rem; font-weight: 620; }
.topbar .search { margin-left: 12px; position: relative; max-width: 300px; flex: 1; display: none; }
.topbar .search input { width: 100%; height: 38px; padding: 0 12px 0 36px; border: 1px solid var(--border); border-radius: 10px; background: var(--card); font-size: .88rem; }
.topbar .search svg { position: absolute; left: 11px; top: 11px; width: 16px; height: 16px; color: var(--muted); }
.topbar .right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topbar .av { width: 34px; height: 34px; border-radius: 9px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-size: .82rem; font-weight: 600; }
.app-body { padding: 26px; overflow-y: auto; }
.app-view { display: none; animation: fade .28s var(--ease); }
.app-view.active { display: block; }
.side-sheet-btn { display: none; }

/* dashboard cards grid */
.stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 14px; margin-bottom: 18px; }
.stat { padding: 18px; }
.stat .top { display: flex; align-items: center; justify-content: space-between; }
.stat .lab { font-size: .8rem; color: var(--ink-2); font-weight: 500; }
.stat .ic { width: 34px; height: 34px; border-radius: 9px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink); }
.stat .ic svg { width: 17px; height: 17px; }
.stat .val { font-size: 1.7rem; font-weight: 660; letter-spacing: -.02em; margin-top: 12px; }
.stat .sub { font-size: .78rem; color: var(--muted); margin-top: 3px; }
.stat .sub b { color: var(--success); font-weight: 560; }
.stat .sub b.down { color: var(--error); }

.panel-row { display: grid; grid-template-columns: 1.6fr 1fr; gap: 16px; }
.panel { padding: 20px; }
.panel-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.panel-head h3 { font-size: 1.02rem; }

/* activity feed */
.feed { display: flex; flex-direction: column; }
.feed-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--border-2); }
.feed-item:last-child { border-bottom: 0; }
.feed-item .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-2); display: grid; place-items: center; color: var(--ink); flex: none; }
.feed-item .ic svg { width: 15px; height: 15px; }
.feed-item .tx { font-size: .86rem; }
.feed-item .tx b { font-weight: 560; }
.feed-item .tm { font-size: .74rem; color: var(--muted); margin-top: 2px; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--r-card); background: var(--card); }
table.tbl { width: 100%; border-collapse: collapse; min-width: 640px; }
.tbl th { text-align: left; font-size: .74rem; font-weight: 560; color: var(--muted); text-transform: uppercase; letter-spacing: .04em;
  padding: 13px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--border-2); font-size: .88rem; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .12s; }
.tbl tbody tr:hover { background: var(--bg-2); }
.tbl .name-cell { display: flex; align-items: center; gap: 10px; }
.tbl .name-cell .av { width: 30px; height: 30px; border-radius: 8px; background: var(--bg-2); border: 1px solid var(--border);
  display: grid; place-items: center; font-size: .74rem; font-weight: 600; color: var(--ink); }
.tbl .name-cell b { font-weight: 550; }
.tbl .name-cell small { display: block; color: var(--muted); font-size: .76rem; }
.row-actions { display: flex; gap: 4px; }
.row-actions button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); display: grid; place-items: center; color: var(--ink-2); }
.row-actions button:hover { color: var(--ink); border-color: var(--muted); }
.row-actions button svg { width: 15px; height: 15px; }

/* progress bar */
.progress { height: 8px; background: var(--bg-2); border-radius: var(--r-pill); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); border-radius: var(--r-pill); transition: width .8s var(--ease); }
.progress.sm { height: 6px; }

/* segmented control (dashboard tabs) */
.seg { display: inline-flex; gap: 3px; padding: 3px; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; }
.seg button { padding: 6px 13px; border-radius: 7px; font-size: .84rem; font-weight: 540; color: var(--ink-2); }
.seg button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: var(--sh-1); }

/* donut legend */
.donut-wrap { display: flex; align-items: center; gap: 22px; }
.donut-center { text-anchor: middle; }
.donut-center .big { font-size: 20px; font-weight: 640; fill: var(--ink); }
.donut-center .small { font-size: 10px; fill: var(--muted); }
.legend { display: flex; flex-direction: column; gap: 10px; }
.legend-item { display: flex; align-items: center; gap: 8px; font-size: .84rem; }
.legend-item .sw { width: 9px; height: 9px; border-radius: 3px; }
.legend-item .v { margin-left: auto; color: var(--muted); font-weight: 540; }

/* profile form grid */
.profile-grid { display: grid; grid-template-columns: 260px 1fr; gap: 20px; align-items: start; }
.avatar-lg { width: 76px; height: 76px; border-radius: 18px; background: var(--accent); color: var(--accent-ink);
  display: grid; place-items: center; font-size: 1.6rem; font-weight: 620; }

/* ============================================================
   MODAL (native dialog)
   ============================================================ */
dialog.modal { border: 1px solid var(--border); border-radius: 18px; padding: 0; max-width: 460px; width: 92vw;
  background: var(--card); color: var(--ink); box-shadow: var(--sh-pop); }
dialog.modal.wide { max-width: 860px; }
dialog.modal::backdrop { background: rgba(17,17,20,.44); backdrop-filter: blur(3px); }
dialog.modal[open] { animation: pop .22s var(--ease); }
.modal-head { display: flex; align-items: flex-start; justify-content: space-between; padding: 22px 22px 0; }
.modal-head h3 { font-size: 1.2rem; }
.modal-head p { font-size: .88rem; color: var(--ink-2); margin-top: 4px; }
.modal-body { padding: 20px 22px 22px; }
.modal-x { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--muted); border: 1px solid var(--border); }
.modal-x:hover { color: var(--ink); }

/* toast */
.toast-wrap { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; }
.toast { background: var(--accent); color: var(--accent-ink); padding: 12px 16px; border-radius: 12px; font-size: .88rem;
  box-shadow: var(--sh-pop); display: flex; align-items: center; gap: 9px; animation: toastin .3s var(--ease); }
.toast svg { width: 17px; height: 17px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }

@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes toastin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes ffloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
.float { animation: float 5s ease-in-out infinite; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important;
    transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .draw { stroke-dashoffset: 0; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-visual { max-width: 620px; }
  .bento { grid-template-columns: repeat(4,1fr); }
  .col-4, .col-6 { grid-column: span 4; }
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 900px) {
  .nav-links, .nav-right .desktop-only { display: none; }
  .nav-toggle { display: grid; }
  .feature-grid, .product-grid, .process, .price-grid { grid-template-columns: 1fr; }
  .ind-grid { grid-template-columns: repeat(2,1fr); }
  .panel-row { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: repeat(2,1fr); }
  .crm-board { grid-template-columns: 1fr 1fr; }
  .process-step .line { display: none; }
  /* app shell → sidebar becomes off-canvas */
  .app { grid-template-columns: 1fr; }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: 264px; z-index: 90; transform: translateX(-100%);
    transition: transform .28s var(--ease); box-shadow: var(--sh-pop); }
  .sidebar.open { transform: none; }
  .side-sheet-btn { display: grid; }
  .app-scrim { position: fixed; inset: 0; background: rgba(17,17,20,.4); z-index: 85; opacity: 0; visibility: hidden; transition: opacity .25s; }
  .app-scrim.show { opacity: 1; visibility: visible; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
}
@media (max-width: 620px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .bento { grid-template-columns: 1fr 1fr; }
  .col-2, .col-3, .col-4, .col-6 { grid-column: span 2; }
  .crm-board { grid-template-columns: 1fr; }
  .flow { flex-direction: column; }
  .flow-arrow { transform: rotate(90deg); }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .ind-grid { grid-template-columns: 1fr; }
  .form-2col, .profile-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .cta-band { padding: 32px 22px; }
  .section { padding: 56px 0; }
}
@media (max-width: 420px) {
  .kpis, .stat-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   INTERIOR PAGES (added in polish pass)
   ============================================================ */
.page-hero { position: relative; padding: clamp(48px,7vw,84px) 0 clamp(28px,4vw,44px); overflow: hidden; }
.page-hero .grid-lines { opacity: .4; }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(2rem,4.4vw,3.1rem); letter-spacing: -.03em; margin: 16px 0 16px; max-width: 16ch; }
.page-hero .lead { max-width: 620px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: var(--muted); flex-wrap: wrap; }
.breadcrumb a { color: var(--ink-2); }
.breadcrumb a:hover { color: var(--ink); }
.breadcrumb .sep { color: var(--border); }

/* long-form prose (legal, blog post) */
.prose { max-width: 760px; margin-inline: auto; color: var(--ink-2); }
.prose h2 { font-size: 1.35rem; color: var(--ink); margin: 34px 0 12px; letter-spacing: -.02em; }
.prose h3 { font-size: 1.08rem; color: var(--ink); margin: 24px 0 8px; }
.prose p { margin-bottom: 14px; line-height: 1.7; }
.prose ul.bullets { margin: 0 0 16px; padding-left: 0; display: flex; flex-direction: column; gap: 8px; }
.prose ul.bullets li { padding-left: 26px; position: relative; line-height: 1.6; }
.prose ul.bullets li::before { content: ""; position: absolute; left: 6px; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--ink); }
.prose a { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.prose .updated { font-size: .84rem; color: var(--muted); margin-bottom: 8px; }

/* detailed solution/industry block */
.detail-block { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.detail-list { display: flex; flex-direction: column; gap: 12px; }
.detail-list .row { display: flex; gap: 12px; align-items: flex-start; }
.detail-list .row svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ink); }
.detail-list.problems .row svg { color: var(--error); }
.detail-list .row span { font-size: .92rem; color: var(--ink-2); line-height: 1.5; }

/* contact */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }
.contact-info { display: flex; flex-direction: column; gap: 14px; }
.contact-card { display: flex; gap: 14px; align-items: center; padding: 18px; }
.contact-card .icon-tile { flex: none; }
.contact-card strong { display: block; font-size: .95rem; }
.contact-card span { font-size: .86rem; color: var(--ink-2); }

/* careers roles */
.role-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; }
.role-card:hover { transform: translateY(-2px); box-shadow: var(--sh-2); border-color: var(--muted); }
.role-card h3 { font-size: 1.05rem; }
.role-card .meta { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }

/* blog cards */
.post-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 18px; }
.post-card { display: flex; flex-direction: column; overflow: hidden; transition: transform .18s var(--ease), box-shadow .18s, border-color .18s; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--sh-3); border-color: var(--border-2); }
.post-thumb { height: 150px; background: var(--bg-2); display: grid; place-items: center; color: var(--muted); border-bottom: 1px solid var(--border); position: relative; overflow: hidden; }
.post-thumb .grid-lines { opacity: .5; mask-image: none; }
.post-thumb svg { width: 40px; height: 40px; position: relative; z-index: 1; opacity: .5; }
.post-card .body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { font-size: 1.02rem; margin: 10px 0 8px; }
.post-card p { font-size: .87rem; color: var(--ink-2); flex: 1; }
.post-card .foot { margin-top: 14px; font-size: .78rem; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }

/* empty / loading states */
.empty-state { text-align: center; padding: 48px 20px; }
.empty-state .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-2); display: grid; place-items: center; margin: 0 auto 14px; color: var(--muted); }
.empty-state .ic svg { width: 24px; height: 24px; }
.empty-state h3 { font-size: 1.05rem; margin-bottom: 6px; }
.empty-state p { color: var(--ink-2); font-size: .9rem; max-width: 340px; margin: 0 auto 16px; }
.skeleton { background: linear-gradient(90deg, var(--bg-2) 25%, var(--border-2) 37%, var(--bg-2) 63%); background-size: 400% 100%; animation: shimmer 1.4s ease infinite; border-radius: 8px; }
@keyframes shimmer { 0% { background-position: 100% 0; } 100% { background-position: -100% 0; } }

/* detail page: stat strip + two-column */
.detail-hero { display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; align-items: center; }
.mini-stats { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.mini-stat { padding: 16px; text-align: center; }
.mini-stat .v { font-size: 1.5rem; font-weight: 660; letter-spacing: -.02em; }
.mini-stat .l { font-size: .76rem; color: var(--muted); margin-top: 2px; }

@media (max-width: 900px) {
  .detail-block, .contact-grid, .detail-hero { grid-template-columns: 1fr; }
  .post-grid { grid-template-columns: 1fr; }
  .mini-stats { grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 620px) {
  .role-card { flex-direction: column; align-items: flex-start; }
  .post-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   HOME polish pass — problems (before/after), product cards
   ============================================================ */
.flow-node.bad .ic { background: var(--error-bg); color: var(--error); border-color: transparent; }
.ba-card { padding: 24px; }
.ba-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.ba-tag { font-size: .7rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: var(--r-pill); }
.ba-tag.before { color: var(--error); background: var(--error-bg); }
.ba-tag.after { color: var(--success); background: var(--success-bg); }
.ba-divider { display: grid; place-items: center; padding: 6px 0; color: var(--muted); }
.ba-divider svg { width: 20px; height: 20px; }

/* problem → impact → solution cards */
.prob { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.prob h3 { font-size: 1.05rem; }
.prob .pi { border-top: 1px solid var(--border-2); padding-top: 10px; }
.prob .pi .k { font-size: .66rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 6px; margin-bottom: 4px; }
.prob .pi .k svg { width: 13px; height: 13px; }
.prob .pi.sol .k { color: var(--success); }
.prob .pi p { font-size: .87rem; color: var(--ink-2); line-height: 1.5; }

/* product card polish */
.product-card.featured { border-color: var(--accent); box-shadow: var(--sh-3); position: relative; }
.product-card.featured::before { content: "Featured"; position: absolute; top: -10px; left: 22px; background: var(--accent); color: var(--accent-ink); font-size: .64rem; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; padding: 3px 10px; border-radius: var(--r-pill); }
.np { border-top: 1px solid var(--border-2); margin: 2px 0 16px; padding-top: 12px; display: flex; flex-direction: column; gap: 9px; }
.np-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.np-row .np-l { font-size: .84rem; color: var(--ink-2); }
.np-row .np-l small { display: block; color: var(--muted); font-size: .74rem; }
.np-row b { font-weight: 640; white-space: nowrap; }
.np-row b small { font-weight: 500; color: var(--muted); font-size: .74rem; }
.product-cta-banner { margin-top: 18px; display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; padding: 22px 26px; background: var(--accent); color: var(--accent-ink); border-radius: var(--r-card); }
.product-cta-banner p { color: color-mix(in srgb, var(--accent-ink) 74%, transparent); font-size: .92rem; max-width: 46ch; }
.product-cta-banner h3 { color: var(--accent-ink); font-size: 1.15rem; }

/* pricing note strip */
.price-note { text-align: center; margin-top: 22px; font-size: .86rem; color: var(--muted); }

/* before/after flows are half-width — tighten nodes so 4 fit on one row (desktop) */
.ba-card .flow-node { min-width: 84px; padding: 12px 6px; }
.ba-card .flow-node strong { font-size: .76rem; }
.ba-card .flow-arrow { flex-basis: 18px; }
@media (max-width: 900px){ .ba-card .flow-node strong { font-size: .8rem; } }

/* ============================================================
   Responsive hardening + concise "Problems we solve" (UI pass)
   ============================================================ */
/* Concise problem cards */
.prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.prob2 { padding: 22px; display: flex; flex-direction: column; gap: 8px; }
.prob2 .icon-tile { margin-bottom: 6px; }
.prob2 h3 { font-size: 1.02rem; }
.prob2 p { font-size: .9rem; color: var(--ink-2); line-height: 1.5; }
.prob2 .prob-fix { margin-top: auto; padding-top: 14px; font-size: .86rem; font-weight: 550;
  color: var(--success); display: flex; gap: 8px; align-items: flex-start; }
.prob2 .prob-fix svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
@media (max-width: 900px){ .prob-grid { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 560px){ .prob-grid { grid-template-columns: 1fr; } }

/* Force inline-styled multi-column grids to collapse on small screens
   (inline styles otherwise beat the class media queries → overflow). */
@media (max-width: 900px){
  .feature-grid, .product-grid, .price-grid, .process, .post-grid,
  .role-card + .role-card, .ind-grid { grid-template-columns: repeat(2, 1fr) !important; }
  .detail-block, .detail-hero, .contact-grid, .panel-row, .bento,
  .profile-grid { grid-template-columns: 1fr !important; }
}
@media (max-width: 600px){
  .grid, .bento, .feature-grid, .product-grid, .detail-block, .detail-hero,
  .contact-grid, .profile-grid, .price-grid, .panel-row, .post-grid,
  .process, .ind-grid, .prob-grid { grid-template-columns: 1fr !important; }
  .mini-stats, .kpis, .stat-row { grid-template-columns: 1fr 1fr !important; }
}
/* Never let anything force the page wider than the screen */
html, body { max-width: 100%; overflow-x: hidden; }
.container { overflow-wrap: break-word; }
img, svg, video { max-width: 100%; }

/* ============================================================
   Icon normalization (launch pass)
   Any inline 24-grid icon must stay icon-sized and aligned,
   even outside a styled list (SEO pages emit bare <li> icons).
   ============================================================ */
li:has(> svg[viewBox="0 0 24 24"]:first-child) {
  display: flex; align-items: flex-start; gap: 10px;
  list-style: none; font-size: .9rem; line-height: 1.55; color: var(--ink-2);
}
li > svg[viewBox="0 0 24 24"]:first-child {
  width: 17px; height: 17px; flex: none; margin-top: 3px; color: var(--ink);
}
/* Inline text link icons (arrows etc.) */
.btn-link svg { width: 16px; height: 16px; flex: none; }
/* Final safety net: a bare 24-grid icon that slips through any container
   should never balloon past a sensible icon size. */
:where(p, span, li, h1, h2, h3, h4, h5, a, strong, em, label) > svg[viewBox="0 0 24 24"]:only-child {
  max-width: 40px; max-height: 40px;
}

/* Checklist used by generated SEO pages (proper list semantics) */
.checklist { display: flex; flex-direction: column; gap: 10px; padding: 0; margin: 0; }

/* Global icon-size default (bulletproof): ANY 24-grid icon that no component
   rule sizes falls back to a sane icon size. :where() has 0 specificity, so
   every component rule (.icon-tile svg, .btn svg, etc.) still wins over this. */
:where(svg[viewBox="0 0 24 24"]) { width: 1.25rem; height: 1.25rem; flex: none; }

/* ============================================================
   Accessibility (audit pass)
   ============================================================ */
.skip-link {
  position: absolute; left: 8px; top: -60px; z-index: 200;
  background: var(--accent); color: var(--accent-ink);
  padding: 10px 16px; border-radius: var(--r-ctrl); font-size: .9rem; font-weight: 550;
  transition: top .15s var(--ease);
}
.skip-link:focus { top: 8px; box-shadow: var(--ring); }

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1 !important; transform: none !important; }
}
