/* Dexzyle marketing site — shared styles
   Visual system adopted from docs/marketing/droid_landing.html (AWS-dexzyle-production repo):
   blue #2563eb primary + teal #0d9488 accent, Inter, gradient hero, rounded cards. */

@font-face {
  font-family: 'Space Grotesk';
  src: url('../fonts/space-grotesk-600-wordmark.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #2563eb;
  --primary-light: #3b82f6;
  --primary-dark: #1d4ed8;
  --primary-50: #eff6ff;
  --primary-100: #dbeafe;
  --accent: #0d9488;
  --accent-light: #14b8a6;
  --text: #0f172a;
  --text-secondary: #475569;
  --text-tertiary: #94a3b8;
  --bg: #ffffff;
  --bg-alt: #f8fafc;
  --bg-dark: #0f172a;
  --border: #e2e8f0;
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
  --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
  --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.1), 0 2px 4px -2px rgba(0,0,0,0.1);
  --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
  --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.1);
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  color: var(--text);
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

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

h1, h2, h3 {
  text-wrap: balance;
}

/* ── Navigation ── */
nav.site-nav {
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 0;
  position: sticky;
  top: 0;
  z-index: 100;
  transition: box-shadow var(--transition);
}

nav.site-nav.scrolled {
  box-shadow: var(--shadow-md);
}

nav.site-nav .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  font-family: 'Space Grotesk', 'Inter', sans-serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}

.logo span {
  line-height: 1;
  white-space: nowrap;
}

.logo img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  gap: 36px;
  list-style: none;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: color var(--transition);
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a[aria-current="page"] {
  color: var(--primary);
}

.nav-links a:hover::after,
.nav-links a[aria-current="page"]::after {
  width: 100%;
}

.nav-toggle {
  display: none;
  background: none;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 8px 10px;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: 10px;
  font-weight: 600;
  text-decoration: none;
  transition: all var(--transition);
  cursor: pointer;
  border: none;
  font-size: 15px;
  line-height: 1.25;
  white-space: nowrap;
  font-family: inherit;
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: 0 1px 2px rgba(37,99,235,0.3), inset 0 1px 0 rgba(255,255,255,0.1);
}

.btn-primary:hover {
  background: var(--primary-dark);
  box-shadow: 0 4px 12px rgba(37,99,235,0.4);
  transform: translateY(-1px);
}

.btn-secondary {
  background: var(--primary-50);
  color: var(--primary);
}

.btn-secondary:hover {
  background: var(--primary-100);
}

.btn-outline {
  border: 1.5px solid var(--border);
  color: var(--text-secondary);
  background: white;
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-50);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 16px;
  border-radius: var(--radius);
}

/* Nav CTA sits inside the sticky bar — keep it a quiet 36px pill */
nav.site-nav .btn {
  padding: 8px 16px;
  font-size: 14px;
}

.btn[disabled] {
  opacity: 0.6;
  cursor: default;
  transform: none;
}

/* ── Hero (homepage) ── */
.hero {
  padding: 80px 0 120px;
  background: linear-gradient(160deg, var(--primary-50) 0%, #f0fdf4 50%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(37,99,235,0.06) 0%, transparent 70%);
  border-radius: 50%;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -10%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(13,148,136,0.05) 0%, transparent 70%);
  border-radius: 50%;
}

