/* ===================================================================
   Move.co.il homepage — DocuMedic-inspired light design
   Lavender-gray bg, dark navy contrast, mint teal accent
   =================================================================== */

:root {
  /* Brand */
  --color-navy:        #1a1c3f;
  --color-navy-deep:   #0f1130;
  --color-teal:        #2cd4b1;
  --color-teal-hover:  #1fb497;
  --color-teal-text:   #0f766e;  /* WCAG AA on white (6.4:1) — use for text */
  --color-teal-soft:   #d6f5eb;
  --color-blue:        #1d4ed8;  /* WCAG AA: 5.5 on lavender, 6.7 on white */
  --color-blue-hover:  #1e3a8a;  /* darker for hover state */
  --color-blue-soft:   #dbeafe;

  /* Surfaces */
  --color-bg:          #e6e9f0;   /* page background — lavender gray */
  --color-bg-card:     #f0f3f8;   /* soft card on lavender */
  --color-white:       #ffffff;
  --color-bg-dark:     #1a1c3f;   /* dark sections */

  /* Text */
  --color-text:        #1a1c3f;
  --color-text-muted:  #5b5f78;
  --color-text-soft:   #5b5f78;  /* WCAG AA — bumped from #646780; lavender ~5.4, white ~6.6 */
  --color-text-on-dark:#ffffff;
  --color-text-on-dark-muted: #b6bbd0;

  /* Borders */
  --color-border:      #d4d8e3;
  --color-border-soft: #e1e4ed;
  --color-border-dark: #2c2e55;

  /* Shape */
  --radius-sm: 0.5rem;
  --radius-md: 0.75rem;
  --radius-lg: 1rem;
  --radius-xl: 1.5rem;
  --radius-2xl: 2rem;
  --radius-pill: 999px;

  /* Layout */
  --container: 1240px;
  --section-pad-y: 6rem;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(26, 28, 63, 0.04);
  --shadow-md: 0 4px 14px rgba(26, 28, 63, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 28, 63, 0.08);
  --shadow-card: 0 8px 24px rgba(26, 28, 63, 0.07);
}

* { box-sizing: border-box; }

/* Global focus visibility — keyboard users see a clear ring on every interactive element */
:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 3px;
  border-radius: 3px;
}
.btn:focus-visible,
.ai-tab:focus-visible {
  outline-offset: 4px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: 'Heebo', -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  background: var(--color-bg);
  color: var(--color-text);
  direction: rtl;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; padding: 0; margin: 0; }
h1, h2, h3, h4, h5 { margin: 0; line-height: 1.2; font-weight: 700; }
p { margin: 0; }

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ===================================================================
   Buttons
   =================================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.875rem 1.75rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  white-space: nowrap;
  cursor: pointer;
}

.btn-primary {
  background: var(--color-blue);
  color: var(--color-text-on-dark);
}
.btn-primary:hover {
  background: var(--color-blue-hover);
  transform: translateY(-1px);
}

.btn-teal {
  background: var(--color-teal);
  color: var(--color-navy);
}
.btn-teal:hover {
  background: var(--color-teal-hover);
  color: var(--color-text-on-dark);
}

.btn-ghost {
  background: transparent;
  color: var(--color-text-on-dark);
  border: 1.5px solid rgba(255,255,255,0.5);
}
.btn-ghost:hover {
  background: rgba(255,255,255,0.08);
  border-color: var(--color-text-on-dark);
}

.btn-light {
  background: var(--color-white);
  color: var(--color-navy);
}
.btn-light:hover {
  background: #f5f7fb;
}

.btn .icon {
  width: 16px;
  height: 16px;
}

/* ===================================================================
   Header — floating pill nav
   =================================================================== */

.site-header {
  position: sticky;
  top: 1rem;
  z-index: 50;
  padding: 0 1rem;
}

.nav-pill {
  max-width: var(--container);
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 0.625rem 0.625rem 0.625rem 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  box-shadow: var(--shadow-md);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--color-navy);
}
.nav-brand img { height: 32px; width: auto; }
.brand-wordmark {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--color-navy);
  white-space: nowrap;
  line-height: 1;
}
.brand-version {
  color: var(--color-teal-text);
  font-weight: 800;
  margin-inline-start: 0.15rem;
}
@media (max-width: 760px) {
  .brand-wordmark { display: none; }
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--color-text);
}
.nav-links a {
  transition: color 0.2s;
}
.nav-links a:hover {
  color: var(--color-teal-text);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.625rem;
}

.role-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-bg-card);
  padding: 0.625rem 1rem;
  border-radius: var(--radius-md);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
}
.role-pill .chev { width: 14px; height: 14px; opacity: 0.6; }

@media (max-width: 900px) {
  .nav-links { display: none; }
  .role-pill { display: none; }
}

/* ===================================================================
   Hero — dark navy with UI screenshot inside
   =================================================================== */

.hero {
  margin: 1.5rem 1rem 0;
  background: var(--color-navy);
  background-image:
    radial-gradient(ellipse at 80% -10%, rgba(44, 212, 177, 0.15), transparent 50%),
    radial-gradient(ellipse at 0% 80%, rgba(44, 212, 177, 0.08), transparent 60%);
  border-radius: var(--radius-2xl);
  padding: 5rem 2rem 4rem;
  color: var(--color-text-on-dark);
  position: relative;
  overflow: hidden;
}

.hero-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-teal);
  font-weight: 500;
  margin-bottom: 1.25rem;
}
.hero-eyebrow::before {
  content: "+";
  display: inline-block;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(44, 212, 177, 0.15);
  color: var(--color-teal);
  text-align: center;
  line-height: 22px;
  font-weight: 700;
}

.hero h1 {
  font-size: clamp(2.25rem, 4vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  line-height: 1.1;
}
.hero h1 .accent {
  color: var(--color-teal);
}

.hero p.lead {
  font-size: 1.0625rem;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 2rem;
  max-width: 540px;
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2rem;
}
.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: var(--radius-pill);
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.12);
  font-size: 0.875rem;
  color: var(--color-text-on-dark);
}
.hero-pill .icon {
  width: 14px; height: 14px;
  color: var(--color-teal);
}

.hero-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1.25rem;
  margin-bottom: 1.75rem;
}
.hero-secondary-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: gap 0.2s ease, color 0.2s ease;
}
.hero-secondary-link:hover {
  color: var(--color-navy);
  gap: 0.7rem;
}
.hero-secondary-link svg {
  width: 16px;
  height: 16px;
}

.hero-segmented {
  display: inline-flex;
  background: var(--color-white);
  padding: 0.375rem;
  border-radius: var(--radius-pill);
  gap: 0.25rem;
  box-shadow: var(--shadow-md);
}
.hero-segmented > span {
  padding: 0.625rem 1.25rem;
  border-radius: var(--radius-pill);
  font-weight: 500;
  font-size: 0.9rem;
  color: var(--color-text);
  transition: all 0.2s;
}
.hero-segmented > span.active {
  background: var(--color-teal);
  color: var(--color-navy);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  perspective: 1800px;
}
.hero-visual img {
  width: 100%;
  border-radius: var(--radius-md);
  display: block;
}

@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero { padding: 4rem 1.5rem 3rem; margin: 1rem 0.5rem 0; }
}

/* ===================================================================
   Section primitives
   =================================================================== */

.section {
  padding: var(--section-pad-y) 0;
}
.section.dark {
  background: var(--color-navy);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-2xl);
  margin: 0 1rem;
}
.section.tight { padding: 4rem 0; }
.section--white { background: var(--color-white); }

.section-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}
.section-head h2 {
  font-size: clamp(1.875rem, 3.2vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin-bottom: 1rem;
}
.section-head .accent { color: var(--color-teal-text); }
.section.dark .section-head h2 { color: var(--color-text-on-dark); }
.section-head p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
  line-height: 1.6;
}
.section.dark .section-head p { color: var(--color-text-on-dark-muted); }

.eyebrow-tag {
  display: inline-block;
  background: var(--color-navy);
  color: var(--color-text-on-dark);
  padding: 0.4rem 1rem;
  border-radius: var(--radius-pill);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1rem;
}

/* ===================================================================
   Pillar showcase — 3 tall cards with image on top
   =================================================================== */

.pillars-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.25rem;
}

.pillar-card {
  --accent: #2cd4b1;
  --accent-soft: rgba(44, 212, 177, 0.08);
  --ribbon: var(--accent);
  position: relative;
  background: var(--color-white);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(20, 30, 60, 0.06);
  border: 1px solid rgba(20, 30, 60, 0.04);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  padding: 0.875rem 0.875rem 0;
}
.pillar-card::before {
  content: "";
  position: absolute;
  top: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  height: 4px;
  background: var(--ribbon);
  z-index: 2;
}
.pillar-card[data-pillar="clients"] {
  --accent: #2cd4b1;
  --accent-soft: rgba(44, 212, 177, 0.08);
}
.pillar-card[data-pillar="finance"] {
  --accent: #6366f1;
  --accent-soft: rgba(99, 102, 241, 0.08);
}
.pillar-card[data-pillar="hr"] {
  --accent: #f59e0b;
  --accent-soft: rgba(245, 158, 11, 0.08);
}
.pillar-card[data-pillar="ai"] {
  --accent: #ec4899;
  --accent-soft: rgba(236, 72, 153, 0.08);
  --ribbon: linear-gradient(90deg, #2cd4b1, #6366f1, #ec4899);
}
.pillar-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 36px rgba(20, 30, 60, 0.10);
}

.pillar-card-image {
  height: 180px;
  border-radius: 14px;
  background: var(--accent-soft);
  display: grid;
  place-items: center;
  position: relative;
  overflow: hidden;
}
.pillar-icon {
  width: 88px;
  height: 88px;
  color: var(--accent);
  position: relative;
  z-index: 1;
}

.pillar-card-body {
  padding: 1.5rem 1rem 1.25rem;
  text-align: center;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.pillar-card-body h3 {
  font-size: 1.25rem;
  margin-bottom: 1rem;
  color: var(--color-navy);
  font-weight: 700;
}
.pillar-card-body p {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}
.pillar-card-arrow {
  margin-top: auto;
  align-self: flex-start;
  color: var(--accent);
  width: 22px;
  height: 22px;
  opacity: 0.7;
  transition: opacity 0.2s ease, transform 0.2s ease;
}
.pillar-card:hover .pillar-card-arrow {
  opacity: 1;
  transform: translateX(4px);
}

/* Bullet list inside the pillar card body */
.pillar-card-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
  align-self: stretch;
  text-align: start;
}
.pillar-card-list li {
  position: relative;
  padding-inline-start: 0.95rem;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-text-muted);
  margin-bottom: 0.6rem;
}
.pillar-card-list li:last-child { margin-bottom: 0; }
.pillar-card-list li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--accent);
}
.pillar-card-list li strong {
  color: var(--color-navy);
  font-weight: 700;
  margin-inline-end: 0.15rem;
}

