/* CleanForm splash — Improvement Pass 2 */

.hero-accent {
  color: var(--teal-600, #0d9488);
  font-style: normal;
  font-weight: inherit;
}

.cf-eyebrow {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--teal-600, #0d9488);
  margin-bottom: 10px;
  font-weight: 600;
}

.hero--clean .hero__actions .btn--primary {
  font-weight: 600;
}

/* PDF demo */
.pdf-demo-section {
  padding: 88px 0;
  background: #f8fafc;
}

.pdf-demo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.pdf-demo__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.pdf-demo__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
}

.pdf-demo__head p {
  color: var(--slate-600, #64748b);
  font-size: 1rem;
  line-height: 1.65;
}

.upload-zone {
  position: relative;
  border: 2px dashed #d1d5db;
  border-radius: 12px;
  padding: 48px 32px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
  background: #fff;
}

.upload-zone:hover,
.upload-zone:focus-within {
  border-color: var(--teal-600, #0d9488);
  background: #f0fdf4;
}

.upload-zone--drag {
  border-color: var(--teal-600, #0d9488);
  background: #ecfdf5;
}

.upload-error {
  border: 1px solid #fecaca;
  border-radius: 12px;
  padding: 36px;
  background: #fef2f2;
  text-align: center;
}

.upload-error-title {
  font-weight: 700;
  color: #b91c1c;
  margin-bottom: 8px;
}

.upload-error-msg {
  font-size: 0.88rem;
  color: #7f1d1d;
  margin-bottom: 16px;
}

.result-form-name:empty {
  display: none;
}

.upload-icon { font-size: 2.5rem; margin-bottom: 12px; }
.upload-label { font-size: 0.95rem; font-weight: 600; color: #111827; margin-bottom: 6px; }
.upload-link { color: var(--teal-600, #0d9488); text-decoration: underline; cursor: pointer; }
.upload-sub { font-size: 0.8rem; color: #9ca3af; }

.upload-input-hidden {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.upload-processing,
.upload-result {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 36px;
  background: #fff;
}

.processing-spinner {
  width: 36px;
  height: 36px;
  border: 3px solid #e5e7eb;
  border-top-color: var(--teal-600, #0d9488);
  border-radius: 50%;
  animation: cf-spin 0.8s linear infinite;
  margin: 0 auto 16px;
}

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

.processing-label { text-align: center; font-weight: 600; color: #111827; margin-bottom: 8px; }
.processing-steps { margin-top: 16px; }
.step-line { font-size: 0.85rem; padding: 6px 0; color: #9ca3af; }
.step-line.step-done { color: var(--teal-600, #0d9488); font-weight: 600; }
.step-line.step-active { color: #111827; font-weight: 600; }

.result-badge {
  display: inline-block;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.result-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.result-stat {
  background: #f8fafc;
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.stat-num { display: block; font-size: 1.8rem; font-weight: 800; color: #111827; }
.stat-label { font-size: 0.75rem; color: #6b7280; }
.result-note { font-size: 0.78rem; color: #9ca3af; text-align: center; }
.btn-reset {
  display: block;
  width: 100%;
  margin-top: 10px;
  background: none;
  border: none;
  color: #9ca3af;
  font-size: 0.8rem;
  cursor: pointer;
  text-decoration: underline;
}

.pdf-flow { display: flex; flex-direction: column; gap: 0; }
.pdf-flow-step {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  position: relative;
}

.flow-icon {
  width: 44px;
  height: 44px;
  background: #fff;
  border: 2px solid #e5e7eb;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  z-index: 1;
}

.flow-content { padding: 10px 0 24px; }
.flow-label { font-size: 0.9rem; font-weight: 700; color: #111827; }
.flow-sub { font-size: 0.78rem; color: #6b7280; margin-top: 2px; }

.flow-connector {
  position: absolute;
  left: 21px;
  top: 44px;
  width: 2px;
  height: calc(100% - 20px);
  background: linear-gradient(to bottom, #d1d5db, transparent);
}

/* Trust bar */
.trust-bar {
  background: #f8fafc;
  border-top: 1px solid #e5e7eb;
  border-bottom: 1px solid #e5e7eb;
  padding: 32px 0;
  text-align: center;
}

.trust-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #9ca3af;
  font-weight: 600;
  margin-bottom: 16px;
}

.trust-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 28px;
}

.trust-badge {
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 20px;
  padding: 5px 14px;
  font-size: 0.78rem;
  color: #374151;
  font-weight: 500;
}

.trust-stats {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
}

.trust-stat {
  padding: 0 32px;
  border-right: 1px solid #e5e7eb;
  text-align: center;
}

.trust-stat:last-child { border-right: none; }

.ts-num {
  display: block;
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
}

.ts-label {
  font-size: 0.72rem;
  color: #9ca3af;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Security enterprise */
.security-section {
  padding: 88px 0;
  background: #fff;
}

.security-section__grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

.security-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 28px;
}

.security-feature {
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 20px;
  border-top: 3px solid var(--teal-600, #0d9488);
  background: #fff;
}

.security-feature h4 { font-size: 0.9rem; font-weight: 700; margin-bottom: 6px; }
.security-feature p { font-size: 0.82rem; color: #6b7280; line-height: 1.5; }
.security-feature .sf-icon { font-size: 1.25rem; margin-bottom: 8px; }

.security-mockup {
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 12px;
  padding: 28px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.82rem;
  line-height: 1.7;
}

.security-mockup h3 {
  font-family: var(--sans, 'DM Sans', sans-serif);
  font-size: 1rem;
  margin-bottom: 16px;
  color: #fff;
}

.security-mockup .sm-row { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.security-mockup .sm-ok { color: #22c55e; }
.security-mockup .sm-divider { border-top: 1px solid rgba(255,255,255,0.1); margin: 16px 0; }
.security-mockup .sm-btn {
  display: block;
  margin-top: 8px;
  color: var(--teal-400, #2dd4bf);
  text-decoration: none;
}

.compliance-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
  justify-content: center;
}

/* ROI punchy */
.roi-section {
  padding: 88px 0;
  background: #0f172a;
  color: #fff;
}

.roi-section .section-head__eyebrow { color: var(--teal-400, #2dd4bf); }
.roi-section h2 { color: #fff; }

.roi-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin: 40px 0 32px;
}

.roi-stat-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 32px;
  text-align: center;
}

.roi-stat-card .roi-num {
  font-size: 3rem;
  font-weight: 800;
  color: var(--teal-400, #2dd4bf);
  line-height: 1;
}

.roi-stat-card .roi-label {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
  margin-top: 12px;
  line-height: 1.45;
}

.roi-bullets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin-bottom: 32px;
}

.roi-bullets ul { list-style: none; padding: 0; margin: 0; }
.roi-bullets li {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.75);
  padding: 6px 0 6px 1.25rem;
  position: relative;
}

.roi-bullets li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #22c55e;
  font-weight: 700;
}

.roi-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}

.btn-outline-white {
  background: transparent;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  color: #fff;
  padding: 13px 30px;
  border-radius: 7px;
  font-weight: 600;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.btn-outline-white:hover {
  border-color: #fff;
}

/* Integrations — card + pill grid (matches features section) */
.integrations-section {
  padding: 88px 0;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
}

.integrations__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 40px;
}

.integrations__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  height: 100%;
}

.integrations__card h3 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--slate-500, #64748b);
  margin-bottom: 12px;
}

.integrations__pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.integrations__pill {
  display: inline-block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--navy-800, #1e3a5f);
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  line-height: 1.3;
}

.integrations__cta {
  text-align: center;
  margin-top: 36px;
}

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

@media (max-width: 640px) {
  .integrations__grid { grid-template-columns: 1fr; }
}

/* How-it-works animation */
.steps__grid--animated {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.steps__grid--animated .step {
  flex: 1;
}

.step-connector {
  flex: 0 0 40px;
  align-self: center;
  position: relative;
  height: 2px;
  background: #e5e7eb;
  margin: 0 4px;
  overflow: hidden;
}

.step-connector::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--teal-600, #0d9488);
  animation: flow-pulse 2s ease-in-out infinite;
  animation-delay: var(--delay, 0s);
  transform-origin: left;
}

@keyframes flow-pulse {
  0% { opacity: 0; transform: scaleX(0); }
  50% { opacity: 1; transform: scaleX(1); }
  100% { opacity: 0; transform: scaleX(1); }
}

.step__num-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--teal-600, #0d9488);
  color: #fff;
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

/* AI form demo */
.ai-form-demo-section {
  padding: 88px 0;
  background: #fff;
}

.ai-form-demo__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.ai-form-demo__head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 48px;
}

.ai-form-demo__head h2 {
  font-family: var(--serif);
  font-size: clamp(1.75rem, 3.5vw, 2.35rem);
  font-weight: 400;
  line-height: 1.2;
  margin-bottom: 12px;
}

.ai-form-demo__head p {
  color: var(--slate-600, #64748b);
  font-size: 1rem;
  line-height: 1.65;
}

.ai-prompt-label {
  display: block;
  font-weight: 600;
  font-size: 0.9rem;
  color: #111827;
  margin-bottom: 8px;
}

.ai-prompt-input {
  width: 100%;
  border: 1px solid #d1d5db;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.5;
  resize: vertical;
  min-height: 110px;
  font-family: inherit;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.ai-prompt-input:focus {
  outline: none;
  border-color: var(--teal-600, #0d9488);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.12);
}

.ai-prompt-examples {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 14px 0 18px;
}

.ai-prompt-examples__label {
  font-size: 0.8rem;
  color: #6b7280;
  font-weight: 500;
}

.ai-prompt-chip {
  border: 1px solid #e5e7eb;
  background: #f9fafb;
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.78rem;
  color: #374151;
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.ai-prompt-chip:hover {
  border-color: var(--teal-600, #0d9488);
  background: #f0fdf4;
  color: #0f766e;
}

.ai-generate-btn {
  width: 100%;
}

.ai-form-flow .pdf-flow-step:last-child .flow-connector {
  display: none;
}

@media (prefers-reduced-motion: reduce) {
  .processing-spinner { animation: none; }
  .step-connector::after { animation: none; opacity: 1; transform: scaleX(1); }
}

@media (max-width: 900px) {
  .pdf-demo__grid { grid-template-columns: 1fr; }
  .ai-form-demo__grid { grid-template-columns: 1fr; }
  .security-section__grid { grid-template-columns: 1fr; }
  .security-features { grid-template-columns: 1fr; }
  .roi-stats { grid-template-columns: 1fr; }
  .roi-bullets { grid-template-columns: 1fr; }
  .steps__grid--animated { flex-direction: column; }
  .step-connector { display: none; }
  .trust-stat { border-right: none; padding: 10px 16px; }
}