.hero .container {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 64px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.hero-badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.hero h1 {
  font-size: clamp(30px, 3.4vw + 6px, 46px);
  line-height: 1.12;
  margin-bottom: 20px;
  color: var(--text);
  letter-spacing: -0.02em;
  font-weight: 800;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-sub {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  line-height: 1.7;
  max-width: 520px;
}

.hero-buttons {
  display: flex;
  gap: 12px;
  margin-bottom: 48px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 14px;
}

.hero-trust-avatars {
  display: flex;
}

.hero-trust-avatars span {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 600;
  margin-left: -8px;
  color: white;
}

.hero-trust-avatars span:first-child { margin-left: 0; background: var(--primary); }
.hero-trust-avatars span:nth-child(2) { background: var(--accent); }
.hero-trust-avatars span:nth-child(3) { background: #7c3aed; }

/* Hero chat card */
.hero-visual {
  position: relative;
}

.hero-card {
  background: white;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  padding: 28px;
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.hero-card-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 600;
  flex-shrink: 0;
}

.hero-card-name {
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 2px;
}

.hero-card-role {
  font-size: 13px;
  color: var(--text-tertiary);
}

.hero-card-body {
  background: var(--bg-alt);
  border-radius: var(--radius);
  padding: 16px;
  margin-bottom: 12px;
}

.hero-card-body.reply {
  background: var(--primary-50);
}

.hero-card-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.hero-card-body strong {
  color: var(--text);
}

.hero-card-attachment {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 6px 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
}

.hero-card-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.hero-card-status span {
  border: 1px solid var(--border);
  border-radius: 100px;
  font-size: 12px;
  color: var(--text-secondary);
  padding: 4px 12px;
}

.hero-card-status .done {
  color: var(--accent);
  border-color: rgba(13,148,136,0.3);
  background: rgba(13,148,136,0.06);
}

/* ── Page hero (subpages) ── */
.page-hero {
  padding: 72px 0 56px;
  background: linear-gradient(160deg, var(--primary-50) 0%, #f0fdf4 60%, var(--bg) 100%);
  position: relative;
  overflow: hidden;
}

.page-hero h1 {
  font-size: clamp(28px, 2.8vw + 8px, 40px);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.15;
  margin-bottom: 16px;
  max-width: 720px;
}

.page-hero p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 640px;
  line-height: 1.7;
}

/* ── Sections ── */
.section {
  padding: 100px 0;
}

.section.alt {
  background: var(--bg-alt);
}

.section-header {
  text-align: center;
  margin-bottom: 64px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--primary-50);
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: clamp(26px, 2.8vw + 6px, 40px);
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  font-weight: 800;
}

.section-header p {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 620px;
  margin: 0 auto;
}

/* ── How it works steps ── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 48px;
  position: relative;
}

.steps::before {
  content: '';
  position: absolute;
  top: 28px;
  left: 16%;
  right: 16%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary-100), var(--primary), var(--primary-100));
}

.step {
  text-align: center;
  position: relative;
}

.step-number {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 4px 12px rgba(37,99,235,0.3);
  position: relative;
  z-index: 2;
}

.step h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.step p {
  color: var(--text-secondary);
  font-size: 15px;
  max-width: 300px;
  margin: 0 auto;
}

/* ── Feature / pillar cards ── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  opacity: 0;
  transition: opacity var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-accent {
  width: 32px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 16px;
}

.feature-accent.blue { background: var(--primary); }
.feature-accent.teal { background: var(--accent); }
.feature-accent.purple { background: #7c3aed; }
.feature-accent.amber { background: #b45309; }
.feature-accent.indigo { background: #4338ca; }
.feature-accent.emerald { background: #059669; }

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
}

/* ── Problem cards ── */
.problems-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.problem-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  transition: all var(--transition);
  background: white;
}

.problem-card:hover {
  border-color: var(--primary-100);
  background: var(--primary-50);
}

.problem-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #dc2626;
  flex-shrink: 0;
  margin-top: 9px;
}

.problem-card h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
}

.problem-card p {
  color: var(--text-secondary);
  font-size: 14px;
}

.problem-card .solution {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
}

/* ── Workflow example cards ── */
.workflows-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.workflow-card.wide {
  grid-column: 1 / -1;
}

.workflow-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--border);
  transition: all var(--transition);
}

.workflow-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.workflow-accent {
  width: 40px;
  height: 3px;
  border-radius: 2px;
  margin-bottom: 20px;
}

.workflow-accent.provider { background: #7c3aed; }
.workflow-accent.pharmacy { background: var(--primary); }
.workflow-accent.fax { background: #4338ca; }
.workflow-accent.facility { background: #059669; }
.workflow-accent.broadcast { background: var(--accent); }

.workflow-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  font-weight: 700;
}

.workflow-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.workflow-who {
  display: inline-block;
  margin-top: 16px;
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  background: var(--bg-alt);
  color: var(--text-secondary);
}

/* ── Integrations ── */
.integrations-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.integrations-split h2 {
  font-size: clamp(26px, 2.8vw + 6px, 40px);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.integrations-split .lede {
  color: var(--text-secondary);
  font-size: 18px;
  margin-bottom: 36px;
}

.integration-list {
  list-style: none;
}

.integration-list li {
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 14px;
  transition: padding-left var(--transition);
}

.integration-list li:hover {
  padding-left: 8px;
}

.integration-list li:last-child {
  border-bottom: none;
}

.integration-icon {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.integration-icon.ehr { background: #059669; }
.integration-icon.hl7 { background: #2563eb; }
.integration-icon.doc { background: #b45309; }
.integration-icon.fax { background: #4338ca; }
.integration-icon.aws { background: #7c3aed; }

.integration-name {
  font-weight: 600;
  font-size: 15px;
}

.integration-desc {
  font-size: 13px;
  color: var(--text-tertiary);
}

/* Marketplace badge card */
.marketplace-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  text-align: center;
  box-shadow: var(--shadow-md);
}

.marketplace-card img {
  width: 240px;
  max-width: 100%;
  height: auto;
  margin: 0 auto 20px;
  display: block;
}

.marketplace-card p {
  font-size: 14px;
  color: var(--text-secondary);
  max-width: 380px;
  margin: 0 auto;
}

/* Integration category cards (integrations page) */
.category-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.category-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all var(--transition);
}

.category-card:hover {
  box-shadow: var(--shadow-md);
}

.category-card .kicker {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-tertiary);
  margin-bottom: 10px;
}

.category-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 10px;
}

.category-card p {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.7;
}

.category-card ul {
  list-style: none;
  margin-top: 14px;
}

.category-card ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 4px 0;
}

.category-card ul li::before {
  content: '\2014\00a0';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.category-card img.badge {
  width: 200px;
  height: auto;
  margin-top: 18px;
}

/* ── Security ── */
.security {
  padding: 100px 0;
  background: var(--bg-dark);
  color: white;
  position: relative;
  overflow: hidden;
}

.security::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37,99,235,0.1) 0%, transparent 50%, rgba(13,148,136,0.08) 100%);
}

.security .container {
  position: relative;
  z-index: 1;
}

.security .section-header h2 {
  color: white;
}

.security .section-header p {
  color: rgba(255,255,255,0.6);
}

.security .section-label {
  background: rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.8);
}

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

.security-item {
  text-align: center;
  padding: 32px 20px;
  background: rgba(255,255,255,0.04);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255,255,255,0.08);
  transition: all var(--transition);
}

