/* The public site on VerdiCore (lote 276). The site is where VerdiCore's palette comes from; what changes here is that its own names
   (--ink, --teal, --paper …) resolve to the tokens and that the pieces that were improvised (the module colours, the amber focus ring,
   the small header button) take the system's measures. The marketing pages are a light page with dark brand sections, so they are pinned
   to the light theme (<html data-theme="light">); the platform, the sign-in pages and the portals follow the computer.
   Loads after verdicore.css and after the page's own styles. */

html:root, html[data-theme="dark"], html[data-theme="light"] {
  --ink: var(--text);
  --ink-deep: var(--text-strong);
  --teal: var(--accent);
  --teal-bright: var(--brand-teal-bright);
  --mint: var(--bg-tint-strong);
  --mint-soft: var(--bg-tint);
  --paper: var(--bg-page);
  --sand: var(--bg-subtle);
  --white: var(--bg-card);
  --slate: var(--text-muted);
  --container: var(--marketing-max);
  --accent-soft: var(--bg-tint-strong);
  --accent-wash: var(--bg-tint);
  --accent-ink: var(--text-strong);
  --accent-ring: var(--bg-tint-strong);
  --shadow: var(--shadow-modal);
  --radius: var(--radius-xl);
}

/* The dark brand sections (call to action, featured plan, footer, workflow, portal): the same two roles in both themes — a dark surface and
   the light text on it. In the dark theme the surface is the card colour so the section still separates from the page. */
html:root {
  --site-dark: var(--brand-ink-deep);
  --site-on-dark: var(--brand-mint-soft);
  --site-on-dark-muted: var(--brand-mint);
  --site-on-dark-line: color-mix(in srgb, var(--brand-mint-soft) 18%, transparent);
  --site-on-dark-fill: color-mix(in srgb, var(--brand-mint-soft) 10%, transparent);
}
@media (prefers-color-scheme: dark) { html:root:not([data-theme="light"]) { --site-dark: var(--bg-card); } }
html:root[data-theme="dark"] { --site-dark: var(--bg-card); }

body { background: var(--bg-page); color: var(--text); }
:where(a, button, input, textarea, select, [tabindex]):focus-visible { outline: 3px solid var(--focus-ring); outline-offset: 3px; }
.skip-link { padding: 0 var(--space-6); height: var(--control-h); display: inline-flex; align-items: center; border-radius: var(--radius-md); background: var(--action); color: var(--on-action); font: 650 16px/24px var(--font-sans); }
.marketing-header { background: var(--bg-card); -webkit-backdrop-filter: none; backdrop-filter: none; border-bottom: 1px solid var(--line); }
.marketing-header.is-scrolled, .marketing-header.is-open { background: var(--bg-card); box-shadow: none; }
.marketing-brand, .marketing-footer-logo { font: 800 17px/24px var(--font-sans); letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-strong); }
.marketing-button, .marketing-page-button, a.btn-primary, .btn.btn-primary, .cta-button, .hero-button, .button, .btn-primary, a.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-3);
  min-height: var(--control-h); padding: 0 var(--space-8);
  border-radius: var(--radius-md);
  font: 650 16px/24px var(--font-sans); text-decoration: none; box-shadow: none; transform: none; background-image: none;
}
.marketing-button, .btn-primary, a.btn-primary, .btn.btn-primary, .cta-button { background: var(--action); border: 1px solid var(--action); color: var(--on-action); }
.marketing-button:hover, .btn-primary:hover, .cta-button:hover { background: var(--action-hover); border-color: var(--action-hover); transform: none; box-shadow: none; }
.marketing-button.is-secondary, .marketing-page-button.is-secondary, .btn-secondary, a.btn-secondary { background: var(--bg-card); border: 1px solid var(--line-control); color: var(--text-strong); }
.marketing-language { border-radius: var(--radius-md); border: 1px solid var(--line-control); background: var(--bg-card); }
.marketing-language button { min-height: calc(var(--item-h) - var(--space-2)); border-radius: var(--radius-sm); }
.marketing-language button[aria-pressed="true"], .marketing-language .active { background: var(--bg-tint-strong); color: var(--text-strong); }
.marketing-footer { background: var(--bg-subtle); color: var(--text); border-top: 1px solid var(--line); }
.marketing-footer a { color: var(--text-muted); }
.marketing-footer a:hover { color: var(--text-strong); }
.marketing-footer h2 { font: 650 13px/18px var(--font-sans); letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-muted); }
/* No colour of its own per module, no gradient, no drop shadow on cards */
[class*="module-"][class*="-card"], .module-card, .solution-card, .plan-card, .price-card, .value-item, .faq-item, .content-item { background-image: none; box-shadow: var(--shadow-tile); }
.hero, .hero-section, .marketing-page-hero, .cta-section, .final-cta, section[class*="hero"] { background-image: none; }
/* Lote 281: VerdiCore's type floor (13px) on the public pages too. The language switch has the system's own letters (14px), the
   footer line, eyebrows, badges and statuses go up to 13px, and the product preview of the home page draws its words at 13px. */
.marketing-language button:not(#_) { font: 650 14px/20px var(--font-sans); letter-spacing: 0.04em; min-width: 40px; }
.marketing-footer-bottom p:not(#_), .marketing-page-eyebrow:not(#_) { font-size: 13px; line-height: 18px; }
:is(.badge, .module-subtitle, .upcoming-status, .solution-status):not(#_) { font-size: 13px; line-height: 18px; }
:is(.preview-brand, .flow-icon, .flow-state, .preview-summary p, .preview-summary span, .flow-row small):not(#_) { font-size: 13px; line-height: 18px; }