@media (max-width: 1100px) {
  .pillars-row { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .pillars-row { grid-template-columns: 1fr; }
}

/* ===================================================================
   Pillar detail — alternating 2-column layout with mockup card
   =================================================================== */

.pillar-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  column-gap: 4rem;
  row-gap: 1.5rem;
  align-items: start;
  margin-bottom: 5rem;
}
.pillar-detail:last-child { margin-bottom: 0; }

/* Header (eyebrow + h2 + lead) sits in row 1, right column.
   Mock and cards sit in row 2 — mock left, cards right.
   "More" link sits in row 3, right column.
   Mock is shifted down by tongue-tab height (38px) so the tab's top
   aligns with the first card's top. align-self: stretch makes the mock
   fill the row, so its bottom aligns with the last card's bottom. */
.pillar-detail .pillar-text-header { grid-column: 1; grid-row: 1; }
.pillar-detail .pillar-mock         { grid-column: 2; grid-row: 2; align-self: stretch; margin-top: 38px; }
.pillar-detail .pillar-components   { grid-column: 1; grid-row: 2; align-self: stretch; }
.pillar-detail .pillar-detail-more  { grid-column: 1; grid-row: 3; }

.pillar-text-header .eyebrow-tag {
  background: var(--color-teal);
  color: var(--color-navy);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.125rem;
  margin-bottom: 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.pillar-text-header .eyebrow-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-navy);
  flex-shrink: 0;
}
.pillar-text-header h2 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  letter-spacing: -0.018em;
  line-height: 1.1;
  color: var(--color-navy);
  margin-bottom: 1.25rem;
}
.pillar-text-header h2 .accent {
  color: var(--color-teal-text);
}
.pillar-text-header p.lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  margin-bottom: 0;
  line-height: 1.65;
}
.pillar-detail-more {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-blue);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  margin-top: 0.25rem;
  margin-bottom: 1.75rem;
  transition: gap 0.2s ease, color 0.2s ease;
}
.pillar-detail-more:hover {
  color: var(--color-blue-hover);
  gap: 0.7rem;
}
.pillar-detail-more svg {
  width: 18px;
  height: 18px;
}

.pillar-components {
  display: grid;
  gap: 0.875rem;
}
.pillar-component {
  display: flex;
  align-items: flex-start;
  gap: 0.875rem;
  background: var(--color-white);
  padding: 1rem 1.125rem;
  border-radius: var(--radius-md);
  border: 1px solid var(--color-border-soft);
  transition: transform 0.2s, box-shadow 0.2s;
}
.pillar-component:hover {
  transform: translateX(-4px);
  box-shadow: var(--shadow-sm);
}
.pillar-component .ico-wrap {
  width: 40px; height: 40px;
  border-radius: 0.625rem;
  background: var(--color-teal-soft);
  color: var(--color-teal-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.pillar-component .ico-wrap svg { width: 20px; height: 20px; }
.pillar-component h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}
.pillar-component p {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.5;
}

/* Mock card — soft outer with content inside */
.pillar-mock {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: 1.75rem;
  box-shadow: var(--shadow-card);
  position: relative;
}
.pillar-mock-inner {
  background: var(--color-white);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.pillar-mock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.875rem;
  margin-bottom: 0.875rem;
  border-bottom: 1px solid var(--color-border-soft);
  font-size: 0.875rem;
}
.pillar-mock-header .title {
  font-weight: 600;
  color: var(--color-navy);
}
.pillar-mock-header .badge {
  background: var(--color-teal-soft);
  color: var(--color-teal-text);
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 600;
}

/* Mock content: simulated dashboards */
.mock-table {
  width: 100%;
  font-size: 0.8125rem;
  color: var(--color-text);
  border-collapse: collapse;
}
.mock-table th, .mock-table td {
  padding: 0.625rem 0.5rem;
  text-align: start;
  border-bottom: 1px solid var(--color-border-soft);
}
.mock-table th {
  font-weight: 500;
  color: var(--color-text-soft);
  font-size: 0.75rem;
}
.mock-table tr:last-child td { border-bottom: none; }
.mock-pill-btn {
  background: var(--color-teal);
  color: var(--color-navy);
  font-weight: 600;
  font-size: 0.75rem;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-md);
  display: inline-block;
}
.mock-avatar {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.mock-avatar .av {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  object-fit: cover;
  display: inline-block;
  flex-shrink: 0;
  background: #e5e7eb;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(20, 30, 60, 0.06);
}

.mock-tag-green { color: var(--color-teal-text); font-weight: 600; }
.mock-tag-orange { color: #b45309; font-weight: 600; }  /* WCAG AA on white (4.97) */
.mock-tag-amber { color: #b45309; font-weight: 600; }   /* WCAG AA on white */

/* Funnel-stage pill — colored by lead position in the pipeline */
.mock-stage-pill {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}
.mock-stage-pill[data-stage="early"] { background: rgba(99, 102, 241, 0.12); color: #4338ca; }
.mock-stage-pill[data-stage="mid"]   { background: rgba(245, 158, 11, 0.14); color: #b45309; }
.mock-stage-pill[data-stage="late"]  { background: rgba(44, 212, 177, 0.18); color: #0f766e; }

.mock-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  margin-top: 0.875rem;
}
.mock-stat-tile {
  background: var(--color-white);
  padding: 1rem;
  border-radius: var(--radius-md);
  text-align: center;
  box-shadow: var(--shadow-sm);
}
.mock-stat-tile .num {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-teal-text);
  line-height: 1;
}
.mock-stat-tile .lbl {
  font-size: 0.75rem;
  color: var(--color-text-muted);
  margin-top: 0.375rem;
}

.mock-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  font-size: 0.8125rem;
}
.mock-row + .mock-row { border-top: 1px solid var(--color-border-soft); }

.mock-bar {
  height: 6px;
  background: var(--color-border-soft);
  border-radius: 999px;
  overflow: hidden;
  margin: 0.375rem 0;
}
.mock-bar > span {
  display: block;
  height: 100%;
  background: var(--color-teal);
  border-radius: 999px;
}

@media (max-width: 900px) {
  .pillar-detail {
    grid-template-columns: 1fr;
    column-gap: 0;
    row-gap: 1.5rem;
  }
  .pillar-detail .pillar-text-header,
  .pillar-detail .pillar-mock,
  .pillar-detail .pillar-components,
  .pillar-detail .pillar-detail-more {
    grid-column: 1;
  }
  .pillar-detail .pillar-text-header { grid-row: 1; }
  .pillar-detail .pillar-components  { grid-row: 2; }
  .pillar-detail .pillar-mock        { grid-row: 3; }
  .pillar-detail .pillar-detail-more { grid-row: 4; }
}

/* ===================================================================
   AI demo — reskinned (mounted inside a soft card)
   =================================================================== */

.ai-demo {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  max-width: 880px;
  margin: 0 auto;
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-soft);
}

.ai-demo-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--color-border-soft);
  margin-bottom: 1.5rem;
}
.ai-demo-header .dot {
  width: 12px; height: 12px;
  border-radius: 999px;
  background: var(--color-teal);
}
.ai-demo-header h3 {
  font-size: 1.125rem;
  color: var(--color-navy);
}
.ai-demo-header .badge {
  margin-right: auto;
  background: var(--color-teal-soft);
  color: var(--color-teal-text);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.625rem;
  border-radius: var(--radius-pill);
}

.ai-msg-user {
  background: var(--color-bg-card);
  padding: 0.875rem 1.125rem;
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  color: var(--color-text);
  margin-bottom: 1rem;
  border-inline-end: 3px solid var(--color-teal);
}
.ai-msg-thinking {
  font-size: 0.875rem;
  color: var(--color-text-soft);
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.ai-msg-thinking::before {
  content: "";
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--color-teal);
  animation: pulse 1.5s infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}
.ai-msg-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}
.ai-msg-actions span {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  background: var(--color-teal-soft);
  color: var(--color-teal-text);
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: var(--radius-pill);
}
.ai-msg-actions svg { width: 12px; height: 12px; }

.ai-msg-response {
  background: linear-gradient(135deg, rgba(44, 212, 177, 0.06), rgba(26, 28, 63, 0.02));
  border: 1px solid rgba(44, 212, 177, 0.15);
  padding: 1.25rem;
  border-radius: var(--radius-md);
}
.response-title {
  font-weight: 700;
  font-size: 1rem;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
}
.response-details {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  margin-bottom: 1rem;
}

.ai-msg-card {
  background: var(--color-white);
  border-radius: var(--radius-md);
  padding: 1rem 1.125rem;
  border: 1px solid var(--color-border-soft);
  margin-top: 1rem;
}
.ai-msg-card h3 {
  font-size: 0.95rem;
  color: var(--color-navy);
  margin-bottom: 0.75rem;
}
.ai-msg-card ul { display: grid; gap: 0.5rem; }
.ai-msg-card li {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  color: var(--color-text);
}
.ai-msg-card .lbl {
  color: var(--color-text-muted);
}

.ai-demo-dots {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.5rem;
}
.ai-demo-dots button {
  width: 8px; height: 8px;
  border-radius: 999px;
  background: var(--color-border);
  transition: all 0.2s;
  padding: 0;
}
.ai-demo-dots button.active {
  background: var(--color-teal);
  width: 24px;
}

/* ===================================================================
   Pricing
   =================================================================== */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
  max-width: 1100px;
  margin: 0 auto;
}
.pricing-grid.pricing-grid-4 {
  grid-template-columns: repeat(4, 1fr);
  max-width: 1300px;
}
@media (max-width: 1100px) {
  .pricing-grid.pricing-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

.price-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 2rem 1.75rem;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--color-border-soft);
}
.price-card.featured {
  background: var(--color-navy);
  color: var(--color-text-on-dark);
  border: none;
  transform: scale(1.03);
}
.price-card.featured h3 { color: var(--color-text-on-dark); }
.price-card.featured .price-amount { color: var(--color-teal); }
.price-card.featured .price-note { color: var(--color-text-on-dark-muted); }
.price-card.featured .price-tagline { color: var(--color-text-on-dark-muted); }
.price-card.featured .price-features li { color: var(--color-text-on-dark); }
.price-card.featured .price-features svg { color: var(--color-teal); }

.featured-badge {
  position: absolute;
  top: -12px;
  inset-inline-end: 1.5rem;
  background: var(--color-teal);
  color: var(--color-navy);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.375rem 0.875rem;
  border-radius: var(--radius-pill);
}

.price-card h3 {
  font-size: 1.25rem;
  color: var(--color-navy);
  margin-bottom: 0.25rem;
}
.price-tagline {
  font-size: 0.875rem;
  color: var(--color-text-muted);
  margin-bottom: 1.25rem;
  min-height: 2.5em;
}
.price-amount {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--color-navy);
  line-height: 1;
}
.price-amount .currency { font-size: 1.25rem; font-weight: 600; }
.price-amount .period { font-size: 0.875rem; font-weight: 500; color: var(--color-text-muted); margin-right: 0.375rem; }
.price-card.featured .price-amount .period { color: var(--color-text-on-dark-muted); }

