/* DocTiger AFS — Design System */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&display=swap');

:root {
  --orange: #E8611A;
  --orange-hover: #d45515;
  --orange-light: #fff4ee;
  --navy: #1A2E44;
  --navy-light: #2a4560;
  --bg-white: #FFFFFF;
  --bg-gray: #F8F9FA;
  --text-primary: #1A1A2E;
  --text-secondary: #555555;
  --success: #27AE60;
  --border: #E0E0E0;
  --shadow: 0 2px 16px rgba(0, 0, 0, 0.07);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
  --radius-card: 10px;
  --radius-btn: 8px;
  --font: 'Plus Jakarta Sans', 'Inter', system-ui, sans-serif;
  --nav-height: 72px;
  --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text-primary);
  background: var(--bg-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color var(--transition); }
ul { list-style: none; }

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.section { padding: 96px 0; }
.section-alt { background: var(--bg-gray); }
.section-title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-bottom: 48px;
}
.text-center { text-align: center; }
.text-center .section-subtitle { margin-left: auto; margin-right: auto; }
.hidden { display: none !important; }

/* Auth & form pages */
.form-page-wrap {
  max-width: 520px;
  margin: 0 auto;
}
.auth-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px 32px;
  box-shadow: var(--shadow);
}
.auth-card h2 {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 8px;
  text-align: center;
}
.auth-card .auth-sub {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  margin-bottom: 28px;
}
.auth-links {
  text-align: center;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}
.auth-links a { color: var(--orange); font-weight: 600; }

/* Blog post */
.blog-post-hero {
  padding: calc(var(--nav-height) + 48px) 0 32px;
  background: var(--bg-gray);
}
.blog-post-content {
  max-width: 720px;
  margin: 0 auto;
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-secondary);
}
.blog-post-content h2 {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 40px 0 16px;
}
.blog-post-content p { margin-bottom: 20px; }
.blog-post-content ul {
  list-style: disc;
  padding-left: 24px;
  margin-bottom: 20px;
}
.blog-post-content li { margin-bottom: 8px; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: var(--radius-btn);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all var(--transition);
  white-space: nowrap;
}
.btn-primary {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: var(--orange-hover);
  border-color: var(--orange-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 20px rgba(232, 97, 26, 0.35);
}
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--orange);
  color: var(--orange);
  background: var(--orange-light);
}
.btn-navy {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}
.btn-navy:hover { background: var(--navy-light); transform: translateY(-2px); }
.btn-white {
  background: #fff;
  color: var(--orange);
  border-color: #fff;
}
.btn-white:hover { background: #f5f5f5; transform: translateY(-2px); }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border-color: rgba(255,255,255,0.6);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: #fff;
}
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; font-size: 0.875rem; }
.btn:disabled { opacity: 0.6; cursor: not-allowed; transform: none !important; }

/* Navigation */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: all var(--transition);
}
.navbar.scrolled {
  border-bottom-color: var(--border);
  box-shadow: var(--shadow);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
}
.logo-icon {
  width: 36px;
  height: 36px;
  background: var(--orange);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
}
.logo-text span { color: var(--orange); }
.logo-text em { color: var(--navy); font-style: normal; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text-secondary);
}
.nav-links a:hover, .nav-links a.active { color: var(--orange); }
.nav-actions { display: flex; align-items: center; gap: 12px; }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.hamburger span {
  width: 24px;
  height: 2px;
  background: var(--navy);
  transition: var(--transition);
  border-radius: 2px;
}
.hamburger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.hamburger.active span:nth-child(2) { opacity: 0; }
.hamburger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.mobile-menu {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: #fff;
  z-index: 999;
  padding: 24px;
  flex-direction: column;
  gap: 8px;
  transform: translateX(100%);
  transition: transform var(--transition);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu a {
  padding: 16px;
  font-size: 1.125rem;
  font-weight: 600;
  border-bottom: 1px solid var(--border);
}
.mobile-menu .nav-actions-mobile {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
}
.mobile-menu .nav-actions-mobile .btn { width: 100%; }

/* Hero */
.hero {
  padding: calc(var(--nav-height) + 80px) 0 80px;
  background: var(--bg-white);
  position: relative;
  overflow: hidden;
}
.hero-shape {
  position: absolute;
  top: -80px;
  right: -120px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(232, 97, 26, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-content h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin-bottom: 20px;
}
.hero-content p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  margin-bottom: 32px;
  max-width: 540px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; }
.hero-trust {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-bottom: 16px;
}
.trust-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.trust-pill {
  padding: 6px 14px;
  background: var(--bg-gray);
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}

/* Trusted logo strip */
.logo-strip-section {
  padding: 14px 0 26px;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: #fff;
}
.logo-strip-title {
  text-align: center;
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-secondary);
  margin-bottom: 14px;
}
.logo-strip-track-wrap {
  overflow: hidden;
  width: 100%;
  position: relative;
}
.logo-strip-track {
  display: flex;
  align-items: center;
  width: max-content;
  gap: 18px;
  animation: logoMarquee 30s linear infinite;
  padding: 8px 0;
}
.logo-item {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 150px;
  height: 64px;
  padding: 10px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}
