/* =========================================================
   Radicle Landing Page — Stylesheet

   Everything in this file is scoped under the `.radicle-landing-page`
   class (present on <body> — see index.html / the WP page template)
   instead of bare tags/`:root`, so it never bleeds into a theme's own
   header/footer, admin bar, popups, or any other page that doesn't
   carry this class.
   ========================================================= */

.radicle-landing-page {
  --primary: #dd3333;
  --primary-dark: #b52a2a;
  --primary-light: #fbeaea;
  --navy: #162441;
  --navy-2: #0d1420;
  --text: #333333;
  --text-muted: #666b70;
  --border: #e6e6e6;
  --bg-alt: #f7f7f8;
  --white: #ffffff;
  --green: #1ea672;
  --green-light: #e7f8f0;
  --pink: #e0546e;
  --pink-light: #fdeef0;
  --purple: #7b5cf0;
  --purple-light: #f1edfb;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 6px 18px -8px rgba(22, 36, 65, 0.12);
  --shadow-md: 0 16px 40px -14px rgba(22, 36, 65, 0.18);
  --container: 1240px;
  --ease: cubic-bezier(.22, .8, .3, 1);

  scroll-behavior: smooth;
  overflow-x: hidden;
  font-family: "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

/* ---------- Reset (scoped) ---------- */
.radicle-landing-page,
.radicle-landing-page *,
.radicle-landing-page *::before,
.radicle-landing-page *::after { box-sizing: border-box; }

.radicle-landing-page,
.radicle-landing-page h1, .radicle-landing-page h2, .radicle-landing-page h3, .radicle-landing-page h4,
.radicle-landing-page p, .radicle-landing-page figure, .radicle-landing-page blockquote,
.radicle-landing-page dl, .radicle-landing-page dd { margin: 0; }
.radicle-landing-page ul { margin: 0; padding: 0; list-style: none; }
.radicle-landing-page img { max-width: 100%; display: block; }
.radicle-landing-page a { color: inherit; text-decoration: none; }
.radicle-landing-page button { font: inherit; cursor: pointer; }
.radicle-landing-page input,
.radicle-landing-page select,
.radicle-landing-page textarea { font: inherit; color: inherit; }

.radicle-landing-page .container {
  /* !important: the live theme has its own `.container` utility class
     that forces `display:flex; justify-content:center`, which was
     shrinking and centering every section's content (confirmed on
     qa.radicleinc.com — even a same-specificity `display:block` patch
     in the old deployed CSS lost to it). Sections that need a
     different display (header/hero/why-choose/footer) re-assert it
     with !important further down, and win the tie via source order. */
  display: block !important;
  max-width: var(--container) !important;
  margin: 0 auto !important;
  padding: 0 24px !important;
}

.radicle-landing-page .sr-only {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.radicle-landing-page .icon { flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.radicle-landing-page h1, .radicle-landing-page h2, .radicle-landing-page h3, .radicle-landing-page h4 {
  font-weight: 800; color: var(--navy); line-height: 1.2; letter-spacing: -0.01em;
}
.radicle-landing-page h2 { font-size: clamp(1.7rem, 2.4vw, 2.3rem); }
.radicle-landing-page h3 { font-size: 1.2rem; }
.radicle-landing-page h4 { font-size: 1.05rem; }

.radicle-landing-page .eyebrow {
  color: var(--primary);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.radicle-landing-page .eyebrow-light { color: #ff9b9b; }

.radicle-landing-page .text-primary { color: var(--primary); }

.radicle-landing-page .section-text { color: var(--text-muted); font-size: 1.02rem; max-width: 560px; margin-top: 12px; }

.radicle-landing-page .section { padding: 96px 0; }
.radicle-landing-page .section-alt { background: var(--bg-alt); }

.radicle-landing-page .section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 48px;
  flex-wrap: wrap;
}
.radicle-landing-page .section-head h2 { max-width: 620px; }
.radicle-landing-page .section-head-actions { display: flex; align-items: center; gap: 20px; }

.radicle-landing-page .section-head-center { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.radicle-landing-page .section-head-center .section-text { margin-left: auto; margin-right: auto; }

.radicle-landing-page .link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  white-space: nowrap;
  transition: gap .2s var(--ease), color .2s var(--ease);
}
.radicle-landing-page .link-arrow .icon { transition: transform .2s var(--ease); }

/* ---------- Buttons ---------- */
.radicle-landing-page .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 700;
  font-size: 0.95rem;
  padding: 14px 24px;
  border-radius: 10px;
  border: none;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s var(--ease);
  white-space: nowrap;
}
.radicle-landing-page .btn .icon { transition: transform .2s var(--ease); }
.radicle-landing-page .btn:active { transform: scale(.97); }

.radicle-landing-page .btn-primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px -8px rgba(221,51,51,.45); }

.radicle-landing-page .btn-white { background: #fff; color: var(--navy); }

.radicle-landing-page .btn-block { width: 100%; }

.radicle-landing-page .btn-header { padding: 11px 20px; font-size: 0.9rem; }

/* ---------- Reveal animation ---------- */
.radicle-landing-page .reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity .7s var(--ease), transform .7s var(--ease);
}
.radicle-landing-page .reveal.is-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   Header
   ========================================================= */
.radicle-landing-page .site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(22,36,65,.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid transparent;
  transition: box-shadow .25s var(--ease), border-color .25s var(--ease);
}
.radicle-landing-page .site-header.scrolled {
  box-shadow: 0 4px 20px -8px rgba(0,0,0,.25);
  border-bottom-color: rgba(255,255,255,.08);
}
/* Sticky header is desktop-only (matches the 1024px breakpoint where the
   nav switches to the mobile menu below). `position:sticky` needs every
   ancestor's overflow to be `visible` on the sticky axis — the live theme
   forces `body{overflow:hidden auto}`, which silently breaks it (computes
   as `sticky` but scrolls away like `static`). Our own `overflow-x:hidden`
   above (kept for narrower widths, where some content bleeds horizontally)
   is part of that same conflict, so instead of removing it everywhere,
   this override only lifts it at desktop widths where sticky is wanted —
   needs !important, same-specificity loses to the theme's rule. */
@media (min-width: 1025px) {
  .radicle-landing-page { overflow: visible !important; }
}

.radicle-landing-page .header-inner {
  /* !important: this element also carries `.container` (see above) */
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  gap: 24px;
  height: 78px;
}

.radicle-landing-page .logo { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.radicle-landing-page .logo-img { display: block; height: 21px; width: auto; }
.radicle-landing-page .logo-tagline { font-size: 0.68rem; color: #b9c0cc; letter-spacing: .04em; }

.radicle-landing-page .nav { display: flex; align-items: center; gap: 32px; margin-left: auto; }
.radicle-landing-page .nav a {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
  position: relative;
  padding: 4px 0;
  transition: color .2s var(--ease);
}
.radicle-landing-page .nav a::after {
  content: "";
  position: absolute;
  left: 0; right: 100%;
  bottom: -2px;
  height: 2px;
  background: var(--primary);
  transition: right .25s var(--ease);
}

.radicle-landing-page .nav-toggle {
  display: none;
  background: none;
  border: none;
  padding: 6px;
  color: #fff;
  position: relative;
}
.radicle-landing-page .nav-toggle .icon-close { display: none; }
.radicle-landing-page .nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.radicle-landing-page .nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* =========================================================
   Hero
   ========================================================= */
.radicle-landing-page .hero { padding: 56px 0 96px; background: var(--bg-alt); overflow: hidden; }

.radicle-landing-page .hero-grid {
  /* !important: this element also carries `.container` (see above) */
  display: grid !important;
  grid-template-columns: 1.1fr 0.85fr 0.85fr;
  /* Row 1: copy + illustration. Row 2: the partners strip, which takes
     whatever height the (taller) form card leaves beneath the button. */
  grid-template-rows: auto 1fr;
  gap: 40px;
  align-items: start;
}
.radicle-landing-page .hero-content { grid-column: 1; grid-row: 1; }
.radicle-landing-page .hero-visual { grid-column: 2; grid-row: 1; }

.radicle-landing-page .hero-title { font-size: clamp(2rem, 3.4vw, 2.9rem); margin: 4px 0 20px; }
.radicle-landing-page .hero-text { color: var(--text-muted); font-size: 1.02rem; max-width: 480px; margin-bottom: 32px; }

.radicle-landing-page .hero-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0,1fr));
  gap: 20px 28px;
  margin-bottom: 36px;
}
.radicle-landing-page .hero-stat { display: flex; align-items: center; gap: 12px; }
.radicle-landing-page .icon-stat { color: var(--primary); flex-shrink: 0; }
.radicle-landing-page .hero-stat div { display: flex; flex-direction: column; }
.radicle-landing-page .hero-stat strong { font-size: 1rem; color: var(--navy); font-weight: 800; }
.radicle-landing-page .hero-stat span { font-size: 0.82rem; color: var(--text-muted); }

/* Hero visual */
.radicle-landing-page .hero-visual { position: relative; padding-top: 30px; }
.radicle-landing-page .hero-illustration {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.radicle-landing-page .hero-svg { width: 100%; height: auto; display: block; }

.radicle-landing-page .script-text {
  font-family: "Caveat", cursive;
  color: var(--primary-dark);
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.15;
  position: absolute;
  transform: rotate(-4deg);
}
.radicle-landing-page .script-top { top: -14px; right: 12px; text-align: right; }

.radicle-landing-page .floating-badge {
  position: absolute;
  left: -18px;
  bottom: -26px;
  max-width: 240px;
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: 14px 16px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--navy);
  animation: radicle-lp-float 4.5s ease-in-out infinite;
}
.radicle-landing-page .floating-badge .icon { color: var(--primary); margin-top: 2px; }

@keyframes radicle-lp-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* Hero partners strip ("Our Solution Partners") — left + middle columns,
   bottom-aligned with the form card (which spans both rows and stretches to
   the grid's full height so the two bottoms always match exactly). */
.radicle-landing-page .hero-partners { grid-column: 1 / span 2; grid-row: 2; align-self: end; }
.radicle-landing-page .hero-partners h3 { text-align: left; font-size: 1.3rem; margin-bottom: 14px; }
.radicle-landing-page .partner-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.radicle-landing-page .partner-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 12px 12px;
  text-align: center;
}
.radicle-landing-page .partner-card img { width: 88px; height: 44px; margin: 0 auto 6px; object-fit: contain; }
.radicle-landing-page .partner-card h4 { font-size: 0.98rem; margin-bottom: 2px; }
.radicle-landing-page .partner-card p { font-size: 0.8rem; color: var(--text-muted); }

/* Hero form card */
.radicle-landing-page .hero-form-card {
  grid-column: 3;
  grid-row: 1 / span 2;
  align-self: stretch;
  background: #fff;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  padding: 28px;
  border: 1px solid var(--border);
}
.radicle-landing-page .hero-form-card h3 { margin-bottom: 6px; }
.radicle-landing-page .hero-form-card > p { color: var(--text-muted); font-size: 0.88rem; margin-bottom: 20px; }

.radicle-landing-page .form-row { margin-bottom: 12px; }
.radicle-landing-page .form-row-split { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 12px; }
.radicle-landing-page .form-row-split .form-row { margin-bottom: 0; }

.radicle-landing-page input,
.radicle-landing-page select,
.radicle-landing-page textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #fbfcfe;
  font-size: 0.9rem;
  color: var(--text);
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
  appearance: none;
}
.radicle-landing-page select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666b70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 34px;
}
.radicle-landing-page textarea { resize: vertical; min-height: 84px; }

