/* ==========================================================================
   Tarik — Landing page
   Brand theme: #0D6944 green
   Design system, typography and components
   ========================================================================== */

/* ---------------------------------- Tokens --------------------------------- */
:root {
  --primary: #0D6944;
  --primary-dark: #084D32;
  --primary-deeper: #052E1E;
  --primary-tint: #E8F5EF;
  --secondary: #D8EEE4;
  --secondary-strong: #A9D8BE;
  --primary-medium: #6FAF91;
  --primary-border: #CFE5D9;

  --background: #FAFBFD;
  --surface: #FFFFFF;

  --text: #111827;
  --text-muted: #667085;
  --text-faint: #98A2B3;

  --border: #E5E7EB;
  --border-strong: #D4D9E3;

  --success: #087443;
  --success-soft: #E7F4EC;
  --warning: #B7791F;
  --warning-soft: #FBF3E4;
  --danger: #C53030;
  --danger-soft: #FBE9E9;

  --on-dark: #F0F7F3;
  --on-dark-muted: #9CC4B0;
  --line-dark: rgba(255, 255, 255, 0.14);

  --radius: 10px;
  --radius-sm: 7px;
  --radius-lg: 14px;

  --shadow-1: 0 1px 2px rgba(16, 24, 40, 0.05);
  --shadow-2: 0 12px 32px -14px rgba(5, 46, 30, 0.18);
  --shadow-3: 0 40px 90px -40px rgba(5, 46, 30, 0.4);

  --font-display: "Newsreader", "Iowan Old Style", Georgia, serif;
  --font-body: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --container: 1200px;
  --container-wide: 1440px;
  --header-h: 80px;
  --header-h-scrolled: 60px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
}

/* ---------------------------------- Reset ---------------------------------- */
*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  color: var(--text);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img, svg { display: block; max-width: 100%; }

h1, h2, h3, h4, p, ul, figure { margin: 0; }
ul { padding: 0; list-style: none; }

a { color: var(--primary); text-decoration: none; }

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--secondary); color: var(--primary-dark); }

/* --------------------------------- Utilities -------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(20px, 4vw, 32px);
}

.container--wide {
  max-width: var(--container-wide);
  padding-inline: clamp(24px, 5vw, 80px);
}

.icon {
  width: 1.25em;
  height: 1.25em;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.icon--sm { width: 15px; height: 15px; }
.icon--arrow { width: 18px; height: 18px; }

.section { padding-block: clamp(76px, 9vw, 120px); }

.section-kicker {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 18px;
}

.section-kicker--light { color: var(--secondary-strong); }

.section-head { max-width: 700px; margin-inline: auto; text-align: center; margin-bottom: clamp(48px, 6vw, 72px); }

.section-head h2,
.dark-copy h2,
.faq-head h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2rem, 4.2vw, 2.9rem);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--text);
}

.section-sub {
  margin-top: 18px;
  font-size: 1.06rem;
  color: var(--text-muted);
}

.section-lead {
  margin-top: 20px;
  font-size: 1.08rem;
  color: var(--text-muted);
  max-width: 54ch;
}

.section-lead--light { color: var(--on-dark-muted); }

/* ---------------------------------- Buttons --------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0.72em 1.5em;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: 1px solid transparent;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
  white-space: nowrap;
}

.btn--primary {
  background: var(--primary);
  color: #fff;
  box-shadow: 0 1px 2px rgba(5, 46, 30, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.btn--primary:hover { background: var(--primary-dark); transform: translateY(-1px); box-shadow: var(--shadow-2); }

.btn--primary:active { background: var(--primary-deeper); transform: none; box-shadow: none; }

.btn--ghost {
  border-color: var(--border-strong);
  background: transparent;
  color: var(--text);
}

.btn--ghost:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-tint); }

.btn--lg { padding: 0.8em 1.7em; font-size: 16px; border-radius: 12px; min-height: 52px; }
.btn--sm { padding: 0.55em 1.1em; font-size: 14px; }

/* ---------------------------------- Header ---------------------------------- */
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 100;
  padding: 10px 16px;
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  font-weight: 600;
  transition: top 0.2s ease;
}

.skip-link:focus { top: 12px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(250, 251, 253, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

.site-header.is-scrolled {
  background: rgba(255, 255, 255, 0.92);
  border-bottom-color: var(--border);
  box-shadow: 0 1px 0 rgba(16, 24, 40, 0.02), 0 8px 24px -18px rgba(16, 24, 40, 0.18);
}

.header-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 32px;
  height: var(--header-h);
  transition: height 0.25s ease;
}

.site-header.is-scrolled .header-inner { height: var(--header-h-scrolled); }

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
}

.brand-mark { flex: none; border-radius: 8px; }

.brand-name {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 3.6vw, 46px);
}

.nav-links a {
  font-size: 16px;
  font-weight: 500;
  color: var(--text);
  padding: 6px 2px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 100%;
  bottom: 0;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  transition: right 0.25s var(--ease);
}

.nav-links a:hover { color: var(--primary); }
.nav-links a:hover::after { right: 0; }

.header-actions { display: flex; align-items: center; gap: 10px; }

.menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
}

.menu-btn .icon { width: 22px; height: 22px; }
.menu-btn .icon--close { display: none; }
.menu-btn[aria-expanded="true"] .icon--menu { display: none; }
.menu-btn[aria-expanded="true"] .icon--close { display: block; }

