/* Rabtiq — site styles. Light/dark themes via [data-theme] on <html>. */
:root {
  --bg: #F8FAF9;
  --bg-2: #EEF4F1;
  --surface: #FFFFFF;
  --surface-2: #F3F7F5;
  --ink: #111827;
  --ink-2: #374151;
  --muted: #5B6672;
  --line: #DCE6E1;
  --line-2: #C9D8D0;
  --brand: #047857;
  --brand-ink: #046C4E;
  --brand-bright: #10B981;
  --mint: #D1FAE5;
  --mint-2: #A7F3D0;
  --deep: #064E3B;
  --btn-bg: #047857;
  --btn-ink: #FFFFFF;
  --btn-hover: #035E44;
  --chip-bg: #E7F5EE;
  --panel-deep: #053F30;
  --panel-deep-2: #047857;
  --on-deep: #ECFDF5;
  --on-deep-muted: #A7D9C4;
  --bubble-in: #FFFFFF;
  --bubble-out: #D1FAE5;
  --chat-bg: #EAF2EE;
  --shadow-sm: 0 1px 2px rgba(6, 78, 59, .06);
  --shadow: 0 1px 2px rgba(6, 78, 59, .05), 0 18px 40px -18px rgba(6, 78, 59, .22);
  --logo-a: #12B47C;
  --logo-b: #047857;
  --logo-c: #047857;
  --logo-d: #0E9F6E;
  --leaf-a: #A7F3D0;
  --leaf-b: #D1FAE5;
  --focus: #0EA371;
  --radius-xl: 28px;
  --radius-lg: 18px;
  --radius: 12px;
  --wrap: 1200px;
  --gutter: 24px;
  --font: "Sora", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-ar: "Cairo", "Sora", sans-serif;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #06110D; --bg-2: #0A1A14; --surface: #0D1E18; --surface-2: #11261F;
    --ink: #ECF5F0; --ink-2: #C9D9D1; --muted: #8FA89C; --line: #1C352B; --line-2: #2A4A3D;
    --brand: #34D399; --brand-ink: #6EE7B7; --brand-bright: #34D399; --mint: #D1FAE5; --mint-2: #A7F3D0;
    --deep: #064E3B; --btn-bg: #34D399; --btn-ink: #03261B; --btn-hover: #6EE7B7; --chip-bg: #123328;
    --panel-deep: #0B3A2C; --panel-deep-2: #075E45; --on-deep: #ECFDF5; --on-deep-muted: #9ED2BD;
    --bubble-in: #16302A; --bubble-out: #0F5A43; --chat-bg: #0A1914;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 24px 48px -20px rgba(0,0,0,.6);
    --logo-a: #34D399; --logo-b: #059669; --logo-c: #059669; --logo-d: #10B981; --leaf-a: #A7F3D0; --leaf-b: #D1FAE5;
    --focus: #6EE7B7;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #06110D; --bg-2: #0A1A14; --surface: #0D1E18; --surface-2: #11261F;
  --ink: #ECF5F0; --ink-2: #C9D9D1; --muted: #8FA89C; --line: #1C352B; --line-2: #2A4A3D;
  --brand: #34D399; --brand-ink: #6EE7B7; --brand-bright: #34D399; --mint: #D1FAE5; --mint-2: #A7F3D0;
  --deep: #064E3B; --btn-bg: #34D399; --btn-ink: #03261B; --btn-hover: #6EE7B7; --chip-bg: #123328;
  --panel-deep: #0B3A2C; --panel-deep-2: #075E45; --on-deep: #ECFDF5; --on-deep-muted: #9ED2BD;
  --bubble-in: #16302A; --bubble-out: #0F5A43; --chat-bg: #0A1914;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3); --shadow: 0 1px 2px rgba(0,0,0,.3), 0 24px 48px -20px rgba(0,0,0,.6);
  --logo-a: #34D399; --logo-b: #059669; --logo-c: #059669; --logo-d: #10B981; --leaf-a: #A7F3D0; --leaf-b: #D1FAE5;
  --focus: #6EE7B7;
  color-scheme: dark;
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 17px/1.62 var(--font); letter-spacing: -0.005em;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  transition: background-color .35s ease, color .35s ease;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--brand-ink); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--brand); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 6px; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 5.6vw, 4.75rem); line-height: 1.02; letter-spacing: -0.045em; }
h2 { font-size: clamp(1.9rem, 3.6vw, 3rem); line-height: 1.08; letter-spacing: -0.035em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -0.02em; }
p { margin: 0; text-wrap: pretty; }
.ar { font-family: var(--font-ar); direction: rtl; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }
.lede { font-size: clamp(1.05rem, 1.5vw, 1.2rem); color: var(--muted); max-width: 60ch; }
.muted { color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; background: var(--btn-bg); color: var(--btn-ink); padding: 10px 14px; border-radius: 10px; z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.logo svg { height: 32px; width: auto; }
.logo:hover { color: var(--ink); }
.mark .g-a { stop-color: var(--logo-a); } .mark .g-b { stop-color: var(--logo-b); }
.mark .g-c { stop-color: var(--logo-c); } .mark .g-d { stop-color: var(--logo-d); }
.mark .g-e { stop-color: var(--leaf-a); } .mark .g-f { stop-color: var(--leaf-b); }

/* ---------- buttons ---------- */
.btn {
  --h: 48px; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: var(--h); padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font: 600 15px/1 var(--font); letter-spacing: -0.01em; text-decoration: none; cursor: pointer;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease, transform .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--btn-bg); color: var(--btn-ink); }