.radicle-landing-page input:focus,
.radicle-landing-page select:focus,
.radicle-landing-page textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(221,51,51,.15);
}
.radicle-landing-page input:invalid:not(:placeholder-shown):not(:focus),
.radicle-landing-page select.invalid,
.radicle-landing-page textarea:invalid:not(:placeholder-shown):not(:focus) { border-color: #e0546e; }

.radicle-landing-page .form-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  font-size: 0.74rem;
  color: var(--text-muted);
  margin-top: 12px;
  line-height: 1.4;
}
.radicle-landing-page .form-disclaimer .icon { color: var(--text-muted); margin-top: 2px; }

.radicle-landing-page .form-success {
  display: none;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: var(--green-light);
  color: var(--green);
  font-size: 0.85rem;
  font-weight: 600;
}
.radicle-landing-page .form-success.show { display: flex; animation: radicle-lp-fade-in .4s var(--ease); }

/* ---------- Contact Form 7 hardening ----------
   CF7 renders every field/button with its own `wpcf7-*`/`form-control`
   classes, which the theme styles with higher specificity than our
   plain tag selectors above (the same class of bug as the `.container`
   fix — confirmed live: CF7 fields were rendering at theme defaults —
   transparent border, 0 radius, shrink-to-fit width; the submit button
   rendered as a dark, uppercase, letter-spaced, shrink-to-fit pill
   instead of our red block button). Hardened with !important, scoped
   to just `.hero-form-card` so other CF7 forms elsewhere on the site
   (popups, job applications) are left alone. */