/* Mobile nav panel — absolutely positioned so it never affects header height */
.mobile-nav {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  visibility: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 24px 40px -24px rgba(5, 46, 30, 0.25);
}

.mobile-nav.is-open { visibility: visible; opacity: 1; transform: none; }

.mobile-nav-inner {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding-block: 14px 22px;
}

.mobile-nav-inner > a {
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  padding: 13px 2px;
  border-bottom: 1px solid var(--border);
}

.mobile-nav-inner > a:hover { color: var(--primary); }

.mobile-nav-cta { display: flex; gap: 12px; margin-top: 18px; }
.mobile-nav-cta .btn { flex: 1; }

/* ----------------------------------- Hero ----------------------------------- */
.hero {
  position: relative;
  padding-top: clamp(28px, 6vw, 52px);
  padding-bottom: clamp(36px, 4vw, 48px);
  overflow: clip;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(58% 64% at 84% 22%, rgba(11, 122, 85, 0.08) 0%, rgba(11, 122, 85, 0) 68%),
    radial-gradient(40% 46% at 6% 88%, rgba(11, 122, 85, 0.04) 0%, rgba(11, 122, 85, 0) 70%);
  pointer-events: none;
}

.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(0, 1.06fr);
  gap: 40px;
  align-items: center;
}

.hero-copy { min-width: 0; }

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 28px;
  box-shadow: var(--shadow-1);
}

.eyebrow-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-tint);
}

.hero-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.75rem, 4.6vw, 4rem);
  line-height: 0.98;
  letter-spacing: -0.03em;
  color: var(--text);
  text-wrap: balance;
}

.hero-title em {
  font-style: italic;
  font-weight: 500;
  color: var(--primary);
}

.hero-sub {
  margin-top: 30px;
  max-width: 600px;
  font-size: clamp(1.125rem, 1.3vw, 0.5rem);
  line-height: 1.6;
  color: var(--text-muted);
}

.hero-cta {
  margin-top: 34px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-copy .hero-cta .btn { min-height: 32px; }
.hero-copy .hero-cta .btn--ghost { background: var(--surface); }

/* Benefit row — borderless horizontal feature strip */
.hero-benefits {
  grid-column: 1 / -1;
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.hero-benefit {
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 14px;
  align-items: start;
}

.hero-benefit .icon {
  width: 38px;
  height: 38px;
  padding: 10px;
  flex: none;
  border-radius: 50%;
  background: rgba(8, 122, 82, 0.08);
  color: var(--primary);
}

.hero-benefit span {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-top: 3px;
  min-width: 0;
}

.hero-benefit strong {
  font-size: 15.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
  line-height: 1.3;
  color: var(--text);
}

.hero-benefit small {
  font-size: 13px;
  color: var(--text-muted);
}

/* Trusted by Modern Law Firms */
.hero-trust {
  grid-column: 1 / -1;
  margin-top: 36px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
  text-align: center;
}

.hero-trust-heading {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.hero-trust-sub {
  margin-top: 8px;
  font-size: 14px;
  color: var(--text-muted);
}

.hero-logos {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: clamp(28px, 4.5vw, 64px);
}

.hero-logos li {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--text-faint);
  white-space: nowrap;
}

/* Dashboard visual */
.hero-visual {
  position: relative;
  min-width: 0;
  margin-right: clamp(-40px, -2.5vw, -12px);
  animation: heroDashIn 0.9s var(--ease) both;
}

@keyframes heroDashIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: none; }
}

/* Large soft circular green shape behind the dashboard */
.hero-visual::before {
  content: "";
  position: absolute;
  top: 4%;
  right: -24%;
  width: 116%;
  height: 134%;
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(8, 122, 82, 0.13) 0%, rgba(8, 122, 82, 0.05) 55%, rgba(8, 122, 82, 0) 78%);
  pointer-events: none;
}

/* Subtle editorial arc */
.hero-visual::after {
  content: "";
  position: absolute;
  right: -4%;
  bottom: -7%;
  width: 44%;
  height: 58%;
  border: 1.5px solid rgba(13, 105, 68, 0.14);
  border-radius: 50%;
  border-right-color: transparent;
  border-bottom-color: transparent;
  transform: rotate(14deg);
  pointer-events: none;
}

.hero-frame {
  position: relative;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 40px 80px -32px rgba(5, 46, 30, 0.32), 0 18px 36px -24px rgba(5, 46, 30, 0.16), 0 2px 6px rgba(5, 46, 30, 0.04);
}

.hero-frame img {
  display: block;
  width: 100%;
  height: auto;
}

@media (min-width: 1200px) {
  .hero-frame { transform: rotate(-2deg); }
}

@media (max-width: 1199px) and (min-width: 768px) {
  .hero-frame { transform: rotate(-1deg); }
}

/* Hero entrance — staggered fade-up, disabled for reduced motion */
@media (prefers-reduced-motion: no-preference) {
  .hero-copy > * { animation: heroCopyUp 0.7s var(--ease) both; }
  .hero-copy > *:nth-child(1) { animation-delay: 0.05s; }
  .hero-copy > *:nth-child(2) { animation-delay: 0.12s; }
  .hero-copy > *:nth-child(3) { animation-delay: 0.19s; }
  .hero-copy > *:nth-child(4) { animation-delay: 0.26s; }
  .hero-copy > *:nth-child(5) { animation-delay: 0.33s; }
}

@keyframes heroCopyUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