.btn-primary:hover { background: var(--btn-hover); color: var(--btn-ink); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--brand); color: var(--ink); }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14px; border-radius: 12px; }
.btn-on-deep { background: var(--mint); color: #053F30; }
.btn-on-deep:hover { background: #FFFFFF; color: #053F30; }
.btn-ghost-deep { color: var(--on-deep); border-color: rgba(209, 250, 229, .35); background: transparent; }
.btn-ghost-deep:hover { border-color: var(--mint); color: #fff; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .3s ease, background-color .35s ease;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 72px; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 15px; font-weight: 500;
  padding: 8px 14px; border-radius: 10px; transition: background-color .2s, color .2s;
}
.nav-links a:hover { background: var(--surface-2); color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); background: var(--chip-bg); }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.icon-btn {
  width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px;
  background: transparent; border: 1px solid var(--line); color: var(--ink); cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.icon-btn:hover { border-color: var(--brand); }
.icon-btn svg { width: 18px; height: 18px; }
.theme-toggle .sun { display: none; }
:root[data-theme="dark"] .theme-toggle .sun { display: block; }
:root[data-theme="dark"] .theme-toggle .moon { display: none; }
.menu-btn { display: none; }
.mobile-nav { display: none; }

@media (max-width: 860px) {
  .nav-links, .nav-end .btn { display: none; }
  .menu-btn { display: grid; }
  .mobile-nav {
    display: block; position: fixed; inset: 72px 0 auto 0; background: var(--bg);
    border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 24px;
    transform: translateY(-8px); opacity: 0; visibility: hidden;
    transition: opacity .25s ease, transform .25s ease, visibility .25s;
  }
  .mobile-nav.open { transform: none; opacity: 1; visibility: visible; }
  .mobile-nav a:not(.btn) { display: block; padding: 14px 4px; color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 500; border-bottom: 1px solid var(--line); }
  .mobile-nav .btn { width: 100%; margin-top: 18px; }
}

/* ---------- sections ---------- */
section { position: relative; }
.section { padding: clamp(72px, 10vw, 128px) 0; }
.section-tight { padding: clamp(56px, 7vw, 88px) 0; }
.section-head { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px 64px; align-items: end; margin-bottom: 56px; }
.section-head .lede { justify-self: start; }
@media (max-width: 860px) { .section-head { grid-template-columns: 1fr; margin-bottom: 40px; } }
.band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* ---------- hero (home) ---------- */
.hero { padding: clamp(48px, 7vw, 96px) 0 0; }
.hero-top { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px 64px; align-items: end; }
.hero h1 { max-width: 13ch; }
.hero-copy .lede { margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
@media (max-width: 960px) { .hero-top { grid-template-columns: 1fr; } }

/* connection stage */
.stage {
  position: relative; margin-top: clamp(40px, 6vw, 72px);
  border: 1px solid var(--line); border-radius: var(--radius-xl);
  background:
    radial-gradient(60% 80% at 50% 50%, color-mix(in srgb, var(--brand-bright) 12%, transparent), transparent 70%),
    var(--surface);
  box-shadow: var(--shadow); overflow: hidden;
}
.stage-grid {
  position: relative; display: grid; grid-template-columns: 300px 1fr 360px;
  align-items: center; min-height: 460px; padding: 32px;
}
.stage-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.stage-lines path { fill: none; stroke: var(--line-2); stroke-width: 1.5; }
.stage-lines path.live { stroke: var(--brand); stroke-dasharray: 6 8; animation: dash 1s linear infinite; }
.stage-lines circle { fill: var(--brand-bright); }
@keyframes dash { to { stroke-dashoffset: -28; } }
.channels { position: relative; z-index: 1; display: grid; gap: 10px; }
.channel {
  display: grid; grid-template-columns: 34px 1fr; align-items: center; gap: 12px;
  padding: 10px 14px 10px 10px; border-radius: 14px; background: var(--surface);
  border: 1px solid var(--line); transition: border-color .3s, transform .3s, box-shadow .3s;
}
.channel .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--chip-bg); color: var(--brand-ink); }
.channel .ic svg { width: 18px; height: 18px; }
.channel b { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.channel span { display: block; font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.4; min-height: 1.4em; }
.channel.active { border-color: var(--brand); transform: translateX(6px); box-shadow: var(--shadow-sm); }
.channel.active .ic { background: var(--brand); color: var(--surface); }
.hub { position: relative; z-index: 1; justify-self: center; width: 148px; height: 148px; display: grid; place-items: center; }
.hub-core {
  width: 112px; height: 112px; border-radius: 32px; display: grid; place-items: center;
  background: linear-gradient(145deg, #068A62, #064E3B); box-shadow: 0 20px 40px -14px rgba(4, 120, 87, .55);
  position: relative; z-index: 2;
}
.hub-core svg { width: 54px; }
.hub-ring { position: absolute; inset: 0; border-radius: 44px; border: 1.5px solid var(--brand); opacity: 0; }
.hub.pulse .hub-ring { animation: ring 1.1s ease-out; }
.hub.pulse .hub-ring.r2 { animation-delay: .18s; }
@keyframes ring { 0% { opacity: .7; transform: scale(.75); } 100% { opacity: 0; transform: scale(1.35); } }
.hub-label { position: absolute; bottom: -34px; left: 50%; transform: translateX(-50%); font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.crm-card {
  position: relative; z-index: 1; border-radius: 18px; background: var(--surface);
  border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden;
}
.crm-card header { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 600; }
.crm-card header small { font-weight: 500; color: var(--muted); }
.crm-rows { display: grid; }
.crm-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.crm-row:last-child { border-bottom: 0; }
.crm-row .av { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; background: var(--chip-bg); color: var(--brand-ink); }
.crm-row b { display: block; font-weight: 600; line-height: 1.25; }
.crm-row small { display: block; color: var(--muted); font-size: 12px; line-height: 1.4; }
.crm-row .stage-tag { font-size: 11.5px; font-weight: 600; padding: 4px 9px; border-radius: 999px; background: var(--chip-bg); color: var(--brand-ink); white-space: nowrap; }
.crm-row.new { animation: rowIn .6s cubic-bezier(.2, .8, .2, 1); background: color-mix(in srgb, var(--brand-bright) 8%, transparent); }
@keyframes rowIn { from { opacity: 0; transform: translateY(-14px); } to { opacity: 1; transform: none; } }
.ai-note { display: flex; gap: 8px; align-items: center; margin: 0 16px 14px; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); font-size: 12.5px; color: var(--ink-2); }
.ai-note svg { width: 14px; height: 14px; color: var(--brand); flex: none; }
@media (max-width: 1060px) {
  .stage-grid { grid-template-columns: 1fr; gap: 56px; padding: 24px; }
  .stage-lines { display: none; }
  .channels { grid-template-columns: repeat(2, 1fr); }
  .channel.active { transform: translateY(-3px); }
}
@media (max-width: 520px) { .channels { grid-template-columns: 1fr; } }

/* ---------- product split ---------- */
.products { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.product {
  position: relative; border-radius: var(--radius-xl); padding: clamp(28px, 4vw, 48px);
  overflow: hidden; display: flex; flex-direction: column; min-height: 560px;
}
.product h3 { font-size: clamp(1.6rem, 2.4vw, 2.1rem); letter-spacing: -0.035em; margin-bottom: 12px; }
.product p { max-width: 44ch; }
.product .links { margin-top: 24px; display: flex; gap: 12px; flex-wrap: wrap; }
.product .demo { margin-top: auto; padding-top: 40px; }
.product-crm { background: var(--surface); border: 1px solid var(--line); }
.product-crm p { color: var(--muted); }
.product-connect { background: linear-gradient(150deg, var(--panel-deep-2), var(--panel-deep) 70%); color: var(--on-deep); }
.product-connect h3 { color: #fff; }
.product-connect p { color: var(--on-deep-muted); }
.product-kicker { font-size: 14px; font-weight: 600; margin-bottom: 18px; display: inline-flex; align-items: center; gap: 8px; }
.product-crm .product-kicker { color: var(--brand-ink); }
.product-connect .product-kicker { color: var(--mint-2); }
@media (max-width: 900px) { .products { grid-template-columns: 1fr; } .product { min-height: 0; } }

/* mini kanban */
.mini-kanban { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mk-col { background: var(--surface-2); border-radius: 14px; padding: 10px; min-height: 180px; }
.mk-col h4 { font-size: 12px; font-weight: 600; color: var(--muted); margin: 2px 4px 10px; display: flex; justify-content: space-between; }
.mk-card { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 9px 10px; margin-bottom: 8px; font-size: 12.5px; box-shadow: var(--shadow-sm); }
.mk-card b { display: block; font-weight: 600; }
.mk-card small { color: var(--muted); font-size: 11.5px; }
.mk-bar { height: 4px; border-radius: 4px; background: var(--line); margin-top: 8px; overflow: hidden; }
.mk-bar i { display: block; height: 100%; background: var(--brand-bright); border-radius: 4px; }

/* mini chat */
.mini-chat { background: rgba(0, 0, 0, .18); border: 1px solid rgba(209, 250, 229, .14); border-radius: 18px; padding: 16px; display: grid; gap: 10px; }
.mini-chat .msg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 13.5px; line-height: 1.45; }
.mini-chat .in { background: rgba(255, 255, 255, .1); color: var(--on-deep); border-bottom-left-radius: 4px; }
.mini-chat .out { background: var(--mint); color: #053F30; justify-self: end; border-bottom-right-radius: 4px; }
.mini-chat .meta { font-size: 11px; opacity: .7; display: block; margin-top: 4px; }
.mini-chat .ar { text-align: right; }
.chan-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.chan-pill { font-size: 12px; font-weight: 500; padding: 6px 10px; border-radius: 999px; border: 1px solid rgba(209, 250, 229, .25); color: var(--on-deep); display: inline-flex; gap: 6px; align-items: center; }
.chan-pill svg { width: 13px; height: 13px; }

/* ---------- steps (real sequence) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line-2); counter-reset: step; }
.step { padding: 28px 28px 0 0; }
.step + .step { padding-left: 28px; border-left: 1px solid var(--line); }
.step-n { font-size: 15px; font-weight: 600; color: var(--brand-ink); margin-bottom: 40px; display: block; }
.step h3 { margin-bottom: 10px; }
.step p { color: var(--muted); font-size: 15.5px; max-width: 36ch; }
@media (max-width: 820px) {
  .steps { grid-template-columns: 1fr; }
  .step, .step + .step { padding: 24px 0; border-left: 0; border-bottom: 1px solid var(--line); }
  .step-n { margin-bottom: 14px; }
}

/* ---------- feature list ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 44px 48px; }
.feature { display: grid; grid-template-columns: 40px 1fr; gap: 16px; align-items: start; }
.feature .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--chip-bg); color: var(--brand-ink); display: grid; place-items: center; }
.feature .ic svg { width: 20px; height: 20px; }
.feature h3 { font-size: 1.05rem; margin-bottom: 6px; }
.feature p { color: var(--muted); font-size: 15px; }
@media (max-width: 960px) { .features { grid-template-columns: 1fr 1fr; } }
@media (max-width: 620px) { .features { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- trust strip ---------- */
.trust { display: grid; grid-template-columns: 1fr 1.4fr; gap: 48px; align-items: start; }
.trust-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; border-top: 1px solid var(--line-2); }
.trust-list div { padding: 20px 20px 20px 0; border-bottom: 1px solid var(--line); }
.trust-list div:nth-child(odd) { border-right: 1px solid var(--line); }
.trust-list div:nth-child(even) { padding-left: 20px; }
.trust-list b { display: block; font-size: 15.5px; margin-bottom: 4px; }
.trust-list span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) { .trust { grid-template-columns: 1fr; } }
@media (max-width: 560px) { .trust-list { grid-template-columns: 1fr; } .trust-list div:nth-child(odd) { border-right: 0; } .trust-list div:nth-child(even) { padding-left: 0; } }

/* ---------- CTA ---------- */
.cta {
  position: relative; overflow: hidden; border-radius: var(--radius-xl);
  background: linear-gradient(140deg, #068A62, #064E3B 75%); color: var(--on-deep);
  padding: clamp(40px, 6vw, 72px); display: grid; grid-template-columns: 1.4fr auto; gap: 32px; align-items: end;
}
.cta h2 { color: #fff; max-width: 18ch; }
.cta p { color: var(--on-deep-muted); margin-top: 14px; max-width: 48ch; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; position: relative; z-index: 1; }
.cta-mark { position: absolute; right: -40px; bottom: -120px; width: 360px; opacity: .08; pointer-events: none; }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; } }

/* ---------- page hero (product pages) ---------- */
.page-hero { padding: clamp(48px, 7vw, 96px) 0 clamp(48px, 6vw, 80px); }
.page-hero-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 56px; align-items: center; }
.page-hero h1 { font-size: clamp(2.4rem, 5vw, 4.1rem); max-width: 14ch; }
.page-hero .lede { margin: 20px 0 28px; }
.product-tag { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); margin-bottom: 22px; }
.product-tag svg { width: 22px; height: auto; }
@media (max-width: 960px) { .page-hero-grid { grid-template-columns: 1fr; } }

/* app window chrome */
.window { border-radius: 20px; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.window-bar { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--surface-2); font-size: 13px; color: var(--muted); }
.window-bar .dots { display: flex; gap: 6px; }
.window-bar .dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-2); display: block; }
.window-body { padding: 16px; }