.radicle-landing-page .hero-form-card input,
.radicle-landing-page .hero-form-card select,
.radicle-landing-page .hero-form-card textarea {
  width: 100% !important;
  padding: 12px 14px !important;
  border: 1px solid var(--border) !important;
  border-radius: var(--radius-sm) !important;
  background: #fbfcfe !important;
  font-family: inherit !important;
  font-size: 0.7rem !important;
  color: var(--text) !important;
  appearance: none !important;
  -webkit-appearance: none !important;
}
.radicle-landing-page .hero-form-card select {
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%23666b70' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><polyline points='6 9 12 15 18 9'/></svg>") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  padding-right: 34px !important;
}
.radicle-landing-page .hero-form-card textarea { resize: vertical !important; min-height: 84px !important; }
.radicle-landing-page .hero-form-card input:focus,
.radicle-landing-page .hero-form-card select:focus,
.radicle-landing-page .hero-form-card textarea:focus {
  outline: none !important;
  border-color: var(--primary) !important;
  box-shadow: 0 0 0 3px rgba(221,51,51,.15) !important;
}

.radicle-landing-page .form-submit-wrap { position: relative; width: 100%; }
/* CF7 drops its loading spinner right after the (display:block) submit
   input, so it used to wrap onto its own line and make this wrapper ~30px
   taller than the button — which is why .submit-label needed a -30px
   margin to look centered, and why any text placed under the button sat
   30px away from it. Pulling the spinner out of the flow (it shows inside
   the button, on the right, while the form is submitting) keeps the wrapper
   exactly button-height. */