.price-note {
  font-size: 0.8125rem;
  color: var(--color-text-muted);
  margin: 0.75rem 0 1.5rem;
}

.price-features {
  display: grid;
  gap: 0.625rem;
  margin-bottom: 1.75rem;
  font-size: 0.9rem;
}
.price-features li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--color-text);
}
.price-features svg {
  width: 16px; height: 16px;
  color: var(--color-teal-text);
  flex-shrink: 0;
}

.price-card .btn {
  width: 100%;
  margin-top: auto;
}

@media (max-width: 900px) {
  .pricing-grid { grid-template-columns: 1fr; }
  .price-card.featured { transform: none; }
}

/* ===================================================================
   Final CTA — dark navy with teal accent
   =================================================================== */

.final-cta {
  background: var(--color-navy);
  color: var(--color-text-on-dark);
  border-radius: var(--radius-2xl);
  width: calc(100% - 3rem);
  max-width: calc(var(--container) - 3rem);
  margin: 0 auto;
  padding: 5rem 2rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.final-cta::before {
  content: "";
  position: absolute;
  top: -100px; right: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(44, 212, 177, 0.18), transparent 70%);
  pointer-events: none;
}
.final-cta::after {
  content: "";
  position: absolute;
  bottom: -100px; left: -100px;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(44, 212, 177, 0.12), transparent 70%);
  pointer-events: none;
}
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 {
  font-size: clamp(1.875rem, 3vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 1rem;
}
.final-cta h2 .accent { color: var(--color-teal); /* on dark navy bg — passes 8.8 */ }
.final-cta p {
  font-size: 1.0625rem;
  color: var(--color-text-on-dark-muted);
  margin-bottom: 2rem;
  max-width: 580px;
  margin-left: auto;
  margin-right: auto;
}
.final-cta-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ===================================================================
   Footer
   =================================================================== */

.site-footer {
  background: var(--color-bg);
  padding: 4rem 0 2rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 3rem;
  margin-bottom: 3rem;
}
.footer-brand p {
  color: var(--color-text-muted);
  margin-top: 1rem;
  font-size: 0.9rem;
  line-height: 1.6;
}
.footer-col h3 {
  font-size: 0.9375rem;
  color: var(--color-navy);
  margin-bottom: 1rem;
}
.footer-col ul { display: grid; gap: 0.625rem; }
.footer-col a {
  color: var(--color-text-muted);
  font-size: 0.9rem;
  transition: color 0.2s;
}
.footer-col a:hover { color: var(--color-blue); }

.footer-bottom {
  border-top: 1px solid var(--color-border);
  padding-top: 1.5rem;
  text-align: center;
  color: var(--color-text-soft);
  font-size: 0.875rem;
}

@media (max-width: 800px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 2rem; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ===================================================================
   Dashboard mockup — recreated in HTML/CSS
   Palette: dark navy bg, teal/green accents, amber (no orange)
   =================================================================== */

.dashboard-mock {
  --d-bg:       #0d1027;
  --d-card:     #161a2f;
  --d-card-2:   #1d2240;
  --d-border:   #252a45;
  --d-text:     #e8ecf5;
  --d-muted:    #8a8fa8;
  --d-dim:      #565b78;
  --d-teal:     #2cd4b1;
  --d-green:    #4ade80;
  --d-amber:    #facc15;
  --d-amber-dim:#a18217;
  --d-blue:     #60a5fa;
  --d-purple:   #a78bfa;
  --d-red:      #f87171;
  --d-gold:     #d4af37;

  background: var(--d-bg);
  border: 1px solid var(--d-border);
  border-radius: 12px;
  overflow: hidden;
  font-size: 10.5px;
  color: var(--d-text);
  box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 12px 30px rgba(0,0,0,0.35);
  transform: perspective(2400px) rotateY(-10deg) rotateX(2deg) rotateZ(1.5deg) scale(0.88);
  transform-origin: center center;
  direction: rtl;
  line-height: 1.35;
}

/* Browser frame */
.d-frame {
  height: 28px;
  background: #0a0d20;
  border-bottom: 1px solid var(--d-border);
  display: flex;
  align-items: center;
  padding: 0 10px;
  position: relative;
}
.d-frame .dots {
  display: flex;
  gap: 5px;
  position: absolute;
  left: 10px;
}
.d-frame .dots span {
  width: 9px; height: 9px;
  border-radius: 999px;
  display: inline-block;
}
.d-frame .dots span:nth-child(1) { background: #ff5f57; }
.d-frame .dots span:nth-child(2) { background: #febc2e; }
.d-frame .dots span:nth-child(3) { background: #28c840; }
.d-frame .url {
  margin: 0 auto;
  font-size: 10px;
  color: var(--d-muted);
}

/* App body grid: sidebar (right) + main (left in RTL).
   With direction: rtl, the FIRST grid column appears on the right. */
.d-app {
  display: grid;
  grid-template-columns: 118px 1fr;
}

/* Sidebar (right side in RTL) */
.d-side {
  background: #0a0d20;
  border-left: 1px solid var(--d-border);
  padding: 10px 8px;
  font-size: 10px;
}
.d-side .brand {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 4px 10px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--d-border);
}
.d-side .brand-name { font-weight: 700; color: var(--d-text); font-size: 11px; }
.d-side .brand-badge {
  width: 22px; height: 22px;
  background: linear-gradient(135deg, var(--d-teal), #1fb497);
  color: var(--d-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 5px;
  font-weight: 800;
  font-size: 11px;
}
.d-side ul { display: grid; gap: 1px; margin-bottom: 8px; }
.d-side li > a, .d-side li > span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  padding: 4px 6px;
  border-radius: 5px;
  color: var(--d-muted);
  transition: background 0.15s, color 0.15s;
}
.d-side li > a:hover, .d-side li > span:hover { background: rgba(255,255,255,0.03); color: var(--d-text); }
.d-side li > a.active, .d-side li > span.active {
  background: rgba(59, 130, 246, 0.18);
  color: #93c5fd;
}
.d-side li > a .ico, .d-side li > span .ico {
  width: 12px; height: 12px;
  flex-shrink: 0;
  opacity: 0.85;
}
.d-side li > a .label, .d-side li > span .label {
  flex: 1;
  font-size: 10.5px;
}
.d-side li > a .count, .d-side li > span .count {
  font-size: 9.5px;
  color: var(--d-dim);
  background: rgba(255,255,255,0.04);
  padding: 1px 5px;
  border-radius: 4px;
}
.d-side li > a.active .count, .d-side li > span.active .count {
  color: #93c5fd;
  background: rgba(59, 130, 246, 0.2);
}
.d-side .group-title {
  padding: 6px 6px 3px;
  font-size: 8.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--d-dim);
  font-weight: 600;
}
.d-side li > a .label, .d-side li > span .label { font-size: 10px; flex: 1; }
.d-side li > a .ico, .d-side li > span .ico { width: 11px; height: 11px; }

/* Main content */
.d-main { padding: 10px 11px 12px; overflow: hidden; }

.d-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 10px;
}
.d-greet-h1 {
  font-size: 13px;
  font-weight: 700;
  color: var(--d-text);
  margin-bottom: 1px;
}
.d-greet .date {
  font-size: 10px;
  color: var(--d-muted);
}
.d-actions {
  display: flex;
  gap: 6px;
}
.d-btn {
  font-size: 10px;
  padding: 5px 9px;
  border-radius: 5px;
  background: rgba(255,255,255,0.04);
  color: var(--d-text);
  border: 1px solid var(--d-border);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.d-btn.primary {
  background: var(--d-teal);
  color: var(--d-bg);
  border-color: var(--d-teal);
  font-weight: 600;
}

/* Stat cards row */
.d-stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 6px;
  margin-bottom: 7px;
}
.d-stat {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: 7px;
  padding: 7px 8px;
}
.d-stat .lbl {
  font-size: 9px;
  color: var(--d-muted);
  margin-bottom: 3px;
}
.d-stat .val {
  font-size: 15px;
  font-weight: 800;
  color: var(--d-text);
  line-height: 1;
}
.d-stat .sub {
  font-size: 8.5px;
  margin-top: 2px;
  color: var(--d-dim);
}
.d-stat .sub.up { color: var(--d-green); }
.d-stat .sub.urgent { color: var(--d-red); }
.d-stat .spark {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
  margin-top: 5px;
}
.d-stat .spark span {
  flex: 1;
  background: var(--d-dim);
  opacity: 0.35;
  border-radius: 1px;
  min-height: 3px;
}
.d-stat .spark span.lit { opacity: 1; }
.d-stat.amber .spark span.lit { background: var(--d-amber); }
.d-stat.blue .spark span.lit { background: var(--d-blue); }
.d-stat.green .spark span.lit { background: var(--d-teal); }

/* Row 2: pipeline + donut + line chart */
.d-row {
  display: grid;
  gap: 6px;
  margin-bottom: 6px;
}
.d-row:last-child { margin-bottom: 0; }
.d-row.r2 { grid-template-columns: 1.1fr 1fr 1.4fr; }
.d-row.r3 { grid-template-columns: 1fr 1fr 1fr; }

.d-card {
  background: var(--d-card);
  border: 1px solid var(--d-border);
  border-radius: 7px;
  padding: 8px 9px;
}
.d-card-h {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.d-card-h .t {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--d-text);
}
.d-card-h .more {
  font-size: 9px;
  color: var(--d-muted);
}

/* Pipeline */
.d-pipe {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 5px;
  margin-bottom: 10px;
}
.d-pipe .stage {
  background: var(--d-card-2);
  border: 1px solid var(--d-border);
  border-radius: 5px;
  padding: 6px;
  text-align: center;
}
.d-pipe .stage.hl {
  border-color: var(--d-teal);
  background: rgba(44, 212, 177, 0.08);
}
.d-pipe .stage .v {
  font-size: 11px;
  font-weight: 700;
  color: var(--d-text);
}
.d-pipe .stage.hl .v { color: var(--d-teal); }
.d-pipe .stage .n {
  font-size: 8.5px;
  color: var(--d-muted);
  margin-top: 1px;
}
.d-pipe .stage .c {
  font-size: 8.5px;
  color: var(--d-dim);
}
.d-progress-row {
  font-size: 9.5px;
  color: var(--d-muted);
  display: flex;
  justify-content: space-between;
  margin-bottom: 4px;
}
.d-progress-row .pct { color: var(--d-teal); font-weight: 600; }
.d-progress {
  height: 5px;
  background: var(--d-border);
  border-radius: 99px;
  overflow: hidden;
}
.d-progress > span {
  display: block;
  height: 100%;
  background: var(--d-teal);
  border-radius: 99px;
}

/* Donut */
.d-donut-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}
.d-donut {
  width: 72px; height: 72px;
  flex-shrink: 0;
  position: relative;
  border-radius: 999px;
  background:
    conic-gradient(
      var(--d-teal)   0 48%,
      var(--d-amber)  48% 73%,
      var(--d-purple) 73% 89%,
      var(--d-blue)   89% 100%
    );
}
.d-donut::after {
  content: "";
  position: absolute;
  inset: 14px;
  border-radius: 999px;
  background: var(--d-card);
}
.d-donut .center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 1;
}
.d-donut .center .v {
  font-size: 13px;
  font-weight: 700;
  color: var(--d-text);
}
.d-donut .center .l {
  font-size: 8.5px;
  color: var(--d-muted);
}
.d-legend {
  display: grid;
  gap: 5px;
  font-size: 10px;
}
.d-legend > div {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--d-muted);
}
.d-legend .pct { color: var(--d-text); font-weight: 600; min-width: 30px; }
.d-legend .sw {
  width: 8px; height: 8px;
  border-radius: 2px;
  display: inline-block;
}