.logo-item img {
  width: 120px;
  height: 40px;
  object-fit: contain;
  filter: none;
  opacity: 1;
  transition: transform var(--transition);
}
.logo-strip-track-wrap:hover .logo-strip-track {
  animation-play-state: paused;
}

.hero-visual {
  position: relative;
}
.hero-mockup {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
}
.mockup-bar {
  display: flex;
  gap: 6px;
  padding: 12px 16px;
  background: var(--bg-gray);
  border-bottom: 1px solid var(--border);
}
.mockup-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--border); }
.mockup-dot:nth-child(1) { background: #ff5f57; }
.mockup-dot:nth-child(2) { background: #febc2e; }
.mockup-dot:nth-child(3) { background: #28c840; }
.mockup-body { padding: 24px; }
.flow-diagram {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
}
.flow-box {
  flex: 1;
  padding: 16px;
  background: var(--bg-gray);
  border-radius: 8px;
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
}
.flow-arrow { color: var(--orange); font-size: 1.25rem; }
.doc-preview {
  padding: 20px;
  background: linear-gradient(135deg, var(--orange-light), #fff);
  border-radius: 8px;
  border: 1px dashed var(--orange);
}
.doc-preview h4 { font-size: 0.875rem; color: var(--orange); margin-bottom: 8px; }
.doc-line {
  height: 8px;
  background: var(--border);
  border-radius: 4px;
  margin-bottom: 8px;
}
.doc-line.short { width: 60%; }
.doc-line.medium { width: 80%; }

/* Stats bar */
.stats-bar {
  padding: 48px 0;
  background: var(--bg-gray);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  padding: 16px 24px;
  position: relative;
}
.stat-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0;
  top: 20%;
  height: 60%;
  width: 1px;
  background: var(--border);
}
.stat-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--orange);
  margin-bottom: 4px;
}
.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

/* Cards */
.card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(232, 97, 26, 0.2);
}
.card-icon {
  width: 48px;
  height: 48px;
  background: var(--orange-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
}
.card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.card p { font-size: 0.9375rem; color: var(--text-secondary); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-6 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

/* Solution section */
.solution-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-bullets { display: flex; flex-direction: column; gap: 20px; }
.feature-bullet {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.bullet-check {
  width: 28px;
  height: 28px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  flex-shrink: 0;
}
.feature-bullet strong { display: block; margin-bottom: 4px; }
.feature-bullet span { font-size: 0.9375rem; color: var(--text-secondary); }

/* How it works redesign */
.how-redesign-wrap {
  margin-top: 16px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 28px;
  align-items: stretch;
}
.how-minimal-flow {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
}
.how-flow-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.how-flow-step + .how-flow-step {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px dashed var(--border);
}
.how-flow-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--orange-light);
  border: 1px solid rgba(232, 97, 26, 0.35);
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
  flex-shrink: 0;
}
.how-flow-step strong {
  display: block;
  font-size: 0.95rem;
  color: var(--navy);
  margin-bottom: 2px;
}
.how-flow-step p {
  font-size: 0.85rem;
  color: var(--text-secondary);
}

.how-architecture-art {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
}
.art-trigger,
.art-engine,
.art-result {
  font-size: 0.9rem;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 10px;
  text-align: center;
}
.art-trigger {
  background: var(--orange-light);
  border: 1px solid rgba(232, 97, 26, 0.4);
  color: var(--orange);
}
.art-line {
  width: 2px;
  height: 20px;
  background: var(--border);
}
.art-engine {
  background: #f6f7fb;
  border: 1px solid var(--border);
  color: var(--navy);
}
.art-grid {
  margin-top: 12px;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.art-grid span {
  background: #fffaf7;
  border: 1px solid #f5d9c8;
  border-radius: 8px;
  font-size: 0.78rem;
  font-weight: 600;
  color: #7a4a28;
  text-align: center;
  padding: 9px 6px;
}
.art-result {
  margin-top: 12px;
  background: rgba(39, 174, 96, 0.1);
  border: 1px solid rgba(39, 174, 96, 0.35);
  color: #1f8f4e;
}
.art-tail {
  margin-top: 8px;
  font-size: 0.78rem;
  color: var(--text-secondary);
}

/* Steps */
.steps-container {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin-top: 48px;
}
.steps-line {
  position: absolute;
  top: 28px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.step-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 16px;
}
.step-num {
  width: 56px;
  height: 56px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  font-weight: 800;
  margin: 0 auto 20px;
  box-shadow: 0 4px 16px rgba(232, 97, 26, 0.3);
}
.step-item h4 { font-weight: 700; margin-bottom: 8px; }
.step-item p { font-size: 0.875rem; color: var(--text-secondary); }

/* Testimonials */
.testimonial-card .stars { color: #f59e0b; margin-bottom: 16px; letter-spacing: 2px; }
.testimonial-card blockquote {
  font-size: 1rem;
  line-height: 1.7;
  margin-bottom: 24px;
  font-style: italic;
  color: var(--text-primary);
}
.testimonial-author { font-weight: 700; font-size: 0.9375rem; }
.testimonial-role { font-size: 0.8125rem; color: var(--text-secondary); }

/* Integrations */
.integration-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.integration-pill {
  padding: 12px 20px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-weight: 600;
  font-size: 0.875rem;
  transition: all var(--transition);
}
.integration-pill:hover {
  border-color: var(--orange);
  background: var(--orange-light);
  transform: translateY(-2px);
}

/* Pricing cards preview */
.pricing-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}
.pricing-card {
  padding: 32px;
  text-align: center;
  position: relative;
}
.pricing-card.popular {
  border: 2px solid var(--orange);
  transform: scale(1.03);
}
.popular-badge {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--orange);
  color: #fff;
  padding: 4px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 700;
}
.pricing-card .price {
  font-size: 2rem;
  font-weight: 800;
  color: var(--navy);
  margin: 16px 0 8px;
}
.pricing-card .price span { font-size: 1rem; font-weight: 500; color: var(--text-secondary); }
.pricing-card .plan-desc { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 24px; }

/* CTA section */
.cta-section {
  background: var(--orange);
  padding: 80px 0;
  text-align: center;
}
.cta-section h2 {
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.cta-section p {
  color: rgba(255,255,255,0.85);
  font-size: 1.125rem;
  max-width: 600px;
  margin: 0 auto 32px;
}
.cta-buttons { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 40px; }
.trust-micro {
  display: flex;
  justify-content: center;
  gap: 32px;
  flex-wrap: wrap;
}
.trust-micro-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255,255,255,0.9);
  font-size: 0.875rem;
}

