/*
 * Design layer — visual refresh inspired by the AMZ Figma concept.
 * Loaded after style.css (Tailwind build) and custom.css (behaviour).
 * Tailwind utilities live in @layer utilities, so these unlayered rules
 * win without !important. Rules only style resting states where main.js
 * toggles Tailwind state classes (FAQ, tabs, dropdowns), so those keep working.
 */

:root {
  --ink: #101218;
  --ink-soft: #4b5260;
  --surface: #ffffff;
  --surface-muted: #f5f7fa;
  --line: #e6e9ef;
  --panel-dark: linear-gradient(160deg, #22252c 0%, #121419 100%);
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --shadow-soft: 0 1px 2px rgba(16, 18, 24, .04), 0 10px 30px -12px rgba(16, 18, 24, .14);
  --shadow-lift: 0 2px 4px rgba(16, 18, 24, .05), 0 24px 48px -18px rgba(16, 18, 24, .28);
  --ring: 0 0 0 4px rgba(44, 124, 241, .14);
}

/* ------------------------------------------------------------------
 * Floating pill navigation
 * ------------------------------------------------------------------ */
.site-header {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 50;
  padding: 12px 12px 0;
  background: transparent;
}
@media (min-width: 768px) { .site-header { padding: 16px 24px 0; } }

.site-nav {
  position: relative;
  background: rgba(255, 255, 255, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(16, 18, 24, .06);
  border-radius: 999px;
  box-shadow: var(--shadow-soft);
  padding: 6px 8px 6px 20px;
  min-height: 64px;
}
.site-nav img { display: block; }

.nav-cta {
  background: var(--ink);
  color: #fff;
  border-radius: 999px;
  padding: 5px 20px 5px 5px;
  gap: 12px !important;
  transition: transform .2s ease, box-shadow .2s ease;
}
.nav-cta:hover { opacity: 1 !important; transform: translateY(-1px); box-shadow: 0 10px 24px -10px rgba(16, 18, 24, .5); }
.nav-cta p { color: #fff; }
.nav-cta p + p { color: rgba(255, 255, 255, .65); }
.nav-cta > div:first-child { padding: 10px; }

.nav-toggle {
  width: 48px;
  height: 48px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface-muted);
  font-size: 22px;
}

[data-dropdown-menu] {
  border-radius: var(--radius-lg);
  padding: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  margin-top: 4px;
}
[data-dropdown-menu] a { border-radius: 10px; }

.site-mobile-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  box-shadow: var(--shadow-lift);
  padding: 24px;
  max-height: calc(100svh - 110px);
  overflow-y: auto;
}

/* ------------------------------------------------------------------
 * Section eyebrow labels ("• Case Studies")
 * ------------------------------------------------------------------ */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(44, 124, 241, .22);
  box-shadow: 0 1px 2px rgba(16, 18, 24, .05);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  line-height: 1.2;
}
.eyebrow::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}
.eyebrow svg { display: none; }
.eyebrow--dark {
  background: rgba(255, 255, 255, .1);
  border-color: rgba(255, 255, 255, .22);
  color: #fff;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
}

/* ------------------------------------------------------------------
 * Pricing / partnership plans
 * ------------------------------------------------------------------ */
.price-grid { align-items: stretch; }

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px 24px 24px;
  box-shadow: var(--shadow-soft);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.price-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 4px;
  border-radius: 0 0 6px 6px;
  background: var(--brand);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); }

