/* Shared landing-page layout — bundled into EVERY built site as
   assets/css/landing.css (theme-agnostic structure).
   Colors/fonts come from --site-* design tokens that each theme defines;
   the fallbacks below keep landings rendering even for themes that don't. */

/* Global site header (all pages) */
.site-header { border-bottom: 1px solid var(--site-border, rgba(255,255,255,0.10)); }
.site-header__inner {
  max-width: 1240px; margin: 0 auto; padding: 16px 24px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
.site-header .site-brand { display: flex; align-items: center; gap: 12px; text-decoration: none; border-bottom: none; }
.site-header .site-brand__logo { height: 40px; width: auto; display: block; }
.site-header .site-brand__name { color: var(--site-heading, #f4f6f9); font-weight: 700; font-size: 1.2rem; letter-spacing: -0.01em; }
.site-header .site-nav { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.site-header .site-nav__link { color: var(--site-muted, #9aa3af); text-decoration: none; border-bottom: none; font-size: 0.95rem; }
.site-header .site-nav__link:hover { color: var(--site-heading, #fff); }
.site-header .site-cta {
  background: var(--site-accent, #5dd6c6); color: var(--site-on-accent, #07120f); border-bottom: none;
  padding: 9px 18px; border-radius: 10px; font-weight: 600; text-decoration: none; font-size: 0.95rem;
}
.site-header .site-cta:hover { filter: brightness(1.08); color: var(--site-on-accent, #07120f); }

.lp { display: block; }
.lp .lp-container { max-width: 1240px; margin: 0 auto; padding: 0 24px; }
.lp .lp-section { padding: 72px 0; }
.lp .lp-section + .lp-section { border-top: 1px solid var(--site-border, rgba(255,255,255,0.10)); }

.lp .lp-section__heading {
  font-family: var(--site-heading-font, "Plus Jakarta Sans", "Inter", sans-serif);
  font-size: clamp(1.9rem, 3vw, 2.5rem); font-weight: 600; letter-spacing: -0.02em; text-align: center;
  margin: 0 0 0.4em; color: var(--site-heading, #f4f6f9);
}
.lp .lp-section__subhead {
  text-align: center; color: var(--site-muted, #9aa3af);
  font-size: 1.15rem; max-width: 60ch; margin: 0 auto 2.5rem;
}
.lp .lp-section__eyebrow {
  color: var(--site-accent, #5dd6c6); font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: 0.8rem; text-align: center;
}
/* Cards & features bands read as left-aligned marketing blocks */
.lp .lp-cards-band .lp-section__eyebrow, .lp .lp-features-band .lp-section__eyebrow,
.lp .lp-cards-band .lp-section__heading, .lp .lp-features-band .lp-section__heading { text-align: left; }
.lp .lp-cards-band .lp-section__subhead, .lp .lp-features-band .lp-section__subhead { text-align: left; margin-left: 0; }

/* Hero */
.lp .lp-hero { padding: 96px 0 80px; text-align: center; border-top: none; }
.lp .lp-hero__eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--site-accent, #5dd6c6); font-size: 0.8rem; letter-spacing: 0.06em;
  text-transform: uppercase; margin-bottom: 1.2rem;
  border: 1px solid var(--site-border, rgba(255,255,255,0.14)); border-radius: 999px; padding: 6px 14px;
}
.lp .lp-hero__eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--site-accent, #5dd6c6); display: inline-block;
}
.lp .lp-hero__headline {
  font-family: var(--site-heading-font, "Plus Jakarta Sans", "Inter", sans-serif);
  font-size: clamp(2.9rem, 6.2vw, 4.8rem); font-weight: 700; line-height: 1.04;
  letter-spacing: -0.03em; max-width: 18ch; margin: 0 auto 1.1rem; color: var(--site-heading, #f7f9fc);
}
.lp .lp-hero__subhead {
  color: var(--site-muted, #9aa3af); font-size: 1.3rem; line-height: 1.6;
  max-width: 60ch; margin: 0 auto 2rem;
}
/* Accent words inside a headline (gradient) */
.lp .lp-accent {
  background: linear-gradient(92deg, var(--site-accent-2, #5aa9ff), var(--site-accent, #5dd6c6));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp .lp-hero__ctas { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.lp .lp-hero__image { width: 100%; max-width: 960px; margin: 3rem auto 0; border-radius: 16px; display: block; }

/* Split hero: text left, image right (used when the hero has an image) */
.lp .lp-hero--split { text-align: left; }
.lp .lp-hero--split .lp-hero__inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.lp .lp-hero--split .lp-hero__headline { margin: 0 0 1rem; max-width: none; }
.lp .lp-hero--split .lp-hero__subhead { margin: 0 0 2rem; max-width: 52ch; }
.lp .lp-hero--split .lp-hero__ctas { justify-content: flex-start; }
.lp .lp-hero--split .lp-hero__image { margin: 0; max-width: 100%; }
@media (max-width: 820px) {
  .lp .lp-hero--split, .lp .lp-hero--split .lp-hero__ctas { text-align: center; justify-content: center; }
  .lp .lp-hero--split .lp-hero__inner { grid-template-columns: 1fr; gap: 32px; }
  .lp .lp-hero--split .lp-hero__subhead { max-width: 60ch; margin: 0 auto 2rem; }
}

/* Buttons (scoped under .lp so they override Bootstrap's .btn safely) */
.lp .btn {
  display: inline-block; font-weight: 600; padding: 0.8rem 1.6rem; border-radius: 10px;
  text-decoration: none; border: 1px solid transparent; font-size: 1rem;
}
.lp .btn-primary { background: var(--site-accent, #5dd6c6); color: var(--site-on-accent, #07120f); }
.lp .btn-primary:hover { filter: brightness(1.08); color: var(--site-on-accent, #07120f); }
.lp .btn-secondary { background: transparent; color: var(--site-text, #e7e9ee); border-color: var(--site-border, rgba(255,255,255,0.14)); }
.lp .btn-secondary:hover { border-color: var(--site-accent, #5dd6c6); }

/* Stats */
.lp .lp-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 24px; text-align: center; }
.lp .lp-stat__value { font-family: var(--site-heading-font, "Plus Jakarta Sans", sans-serif); font-size: clamp(2.6rem, 4vw, 3.4rem); font-weight: 700; color: var(--site-accent, #5dd6c6); line-height: 1; }
.lp .lp-stat__label { color: var(--site-text, #e7e9ee); margin-top: 0.5rem; font-size: 0.95rem; font-weight: 600; }
.lp .lp-stat__sublabel { color: var(--site-muted, #9aa3af); margin: 0.35rem auto 0; font-size: 0.82rem; line-height: 1.4; max-width: 24ch; }

/* Features */
.lp .lp-features { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 36px; }
.lp .lp-feature__icon { font-size: 1.6rem; margin-bottom: 0.5rem; }
.lp .lp-feature__title { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.4rem; color: var(--site-heading, #f4f6f9); }
.lp .lp-feature__text { color: var(--site-muted, #9aa3af); margin: 0; }

/* Cards — bordered cards; render icon / image / badge / link per item as present */
.lp .lp-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.lp .lp-card { background: var(--site-surface, rgba(255,255,255,0.04)); border: 1px solid var(--site-border, rgba(255,255,255,0.10)); border-radius: 14px; overflow: hidden; }
.lp .lp-card__image { width: 100%; height: 190px; object-fit: cover; object-position: center center; display: block; }
.lp .lp-card__body { padding: 1.5rem; }
.lp .lp-card__icon {
  width: 46px; height: 46px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06); border: 1px solid var(--site-border, rgba(255,255,255,0.10)); font-size: 1.4rem; margin-bottom: 1rem;
}
.lp .lp-card__badge {
  display: inline-block; font-size: 0.72rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 999px; background: rgba(255,255,255,0.05);
  border: 1px solid var(--site-border, rgba(255,255,255,0.10)); color: var(--site-accent, #5dd6c6); margin-bottom: 0.7rem;
}
.lp .lp-card__badge--accent { color: var(--site-accent, #5dd6c6); }
.lp .lp-card__badge--green { color: #34d399; border-color: rgba(52,211,153,0.45); }
.lp .lp-card__badge--blue { color: #5aa9ff; border-color: rgba(90,169,255,0.45); }
.lp .lp-card__badge--amber { color: #f5a524; border-color: rgba(245,165,36,0.45); }
.lp .lp-card__badge--pink { color: #f472b6; border-color: rgba(244,114,182,0.45); }
.lp .lp-card__title { font-size: 1.2rem; font-weight: 600; margin: 0 0 0.4rem; color: var(--site-heading, #f4f6f9); overflow-wrap: anywhere; }
.lp .lp-card__text { color: var(--site-muted, #9aa3af); margin: 0 0 0.7rem; overflow-wrap: anywhere; }
.lp .lp-card__link { color: var(--site-accent, #5dd6c6); text-decoration: none; font-weight: 500; }

/* CTA band */
.lp .lp-cta-band { background: var(--site-cta-bg, rgba(255,255,255,0.03)); }
.lp .lp-cta { text-align: center; max-width: 680px; }
.lp .lp-cta__heading { font-family: var(--site-heading-font, "Plus Jakarta Sans", sans-serif); font-size: 2rem; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 0.6rem; color: var(--site-heading, #f7f9fc); }
.lp .lp-cta__text { color: var(--site-muted, #9aa3af); font-size: 1.15rem; margin: 0 0 1.6rem; }

/* Rich text within a landing page */
.lp .lp-richtext-band .lp-prose { max-width: 760px; }

@media (max-width: 640px) {
  .lp .lp-section { padding: 48px 0; }
  .lp .lp-hero { padding: 64px 0 48px; }
}

/* ======================================================================
   Extended blocks — token-driven, theme-agnostic. Colors resolve through
   --site-* tokens (incl. the optional --site-gold signature); all render on
   any theme, styled by whichever theme defines the tokens.
   ====================================================================== */

/* Gold card badge — Exited / flagship status */
.lp .lp-card__badge--gold { color: var(--site-gold, #d9b36b); border-color: var(--site-gold-line, rgba(217,179,107,0.35)); }

/* Numbered features — gold-boxed 01/02/03 numerals (features block, numbered:true) */
.lp .lp-features--numbered { grid-template-columns: repeat(2, 1fr); }
.lp .lp-feature--numbered {
  display: flex; gap: 18px; align-items: flex-start;
  border: 1px solid var(--site-border, rgba(255,255,255,0.10)); border-radius: 16px; padding: 26px;
  transition: border-color 0.2s ease;
}
.lp .lp-feature--numbered:hover { border-color: var(--site-border-strong, rgba(255,255,255,0.20)); }
.lp .lp-feature__num {
  font-family: var(--site-heading-font, "Plus Jakarta Sans", sans-serif); font-weight: 700; font-size: 0.85rem;
  color: var(--site-gold, #d9b36b); border: 1px solid var(--site-gold-line, rgba(217,179,107,0.35));
  border-radius: 8px; padding: 5px 9px; flex: none; margin-top: 2px;
}
.lp .lp-feature--numbered .lp-feature__title { margin-bottom: 7px; }
@media (max-width: 760px) { .lp .lp-features--numbered { grid-template-columns: 1fr; } }

/* Steps — numbered process timeline (5-col desktop → vertical rail on mobile) */
.lp .lp-steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.lp .lp-step { position: relative; padding: 0 22px 0 0; }
.lp .lp-step + .lp-step { padding-left: 22px; border-left: 1px solid var(--site-border, rgba(255,255,255,0.10)); }
.lp .lp-step__dot {
  width: 34px; height: 34px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-family: var(--site-heading-font, "Plus Jakarta Sans", sans-serif); font-weight: 700; font-size: 0.85rem;
  color: var(--site-accent, #5dd6c6); background: rgba(255,255,255,0.04);
  border: 1px solid var(--site-border, rgba(255,255,255,0.14)); margin-bottom: 16px;
}
.lp .lp-step__title { font-size: 1rem; font-weight: 600; margin: 0 0 8px; color: var(--site-heading, #f4f6f9); }
.lp .lp-step__text { font-size: 0.9rem; color: var(--site-muted, #9aa3af); margin: 0; }
@media (max-width: 900px) {
  .lp .lp-steps { grid-template-columns: 1fr; gap: 0; }
  .lp .lp-step { padding: 0 0 26px 24px; border-left: 1px solid var(--site-border, rgba(255,255,255,0.14)); margin-left: 17px; }
  .lp .lp-step + .lp-step { padding-left: 24px; }
  .lp .lp-step__dot { position: absolute; left: -17.5px; top: 0; }
  .lp .lp-step:last-child { padding-bottom: 0; }
}

/* Proof — story block (gold left rule) + verifiable fact list */
.lp .lp-proof { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.lp .lp-proof__story {
  background: var(--site-surface, rgba(255,255,255,0.04));
  border: 1px solid var(--site-border, rgba(255,255,255,0.10));
  border-left: 3px solid var(--site-gold, #d9b36b); border-radius: 16px; padding: 34px 32px;
}
.lp .lp-proof__mark { font-family: var(--site-heading-font, sans-serif); font-size: 2.4rem; color: var(--site-gold, #d9b36b); line-height: 1; margin-bottom: 10px; }
.lp .lp-proof__quote { font-size: 1.04rem; color: var(--site-heading, #f4f6f9); margin: 0 0 18px; }
.lp .lp-proof__attr { font-size: 0.88rem; color: var(--site-muted, #9aa3af); }
.lp .lp-proof__points { display: flex; flex-direction: column; }
.lp .lp-proof__point { padding: 20px 0; border-bottom: 1px solid var(--site-border, rgba(255,255,255,0.10)); display: flex; gap: 16px; align-items: baseline; }
.lp .lp-proof__point:first-child { padding-top: 4px; }
.lp .lp-proof__point b { font-family: var(--site-heading-font, sans-serif); color: var(--site-heading, #f4f6f9); font-size: 1rem; flex: none; min-width: 118px; }
.lp .lp-proof__point span { font-size: 0.92rem; color: var(--site-muted, #9aa3af); }
@media (max-width: 820px) { .lp .lp-proof { grid-template-columns: 1fr; gap: 28px; } }

/* ======================================================================
   Hero background layer — optional, human-curated per site (never LLM-set).
   The spiral/glow art recolors entirely through --site-* tokens.
   ====================================================================== */
.lp .lp-hero { position: relative; overflow: hidden; }
.lp .lp-hero__inner { position: relative; z-index: 1; }
.lp .lp-hero__bg { position: absolute; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.lp .lp-hero__bg .lp-glow, .lp .lp-hero__bg .lp-glow2 { position: absolute; border-radius: 50%; }
.lp .lp-hero__bg .lp-glow {
  width: 720px; height: 720px; right: -220px; top: -180px;
  background: radial-gradient(circle, rgba(79,216,196,0.13), transparent 62%);
  background: radial-gradient(circle, color-mix(in srgb, var(--site-accent, #4fd8c4) 14%, transparent), transparent 62%);
}
.lp .lp-hero__bg .lp-glow2 {
  width: 560px; height: 560px; left: -260px; bottom: -260px;
  background: radial-gradient(circle, rgba(124,140,248,0.10), transparent 62%);
  background: radial-gradient(circle, color-mix(in srgb, var(--site-accent-2, #7c8cf8) 11%, transparent), transparent 62%);
}
.lp .lp-hero__bg .lp-spiral { position: absolute; left: 0; right: 0; top: -16px; width: 100%; height: calc(100% + 32px); opacity: 0.45; }
.lp .lp-spiral .lp-guides { stroke: var(--site-border, rgba(148,163,199,0.12)); }
.lp .lp-spiral .lp-arcs { stroke: var(--site-gold-line, var(--site-border-strong, rgba(148,163,199,0.32))); }
.lp .lp-spiral .lp-eye { fill: var(--site-accent, #4fd8c4); }

/* Motion — skipped entirely for reduced-motion users (static composition remains). */
@media (prefers-reduced-motion: no-preference) {
  .lp .lp-hero__bg .lp-glow { animation: lpGlowDrift 22s ease-in-out infinite alternate; }
  .lp .lp-hero__bg .lp-glow2 { animation: lpGlowDrift2 27s ease-in-out infinite alternate; }
  .lp .lp-hero__bg .lp-spiral { animation: lpSpiralFloat 16s ease-in-out infinite alternate; }
  .lp .lp-spiral .lp-guides { opacity: 0; animation: lpGuideFade 1.6s ease forwards 2.2s; }
  /* Arcs FADE in (staggered) instead of dash-drawing: dashoffset repaints the
     whole SVG layer every frame (CPU, janky); opacity is GPU-composited. */
  .lp .lp-spiral .lp-arc { opacity: 0; animation: lpArcFade ease-out forwards; }
  .lp .lp-spiral .lp-arc:nth-child(1) { animation-duration: 1.1s; animation-delay: 0.3s; }
  .lp .lp-spiral .lp-arc:nth-child(2) { animation-duration: 0.85s; animation-delay: 1.3s; }
  .lp .lp-spiral .lp-arc:nth-child(3) { animation-duration: 0.65s; animation-delay: 2.05s; }
  .lp .lp-spiral .lp-arc:nth-child(4) { animation-duration: 0.5s; animation-delay: 2.6s; }
  .lp .lp-spiral .lp-arc:nth-child(5) { animation-duration: 0.4s; animation-delay: 3s; }
  .lp .lp-spiral .lp-arc:nth-child(6) { animation-duration: 0.32s; animation-delay: 3.3s; }
  .lp .lp-spiral .lp-arc:nth-child(7) { animation-duration: 0.26s; animation-delay: 3.55s; }
  .lp .lp-spiral .lp-eye { transform-box: fill-box; transform-origin: center; opacity: 0; animation: lpEyePulse 3.6s ease-in-out infinite 3.85s; }
}
@keyframes lpGlowDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(-70px,50px) scale(1.12); } }
@keyframes lpGlowDrift2 { from { transform: translate(0,0) scale(1.08); } to { transform: translate(60px,-40px) scale(0.94); } }
@keyframes lpSpiralFloat { from { transform: translateY(0); } to { transform: translateY(-16px); } }
@keyframes lpGuideFade { to { opacity: 0.55; } }
@keyframes lpArcFade { to { opacity: 1; } }
@keyframes lpEyePulse { 0%,100% { opacity: 0.35; transform: scale(1); } 50% { opacity: 0.9; transform: scale(1.8); } }

/* --- Contact form (contact_form section) --------------------------------- */
.lp .lp-form { max-width: 780px; }
.lp .lp-form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lp .lp-form__field--wide { grid-column: span 2; }
.lp .lp-form__label {
  display: block; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.04em;
  color: var(--site-muted, #8b93a7); margin-bottom: 6px;
}
.lp .lp-form__input {
  width: 100%; padding: 12px 14px; border-radius: 10px; font: inherit;
  border: 1px solid var(--site-border, rgba(148,163,199,0.2));
  background: var(--site-surface, rgba(255,255,255,0.03));
  color: var(--site-text, #dfe4ee);
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.lp .lp-form__input::placeholder { color: var(--site-muted, #8b93a7); opacity: 0.6; }
.lp .lp-form__input:focus {
  outline: none; border-color: var(--site-accent, #5dd6c6);
  box-shadow: 0 0 0 3px var(--site-focus-ring, rgba(93,214,198,0.16));
}
.lp .lp-form__textarea { min-height: 140px; resize: vertical; }
.lp .lp-form__hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.lp .lp-form__foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin-top: 20px;
}
.lp .lp-form__consent { font-size: 0.82rem; color: var(--site-muted, #8b93a7); max-width: 420px; }
.lp .lp-form__status { display: none; margin-top: 14px; font-size: 0.95rem; }
.lp .lp-form__status--ok { display: block; color: var(--site-accent, #5dd6c6); }
.lp .lp-form__status--err { display: block; color: #e5484d; }
@media (max-width: 760px) {
  .lp .lp-form__grid { grid-template-columns: 1fr; }
  .lp .lp-form__field--wide { grid-column: auto; }
  .lp .lp-form__foot .btn { width: 100%; }
}

/* Reusable Insights metadata + native newsletter form -------------------- */
.article-meta, .insight-card__meta {
  color: var(--site-muted, #8b93a7); font-size: 0.76rem; font-weight: 600;
  letter-spacing: 0.1em; text-transform: uppercase;
}
.article-meta { margin: 10px 0 20px; }
.insight-card__meta { margin-bottom: 8px; }
.newsletter-form {
  display: flex; gap: 10px; align-items: stretch; max-width: 660px; margin-top: 24px;
}
.newsletter-form__input {
  flex: 1 1 280px; min-width: 0; padding: 12px 15px; border-radius: 10px;
  border: 1px solid var(--site-border, rgba(148,163,199,0.2));
  background: var(--site-surface, rgba(255,255,255,0.03));
  color: var(--site-text, #dfe4ee); font: inherit;
}
.newsletter-form__input:focus {
  outline: none; border-color: var(--site-accent, #5dd6c6);
  box-shadow: 0 0 0 3px var(--site-focus-ring, rgba(93,214,198,0.16));
}
.newsletter-form__button { flex: 0 0 auto; }
@media (max-width: 620px) {
  .newsletter-form { flex-direction: column; }
  .newsletter-form__input { flex-basis: auto; width: 100%; }
  .newsletter-form__button { width: 100%; }
}