/* Footer */
.footer {
  background: var(--navy);
  color: rgba(255,255,255,0.8);
  padding: 64px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, 1fr);
  gap: 48px;
  padding-bottom: 48px;
}
.footer .logo-text em, .footer .logo-text span { color: #fff; }
.footer-desc { margin: 16px 0 24px; font-size: 0.875rem; line-height: 1.7; }
.social-links { display: flex; gap: 12px; }
.social-link {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--transition);
}
.social-link:hover { background: var(--orange); }
.footer h4 {
  color: #fff;
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}
.footer ul li { margin-bottom: 12px; }
.footer ul a {
  font-size: 0.875rem;
  transition: color var(--transition);
}
.footer ul a:hover { color: var(--orange); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 24px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 0.8125rem;
}
.footer-bottom-links { display: flex; gap: 24px; }
.footer-bottom-links a:hover { color: var(--orange); }

/* Video modal */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: rgba(26, 46, 68, 0.85);
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.video-modal.open { display: flex; }
.video-modal-content {
  background: #fff;
  border-radius: var(--radius-card);
  max-width: 900px;
  width: 100%;
  overflow: hidden;
  position: relative;
  animation: modalIn 0.4s ease;
}
.video-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 40px;
  height: 40px;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.25rem;
  z-index: 10;
}
.video-placeholder {
  aspect-ratio: 16/9;
  background: var(--bg-gray);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  color: var(--text-secondary);
}
.video-placeholder .play-big {
  width: 80px;
  height: 80px;
  background: var(--orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 2rem;
}

/* Forms */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 8px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  font-family: var(--font);
  font-size: 0.9375rem;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.form-control:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(232, 97, 26, 0.15);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-hint { font-size: 0.8125rem; color: var(--text-secondary); margin-top: 6px; }
.form-error { color: #e74c3c; font-size: 0.8125rem; margin-top: 6px; display: none; }
.form-error.show { display: block; }
.checkbox-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.875rem;
  cursor: pointer;
}
.checkbox-label input { width: 18px; height: 18px; accent-color: var(--orange); }

/* Page hero (inner pages) */
.page-hero {
  padding: calc(var(--nav-height) + 64px) 0 64px;
  background: var(--bg-gray);
  text-align: center;
}
.page-hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  margin-bottom: 16px;
}
.page-hero p {
  font-size: 1.125rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto;
}