.price-card__name { font-size: 20px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.price-card__price { margin: 14px 0 22px; font-size: 44px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: var(--ink); }
.price-card__cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px 16px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  box-shadow: 0 10px 24px -12px var(--brand);
}
.price-card__divider { display: flex; align-items: center; gap: 12px; margin: 24px 0 18px; color: #8a909c; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.price-card__divider::before, .price-card__divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.price-card__features { flex: 1; }
.price-card__features li span:last-child { color: var(--ink-soft); font-size: 15px; }

.price-card.is-featured {
  background: var(--panel-dark);
  border-color: transparent;
  box-shadow: 0 30px 60px -24px rgba(16, 18, 24, .55);
}
.price-card.is-featured .price-card__name,
.price-card.is-featured .price-card__price { color: #fff; }
.price-card.is-featured .price-card__features li span:last-child { color: rgba(255, 255, 255, .78); }
.price-card.is-featured .price-card__divider { color: rgba(255, 255, 255, .5); }
.price-card.is-featured .price-card__divider::before,
.price-card.is-featured .price-card__divider::after { background: rgba(255, 255, 255, .14); }
.price-badge {
  position: absolute;
  top: -13px;
  right: 20px;
  padding: 5px 12px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  box-shadow: 0 8px 18px -8px var(--brand);
}

[role="tablist"] { background: rgba(255, 255, 255, .85); border-color: var(--line) !important; box-shadow: var(--shadow-soft) !important; }

/* ------------------------------------------------------------------
 * Testimonials
 * ------------------------------------------------------------------ */
#testimonials { background: var(--surface-muted); }
.testimonial-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 16px;
  box-shadow: 0 1px 2px rgba(16, 18, 24, .04);
}
[data-marquee] {
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 10%, #000 90%, transparent);
}
.review-badges { background: #fff; border: 1px solid var(--line) !important; border-radius: var(--radius-lg); box-shadow: var(--shadow-soft); }

/* ------------------------------------------------------------------
 * Contact area, FAQ and form
 * ------------------------------------------------------------------ */
section#contact { background: var(--surface-muted); padding-top: 72px; padding-bottom: 72px; }
@media (min-width: 768px) { section#contact { padding-top: 104px; padding-bottom: 104px; } }

.faq-card { background: var(--surface); border-radius: var(--radius-md); box-shadow: 0 1px 2px rgba(16, 18, 24, .04); }
.faq-card:has([aria-expanded="true"]) { background: #f3f7ff; box-shadow: var(--shadow-soft); }
.faq-chevron:not(.bg-primary) { background: var(--surface-muted); color: var(--ink); }


/* ------------------------------------------------------------------
 * Stats band: keep side gutters on phones and tablets
 * ------------------------------------------------------------------ */
.stats-panel { margin-inline: 16px; }
@media (min-width: 1184px) { .stats-panel { margin-inline: auto; } }
@media (max-width: 767px) { .stats-panel { padding: 40px 24px; gap: 28px; } }

/* ------------------------------------------------------------------
 * Shared polish
 * ------------------------------------------------------------------ */
::selection { background: rgba(44, 124, 241, .18); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

.faq-chevron { width: 32px !important; height: 32px !important; }

/* Extra breathing room for the plans section on larger screens */
@media (min-width: 768px) { [data-tabs] { padding-bottom: 16px; } section:has(> [data-tabs]) { padding-top: 112px; padding-bottom: 112px; } }

/* ------------------------------------------------------------------
 * Terms & Privacy page (terms-privacy.php)
 * ------------------------------------------------------------------ */
.legal-page { background: var(--surface-muted); }
.legal-wrap { max-width: 860px; margin: 0 auto; }
.legal-hero { padding: clamp(140px, 11vw, 190px) 24px 40px; }
.legal-title {
  margin: 0;
  font-size: clamp(2.5rem, 1.6rem + 2vw, 3.5rem);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--ink);
}
.legal-intro { margin: 18px 0 0; max-width: 680px; font-size: 17px; line-height: 1.65; color: var(--ink-soft); }
.legal-jump { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 24px; }
.legal-jump a {
  padding: 10px 18px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  transition: border-color .2s ease, color .2s ease;
}
.legal-jump a:hover { border-color: var(--primary); color: var(--primary); }
.legal-updated { margin: 18px 0 0; font-size: 14px; color: #7a7f88; }

.legal-body { padding: 0 24px 40px; }
.legal-card {
  scroll-margin-top: 24px;
  margin-bottom: 24px;
  padding: clamp(28px, 4vw, 48px);
  border-radius: var(--radius-xl);
  background: #fff;
  box-shadow: 0 1px 2px rgba(16, 18, 24, .04);
}
.legal-card h2 { margin: 0 0 14px; font-size: clamp(1.75rem, 1.4rem + 1vw, 2.25rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.legal-card h3 { margin: 28px 0 8px; font-size: 18px; font-weight: 700; line-height: 1.35; color: var(--ink); }
.legal-card p, .legal-card li { font-size: 16px; line-height: 1.7; color: var(--ink-soft); }
.legal-card p { margin: 0; }
.legal-card ul { margin: 6px 0 0; padding-left: 20px; list-style: disc; }
.legal-card li + li { margin-top: 6px; }
.legal-card li::marker { color: var(--primary); }
.legal-card a { color: var(--primary); font-weight: 600; }
.legal-card a:hover { text-decoration: underline; }
.legal-card strong { color: var(--ink); }
.legal-contact__list { list-style: none !important; padding-left: 0 !important; margin-top: 12px !important; }
@media (max-width: 767px) {
  .legal-hero { padding: 120px 16px 32px; }
  .legal-body { padding: 0 16px 32px; }
  .legal-card { border-radius: 22px; }
}

/* ------------------------------------------------------------------
 * FAQs page (faqs.php) — reuses the .legal-* layout and .faq-card items
 * ------------------------------------------------------------------ */
.faq-group { scroll-margin-top: 24px; margin-bottom: 40px; }
.faq-group__title { margin: 0 0 16px; font-size: clamp(1.5rem, 1.25rem + .8vw, 1.875rem); font-weight: 600; line-height: 1.2; letter-spacing: -.01em; color: var(--ink); }
.faq-cta { text-align: center; }
.faq-cta p { margin-top: 0; }
.faq-cta__actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 12px 24px; margin-top: 20px; }
.faq-cta__btn {
  display: inline-flex;
  align-items: center;
  height: 48px;
  padding: 0 28px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff !important;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: 0 10px 22px -12px var(--primary);
  transition: transform .2s ease, filter .2s ease;
}
.faq-cta__btn:hover { transform: translateY(-1px); filter: brightness(1.06); }