/* Line chart */
.d-chart {
  height: 88px;
  position: relative;
}
.d-chart svg { width: 100%; height: 100%; display: block; }
.d-chart .axis {
  display: flex;
  justify-content: space-between;
  font-size: 8.5px;
  color: var(--d-dim);
  padding: 4px 4px 0;
}

/* Customer list */
.d-customers .row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 4px 0;
  border-top: 1px solid var(--d-border);
  font-size: 10px;
}
.d-customers .row:first-of-type { border-top: none; }
.d-customers .av {
  width: 20px; height: 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #2c2f55, #4a4f7a);
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--d-text);
}
.d-customers .name { flex: 1; color: var(--d-text); font-size: 10.5px; }
.d-customers .tag {
  font-size: 8.5px;
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 600;
}
.d-customers .tag.act { background: rgba(44, 212, 177, 0.15); color: var(--d-teal); }
.d-customers .tag.vip { background: rgba(212, 175, 55, 0.18); color: var(--d-gold); }
.d-customers .tag.new { background: rgba(96, 165, 250, 0.18); color: var(--d-blue); }
.d-customers .amt { font-weight: 700; color: var(--d-text); font-size: 10.5px; }

/* Tasks */
.d-tasks .item {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 3px 0;
  font-size: 10px;
  color: var(--d-text);
}
.d-tasks .item .chk {
  width: 13px; height: 13px;
  border: 1.5px solid var(--d-dim);
  border-radius: 3px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.d-tasks .item.done .chk {
  background: var(--d-teal);
  border-color: var(--d-teal);
  color: var(--d-bg);
}
.d-tasks .item.done .chk::after {
  content: "✓";
  font-size: 10px;
  font-weight: 800;
}
.d-tasks .item.done .lbl {
  text-decoration: line-through;
  color: var(--d-muted);
}
.d-tasks .item .lbl { flex: 1; }
.d-tasks .item .pill {
  font-size: 8.5px;
  padding: 1px 6px;
  border-radius: 99px;
  font-weight: 600;
}
.d-tasks .item .pill.urg { background: rgba(248, 113, 113, 0.18); color: var(--d-red); }
.d-tasks .item .pill.cancel { background: rgba(138, 143, 168, 0.15); color: var(--d-muted); }
.d-tasks-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 7px;
  padding-top: 7px;
  border-top: 1px solid var(--d-border);
  font-size: 9.5px;
  color: var(--d-muted);
}

/* Activity */
.d-activity .row {
  display: flex;
  gap: 7px;
  padding: 4px 0;
  font-size: 10px;
  align-items: flex-start;
  border-top: 1px solid var(--d-border);
}
.d-activity .row:first-of-type { border-top: none; }
.d-activity .dot {
  width: 7px; height: 7px;
  border-radius: 999px;
  background: var(--d-teal);
  margin-top: 5px;
  flex-shrink: 0;
}
.d-activity .dot.b { background: var(--d-blue); }
.d-activity .dot.p { background: var(--d-purple); }
.d-activity .dot.g { background: var(--d-gold); }
.d-activity .body { flex: 1; min-width: 0; }
.d-activity .body .t1 {
  color: var(--d-text);
  font-size: 10px;
  line-height: 1.35;
}
.d-activity .body .t2 {
  color: var(--d-dim);
  font-size: 9px;
  margin-top: 1px;
}
.d-activity .body .amt {
  color: var(--d-teal);
  font-weight: 600;
}

/* Disable tilt on mobile */
@media (max-width: 960px) {
  .dashboard-mock {
    transform: none;
    font-size: 10px;
  }
  .d-app { grid-template-columns: 1fr 100px; min-height: 480px; }
  .d-stats { grid-template-columns: repeat(3, 1fr); }
  .d-row.r2, .d-row.r3 { grid-template-columns: 1fr; }
}

/* ==========================================================
   Scroll reveal (documedic-style fade-up)
   ========================================================== */

.reveal {
  opacity: 0.001;
  transform: translateY(50px);
  will-change: transform, opacity;
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}

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

/* Stagger variants — apply to a parent grid; children stagger automatically */
.reveal-stagger > * {
  opacity: 0.001;
  transform: translateY(50px);
  will-change: transform, opacity;
  transition:
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1),
    transform 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.reveal-stagger.is-visible > *:nth-child(1) { transition-delay: 0.00s; }
.reveal-stagger.is-visible > *:nth-child(2) { transition-delay: 0.10s; }
.reveal-stagger.is-visible > *:nth-child(3) { transition-delay: 0.20s; }
.reveal-stagger.is-visible > *:nth-child(4) { transition-delay: 0.30s; }
.reveal-stagger.is-visible > *:nth-child(5) { transition-delay: 0.40s; }
.reveal-stagger.is-visible > *:nth-child(6) { transition-delay: 0.50s; }
.reveal-stagger.is-visible > * {
  opacity: 1;
  transform: none;
}

/* Smaller travel for compact items */
.reveal-sm {
  transform: translateY(24px);
}

/* Respect users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
  .reveal,
  .reveal-stagger > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================
   Tongue-tab cards (documedic-style folder tabs)
   ========================================================== */

/* Use this on any card you want to host a folder tab.
   It establishes the positioning context and prevents clipping.
   Each card sets --tab-bg to match its own background color. */
.has-tongue {
  position: relative;
  overflow: visible;
}

/* Per-card tab color overrides */
.ai-demo.has-tongue          { --tab-bg: var(--color-white); }
.pillar-mock.has-tongue      { --tab-bg: var(--color-bg-card); }
.faq-card-outer.has-tongue   { --tab-bg: #f9fbfd; }

/* Folder tab — same color as the card, flush base, concave flares */
.tongue-tab {
  position: absolute;
  top: 0;
  inset-inline-end: 28px;
  transform: translateY(-100%);
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 26px;
  background: var(--tab-bg, var(--color-white));
  color: var(--color-navy);
  border-top-left-radius: 14px;
  border-top-right-radius: 14px;
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  z-index: 3;
  white-space: nowrap;
}

.tongue-tab .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
  box-shadow: 0 0 0 4px rgba(44, 212, 177, 0.2);
}

/* Concave fillets at the base — flare the tab outward into the card edge */
.tongue-tab::before,
.tongue-tab::after {
  content: "";
  position: absolute;
  bottom: 0;
  width: 14px;
  height: 14px;
}
.tongue-tab::before {
  left: -14px;
  background: radial-gradient(
    circle 14px at top left,
    transparent 14px,
    var(--tab-bg, var(--color-white)) 14.5px
  );
}
.tongue-tab::after {
  right: -14px;
  background: radial-gradient(
    circle 14px at top right,
    transparent 14px,
    var(--tab-bg, var(--color-white)) 14.5px
  );
}

/* ==========================================================
   FAQ section — double-layer card + collapsible rows
   ========================================================== */

.faq-card-outer {
  position: relative;
  background: #f9fbfd;
  border-radius: 21px;
  padding: 14px;
  max-width: 920px;
  margin: 38px auto 0;
  box-shadow: 0 8px 32px rgba(26, 28, 63, 0.04);
}

.faq-card-inner {
  background: #eef1f8;
  border: 1px solid rgba(225, 230, 238, 0.6);
  border-radius: 17px;
  padding: 6px 28px;
}

.faq-item {
  border-bottom: 1px solid rgba(226, 230, 239, 0.9);
}
.faq-item:last-child {
  border-bottom: 0;
}

/* Native <details> reset */
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 8px;
  display: flex;
  align-items: center;
  gap: 18px;
  transition: background 0.2s ease;
  border-radius: 10px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover {
  background: rgba(255, 255, 255, 0.55);
}

.faq-q-text {
  flex: 1;
  color: var(--color-navy);
  font-weight: 600;
  font-size: 17px;
  line-height: 1.4;
  text-align: start;
}

/* +/− icon: two crossing lines, vertical rotates to 0 when open */
.faq-icon {
  position: relative;
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-left: 4px;
}
.faq-icon::before,
.faq-icon::after {
  content: "";
  position: absolute;
  background: var(--color-navy);
  top: 50%;
  left: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.faq-icon::before {
  /* horizontal bar */
  transform: translateY(-50%);
}
.faq-icon::after {
  /* vertical bar — rotated -90deg means it appears as a vertical line */
  transform: translateY(-50%) rotate(-90deg);
}
.faq-item[open] .faq-icon::after {
  /* when open, rotate to 0 → both bars overlap → minus sign */
  transform: translateY(-50%) rotate(0deg);
}

.faq-a {
  padding: 0 8px 22px 8px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.65;
  text-align: start;
  animation: faq-fade-in 0.35s ease;
}

@keyframes faq-fade-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: none; }
}

@media (max-width: 720px) {
  .faq-card-outer { padding: 10px; margin-top: 30px; }
  .faq-card-inner { padding: 4px 16px; }
  .faq-q-text { font-size: 15px; }
  .tongue-tab {
    inset-inline-end: 16px;
    height: 32px;
    padding: 0 18px;
    font-size: 10px;
  }
  .tongue-tab::before,
  .tongue-tab::after { width: 12px; height: 12px; }
  .tongue-tab::before { left: -12px; }
  .tongue-tab::after { right: -12px; }
}

/* ==========================================================
   Cards spread on scroll (documedic-style deck fan-out)
   The 4 pillar cards start stacked + tilted near the center,
   then slide outward to their grid positions when the row enters
   the viewport.
   ========================================================== */

.cards-spread > .pillar-card {
  transition:
    transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 0.8s cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: transform, opacity;
  opacity: 0.55;
}

/* RTL: nth-child(1) = visually rightmost, nth-child(4) = visually leftmost.
   Initial state collapses all 4 cards toward the horizontal center,
   fanned with rotation like a hand of cards. */
.cards-spread > .pillar-card:nth-child(1) {
  transform: translateX(-160%) translateY(20px) rotate(13deg);
  z-index: 1;
}
.cards-spread > .pillar-card:nth-child(2) {
  transform: translateX(-55%) translateY(-12px) rotate(4deg);
  z-index: 3;
}
.cards-spread > .pillar-card:nth-child(3) {
  transform: translateX(55%) translateY(-12px) rotate(-4deg);
  z-index: 4;
}
.cards-spread > .pillar-card:nth-child(4) {
  transform: translateX(160%) translateY(20px) rotate(-13deg);
  z-index: 2;
}