.security-item:hover {
  background: rgba(255,255,255,0.08);
  border-color: rgba(255,255,255,0.15);
  transform: translateY(-2px);
}

.security-item h4 {
  font-size: 16px;
  margin-bottom: 6px;
  font-weight: 700;
  color: var(--accent-light);
}

.security-item p {
  font-size: 13px;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.security .footnote {
  margin-top: 40px;
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,0.4);
}

/* Security page detail rows */
.security-detail {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 24px;
  padding: 28px 0;
  border-bottom: 1px solid var(--border);
}

.security-detail:last-child {
  border-bottom: none;
}

.security-detail h3 {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
}

.security-detail p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.7;
}

/* ── CTA ── */
.cta {
  padding: 120px 0;
  text-align: center;
  background: linear-gradient(160deg, var(--primary-50) 0%, #f0fdf4 50%, var(--bg) 100%);
}

.cta h2 {
  font-size: clamp(28px, 3vw + 8px, 44px);
  margin-bottom: 16px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.cta p {
  font-size: 19px;
  color: var(--text-secondary);
  margin-bottom: 36px;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

/* ── Contact form ── */
.contact-wrap {
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 64px;
  align-items: start;
}

.contact-aside h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
}

.contact-aside p {
  color: var(--text-secondary);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
}

.contact-aside ul {
  list-style: none;
}

.contact-aside ul li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 15px;
  color: var(--text-secondary);
  padding: 5px 0;
}

.contact-aside ul li::before {
  content: '\2014\00a0';
  color: var(--accent);
  font-weight: 600;
  flex-shrink: 0;
}

.contact-form {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-lg);
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-field {
  margin-bottom: 18px;
}

.form-field label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 6px;
}

.form-field label .optional {
  color: var(--text-tertiary);
  font-weight: 500;
}

.form-field input,
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  font-size: 15px;
  font-family: inherit;
  color: var(--text);
  background: white;
  transition: border-color var(--transition), box-shadow var(--transition);
}

.form-field input:focus,
.form-field select:focus,
.form-field textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37,99,235,0.12);
}

.form-field textarea {
  resize: vertical;
  min-height: 110px;
}

.checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  border: 1.5px solid var(--border);
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  transition: all var(--transition);
  margin-bottom: 0;
}

.checkbox-grid label:hover {
  border-color: var(--primary-100);
  background: var(--primary-50);
}

.checkbox-grid input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
}

.form-status {
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  display: none;
}

.form-status.success {
  display: block;
  background: #d1fae5;
  color: #065f46;
}

.form-status.error {
  display: block;
  background: #fee2e2;
  color: #991b1b;
}

/* ── Pricing ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: stretch;
}

.pricing-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px 28px;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: all var(--transition);
}

.pricing-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.pricing-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-lg);
}

.pricing-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: white;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 14px;
  border-radius: 100px;
  white-space: nowrap;
}

.pricing-name {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.pricing-price {
  font-size: 42px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1;
}

.pricing-period {
  font-size: 13px;
  color: var(--text-tertiary);
  margin: 6px 0 14px;
}

.pricing-desc {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
  margin-bottom: 18px;
}

.pricing-features {
  list-style: none;
  margin-bottom: 26px;
  flex: 1;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  padding: 5px 0;
}

.pricing-features li::before {
  content: '✓';
  color: var(--accent);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── Onboarding form ── */
.onboard-wrap {
  max-width: 760px;
  margin: 0 auto;
}

.contact-form fieldset {
  border: none;
  padding: 0;
  margin: 0 0 10px;
}

.contact-form legend {
  font-size: 17px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 16px;
  padding-top: 6px;
}

