/* ===== base ===== */
html { scroll-behavior: smooth; }
::selection { background: #E07A2C; color: #fff; }

@media (prefers-reduced-motion: reduce) {
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ===== header ===== */
#site-header { background: transparent; }
#site-header.scrolled {
  background: rgba(251,250,248,0.85);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid #DCE0E5;
}

/* ===== blueprint grid backdrop for hero ===== */
.blueprint-grid {
  background-image:
    linear-gradient(rgba(15,20,32,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(15,20,32,0.035) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 40%, transparent 100%);
}

/* ===== reveal-on-scroll base state (JS/GSAP animates from here) ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); }

/* ===== CRM case study mockup ===== */
.browser-frame {
  border-radius: 1.25rem;
  border: 1px solid #E5E7EB;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 20px 50px -20px rgba(15,20,32,0.18);
}
.browser-topbar {
  display: flex; align-items: center; gap: 0.4rem;
  padding: 0.75rem 1rem;
  background: #F6F7F8;
  border-bottom: 1px solid #EDEFF2;
}
.browser-dot { width: 0.6rem; height: 0.6rem; border-radius: 9999px; }
.browser-url {
  margin-left: 0.75rem;
  font-size: 0.75rem;
  color: #8B96A3;
  background: #fff;
  border: 1px solid #EDEFF2;
  border-radius: 9999px;
  padding: 0.15rem 0.75rem;
}
.browser-body { padding: 1.5rem; background: #0F1420; color: #FBFAF8; }
.crm-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  margin-bottom: 1.5rem;
}
.crm-title { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 600; font-size: 1.1rem; }
.crm-subtitle { font-size: 0.8rem; color: #8B96A3; margin-top: 0.15rem; }
.crm-stats { display: flex; gap: 1.5rem; }
.crm-stats > div { display: flex; flex-direction: column; align-items: flex-end; }
.crm-stat-num { font-family: 'Bricolage Grotesque', sans-serif; font-weight: 700; font-size: 1.25rem; }
.crm-stat-label { font-size: 0.7rem; color: #8B96A3; }

.crm-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border-radius: 0.875rem;
  scrollbar-width: thin;
}
.crm-table { border: 1px solid #2A323D; border-radius: 0.875rem; overflow: hidden; min-width: 900px; }
.crm-row {
  display: grid;
  grid-template-columns: 150px 150px 140px 100px 200px 90px;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  font-size: 0.78rem;
  align-items: center;
  border-bottom: 1px solid #1B212A;
  white-space: nowrap;
}
.crm-row > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crm-row:last-child { border-bottom: none; }
.crm-row-head { background: #1B212A; color: #8B96A3; font-weight: 600; text-transform: uppercase; font-size: 0.68rem; letter-spacing: 0.03em; }
.crm-blur {
  filter: blur(4.5px);
  user-select: none;
  color: #DCE0E5;
}
.crm-badge {
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.68rem; font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 9999px;
  width: fit-content;
}
.crm-badge-new { background: rgba(224,122,44,0.18); color: #F5A55E; }
.crm-badge-progress { background: rgba(47,93,138,0.25); color: #7FA8D6; }
.crm-badge-done { background: rgba(40,200,64,0.15); color: #4ADE80; }

/* ===== price teaser cards ===== */
.price-card {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 1.25rem;
  padding: 1.5rem;
  transition: box-shadow .25s ease, transform .25s ease, border-color .25s ease;
}
.price-card:hover {
  box-shadow: 0 12px 30px -10px rgba(15,20,32,0.15);
  transform: translateY(-3px);
  border-color: #F5A55E;
}
.price-card-static { cursor: default; }
.price-card-static:hover {
  box-shadow: none;
  transform: none;
  border-color: #E5E7EB;
}
.price-row {
  display: flex; align-items: baseline; gap: 0.35rem;
  line-height: 1;
  margin-bottom: 0.3rem;
}
.price-row-sub {
  display: block;
  line-height: 1;
  font-size: 0.75rem;
  color: #8B96A3;
  margin-bottom: 1.1rem;
}
.price-value {
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 700; font-size: 1.35rem;
  color: #0F1420;
}
.price-unit {
  font-size: 0.75rem; font-weight: 500;
  color: #8B96A3;
}
.price-desc {
  font-size: 0.78rem;
  color: #8B96A3;
  line-height: 1.4;
  margin-bottom: 1rem;
}
.price-desc-lg { min-height: 2.2em; }
.price-cta {
  margin-top: auto;
  font-size: 0.8rem; font-weight: 600;
  color: #C2601C;
}
.price-card-cta {
  background: #0F1420; color: #FBFAF8;
  border-color: #0F1420;
}
.price-card-cta:hover { border-color: #C2601C; }
.price-cta-light { color: #F5A55E; }

/* ===== trust cards ===== */
.trust-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 1.25rem;
  padding: 1.75rem;
  transition: box-shadow .25s ease, transform .25s ease;
}
.trust-card:hover { box-shadow: 0 12px 30px -10px rgba(15,20,32,0.15); transform: translateY(-3px); }

/* ===== process rows ===== */
.process-row {
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid #EDEFF2;
  border-radius: 1.25rem;
  padding: 1.5rem;
}
.process-num {
  flex-shrink: 0;
  width: 2.5rem; height: 2.5rem;
  border-radius: 9999px;
  background: #0F1420;
  color: #FBFAF8;
  font-family: 'Bricolage Grotesque', sans-serif;
  font-weight: 600;
  display: flex; align-items: center; justify-content: center;
}

/* ===== testimonial cards ===== */
.testi-card {
  background: #fff;
  border: 1px solid #E5E7EB;
  border-radius: 1.5rem;
  padding: 2rem;
}

/* ===== FAQ ===== */
.faq-item { border: 1px solid #E5E7EB; border-radius: 1rem; overflow: hidden; background: #fff; }
.faq-trigger {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.25rem 1.5rem;
  text-align: left;
  font-weight: 500;
  font-size: 0.975rem;
}
.faq-panel {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s ease, padding .3s ease;
  padding: 0 1.5rem;
  color: #5E6B7A;
  font-size: 0.925rem;
  line-height: 1.6;
}
.faq-item.open .faq-panel { max-height: 220px; padding: 0 1.5rem 1.25rem; }
.faq-item.open .faq-trigger i { transform: rotate(180deg); }

/* ===== form ===== */
.option-card {
  border: 1.5px solid #E5E7EB;
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  display: flex; align-items: center;
  font-size: 0.9rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.option-card input[type="radio"] { position: absolute; opacity: 0; pointer-events: none; }
.option-card:hover { border-color: #B9C0C9; }
.option-card:has(input:checked) {
  border-color: #C2601C;
  background: #FFF4EC;
  color: #9B4A15;
}
.option-card-outra { cursor: text; border-style: dashed; gap: 0.5rem; }
.option-card-outra-input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  padding: 0;
  font: inherit;
  color: inherit;
  cursor: text;
}
.option-card-outra-input::placeholder { color: #8B96A3; opacity: 1; }
.option-card-outra-icon { color: #B9C0C9; }
.option-card-outra:has(input:checked) .option-card-outra-icon { color: #C2601C; }

.text-input {
  width: 100%;
  border: 1.5px solid #E5E7EB;
  border-radius: 0.875rem;
  padding: 0.875rem 1rem;
  font-size: 0.95rem;
  background: #fff;
  transition: border-color .15s ease;
}
.text-input:focus { outline: none; border-color: #C2601C; }

.field-label { display:block; font-size: 0.8rem; font-weight: 500; color: #5E6B7A; margin-bottom: 0.4rem; }

.form-error { display: none; color: #C2601C; font-size: 0.8rem; margin-top: 0.75rem; }
.form-step.invalid .form-error { display: block; }

.btn-primary {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: #0F1420; color: #FBFAF8;
  font-weight: 500; font-size: 0.925rem;
  padding: 0.875rem 1.75rem;
  border-radius: 9999px;
  transition: background .15s ease, transform .15s ease;
}
.btn-primary:hover { background: #2A323D; }
.btn-primary:active { transform: scale(0.98); }

/* visible focus ring for accessibility */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible {
  outline: 2px solid #C2601C;
  outline-offset: 2px;
}