/* ============================================================
   OrgMesh AI Operations Page
   Deploy to public_html/assets/css/pages/ai.css
   Full standalone CSS for ai.php
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300;1,400&family=IBM+Plex+Mono:wght@400;500&display=swap');

:root {
  --bg: #f2f5f8;
  --surface: #ffffff;
  --surface-soft: #f8fafc;
  --surface-raised: #ffffff;

  --text-strong: #0b1420;
  --text-main: #1b2a3b;
  --text-muted: #4f6070;
  --text-soft: #7a8fa0;

  --line-strong: #c4cfd9;
  --line: #d8e0e8;
  --line-soft: #e6ecf1;

  --brand: #1558c0;
  --brand-hover: #0f449a;
  --brand-light: #e8effc;
  --brand-glow: rgba(21, 88, 192, 0.12);

  --font-display: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  --font-mono: 'IBM Plex Mono', monospace;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --container-max: 1200px;
  --container-pad: clamp(20px, 5vw, 64px);
  --section-gap: clamp(40px, 6vw, 72px);

  --shadow-xs: 0 1px 3px rgba(11, 20, 40, 0.05), 0 1px 2px rgba(11, 20, 40, 0.04);
  --shadow-sm: 0 2px 8px rgba(11, 20, 40, 0.06), 0 1px 3px rgba(11, 20, 40, 0.04);
  --shadow-md: 0 8px 24px rgba(11, 20, 40, 0.08), 0 2px 6px rgba(11, 20, 40, 0.05);
  --shadow-lg: 0 16px 40px rgba(11, 20, 40, 0.09), 0 4px 10px rgba(11, 20, 40, 0.05);

  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-med: 240ms;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text-main);
  background: var(--bg);
  min-height: 100vh;
  overflow-x: hidden;
}

img {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--font-display);
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.018em;
  color: var(--text-strong);
}

h1 {
  font-size: clamp(2rem, 5vw, 3.6rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
}

h2 {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  letter-spacing: -0.018em;
}

h3 {
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: -0.008em;
  line-height: 1.28;
}

p {
  font-size: 0.9375rem;
  line-height: 1.7;
  color: var(--text-muted);
}

ul {
  list-style: none;
}

.container {
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--container-pad);
}

.page-shell {
  display: flex;
  flex-direction: column;
  padding-top: 36px;
  padding-bottom: 80px;
}

.ai-page {
  gap: 0;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition:
    background var(--dur-fast) var(--ease-out),
    border-color var(--dur-fast) var(--ease-out),
    color var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out);
}

.btn:active {
  transform: translateY(1px);
}

.btn.primary {
  background: var(--brand);
  color: #ffffff;
  border-color: var(--brand);
  box-shadow: 0 4px 14px var(--brand-glow);
}

.btn.primary:hover {
  background: var(--brand-hover);
  border-color: var(--brand-hover);
  box-shadow: 0 6px 20px rgba(21, 88, 192, 0.2);
  transform: translateY(-1px);
}

.btn.secondary {
  background: var(--surface);
  color: var(--text-strong);
  border-color: var(--line-strong);
}

.btn.secondary:hover {
  background: var(--surface-soft);
  border-color: #b0bec9;
  color: var(--text-strong);
}

.eyebrow,
.section-kicker {
  display: inline-block;
  margin-bottom: var(--space-3);
  font-family: var(--font-mono);
  font-size: 0.69rem;
  font-weight: 500;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--brand);
}

.section-block {
  margin-top: var(--section-gap);
}

.section-heading {
  max-width: 760px;
  margin-bottom: 24px;
}

.section-heading h2 {
  margin-bottom: var(--space-3);
}

.section-heading p {
  max-width: 700px;
}

.hero-section {
  margin-bottom: 20px;
}

.hero-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #ffffff 0%, #f5f8fc 100%);
  border: 1px solid var(--line-strong);
  padding: 52px 48px;
  box-shadow: var(--shadow-lg);
}

.hero-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, #4080e0 100%);
}

.hero-card::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 360px;
  height: 360px;
  background-image: radial-gradient(circle, var(--line) 1px, transparent 1px);
  background-size: 18px 18px;
  opacity: 0.72;
  pointer-events: none;
}

.ai-hero-card {
  background:
    linear-gradient(160deg, #ffffff 0%, #f5f8fc 58%, #edf4ff 100%);
}

.ai-hero-card::after {
  width: 420px;
  height: 420px;
  opacity: 0.85;
}

.hero-copy {
  max-width: 740px;
  position: relative;
  z-index: 1;
}

.hero-copy h1 {
  margin-bottom: var(--space-4);
  max-width: 700px;
}

.hero-intro {
  font-size: clamp(1rem, 1.8vw, 1.125rem);
  line-height: 1.62;
  color: var(--text-main);
  max-width: 650px;
  font-weight: 300;
}

.hero-actions,
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
}

.trust-bar-section {
  margin-top: 0;
}

.trust-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
  border-top: none;
}

.trust-item {
  background: var(--surface);
  padding: 22px 24px;
  transition: background var(--dur-fast) var(--ease-out);
}

.trust-item:hover {
  background: var(--surface-soft);
}

.trust-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: var(--space-2);
}

.trust-item p {
  font-size: 0.875rem;
  line-height: 1.62;
  color: var(--text-muted);
}

.content-grid {
  display: grid;
  gap: 1px;
  background: var(--line-strong);
  border: 1px solid var(--line-strong);
}

.content-grid.two-col {
  grid-template-columns: repeat(2, 1fr);
}

.content-grid.three-col {
  grid-template-columns: repeat(3, 1fr);
}

.content-grid.four-col {
  grid-template-columns: repeat(4, 1fr);
}

.content-card {
  background: var(--surface);
  padding: 26px 24px;
  transition:
    background var(--dur-fast) var(--ease-out),
    transform var(--dur-fast) var(--ease-out),
    box-shadow var(--dur-fast) var(--ease-out);
}

.content-card:hover {
  background: var(--surface-soft);
}

.content-card h3 {
  font-size: 0.9375rem;
  margin-bottom: var(--space-2);
  color: var(--text-strong);
}

.content-card p {
  font-size: 0.875rem;
  line-height: 1.68;
  color: var(--text-muted);
}

.comparison-card {
  padding: 32px 28px;
  min-height: 100%;
}

.comparison-card:first-child {
  background: var(--surface-soft);
}

.comparison-card:first-child h3 {
  color: var(--text-soft);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison-card:first-child p {
  color: var(--text-soft);
}

.comparison-card:last-child {
  background: var(--surface);
  border-left: 3px solid var(--brand);
}

.comparison-card:last-child h3 {
  color: var(--brand);
  font-size: 0.8125rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.comparison-card:last-child p {
  color: var(--text-main);
}

.ai-shift-section .comparison-grid {
  box-shadow: var(--shadow-sm);
}

.ai-roles-section .content-card {
  min-height: 196px;
  position: relative;
}

.ai-roles-section .content-card::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand);
  margin-bottom: 18px;
}

.ai-roles-section .content-card h3,
.ai-control-section .content-card h3,
.ai-outcomes-section .content-card h3 {
  margin-bottom: 10px;
}

.example-section {
  position: relative;
}

.example-section .section-heading {
  margin-bottom: 0;
  max-width: 100%;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--brand);
  padding: 36px 40px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr 1.1fr;
  gap: 16px 64px;
  align-items: center;
}

.example-section .section-heading .section-kicker {
  grid-column: 1 / -1;
  margin-bottom: 0;
}

.example-section .section-heading h2 {
  margin-bottom: 0;
  font-size: clamp(1.4rem, 2.8vw, 2rem);
  align-self: start;
}

.example-section .section-heading p {
  font-size: 0.9375rem;
  line-height: 1.78;
  color: var(--text-muted);
  font-weight: 400;
  margin: 0;
  align-self: center;
  padding-top: 4px;
}

.ai-example-section .section-heading {
  background:
    linear-gradient(135deg, #ffffff 0%, #f7fbff 100%);
}

.steps-grid .step-card {
  background: var(--surface);
  padding: 28px 24px 30px;
  position: relative;
  overflow: hidden;
  transition: background var(--dur-fast) var(--ease-out);
}

.steps-grid .step-card:hover {
  background: var(--surface-soft);
}

.step-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--brand);
  transition: width var(--dur-med) var(--ease-out);
}

.step-card:hover::after {
  width: 100%;
}

.step-number {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  color: var(--brand);
  margin-bottom: var(--space-4);
}

.step-card h3 {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-strong);
  margin-bottom: var(--space-2);
}

.step-card p {
  font-size: 0.875rem;
  line-height: 1.65;
  color: var(--text-muted);
}

.ai-workflow-section .step-card {
  min-height: 214px;
}

.feature-detail-card {
  padding: 28px 24px;
}

.feature-detail-card::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--brand);
  margin-bottom: 18px;
}

.feature-detail-card h3 {
  font-size: 0.9375rem;
  margin-bottom: var(--space-2);
}

.ai-control-section .feature-detail-card,
.ai-outcomes-section .feature-detail-card {
  border-left: 3px solid var(--brand);
}

.ai-control-section .feature-detail-card::before,
.ai-outcomes-section .feature-detail-card::before {
  display: none;
}

.ai-pricing-grid {
  align-items: stretch;
  box-shadow: var(--shadow-md);
}

.ai-price-card {
  position: relative;
  padding: 36px 32px;
  min-height: 100%;
}

.ai-price-card h3 {
  font-size: clamp(1.7rem, 3vw, 2.35rem);
  margin-bottom: 12px;
  letter-spacing: -0.03em;
}

.ai-price-card p {
  max-width: 440px;
  margin-bottom: 24px;
}

.ai-price-card .section-kicker {
  margin-bottom: 14px;
}

.ai-price-card-featured {
  border-left: 3px solid var(--brand);
  background:
    linear-gradient(160deg, #ffffff 0%, #f5f8fc 100%);
}

.ai-price-card-featured::before {
  content: 'Recommended';
  position: absolute;
  top: 18px;
  right: 20px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  background: var(--brand-light);
  color: var(--brand);
  border: 1px solid rgba(21, 88, 192, 0.18);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.ai-feature-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-top: 22px;
}

.ai-feature-list li {
  position: relative;
  padding-left: 22px;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--text-muted);
}

.ai-feature-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 8px;
  height: 8px;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-light);
}

.ai-ready-section .section-heading {
  max-width: 860px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--brand);
  padding: 34px 38px;
  box-shadow: var(--shadow-sm);
}

.ai-ready-section .section-heading p {
  max-width: 740px;
}

.cta-section {
  margin-top: var(--section-gap);
}

.cta-card {
  background: var(--surface);
  border: 1px solid var(--line-strong);
  padding: 44px 48px;
  box-shadow: var(--shadow-md);
  position: relative;
  overflow: hidden;
}

.cta-card::before {
  content: '';
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--brand) 0%, #4080e0 100%);
}

.cta-card h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  margin-bottom: var(--space-3);
  max-width: 720px;
}

.cta-card p {
  max-width: 580px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

.ai-cta-section .cta-card {
  background:
    linear-gradient(160deg, #ffffff 0%, #f6f9fd 100%);
}

.ai-cta-section .section-kicker {
  margin-bottom: 14px;
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(14px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.hero-copy .eyebrow {
  animation: fadeIn 0.45s var(--ease-out) both;
}

.hero-copy h1 {
  animation: fadeUp 0.55s var(--ease-out) 0.08s both;
}

.hero-intro {
  animation: fadeUp 0.55s var(--ease-out) 0.16s both;
}

.hero-actions {
  animation: fadeUp 0.55s var(--ease-out) 0.24s both;
}

::-webkit-scrollbar {
  width: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--line-strong);
}

::-webkit-scrollbar-thumb:hover {
  background: #aab8c6;
}

::selection {
  background: var(--brand-light);
  color: var(--brand);
}

:focus-visible {
  outline: 2px solid var(--brand);
  outline-offset: 2px;
}

@media (max-width: 1200px) {
  .content-grid.four-col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 1024px) {
  .page-shell {
    padding-top: 28px;
    padding-bottom: 64px;
  }

  .hero-card {
    padding: 40px 36px;
  }

  .ai-roles-section .content-card,
  .ai-workflow-section .step-card {
    min-height: auto;
  }

  .ai-price-card-featured::before {
    position: static;
    width: fit-content;
    margin-bottom: 18px;
  }
}

@media (max-width: 900px) {
  .content-grid.three-col {
    grid-template-columns: repeat(2, 1fr);
  }

  .trust-bar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .page-shell {
    padding-top: 20px;
    padding-bottom: 52px;
  }

  .section-block,
  .cta-section {
    margin-top: 36px;
  }

  .hero-card,
  .cta-card {
    padding: 28px 24px;
  }

  .example-section .section-heading {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 24px 22px;
  }

  .hero-copy h1 {
    font-size: clamp(1.65rem, 7vw, 2.4rem);
    line-height: 1.06;
  }

  .hero-intro {
    font-size: 1rem;
    line-height: 1.6;
  }

  .section-heading h2,
  .cta-card h2 {
    font-size: clamp(1.3rem, 5vw, 1.75rem);
  }

  .content-grid.two-col,
  .content-grid.three-col,
  .content-grid.four-col {
    grid-template-columns: 1fr;
  }

  .hero-actions,
  .cta-actions {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }

  .btn {
    width: 100%;
    min-height: 48px;
  }

  .ai-price-card {
    padding: 26px 22px;
  }

  .ai-price-card h3 {
    font-size: 1.8rem;
  }

  .ai-ready-section .section-heading {
    padding: 26px 22px;
  }

  .ai-feature-list {
    gap: 9px;
  }
}

@media (max-width: 480px) {
  .hero-card,
  .cta-card {
    padding: 22px 18px;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
  }

  .section-heading h2,
  .cta-card h2 {
    font-size: 1.35rem;
  }

  .eyebrow,
  .section-kicker,
  .trust-label {
    font-size: 0.65rem;
    letter-spacing: 0.11em;
  }

  .comparison-card {
    padding: 24px 20px;
  }

  .content-card,
  .feature-detail-card,
  .steps-grid .step-card {
    padding: 24px 20px;
  }

  .ai-price-card {
    padding: 24px 18px;
  }

  .ai-ready-section .section-heading {
    padding: 24px 18px;
  }

  .ai-price-card h3 {
    font-size: 1.65rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

