/* panels — section components: services, process, team, faq, testimonials, pricing, stats, cta */

/* services grid */
.services-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}
@media (min-width: 640px) { .services-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .services-grid { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

.service-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  transition: transform var(--t-fast), box-shadow var(--t-fast), border-color var(--t-fast);
}
.service-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-2);
  border-color: var(--blue);
}
.service-card-icon {
  width: 40px;
  height: 40px;
  border-radius: 4px;
  background: var(--soft);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--blue-deep);
  margin-bottom: 18px;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
}
.service-card h3 { font-size: 1.15rem; margin-bottom: 10px; }
.service-card-desc {
  font-size: 0.92rem;
  color: #4a5563;
  margin-bottom: 18px;
  flex-grow: 1;
}
.service-card-cta {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  color: var(--blue-deep);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.service-card:hover .service-card-cta { color: var(--ink); }

/* section header */
.section-head {
  max-width: 720px;
  margin-bottom: 24px;
}
.section-head .eyebrow { color: var(--blue-deep); border-color: var(--blue-deep); }
.section-head p { color: #4a5563; }
.section-head-row {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  gap: 24px;
  justify-content: space-between;
  margin-bottom: 32px;
}
.section-head-row .section-head { margin-bottom: 0; flex: 1 1 480px; }

/* process / how it works */
.process {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  counter-reset: step;
  margin-top: 32px;
}
@media (min-width: 768px) { .process { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .process { grid-template-columns: repeat(4, 1fr); } }
.process-step {
  position: relative;
  padding: 28px 22px 22px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
}
.process-step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -16px;
  left: 18px;
  background: var(--ink);
  color: var(--chroma);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  padding: 6px 10px;
  border-radius: 2px;
  letter-spacing: 0.04em;
}
.process-step h3 { font-size: 1.1rem; margin-bottom: 8px; }
.process-step p { font-size: 0.94rem; color: #4a5563; margin: 0; }

/* feature list (icon + text) */
.features {
  display: grid;
  gap: 28px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .features { grid-template-columns: repeat(3, 1fr); } }
.feature {
  padding-top: 18px;
  border-top: 2px solid var(--chroma);
}
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { font-size: 0.94rem; color: #4a5563; margin: 0; }

/* split content */
.split {
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
  align-items: center;
}
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: 64px; }
  .split-reverse { direction: rtl; }
  .split-reverse > * { direction: ltr; }
}
.split-media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-2);
  position: relative;
}
.split-media-meta {
  position: absolute;
  top: 16px;
  left: 16px;
  background: rgba(10, 17, 24, 0.85);
  color: var(--chroma);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  padding: 6px 12px;
  text-transform: uppercase;
}

/* team */
.team {
  display: grid;
  gap: 32px;
  grid-template-columns: 1fr;
  margin-top: 40px;
}
@media (min-width: 768px) { .team { grid-template-columns: repeat(3, 1fr); } }
.team-card {
  text-align: left;
}
.team-card img {
  width: 100%;
  aspect-ratio: 2 / 3;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 16px;
  filter: saturate(0.92);
}
.team-card h3 { font-size: 1.2rem; margin-bottom: 4px; }
.team-card-role {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  color: var(--chroma);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}
.team-card-bio { font-size: 0.95rem; color: #4a5563; margin: 0 0 10px; }
.team-card-link {
  font-size: 0.86rem;
  color: var(--blue-deep);
  font-family: "Space Grotesk", sans-serif;
}

/* stats */
.stats {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(2, 1fr);
  margin-top: 32px;
  padding: 40px 0;
  border-top: 1px solid rgba(245, 247, 250, 0.14);
  border-bottom: 1px solid rgba(245, 247, 250, 0.14);
}
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, 1fr); padding: 56px 0; } }
.stat-num {
  display: block;
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(2rem, 1.4rem + 2vw, 3rem);
  font-weight: 700;
  color: var(--chroma);
  letter-spacing: -0.02em;
  line-height: 1;
  margin-bottom: 8px;
}
.stat-label { color: var(--slate); font-size: 0.92rem; }

/* faq */
.faq {
  max-width: 820px;
  margin: 40px auto 0;
}
.faq-item {
  border-top: 1px solid var(--line-soft);
}
.faq-item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  width: 100%;
  padding: 22px 4px;
  background: transparent;
  border: 0;
  text-align: left;
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.04rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
}
.faq-q-icon {
  flex-shrink: 0;
  width: 24px; height: 24px;
  position: relative;
}
.faq-q-icon::before, .faq-q-icon::after {
  content: ""; position: absolute;
  background: var(--chroma);
  transition: transform var(--t-fast);
}
.faq-q-icon::before { left: 0; right: 0; top: 11px; height: 2px; }
.faq-q-icon::after { top: 0; bottom: 0; left: 11px; width: 2px; }
.faq-q[aria-expanded="true"] .faq-q-icon::after { transform: scaleY(0); }
.faq-a {
  padding: 0 4px 22px;
  color: #4a5563;
  display: none;
}
.faq-q[aria-expanded="true"] + .faq-a { display: block; }
.faq-a p { margin: 0 0 12px; }
.faq-a p:last-child { margin-bottom: 0; }