/* pipeline board */
.board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.col { background: var(--surface-2); border-radius: 14px; padding: 10px; min-height: 300px; }
.col h4 { font-size: 12.5px; font-weight: 600; color: var(--ink-2); margin: 2px 4px 4px; }
.col .sum { font-size: 11.5px; color: var(--muted); margin: 0 4px 10px; display: block; }
.deal { background: var(--surface); border: 1px solid var(--line); border-radius: 11px; padding: 10px; margin-bottom: 8px; font-size: 12.5px; box-shadow: var(--shadow-sm); }
.deal b { display: block; font-weight: 600; line-height: 1.3; }
.deal .row { display: flex; justify-content: space-between; align-items: center; margin-top: 8px; color: var(--muted); font-size: 11.5px; }
.deal .who { width: 22px; height: 22px; border-radius: 50%; background: var(--chip-bg); color: var(--brand-ink); font-size: 10px; font-weight: 700; display: grid; place-items: center; }
.deal.moving { border-color: var(--brand); box-shadow: 0 10px 24px -10px rgba(4, 120, 87, .45); }
.col.won .deal { border-color: color-mix(in srgb, var(--brand-bright) 45%, var(--line)); }
@media (max-width: 640px) { .board { grid-template-columns: repeat(2, minmax(0, 1fr)); } .col { min-height: 0; } }