.radicle-landing-page .form-submit-wrap .wpcf7-spinner {
  position: absolute;
  top: 50%;
  right: 16px;
  margin: 0;
  transform: translateY(-50%);
}
.radicle-landing-page .hero-form-card input[type="submit"] {
  /* The native value text is hidden (color: transparent) — an <input>
     can't hold the arrow icon as a real flex child the way the other
     buttons on this page do, so text+icon are pinned at different,
     unrelated positions (text centered in the full width, icon fixed
     near the edge) and drift apart on a wide button. Instead the input
     keeps its full red/clickable box (and its `value` for a11y/no-JS),
     while `.submit-label` — a real flex row, positioned on top of it —
     shows the visible text+icon as one truly grouped, centered pair,
     exactly like `.btn`'s own flex children do elsewhere. */
  display: block !important;
  width: 100% !important;
  padding: 14px 24px !important;
  border: none !important;
  border-radius: 10px !important;
  background: var(--primary) !important;
  color: transparent !important;
  font-family: inherit !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  line-height: normal !important;
  text-transform: none !important;
  letter-spacing: normal !important;
  box-shadow: 0 10px 24px -8px rgba(221,51,51,.45) !important;
  cursor: pointer !important;
  appearance: none !important;
  -webkit-appearance: none !important;
  transition: background .2s var(--ease), box-shadow .2s var(--ease) !important;
}
.radicle-landing-page .submit-label {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  pointer-events: none;
}
.radicle-landing-page .submit-label .icon { display: block; transition: transform .2s var(--ease); }

/* Consent checkbox ([checkbox contactConsent ...] in the CF7 form). The
   hardening rules above force every <input> in the card to width:100% with
   no native appearance, which would turn a checkbox into a giant empty box,
   so it gets its own custom-drawn box here (scoped to .form-consent). */
.radicle-landing-page .hero-form-card .form-consent { margin: 4px 0 14px; }
.radicle-landing-page .hero-form-card .form-consent .wpcf7-form-control-wrap,
.radicle-landing-page .hero-form-card .form-consent .wpcf7-form-control,
.radicle-landing-page .hero-form-card .form-consent .wpcf7-list-item { display: block; margin: 0; }
.radicle-landing-page .hero-form-card .form-consent label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  line-height: 1.45;
  color: var(--text-muted);
  cursor: pointer;
}
.radicle-landing-page .hero-form-card .form-consent input[type="checkbox"] {
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px;
  padding: 0 !important;
  margin: 1px 0 0 !important;
  border: 1.5px solid #c6cad1 !important;
  border-radius: 5px !important;
  background: #fff !important;
  position: relative;
  cursor: pointer;
}
.radicle-landing-page .hero-form-card .form-consent input[type="checkbox"]:checked {
  background: var(--primary) !important;
  border-color: var(--primary) !important;
}
.radicle-landing-page .hero-form-card .form-consent input[type="checkbox"]:checked::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1px;
  width: 5px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* Privacy note under the submit button */