.cards-spread.is-visible > .pillar-card {
  transform: none;
  opacity: 1;
}
.cards-spread.is-visible > .pillar-card:nth-child(2),
.cards-spread.is-visible > .pillar-card:nth-child(3) {
  transition-delay: 0s;
}
.cards-spread.is-visible > .pillar-card:nth-child(1),
.cards-spread.is-visible > .pillar-card:nth-child(4) {
  transition-delay: 0.18s;
}

/* Below 2-col breakpoint — skip the fan effect (cards stack vertically/2x2) */
@media (max-width: 1100px) {
  .cards-spread > .pillar-card,
  .cards-spread > .pillar-card:nth-child(1),
  .cards-spread > .pillar-card:nth-child(2),
  .cards-spread > .pillar-card:nth-child(3),
  .cards-spread > .pillar-card:nth-child(4) {
    transform: none;
    opacity: 1;
  }
}

@media (prefers-reduced-motion: reduce) {
  .cards-spread > .pillar-card {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================
   Features page — module-card component
   ========================================================== */

.module-section {
  padding: 4rem 0 2rem;
}
.module-section + .module-section {
  padding-top: 2rem;
}

.module-section .section-head {
  margin-bottom: 2.5rem;
}
.module-section .section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-teal);
  color: var(--color-navy);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.5rem 1.125rem;
  border-radius: var(--radius-pill);
  margin-bottom: 1.25rem;
}
.module-section .section-eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-navy);
}
.module-section .section-eyebrow .count {
  background: rgba(15, 17, 48, 0.18);
  border-radius: var(--radius-pill);
  padding: 0.05rem 0.5rem;
  font-size: 0.75rem;
}

.module-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
}

.module-card {
  background: var(--color-white);
  border-radius: var(--radius-xl);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--color-border-soft);
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 1.5rem;
  align-items: start;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.module-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
}

.module-card-icon {
  width: 84px;
  height: 84px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  position: relative;
  background: linear-gradient(135deg, rgba(44, 212, 177, 0.10), rgba(99, 102, 241, 0.06));
  border: 1px solid var(--color-border-soft);
}
.module-card-icon img {
  width: 60px;
  height: 60px;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
}

/* Per-color glow halo, matches homepage chip palette */
.module-card[data-color="teal"]   .module-card-icon { background: linear-gradient(135deg, rgba(44,212,177,0.18), rgba(44,212,177,0.04)); }
.module-card[data-color="indigo"] .module-card-icon { background: linear-gradient(135deg, rgba(99,102,241,0.18), rgba(99,102,241,0.04)); }
.module-card[data-color="amber"]  .module-card-icon { background: linear-gradient(135deg, rgba(245,158,11,0.18), rgba(245,158,11,0.04)); }
.module-card[data-color="rose"]   .module-card-icon { background: linear-gradient(135deg, rgba(236,72,153,0.18), rgba(236,72,153,0.04)); }

.module-card-body {
  min-width: 0;
}

.module-card-head {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0 0.75rem;
  margin-bottom: 0.4rem;
}
.module-card-head h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  letter-spacing: -0.01em;
}
.module-card-head h3 .accent { color: var(--color-teal-text); }
.module-card-head .module-tagline {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
}

.module-card-body > .lead {
  color: var(--color-text-muted);
  font-size: 0.9375rem;
  line-height: 1.55;
  margin-bottom: 1rem;
}

.module-features {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem 1.5rem;
}
.module-features li {
  --dot-color: var(--card-color, #2cd4b1);
  position: relative;
  padding-inline-start: 1.1rem;
  font-size: 0.9rem;
  line-height: 1.5;
  color: var(--color-text);
}
.module-features li::before {
  content: "";
  position: absolute;
  inset-inline-start: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--dot-color);
}
.module-card[data-color="teal"]   { --card-color: #2cd4b1; }
.module-card[data-color="indigo"] { --card-color: #6366f1; }
.module-card[data-color="amber"]  { --card-color: #f59e0b; }
.module-card[data-color="rose"]   { --card-color: #ec4899; }

.module-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-soft);
  font-size: 0.8125rem;
}
.module-card-foot .pill-tax {
  background: var(--color-teal-soft);
  color: var(--color-teal-text);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.module-card-foot .pill-tax::before {
  content: "✓";
  font-weight: 800;
}
.module-card-foot .vs {
  color: var(--color-text-soft);
  font-size: 0.8125rem;
}
.module-card-foot .vs strong {
  color: var(--color-navy);
  font-weight: 700;
}
.module-card-foot:empty { display: none; }

/* Quick-jump buttons in features hero */
.features-hero {
  padding: 7rem 0 3rem;
  text-align: center;
}
.features-hero h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  color: var(--color-navy);
  margin-bottom: 1rem;
}
.features-hero h1 .accent { color: var(--color-teal-text); }
.features-hero p.lead {
  font-size: 1.125rem;
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}
.features-jumps {
  display: flex;
  justify-content: center;
  gap: 0.625rem;
  flex-wrap: wrap;
  margin-bottom: 1rem;
}
.features-jumps a {
  background: var(--color-white);
  color: var(--color-navy);
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-pill);
  border: 1px solid var(--color-border-soft);
  font-size: 0.875rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.features-jumps a:hover {
  transform: translateY(-2px);
  border-color: var(--color-teal);
  box-shadow: 0 6px 16px rgba(26, 28, 63, 0.08);
}
.features-jumps a .count {
  background: var(--color-teal-soft);
  color: var(--color-teal-text);
  font-size: 0.75rem;
  padding: 0.05rem 0.5rem;
  border-radius: var(--radius-pill);
}

@media (max-width: 720px) {
  .module-card {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    gap: 1rem;
  }
  .module-card-icon {
    width: 64px;
    height: 64px;
  }
  .module-card-icon img {
    width: 46px;
    height: 46px;
  }
  .module-features {
    grid-template-columns: 1fr;
  }
  .module-card-head h3 { font-size: 1.25rem; }
}

/* ==========================================================
   Features page — scroll affordances
   #1 Scroll progress bar (top)
   #2 Side TOC (sticky on the left edge)
   ========================================================== */

.scroll-progress {
  position: fixed;
  top: 0;
  inset-inline: 0;
  height: 3px;
  background: rgba(44, 212, 177, 0.10);
  z-index: 200;
  pointer-events: none;
}
.scroll-progress::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--color-teal), var(--color-teal-hover));
  transition: width 0.05s linear;
  box-shadow: 0 0 12px rgba(44, 212, 177, 0.5);
}

.side-toc {
  position: fixed;
  left: 24px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 90;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}
.side-toc.is-visible {
  opacity: 1;
  pointer-events: auto;
}
.side-toc a {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.95rem;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(225, 230, 238, 0.7);
  border-radius: 999px;
  text-decoration: none;
  color: var(--color-text-soft);
  font-size: 0.8125rem;
  font-weight: 600;
  -webkit-backdrop-filter: blur(8px);
          backdrop-filter: blur(8px);
  transition: color 0.25s, border-color 0.25s, background 0.25s, transform 0.25s, box-shadow 0.25s;
  white-space: nowrap;
  box-shadow: 0 2px 10px rgba(26, 28, 63, 0.04);
}
.side-toc a:hover {
  color: var(--color-navy);
  border-color: var(--color-teal);
  transform: translateX(-3px); /* small physical-left nudge to suggest interaction */
}
.side-toc a.is-active {
  background: var(--color-navy);
  color: #fff;
  border-color: var(--color-navy);
  box-shadow: 0 6px 20px rgba(26, 28, 63, 0.18);
}
.side-toc .toc-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  opacity: 0.45;
  flex-shrink: 0;
}
.side-toc a.is-active .toc-dot {
  background: var(--color-teal);
  opacity: 1;
  box-shadow: 0 0 0 3px rgba(44, 212, 177, 0.25);
}

/* Hide the TOC on narrow screens — not enough horizontal room */
@media (max-width: 1100px) {
  .side-toc { display: none; }
}

/* ==========================================================
   #2 Module-card reveal — single-direction, soft slide + subtle scale
   All cards glide in from the start side (right in RTL),
   with a quiet scale-up for an elegant entrance.
   ========================================================== */

.module-grid > .module-card.reveal {
  transform: translateX(36px) scale(0.985);
  transition:
    opacity 0.9s cubic-bezier(0.22, 0.84, 0.32, 1),
    transform 0.9s cubic-bezier(0.22, 0.84, 0.32, 1);
}
.module-grid > .module-card.reveal.is-visible {
  transform: none;
}

/* ==========================================================
   #3 Section eyebrow "halo" pulse on first viewport entry
   ========================================================== */

.module-section .section-eyebrow {
  position: relative;
}
.module-section .section-head.is-active .section-eyebrow {
  animation: section-halo 1.6s ease-out 1;
}
@keyframes section-halo {
  0% {
    box-shadow: 0 0 0 0 rgba(44, 212, 177, 0.55);
  }
  60% {
    box-shadow: 0 0 0 22px rgba(44, 212, 177, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(44, 212, 177, 0);
  }
}

/* ==========================================================
   #4 Scroll-linked icon parallax on module cards
   The 3D emoji image gently drifts with the card's viewport position.
   Driver sets --parallax-y per .module-card from JS.
   ========================================================== */

.module-card-icon img {
  transform: translateY(var(--parallax-y, 0));
  transition: transform 0.08s linear;
}

@media (prefers-reduced-motion: reduce) {
  .module-grid > .module-card.reveal {
    transform: none !important;
  }
  .module-section .section-head.is-active .section-eyebrow {
    animation: none !important;
  }
  .module-card-icon img {
    transform: none !important;
  }
  .scroll-progress::after {
    transition: none !important;
  }
}

/* ===================================================================
   Lifecycle arc — 9 stages on a curved dashed path (features page)
   =================================================================== */

.lifecycle-arc {
  padding: 5rem 0 3rem;
  background: var(--color-bg);
}

.lifecycle-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}
.lifecycle-head h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--color-navy);
  margin-bottom: 0.875rem;
}
.lifecycle-head h2 .accent { color: var(--color-teal-text); }
.lifecycle-head p {
  font-size: 1.0625rem;
  color: var(--color-text-muted);
}

.arc-stage {
  position: relative;
  margin: 0 auto 2.5rem;
  padding: 1rem 0 5rem;
  min-height: 360px;
}

.arc-curve {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 220px;
  top: 30px;
  pointer-events: none;
  z-index: 1;
}