/* Billing toggle */
.billing-toggle-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}
.billing-toggle {
  display: flex;
  background: var(--bg-gray);
  border-radius: 100px;
  padding: 4px;
  border: 1px solid var(--border);
}
.billing-toggle button {
  padding: 10px 24px;
  border: none;
  background: transparent;
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.9375rem;
  border-radius: 100px;
  cursor: pointer;
  transition: all var(--transition);
  color: var(--text-secondary);
}
.billing-toggle button.active {
  background: var(--orange);
  color: #fff;
  box-shadow: 0 2px 8px rgba(232, 97, 26, 0.3);
}
.save-badge {
  background: rgba(39, 174, 96, 0.15);
  color: var(--success);
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 700;
}

/* Comparison table */
.comparison-table-wrap { overflow-x: auto; margin-top: 48px; }
.comparison-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.comparison-table th,
.comparison-table td {
  padding: 14px 16px;
  border: 1px solid var(--border);
  text-align: center;
}
.comparison-table th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}
.comparison-table th:first-child,
.comparison-table td:first-child {
  text-align: left;
  font-weight: 600;
}
.comparison-table tr:nth-child(even) td { background: var(--bg-gray); }
.check { color: var(--success); font-weight: 700; }
.cross { color: #bbb; }

/* Checkout */
.checkout-progress {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.progress-step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-secondary);
}
.progress-step.active { color: var(--orange); }
.progress-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--bg-gray);
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
}
.progress-step.active .progress-dot,
.progress-step.done .progress-dot {
  background: var(--orange);
  border-color: var(--orange);
  color: #fff;
}
.progress-step.done .progress-dot { background: var(--success); border-color: var(--success); }
.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: 48px;
  align-items: start;
}
.checkout-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 32px;
  box-shadow: var(--shadow);
}
.checkout-step { display: none; }
.checkout-step.active { display: block; animation: fadeUp 0.4s ease; }
.order-summary {
  position: sticky;
  top: calc(var(--nav-height) + 24px);
}
.summary-row {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}
.summary-row.total {
  font-weight: 800;
  font-size: 1.25rem;
  border-bottom: none;
  padding-top: 16px;
  color: var(--navy);
}
.coupon-row { display: flex; gap: 8px; margin: 16px 0; }
.coupon-row input { flex: 1; }

.payment-methods-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}
.payment-tab {
  padding: 10px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-btn);
  background: #fff;
  cursor: pointer;
  font-weight: 600;
  font-size: 0.8125rem;
  transition: all var(--transition);
}
.payment-tab.active {
  border-color: var(--orange);
  background: var(--orange-light);
  color: var(--orange);
}
.payment-panel { display: none; }
.payment-panel.active { display: block; }
.card-icons { display: flex; gap: 8px; margin-bottom: 16px; }
.card-icon-badge {
  padding: 4px 10px;
  background: var(--bg-gray);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
}
.secure-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  background: var(--bg-gray);
  border-radius: 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary);
  margin-top: 16px;
}