.radicle-landing-page .hero-form-card .form-privacy-note {
  font-size: 0.74rem;
  line-height: 1.4;
  color: var(--text-muted);
  margin: 10px 0 0;
}
.radicle-landing-page .hero-form-card .form-privacy-note a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* CF7's own field-level and form-level error/response messages */
.radicle-landing-page .hero-form-card input.wpcf7-not-valid,
.radicle-landing-page .hero-form-card select.wpcf7-not-valid,
.radicle-landing-page .hero-form-card textarea.wpcf7-not-valid {
  border-color: #e0546e !important;
}
.radicle-landing-page .hero-form-card .wpcf7-not-valid-tip {
  color: #e0546e;
  font-size: 0.78rem;
  margin-top: 4px;
}
.radicle-landing-page .hero-form-card .wpcf7-response-output {
  margin: 14px 0 0 !important;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  border-width: 1px;
  border-style: solid;
  border-color: var(--border);
  color: var(--text);
}
.radicle-landing-page .hero-form-card form.sent .wpcf7-response-output {
  background: var(--green-light);
  color: var(--green);
  border-color: var(--green-light);
}
.radicle-landing-page .hero-form-card form.invalid .wpcf7-response-output,
.radicle-landing-page .hero-form-card form.failed .wpcf7-response-output,
.radicle-landing-page .hero-form-card form.spam .wpcf7-response-output {
  background: var(--pink-light);
  color: var(--pink);
  border-color: var(--pink-light);
}

@keyframes radicle-lp-fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Visual feedback while the submit button is disabled to block double
   submits — see the <script> in main.js. */
.radicle-landing-page .wpcf7-submit:disabled { opacity: 0.6; cursor: not-allowed; }

/* ---------- Success popup (shown after the CF7 form sends, see the
   "Discuss Your Project" script block in main.js) ---------- */
.radicle-landing-page .form-toast-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(13, 20, 32, 0.55);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.radicle-landing-page .form-toast-backdrop.is-visible { opacity: 1; pointer-events: auto; }
.radicle-landing-page .form-toast {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.96);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 14px;
  width: 320px;
  min-height: 180px;
  background: var(--white);
  color: var(--navy);
  font-size: 15px;
  font-weight: 600;
  padding: 32px 28px 26px;
  border-radius: var(--radius);
  border-top: 4px solid var(--primary);
  box-shadow: var(--shadow-md);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease;
  max-width: calc(100vw - 40px);
}
.radicle-landing-page .form-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
  pointer-events: auto;
}
.radicle-landing-page .form-toast-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  line-height: 1;
}
.radicle-landing-page .form-toast-msg { margin: 0; line-height: 1.5; }
.radicle-landing-page .form-toast-ok {
  margin-top: 4px;
  border: none;
  background: var(--primary);
  color: var(--white);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 30px;
  border-radius: var(--radius-sm);
  cursor: pointer;
}
.radicle-landing-page .form-toast-ok:hover { background: var(--primary-dark); }

/* =========================================================
   Services
   ========================================================= */
.radicle-landing-page .services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.radicle-landing-page .service-card {
  border-radius: var(--radius);
  padding: 28px 24px;
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.radicle-landing-page .tint-blue { background: var(--primary-light); }
.radicle-landing-page .tint-green { background: var(--green-light); }
.radicle-landing-page .tint-pink { background: var(--pink-light); }
.radicle-landing-page .tint-purple { background: var(--purple-light); }

.radicle-landing-page .service-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  color: #fff;
}
.radicle-landing-page .bg-blue { background: var(--primary); }
.radicle-landing-page .bg-green { background: var(--green); }
.radicle-landing-page .bg-pink { background: var(--pink); }
.radicle-landing-page .bg-purple { background: var(--purple); }

/* min-height on the title/description reserves the same vertical space in
   every card regardless of actual text length, so the "Learn More" link
   and the checklist below it start at the same Y position across all 4
   cards instead of stair-stepping with each card's own copy length.
   Sized for the two longest cases (2-line title, 6-line description) at
   the steady-state ~280px card width every viewport above the 4-column
   breakpoint settles at; the narrower in-between band below needs more
   (see the 1267px media query), and 2-/1-column layouts reset it since
   cards are wide enough there that wrapping — and the misalignment — is
   far less pronounced. */
.radicle-landing-page .service-card h3 { margin-bottom: 10px; font-size: 1.15rem; min-height: 2.4em; }
.radicle-landing-page .service-card p { color: var(--text-muted); font-size: 0.92rem; margin-bottom: 14px; min-height: 9.3em; }
.radicle-landing-page .service-card > .link-arrow { margin-bottom: 20px; }