/* pricing */
.pricing-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 32px;
  background: #fff;
  font-size: 0.95rem;
}
.pricing-table th, .pricing-table td {
  padding: 14px 16px;
  text-align: left;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
}
.pricing-table th {
  background: var(--ink);
  color: var(--paper);
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  font-size: 0.86rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.pricing-table tr:hover td { background: var(--soft); }
.pricing-table-price {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
}

/* testimonial single */
.testimonial {
  max-width: 760px;
  margin: 0 auto;
  text-align: center;
  font-family: "Space Grotesk", sans-serif;
}
.testimonial blockquote {
  margin: 0 0 24px;
  font-size: clamp(1.2rem, 1rem + 0.8vw, 1.5rem);
  line-height: 1.4;
  color: var(--ink);
  font-weight: 500;
}
.testimonial-source {
  font-size: 0.92rem;
  color: #4a5563;
  font-family: "Manrope", sans-serif;
}
.section-dark .testimonial blockquote { color: var(--paper); }
.section-dark .testimonial-source { color: var(--slate); }

/* logo strip */
.logostrip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 36px;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.logostrip span {
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6b7480;
}

/* cta strip */
.cta-strip {
  background: var(--ink);
  color: var(--paper);
  padding: 56px 0;
  border-radius: var(--radius);
  margin-top: 40px;
}
.cta-strip-inner {
  display: grid;
  gap: 24px;
  grid-template-columns: 1fr;
  align-items: center;
  padding: 0 32px;
}
@media (min-width: 768px) {
  .cta-strip-inner { grid-template-columns: 1.4fr auto; padding: 0 48px; gap: 32px; }
}
.cta-strip h2 { color: var(--paper); margin-bottom: 8px; font-size: 1.6rem; }
.cta-strip p { margin: 0; color: var(--slate); }

/* form */
.lead-form {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 32px;
  display: grid;
  gap: 16px;
  max-width: 520px;
  box-shadow: var(--shadow-1);
}
.lead-form-row { display: grid; gap: 6px; }
.lead-form label {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink);
}
.lead-form input[type="text"],
.lead-form input[type="email"],
.lead-form input[type="tel"],
.lead-form textarea {
  padding: 12px 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  font: inherit;
  background: var(--paper);
  color: var(--ink);
  min-height: 48px;
  width: 100%;
}
.lead-form textarea { min-height: 110px; resize: vertical; }
.lead-form input:focus, .lead-form textarea:focus {
  outline: 2px solid var(--blue);
  outline-offset: 1px;
  border-color: var(--blue);
}
.lead-form-consent {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.86rem;
  color: #4a5563;
}
.lead-form-consent input { margin-top: 3px; }
.lead-form-status { font-size: 0.9rem; min-height: 1.2em; color: var(--blue-deep); }
.lead-form-status[data-state="error"] { color: var(--cta); }
.lead-form-status[data-state="ok"] { color: var(--chroma-deep); }
.lead-form-honey { position: absolute; left: -9999px; height: 0; width: 0; }

/* contact tiles */
.contact-tiles {
  display: grid;
  gap: 20px;
  grid-template-columns: 1fr;
  margin-top: 32px;
}
@media (min-width: 768px) { .contact-tiles { grid-template-columns: repeat(3, 1fr); } }
.contact-tile {
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 24px;
  border-radius: var(--radius);
}
.contact-tile h3 {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--chroma);
  margin-bottom: 10px;
}
.contact-tile p, .contact-tile a {
  font-family: "Space Grotesk", sans-serif;
  font-size: 1.05rem;
  color: var(--ink);
  text-decoration: none;
  margin: 0;
  display: block;
  word-break: break-word;
}
.contact-tile a:hover { color: var(--blue-deep); }
.contact-tile-note { color: #6b7480; font-size: 0.85rem; font-family: "Manrope", sans-serif; margin-top: 6px; }

/* reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 600ms ease, transform 600ms ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* prose for legal & faq pages */
.prose {
  max-width: 760px;
  margin: 0 auto;
}
.prose h2 { margin-top: 40px; }
.prose h3 { margin-top: 28px; font-size: 1.2rem; }
.prose p, .prose li { color: #2b3340; }
.prose ul, .prose ol { padding-left: 1.4em; }

/* error 404 */
.error-page {
  text-align: center;
  padding: 80px 20px;
  max-width: 640px;
  margin: 0 auto;
}
.error-code {
  font-family: "Space Grotesk", sans-serif;
  font-size: clamp(5rem, 3rem + 8vw, 8rem);
  color: var(--chroma);
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
}

/* cookie tray */
.tray-consent {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 9000;
  max-width: 380px;
  background: var(--ink);
  color: var(--paper);
  padding: 22px 24px;
  border-radius: var(--radius);
  border-left: 4px solid var(--chroma);
  box-shadow: 0 16px 40px rgba(0,0,0,0.35);
  font-size: 0.92rem;
  animation: tray-rise 320ms ease both;
}
@media (max-width: 480px) {
  .tray-consent { left: 12px; right: 12px; bottom: 12px; max-width: none; }
}
.tray-consent[hidden] { display: none; }
.tray-consent-text { margin: 0 0 16px; color: var(--slate); line-height: 1.5; }
.tray-consent-text a { color: var(--paper); }
.tray-consent-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.tray-consent-btn {
  flex: 1;
  min-height: 40px;
  padding: 8px 14px;
  border-radius: 3px;
  border: 1px solid var(--paper);
  background: var(--paper);
  color: var(--ink);
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
}
.tray-consent-btn-ghost {
  background: transparent;
  color: var(--paper);
}
.tray-consent-btn:focus-visible { outline: 2px solid var(--chroma); outline-offset: 2px; }
@keyframes tray-rise {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