/* ------------------------------ Mock UI elements ----------------------------- */
.m-strong { font-weight: 600; color: var(--text); }

.m-muted { color: var(--text-muted); }

.m-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  white-space: nowrap;
  justify-self: start;
}

.m-pill--blue { background: var(--secondary); color: var(--primary); }
.m-pill--green { background: var(--success-soft); color: var(--success); }
.m-pill--amber { background: var(--warning-soft); color: var(--warning); }
.m-pill--red { background: var(--danger-soft); color: var(--danger); }
.m-pill--gray { background: #EFF1F5; color: #475467; }

.m-list { display: flex; flex-direction: column; padding: 6px 0; }

.m-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
}

.m-item-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; flex: 1; }
.m-item-text strong { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.m-item-text small { font-size: 11px; color: var(--text-muted); }

.m-date {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex: none;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--background);
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.1;
}

.m-date strong { font-size: 15px; color: var(--primary); }

.m-avatar {
  width: 32px;
  height: 32px;
  flex: none;
  border-radius: 50%;
  background: var(--primary-tint);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}

.m-avatar--sm { width: 26px; height: 26px; font-size: 10px; }

.m-file {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.m-file--pdf { background: var(--danger-soft); color: var(--danger); }
.m-file--doc { background: var(--secondary); color: var(--primary); }
.m-file--xls { background: var(--success-soft); color: var(--success); }

.m-inv {
  flex: none;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--text-muted);
  background: var(--background);
  border: 1px solid var(--border);
  padding: 4px 8px;
  border-radius: 6px;
}

/* Mini calendar */
.mini-cal { padding: 6px 12px 10px; }

.mini-cal-row { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-bottom: 3px; }

.mini-cal-head {
  text-align: center;
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-faint);
  padding: 3px 0;
  text-transform: uppercase;
}

.mini-cal-cell {
  text-align: center;
  font-size: 10.5px;
  color: var(--text-muted);
  padding: 4px 0;
  border-radius: 5px;
}

.mini-cal-cell.dim { color: var(--text-faint); }

.mini-cal-cell.is-event {
  background: var(--secondary);
  color: var(--primary);
  font-weight: 700;
  box-shadow: inset 0 0 0 1px rgba(13, 105, 68, 0.18);
}

.mini-cal--sm .mini-cal-cell { font-size: 10px; padding: 3px 0; }

.m-cal-note {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11.5px;
  color: var(--text-muted);
  padding: 8px 14px 12px;
}

.m-cal-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--primary); }

/* ------------------------------ Workflow section ----------------------------- */
.section--workflow { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.wf-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 18px;
}

.wf-grid > * { min-width: 0; }

.wf-panel {
  background: #F1F7F4;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
}

.wf-a { grid-column: span 7; grid-row: span 2; }
.wf-b { grid-column: span 5; }
.wf-c { grid-column: span 5; }
.wf-d, .wf-e, .wf-f { grid-column: span 4; }

.wf-head { display: flex; gap: 15px; align-items: flex-start; margin-bottom: 20px; }

.wf-ico {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: 10px;
  display: grid;
  place-items: center;
}

.wf-ico .icon { width: 21px; height: 21px; }

.wf-ico--primary { background: var(--primary); color: #fff; }
.wf-ico--soft { background: var(--secondary); color: var(--primary); }

.wf-title { font-size: 18px; font-weight: 650; letter-spacing: -0.01em; color: var(--text); }
.wf-text { font-size: 13.5px; color: var(--text-muted); margin-top: 4px; max-width: 44ch; }

/* White "window" used inside workflow panels */
.m-window {
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow-1);
  padding: 4px 0;
  overflow: hidden;
}

.m-window--tight { padding: 0; }

.m-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px 11px;
  border-bottom: 1px solid var(--border);
}

.m-progress { display: flex; align-items: center; gap: 12px; padding: 12px 16px; }

.m-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #E4EDE8;
  overflow: hidden;
}

.m-progress-fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.m-progress-note { font-size: 11.5px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }

.m-info-grid {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  padding: 14px 16px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.m-info-grid--2 { grid-template-columns: repeat(2, 1fr); }

.m-info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.m-info span { font-size: 11px; color: var(--text-faint); }
.m-info strong { font-size: 12.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.m-timeline { padding: 14px 16px; display: flex; flex-direction: column; gap: 13px; }

.m-tl-item { display: flex; gap: 12px; align-items: flex-start; }

.m-tl-dot {
  width: 9px;
  height: 9px;
  flex: none;
  border-radius: 50%;
  background: #C3D2C9;
  margin-top: 4px;
  box-shadow: 0 0 0 3px #EAF1EC;
}

.m-tl-dot--active { background: var(--primary); box-shadow: 0 0 0 3px var(--secondary); }

.m-tl-item p { display: flex; flex-direction: column; line-height: 1.3; }
.m-tl-item strong { font-size: 12.5px; font-weight: 600; color: var(--text); }
.m-tl-item small { font-size: 11px; color: var(--text-muted); }

.m-client { display: flex; align-items: center; gap: 13px; padding: 14px 16px; }
.m-client .m-avatar { width: 38px; height: 38px; font-size: 13px; }
.m-client > div { flex: 1; min-width: 0; }
.m-client p { line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.m-chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 13px 16px; }

.m-chip {
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  padding: 4px 10px;
  border-radius: 999px;
  white-space: nowrap;
}

/* ------------------------- Case & Matter Management story ------------------------- */
.section--story {
  background:
    radial-gradient(46rem 40rem at -8% 2%, rgba(216, 238, 228, 0.65) 0%, rgba(216, 238, 228, 0) 62%),
    radial-gradient(40rem 36rem at 110% 104%, rgba(216, 238, 228, 0.45) 0%, rgba(216, 238, 228, 0) 60%),
    #FCFDFC;
}

.cm-wrap {
  display: grid;
  grid-template-columns: 1.07fr 1fr;
  gap: clamp(48px, 6.5vw, 96px);
  align-items: center;
}

.cm-visual { position: relative; min-width: 0; }

.cm-stage { position: relative; min-width: 0; padding-bottom: 58px; }

/* --- Decorative background shapes --- */
.cm-blob,
.cm-pale,
.cm-rings,
.cm-dots {
  position: absolute;
  z-index: 0;
  pointer-events: none;
}

.cm-blob {
  top: -118px;
  left: -82px;
  width: 330px;
  height: 330px;
  border-radius: 58% 42% 38% 62% / 46% 55% 45% 54%;
  background: linear-gradient(140deg, var(--primary-deeper) 10%, var(--primary-dark) 90%);
  transform: rotate(-14deg);
}

.cm-pale {
  right: -76px;
  bottom: -12px;
  width: 300px;
  height: 300px;
  border-radius: 46% 54% 58% 42% / 52% 44% 56% 48%;
  background: var(--secondary);
  opacity: 0.6;
}

.cm-rings {
  right: -36px;
  top: 32%;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle,
    transparent 0 30px, rgba(13, 105, 68, 0.17) 30px 31px, transparent 31px 65px,
    rgba(13, 105, 68, 0.12) 65px 66px, transparent 66px 100px,
    rgba(13, 105, 68, 0.08) 100px 101px, transparent 101px);
}

.cm-dots {
  top: -38px;
  right: 6%;
  width: 104px;
  height: 104px;
  background-image: radial-gradient(rgba(13, 105, 68, 0.34) 1.2px, transparent 1.2px);
  background-size: 14px 14px;
  opacity: 0.55;
}

/* --- Dashboard card --- */
.cm-card {
  position: relative;
  z-index: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 30px 60px -30px rgba(5, 46, 30, 0.24);
  overflow: hidden;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease);
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cm-stage:hover .cm-card {
    transform: translateY(-4px);
    box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 42px 72px -32px rgba(5, 46, 30, 0.32);
  }
}

.cm-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border);
}

.cm-card-title {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-card-title .icon {
  flex: none;
  width: 17px;
  height: 17px;
  color: var(--primary);
}

.cm-badge {
  flex: none;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--primary-dark);
  background: var(--success-soft);
  border: 1px solid rgba(13, 105, 68, 0.12);
  padding: 5px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

/* --- Case information row --- */
.cm-meta {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 0;
  padding: 16px 20px;
}

.cm-meta-item {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding-inline: 18px;
}

.cm-meta-item:first-child { padding-left: 0; }
.cm-meta-item:last-child { padding-right: 0; }

.cm-meta-item + .cm-meta-item::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 1px;
  background: var(--border);
}

.cm-meta dt {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-faint);
}

.cm-meta dd {
  margin: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- Progress --- */
.cm-progress {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 20px;
  border-top: 1px solid var(--border);
}

.cm-progress-track {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #E6EEE9;
  overflow: hidden;
}

.cm-progress-fill {
  display: block;
  width: 68%;
  height: 100%;
  border-radius: 999px;
  background: var(--primary);
}

.cm-progress-note {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  white-space: nowrap;
}

/* --- Lower dashboard --- */
.cm-dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-top: 1px solid var(--border);
}

.cm-col {
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 15px 20px 16px;
}

.cm-col + .cm-col { border-left: 1px solid var(--border); }

.cm-col-title {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 8px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--text-faint);
}

.cm-col-title .icon {
  width: 14px;
  height: 14px;
  color: var(--primary);
}

.cm-event {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 0;
}

.cm-event + .cm-event { border-top: 1px solid var(--border); }

.cm-date {
  flex: none;
  width: 42px;
  height: 44px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  border: 1px solid var(--border-strong);
  border-radius: 9px;
  background: #FAFCFB;
  line-height: 1;
}

.cm-date strong {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text);
}

.cm-date small {
  font-size: 8.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
}

.cm-avatar {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-tint);
  border: 1px solid rgba(13, 105, 68, 0.14);
  color: var(--primary-dark);
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cm-event-text {
  min-width: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 1px;
  line-height: 1.32;
}

.cm-event-text strong {
  font-size: 12px;
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cm-event-text span { font-size: 11px; color: var(--text-muted); }
.cm-event-text small { font-size: 10.5px; color: var(--text-faint); }

.cm-link {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--primary-dark);
  font-size: 11.5px;
  font-weight: 600;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s var(--ease);
}

.cm-link .icon { width: 13px; height: 13px; }

.cm-link:hover {
  background: var(--primary-tint);
  border-color: var(--primary-border);
  color: var(--primary);
}

/* --- Floating security card --- */
.cm-secure {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 10px 18px 10px 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 13px;
  box-shadow: 0 18px 40px -18px rgba(5, 46, 30, 0.32), 0 1px 2px rgba(16, 24, 40, 0.04);
  white-space: nowrap;
}