.radicle-landing-page .check-list { display: flex; flex-direction: column; gap: 10px; padding-top: 16px; border-top: 1px solid rgba(16,28,52,.08); }
.radicle-landing-page .check-list li { display: flex; align-items: center; gap: 8px; font-size: 0.86rem; color: var(--text); }
.radicle-landing-page .check-list .icon { color: var(--primary); flex-shrink: 0; }

/* =========================================================
   Why Choose Radicle
   ========================================================= */
.radicle-landing-page .why-grid {
  /* !important: this element also carries `.container` (see above) */
  display: grid !important;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 56px;
  align-items: center;
}
.radicle-landing-page .why-grid h2 { margin-bottom: 6px; }
.radicle-landing-page .why-grid .btn { margin-top: 28px; }

.radicle-landing-page .why-features {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px 28px;
}
.radicle-landing-page .why-feature { display: flex; gap: 14px; align-items: flex-start; }
.radicle-landing-page .why-feature .icon { color: var(--primary); flex-shrink: 0; margin-top: 3px; }
.radicle-landing-page .why-feature h4 { margin-bottom: 4px; font-size: 1rem; }
.radicle-landing-page .why-feature p { color: var(--text-muted); font-size: 0.88rem; }

/* =========================================================
   Approach
   ========================================================= */
.radicle-landing-page .approach-steps {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}
.radicle-landing-page .approach-step { flex: 1; text-align: center; max-width: 220px; }
.radicle-landing-page .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-weight: 800;
  font-size: 1.05rem;
  margin-bottom: 16px;
  transition: transform .3s var(--ease), background .3s var(--ease), color .3s var(--ease);
}
.radicle-landing-page .approach-step h4 { margin-bottom: 6px; }
.radicle-landing-page .approach-step p { color: var(--text-muted); font-size: 0.88rem; }
.radicle-landing-page .approach-arrow { color: var(--border); padding-top: 14px; flex-shrink: 0; }

/* =========================================================
   Case Studies / Carousel
   ========================================================= */
.radicle-landing-page .carousel-controls { display: flex; gap: 10px; }
.radicle-landing-page .carousel-btn {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  transition: background .2s var(--ease), color .2s var(--ease), border-color .2s var(--ease);
}
.radicle-landing-page .carousel-btn:disabled { opacity: .4; cursor: not-allowed; }

.radicle-landing-page .carousel { overflow: hidden; }
.radicle-landing-page .carousel-track {
  display: flex;
  gap: 24px;
  transition: transform .5s var(--ease);
}

.radicle-landing-page .case-card {
  flex: 0 0 calc((100% - 48px) / 3);
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}