/* tabs */
.tabs { display: grid; grid-template-columns: 320px 1fr; gap: 48px; align-items: start; }
.tab-list { display: grid; gap: 4px; }
.tab {
  text-align: left; background: transparent; border: 0; border-left: 2px solid var(--line);
  padding: 16px 18px; cursor: pointer; color: var(--ink); font: inherit; transition: border-color .25s, background-color .25s;
  border-radius: 0 12px 12px 0;
}
.tab b { display: block; font-size: 1.05rem; font-weight: 600; letter-spacing: -0.015em; }
.tab span { display: block; color: var(--muted); font-size: 14.5px; margin-top: 4px; max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s ease, opacity .3s ease; }
.tab[aria-selected="true"] { border-left-color: var(--brand); background: var(--surface); }
.tab[aria-selected="true"] span { max-height: 120px; opacity: 1; }
.tab:hover { background: var(--surface); }
.tab-panel { animation: panelIn .45s cubic-bezier(.2, .8, .2, 1); }
.tab-panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 900px) { .tabs { grid-template-columns: 1fr; gap: 24px; } }

/* contacts table mock */
.ctable { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.ctable th { text-align: left; font-weight: 600; color: var(--muted); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.ctable td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.ctable tr:last-child td { border-bottom: 0; }
.person { display: flex; align-items: center; gap: 10px; }
.person .av { width: 30px; height: 30px; border-radius: 50%; background: var(--chip-bg); color: var(--brand-ink); display: grid; place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.tag { display: inline-block; font-size: 11.5px; font-weight: 500; padding: 3px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.tag.hot { background: var(--chip-bg); border-color: transparent; color: var(--brand-ink); }
.score { display: inline-flex; align-items: center; gap: 8px; }
.score i { width: 56px; height: 5px; border-radius: 5px; background: var(--line); display: block; overflow: hidden; }
.score i::after { content: ""; display: block; height: 100%; width: var(--v); background: var(--brand-bright); }
@media (max-width: 640px) { .ctable .hide-sm { display: none; } }

/* automation flow */
.flow { display: grid; justify-items: center; gap: 0; padding: 12px 0; }
.node { width: min(100%, 380px); border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px 16px; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: center; box-shadow: var(--shadow-sm); }
.node .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--chip-bg); color: var(--brand-ink); display: grid; place-items: center; }
.node .ic svg { width: 17px; height: 17px; }
.node small { display: block; color: var(--muted); font-size: 12px; }
.node b { font-size: 14px; font-weight: 600; }
.node.trigger { border-color: var(--brand); }
.link-v { width: 2px; height: 28px; background: linear-gradient(var(--brand) 50%, transparent 0) 0 0 / 2px 8px; animation: flowDown .8s linear infinite; }
@keyframes flowDown { to { background-position: 0 8px; } }
.branch { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: min(100%, 520px); }
.branch .node { width: 100%; }

/* report bars */
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.kpi { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.kpi small { color: var(--muted); font-size: 12px; display: block; }
.kpi b { font-size: 1.35rem; letter-spacing: -0.03em; font-weight: 600; }
.kpi em { font-style: normal; font-size: 12px; color: var(--brand-ink); margin-left: 6px; }
.bars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; align-items: end; height: 170px; padding: 10px 4px 0; border-bottom: 1px solid var(--line); }
.bars i { display: block; border-radius: 6px 6px 2px 2px; background: linear-gradient(var(--brand-bright), var(--brand)); height: var(--h); transform-origin: bottom; }
.tab-panel .bars i { animation: grow .8s cubic-bezier(.2, .8, .2, 1) backwards; }
.bars i:nth-child(n) { animation-delay: calc(var(--i) * 45ms); }
@keyframes grow { from { transform: scaleY(0); } }
.bars-x { display: grid; grid-template-columns: repeat(12, 1fr); gap: 8px; font-size: 11px; color: var(--muted); text-align: center; padding-top: 6px; }

/* ---------- connect: phone ---------- */
.phone-wrap { display: grid; place-items: center; position: relative; }
.phone {
  width: 320px; border-radius: 44px; padding: 12px; background: #0B1612;
  box-shadow: 0 40px 80px -30px rgba(4, 60, 44, .55), inset 0 0 0 2px #1E3A30; position: relative; z-index: 1;
}
.phone-screen { border-radius: 34px; overflow: hidden; background: var(--chat-bg); height: 600px; display: flex; flex-direction: column; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 34px 16px 12px; background: var(--panel-deep); color: #fff; }
.chat-head .av { width: 36px; height: 36px; border-radius: 50%; background: var(--mint); color: #053F30; font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.chat-head b { font-size: 14px; display: block; line-height: 1.2; }
.chat-head small { font-size: 11.5px; color: var(--mint-2); }
.chat-body { flex: 1; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; }
.bubble { max-width: 84%; padding: 8px 11px 6px; border-radius: 12px; font-size: 13.5px; line-height: 1.42; box-shadow: 0 1px 1px rgba(0, 0, 0, .06); animation: bubbleIn .35s cubic-bezier(.2, .8, .2, 1); color: var(--ink); }
.bubble.in { background: var(--bubble-in); align-self: flex-start; border-top-left-radius: 4px; }
.bubble.out { background: var(--bubble-out); align-self: flex-end; border-top-right-radius: 4px; }
.bubble time { display: block; text-align: right; font-size: 10.5px; color: var(--muted); margin-top: 2px; }
.bubble.ar { font-family: var(--font-ar); direction: rtl; text-align: right; font-size: 14.5px; }
.bubble .quick { display: grid; gap: 6px; margin-top: 8px; }
.bubble .quick span { display: block; text-align: center; padding: 7px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--brand-ink); font-weight: 600; font-size: 12.5px; }
.bubble.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.bubble.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.bubble.typing i:nth-child(2) { animation-delay: .15s; } .bubble.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
.chat-input { display: flex; gap: 8px; align-items: center; padding: 10px 12px 18px; }
.chat-input span { flex: 1; height: 38px; border-radius: 19px; background: var(--surface); border: 1px solid var(--line); font-size: 12.5px; color: var(--muted); display: flex; align-items: center; padding: 0 14px; }
.chat-input i { width: 38px; height: 38px; border-radius: 50%; background: var(--panel-deep-2); display: grid; place-items: center; color: #fff; }
.chat-input i svg { width: 16px; height: 16px; }
.float-card {
  position: absolute; z-index: 2; background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 12px 14px; box-shadow: var(--shadow); font-size: 12.5px; width: 210px;
}
.float-card b { display: block; font-size: 13px; }
.float-card small { color: var(--muted); }
.float-card .bar { height: 5px; border-radius: 5px; background: var(--line); margin-top: 8px; overflow: hidden; }
.float-card .bar i { display: block; height: 100%; width: 0; background: var(--brand-bright); transition: width 1.4s cubic-bezier(.2, .8, .2, 1); }
.float-a { right: calc(50% + 120px); top: 14%; width: 200px; }
.float-b { left: calc(50% + 120px); bottom: 14%; width: 200px; }
@media (max-width: 1240px) and (min-width: 961px) { .float-card { display: none; } }
@media (max-width: 560px) { .float-card { display: none; } .phone { width: 290px; } .phone-screen { height: 540px; } }

/* inbox mock */
.inbox { display: grid; grid-template-columns: 260px 1fr 240px; min-height: 420px; }
.inbox-list { border-right: 1px solid var(--line); }
.inbox-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 10px; padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 13px; align-items: center; }
.inbox-item.sel { background: var(--chip-bg); }
.inbox-item .av { width: 32px; height: 32px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 11px; font-weight: 700; position: relative; }
.inbox-item .av svg { position: absolute; right: -4px; bottom: -4px; width: 16px; height: 16px; padding: 2px; border-radius: 50%; background: var(--brand); color: #fff; }
.inbox-item b { display: block; font-weight: 600; font-size: 13px; }
.inbox-item small { display: block; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 12px; max-width: 150px; }
.inbox-item time { font-size: 11px; color: var(--muted); align-self: start; }
.inbox-thread { padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--chat-bg); }
.inbox-thread .bubble { animation: none; }
.inbox-thread .note { align-self: center; font-size: 11.5px; color: var(--muted); background: var(--surface); border: 1px dashed var(--line-2); padding: 5px 10px; border-radius: 8px; }
.inbox-side { border-left: 1px solid var(--line); padding: 16px; font-size: 13px; display: grid; gap: 12px; align-content: start; }
.inbox-side h4 { font-size: 13px; font-weight: 600; }
.inbox-side dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: 6px 10px; }
.inbox-side dt { color: var(--muted); }
.inbox-side dd { margin: 0; text-align: right; font-weight: 500; }
@media (max-width: 980px) { .inbox { grid-template-columns: 220px 1fr; } .inbox-side { display: none; } }
@media (max-width: 640px) { .inbox { grid-template-columns: 1fr; } .inbox-list { display: none; } }

/* channel grid (connect) */
.channel-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line-2); }
.channel-grid > div { padding: 24px 24px 24px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 14px; }
.channel-grid > div:not(:nth-child(3n+1)) { padding-left: 24px; border-left: 1px solid var(--line); }
.channel-grid .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--chip-bg); color: var(--brand-ink); display: grid; place-items: center; }
.channel-grid .ic svg { width: 20px; height: 20px; }
.channel-grid b { display: block; margin-bottom: 4px; }
.channel-grid span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 860px) {
  .channel-grid { grid-template-columns: 1fr 1fr; }
  .channel-grid > div, .channel-grid > div:not(:nth-child(3n+1)) { padding: 20px 16px 20px 0; border-left: 0; }
  .channel-grid > div:nth-child(even) { padding-left: 16px; border-left: 1px solid var(--line); }
}
@media (max-width: 560px) { .channel-grid { grid-template-columns: 1fr; } .channel-grid > div:nth-child(even) { padding-left: 0; border-left: 0; } }