.cm-secure-icon {
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-tint);
  color: var(--primary);
}

.cm-secure-icon .icon { width: 17px; height: 17px; }

.cm-secure-text {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.cm-secure-text strong { font-size: 12px; font-weight: 600; color: var(--text); }
.cm-secure-text small { font-size: 10.5px; color: var(--text-muted); }

/* --- Right column copy --- */
.cm-copy {
  min-width: 0;
  max-width: 570px;
}

.cm-eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--primary);
}

.cm-eyebrow-line {
  width: 34px;
  height: 2px;
  border-radius: 2px;
  background: var(--primary);
  opacity: 0.5;
}

.cm-title {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.35rem, 3.6vw, 3.1rem);
  line-height: 1.09;
  letter-spacing: -0.015em;
  color: var(--text);
  max-width: "300px";
}

.cm-period { color: var(--primary); }

.cm-lead {
  margin-top: 22px;
  font-size: 1.05rem;
  line-height: 1.72;
  color: var(--text-muted);
  max-width: 46ch;
}

.cm-features {
  margin-top: 26px;
  display: flex;
  flex-direction: column;
}

.cm-feature {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 12px;
  margin-inline: -12px;
  border-radius: 12px;
  transition: background-color 0.2s var(--ease);
}

.cm-feature + .cm-feature { border-top: 1px solid var(--border); }

.cm-feature-icon {
  flex: none;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary-tint);
  color: var(--primary);
}

.cm-feature-icon .icon { width: 19px; height: 19px; }

.cm-feature-text {
  min-width: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
}

.cm-feature-text strong {
  font-size: 15.5px;
  font-weight: 650;
  color: var(--text);
  margin-right: 3px;
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .cm-feature:hover { background: #F1F7F4; }
}

.cm-cta {
  margin-top: 30px;
  padding: 0.82em 1.6em;
}

.cm-cta .icon--arrow { transition: transform 0.2s var(--ease); }

.cm-cta:hover .icon--arrow { transform: translateX(3px); }

/* ------------------------------ Dark section ------------------------------ */
.section--dark {
  background: var(--primary-deeper);
  background-image:
    radial-gradient(70% 60% at 15% 0%, rgba(13, 105, 68, 0.55) 0%, rgba(5, 46, 30, 0) 60%),
    radial-gradient(50% 50% at 100% 100%, rgba(13, 105, 68, 0.4) 0%, rgba(5, 46, 30, 0) 60%);
  color: var(--on-dark);
  border-block: 1px solid rgba(255, 255, 255, 0.06);
}

.section--dark :focus-visible { outline-color: var(--secondary-strong); }

.dark-grid {
  display: grid;
  grid-template-columns: 1.06fr 1fr;
  gap: clamp(44px, 6vw, 84px);
  align-items: center;
}

.dark-grid > * { min-width: 0; }

.dark-mock {
  min-width: 0;
  background: linear-gradient(180deg, #0E4E34 0%, #0A3D28 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.55);
  padding: 24px;
}

.dark-mock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.dark-mock-title { font-size: 16px; font-weight: 700; color: #fff; letter-spacing: -0.01em; }
.dark-mock-sub { font-size: 12px; color: var(--on-dark-muted); margin-top: 2px; }

.dark-chip {
  font-size: 11px;
  font-weight: 600;
  color: #B7DCC8;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  padding: 5px 12px;
  white-space: nowrap;
}

.dark-kpis {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 18px;
}

.dark-kpi {
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.05);
  padding: 12px 14px;
}

.dark-kpi p { font-size: 11px; color: var(--on-dark-muted); }
.dark-kpi strong { font-size: 19px; font-weight: 700; color: #fff; letter-spacing: -0.02em; display: block; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.dark-chart {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.04);
  padding: 16px;
}

.dark-chart-label { font-size: 11px; font-weight: 600; color: var(--on-dark-muted); margin-bottom: 16px; }

.dark-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 120px;
}

.dark-bar {
  flex: 1;
  background: linear-gradient(180deg, #3F9B6F 0%, #1D6B47 100%);
  border-radius: 5px 5px 2px 2px;
  position: relative;
  min-height: 12px;
}

.dark-bar--hot {  background: linear-gradient(180deg, #8FD4B0 0%, #3F9B6F 100%); }

.dark-bar span {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--on-dark-muted);
}

.dark-legend {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 34px;
}

.dark-legend-item {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  color: var(--on-dark-muted);
}

.dark-legend-item strong { font-size: 13px; font-weight: 600; color: #fff; }

.dark-legend-swatch { width: 18px; height: 4px; border-radius: 2px; }
.dark-legend-swatch--a { background: #3F9B6F; }
.dark-legend-swatch--b { background: #6BB98F; }
.dark-legend-swatch--c { background: #9ED4B4; }
.dark-legend-swatch--d { background: #CBEBD8; }

.dark-copy h2 { color: #fff; }

.benefit-grid {
  margin-top: 30px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 26px;
}

.benefit-grid li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  font-weight: 500;
  color: var(--on-dark);
}

.benefit-grid .icon { width: 19px; height: 19px; color: var(--secondary-strong); }

/* ------------------------------ Feature tabs ------------------------------ */
.section--features { background: var(--background); }

.tabs-bar {
  display: flex;
  justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: clamp(34px, 4.5vw, 52px);
  padding-bottom: 2px;
}

.tab-btn {
  position: relative;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text-muted);
  padding: 10px 18px;
  border-radius: 8px;
  transition: color 0.2s ease, background-color 0.2s ease;
}

.tab-btn:hover { color: var(--primary); background: var(--primary-tint); }

.tab-btn.is-active {
  color: var(--primary);
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-1);
}

.tabs-panels { display: grid; }

.tab-panel {
  grid-area: 1 / 1;
  display: grid;
  grid-template-columns: 5fr 6fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s ease, visibility 0.35s;
}

.tab-panel.is-active { opacity: 1; visibility: visible; transform: none; }

.tab-copy { min-width: 0; }

.tab-copy h3 { font-size: clamp(1.5rem, 2.4vw, 1.9rem); font-weight: 650; letter-spacing: -0.015em; color: var(--text); line-height: 1.2; }

.tab-copy > p { margin-top: 14px; font-size: 1.03rem; color: var(--text-muted); max-width: 46ch; }

.tab-list { margin-top: 22px; display: flex; flex-direction: column; gap: 11px; }

.tab-list li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  font-size: 15px;
  color: var(--text);
  font-weight: 500;
}

.tab-list li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 2px;
  background: var(--primary);
  margin-top: 8px;
}

/* Tab visual mockups */
.tab-visual { min-width: 0; }

.mock {
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: var(--surface);
  box-shadow: var(--shadow-2);
  padding: 20px;
  min-width: 0;
}

.mock-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 14px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.mock-title { font-size: 14.5px; font-weight: 700; color: var(--text); letter-spacing: -0.01em; }
.mock-sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }

.mock-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-tint);
  border: 1px solid var(--primary-border);
  border-radius: 7px;
  padding: 6px 11px;
  white-space: nowrap;
}

.mock-subhead {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-faint);
  padding: 14px 2px 2px;
}