/* FAQ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  width: 100%;
  padding: 20px 24px;
  background: #fff;
  border: none;
  text-align: left;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background var(--transition);
}
.faq-question:hover { background: var(--bg-gray); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}
.faq-answer-inner {
  padding: 0 24px 20px;
  color: var(--text-secondary);
  font-size: 0.9375rem;
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; }
.faq-icon { transition: transform var(--transition); color: var(--orange); }
.faq-item.open .faq-icon { transform: rotate(45deg); }

/* Blog */
.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 48px;
}
.filter-pill {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  background: #fff;
  transition: all var(--transition);
}
.filter-pill.active, .filter-pill:hover {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.blog-card { overflow: hidden; padding: 0; }
.blog-card-image {
  height: 180px;
  background: linear-gradient(135deg, var(--orange-light), var(--bg-gray));
}
.blog-card-body { padding: 24px; }
.blog-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--orange-light);
  color: var(--orange);
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 700;
  margin-bottom: 12px;
}
.blog-card h3 { font-size: 1.125rem; margin-bottom: 8px; line-height: 1.4; }
.blog-card .meta { font-size: 0.8125rem; color: var(--text-secondary); margin-bottom: 12px; }
.blog-card p { font-size: 0.875rem; color: var(--text-secondary); margin-bottom: 16px; }
.read-more { color: var(--orange); font-weight: 600; font-size: 0.875rem; }
.read-more:hover { text-decoration: underline; }

/* CLM + AFS platform page */
.platform-hero {
  background: linear-gradient(180deg, var(--bg-gray) 0%, #fff 100%);
}
.platform-eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--orange);
  margin-bottom: 12px;
}
.platform-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.platform-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
.platform-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.platform-split-reverse {
  direction: rtl;
}
.platform-split-reverse > * {
  direction: ltr;
}

.ecosystem-flow {
  display: flex;
  align-items: stretch;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
  flex-wrap: wrap;
}
.eco-node {
  flex: 1;
  min-width: 220px;
  max-width: 280px;
  padding: 28px 24px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  text-align: center;
}
.eco-node h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--navy);
  margin: 8px 0 12px;
}
.eco-node p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.eco-badge {
  display: inline-block;
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 100px;
  background: var(--orange-light);
  color: var(--orange);
}
.eco-afs { border-top: 3px solid var(--orange); }
.eco-doctiger {
  border-top: 3px solid var(--navy);
  background: linear-gradient(180deg, #fff 0%, var(--orange-light) 100%);
}
.eco-clm { border-top: 3px solid var(--success); }
.eco-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  min-width: 80px;
}
.eco-arrow {
  font-size: 1.5rem;
  color: var(--orange);
  font-weight: 700;
}
.eco-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.welcome-kit-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 40px;
}
.kit-doc {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.kit-doc:hover {
  border-color: var(--orange);
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}
.kit-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}
.kit-doc strong {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.3;
}
.kit-note {
  margin-top: 28px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.afs-pipeline {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow);
}
.pipe-step {
  padding: 16px 20px;
  background: var(--bg-gray);
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.9375rem;
  display: flex;
  align-items: center;
  gap: 12px;
}
.pipe-step span {
  width: 28px;
  height: 28px;
  background: var(--navy);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 800;
}
.pipe-highlight {
  background: var(--orange-light);
  border: 1px solid rgba(232, 97, 26, 0.35);
  color: var(--orange);
}
.pipe-highlight span { background: var(--orange); }
.pipe-arrow {
  text-align: center;
  color: var(--orange);
  font-size: 1.25rem;
  padding: 8px 0;
}

.clm-workflow-visual {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.clm-stage {
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--border);
  border-radius: 10px;
  box-shadow: var(--shadow);
}
.clm-stage strong {
  display: block;
  font-size: 1rem;
  color: var(--navy);
  margin-bottom: 4px;
}
.clm-stage p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}
.active-clm { border-left-color: var(--orange); background: var(--orange-light); }
.clm-final { border-left-color: var(--success); background: rgba(39, 174, 96, 0.08); }