.radicle-landing-page .case-thumb {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  overflow: hidden;
}
.radicle-landing-page .case-thumb img { width: 100%; height: 100%; object-fit: cover; }
.radicle-landing-page .thumb-blue { background: linear-gradient(135deg, #dd3333, #ff8a80); }
.radicle-landing-page .thumb-green { background: linear-gradient(135deg, #1ea672, #6fd6ac); }
.radicle-landing-page .thumb-purple { background: linear-gradient(135deg, #4a3fb0, #7b5cf0); }

.radicle-landing-page .case-body { padding: 22px; }
.radicle-landing-page .case-body h3 { font-size: 1.05rem; margin-bottom: 14px; min-height: 52px; }

.radicle-landing-page .carousel-dots { display: none; justify-content: center; gap: 8px; margin-top: 24px; }
.radicle-landing-page .carousel-dots button {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--border);
  border: none;
  padding: 0;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
.radicle-landing-page .carousel-dots button.active { background: var(--primary); transform: scale(1.3); }

/* =========================================================
   Trusted By
   ========================================================= */
.radicle-landing-page .trusted-by { padding: 64px 0; }

/* =========================================================
   CTA Banner
   ========================================================= */
.radicle-landing-page .cta-banner {
  position: relative;
  background: var(--navy);
  padding: 100px 0 120px;
  overflow: hidden;
  color: #fff;
}
.radicle-landing-page .cta-mountains { position: absolute; inset: 0; bottom: 0; height: 100%; z-index: 0; }
.radicle-landing-page .cta-mountains-svg { width: 100%; height: 100%; }

.radicle-landing-page .cta-inner { position: relative; z-index: 1; max-width: 640px; text-align: left; }
.radicle-landing-page .cta-inner h2 { color: #fff; margin-bottom: 14px; }
.radicle-landing-page .cta-inner p { color: #c7ccd4; margin-bottom: 32px; font-size: 1.05rem; }

.radicle-landing-page .script-cta {
  position: absolute;
  top: -50px;
  right: 0;
  color: #ff9b9b;
  text-align: right;
  font-size: 1.4rem;
}

/* =========================================================
   Footer
   ========================================================= */
.radicle-landing-page .site-footer { background: var(--navy); color: #cacdd4; padding-top: 56px; }
.radicle-landing-page .footer-inner {
  /* !important: this element also carries `.container` (see above) */
  display: flex !important;
  justify-content: space-between !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 24px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.radicle-landing-page .footer-nav { display: flex; gap: 28px; flex-wrap: wrap; }
.radicle-landing-page .footer-nav a { font-weight: 600; font-size: 0.9rem; color: #cacdd4; transition: color .2s var(--ease); }

.radicle-landing-page .footer-social { display: flex; gap: 12px; }
.radicle-landing-page .footer-social a {
  width: 38px; height: 38px;
  border-radius: 50%;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: background .2s var(--ease), transform .2s var(--ease);
}
/* The LinkedIn/Facebook glyphs are solid brand marks (their <symbol> sets
   fill="currentColor" stroke="none"), but the shared `.icon` class above
   is built for the site's line-art icons (fill:none, stroke:currentColor)
   and — being a real stylesheet rule vs. the symbol's own presentation
   attribute — wins the cascade, silently rendering them invisible
   (unfilled, 1.8px stroke on a 24px glyph reads as near-nothing at 18px).
   Scoped to .footer-social so the rest of the site's icons are untouched. */
.radicle-landing-page .footer-social .icon {
  fill: currentColor;
  stroke: none;
}

/* Privacy link on the left, copyright on the right. This element also
   carries `.container`, whose `display:block` and `padding: 0 24px
   !important` beat the bar's own display/padding — which is why its
   intended 22px vertical padding never actually applied. Re-asserted here
   with !important (top/bottom only, so the container's 24px sides stay). */
.radicle-landing-page .footer-bottom {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 24px;
  padding-top: 22px !important;
  padding-bottom: 22px !important;
  font-size: 0.82rem;
  color: #9c99a0;
}
.radicle-landing-page .footer-bottom a { color: inherit; transition: color .2s var(--ease); }

/* =========================================================
   Scroll to top
   ========================================================= */
.radicle-landing-page .scroll-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: opacity .25s var(--ease), transform .25s var(--ease), visibility .25s;
  z-index: 90;
}
.radicle-landing-page .scroll-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.radicle-landing-page .scroll-top .icon { transform: rotate(-90deg); }

/* =========================================================
   Counter fade for stats
   ========================================================= */
.radicle-landing-page [data-counter] { display: inline; color: var(--primary) !important; font-size: 1.6rem !important; }

/* =========================================================
   Hover effects — pointer devices with real hover only, so a
   red/hover color doesn't get "stuck" on a button after a tap
   on a touch phone or tablet.
   ========================================================= */
@media (hover: hover) and (pointer: fine) {
  .radicle-landing-page .link-arrow:hover { gap: 10px; color: var(--primary-dark); }
  .radicle-landing-page .btn:hover .icon { transform: translateX(3px); }
  .radicle-landing-page .btn-primary:hover { background: var(--primary-dark); box-shadow: 0 14px 28px -8px rgba(221,51,51,.55); }
  .radicle-landing-page .btn-white:hover { background: #f5f0f0; }
  .radicle-landing-page .nav a:hover { color: var(--primary); }
  .radicle-landing-page .nav a:hover::after { right: 0; }
  .radicle-landing-page .service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .radicle-landing-page .approach-step:hover .step-num { background: var(--primary); color: #fff; transform: scale(1.08); }
  .radicle-landing-page .carousel-btn:hover:not(:disabled) { background: var(--primary); color: #fff; border-color: var(--primary); }
  .radicle-landing-page .case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
  .radicle-landing-page .footer-nav a:hover,
  .radicle-landing-page .footer-bottom a:hover { color: #fff; }
  .radicle-landing-page .footer-social a:hover { background: var(--primary); transform: translateY(-2px); }
  .radicle-landing-page .hero-form-card input[type="submit"]:hover { background: var(--primary-dark) !important; box-shadow: 0 14px 28px -8px rgba(221,51,51,.55) !important; }
  .radicle-landing-page .hero-form-card input[type="submit"]:hover { background: var(--primary-dark) !important; box-shadow: 0 14px 28px -8px rgba(221,51,51,.55) !important; }
  .radicle-landing-page .form-submit-wrap:hover .submit-label .icon { transform: translateX(3px); }
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1180px) {
  .radicle-landing-page .hero-grid { grid-template-columns: 1fr; grid-template-rows: none; }
  .radicle-landing-page .hero-content,
  .radicle-landing-page .hero-visual,
  .radicle-landing-page .hero-form-card,
  .radicle-landing-page .hero-partners { grid-column: auto; grid-row: auto; }
  .radicle-landing-page .hero-form-card { align-self: start; }
  .radicle-landing-page .hero-partners { order: 4; max-width: 480px; width: 100%; margin: 0 auto; }
  .radicle-landing-page .hero-visual { order: 3; max-width: 480px; width: 100%; margin: 24px auto 64px; }
  .radicle-landing-page .hero-form-card { order: 2; max-width: 480px; width: 100%; margin: 0 auto; }
  .radicle-landing-page .case-card { flex: 0 0 calc((100% - 24px) / 2); }
}

/* Service cards wrap to more lines in this narrower band of the 4-column
   layout (cards shrink to ~215px here vs. ~280px at the steady state
   above), so the title/description reservation needs to be taller to
   keep the "Learn More" links and checklists aligned. */
@media (max-width: 1267px) and (min-width: 993px) {
  .radicle-landing-page .service-card h3 { min-height: 4.8em; }
  .radicle-landing-page .service-card p { min-height: 14em; }
}

@media (max-width: 992px) {
  .radicle-landing-page .service-card h3, .radicle-landing-page .service-card p { min-height: auto; }
  .radicle-landing-page .why-grid { grid-template-columns: 1fr; }
  .radicle-landing-page .why-features { margin-top: 8px; }
  .radicle-landing-page .services-grid { grid-template-columns: repeat(2, 1fr); }
  .radicle-landing-page .approach-steps { flex-wrap: wrap; }
  .radicle-landing-page .approach-arrow { display: none; }
  .radicle-landing-page .approach-step { flex: 0 0 45%; }
}

@media (max-width: 1024px) {
  .radicle-landing-page .nav { position: fixed; top: 78px; left: 0; right: 0; height: calc(100vh - 78px); background: var(--navy); flex-direction: column; align-items: flex-start; padding: 28px 24px; gap: 22px; overflow-y: auto; transform: translateX(100%); transition: transform .3s var(--ease); }
  .radicle-landing-page .nav.open { transform: translateX(0); }
  .radicle-landing-page .nav a { font-size: 1.1rem; }
  .radicle-landing-page .btn-header { display: none; }
  .radicle-landing-page .nav-toggle { display: flex; z-index: 101; }
  .radicle-landing-page.nav-open { overflow: hidden; }
}

@media (max-width: 720px) {
  .radicle-landing-page .section { padding: 64px 0; }
  .radicle-landing-page .section-head { flex-direction: column; align-items: flex-start; }
  .radicle-landing-page .section-head-actions { width: 100%; justify-content: space-between; }
  .radicle-landing-page .services-grid { grid-template-columns: 1fr; }
  .radicle-landing-page .hero-stats { grid-template-columns: 1fr 1fr; }
  .radicle-landing-page .case-card { flex: 0 0 100%; }
  .radicle-landing-page .carousel-dots { display: flex; }
  .radicle-landing-page .why-features { grid-template-columns: 1fr; }
  .radicle-landing-page .approach-step { flex: 0 0 100%; }
  .radicle-landing-page .cta-inner { text-align: left; }
  .radicle-landing-page .script-cta { display: none; }
  .radicle-landing-page .form-row-split { grid-template-columns: 1fr; }
  .radicle-landing-page .footer-bottom { flex-direction: column; justify-content: center; text-align: center; }
}

/* Three partner cards no longer fit side by side on a phone — stack them as
   rows, logo on the left and name/label on the right. */
@media (max-width: 560px) {
  .radicle-landing-page .partner-grid { grid-template-columns: 1fr; gap: 10px; }
  .radicle-landing-page .partner-card { display: flex; align-items: center; gap: 14px; text-align: left; padding: 10px 14px; }
  .radicle-landing-page .partner-card img { margin: 0; width: 72px; height: 36px; flex-shrink: 0; }
}