.mock .m-info-grid { border-top: 0; border-bottom: 0; padding-top: 0; }
.mock .m-timeline { padding-top: 6px; }
.mock .m-list { padding: 2px 0; }
.mock .m-item { padding-inline: 0; }

.m-kpis {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.m-kpi {
  min-width: 0;
  border: 1px solid var(--border);
  border-radius: 9px;
  background: var(--background);
  padding: 11px 13px;
}

.m-kpi p { font-size: 11px; color: var(--text-muted); }
.m-kpi strong { font-size: 17px; font-weight: 700; color: var(--text); letter-spacing: -0.02em; display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mock-bars {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  height: 96px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--background);
  border: 1px solid var(--border);
  border-radius: 9px;
}

.mock-bar {
  flex: 1;
  background: #B9D9C8;
  border-radius: 5px 5px 2px 2px;
  position: relative;
  min-height: 10px;
}

.mock-bar--hot { background: var(--primary); }

.mock-bar span {
  position: absolute;
  bottom: -18px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 10px;
  color: var(--text-faint);
}

/* ------------------------------ Why section ------------------------------ */
.section--why { background: var(--background); padding-top: clamp(100px, 12vw, 160px); padding-bottom: clamp(80px, 10vw, 140px); position: relative; overflow: hidden; }

.why-intro { max-width: 720px; margin-inline: auto; text-align: center; margin-bottom: clamp(64px, 8vw, 96px); }
.why-intro h2 { font-family: var(--font-display); font-weight: 500; font-size: clamp(2.2rem, 4.5vw, 3.2rem); line-height: 1.1; letter-spacing: -0.02em; color: var(--text); margin-top: 16px; }
.why-intro h2 em { font-style: italic; color: var(--primary); }
.why-intro .section-sub { max-width: 560px; margin-inline: auto; margin-top: 20px; }

/* Feature rows */
.why-features { display: flex; flex-direction: column; }
.why-row { display: grid; grid-template-columns: 44% 1fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding: clamp(40px, 5vw, 60px) 0; border-bottom: 1px solid rgba(15, 30, 45, 0.08); }
.why-row:first-child { padding-top: 0; }
.why-row:last-child { border-bottom: none; }
.why-row:nth-child(even) { grid-template-columns: 1fr 44%; }
.why-row:nth-child(even) .why-visual { order: 2; }
.why-row:nth-child(even) .why-copy { order: 1; }

.why-label { display: flex; align-items: center; gap: 10px; font-size: 12px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--primary); margin-bottom: 16px; }
.why-num { font-family: var(--font-display); font-size: 14px; font-weight: 600; }

.why-copy h3 { font-family: var(--font-display); font-weight: 500; font-size: clamp(1.5rem, 2.2vw, 1.9rem); line-height: 1.2; letter-spacing: -0.01em; color: var(--text); max-width: 32ch; }
.why-copy p { margin-top: 14px; font-size: 1rem; color: var(--text-muted); max-width: 44ch; }

/* Product UI cards */
.why-visual { position: relative; }
.why-visual-accent { position: absolute; top: -16px; left: -16px; width: 48px; height: 48px; background: var(--primary-tint); border-radius: var(--radius-sm); display: flex; align-items: center; justify-content: center; z-index: 1; }
.why-visual-accent svg { width: 24px; height: 24px; }
.why-visual-accent-right { left: auto; right: -16px; }

.why-ui-card { background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--border); box-shadow: var(--shadow-2); overflow: hidden; transition: transform 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.why-ui-card:hover { transform: translateY(-3px); box-shadow: 0 16px 40px -16px rgba(5, 46, 30, 0.22); }

