/* Metric-matched fallback for Sofia Sans, measured against Arial in Edge on the site's own headings:
   text keeps its line breaks when the web font swaps in, which removes most font-driven layout shift (CLS).
   Bulgarian and Latin letters differ in width, so each gets its own size (unicode-range); Arial has Cyrillic.
   ascent/descent overrides keep Sofia Sans' 0.90/0.30 metrics at every size-adjust. */
@font-face { font-family: "Sofia Sans Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 599; size-adjust: 95.58%; ascent-override: 94.16%; descent-override: 31.39%; line-gap-override: 0%; }
@font-face { font-family: "Sofia Sans Fallback"; src: local("Arial"), local("ArialMT"); font-weight: 100 599; unicode-range: U+0400-04FF; size-adjust: 99.34%; ascent-override: 90.60%; descent-override: 30.20%; line-gap-override: 0%; }
@font-face { font-family: "Sofia Sans Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; size-adjust: 91.88%; ascent-override: 97.95%; descent-override: 32.65%; line-gap-override: 0%; }
@font-face { font-family: "Sofia Sans Fallback"; src: local("Arial Bold"), local("Arial-BoldMT"); font-weight: 600 900; unicode-range: U+0400-04FF; size-adjust: 95.68%; ascent-override: 94.06%; descent-override: 31.35%; line-gap-override: 0%; }
@font-face { font-family: "Sofia Sans Fallback"; src: local("Arial Italic"), local("Arial-ItalicMT"); font-weight: 100 599; font-style: italic; size-adjust: 95.58%; ascent-override: 94.16%; descent-override: 31.39%; line-gap-override: 0%; }
@font-face { font-family: "Sofia Sans Fallback"; src: local("Arial Italic"), local("Arial-ItalicMT"); font-weight: 100 599; font-style: italic; unicode-range: U+0400-04FF; size-adjust: 99.34%; ascent-override: 90.60%; descent-override: 30.20%; line-gap-override: 0%; }
@font-face { font-family: "Sofia Sans Fallback"; src: local("Arial Bold Italic"), local("Arial-BoldItalicMT"); font-weight: 600 900; font-style: italic; size-adjust: 90.0%; ascent-override: 100.00%; descent-override: 33.33%; line-gap-override: 0%; }
@font-face { font-family: "Sofia Sans Fallback"; src: local("Arial Bold Italic"), local("Arial-BoldItalicMT"); font-weight: 600 900; font-style: italic; unicode-range: U+0400-04FF; size-adjust: 89.3%; ascent-override: 100.78%; descent-override: 33.59%; line-gap-override: 0%; }

/* ─────────────────────────────────────────────────────────────
   Plater marketing landing — token system + shared primitives.
   Scoped under .pl-landing. Dark mode via [data-theme="dark"].
   Radius rule: buttons = pill, cards/frames = 16px, inputs = 10px.
   ───────────────────────────────────────────────────────────── */

.pl-landing {
  /* the global @theme has no --color-on-primary; the CookieBanner uses it */
  --color-on-primary: #FFFFFF;

  /* palette (light) */
  --primary: #6941C6;
  --primary-dark: #53309F;
  --primary-soft: #EDE7FB;
  --on-primary: #FFFFFF;
  --paper: #FCFBF9;
  --surface: #F5F3F7;
  --lavender: #F3EFFA;
  --ink: #191423;
  --muted: #4E475E;
  --muted-2: #4E475E;
  --primary-fill: #6941C6; /* purple behind white text: 6.6:1 */
  /* stacking scale: page chrome only; components keep local 1-6 */
  --z-nav: 100;
  --z-menu: 120;
  --z-overlay: 2000;
  --z-skip: 3000;
  --primary-ink: #6941C6;  /* purple used as text: 6.4:1 on paper, 6.0:1 on --surface */
  --rule: #E7E3ED;
  --shadow-ink: 25 20 48;

  /* type */
  --font-display: "Sofia Sans", "Sofia Sans Fallback", "Inter", system-ui, sans-serif;
  --font-body: "Sofia Sans", "Sofia Sans Fallback", "Inter", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, monospace;
  --font-script: "Pacifico", cursive;

  /* layout */
  --maxw: 1200px;
  --gutter: clamp(20px, 5vw, 56px);
  --sect: clamp(64px, 8vw, 96px);
  --r-card: 20px;
  --r-input: 12px;
  /* type scale: 12 13 14 16 18 22 28 34 44, plus these fluid headings. Product screens may also use 11. */
  --fs-display: clamp(40px, 5.6vw, 76px);
  --fs-h2: clamp(30px, 3.4vw, 44px);
  --fs-h3: clamp(22px, 2vw, 28px);
  --shadow-sm: 0 8px 20px -10px rgb(var(--shadow-ink) / .3);
  --shadow-lg: 0 30px 70px -34px rgb(var(--shadow-ink) / .5);

  font-family: var(--font-body);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  font-size: 16px;
}

.pl-landing[data-theme="dark"] {
  /* shared components inside the landing (CookieBanner) style themselves with
     the app-wide --color-* tokens; re-point them at the dark palette here */
  --color-surface: #1A1620;
  --color-background: #131017;
  --color-border: #292332;
  --color-text: #F1EDF7;
  --color-text-muted: #A79FB6;
  --color-primary: #8B6CE0;
  --color-on-primary: #FFFFFF;

  --primary: #8B6CE0;
  --primary-dark: #6941C6;
  --primary-soft: #2A2140;
  --paper: #131017;
  --surface: #1A1620;
  --lavender: #1D1828;
  --ink: #F1EDF7;
  --muted: #A79FB6;
  --muted-2: #A79FB6;
  --primary-fill: #7150D0; /* white on it: 5.6:1 (the dark --primary #8B6CE0 gives 3.9:1) */
  --primary-ink: #A28AE8;  /* on #131017: 6.6:1 */
  --rule: #292332;
  --shadow-ink: 0 0 0;
}

/* base resets within scope */
.pl-landing * { box-sizing: border-box; }
.pl-landing h1, .pl-landing h2, .pl-landing h3, .pl-landing p { margin: 0; }
.pl-landing a { color: inherit; text-decoration: none; }
.pl-landing img { display: block; max-width: 100%; height: auto; }
.pl-landing button { font-family: inherit; }
.pl-landing section { isolation: isolate; }

.pl-landing .wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

/* ── display type ── */
.pl-landing .h-display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.04;
  font-size: var(--fs-display);
}
.pl-landing .h-section {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.08;
  font-size: var(--fs-h2);
}
.pl-landing .h-block {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.15;
  font-size: var(--fs-h3);
}
.pl-landing .sub {
  color: var(--muted);
  font-size: 18px;
  max-width: 56ch;
}
/* mono eyebrow above section headlines */
.pl-landing .eyebrow {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--primary);
  margin-bottom: 14px;
}