.arc-nodes {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 0.25rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.arc-node {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
}

/* Arc curve via vertical offsets — peak in the middle, low at the edges */
.arc-node:nth-child(1),
.arc-node:nth-child(9) { transform: translateY(70px); }
.arc-node:nth-child(2),
.arc-node:nth-child(8) { transform: translateY(40px); }
.arc-node:nth-child(3),
.arc-node:nth-child(7) { transform: translateY(15px); }
.arc-node:nth-child(4) { transform: translateY(-10px); } /* hub — slightly above peak */
.arc-node:nth-child(5) { transform: translateY(0); }
.arc-node:nth-child(6) { transform: translateY(15px); }

/* Per-color circle backgrounds (vibrant solid + soft glow ring) */
.arc-node[data-color="rose"]    { --node-bg: #f43f5e; --node-glow: rgba(244, 63, 94, 0.22); }
.arc-node[data-color="amber"]   { --node-bg: #f59e0b; --node-glow: rgba(245, 158, 11, 0.22); }
.arc-node[data-color="indigo"]  { --node-bg: #6366f1; --node-glow: rgba(99, 102, 241, 0.28); }
.arc-node[data-color="teal"]    { --node-bg: #2cd4b1; --node-glow: rgba(44, 212, 177, 0.22); }
.arc-node[data-color="violet"]  { --node-bg: #a855f7; --node-glow: rgba(168, 85, 247, 0.22); }
.arc-node[data-color="emerald"] { --node-bg: #10b981; --node-glow: rgba(16, 185, 129, 0.22); }

.arc-circle {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--node-bg);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 8px 24px var(--node-glow),
    0 0 0 6px rgba(255, 255, 255, 0.6);
  margin-bottom: 0.75rem;
  transition: transform 0.3s ease;
}
.arc-circle svg {
  width: 28px;
  height: 28px;
}

/* Hub (center) node — bigger, with a halo and double ring */
.arc-node.is-hub .arc-circle {
  width: 92px;
  height: 92px;
  box-shadow:
    0 14px 40px var(--node-glow),
    0 0 0 8px rgba(255, 255, 255, 0.7),
    0 0 0 14px var(--node-glow);
}
.arc-node.is-hub .arc-circle svg {
  width: 40px;
  height: 40px;
}
.arc-hub-tag {
  position: absolute;
  top: -1.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--color-teal-text);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.arc-label {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
  white-space: nowrap;
}
.arc-node.is-hub .arc-label {
  font-size: 0.9375rem;
}

.arc-tag {
  display: inline-flex;
  align-items: center;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  border: 1px solid;
}
.arc-tag[data-tag="crm"]      { background: #fef2f2; color: #be123c; border-color: #fecdd3; }
.arc-tag[data-tag="dms"]      { background: #fff7ed; color: #c2410c; border-color: #fed7aa; }
.arc-tag[data-tag="projects"] { background: #eef2ff; color: #4338ca; border-color: #c7d2fe; }
.arc-tag[data-tag="tasks"]    { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.arc-tag[data-tag="ai"]       { background: #faf5ff; color: #7e22ce; border-color: #e9d5ff; }
.arc-tag[data-tag="finance"]  { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }

/* Hover lift */
.arc-node:hover .arc-circle {
  transform: translateY(-4px) scale(1.04);
}

.lifecycle-footer {
  text-align: center;
  font-size: 1rem;
  color: var(--color-text-muted);
  max-width: 720px;
  margin: 0 auto;
  padding-top: 1rem;
}
.lifecycle-footer strong {
  color: var(--color-navy);
  font-weight: 700;
}

/* Tablet: shrink circles + labels */
@media (max-width: 1100px) {
  .arc-circle { width: 54px; height: 54px; }
  .arc-circle svg { width: 24px; height: 24px; }
  .arc-node.is-hub .arc-circle { width: 78px; height: 78px; }
  .arc-node.is-hub .arc-circle svg { width: 34px; height: 34px; }
  .arc-label { font-size: 0.8125rem; }
}

/* Mobile: collapse to vertical stack — no arc curve, just timeline */
@media (max-width: 768px) {
  .arc-stage { padding-bottom: 1rem; min-height: 0; }
  .arc-curve { display: none; }
  .arc-nodes {
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
  }
  .arc-node {
    flex-direction: row;
    align-items: center;
    gap: 0.875rem;
    text-align: right;
    transform: none !important;
    padding: 0.5rem 0;
    border-bottom: 1px dashed var(--color-border);
  }
  .arc-node:last-child { border-bottom: none; }
  .arc-circle { margin-bottom: 0; flex-shrink: 0; }
  .arc-label { white-space: normal; margin-bottom: 0; flex: 1; }
  .arc-hub-tag {
    position: static;
    transform: none;
    background: var(--color-teal-soft);
    padding: 0.15rem 0.6rem;
    border-radius: 999px;
    margin-inline-end: 0.5rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .arc-circle { transition: none !important; }
  .arc-node:hover .arc-circle { transform: none !important; }
  .arc-curve circle { display: none; }
}

/* ===================================================================
   Contact section — form on a soft white card
   =================================================================== */

#contact { background: var(--color-bg); }

.contact-card {
  max-width: 760px;
  margin: 0 auto;
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-card);
  padding: clamp(1.75rem, 4vw, 3rem);
  border: 1px solid var(--color-border-soft);
}

.contact-head {
  text-align: center;
  margin-bottom: 2.25rem;
}
.contact-head h2 {
  font-size: clamp(1.875rem, 3.5vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.018em;
  color: var(--color-navy);
  margin-bottom: 0.625rem;
}
.contact-head h2 .accent { color: var(--color-teal-text); }
.contact-head p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.contact-form {
  display: flex;
  flex-direction: column;
  gap: 1.125rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.125rem;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.form-field label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-navy);
}
.form-field .req {
  color: #b91c1c;  /* WCAG AA on white (5.83) */
  margin-inline-start: 0.15rem;
}

.form-field input,
.form-field select,
.form-field textarea {
  font-family: inherit;
  font-size: 0.9375rem;
  color: var(--color-text);
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.7rem 0.9rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  width: 100%;
  box-sizing: border-box;
}
.form-field textarea {
  resize: vertical;
  min-height: 110px;
  line-height: 1.6;
}
.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--color-teal-text);
  background: var(--color-white);
  box-shadow: 0 0 0 3px rgba(44, 212, 177, 0.18);
}

.form-field select {
  appearance: none;
  -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%235b5f78' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 0.9rem center;
  padding-inline-start: 2.25rem;
}

.form-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 0.625rem;
  font-size: 0.875rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}
.form-checkbox input[type="checkbox"] {
  margin-top: 0.2rem;
  width: 17px;
  height: 17px;
  accent-color: var(--color-teal-text);
  flex-shrink: 0;
  cursor: pointer;
}
.form-checkbox label {
  cursor: pointer;
}
.form-checkbox a {
  color: var(--color-blue);
  text-decoration: underline;
}

.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.form-actions .btn {
  padding: 0.85rem 1.75rem;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}
.form-actions .btn svg {
  width: 18px;
  height: 18px;
  transform: scaleX(-1); /* point right in RTL since paper-plane SVG points right by default */
}
.form-alt {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
}
.form-alt a {
  color: var(--color-blue);
  font-weight: 600;
}
.form-alt a:hover {
  color: var(--color-blue-hover);
  text-decoration: underline;
}

.form-success {
  text-align: center;
  padding: 3rem 1.5rem;
}
.form-success-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--color-teal-soft);
  color: var(--color-teal-text);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.25rem;
}
.form-success-icon svg { width: 32px; height: 32px; }
.form-success h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.625rem;
}
.form-success p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

@media (max-width: 640px) {
  .form-row { grid-template-columns: 1fr; }
  .form-actions { justify-content: stretch; }
  .form-actions .btn { width: 100%; justify-content: center; }
}

/* ===================================================================
   How it works — 4-step numbered flow
   =================================================================== */

.how-it-works {
  padding-bottom: calc(var(--section-pad-y) * 0.7);
}

.hiw-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: hiw;
}

.hiw-step {
  position: relative;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-xl);
  padding: 2rem 1.5rem 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.hiw-step:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: var(--color-blue-soft);
}

.hiw-num {
  position: absolute;
  top: -16px;
  inset-inline-start: 1.5rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-navy);
  color: var(--color-white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.0625rem;
  letter-spacing: -0.02em;
  box-shadow: 0 6px 18px rgba(26, 28, 63, 0.25);
}
.hiw-step:nth-child(1) .hiw-num { background: var(--color-blue); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3); }
.hiw-step:nth-child(2) .hiw-num { background: var(--color-teal-hover); box-shadow: 0 6px 18px rgba(31, 180, 151, 0.3); }
.hiw-step:nth-child(3) .hiw-num { background: var(--color-blue); box-shadow: 0 6px 18px rgba(37, 99, 235, 0.3); }
.hiw-step:nth-child(4) .hiw-num { background: var(--color-navy); box-shadow: 0 6px 18px rgba(26, 28, 63, 0.3); }

.hiw-step h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 0.5rem;
}
.hiw-step p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin: 0;
}

@media (max-width: 900px) {
  .hiw-steps { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .hiw-steps { grid-template-columns: 1fr; }
}

/* ===================================================================
   Big stat band — 3 oversize numbers as breathing room
   =================================================================== */

.big-stats {
  padding: calc(var(--section-pad-y) * 0.85) 0;
}

.big-stats-head {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 3rem;
}
.big-stats-head h2 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.625rem;
  letter-spacing: -0.018em;
}
.big-stats-head h2 .accent { color: var(--color-teal-text); }
.big-stats-head p {
  color: var(--color-text-muted);
  font-size: 1rem;
}

.big-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.big-stat {
  background: var(--color-bg-card);
  border-radius: var(--radius-xl);
  padding: 2.5rem 1.75rem;
  text-align: center;
  border: 1px solid var(--color-border-soft);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.big-stat:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.big-stat-num {
  font-size: clamp(2.75rem, 6vw, 4.25rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  color: var(--color-teal-text);
  margin-bottom: 1rem;
}
.big-stat-unit {
  font-size: 0.55em;
  font-weight: 700;
  margin-inline-start: 0.15rem;
  letter-spacing: 0;
}
.big-stat--blue .big-stat-num { color: var(--color-blue); }
.big-stat--navy .big-stat-num { color: var(--color-navy); }

.big-stat-lbl {
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}
.big-stat-ctx {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  line-height: 1.55;
}

@media (max-width: 800px) {
  .big-stats-grid { grid-template-columns: 1fr; gap: 1rem; }
  .big-stat { padding: 2rem 1.5rem; }
}

/* ===================================================================
   AI demo v2 — tab strip + 2-column scenario sidebar + chat
   =================================================================== */

.ai-demo-v2 {
  background: var(--color-white);
  border-radius: var(--radius-2xl);
  max-width: 1080px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--color-border-soft);
  overflow: hidden;
}

/* Tab strip */
.ai-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-bg-card);
}
.ai-tab {
  padding: 1.25rem 1.5rem;
  background: transparent;
  border: none;
  border-bottom: 3px solid transparent;
  text-align: center;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  transition: background 0.2s, border-color 0.2s, color 0.2s;
  color: var(--color-text-muted);
  font-family: inherit;
}
.ai-tab:hover {
  background: var(--color-white);
  color: var(--color-navy);
}
.ai-tab.active {
  background: var(--color-white);
  border-bottom-color: var(--ai-tab-color, var(--color-teal));
  color: var(--ai-tab-color, var(--color-navy));
}
.ai-tab-num {
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
}
.ai-tab.active .ai-tab-num {
  color: var(--ai-tab-color, var(--color-teal-hover));
}
.ai-tab-label {
  font-size: 0.9rem;
  font-weight: 600;
}