/* UI sidebar */
.ui-sidebar { width: 140px; background: var(--background); border-right: 1px solid var(--border); padding: 16px 12px; display: flex; flex-direction: column; gap: 4px; }
.ui-nav-item { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: var(--radius-sm); font-size: 13px; color: var(--text-muted); cursor: pointer; transition: background 0.2s, color 0.2s; }
.ui-nav-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.ui-nav-active { background: var(--primary-tint); color: var(--primary); font-weight: 600; }

/* UI content */
.ui-content { padding: 16px; }
.ui-content-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.ui-title { font-size: 14px; font-weight: 600; color: var(--text); }
.ui-btn-primary { font-size: 12px; font-weight: 600; color: var(--surface); background: var(--primary); padding: 6px 12px; border-radius: var(--radius-sm); cursor: pointer; }

/* UI table */
.ui-table { display: flex; flex-direction: column; }
.ui-table-row { display: grid; grid-template-columns: 70px 1fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.ui-table-row:last-child { border-bottom: none; }
.ui-matter-id { color: var(--text-faint); font-family: var(--font-body); }
.ui-matter-name { color: var(--text); font-weight: 500; }
.ui-status { padding: 3px 8px; border-radius: 12px; font-size: 11px; font-weight: 600; }
.ui-status-active { background: var(--success-soft); color: var(--success); }
.ui-status-pending { background: var(--warning-soft); color: var(--warning); }

/* Matters layout */
.why-ui-matters { display: flex; }
.why-ui-matters .ui-content { flex: 1; }

/* Tasks UI */
.why-ui-tasks { padding: 16px; }
.why-ui-tasks .ui-content-header { margin-bottom: 12px; }
.ui-task-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.ui-task-item { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text); }
.ui-task-check { width: 16px; height: 16px; border: 1.5px solid var(--border-strong); border-radius: 4px; flex-shrink: 0; position: relative; }
.ui-task-done { background: var(--primary); border-color: var(--primary); }
.ui-task-done::after { content: ''; position: absolute; top: 2px; left: 4.5px; width: 4px; height: 7px; border: solid var(--surface); border-width: 0 1.5px 1.5px 0; transform: rotate(45deg); }

/* Analytics card */
.ui-analytics { background: var(--primary-tint); border-radius: var(--radius-sm); padding: 14px 16px; }
.ui-analytics-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.ui-analytics-value { font-size: 24px; font-weight: 700; color: var(--primary-dark); margin-bottom: 8px; }
.ui-sparkline svg { width: 100%; height: 24px; }

/* Dashboard UI */
.why-ui-dashboard { padding: 16px; }
.ui-dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 16px; }
.ui-dash-card { background: var(--background); border-radius: var(--radius-sm); padding: 14px; border: 1px solid var(--border); }
.ui-dash-card.ui-dash-alert { background: var(--danger-soft); border-color: transparent; }
.ui-dash-label { font-size: 12px; color: var(--text-muted); margin-bottom: 4px; }
.ui-dash-value { font-size: 28px; font-weight: 700; color: var(--text); }
.ui-dash-alert .ui-dash-value { color: var(--danger); }

.ui-event-list { display: flex; flex-direction: column; gap: 10px; }
.ui-event-item { display: flex; align-items: flex-start; gap: 10px; }
.ui-event-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-top: 5px; flex-shrink: 0; }
.ui-event-dot-pending { background: var(--warning); }
.ui-event-info { display: flex; flex-direction: column; }
.ui-event-title { font-size: 13px; font-weight: 500; color: var(--text); }
.ui-event-meta { font-size: 12px; color: var(--text-faint); }

/* Workflow UI */
.why-ui-workflow { padding: 16px; }
.why-ui-workflow .ui-content-header { margin-bottom: 16px; }
.ui-workflow-steps { display: flex; flex-direction: column; align-items: flex-start; padding-left: 4px; }
.ui-workflow-step { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--text-muted); }
.ui-workflow-step.ui-workflow-active { color: var(--primary); font-weight: 600; }
.ui-workflow-step.ui-workflow-complete { color: var(--text); }
.ui-workflow-dot { width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--border-strong); background: var(--surface); flex-shrink: 0; }
.ui-workflow-active .ui-workflow-dot { border-color: var(--primary); background: var(--primary); }
.ui-workflow-complete .ui-workflow-dot { border-color: var(--primary); background: var(--primary); }
.ui-workflow-line { width: 2px; height: 16px; background: var(--border); margin-left: 5px; }
.ui-workflow-line-complete { background: var(--primary); }
.ui-workflow-line-active { background: linear-gradient(to bottom, var(--primary), var(--border)); }

/* ------------------------------ Security section ------------------------------ */
.section--security { background: var(--background); }

.sec-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}

.sec-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px 24px;
}

.sec-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--primary-tint);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 18px;
}

.sec-ico .icon { width: 22px; height: 22px; }

.sec-item h3 { font-size: 17px; font-weight: 650; color: var(--text); letter-spacing: -0.01em; }
.sec-item p { margin-top: 8px; font-size: 14.5px; color: var(--text-muted); line-height: 1.55; }

/* ------------------------------ Modules section ------------------------------ */
.section--modules { background: var(--surface); border-top: 1px solid var(--border); }

.mod-featured {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 4vw, 56px);
  align-items: center;
  background: linear-gradient(135deg, var(--secondary) 0%, #EAF6F0 100%);
  border: 1px solid var(--secondary-strong);
  border-radius: var(--radius-lg);
  padding: clamp(30px, 4vw, 48px);
  margin-bottom: clamp(34px, 4vw, 52px);
}