/* builder flow (connect) */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split .lede { margin: 18px 0 24px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--ink-2); font-size: 15.5px; }
.checks li svg { width: 20px; height: 20px; color: var(--brand); margin-top: 2px; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; gap: 40px; } }

.campaign { display: grid; gap: 12px; }
.camp-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; font-size: 13.5px; }
.camp-row .bar { grid-column: 1 / -1; height: 8px; border-radius: 8px; background: var(--surface-2); overflow: hidden; }
.camp-row .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-bright)); border-radius: 8px; width: 0; transition: width 1.6s cubic-bezier(.2, .8, .2, 1); }
.in-view .camp-row .bar i { width: var(--w); }
.template-msg { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--chat-bg); }
.template-msg .bubble { animation: none; max-width: 100%; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; padding: 22px 44px 22px 0; font-weight: 600; font-size: 1.08rem; letter-spacing: -0.015em; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 50%; width: 12px; height: 12px; margin-top: -8px; border-right: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(45deg); transition: transform .3s ease, margin .3s ease; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq .answer { padding: 0 44px 24px 0; color: var(--muted); max-width: 70ch; }
.faq details[open] .answer { animation: panelIn .35s ease; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.25fr; gap: 64px; align-items: start; }
.contact-info { display: grid; gap: 0; border-top: 1px solid var(--line-2); margin-top: 32px; }
.contact-info > div { padding: 20px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; }
.contact-info .ic { width: 40px; height: 40px; border-radius: 12px; background: var(--chip-bg); color: var(--brand-ink); display: grid; place-items: center; }
.contact-info .ic svg { width: 19px; height: 19px; }
.contact-info b { display: block; font-size: 14px; color: var(--muted); font-weight: 500; }
.contact-info a, .contact-info span { font-size: 1.05rem; font-weight: 600; color: var(--ink); text-decoration: none; }
.contact-info a:hover { color: var(--brand); }
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 40px); box-shadow: var(--shadow); display: grid; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { display: grid; gap: 7px; }
.field label, .field legend { font-size: 14px; font-weight: 600; color: var(--ink-2); padding: 0; }
.field input, .field textarea, .field select {
  font: inherit; font-size: 15.5px; color: var(--ink); background: var(--bg); border: 1px solid var(--line-2);
  border-radius: 12px; padding: 12px 14px; transition: border-color .2s, box-shadow .2s; width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px color-mix(in srgb, var(--brand) 18%, transparent); }