.checkbox-field {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 6px 0 22px;
}

.checkbox-field input {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  flex-shrink: 0;
  margin-top: 3px;
}

.checkbox-field label {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.email-wrapper {
  position: relative;
}

.email-wrapper input {
  padding-right: 40px;
}

.email-validation-icon {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  font-weight: 700;
  display: none;
}

.email-validation-icon.valid { display: block; color: #059669; }
.email-validation-icon.invalid { display: block; color: #dc2626; }

.email-wrapper input.valid { border-color: #059669; }
.email-wrapper input.invalid { border-color: #dc2626; }

.field-helper {
  font-size: 12px;
  color: var(--text-tertiary);
  margin-top: 5px;
}

.field-helper.valid { color: #059669; }
.field-helper.invalid { color: #dc2626; }

.spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 8px;
  border: 2px solid rgba(255,255,255,0.4);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: -2px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

/* ── Modals ── */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 200;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: white;
  border-radius: var(--radius-lg);
  max-width: 480px;
  width: 100%;
  padding: 32px;
  box-shadow: var(--shadow-xl);
  animation: modalSlideIn 0.25s ease-out;
}

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

.modal h2 {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 10px;
}

.modal p {
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
  margin-bottom: 22px;
}

.modal-success h2 { color: var(--accent); }
.modal-error h2 { color: #dc2626; }

.modal-actions {
  display: flex;
  justify-content: flex-end;
}

/* Honeypot — invisible to people, present for bots */
.hp-field {
  position: absolute;
  left: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

/* ── Small print / notices ── */
.notice {
  font-size: 13px;
  color: var(--text-tertiary);
  max-width: 720px;
  margin: 32px auto 0;
  text-align: center;
  line-height: 1.6;
}

/* ── Footer ── */
footer {
  background: var(--bg-dark);
  padding: 60px 0 30px;
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand .logo {
  color: white;
}

.footer-brand p {
  color: rgba(255,255,255,0.4);
  margin-top: 14px;
  font-size: 14px;
  max-width: 280px;
}

.footer-brand img.badge {
  width: 180px;
  height: auto;
  margin-top: 22px;
  display: block;
}

.footer-col h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 16px;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 10px;
}

.footer-col ul a {
  color: rgba(255,255,255,0.4);
  text-decoration: none;
  font-size: 14px;
  transition: color var(--transition);
}

.footer-col ul a:hover {
  color: white;
}

.footer-bottom {
  text-align: center;
  padding-top: 30px;
  border-top: 1px solid rgba(255,255,255,0.08);
  font-size: 13px;
  color: rgba(255,255,255,0.3);
}

.footer-legal-links {
  margin-bottom: 10px;
}

.footer-legal-links a {
  color: rgba(255,255,255,0.5);
  text-decoration: none;
}

.footer-legal-links a:hover {
  color: white;
}

/* ── Legal pages ── */
.legal-content {
  max-width: 800px;
}

.legal-content h2 {
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 36px 0 12px;
}

.legal-content h2:first-child {
  margin-top: 0;
}

.legal-content p {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.75;
  margin-bottom: 14px;
  overflow-wrap: break-word;
}

.legal-notice {
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius);
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-secondary);
  margin-bottom: 32px;
}

/* ── Animations ── */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .fade-in { opacity: 1; transform: none; transition: none; }
  .hero-badge-dot { animation: none; }
  * { transition-duration: 0.01ms !important; }
}

/* ── Responsive ── */
@media (max-width: 968px) {
  .hero .container,
  .integrations-split,
  .contact-wrap {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .hero-visual {
    max-width: 500px;
    margin: 0 auto;
  }

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

  .problems-grid,
  .category-grid,
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .pricing-card.featured {
    order: -1;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
  }

  .steps::before {
    display: none;
  }

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

  .security-detail {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .nav-links {
    display: none;
  }

  .nav-toggle {
    display: block;
  }

  nav.site-nav.open .nav-links {
    display: flex;
    flex-direction: column;
    gap: 0;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-lg);
    padding: 8px 0;
  }

  nav.site-nav.open .nav-links a {
    display: block;
    padding: 14px 24px;
  }

  nav.site-nav.open .nav-links a::after {
    display: none;
  }
}

@media (max-width: 640px) {
  .hero {
    padding: 48px 0 80px;
  }

  .hero-sub {
    font-size: 16px;
  }

  .logo {
    font-size: 19px;
    gap: 8px;
  }

  .logo img {
    height: 26px;
  }

  .hero-buttons,
  .cta-buttons {
    flex-direction: column;
    align-items: stretch;
  }

  .features-grid,
  .workflows-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .security-grid,
  .checkbox-grid,
  .form-row {
    grid-template-columns: 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .section {
    padding: 64px 0;
  }

  .contact-form {
    padding: 24px;
  }
}