.lifecycle-timeline {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 48px;
  position: relative;
}
.lifecycle-timeline::before {
  content: '';
  position: absolute;
  top: 24px;
  left: 8%;
  right: 8%;
  height: 2px;
  background: var(--border);
  z-index: 0;
}
.lt-item {
  flex: 1;
  text-align: center;
  position: relative;
  z-index: 1;
  padding: 0 8px;
}
.lt-num {
  width: 48px;
  height: 48px;
  margin: 0 auto 16px;
  background: var(--orange);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.875rem;
  font-weight: 800;
  box-shadow: 0 4px 12px rgba(232, 97, 26, 0.3);
}
.lt-item h4 {
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 6px;
}
.lt-item p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.benefit-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all var(--transition);
}
.benefit-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232, 97, 26, 0.3);
}
.benefit-icon {
  font-size: 2rem;
  margin-bottom: 16px;
}
.benefit-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--navy);
}
.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* Homepage platform teaser */
.platform-teaser {
  background: linear-gradient(135deg, var(--navy) 0%, #243d57 100%);
  color: #fff;
  padding: 72px 0;
}
.platform-teaser .section-title { color: #fff; }
.platform-teaser .section-subtitle { color: rgba(255,255,255,0.8); }
.platform-teaser-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin: 28px 0 32px;
}
.platform-teaser-pills span {
  padding: 8px 14px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 100px;
  font-size: 0.8125rem;
  font-weight: 600;
}

/* Case studies */
.case-study-hero {
  padding: calc(var(--nav-height) + 48px) 0 48px;
  background: var(--bg-gray);
}
.results-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin: 32px 0;
}
.result-stat {
  text-align: center;
  padding: 24px;
  background: var(--orange-light);
  border-radius: var(--radius-card);
}
.result-stat .num {
  font-size: 2rem;
  font-weight: 800;
  color: var(--orange);
}

/* Toast notifications */
.toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 3000;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.toast {
  padding: 16px 24px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-btn);
  box-shadow: var(--shadow-lg);
  animation: slideInRight 0.4s ease;
  max-width: 360px;
  font-size: 0.9375rem;
}
.toast.success { background: var(--success); }
.toast.error { background: #e74c3c; }

/* Loading spinner */
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255,255,255,0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Feature page sections */
.feature-section {
  padding: 64px 0;
  border-bottom: 1px solid var(--border);
}
.feature-section:nth-child(even) { background: var(--bg-gray); }
.feature-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.feature-screenshot {
  background: #fff;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  overflow: hidden;
  line-height: 0;
}
.feature-screenshot img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: contain;
}
.clause-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 24px;
  font-size: 0.875rem;
}
.clause-table th, .clause-table td {
  padding: 12px;
  border: 1px solid var(--border);
  text-align: left;
}
.clause-table th { background: var(--navy); color: #fff; }

/* Onboarding */
.onboarding-steps { max-width: 560px; margin: 0 auto; }
.success-page { text-align: center; padding: 48px 0; }
.success-icon {
  width: 80px;
  height: 80px;
  background: var(--success);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  margin: 0 auto 24px;
}

/* Responsive */
.pricing-four-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 1024px) {
  .solution-grid, .feature-detail-grid { grid-template-columns: 1fr; }
  .grid-6 { grid-template-columns: repeat(2, 1fr); }
  .pricing-four-grid { grid-template-columns: repeat(2, 1fr); }
  .how-redesign-wrap { grid-template-columns: 1fr; }
  .pricing-preview-grid { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .pricing-card.popular { transform: none; }
  .checkout-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .section { padding: 64px 0; }
  .hero-grid {
    grid-template-columns: 1fr 1fr;
    gap: 20px;
  }
  .hero-content h1 { font-size: clamp(1.25rem, 4vw, 2rem); }
  .hero-content p { font-size: 0.875rem; margin-bottom: 16px; }
  .hero-ctas { gap: 8px; margin-bottom: 12px; }
  .hero-ctas .btn { padding: 10px 14px; font-size: 0.8125rem; }
  .pricing-four-grid { grid-template-columns: 1fr; }
  .nav-links, .nav-actions { display: none; }
  .hamburger { display: flex; }
  .mobile-menu { display: flex; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2)::after { display: none; }
  .grid-3, .grid-2, .grid-6, .blog-grid { grid-template-columns: 1fr; }
  .steps-container { flex-direction: column; gap: 32px; }
  .steps-line { display: none; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .results-grid { grid-template-columns: 1fr; }
  .art-grid { grid-template-columns: 1fr 1fr; }
  .logo-item { min-width: 132px; height: 56px; padding: 8px 12px; }
  .logo-item img { width: 98px; height: 34px; }
}

@media (max-width: 480px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item::after { display: none !important; }
  .hero-ctas { flex-direction: column; }
  .hero-ctas .btn { width: 100%; }
}