/* Per-tab blue shades — each scenario gets its own identity when active.
   All three pass WCAG AA (4.5:1) on white. */
.ai-tab[data-idx="0"] { --ai-tab-color: #2563eb; }  /* blue 600 — 5.2 */
.ai-tab[data-idx="1"] { --ai-tab-color: #1d4ed8; }  /* blue 700 — 6.7 */
.ai-tab[data-idx="2"] { --ai-tab-color: #1e3a8a; }  /* blue 800 — 12.8 */

/* 2-column body */
.ai-stage {
  display: grid;
  grid-template-columns: 360px 1fr;
}
.ai-side {
  padding: 2rem 1.75rem;
  background: var(--color-bg-card);
  border-inline-start: 1px solid var(--color-border-soft);
  display: flex;
  flex-direction: column;
}
.ai-side-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-teal-text);
  text-transform: uppercase;
  margin-bottom: 0.875rem;
}
.ai-side-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--color-teal);
  animation: pulse 1.6s infinite;
}
.ai-side-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.625rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.ai-side-desc {
  font-size: 0.9375rem;
  color: var(--color-text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
}
.ai-side-tools-label {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--color-text-soft);
  text-transform: uppercase;
  margin-bottom: 0.625rem;
}
.ai-side-tools {
  list-style: none;
  padding: 0;
  margin: 0 0 1.5rem;
  display: grid;
  gap: 0.5rem;
  counter-reset: aitools;
}
.ai-side-tools li {
  counter-increment: aitools;
  padding: 0.625rem 0.875rem 0.625rem 0.875rem;
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  color: var(--color-navy);
  font-weight: 500;
  position: relative;
  padding-inline-start: 2.4rem;
}
.ai-side-tools li::before {
  content: counter(aitools, decimal-leading-zero);
  position: absolute;
  inset-inline-start: 0.625rem;
  top: 50%;
  transform: translateY(-50%);
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: var(--color-blue);
  background: var(--color-blue-soft);
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
}
.ai-side-cta {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-blue);
  text-decoration: none;
  align-self: flex-start;
  transition: gap 0.2s, color 0.2s;
}
.ai-side-cta:hover {
  color: var(--color-blue-hover);
  gap: 0.7rem;
}
.ai-side-cta svg {
  width: 16px;
  height: 16px;
}

/* Chat column */
.ai-chat {
  padding: 2rem 2.25rem;
  min-height: 480px;
}

/* Compact preview cards (replaces label:value list) */
.ai-result-preview {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-lg);
  padding: 0.875rem;
  margin-top: 1rem;
  box-shadow: var(--shadow-sm);
}
.ai-preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 0.625rem;
  margin-bottom: 0.625rem;
  border-bottom: 1px solid var(--color-border-soft);
  font-size: 0.8125rem;
}
.ai-preview-title {
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.005em;
}
.ai-preview-stage {
  background: var(--color-teal-soft);
  color: var(--color-teal-text);
  font-weight: 700;
  padding: 0.2rem 0.625rem;
  border-radius: 999px;
  font-size: 0.75rem;
}
.ai-preview-count {
  font-size: 0.75rem;
  color: var(--color-text-soft);
  font-weight: 600;
}

.ai-preview-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.5rem 0.25rem;
  border-bottom: 1px solid var(--color-border-soft);
}
.ai-preview-row:last-child { border-bottom: none; }

.ai-preview-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--color-blue-soft), var(--color-teal-soft));
  color: var(--color-navy);
  font-weight: 700;
  font-size: 0.8125rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(20, 30, 60, 0.06);
}
.ai-preview-avatar--photo {
  background: #e5e7eb;
}
.ai-preview-avatar--photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ai-preview-info {
  flex: 1;
  min-width: 0;
}
.ai-preview-name {
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--color-navy);
  margin-bottom: 0.1rem;
}
.ai-preview-meta {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}
.ai-preview-contact {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.75rem;
  color: var(--color-text-muted);
  text-align: end;
}
.ai-preview-days {
  background: #fef3c7;
  color: #92400e;
  font-weight: 700;
  font-size: 0.75rem;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  white-space: nowrap;
}
.ai-preview-severity {
  font-weight: 700;
  font-size: 0.7rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  white-space: nowrap;
  letter-spacing: 0.02em;
}
.ai-preview-severity--high { background: #fee2e2; color: #b91c1c; }
.ai-preview-severity--med  { background: #fef3c7; color: #92400e; }
.ai-preview-severity--low  { background: var(--color-blue-soft); color: var(--color-blue-hover); }
.ai-preview-task-check {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--color-teal-soft);
  color: var(--color-teal-text);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Mobile */
@media (max-width: 900px) {
  .ai-stage { grid-template-columns: 1fr; }
  .ai-side {
    border-inline-start: none;
    border-bottom: 1px solid var(--color-border-soft);
  }
  .ai-chat { padding: 1.5rem; min-height: 0; }
}
@media (max-width: 600px) {
  .ai-tabs { grid-template-columns: 1fr; }
  .ai-tab {
    flex-direction: row;
    justify-content: flex-start;
    padding: 0.875rem 1rem;
    border-bottom: 1px solid var(--color-border-soft);
  }
  .ai-tab.active { border-inline-end: 3px solid var(--ai-tab-color, var(--color-teal)); border-bottom-color: var(--color-border-soft); }
  .ai-preview-contact { display: none; }
}

/* Hide legacy elements (in case they're still in DOM somewhere) */
.ai-demo-dots { display: none; }

/* ===================================================================
   Skip-to-content link (visible on focus only)
   =================================================================== */
.skip-link {
  position: fixed;
  top: 0.5rem;
  inset-inline-start: 0.5rem;
  background: var(--color-navy);
  color: var(--color-white);
  padding: 0.625rem 1.125rem;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 0.9rem;
  z-index: 10000;
  transform: translateY(-150%);
  transition: transform 0.2s ease;
}
.skip-link:focus {
  transform: translateY(0);
  outline: 3px solid var(--color-blue);
  outline-offset: 2px;
}

/* ===================================================================
   Legal pages — privacy, terms, accessibility, security
   =================================================================== */

.legal-page {
  padding: 6rem 0 5rem;
  background: var(--color-bg);
  min-height: 60vh;
}
.legal-h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--color-navy);
  margin: 0 0 0.75rem;
  text-align: center;
}
.legal-content {
  max-width: 820px;
  margin: 2rem auto 0;
  background: var(--color-white);
  padding: clamp(1.75rem, 3vw, 2.75rem);
  border-radius: var(--radius-2xl);
  border: 1px solid var(--color-border-soft);
  box-shadow: var(--shadow-card);
  color: var(--color-text);
  line-height: 1.7;
}
.legal-content > p:first-of-type {
  color: var(--color-text-soft);
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-soft);
}
.legal-content section { margin-bottom: 2rem; }
.legal-content section:last-child { margin-bottom: 0; }
.legal-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 0.75rem;
  letter-spacing: -0.01em;
}
.legal-content h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 1.25rem 0 0.5rem;
}
.legal-content p {
  margin-bottom: 0.875rem;
  color: var(--color-text);
}
.legal-content ul,
.legal-content ol {
  margin: 0.75rem 0 0.875rem;
  padding-inline-start: 1.5rem;
}
.legal-content ul { list-style: disc; }
.legal-content ol { list-style: decimal; }
.legal-content li {
  margin-bottom: 0.375rem;
  color: var(--color-text);
}
.legal-content a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal-content a:hover {
  color: var(--color-blue-hover);
}
.legal-content strong {
  color: var(--color-navy);
  font-weight: 700;
}
.legal-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9rem;
}
.legal-content th,
.legal-content td {
  padding: 0.625rem 0.875rem;
  border: 1px solid var(--color-border-soft);
  text-align: start;
}
.legal-content th {
  background: var(--color-bg-card);
  font-weight: 700;
  color: var(--color-navy);
}

/* Legacy naked SVG fallback — legal pages had Tailwind-styled icons
   in unclassed <div> wrappers. Constrain so they don't blow up. */
.legal-content svg:not([class]) {
  width: 26px;
  height: 26px;
  display: inline-block;
  color: var(--color-teal-text, #0f766e);
  flex-shrink: 0;
}

/* Outer wrapper that holds the icon-card grid (security.html overview) */
.legal-content > div:has(> div > div > svg:not([class])) {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
@media (max-width: 760px) {
  .legal-content > div:has(> div > div > svg:not([class])) {
    grid-template-columns: 1fr;
  }
}

/* Each card */
.legal-content > div > div:has(> div > svg:not([class])) {
  background: var(--color-white);
  border: 1px solid var(--color-border-soft);
  border-radius: 14px;
  padding: 1.25rem 1.25rem 1rem;
  text-align: start;
}
.legal-content > div > div:has(> div > svg:not([class])) h2 {
  margin-top: 0.25rem;
  font-size: 1.1rem;
  margin-bottom: 0.4rem;
}
.legal-content > div > div:has(> div > svg:not([class])) p {
  font-size: 0.92rem;
  margin: 0;
}

/* Icon wrapper inside each card */
.legal-content > div > div > div:has(> svg:not([class])) {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--color-teal-soft, rgba(44, 212, 177, 0.12));
  border-radius: 12px;
}

/* ===================================================================
   Accessibility Widget (כלי נגישות) — light theme adaptation
   =================================================================== */

.a11y-fab {
  position: fixed;
  bottom: 1.5rem;
  inset-inline-start: 1.5rem;
  z-index: 9998;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: none;
  background: var(--color-blue);
  color: var(--color-white);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.35);
  transition: transform 0.2s, box-shadow 0.2s;
}
.a11y-fab:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(37, 99, 235, 0.5);
}
.a11y-fab:focus-visible {
  outline: 3px solid var(--color-navy);
  outline-offset: 3px;
}
.a11y-fab svg { width: 26px; height: 26px; }

.a11y-panel {
  position: fixed;
  bottom: 5.5rem;
  inset-inline-start: 1.5rem;
  z-index: 9998;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: 1rem;
  width: 270px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 12px 40px rgba(26, 28, 63, 0.18);
  transform: translateY(12px);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.a11y-panel.a11y-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.a11y-panel-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0 0 0.875rem;
  text-align: center;
  padding-bottom: 0.625rem;
  border-bottom: 1px solid var(--color-border-soft);
}