.mod-featured-ico {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  box-shadow: var(--shadow-2);
}

.mod-featured-ico .icon { width: 26px; height: 26px; }

.mod-featured h3 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 2.6vw, 2.2rem); letter-spacing: -0.015em; color: var(--text); }

.mod-featured-copy > p { margin-top: 12px; font-size: 1.05rem; color: var(--text-muted); max-width: 46ch; }

.mod-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.mod-featured-visual { min-width: 0; }
.mod-featured-visual .m-window { box-shadow: var(--shadow-2); border-color: var(--border-strong); }

.mod-groups {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(28px, 3vw, 48px);
}

.mod-group-title {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 6px;
}

.mod-item {
  display: flex;
  gap: 14px;
  padding: 16px 4px;
  border-bottom: 1px solid var(--border);
}

.mod-item-ico {
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 9px;
  background: var(--primary-tint);
  color: var(--primary);
  display: grid;
  place-items: center;
}

.mod-item-ico .icon { width: 18px; height: 18px; }

.mod-item h4 { font-size: 15px; font-weight: 650; color: var(--text); }
.mod-item p { margin-top: 3px; font-size: 13.5px; color: var(--text-muted); line-height: 1.5; }

/* ------------------------------ FAQ ------------------------------ */
.section--faq { background: var(--background); }

.faq-wrap {
  display: grid;
  grid-template-columns: 5fr 7fr;
  gap: clamp(36px, 5vw, 72px);
  align-items: start;
}

.faq-head { position: sticky; top: calc(var(--header-h-scrolled) + 32px); }

.faq-contact {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
  font-size: 15px;
  font-weight: 600;
  color: var(--primary);
}

.faq-contact .icon { width: 17px; height: 17px; transition: transform 0.2s var(--ease); }
.faq-contact:hover .icon { transform: translateX(4px); }

.faq-list { display: flex; flex-direction: column; }

.faq-item {
  border-bottom: 1px solid var(--border);
}

.faq-item:first-child { border-top: 1px solid var(--border); }

.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  text-align: left;
  font-size: 16.5px;
  font-weight: 600;
  color: var(--text);
  padding: 22px 4px;
  transition: color 0.2s ease;
}

.faq-q:hover { color: var(--primary); }

.faq-q::after {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: -5px;
  border-right: 2px solid var(--text-faint);
  border-bottom: 2px solid var(--text-faint);
  transform: rotate(45deg);
  transition: transform 0.3s var(--ease), border-color 0.2s ease;
}

.faq-item.is-open .faq-q { color: var(--primary); }
.faq-item.is-open .faq-q::after { transform: rotate(225deg); border-color: var(--primary); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.32s var(--ease);
}

.faq-item.is-open .faq-a { grid-template-rows: 1fr; }

.faq-a-inner { overflow: hidden; }

.faq-a-inner {
  font-size: 15.5px;
  color: var(--text-muted);
  line-height: 1.65;
  padding-right: 24px;
}

.faq-item.is-open .faq-a-inner { padding-bottom: 22px; }

/* ------------------------------ Final CTA ------------------------------ */
.section--cta { padding-top: 0; }

.cta-card {
  position: relative;
  text-align: center;
  border: 1px solid var(--border-strong);
  border-radius: 18px;
  background: var(--surface);
  padding: clamp(52px, 7vw, 88px) clamp(24px, 5vw, 64px);
  overflow: hidden;
}

.cta-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 220px;
  background:
    radial-gradient(45% 100% at 15% 0%, rgba(216, 238, 228, 0.95) 0%, rgba(216, 238, 228, 0) 100%),
    radial-gradient(45% 100% at 85% 0%, rgba(216, 238, 228, 0.8) 0%, rgba(216, 238, 228, 0) 100%);
  pointer-events: none;
}

.cta-card > * { position: relative; }

.cta-card h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.2rem, 4.6vw, 3.4rem);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--text);
}

.cta-card .section-lead { margin-inline: auto; }

.cta-card .hero-cta { margin-top: 34px; }

/* ------------------------------ Footer ------------------------------ */
.site-footer {
  background: #F3F8F5;
  border-top: 1px solid var(--border);
  padding-top: clamp(48px, 6vw, 72px);
  padding-bottom: 34px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2.2fr 1fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 48px);
  padding-bottom: clamp(36px, 5vw, 56px);
}

.brand--footer .brand-name { font-size: 19px; }

.footer-desc {
  margin-top: 18px;
  font-size: 15px;
  color: var(--text-muted);
  max-width: 26ch;
  line-height: 1.6;
}

.footer-col h3 {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}

.footer-col a {
  display: block;
  font-size: 14.5px;
  color: var(--text-muted);
  padding: 6px 0;
  transition: color 0.2s ease;
}

.footer-col a:hover { color: var(--primary); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 13.5px;
  color: var(--text-faint);
}

/* ------------------------------ Anchors & reveal ------------------------------ */
section[id] { scroll-margin-top: calc(var(--header-h) + 18px); }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }

  [data-reveal] {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
    transition-delay: var(--reveal-delay, 0s);
  }

  [data-reveal].is-visible {
    opacity: 1;
    transform: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
  .faq-a { transition: none; }
  .tab-panel { transition: none; }
  .mobile-nav { transition: none; }
}