.field .hint { font-size: 13px; color: var(--muted); }
.field input[aria-invalid="true"] { border-color: #DC2626; }
.err { font-size: 13px; color: #DC2626; min-height: 0; }
:root[data-theme="dark"] .err { color: #F87171; }
fieldset.field { border: 0; margin: 0; padding: 0; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { position: relative; cursor: pointer; }
.choice input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.choice span { display: inline-block; padding: 10px 16px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 14.5px; font-weight: 500; color: var(--ink-2); transition: all .2s; }
.choice input:checked + span { background: var(--btn-bg); color: var(--btn-ink); border-color: var(--btn-bg); }
.choice input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.form-note { font-size: 13.5px; color: var(--muted); }
.form-done { display: none; padding: 14px 16px; border-radius: 12px; background: var(--chip-bg); color: var(--ink); font-size: 14.5px; }
.form-done.show { display: block; animation: panelIn .35s ease; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; gap: 40px; } }
@media (max-width: 560px) { .form-row { grid-template-columns: 1fr; } }

/* ---------- legal ---------- */
.legal { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 64px; align-items: start; padding-bottom: 96px; }
.legal-nav { position: sticky; top: 96px; display: grid; gap: 2px; font-size: 14px; }
.legal-nav a { color: var(--muted); text-decoration: none; padding: 6px 12px; border-left: 2px solid var(--line); transition: color .2s, border-color .2s; }
.legal-nav a:hover, .legal-nav a.active { color: var(--ink); border-left-color: var(--brand); }
.legal-body { max-width: 72ch; }
.legal-body h2 { font-size: 1.45rem; letter-spacing: -0.02em; margin: 48px 0 14px; scroll-margin-top: 96px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body h3 { font-size: 1.05rem; margin: 24px 0 8px; }
.legal-body p, .legal-body li { color: var(--ink-2); font-size: 16px; }
.legal-body p + p { margin-top: 14px; }
.legal-body ul { padding-left: 20px; margin: 12px 0; display: grid; gap: 8px; }
.legal-meta { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 14.5px; margin-top: 18px; }
.callout { border-left: 3px solid var(--brand); background: var(--surface-2); padding: 14px 18px; border-radius: 0 12px 12px 0; margin: 16px 0; }
@media (max-width: 900px) { .legal { grid-template-columns: 1fr; gap: 24px; } .legal-nav { position: static; display: none; } }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--bg); }
.foot { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.foot p { color: var(--muted); font-size: 14.5px; margin-top: 16px; max-width: 34ch; }
.foot h4 { font-size: 14px; font-weight: 600; margin-bottom: 14px; color: var(--ink); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.foot a { color: var(--muted); text-decoration: none; font-size: 14.5px; }
.foot a:hover { color: var(--ink); }
.foot address { font-style: normal; color: var(--muted); font-size: 14.5px; display: grid; gap: 10px; }
.foot-ar { margin-top: 18px; height: 28px; width: auto; color: var(--ink); opacity: .85; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; }
.foot-bottom strong { color: var(--ink-2); font-weight: 600; }
@media (max-width: 860px) { .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .foot { grid-template-columns: 1fr; } }

/* ---------- 404 ---------- */
.nf { min-height: 64vh; display: grid; place-items: center; text-align: center; padding: 64px 0; }
.nf svg.big { width: 120px; margin: 0 auto 32px; }
.nf h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); margin: 0 auto 14px; }
.nf p { color: var(--muted); margin: 0 auto 28px; max-width: 44ch; }
.nf .hero-actions { justify-content: center; }

/* ---------- motion preferences ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}
.product-kicker svg { width: 20px; height: auto; }
.hub-core .mint-mark { width: 54px; height: auto; }
.foot .logo { color: var(--ink); }

/* ---------- 3D hero ---------- */
.hero-3d { position: relative; min-height: min(92vh, 860px); display: flex; align-items: center; overflow: hidden; background: var(--bg); }
#hero-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; cursor: crosshair; touch-action: pan-y; }
.hero-3d-inner { position: relative; z-index: 1; padding-top: 56px; padding-bottom: 56px; pointer-events: none; max-width: var(--wrap); }
.hero-3d-inner > * { pointer-events: auto; }
.hero-3d h1 { max-width: 12ch; font-size: clamp(2.7rem, 6.2vw, 5.4rem); }
.hero-3d .grad { background: linear-gradient(92deg, var(--brand-bright), #A7F3D0 60%, var(--brand-bright)); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .hero-3d .grad { background-image: linear-gradient(92deg, #047857, #10B981 60%, #047857); }
.hero-3d .lede { margin: 24px 0 30px; max-width: 46ch; }
.hero-eyebrow { color: var(--brand); font-size: 14px; font-weight: 600; margin-bottom: 20px; letter-spacing: 0.01em; }
.hero-hint { margin-top: 28px; font-size: 13px; color: var(--muted); }
@media (max-width: 900px) {
  .hero-3d { min-height: 0; }
  .hero-3d-inner { padding-top: 400px; padding-bottom: 40px; }
  #hero-canvas { height: 440px; inset: auto 0 auto 0; top: 0; }
  .hero-3d .lede { max-width: none; }
  .hero-hint { display: none; }
}
.hero-3d + .section-tight { padding-top: 0; }

/* ---------- permissions ---------- */
.perm-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.perm { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px 22px 24px; }
.perm code { display: inline-block; font: 500 12.5px/1 ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--brand-ink); background: var(--chip-bg); padding: 6px 9px; border-radius: 8px; margin: 0 6px 14px 0; }
.perm b { display: block; font-size: 1.05rem; letter-spacing: -0.015em; margin-bottom: 8px; }
.perm p { color: var(--muted); font-size: 14.5px; }
.perm-foot { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; margin-top: 28px; border-top: 1px solid var(--line-2); }
.perm-foot div { padding: 20px 20px 0 0; }
.perm-foot div + div { padding-left: 20px; border-left: 1px solid var(--line); }
.perm-foot b { display: block; margin-bottom: 4px; }
.perm-foot span { color: var(--muted); font-size: 14.5px; }
@media (max-width: 960px) { .perm-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .perm-grid, .perm-foot { grid-template-columns: 1fr; } .perm-foot div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); } }

/* legal permission table */
.ptable { width: 100%; border-collapse: collapse; font-size: 15px; margin: 16px 0; }
.ptable th, .ptable td { text-align: left; vertical-align: top; padding: 12px 12px 12px 0; border-bottom: 1px solid var(--line); }
.ptable th { font-weight: 600; color: var(--muted); font-size: 13px; }
.ptable code { font: 500 13px ui-monospace, Menlo, Consolas, monospace; color: var(--brand-ink); white-space: nowrap; }
@media (max-width: 640px) { .ptable, .ptable tbody, .ptable tr, .ptable td { display: block; } .ptable thead { display: none; } .ptable td { padding: 4px 0; border: 0; } .ptable tr { padding: 12px 0; border-bottom: 1px solid var(--line); } }