.a11y-btn {
  display: flex;
  align-items: center;
  gap: 0.625rem;
  width: 100%;
  padding: 0.55rem 0.75rem;
  margin-bottom: 0.375rem;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
  color: var(--color-navy);
  font-size: 0.85rem;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  text-align: start;
}
.a11y-btn:hover {
  background: var(--color-blue-soft);
  border-color: var(--color-blue);
}
.a11y-btn:focus-visible {
  outline: 2px solid var(--color-blue);
  outline-offset: 2px;
}
.a11y-btn[aria-pressed="true"] {
  background: var(--color-blue);
  color: var(--color-white);
  border-color: var(--color-blue);
}
.a11y-btn svg { width: 18px; height: 18px; flex-shrink: 0; }
.a11y-btn--reset {
  margin-top: 0.5rem;
  background: transparent;
  color: var(--color-text-muted);
  justify-content: center;
  border-style: dashed;
}
.a11y-btn--reset:hover {
  background: var(--color-bg-card);
  color: var(--color-navy);
}

/* Override classes activated by widget */
html.a11y-high-contrast,
html.a11y-high-contrast body {
  background: #000 !important;
  color: #fff !important;
}
html.a11y-high-contrast * {
  background-color: #000 !important;
  color: #fff !important;
  border-color: #fff !important;
}
html.a11y-high-contrast a,
html.a11y-high-contrast a * { color: #ffd700 !important; }
html.a11y-high-contrast img { filter: grayscale(1) contrast(1.2); }

html.a11y-links a {
  text-decoration: underline !important;
  outline: 2px solid #ffd700 !important;
  outline-offset: 2px;
}

html.a11y-no-motion *,
html.a11y-no-motion *::before,
html.a11y-no-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}
html.a11y-no-motion .arc-curve circle { display: none; }

html.a11y-big-cursor,
html.a11y-big-cursor * {
  cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 24 24'%3E%3Cpath fill='%232563eb' stroke='%23fff' stroke-width='1' d='M5 3l14 8-6 1.5L10 19z'/%3E%3C/svg%3E") 4 2, auto !important;
}

@media (max-width: 600px) {
  .a11y-fab { bottom: 1rem; inset-inline-start: 1rem; }
  .a11y-panel {
    bottom: 4.5rem;
    inset-inline-start: 1rem;
    width: calc(100vw - 2rem);
    max-width: 280px;
  }
}

/* ===================================================================
   Comprehensive reduced-motion (catches everything not specified above)
   =================================================================== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Kill infinite traveling/pulsing/decorative motion entirely */
  .arc-curve circle,
  .ai-side-dot { display: none !important; }
  /* Kill hover lifts that imply motion */
  .hiw-step:hover,
  .big-stat:hover,
  .module-card:hover,
  .pillar-card:hover { transform: none !important; }
}

/* ===================================================================
   Mobile menu — hamburger + slide-down drawer (visible <900px)
   =================================================================== */

.nav-mobile-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  padding: 0.5rem;
  border-radius: var(--radius-md);
  cursor: pointer;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s;
}
.nav-mobile-btn:hover {
  background: var(--color-bg-card);
  border-color: var(--color-blue);
}
.nav-mobile-btn svg { width: 22px; height: 22px; }

.nav-mobile-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  inset-inline-start: 1rem;
  inset-inline-end: 1rem;
  background: var(--color-white);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 0.75rem;
  z-index: 49;
  animation: nav-mobile-fade 0.18s ease-out;
}
.nav-mobile-menu[hidden] { display: none; }
.nav-mobile-menu ul { display: grid; gap: 0.25rem; list-style: none; padding: 0; margin: 0; }
.nav-mobile-menu li a {
  display: block;
  padding: 0.875rem 1rem;
  color: var(--color-navy);
  font-weight: 500;
  font-size: 0.95rem;
  border-radius: var(--radius-md);
  transition: background 0.15s, color 0.15s;
}
.nav-mobile-menu li a:hover,
.nav-mobile-menu li a[aria-current="page"] {
  background: var(--color-bg-card);
}
.nav-mobile-menu li a.nav-mobile-cta {
  background: var(--color-blue);
  color: var(--color-white);
  text-align: center;
  margin-top: 0.5rem;
}
.nav-mobile-menu li a.nav-mobile-cta:hover {
  background: var(--color-blue-hover);
}

@keyframes nav-mobile-fade {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Show hamburger and hide desktop nav links below 900px */
@media (max-width: 900px) {
  .nav-mobile-btn { display: inline-flex; }
  .nav-pill .nav-links { display: none; }
  /* Optionally also hide the desktop login button on the smallest screens */
}
@media (max-width: 480px) {
  .nav-pill .btn-primary {
    /* Compact the login button on small phones (or hide and rely on the drawer's CTA) */
    padding: 0.55rem 0.75rem;
    font-size: 0.85rem;
  }
  .nav-pill .btn-primary .icon { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-mobile-menu { animation: none; }
}

/* ===================================================================
   Cookie consent banner — bottom sheet, light theme
   =================================================================== */

.privacy-banner {
  position: fixed;
  bottom: 0;
  inset-inline-start: 0;
  inset-inline-end: 0;
  background: var(--color-white);
  border-top: 1px solid var(--color-border);
  box-shadow: 0 -8px 32px rgba(26, 28, 63, 0.12);
  z-index: 9990;
  animation: privacy-banner-slide 0.3s ease-out;
}
.privacy-banner[hidden] { display: none; }

@keyframes privacy-banner-slide {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

.privacy-banner-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2rem;
  align-items: start;
}
.privacy-banner-heading {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}
.privacy-banner-text p {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  line-height: 1.55;
  margin-bottom: 0.875rem;
}
.privacy-banner-text a {
  color: var(--color-blue);
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.privacy-banner-text a:hover { color: var(--color-blue-hover); }

.privacy-banner-toggles {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem 1.5rem;
  margin-top: 0.5rem;
}
.privacy-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  color: var(--color-text);
  cursor: pointer;
  user-select: none;
}
.privacy-toggle-disabled { color: var(--color-text-soft); cursor: default; }
.privacy-toggle input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--color-teal-hover);
  cursor: pointer;
}
.privacy-toggle-disabled input[type="checkbox"] { cursor: default; }

.privacy-banner-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  min-width: 180px;
}
.privacy-banner-actions .btn {
  width: 100%;
  justify-content: center;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
}
.cookie-essential-only {
  background: transparent;
  border: none;
  color: var(--color-text-muted);
  font-size: 0.85rem;
  text-decoration: underline;
  cursor: pointer;
  padding: 0.4rem;
  font-family: inherit;
  transition: color 0.15s;
}
.cookie-essential-only:hover { color: var(--color-navy); }

@media (max-width: 760px) {
  .privacy-banner-inner {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    padding: 1.25rem;
  }
  .privacy-banner-actions { flex-direction: row; flex-wrap: wrap; min-width: 0; }
  .privacy-banner-actions .btn { flex: 1 1 auto; min-width: 120px; }
  .cookie-essential-only { flex-basis: 100%; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  .privacy-banner { animation: none; }
}

.card-badge-core {
  color: var(--color-teal-text);
  font-weight: 600;
  font-size: 0.75rem;
  margin-right: 0.375rem;
  display: inline-block;
  vertical-align: middle;
}

/* ===================================================================
   Mobile responsiveness — Phase 1 (P0)
   Critical fixes for phones (≤700px). Pure additive CSS; no HTML changes.
   =================================================================== */

/* P0-1: Pricing 4-card grid never reached 1 column on phones because
   the @media 900px rule targeted .pricing-grid (lower specificity) while
   @media 1100px set .pricing-grid.pricing-grid-4 to 2 columns. Force
   1 column at ≤700px and remove featured scale to prevent clipping. */
@media (max-width: 700px) {
  .pricing-grid.pricing-grid-4 {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
    gap: 1rem;
  }
  .pricing-grid-4 .price-card.featured { transform: none; }
}

/* P0-2: Pillar-detail mock tables (CRM, financial) had 4 columns and no
   overflow fallback — avatar+name cell overflowed at <400px. */
@media (max-width: 600px) {
  .pillar-mock-inner { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .mock-table { font-size: 12px; }
  .mock-table th,
  .mock-table td { padding: 0.45rem 0.4rem; }
  .mock-avatar .av { width: 22px; height: 22px; }
}

/* P0-3: Hero dashboard mock decoration becomes too dense on tiny phones.
   Hide entirely below 520px — hero text + CTA carry the message. */
@media (max-width: 520px) {
  .hero-visual { display: none; }
  .hero-inner { gap: 1.25rem; }
}

/* P0-4: Touch targets — hamburger and header login below 44×44 on phones. */
@media (max-width: 900px) {
  .nav-mobile-btn {
    min-width: 44px;
    min-height: 44px;
  }
  .nav-pill .btn-primary {
    min-height: 44px;
    padding-block: 0.55rem;
  }
}

/* ===================================================================
   Mobile responsiveness — Phase 2 (P1)
   Polish — looks bad but doesn't break.
   =================================================================== */

/* P1-5: Hero segmented chips — let them wrap on tiny screens. */
@media (max-width: 520px) {
  .hero-segmented {
    flex-wrap: wrap;
    max-width: 100%;
    justify-content: center;
  }
  .hero-segmented > span {
    padding: 0.5rem 0.875rem;
    font-size: 0.85rem;
  }
}

/* P1-6: Container padding — tighten gutters on phones. */
@media (max-width: 600px) {
  .container { padding-inline: 1rem; }
  .section.dark { margin-inline: 0.5rem; }
  .hero { margin: 1rem 0.5rem 0; padding: 3rem 1.25rem 2.5rem; }
}

/* P1-7: Final CTA — tame decorative circles on small phones. */
@media (max-width: 600px) {
  .final-cta {
    width: calc(100% - 1.5rem);
    padding: 3rem 1.25rem;
  }
  .final-cta::before,
  .final-cta::after {
    width: 200px;
    height: 200px;
    top: -60px;
    inset-inline-start: auto;
  }
  .final-cta::before { inset-inline-end: -60px; }
  .final-cta::after { inset-inline-start: -60px; bottom: -60px; top: auto; }
}

/* P1-8: Big-stats — collapse threshold was too eager (800px); 3 cols
   still fits at 768px. Defer to 600px and add a 2-col stop in between. */
@media (max-width: 800px) {
  .big-stats-grid { grid-template-columns: repeat(2, 1fr); gap: 1.25rem; }
}
@media (max-width: 600px) {
  .big-stats-grid { grid-template-columns: 1fr; }
}

/* P1-9: AI demo chat padding — overly generous on small phones. */
@media (max-width: 480px) {
  .ai-chat { padding: 1.25rem 1rem; }
  .ai-side { padding: 1.25rem 1rem; }
}

/* ===================================================================
   Mobile responsiveness — Phase 3 (P2)
   RTL chevron flip + dead-rule cleanup.
   Note: full breakpoint consolidation (9 → 3) is deferred to a separate
   pass that requires visual QA at every size; not safe to ship blindly.
   =================================================================== */

/* P2-11: Chevron icons in CTAs (.btn > .icon) point right by default.
   In RTL Hebrew layout this points "into" the text; flip them so the
   arrow points in the natural reading direction. The form submit button
   has its own icon (no .icon class) and is already handled by the
   .form-actions rule. */
[dir="rtl"] .btn .icon {
  transform: scaleX(-1);
}