/* purple-italic emphasis word inside a headline (same family, heavier) */
.pl-landing .em-i {
  font-style: italic;
  color: var(--primary);
  padding-right: 0.06em; /* italic overhang */
}

.pl-landing .script-accent {
  font-family: var(--font-script);
  font-weight: 400;
  letter-spacing: 0;
  line-height: 1.25;
  padding-bottom: 0.08em; /* descender reserve */
  display: inline-block;
}

/* ── buttons (pill) ── */
.pl-landing .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 16px;
  padding: 14px 28px;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: transform .15s ease, background .15s ease, border-color .15s ease, color .15s ease;
}
.pl-landing .btn:active { transform: translateY(1px) scale(.99); }
.pl-landing .btn:focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.pl-landing .btn-primary {
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: var(--shadow-sm);
}
.pl-landing .btn-primary:hover { background: var(--primary-dark); transform: translateY(-2px) scale(1.02); }
.pl-landing[data-theme="dark"] .btn-primary { background: #7C5CD6; color: #fff; }
.pl-landing[data-theme="dark"] .btn-primary:hover { background: #8B6CE0; }
.pl-landing .btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--rule); }
.pl-landing .btn-ghost:hover { border-color: var(--muted-2); transform: translateY(-1px); }
.pl-landing .btn-on-purple { background: #fff; color: #53309F; }
.pl-landing .btn-on-purple:hover { background: #F3EFFA; transform: translateY(-1px); }

/* ── logo wordmark ── */
.pl-landing .wordmark {
  display: inline-block;
  height: 30px;
  width: 74px;
  background-color: var(--primary);
  -webkit-mask: url("../logo.svg") no-repeat left center / contain;
  mask: url("../logo.svg") no-repeat left center / contain;
  flex-shrink: 0;
}
.pl-landing .wordmark--white { background-color: #fff; }

/* ── scroll reveal ── */
.pl-landing .reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity .6s cubic-bezier(.16, 1, .3, 1), transform .6s cubic-bezier(.16, 1, .3, 1);
}
.pl-landing .reveal.in { opacity: 1; transform: none; }

/* ── reduced motion: everything static ── */
@media (prefers-reduced-motion: reduce) {
  .pl-landing .reveal { opacity: 1; transform: none; transition: none; }
  .pl-landing .btn, .pl-landing a { transition: none; }
  .pl-landing *, .pl-landing *::before, .pl-landing *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* ── read by screen readers only (keeps the heading outline whole) ── */
.pl-landing .sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}

/* section headings: one colour site-wide */
.pl-landing .h-section .em-i,.pl-landing h1 .em-i{color:inherit!important}

/* ── shared mobile-first baseline (all marketing pages) ── */
@media (max-width:639px){
.pl-landing{--gutter:clamp(22px,5.5vw,56px);--sect:64px;--fs-display:clamp(34px,10.2vw,44px);--fs-h2:clamp(26px,7.8vw,34px)}
.pl-landing .btn{min-height:48px}
.pl-landing .h-section,.pl-landing .h-block{margin-top:14px}
/* eyebrows read as labels, not noise */
.pl-landing .eyebrow{font-size:12px;letter-spacing:.15em}
.pl-landing .h-block{font-size:22px}
}

/* ── keyboard: skip link, one focus ring everywhere, nothing hidden under the sticky nav ── */
html { scroll-padding-top: 88px; }
html.pl-menu-open { overflow: hidden; }
.pl-landing .skip-link { position: absolute; left: 16px; top: -100px; z-index: var(--z-skip); padding: 12px 18px; border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 700; text-decoration: none; transition: top .15s ease; }
.pl-landing .skip-link:focus { top: 12px; }
.pl-landing .skip-link:hover { color: var(--paper); } /* the site-wide purple link hover was 2.7:1 on this dark pill */
.pl-landing main:focus { outline: none; }
.pl-landing :where(a, button, summary, [tabindex]:not([tabindex="-1"]), [role="button"], [role="tab"]):focus-visible { outline: 3px solid var(--primary); outline-offset: 2px; }
.pl-landing :is(input, select, textarea):focus-visible { outline: 2px solid var(--primary) !important; outline-offset: 1px; }
.pl-landing[data-theme="dark"] :where(a, button, summary, [tabindex]:not([tabindex="-1"]), [role="button"], [role="tab"]):focus-visible,
.pl-landing[data-theme="dark"] :is(input, select, textarea):focus-visible { outline-color: #A28AE8 !important; }
/* the open drawer scrolls on its own when it is taller than a short screen */
.pl-landing .lp-nav-drawer-wrap.is-open > .lp-nav-drawer { max-height: calc(100dvh - 72px); overflow-y: auto; overscroll-behavior: contain; }

/* ── phones: running text is at least 16px ── */
@media (max-width: 767px) {
  .pl-landing .persona p:not(.persona-rec),
  .pl-landing .lp-contact-form .form-gdpr,
  .pl-landing .fx-night li p { font-size: 16px; }
}

/* ── touch: controls are at least 44×44 on phones and touch screens (WCAG 2.5.8, comfortable 2.5.5) ── */
@media (max-width: 767px), (pointer: coarse) {
  /* !important: the feature demos set compact 36-42px heights with more specific selectors */
  /* a switch keeps its pill shape; its 44px tap area is a transparent halo (see the staff demo) */
  .pl-landing :is(button, [role="button"], [role="tab"], .btn):not([role="switch"]) { min-height: 44px !important; }
  .pl-landing :is(select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"])) { min-height: 44px !important; }
  .pl-landing :is(button, [role="button"], [role="tab"]):not(.persona):not([role="switch"]) { min-width: 44px; }
  .pl-landing .fx-crumb a { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; min-width: 44px; }
  .pl-landing .ov-jump a { display: inline-flex; align-items: center; min-height: 44px; }
  .pl-landing input[type="color"] { min-width: 44px; }
  /* iOS zooms into any field under 16px when it gets focus */
  .pl-landing :is(input, select, textarea) { font-size: max(16px, 1em) !important; }
}
.pl-landing input:is([type="checkbox"], [type="radio"]) { min-width: 24px; min-height: 24px; }
/* desktop pointer: small text links still get a 24px target */
@media (min-width: 768px) and (pointer: fine) {
  .pl-landing .lp-nav-links > :is(a, .fx-trig) { min-height: 24px; display: inline-flex; align-items: center; }
}
/* no double-tap delay on controls */
.pl-landing :is(a, button, input, select, textarea, label, [role="button"], [role="tab"]) { touch-action: manipulation; }
/* forced colours (Windows contrast themes) drop button fills: give solid buttons an outline so they still read as buttons */
@media (forced-colors: active) { .pl-landing :is(.btn, .lp-nav-cta, .su-cta, .cr-cta, .lp-mobile-tabs button) { border: 1px solid currentColor; } }

/* one rule for section titles: left aligned and upright. Italic emphasis belongs to the H1 only. */
.pl-landing h2 .em-i,.pl-landing .h-section .em-i,.pl-landing h2 em{font-style:normal;color:inherit;font-weight:inherit}
.pl-landing .eyebrow{font-family:inherit;letter-spacing:0;text-transform:none;font-size:14px;font-weight:600;color:var(--muted);margin-bottom:8px}
