/* Clip 100vw full-bleed without a scroll container. overflow-x:hidden on a
   sticky-header ancestor computes overflow-y to auto, which kills position:sticky
   and clips TopNav absolute menus (language / product dropdowns). */
.mkt-bleed-clip {
  overflow-x: clip;
}

/* Direction 3 marketing planes — break out of MarketingLayout max-w-6xl <main>. */
.mkt-full-bleed {
  width: 100vw;
  max-width: 100vw;
  position: relative;
  left: 50%;
  margin-left: -50vw;
  box-sizing: border-box;
}

.mkt-inner {
  margin-left: auto;
  margin-right: auto;
  width: 100%;
  max-width: 64rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (min-width: 640px) {
  .mkt-inner {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }
}

.mkt-intel-plane {
  background:
    linear-gradient(180deg, rgba(5, 150, 105, 0.12), transparent 70%),
    #ecfdf5;
  border-top: 1px solid #a7f3d0;
  border-bottom: 1px solid #a7f3d0;
}

html[data-theme="dark"] .mkt-intel-plane {
  background:
    linear-gradient(180deg, rgba(5, 150, 105, 0.22), transparent 70%),
    #042f2e;
  border-top-color: #115e59;
  border-bottom-color: #115e59;
}

/* Theme-aware canvas bands — buffer between green hero / intel / CTA planes. */
.mkt-band {
  background: var(--fallback-b2, oklch(var(--b2)));
  border-top: 1px solid color-mix(in oklab, var(--fallback-bc, oklch(var(--bc))) 12%, transparent);
}

.mkt-band-alt {
  background: var(--fallback-b1, oklch(var(--b1)));
  border-top: 1px solid color-mix(in oklab, var(--fallback-bc, oklch(var(--bc))) 12%, transparent);
}

/* App-primitive cards (rounded-xl). Follow marketingAppearance via data-theme. */
.mkt-card,
.mkt-panel {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  color: #0f172a;
}

html[data-theme="dark"] .mkt-card,
html[data-theme="dark"] .mkt-panel {
  border-color: #334155;
  background: #0f172a;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.35);
  color: #f1f5f9;
}

.mkt-card-muted {
  border-radius: 0.75rem;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
}

html[data-theme="dark"] .mkt-card-muted {
  border-color: #334155;
  background: #020617;
}

.mkt-title {
  color: #0f172a;
}

html[data-theme="dark"] .mkt-title {
  color: #f1f5f9;
}

.mkt-body {
  color: #334155;
}

html[data-theme="dark"] .mkt-body {
  color: #cbd5e1;
}

.mkt-intel-plane .mkt-title,
.mkt-intel-plane h2,
.mkt-intel-plane h3 {
  color: #064e3b;
}

html[data-theme="dark"] .mkt-intel-plane .mkt-title,
html[data-theme="dark"] .mkt-intel-plane h2,
html[data-theme="dark"] .mkt-intel-plane h3 {
  color: #ecfdf5;
}

.mkt-intel-plane .mkt-body {
  color: #065f46;
}

html[data-theme="dark"] .mkt-intel-plane .mkt-body {
  color: #a7f3d0;
}

/* Marketing shell: Inter is linked in App.razor; app.css forces Helvetica Neue which
   synthetic-bolds on Windows and reads as doubled/blurry nav labels. */
.mkt-shell {
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* Dark-plane CTAs - do not use DaisyUI `btn` (primary green vanishes into the hero).
   Higher specificity beats app.css `a, .btn-link` and thisprop `a { color: inherit }`. */
.mkt-btn,
.mkt-btn-ghost,
.mkt-btn-outline,
.mkt-btn-store,
.mkt-btn-store-ghost,
.bg-marketing-hero a.mkt-btn,
.bg-marketing-hero a.mkt-btn-ghost,
.bg-marketing-cta a.mkt-btn,
.bg-marketing-cta a.mkt-btn-ghost {
  display: inline-flex;
  min-height: 2.75rem;
  align-items: center;
  justify-content: center;
  border-radius: 0.5rem;
  padding: 0.625rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  box-sizing: border-box;
}

.mkt-btn,
.bg-marketing-hero a.mkt-btn,
.bg-marketing-cta a.mkt-btn {
  background: #059669 !important;
  color: #fff !important;
  border: 0 !important;
}

.mkt-btn:hover,
.bg-marketing-hero a.mkt-btn:hover,
.bg-marketing-cta a.mkt-btn:hover {
  background: #10b981 !important;
  color: #fff !important;
}

.mkt-btn-ghost,
.bg-marketing-hero a.mkt-btn-ghost,
.bg-marketing-cta a.mkt-btn-ghost {
  border: 1px solid rgb(255 255 255 / 0.35) !important;
  background: rgb(255 255 255 / 0.06) !important;
  color: #fff !important;
}

.mkt-btn-ghost:hover,
.bg-marketing-hero a.mkt-btn-ghost:hover,
.bg-marketing-cta a.mkt-btn-ghost:hover {
  background: rgb(255 255 255 / 0.12) !important;
  color: #fff !important;
}


.mkt-btn-outline {
  border: 1px solid #cbd5e1;
  background: transparent;
  color: #1e293b;
}

html[data-theme="dark"] .mkt-btn-outline {
  border-color: #475569;
  color: #f1f5f9;
}

.mkt-btn-outline:hover {
  background: #f1f5f9;
  color: #1e293b;
}

html[data-theme="dark"] .mkt-btn-outline:hover {
  background: #1e293b;
  color: #f8fafc;
}

.mkt-btn-store {
  background: #ffffff;
  color: #0f172a;
  border: 0;
}

.mkt-btn-store:hover {
  background: #f1f5f9;
  color: #0f172a;
}

.mkt-btn-store-ghost {
  border: 1px solid rgb(255 255 255 / 0.35);
  background: rgb(255 255 255 / 0.06);
  color: #fff;
}

.mkt-btn-store-ghost:hover {
  background: rgb(255 255 255 / 0.12);
  color: #fff;
}

.mkt-cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
}

/* Canvas kickers/links — not hero mint (#80FFDB / .mkt-hero-link), which vanishes on light cards. */
.mkt-kicker {
  color: #047857;
}

html[data-theme="dark"] .mkt-kicker {
  color: #34d399;
}

.mkt-link {
  color: #047857;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgb(4 120 87 / 0.4);
}

.mkt-link:hover {
  color: #065f46;
}

html[data-theme="dark"] .mkt-link {
  color: #6ee7b7;
  text-decoration-color: rgb(110 231 183 / 0.4);
}

html[data-theme="dark"] .mkt-link:hover {
  color: #fff;
}

.mkt-hero-link {
  color: #a7f3d0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-decoration-color: rgb(167 243 208 / 0.5);
}

.mkt-hero-link:hover {
  color: #fff;
}

.mkt-price-card {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.mkt-chip {
  display: inline-flex;
  border-radius: 9999px;
  border: 1px solid #d1d5db;
  background: #f8fafc;
  padding: 0.25rem 0.625rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: #334155;
}

html[data-theme="dark"] .mkt-chip {
  border-color: #475569;
  background: #1e293b;
  color: #e2e8f0;
}

.mkt-chip-active {
  border-color: #059669;
  background: rgb(5 150 105 / 0.12);
  color: #047857;
}

html[data-theme="dark"] .mkt-chip-active {
  border-color: #34d399;
  background: rgb(16 185 129 / 0.15);
  color: #6ee7b7;
}

/* Marketing TopNav: Spanish/pt-BR labels are longer than English. Prefer the
   center pill over utility/CTA chrome, tighten chrome below xl, and keep the
   pill from clipping readable labels into the theme/lang icons. */
.mkt-topnav-grid {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.mkt-topnav-platform-icon {
  display: none;
}

@media (min-width: 1024px) {
  .mkt-topnav-grid {
    /* Right column may shrink; center keeps readable nav labels. */
    grid-template-columns: auto minmax(0, 1fr) minmax(0, auto);
  }

  .mkt-topnav-utilities {
    min-width: 0;
    max-width: 100%;
  }

  .mkt-topnav-primary {
    min-width: 0;
  }

  .mkt-topnav-ctas {
    min-width: 0;
  }

  .mkt-topnav-cta {
    min-width: 0 !important;
  }
}

@media (min-width: 1024px) and (max-width: 1279.98px) {
  .mkt-topnav-primary .mkt-topnav-chevron {
    display: none;
  }

  .mkt-topnav-primary .mkt-topnav-link {
    padding-left: 0.375rem;
    padding-right: 0.375rem;
  }

  /* Contact stays in the mobile drawer + footer; hide to free chrome near Platform. */
  .mkt-topnav-contact {
    display: none;
  }

  .mkt-topnav-contact + .mx-0\.5,
  .mkt-topnav-utilities .mkt-topnav-contact + [role="presentation"] {
    display: none;
  }

  /* Platform: icon-only so long ES/pt labels do not collide with theme/lang. */
  .mkt-topnav-platform-icon {
    display: block;
  }

  .mkt-topnav-platform-label {
    display: none;
  }

  .mkt-topnav-cta {
    max-width: 8.75rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

/* ============================================================================
   Area themes (prototype) — the per-page "identity" accent.
   -------------------------------------------------------------------------
   The problem this solves: every spoke renders the same shell in the same
   accent, so moving between the ~50 pages doesn't read as "somewhere new".
   Fix: constant layout, VARIABLE identity accent per product area, set via
   `data-mkt-theme` on the page/spoke root and consumed through `--mkt-accent`.

   Design rule (deliberate): this themes only the WAYFINDING accent — links,
   breadcrumbs, the "you are here" sidebar state, section rules. The primary
   conversion CTA (`.mkt-btn`, emerald #059669) stays CONSTANT across every
   area so CTA recognition holds (redesign benchmark rubric #4). Appearance
   (light/dark, via html[data-theme]) is a separate, orthogonal axis.
   See docs/plans/marketing-design-system-approach.md.
   ============================================================================ */

/* Global default so accent utilities always resolve. Area theme is a per-PAGE / per-destination
   property: set data-mkt-theme once on the page (or spoke) root — sibling sections INHERIT it, so a
   page reads as one coherent accent. Do NOT theme individual sections of a hub page (that fragments it);
   a section carries its own accent only when it IS its own destination. */
:root { --mkt-accent: #006D77; }
html[data-theme="dark"] { --mkt-accent: #34B3A6; }

.mkt-area,
[data-mkt-theme] { --mkt-accent: #006D77; }

[data-mkt-theme="investor"]   { --mkt-accent: #006D77; } /* teal   — deals / pipeline */
[data-mkt-theme="service"]    { --mkt-accent: #1E6FA6; } /* blue   — field service   */
[data-mkt-theme="accounting"] { --mkt-accent: #3B4BA0; } /* indigo — books / tax     */
[data-mkt-theme="rentals"]    { --mkt-accent: #9A6212; } /* ochre  — rentals / ops   */
[data-mkt-theme="capital"]    { --mkt-accent: #6E3CA0; } /* violet — LP / capital    */
[data-mkt-theme="platform"]   { --mkt-accent: #4A5A6A; } /* slate  — the platform    */

/* Dark marketing appearance — brighter accents for contrast on slate grounds. */
html[data-theme="dark"] .mkt-area,
html[data-theme="dark"] [data-mkt-theme]             { --mkt-accent: #34B3A6; }
html[data-theme="dark"] [data-mkt-theme="investor"]  { --mkt-accent: #34B3A6; }
html[data-theme="dark"] [data-mkt-theme="service"]   { --mkt-accent: #56AEE6; }
html[data-theme="dark"] [data-mkt-theme="accounting"]{ --mkt-accent: #8B96E6; }
html[data-theme="dark"] [data-mkt-theme="rentals"]   { --mkt-accent: #E0A24E; }
html[data-theme="dark"] [data-mkt-theme="capital"]   { --mkt-accent: #B48AE6; }
html[data-theme="dark"] [data-mkt-theme="platform"]  { --mkt-accent: #93A6B6; }

/* Utilities — semantic accent classes the shells use in place of hardcoded prop-teal. */
.mkt-accent-link { color: var(--mkt-accent); text-underline-offset: 4px; }
.mkt-accent-link:hover { color: color-mix(in srgb, var(--mkt-accent) 80%, transparent); }
.mkt-accent-underline { text-decoration-line: underline; text-decoration-color: color-mix(in srgb, var(--mkt-accent) 40%, transparent); }

/* Sidebar "you are here" — area-tinted, replacing the shared `primary` active state. */
.mkt-accent-nav-active {
  background: color-mix(in srgb, var(--mkt-accent) 14%, transparent);
  color: var(--mkt-accent);
}
html[data-theme="dark"] .mkt-accent-nav-active {
  background: color-mix(in srgb, var(--mkt-accent) 22%, transparent);
}

/* Hero eyebrow accent — a brighter variant tuned to read on the dark hero plane
   (`bg-marketing-hero`), which stays dark in BOTH appearances, so no light/dark split.
   Set `Theme` on <MarketingHeroPlane> to stamp data-mkt-theme on the hero section. */
:root { --mkt-accent-hero: #5EEAD4; }
.mkt-area,
[data-mkt-theme]              { --mkt-accent-hero: #5EEAD4; } /* default = investor mint */
[data-mkt-theme="investor"]   { --mkt-accent-hero: #5EEAD4; }
[data-mkt-theme="service"]    { --mkt-accent-hero: #7CC0F0; }
[data-mkt-theme="accounting"] { --mkt-accent-hero: #AEB6F2; }
[data-mkt-theme="rentals"]    { --mkt-accent-hero: #F0C066; }
[data-mkt-theme="capital"]    { --mkt-accent-hero: #C9A6F0; }
[data-mkt-theme="platform"]   { --mkt-accent-hero: #AEC0CE; }

.mkt-eyebrow { color: var(--mkt-accent-hero); }
