/* === css/variables.css === */
/**
 * Haplic — Unified Design Tokens
 * Gold: #c9a45c | Gold light: #d8b76a | Navy: #0b1120
 */
:root {
  /* Tells the browser this is a dark UI: native scrollbars, <select> dropdowns,
     date pickers and autofill stop rendering as light panels over the dark theme. */
  color-scheme: dark;

  /* Backgrounds */
  --color-bg-base: #060911;
  --color-bg-surface: #0b1120;
  --color-bg-card: rgba(14, 22, 39, 0.75);

  /* Brand Colors */
  --color-primary: #c9a45c;
  --color-primary-glow: rgba(201,164,92, 0.4);
  --color-brand-azure: #c9a45c;
  --color-green: #c9a45c;
  --color-green-glow: rgba(201,164,92, 0.4);
  --color-cyan: #d8b76a;
  --color-cyan-light: #e3c57e;
  --color-cyan-glow: rgba(201,164,92, 0.35);
  --color-gold: #c9a45c;
  --color-gold-light: #e3c57e;
  --color-danger: #ef4444;
  --color-warning: #f59e0b;
  --color-info: #c9a45c;
  --color-success: #10b981;
  /* Promoted out of the legacy `emerald` aliases, which were the only place these two
     values lived. three_d.css is their one remaining user. */
  --color-success-dark: #047857;
  --color-success-glow: rgba(16, 185, 129, 0.35);

  /* Text */
  --color-text: #f8fafc;
  --color-text-muted: #94a3b8;
  /* Was #64748b, which failed AA on all three surfaces (4.18 base / 3.96 surface /
     3.80 card). #7a879c is the least visual shift that clears 4.5:1 on the card too
     (5.47 / 5.18 / 4.97). It is only ever used as a text colour, never a background
     or border, so raising it cannot weaken contrast anywhere else. */
  --color-text-dim: #7a879c;
  --color-text-strong: #e2e8f0;

  /* Borders & Glass */
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.14);
  /* The boundary of a CONTROL, against the boundary of a SURFACE. WCAG 2.2 SC 1.4.11 asks 3:1 of
     the former and says nothing about the latter: a card's edge is decoration, but an input's edge
     is the only thing that says an input is there. Composited on the base background this is
     rgb(106,112,121) = 3.79:1, where --color-border measures 1.21:1 and --color-border-strong
     1.47:1 — both under the threshold, which is why those two stay on surfaces only.
     This token exists because six input rules in the console were setting their own border back to
     --color-border OVER a .form-control rule that already met the standard, which put those fields
     at 1.2-1.5:1 again. Same specificity collision that was silently defeating the focus ring. */
  --color-border-control: rgba(255, 255, 255, 0.4);
  /* The brand green at a quieter alpha. Used as written for hairline edges and soft
     glows — both are the same intent: the green as a hairline, not as a highlight. */
  --color-border-green: rgba(201,164,92, 0.3);

  /* Named after measuring 849 literal colour uses across css/: 113 hexes had no token, and five of
     them were repeated across many files — a de-facto palette the design system did not know it
     had. #75bbe9 alone appeared 13 times in 7 files and was the main reason the portal, the console
     and the landing page read as three slightly different products. Naming them changes no pixel:
     the value here is byte-identical to every literal it replaced, and the pass that swapped them
     ran before this block existed so it could not rewrite its own definitions. */
  --color-cyan-muted: #b8933f;
  --color-on-brand: #1a1407;
  --color-danger-soft: #fca5a5;
  --color-cyan-strong: #b8933f;
  --color-gold-soft: #fcd34d;

  /* Typography Scale — 9 steps.
     `2xs` and `3xl` were added after measuring the real usage: tiny badges and meta labels
     cluster at ~9.9px, and the display numerals at 38.4px, so both had been hand-written
     because the scale simply had no name for them. */
  --text-2xs: 0.62rem;
  --text-xs: 0.72rem;
  --text-sm: 0.82rem;
  --text-base: 0.92rem;
  --text-md: 1.05rem;
  --text-lg: 1.25rem;
  --text-xl: 1.55rem;
  --text-2xl: 1.85rem;
  --text-3xl: 2.4rem;
  /* The scale stopped at 38.4px, so the landing H1 (--text-2xl, 29.6px) was SMALLER than
     its own 600px override (2rem = 32px) and tied with a mid-page section heading — an
     inverted scale with no display step. `4xl` is that missing step: the hero headline is
     the largest type on the page at every width. */
  --text-4xl: 3rem;

  /* Section headings. The page had one step (--text-2xl) doing three jobs: hero, section
     title and sub-heading all resolved to the same 29.6px, so nothing read as a hierarchy.
     These two name the middle steps so the ladder is 48 / 28 / 20. */
  --text-h2: 1.75rem;
  --text-h3: 1.25rem;

  /* Weight ladder. Measured across the built bundles: 700x47, 800x40, 900x31 against
     400x3 — nearly every string on the site was bold, so weight carried no meaning and
     hierarchy fell to size alone. Four named rungs, used consistently:
     body copy → label/metadata → card & section titles → hero and display numerals. */
  --weight-body: 500;
  --weight-label: 600;
  --weight-title: 700;
  --weight-display: 900;

  /* Font */
  --font-main: 'Readex Pro', 'Cairo', -apple-system, BlinkMacSystemFont, sans-serif;
  /* Latin runs (the tagline, `REQ_…` ids, unit counts) render in Cairo's Latin glyphs,
     which are cramped. This stack is the fallback for those runs only. */
  --font-latin: 'IBM Plex Sans', 'Segoe UI', system-ui, sans-serif;

  /* Radius — 3 sizes only */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 9999px;
  /* Was hand-written ~15 times as 4/6/9/11px for icon tiles and chips. */
  --radius-xs: 6px;

  /* Shadows — the raised step the cards were missing (they only had the flat card drop). */
  --shadow-card: 0 10px 30px -10px rgba(0, 0, 0, 0.7);
  --shadow-raised: 0 18px 44px -14px rgba(0, 0, 0, 0.78);

  /* Glow — three intents instead of the eight ad-hoc green glows in the stylesheets.
     The design direction for this product is minimal glow: the accent earns attention
     because it is rare, so only the primary CTA and keyboard focus may use it. */
  --glow-soft: 0 0 16px rgba(201,164,92, 0.18);
  --glow-cta: 0 0 22px rgba(201,164,92, 0.32);
  /* Was rgba(0,144,240,.22), which composites over the base to #052742 = 1.30:1 — under the 3:1
     SC 1.4.11 asks of a non-text indicator, on the five controls where this ring is the only one.
     A translucent ring's contrast is a function of whatever sits behind it, so no alpha makes it a
     guarantee: the opaque brand green is the one value that holds on every surface this product
     draws — 5.92:1 base / 5.60:1 surface / 5.53:1 card. Same ring global.css already owns. */
  --glow-focus: 0 0 0 3px var(--color-green);

  /* Spacing — 8px rhythm. Section padding had been written by hand at 12/34/45/36/8/4px
     with no relationship between them; these five rungs cover the same ranges. */
  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 40px;
  --space-5: 64px;
  --space-6: 96px;
}

/* === css/base.css === */
/* Cairo is loaded by a <link> in each page head, not from here: an @import counts only while it
   precedes every rule, and variables.css always comes before base.css in every bundle, so the
   import was silently dropped and the declared font never applied. */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
html {
  font-family: var(--font-main);
  background-color: var(--color-bg-base);
  color: var(--color-text);
  direction: rtl;
  text-align: right;
  line-height: 1.6;
  scroll-behavior: smooth;
}

html[dir="ltr"], body[dir="ltr"] { direction:ltr; text-align:left; }

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background-color: var(--color-bg-base);
  background-image: 
    radial-gradient(circle at 15% 15%, rgba(201,164,92, 0.12) 0%, transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(201,164,92, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 50% 80%, rgba(201,164,92, 0.08) 0%, transparent 50%),
    linear-gradient(rgba(255, 255, 255, 0.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.012) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 48px 48px, 48px 48px;
  background-attachment: fixed;
}

.container {
  width: 100%;
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 20px;
}

/* privacy.html, terms.html and withdrawal.html all declare .legal-page and no rule
   defined it, so the global reset left their headings at browser defaults with no
   spacing above or below. This is the page shell only — each page styles its own body. */
.legal-page { padding-block: 36px 56px; }
.legal-page h1 {
  margin-bottom: 16px;
  font-size: var(--text-2xl);
  font-weight: 900;
  line-height: 1.35;
  letter-spacing: -0.4px;
}
.legal-page h2 { margin: 26px 0 10px; font-size: var(--text-lg); font-weight: 800; }
.legal-page p {
  max-width: 900px;
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.9;
}
.legal-page .section-eyebrow { display: block; margin-bottom: 8px; }

/* Haplic Bold Topbar */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: var(--color-bg-base);
  border-bottom: 1px solid rgba(201,164,92, 0.25);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}
.site-header::before {
  content: "";
  display: block;
  height: 3px;
  background: linear-gradient(90deg, var(--color-green) 0%, #b8933f 60%, var(--color-cyan-light) 100%);
}
/* The sticky header sat on the heading of every in-page link («المشاريع» landed at 4px,
   «كيف نعمل» at 46px). scroll-padding insets the scrollport, so hash links, the modal's
   scrollIntoView and focus scrolling all clear it. 70px bar + air, and 20px more because a
   section still waiting for its reveal is measured 20px lower, landing that much higher. */
html:has(.site-header) { scroll-padding-top: 100px; }
.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  height: 66px;
}
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.brand-logo img {
  height: 38px;
  width: auto;
  object-fit: contain;
}
.brand-title {
  font-size: var(--text-lg);
  font-weight: 900;
  letter-spacing: -0.5px;
  display: inline-flex;
  align-items: center;
  direction: ltr;
}
.brand-dz { color: var(--color-green); }
.brand-vest { color: #f6f2e7; }

/* On a phone the wordmark was squeezed to 68px and broke onto two lines inside a
   70px header. Keep it on one line; the size steps below live in dzpartner.css, which
   owns .brand-ar and loads after this file. */
@media (max-width: 640px) {
  .brand-logo { gap: 7px; }
  .brand-ar { white-space: nowrap; }
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 4px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: var(--radius-full);
}
.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  color: #cbd5e1;
  font-size: var(--text-sm);
  font-weight: 700;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  white-space: nowrap;
  transition: color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}
.nav-links a:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.07);
}
.nav-links a.active {
  color: var(--color-on-brand);
  background: linear-gradient(135deg, var(--color-green) 0%, #b8933f 100%);
  box-shadow: 0 4px 14px var(--color-green-glow);
}
.partner-link-text svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}
.btn-nav-join {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, var(--color-green) 0%, #b8933f 100%);
  color: var(--color-on-brand) !important;
  font-weight: 800 !important;
  font-size: var(--text-base);
  text-decoration: none;
  border-radius: var(--radius-full) !important;
  padding: 10px 22px !important;
  box-shadow: 0 6px 20px var(--color-green-glow);
  white-space: nowrap;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}
.btn-nav-join:hover {
  box-shadow: 0 8px 26px rgba(201,164,92, 0.6);
  transform: translateY(-1px);
}

.brand-partner{font-size:.74em;letter-spacing:-1px}.brand-logo .brand-title{gap:1px}.brand-logo .brand-partner{font-size:.66em;letter-spacing:-1.2px}.brand-ar{color:#f6f2e7;font-size:var(--text-lg)}
/* The skip link, one line because this file is at its ceiling: `.sr-only` hides it and this rule — one class plus `:focus`, so it outranks `.sr-only` wherever the two land in a bundle — brings it back, undoing each property `.sr-only` hides with. `fixed`, not `static`, so revealing it shifts no page. */ .skip-link:focus{position:fixed;top:.6rem;inset-inline-start:.6rem;width:auto;height:auto;margin:0;padding:.55rem 1rem;overflow:visible;clip-path:none;background:var(--color-bg-base);color:var(--color-text);border:1px solid var(--color-green);border-radius:var(--radius-full);z-index:2000;font-size:var(--text-sm)}

/* === css/global.css === */
/**
 * Haplic — Cross-cutting rules
 * Behaviour every page needs regardless of which components it uses: the overflow
 * guard, the `hidden` guard, the focus ring and placeholder tone. Loaded immediately
 * after base.css in every bundle, so page-specific files still win ties.
 */

/* Decorative layers (orbits, the carousel track, fixed bars) are wider than a phone.
   Nothing clips them, so the document grew to 424px inside a 390px viewport and the
   whole body sat 33px off-origin, cutting the left edge. `clip` rather than `hidden`:
   it stops the overflow without creating a scroll container, so sticky still works. */
html, body {
  overflow-x: clip;
}

/* The `hidden` attribute is a UA rule, so any author `display` outranks it. That is how
   three unconfigured social buttons in the footer kept rendering as dead 34x34 boxes.
   One global guard beats a per-component fix; the sole rule that outranks it by
   specificity is .social-links a in dzpartner.css, handled there. */
[hidden] {
  display: none !important;
}

/* The estimator announces each committed result through a live region, and a live region has to
   be in the accessibility tree without being on screen. The admin bundle carried the only copy of
   this rule (admin_premium.css) and the home bundle never loaded it. */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Keyboard focus was only ever styled inside the admin workspace, so the public pages
   fell back to the UA ring — nearly invisible on this palette. Fields that ship their
   own indicator (.form-control, the admin form controls) still override this. */
:focus-visible {
  outline: 2px solid var(--color-green);
  outline-offset: 2px;
}

/* Nothing styled placeholders outside the admin command palette, so the UA default
   (#757575, ~4.3:1) set the tone and — since only some fields have placeholders —
   empty inputs read as pre-filled. Dimmer than a real value, still AA. */
::placeholder {
  color: var(--color-text-dim);
  opacity: 1; /* Firefox dims placeholders by default; the token is the intent. */
}

/* Frosted glass sticky header across all application pages */
.site-header {
  background: rgba(9, 15, 28, 0.84) !important;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(201, 164, 92, 0.22);
}

button, a, summary, select { touch-action: manipulation; }
@media (pointer: coarse) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]), select, textarea { font-size:16px !important; }
  button, select, input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="hidden"]) { min-height:44px; }
  /* Icon-only buttons keep their look but gain the full 44px touch width. */
  button { min-width:44px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior:auto !important; }
  *, *::before, *::after { animation-duration:.01ms !important; animation-delay:0s !important; animation-iteration-count:1 !important; transition-duration:.01ms !important; transition-delay:0s !important; }
}

/* === css/partner_auth_fonts.css === */
/* Same approved Readex Pro, served locally; OFL and provenance: assets/fonts/. */
@font-face {
  font-family:'Readex Pro';
  src:url('/assets/fonts/ReadexPro-variable.ttf') format('truetype');
  font-weight:160 700;
  font-style:normal;
  font-display:swap;
}

/* === css/contact_fab.css === */
/* Shared public-contact affordance; no account or request information is included. */
#floating-contact {
  --contact-bottom:16px;
  position:fixed; z-index:90;
  inset-inline-end:16px; inset-block-end:calc(var(--contact-bottom) + env(safe-area-inset-bottom,0px));
  display:flex; flex-direction:column; align-items:flex-end; gap:10px;
  max-width:calc(100vw - 32px); font-family:var(--font-main,'Readex Pro',Arial,sans-serif);
}
#floating-contact .floating-contact-toggle {
  display:inline-flex; align-items:center; justify-content:center; gap:10px;
  min-height:52px; padding:12px 20px; border:0; border-radius:999px;
  background:#086de8; color:#fff; font:inherit; font-size:15px; font-weight:600;
  cursor:pointer; box-shadow:0 8px 22px #086de829; backdrop-filter:none;
  transition:background 160ms ease,transform 160ms ease;
}
#floating-contact .floating-contact-toggle:hover {background:#0059c6}
#floating-contact .floating-contact-toggle:active {transform:scale(.97)}
#floating-contact .contact-toggle-icon {width:24px;height:24px;filter:brightness(0) invert(1)}
#floating-contact .floating-contact-actions {
  order:-1; display:grid; gap:6px; width:min(260px,calc(100vw - 32px)); padding:8px;
  max-height:min(240px,calc(100dvh - var(--contact-bottom) - 88px)); overflow:auto;
  border:1px solid #cfdef1; border-radius:12px; background:#fff; color:#0d1725;
  box-shadow:none; backdrop-filter:none; animation:contactReveal 160ms ease-out;
}
#floating-contact .floating-contact-actions[hidden] {display:none}
#floating-contact .floating-contact-action {
  display:flex;align-items:center;gap:12px;min-height:60px;padding:10px 12px;
  border:0;border-radius:8px;background:#fff;color:#0d1725;text-decoration:none;
}
#floating-contact .floating-contact-action:hover {background:#edf5ff;color:#0059c6;transform:none;box-shadow:none}
#floating-contact .floating-contact-action[hidden] {display:none}
#floating-contact .contact-action-icon {width:24px;height:24px;flex:none;object-fit:contain}
#floating-contact .contact-action-text {display:grid;gap:3px;text-align:start;min-width:0}
#floating-contact .contact-action-text strong {font-size:15px;font-weight:600;line-height:1.5}
#floating-contact .contact-action-text small {font-size:13px;line-height:1.6;color:#485a72;overflow-wrap:anywhere}
#floating-contact :is(button,a):focus-visible {outline:3px solid #086de8;outline-offset:3px}
@keyframes contactReveal {from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}
/* The app's modal focus and scroll lock take precedence over this non-modal popover. */
body[style*="overflow: hidden"] #floating-contact {visibility:hidden;pointer-events:none}
body:has(dialog[open],.modal-overlay:not([inert]),.palette-overlay:not([inert])) #floating-contact {visibility:hidden;pointer-events:none}
@media(max-width:1100px) {
  body:has(#admin-main-section:not([hidden]) .admin-mobile-nav) #floating-contact {--contact-bottom:88px}
}
@media(max-width:720px) {
  #floating-contact {inset-inline-end:12px;max-width:calc(100vw - 24px)}
  #floating-contact .floating-contact-toggle {width:52px;height:52px;padding:0}
  #floating-contact .floating-contact-label {position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap}
  body:has(.mobile-cta) #floating-contact {--contact-bottom:88px}
  body:has(#floating-contact) :is(.public-site-footer,.site-footer,.auth-footer,.privacy-measurement) {padding-block-end:88px}
}
@media(prefers-reduced-motion:reduce) {
  #floating-contact *,#floating-contact *::after {animation:none!important;transition:none!important}
}
@media print {#floating-contact {display:none!important}}
/* Give the keyboard and final application review priority over optional contact. */
@media screen and (max-width:720px) {
  body:has(#partner-auth-section:not([hidden])):has(input:focus,textarea:focus,select:focus) #floating-contact,
  body:has(#partner-auth-section:not([hidden])):has(#signup-review:not([hidden])) #floating-contact {visibility:hidden;pointer-events:none}
}

/* === css/type_scale.css === */
/**
 * Haplic — Type scale & weight ladder
 *
 * Loaded LAST in every bundle (after dzpartner.css) because it exists to overrule the
 * values those files set. Two measured problems it fixes:
 *
 * 1. No display step. The scale stopped at --text-3xl but nothing used it for headings:
 *    the hero H1 and a mid-page section title both resolved to 29.6px, and the hero's own
 *    600px override (2rem = 32px) made the phone headline LARGER than the desktop one.
 *    The ladder is now 48 / 28 / 20 and the hero is the biggest type at every width.
 *
 * 2. No weight contrast. Across both bundles: 700x47, 800x40, 900x31 against 400x3 —
 *    nearly everything was bold, so weight carried no meaning and hierarchy fell to size
 *    alone. 900 is now reserved for the page's display line and its display numerals;
 *    titles sit at 700 and labels at 600. See variables.css for the named rungs.
 */

/* ---- The ladder ----
   The disclosure band and the register card are callouts rather than page sections: their
   headings are set with their own surface in landing_polish.css. */
.section-divider-title h2,
.estimator-intro h2,
.faq-section h2 {
  font-size: var(--text-h2);
  font-weight: var(--weight-title);
  line-height: 1.28;
  color: #fff;
}
/* The supporting line under a section title is context, not a heading. */
.section-divider-title p,
.estimator-intro p,
.register-copy > p {
  font-weight: 400;
}

/* ---- Titles: card and panel headings step down from 800/900 to 700 ---- */
.trust-pillar-title,
.card-app-name,
.card-price-value,
.startup-title,
.overview-projects b,
.toast-body b,
.sheet-head strong,
.empty-state b,
.admin-side-brand b,
.modal-head h3,
.panel-heading h2,
.legal-page h2 { font-weight: var(--weight-title); }

/* Page titles inside a workspace are not display type — the display weight is spent on
   the numbers those pages exist to show. */
.admin-topbar h1,
.dashboard-header h1,
.pv-title,
.partner-identity h2 { font-weight: var(--weight-title); }

/* ---- Labels: pills, eyebrows and metadata drop to 600 so they read as annotations ---- */
.hero-badge-text,
.section-eyebrow,
.value-grid span,
.wd-eyebrow,
.wd-facts span,
.estimator-head span { font-weight: var(--weight-label); }

/* ---- Display numerals: the one place 900 still earns its keep ---- */
.overview-stat strong,
.capital-meter strong,
.stat-number,
.detail-amount,
.partner-figures strong,
.result-card strong { font-weight: var(--weight-display); }

/* Digits must not reflow while the estimator updates them, and must line up in columns.
   Home and portal already had this on the elements they animate; tables never did. */
.data-table td,
.audit-table td,
.capital-meter strong,
.partner-figures strong,
.numeric-value,
.result-card strong,
.detail-amount,
.modal-fact b {
  font-variant-numeric: tabular-nums;
}

/* ---- Narrative & body copy reading rhythm ---- */
p, li {
  line-height: 1.68;
}

/* ---- Latin runs ----
   The taglines and the request ids are Latin text rendered in Cairo's Latin glyphs, which
   are cramped and were set with 1.5-2px of letter-spacing to compensate. This stack is for
   those runs only, so no second Arabic family is introduced and no extra font is
   downloaded: 'IBM Plex Sans' is used when the machine already has it, otherwise the
   system UI font — both roomier than the fallback they replace. */
.footer-tagline-en,
.hero-tagline-en,
.kpi-pill strong,
[dir="ltr"].req-id {
  font-family: var(--font-latin);
}
.footer-tagline-en { letter-spacing: 0.6px; }

/* ---- Long Arabic headings ----
   `text-wrap: balance` stops a 2-line heading from leaving one word on the second line.
   Progressive enhancement: browsers without it keep the current wrapping. */
.section-divider-title h2,
.estimator-intro h2,
.register-copy h2,
.faq-section h2,
.welcome-title { text-wrap: balance; }

/* === css/company_shell.css === */
:root {
  color-scheme: dark;
  --font-main: "Readex Pro", sans-serif;
  --color-bg-base: #040e1d;
  --color-text: #f6f8ff;
  --color-text-muted: #b6c9e2;
  --color-green: #167bff;
  --color-cyan: #43b9ff;
  --color-on-brand: #fff;
}
body.company-home { background: #040e1d; background-image: none; }
.company-home a { color: inherit; text-decoration: none; }
.company-home button, .company-home summary { font: inherit; }
.company-container { width: min(100%,1487px); margin-inline: auto; padding-inline: 52px; }
.company-header { position: sticky; top: 0; z-index: 50; background: #040e1df2; border-bottom: 1px solid #168dff; backdrop-filter: blur(18px); }
.company-nav { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 30px; transition: min-height .2s ease; }
.company-header.is-scrolled .company-nav { min-height: 70px; }
.company-brand { direction: ltr; display: inline-flex; align-items: center; gap: 12px; flex-shrink: 0; }
.company-brand img { width: 42px; height: 46px; object-fit: contain; }
.company-brand span { font: 800 36px/1.2 Arial,sans-serif; letter-spacing: -1px; }
.company-links { list-style: none; display: flex; gap: 46px; align-items: center; }
.company-links a { font-size: 16px; font-weight: 500; padding-block: 16px; }
.company-links a:hover, .company-links a[aria-current] { color: #65c7ff; }
.company-actions { display: flex; gap: 24px; align-items: center; }
.company-primary, .company-secondary { display: inline-flex; align-items: center; justify-content: center; gap: 12px; min-height: 58px; padding: 12px 27px; border-radius: 8px; font-weight: 500; font-size: 18px; border: 1px solid #168dff; transition: background .18s ease, transform .18s ease; }
.company-home .company-primary { background: #086ee8; color: #fff; }
.company-primary:hover { background: #0066db; transform: translateY(-2px); }
.company-secondary:hover { background: #102846; }
.company-actions .company-primary { min-width: 148px; min-height: 54px; font-size: 16px; padding-inline: 28px; }
.company-login { position: relative; }
.company-login summary { cursor: pointer; padding: 12px 8px; white-space: nowrap; min-height: 48px; }
.company-login[open] summary { color: #65c7ff; }
.company-login-menu { position: absolute; top: calc(100% + 12px); inset-inline-end: 0; width: 245px; padding: 8px; background: #0b1a30; border: 1px solid #2d4e77; border-radius: 10px; box-shadow: 0 15px 40px #0006; }
.company-login-menu a { display: block; padding: 15px 12px; border-radius: 5px; font-size: 15px; }
.company-login-menu a:hover { background: #173657; }
.company-menu-toggle { display: none; background: transparent; color: #fff; border: 1px solid #385472; border-radius: 6px; padding: 10px 12px; min-height: 44px; cursor: pointer; }
.company-footer { margin-top: 80px; padding-block: 50px 24px; border-top: 1px solid #1e3552; }
.company-footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3,1fr); gap: 50px; }
.company-footer p { color: #b6c9e2; font-size: 14px; max-width: 32ch; margin-block: 16px; }
.company-footer h3 { font-size: 16px; margin-bottom: 15px; }
.company-footer-grid > div > a:not(.company-brand) { display: block; width: fit-content; font-size: 14px; padding-block: 6px; color: #b6c9e2; }
.company-footer-grid > div > a:hover { color: #65c7ff; }
.company-copyright { text-align: center; color: #8ca7c8; font-size: 12px; margin-top: 36px; }
.company-home :focus-visible { outline: 3px solid #76cdff; outline-offset: 5px; }
html:has(.company-header) { scroll-padding-top: 104px; }
@media(max-width:1100px) {
  .company-container { padding-inline: 32px; }
  .company-links { gap: 22px; }
  .company-brand span { font-size: 30px; }
  .company-nav { gap: 20px; }
  .company-actions { gap: 12px; }
}
@media(max-width:900px) {
  .company-nav { min-height: 76px; position: relative; }
  .company-menu-toggle { display: inline-flex; }
  .company-actions > .company-login { display: none; }
  .company-navigation { display: none; position: absolute; top: 100%; inset-inline: 0; background: #0b1a30; padding: 18px 24px; border-bottom: 1px solid #385472; }
  .company-navigation.open { display: block; }
  .company-links { align-items: stretch; flex-direction: column; gap: 0; }
  .company-links a { display: block; padding: 12px 0; }
  .company-mobile-logins { display: block; border-top: 1px solid #385472; margin-top: 12px; padding-top: 12px; }
  .company-mobile-logins a { display: block; padding: 12px 0; }
  .company-footer-grid { grid-template-columns: repeat(2,1fr); gap: 30px; }
}
@media(min-width:901px) { .company-mobile-logins { display: none; } }
@media(max-width:600px) {
  .company-container { padding-inline: 20px; }
  .company-nav, .company-header.is-scrolled .company-nav { min-height: 72px; gap: 12px; }
  .company-brand { gap: 6px; }
  .company-brand img { width: 29px; height: 34px; }
  .company-brand span { font-size: 25px; }
  .company-actions { gap: 8px; }
  .company-actions .company-primary { min-width: 0; font-size: 13px; min-height: 44px; padding: 8px 12px; }
  .company-menu-toggle { font-size: 12px; padding: 8px; }
  .company-footer { margin-top: 48px; }
  .company-footer-grid { column-gap: 20px; }
  .company-footer-grid > div:first-child { grid-column: 1/-1; }
}
@media(prefers-reduced-motion:reduce) {
  html { scroll-behavior: auto !important; }
  .company-home *, .company-home *::before, .company-home *::after { animation: none !important; transition: none !important; }
}

.company-home .network-notice { background: #143858; color: #fff; padding: 12px 20px; font-size: 14px; }
.company-home .company-footer { padding-bottom: 100px; }

/* Contact remains available on this surface. */

/* === css/premium_shell.css === */
html:has(.premium-home) { background: #f7faff; color-scheme: light; scroll-padding-top: 112px; }
body.company-home.premium-home {
  --color-text: #0d1725; --color-text-muted: #485a72; --color-bg-base: #f7faff;
  --color-green: #086de8; --color-cyan: #0066c7; --color-on-brand: #fff;
  --ease-out: cubic-bezier(.23,1,.32,1);
  background: #f7faff; background-image: none; color: #0d1725;
}
.premium-home ::selection { color: #06182b; background: #c4eaff; }
.premium-home .company-container { width: min(100%,1440px); padding-inline: clamp(24px,4.6vw,66px); }
.premium-home .company-header { background: #f7faffed; border: 0; box-shadow: none; }
.premium-home .company-nav, .premium-home .company-header.is-scrolled .company-nav { min-height: 104px; gap: 30px; }
.premium-home .company-brand { gap: 9px; color: #101827; }
.premium-home .company-brand img { width: 34px; height: 38px; }
.premium-home .company-brand span { font-size: 30px; }
.premium-home .company-links { gap: 40px; }
.premium-home .company-links a { font-size: 15px; font-weight: 400; color: #19273c; }
.premium-home .company-links a:hover { color: #0067d7; }
.premium-home .company-actions { gap: 20px; }
.premium-home .company-actions .company-primary { min-width: 132px; min-height: 44px; padding: 10px 20px; font-size: 14px; }
.premium-home .company-primary { background: #086de8; color: #fff; border-color: #086de8; }
.premium-home .company-primary:hover { background: #0059c6; }
.premium-home .company-login summary { padding-inline: 4px; font-size: 14px; color: #19273c; }
.premium-home .company-login[open] summary { color: #0067d7; }
.premium-home .company-login-menu { background: #fff; border-color: #c6d9ee; color: #14243c; box-shadow: 0 12px 30px #0d25461a; }
.premium-home .company-login-menu a:hover { background: #eaf3ff; }
.premium-home .company-menu-toggle { color: #123050; border-color: #9bb8d7; }
.premium-home .mobile-label { display: none; }
.premium-home :focus-visible { outline: 3px solid #0062cf; outline-offset: 5px; }
.premium-home .premium-project-details:focus-visible, .premium-home .premium-project-partner:focus-visible { outline-color: #65d9ff; }
.premium-home .network-notice { color: #fff; background: #123b64; }
.premium-home .premium-footer { margin-top: 68px; padding-block: 28px 40px; }
.premium-footer-top { display: flex; align-items: center; justify-content: space-between; gap: 26px; padding-top: 34px; border-top: 1px solid #cfdef1; }
.premium-footer-brand { display: flex; align-items: center; gap: 22px; }
.premium-footer-brand p { color: #485a72; font-size: 12px; }
.premium-footer-links { display: flex; align-items: center; gap: 26px; }
.premium-footer-links a { color: #485a72; font-size: 12px; padding: 12px 0; }
.premium-footer-links a:hover { color: #0067d7; }
.premium-contact-details { display: flex; flex-wrap: wrap; justify-content: flex-start; gap: 24px; margin-top: 24px; color: #485a72; font-size: 13px; }
.premium-contact-details a { padding-block: 8px; }
.premium-contact-details a:hover { color: #0067d7; }
.premium-home .public-company-profile { margin-top: 60px; padding: 30px 0; border-top: 1px solid #cfdef1; color: #0d1725; }
.premium-home .public-company-profile p { color: #485a72; }
.premium-home .public-company-profile .section-eyebrow { display: none; }
.premium-home .public-company-profile h2 { font-size: 30px; }
.premium-home .company-profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-top: 24px; }
.premium-home .company-team { display: flex; flex-wrap: wrap; gap: 24px; }
.premium-home .team-member { display: flex; gap: 12px; align-items: center; }
.premium-home .team-member img { width: 60px; height: 60px; object-fit: cover; border-radius: 50%; }
@media(max-width:1100px) { .premium-home .company-links { gap: 34px; } .premium-home .company-nav { gap: 24px; } }
@media(max-width:900px) {
  .premium-home .company-nav, .premium-home .company-header.is-scrolled .company-nav { min-height: 78px; }
  .premium-home .company-navigation { background: #f7faff; border-color: #cfdef1; box-shadow: 0 10px 20px #12305012; }
  .premium-home .company-links { gap: 0; }
  .premium-home .company-mobile-logins { border-color: #cfdef1; }
  .premium-home .company-mobile-logins a { color: #19273c; }
}
@media(max-width:600px) {
  .premium-home .company-container { padding-inline: 20px; }
  .premium-home .company-nav, .premium-home .company-header.is-scrolled .company-nav { min-height: 74px; gap: 10px; }
  .premium-home .company-brand img { width: 28px; height: 32px; }
  .premium-home .company-brand span { font-size: 25px; }
  .premium-home .company-actions { gap: 8px; }
  .premium-home .company-actions .company-primary { min-width: 0; min-height: 44px; padding: 10px 13px; font-size: 12px; }
  .premium-home .full-label { display: none; } .premium-home .mobile-label { display: inline; }
  .premium-home .premium-footer { margin-top: 42px; padding-block: 24px; }
  .premium-footer-top { flex-direction: column; align-items: stretch; gap: 24px; }
  .premium-footer-brand { flex-direction: column; align-items: flex-start; gap: 12px; }
  .premium-footer-links { justify-content: space-between; gap: 18px; }
  .premium-home .company-profile-grid { grid-template-columns: 1fr; }
}
@media (hover:none), (pointer:coarse) {
  .premium-home .company-primary:hover { transform: none; background: #086de8; }
  .premium-home .company-secondary:hover { transform: none; }
}

/* === css/estimator_shell.css === */
.estimator-home { position: relative; isolation: isolate; --estimator-blue: #086de8; --estimator-pale: #d8eafe; --color-text-dim: #485a72; }
.estimator-home .company-container { width: min(100%,1485px); padding-inline: clamp(20px,3.5vw,52px); }
.estimator-home .company-brand span { font-size: 34px; }
.estimator-home .company-header:not(.is-scrolled) { background: transparent; }
.estimator-ambient { position: absolute; inset: 0; z-index: -2; width: 100%; height: 650px; object-fit: fill; opacity: .4; pointer-events: none; }
.estimator-intro { position: relative; padding-block: 10px 14px; border-bottom: 1px solid #cfdef1; }
.estimator-route { position: absolute; z-index: -1; width: 100%; max-width: none; inset-inline-end: 0; top: -56px; height: auto; opacity: .48; pointer-events: none; }
.estimator-overline { display: block; color: #485a72; font-size: 15px; line-height: 1.5; margin-bottom: 2px; }
.estimator-intro h1 { font-size: clamp(32px,3.2vw,44px); font-weight: 700; line-height: 1.25; letter-spacing: -.025em; }
.estimator-intro > p { font-size: 18px; color: #485a72; line-height: 1.5; margin-top: 4px; }
.estimator-project-row { position: relative; display: flex; gap: 32px; align-items: center; min-height: 70px; }
#simulator-project { display: flex; gap: 24px; align-items: center; }
.estimator-project-identity { display: flex; align-items: center; gap: 14px; }
.estimator-project-identity img { width: 42px; height: 42px; object-fit: contain; border-radius: 8px; }
.estimator-project-identity strong { display: block; font-size: 22px; line-height: 1.35; }
.estimator-project-identity p { font-size: 15px; color: #485a72; }
.estimator-project-state { color: #005cc2; font-size: 15px; }
.estimator-project-picker > summary { display: flex; align-items: center; gap: 12px; padding: 6px 24px; border-inline-start: 1px solid #cfdef1; color: #005cc2; font-size: 17px; cursor: pointer; list-style: none; }
.estimator-project-picker > summary::-webkit-details-marker { display: none; }
.estimator-project-picker > summary img { filter: invert(28%) sepia(98%) saturate(1750%) hue-rotate(193deg); }
#app-choice { position: absolute; z-index: 20; inset-inline: 0; top: 100%; padding: 20px; background: #fff; border: 1px solid #b7cee7; border-radius: 10px; box-shadow: 0 14px 26px #15335412; display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.app-choice-chip { background: #f7faff; border: 1px solid #bfd6ed; border-radius: 8px; padding: 16px; text-align: start; color: #0d1725; font: inherit; cursor: pointer; }
.app-choice-chip.active { border-color: #086de8; background: #e9f3ff; }
.choice-icon img { width: 32px; height: 32px; object-fit: contain; }
.choice-copy { display: grid; gap: 5px; }
.app-choice-name { font-weight: 600; }.app-choice-cat,.app-choice-state { font-size: 13px; color: #485a72; }.app-choice-price { display: none; }
.estimator-layout { display: grid; grid-template-columns: minmax(0,1.05fr) minmax(0,1fr); column-gap: 56px; min-height: 440px; margin-inline-end: 6%; }
.estimator-output { padding: 18px 0 12px; padding-inline-start: 40px; border-inline-start: 1px solid #cfdef1; min-width: 0; }
#result-title { font-size: 26px; line-height: 1.4; font-weight: 600; }
#result-context { color: #485a72; font-size: 18px; line-height: 1.5; margin-top: 8px; }
.estimator-profit { display: flex; gap: 12px; align-items: baseline; color: #086de8; font-size: clamp(54px,5.2vw,76px); line-height: 1.2; font-weight: 700; margin-top: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.estimator-profit .result-currency { font-size: 34px; }
.estimator-profit.is-wide { font-size: clamp(32px,4.5vw,64px); }
.estimator-profit.is-wide .result-currency { font-size: .44em; }
.estimator-years-row { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-top: 24px; }
.estimator-years-label { font-size: 18px; font-weight: 500; }
.estimator-years { display: flex; gap: 12px; }
.estimator-year { width: 58px; min-height: 58px; border: 1px solid #bfd6ed; border-radius: 8px; background: transparent; color: #14243c; font: inherit; font-size: 24px; cursor: pointer; }
.estimator-year.active { color: #fff; background: #086de8; border-color: #086de8; }
.estimator-result-actions { margin-top: 24px; display: grid; gap: 12px; }
.estimator-submit { display: flex; justify-content: center; align-items: center; gap: 20px; min-height: 60px; background: #086de8; color: #fff !important; border-radius: 8px; padding: 12px 20px; font-size: 22px; font-weight: 500; }
.estimator-submit img { filter: brightness(0) invert(1); }
.estimator-submit[aria-disabled="true"] { background: #e3ebf5; color: #485a72 !important; font-size: 18px; }
.estimator-submit[aria-disabled="true"] img { display: none; }
.method-link { color: #005cc2 !important; font-size: 15.5px; line-height: 1.5; text-decoration: underline; text-underline-offset: 5px; justify-self: center; }
.estimator-legal { font-size: 14.5px; color: #485a72; text-align: center; line-height: 1.6; margin: 22px 0 12px; }
.estimator-home .premium-footer { margin: 0; padding: 0 0 28px; }
.estimator-home .premium-footer-top { padding-top: 20px; }
.estimator-home .premium-footer-links a { font-size: 18px; }
/* Contact remains available on this surface. */
.estimator-home #page-state:empty { display: none; }
#page-state:not(:empty) { padding: 22px 0; color: #485a72; }
#projection-empty { line-height: 1.8; padding-block: 18px; }
#projection-empty h2 { font-size: 24px; }#projection-empty p { color: #485a72; }
@media(max-width:1150px) {
  .estimator-layout { margin-inline-end: 0; gap: 36px; }.estimator-output { padding-inline-start: 30px; }
  .estimator-profit { font-size: clamp(56px,7vw,90px); }.estimator-profit .result-currency { font-size: 34px; }
  #result-title { font-size: 26px; }#result-context { font-size: 17px; }.estimator-year { width: 44px; min-height: 44px; font-size: 18px; }.estimator-years { gap: 8px; }.estimator-years-label { font-size: 17px; }
}
@media(max-width:700px) {
  .estimator-intro { padding-block: 18px; overflow: clip; }.estimator-intro h1 { font-size: 36px; }.estimator-intro > p { font-size: 16px; }.estimator-overline { font-size: 13px; }
  .estimator-project-row { min-height: 86px; flex-wrap: wrap; gap: 8px 18px; padding-block: 12px; }#simulator-project { flex: 1; gap: 12px; flex-wrap: wrap; }.estimator-project-identity strong { font-size: 20px; }.estimator-project-identity p { font-size: 13px; }.estimator-project-identity img { width: 34px; height: 34px; }.estimator-project-state { font-size: 12px; }
  .estimator-project-picker > summary { font-size: 13px; padding: 8px 0; border: 0; gap: 8px; }.estimator-project-picker > summary img { width: 16px; }#app-choice { grid-template-columns: 1fr 1fr; }
  .estimator-layout { grid-template-columns: 1fr; gap: 26px; min-height: 0; }.estimator-output { border: 0; border-top: 1px solid #cfdef1; padding: 22px 0 0; }
  #result-title { font-size: 22px; }#result-context { font-size: 15px; margin-top: 8px; }.estimator-profit { font-size: clamp(48px,15vw,70px); margin-top: 16px; }.estimator-profit .result-currency { font-size: 26px; }.estimator-profit.is-wide { font-size: clamp(32px,11vw,46px); }.estimator-profit.is-wide .result-currency { font-size: .44em; }
  .estimator-years-row { margin-top: 20px; gap: 12px; }.estimator-years { gap: 6px; }.estimator-year { width: 40px; min-height: 44px; font-size: 17px; }.estimator-years-label { font-size: 15px; }
  .estimator-result-actions { margin-top: 22px; gap: 14px; }.estimator-submit { min-height: 52px; font-size: 18px; }.method-link { font-size: 16px; }.estimator-legal { font-size: 13px; margin-top: 24px; }
  .estimator-home .premium-footer-top { flex-direction: row; align-items: center; flex-wrap: wrap; }.estimator-home .premium-footer-links a { font-size: 13px; }.estimator-home .company-brand span { font-size: 25px; }
}

/* === css/estimator_controls.css === */
#estimator-controls { padding: 24px 0 0; border: 0; margin: 0; min-width: 0; }
.estimator-amount-label { display: block; text-align: center; font-size: 32px; font-weight: 600; line-height: 1.4; }
.estimator-currency { display: flex; width: min(384px,85%); margin: 14px auto 0; border: 1px solid #bfd6ed; border-radius: 28px; overflow: hidden; background: #edf5ff; }
.estimator-currency button { flex: 1; border: 0; background: transparent; color: #485a72; min-height: 50px; font: inherit; font-size: 22px; cursor: pointer; border-radius: 26px; }
.estimator-currency [aria-pressed="true"] { background: #086de8; color: #fff; }
.estimator-amount-row { display: flex; align-items: center; gap: 28px; margin-top: 18px; }
.estimator-step { border: 0; border-radius: 50%; background: #dfedff; color: #086de8; width: 68px; height: 68px; flex: 0 0 68px; display: grid; place-items: center; cursor: pointer; touch-action: manipulation; user-select: none; }
.estimator-step img { width: 30px; height: 30px; filter: invert(28%) sepia(99%) saturate(2500%) hue-rotate(196deg); }
.estimator-step:disabled { opacity: .65; cursor: default; }
.estimator-input-wrap { flex: 1; min-width: 0; position: relative; }
#shares-number { display: block; width: 100%; height: 122px; border: 1px solid #bfd6ed; border-radius: 10px; padding: 8px 12px 32px; background: #fff; color: #0d1725; font: 700 76px/1 'Readex Pro',sans-serif; text-align: center; appearance: textfield; caret-color: #086de8; font-variant-numeric: tabular-nums; }
#shares-number::-webkit-inner-spin-button,#shares-number::-webkit-outer-spin-button { appearance: none; margin: 0; }
#input-currency { position: absolute; inset-inline: 0; bottom: 10px; color: #485a72; font-size: 20px; text-align: center; pointer-events: none; }
.estimator-equivalent { color: #485a72; font-size: 20px; text-align: center; margin-top: 10px; }
#shares-range { appearance: none; display: block; width: 100%; height: 12px; border: 0; border-radius: 8px; margin: 32px 0 0; background: linear-gradient(to left,#086de8 var(--fill,0%),#d8eafe var(--fill,0%)); cursor: pointer; touch-action: pan-y; }
body[dir="ltr"] .estimator-amount-row { flex-direction:row-reverse; }
body[dir="ltr"] #shares-range { background:linear-gradient(to right,#086de8 var(--fill,0%),#d8eafe var(--fill,0%)); }
#shares-range::-webkit-slider-thumb { appearance: none; width: 34px; height: 34px; border: 4px solid #fff; border-radius: 50%; background: #00bfd9; box-shadow: 0 3px 8px #0082ba33; }
#shares-range::-moz-range-thumb { width: 26px; height: 26px; border: 4px solid #fff; border-radius: 50%; background: #00bfd9; box-shadow: 0 3px 8px #0082ba33; }
.estimator-range-hint { display: none; }
#amount-note { font-size: 14px; color: #485a72; line-height: 1.8; margin-top: 12px; }
.estimator-options { border-top: 1px solid #cfdef1; margin-top: 24px; }
.estimator-options > summary { display: flex; justify-content: center; align-items: center; gap: 16px; min-height: 62px; list-style: none; cursor: pointer; font-size: 19px; font-weight: 500; }
.estimator-options > summary::-webkit-details-marker { display: none; }
.estimator-options > summary img { transition: transform 160ms var(--ease-out); }.estimator-options[open] > summary img { transform: rotate(180deg); }
.estimator-options-body { padding: 4px 0 24px; font-size: 16px; line-height: 1.8; }
.scenarios-chips { display: flex; gap: 8px; margin: 12px 0 20px; }
.scenario-chip { font: inherit; cursor: pointer; border: 1px solid #bfd6ed; padding: 10px 12px; border-radius: 6px; background: transparent; color: #14243c; flex: 1; }
.scenario-chip.active { background: #086de8; color: #fff; border-color: #086de8; }
.estimator-reference { display: flex; justify-content: space-between; gap: 16px; border-block: 1px solid #cfdef1; padding-block: 12px; margin-bottom: 16px; }
.estimator-quick { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0; }
.estimator-quick button { font: inherit; border: 1px solid #bfd6ed; background: #edf5ff; color: #14243c; padding: 10px; border-radius: 6px; cursor: pointer; }
.estimator-quick button.active { border-color: #086de8; }.estimator-bounds { display: none; }
.estimator-method { display: none; }.estimator-method[open] { display: block; border-top: 1px solid #cfdef1; padding-block: 24px; }
.estimator-method > summary,.estimator-extra > summary { font-size: 16px; color: #005cc2; cursor: pointer; padding-block: 12px; }
.estimator-method-body { max-width: 75ch; font-size: 16px; line-height: 1.9; }.estimator-method-body p { margin-block: 12px; }.estimator-method-body h3 { font-size: 20px; }.estimator-method-body table { border-collapse: collapse; width: 100%; }
.estimator-method-body th,.estimator-method-body td { padding: 10px; border-bottom: 1px solid #cfdef1; text-align: start; }
.estimator-extra { margin-bottom: 24px; font-size: 16px; line-height: 1.9; }.estimator-extra:not([open]) { display: none; }
.estimator-extra .spotlight-media { display: none; }.estimator-extra .spotlight-copy { max-width: 75ch; padding-block: 24px; }.estimator-extra h2 { font-size: 24px; }.estimator-extra a { color: #005cc2; text-decoration: underline; }
.estimator-extra .spotlight-links { display: flex; gap: 20px; margin-block: 20px; }.estimator-extra .text-button { display: none; }.estimator-extra [data-register-cta] { display: none; }
.estimator-extra #company-profile { border-top: 1px solid #cfdef1; margin-top: 24px; padding-top: 24px; }.estimator-extra .company-profile-grid { display: grid; gap: 20px; grid-template-columns: 1fr 1fr; }.estimator-extra .team-member img { width: 50px; height: 50px; object-fit: cover; }
.estimator-home .es-hint { color: #485a72; }.estimator-home .es-print,#page-state [data-retry] { font: inherit; padding: 12px 20px; border: 1px solid #bfd6ed; background: #edf5ff; color: #14243c; border-radius: 6px; cursor: pointer; }
.estimator-home button:disabled { cursor: default; opacity: .6; }.estimator-home .numeric-value { font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.estimator-home button,.estimator-submit { transition: background-color 160ms ease,transform 160ms var(--ease-out); }.estimator-home :focus-visible { transition-duration: 0ms; outline: 3px solid #0062cf; outline-offset: 4px; }
@media(hover:hover) and (pointer:fine) { .estimator-submit:hover { background: #0059c6; }.estimator-step:not(:disabled):hover { background: #cbdfff; }.estimator-year:not(.active):hover { background: #e4f0ff; } }
.estimator-home button:active:not(:disabled):not(:focus-visible),.estimator-submit:active:not([aria-disabled="true"]):not(:focus-visible) { transform: scale(.97); }
@media(prefers-reduced-motion:reduce) { .estimator-home button,.estimator-submit,.estimator-options > summary img { transition: none; transform: none !important; } }
@media(max-width:1150px) { .estimator-amount-label { font-size: 26px; }.estimator-step { width: 48px; height: 48px; flex-basis: 48px; }.estimator-amount-row { gap: 16px; }#shares-number { font-size: 54px; }.estimator-currency button { font-size: 18px; } }
@media(max-width:700px) {
  #estimator-controls { padding-top: 10px; }.estimator-amount-label { font-size: 22px; }.estimator-currency { width: 260px; margin-top: 12px; }.estimator-currency button { min-height: 44px; font-size: 16px; }
  .estimator-amount-row { gap: 10px; margin-top: 14px; }.estimator-step { width: 40px; height: 44px; flex-basis: 40px; }.estimator-step img { width: 22px; height: 22px; }
  #shares-number { height: 86px; font-size: 34px; padding: 6px 8px 26px; }#input-currency { font-size: 14px; bottom: 8px; }.estimator-equivalent { font-size: 15px; margin-top: 8px; }
  #shares-range { height: 8px; margin-top: 24px; }.estimator-range-hint { font-size: 12px; margin-top: 18px; }.estimator-options { margin-top: 14px; }.estimator-options > summary { min-height: 50px; font-size: 17px; }
  .estimator-extra .company-profile-grid { grid-template-columns: 1fr; }.estimator-method-body { font-size: 14px; }
}
@media print { .estimator-home { background: #fff !important; color: #000 !important; }.estimator-ambient,.estimator-intro,.estimator-project-row,.estimator-legal,.premium-footer,.estimator-extra,#page-state { display: none !important; }.estimator-method { display: block !important; border: 0 !important; padding: 0 !important; }.estimator-method > summary,.estimator-method-body > :not(#estimate-sheet) { display: none !important; }.estimator-main { width: 100% !important; padding: 0 !important; } }

/* === css/marketing_context.css === */
/* Shared public decision context; CMS facts keep their own content authority. */
.premium-home .marketing-partnership {display:grid;grid-template-columns:minmax(0,1.25fr) minmax(0,1fr);gap:64px;align-items:start;border-block:1px solid #cfdef1;padding-block:40px;margin-top:44px}
.premium-home .marketing-partnership h2 {font-size:clamp(25px,3vw,36px);line-height:1.5;font-weight:600;letter-spacing:-.02em;max-width:24ch;color:#0d1725}
.premium-home .marketing-partnership p {font-size:16px;line-height:1.9;color:#485a72;max-width:65ch;margin-top:14px}
.premium-home .marketing-next-step > p {margin-top:0}
.premium-home .marketing-actions {display:flex;align-items:center;flex-wrap:wrap;gap:14px 24px;margin-top:22px}
.premium-home .marketing-actions .company-primary {min-height:48px;padding:12px 20px}
.premium-home .marketing-text-link,.premium-home .marketing-discuss {color:#005cc2;font-size:15px;line-height:1.7;min-height:44px;display:inline-flex;align-items:center;justify-content:center;text-decoration:underline;text-underline-offset:5px;padding-block:8px}
.premium-home .marketing-text-link:hover,.premium-home .marketing-discuss:hover {color:#003f89}
.premium-home .marketing-projects-heading {font-size:26px;font-weight:600;line-height:1.6;margin-bottom:8px}
.premium-home .marketing-projects-note {font-size:15px;line-height:1.8;color:#485a72;margin-bottom:28px}
.premium-home .marketing-feature-use {margin-block:-10px 24px;max-width:55ch}
.premium-home .marketing-feature-use h4 {font-size:15px;line-height:1.8;color:#fff;font-weight:600}
.premium-home .marketing-feature-use p {font-size:14px;line-height:1.9;color:#bed4ee;white-space:pre-line;overflow-wrap:anywhere;margin-top:6px}
.premium-home .marketing-store-link {color:#bed4ee;font-size:13px;line-height:1.8;display:inline-flex;gap:10px;align-items:center;min-height:44px}
.premium-home .marketing-store-link:hover {text-decoration:underline;text-underline-offset:5px}
.premium-home .marketing-store-link .premium-link-arrow {filter:brightness(0) invert(1)}
.premium-home .marketing-context {position:relative;border-bottom:1px solid #cfdef1;padding-block:12px}
.premium-home .marketing-context-heading,.premium-home .marketing-process p,.premium-home .marketing-context-note {display:none}
.premium-home .marketing-process {list-style:none;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin:0;padding:0;align-items:center}
.premium-home .marketing-process li {display:flex;gap:10px;align-items:center;min-width:0}
.premium-home .marketing-process li > span {color:#005cc2;background:#e6f1ff;width:26px;height:26px;flex:0 0 26px;display:grid;place-items:center;border-radius:50%;font-size:12.5px;font-weight:700;font-variant-numeric:tabular-nums}
.premium-home .marketing-process h3 {font-size:14px;line-height:1.4;font-weight:600;color:#0d1725;margin:0}
.estimator-home .marketing-discuss {margin-top:2px}
.estimator-home .estimator-extra:not([open]) {display:block}
.premium-home .marketing-partnership,.premium-home .marketing-context,.premium-home .marketing-process li {overflow-wrap:anywhere}
@media(max-width:1000px) {
  .premium-home .marketing-partnership {gap:36px}
  .premium-home .marketing-context-heading {display:block}
  .premium-home .marketing-context-heading > p {margin-top:8px}
  .premium-home .marketing-process {gap:16px}
}
@media(max-width:700px) {
  .premium-home .marketing-partnership {grid-template-columns:1fr;gap:24px;margin-top:32px;padding-block:28px}
  .premium-home .marketing-partnership h2 {font-size:25px}
  .premium-home .marketing-partnership p {font-size:15px}
  .premium-home .marketing-actions {gap:12px 20px;margin-top:16px}
  .premium-home .marketing-context {padding-block:18px}
  .premium-home .marketing-context h2 {font-size:18px}
  .premium-home .marketing-process {grid-template-columns:1fr;gap:12px;margin-top:16px}
  .premium-home .marketing-process h3 {font-size:14px}
  .premium-home .marketing-process p {font-size:12px}
  .premium-home .marketing-context-note {font-size:12px;margin-top:12px}
  .premium-home .marketing-projects-heading {font-size:23px}
}
@media print {
  .marketing-context,.marketing-partnership,.marketing-discuss,.marketing-feature-use,.marketing-store-link,.public-company-profile {display:none!important}
}

/* === css/public_navigation.css === */
.public-site-header,.public-site-footer {
  --public-ink:#101a2b;--public-muted:#475b78;--public-line:#d4e2f5;
  --public-primary:#0863ef;--public-hover:#0053d1;--public-surface:#f8fbff;
  color:var(--public-ink);font-family:var(--font-main,"Readex Pro",Arial,sans-serif);line-height:1.65;
}
body:has([data-public-header])[dir=ltr] {direction:ltr;text-align:left}
.public-site-header {position:sticky;top:0;z-index:70;background:rgba(248, 251, 255, 0.88);backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);border-bottom:1px solid rgba(204, 222, 246, 0.85);box-shadow:0 8px 24px rgba(11, 26, 51, 0.04)}
.public-chrome-container {width:min(100%,1487px);margin-inline:auto;padding-inline:clamp(20px,3.6vw,52px)}
.public-header-row {min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:24px}
.public-site-header a,.public-site-footer a {color:var(--public-ink);text-decoration:none}
.public-brand {direction:ltr;display:inline-flex;align-items:center;gap:10px;flex-shrink:0}
.public-brand img {width:34px;height:38px;object-fit:contain}
.public-brand span {font:800 30px/1.15 'Readex Pro', 'IBM Plex Sans', system-ui, sans-serif;letter-spacing:-0.03em}
.public-navigation {min-width:0}
.public-main-links {display:flex;align-items:center;gap:24px;list-style:none;margin:0;padding:0}
.public-main-links>li>a {display:inline-flex;align-items:center;min-height:48px;padding-block:12px;font-size:14px;font-weight:500;white-space:nowrap}
.public-main-links a[aria-current],.public-main-links a:hover {color:var(--public-primary)}
.public-main-links>li>a[aria-current] {box-shadow:inset 0 -2px var(--public-primary)}
.public-header-actions,.public-desktop-tools {display:flex;align-items:center;gap:18px;flex-shrink:0}
.public-language {display:inline-flex;align-items:center;gap:6px;font-size:13px;white-space:nowrap}
.public-language button {border:0;background:transparent;color:var(--public-ink);font:inherit;padding:10px 0;min-height:44px;cursor:pointer}
.public-language button[aria-pressed=true] {color:var(--public-primary);font-weight:600}
.public-language span {color:#7890b2}
.public-disclosure {position:relative}
.public-disclosure summary {display:inline-flex;align-items:center;gap:6px;min-height:48px;cursor:pointer;font-size:14px;font-weight:500;list-style:none;white-space:nowrap}
.public-disclosure summary::-webkit-details-marker {display:none}
.public-chevron {width:16px;height:16px;transition:transform 160ms ease}
.public-disclosure[open] .public-chevron {transform:rotate(180deg)}
.public-dropdown {position:absolute;top:calc(100% + 8px);inset-inline-end:0;min-width:230px;max-width:min(320px,calc(100vw - 40px));padding:8px;background:#fff;border-radius:10px;box-shadow:0 12px 28px #142e4e22}
.public-dropdown a {display:block;min-height:44px;padding:10px 12px;border-radius:6px;font-size:14px;overflow-wrap:anywhere}
.public-dropdown a:hover,.public-dropdown a[aria-current] {background:#eaf3ff;color:var(--public-primary)}
.public-site-header .public-partnership {display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;min-height:46px;padding:10px 18px;border-radius:10px;background:var(--public-primary);color:#fff;font-size:14px;font-weight:600;white-space:nowrap;box-shadow:0 6px 18px rgba(8, 99, 239, 0.22);transition:background-color 160ms ease,transform 160ms ease,box-shadow 160ms ease}
.public-site-header .public-partnership:hover {background:var(--public-hover);transform:translateY(-1px);box-shadow:0 8px 22px rgba(8, 99, 239, 0.28)}
.public-menu-toggle {display:none;align-items:center;justify-content:center;width:44px;height:44px;border:1px solid #9cb9dc;border-radius:8px;background:transparent;color:var(--public-ink);cursor:pointer}
.public-menu-toggle img {width:22px;height:22px}
.public-mobile-tools {display:none}
.public-site-header [hidden],.public-site-footer [hidden] {display:none!important}
.public-site-header :focus-visible,.public-site-footer :focus-visible {outline:3px solid var(--public-primary);outline-offset:4px}
.public-site-header a,.public-site-header button,.public-site-footer a {transition:color 160ms ease,background 160ms ease}
html:has([data-public-header]) {scroll-padding-top:104px}
.numeric-value,[data-teaser-payout],.exhibition-stat-item strong,.exhibition-teaser-kpi strong {font-variant-numeric:tabular-nums}
.public-site-footer {margin-top:48px;border-top:1px solid var(--public-line);background:var(--public-surface);padding-block:26px 12px}
.public-footer-grid {display:grid;grid-template-columns:1fr 1.15fr 1fr;gap:0;align-items:stretch}
.public-footer-grid>section {padding-inline-start:var(--public-footer-column-pad,32px);border-inline-start:1px solid var(--public-line)}
.public-footer-contact {--public-footer-column-pad:76px}
.public-site-footer h2 {display:flex;align-items:center;gap:8px;font-size:16px;font-weight:600;margin:0 0 6px;line-height:1.7;min-height:28px}
.public-footer-brand .public-brand span {font-size:36px}
.public-footer-brand .public-brand img {width:38px;height:42px}
.public-footer-brand p {font-size:14px;color:var(--public-muted);margin:8px 0 10px;max-width:34ch}
.public-footer-socials {display:flex;align-items:center;flex-wrap:wrap;gap:12px}
.public-footer-socials:not(:has(a:not([hidden]))) {display:none}
.public-site-footer .public-social-link {display:inline-flex;align-items:center;justify-content:center;width:40px;height:40px;flex:none;background:#eaf1fc;border-radius:50%;color:var(--public-ink)}
.public-site-footer .public-social-link:hover {background:#dceaff}
.public-contact-icon {width:20px;height:20px;object-fit:contain;flex:none}
.public-footer-links {display:flex;flex-wrap:wrap;gap:4px 16px}
.public-footer-links a {display:block;min-height:36px;width:fit-content;font-size:14px;padding-block:6px;overflow-wrap:anywhere}
.public-site-footer .public-contact-row {display:flex;align-items:center;gap:14px;min-height:32px;width:fit-content;max-width:100%;font-size:14px;padding-block:3px;overflow-wrap:anywhere}
.public-site-footer .public-contact-row>bdi,.public-site-footer .public-contact-row>span {min-width:0;overflow-wrap:anywhere}
[dir=rtl] .public-site-footer .public-contact-row {flex-direction:row-reverse}
.public-footer-contact-list {display:grid;width:max-content;max-width:100%}
.public-site-footer .public-footer-contact-list .public-contact-row {display:grid;grid-template-columns:20px minmax(0,1fr);direction:ltr;width:100%;text-align:start}
[dir=ltr] .public-site-footer .public-admin-chevron {transform:rotate(180deg)}
.public-site-footer a:hover {color:var(--public-primary)}
.public-site-footer a[aria-current] {color:var(--public-primary);font-weight:600}
.public-footer-contact [data-company-phones]:not([hidden])~[data-company-phone] {display:none}
.public-footer-address {font-size:13px;color:var(--public-muted);margin:6px 0;max-width:32ch;overflow-wrap:anywhere}
.public-footer-information [data-company-map] {color:var(--public-primary)}
.public-footer-information .public-footer-admin {color:var(--public-primary);margin-top:12px;padding-top:12px;border-top:1px solid var(--public-line);width:100%;max-width:280px}
.public-footer-map .public-contact-icon,.public-footer-admin .public-contact-icon {filter:invert(31%) sepia(91%) saturate(2555%) hue-rotate(209deg) brightness(94%) contrast(105%)}
.public-footer-contact:not(:has([data-company-phones]:not([hidden]),[data-company-phone]:not([hidden]),[data-company-email]:not([hidden]),[data-company-whatsapp]:not([hidden]),[data-company-instagram]:not([hidden]),[data-company-facebook]:not([hidden]),[data-company-linkedin]:not([hidden]))) {display:none}
.public-footer-bottom {display:flex;align-items:center;justify-content:space-between;gap:20px;margin-top:18px;padding-top:10px;border-top:1px solid var(--public-line);font-size:12px;color:var(--public-muted)}
.public-footer-bottom p {margin:0}
.public-footer-bottom>div {display:flex;flex-wrap:wrap;gap:16px}
.public-footer-bottom a {font-size:12px;color:var(--public-muted)}
.public-footer-bottom a+a {border-inline-start:1px solid var(--public-line);padding-inline-start:16px}
.public-fallback {display:flex;flex-wrap:wrap;gap:12px 20px;padding-block:18px}
.public-fallback a {font-size:14px;color:var(--public-ink);padding:6px 0}
@media(max-width:1300px) {.public-main-links {gap:16px}.public-header-actions,.public-desktop-tools {gap:12px}.public-header-row {gap:20px}.public-brand span {font-size:28px}}
@media(max-width:1100px) {
  .public-header-row {min-height:76px;position:relative;gap:16px}
  .public-desktop-tools {display:none}
  .public-menu-toggle {display:inline-flex}
  .public-navigation {position:absolute;top:100%;inset-inline:20px;background:#fff;padding:16px 20px 20px;border-radius:10px;box-shadow:0 12px 26px #142e4e1c;max-height:calc(100dvh - 100px);overflow:auto;overscroll-behavior:contain}
  .public-main-links {display:flex;align-items:stretch;flex-direction:column;gap:0}
  .public-main-links>li>a {display:flex;min-height:44px;padding-block:10px;white-space:normal;font-size:16px}
  .public-main-links>li>a[aria-current] {box-shadow:none}
  .public-main-links .public-disclosure summary {display:flex;justify-content:space-between;font-size:16px}
  .public-dropdown {position:static;min-width:0;max-width:none;padding:0 12px 8px;box-shadow:none;background:#f2f7fe}
  .public-dropdown a {font-size:15px}
  .public-mobile-tools {display:flex;align-items:flex-start;flex-direction:column;gap:10px;margin-top:16px;padding-top:14px;border-top:1px solid var(--public-line)}
  .public-mobile-logins {display:flex;flex-direction:column;gap:0}
  .public-mobile-logins a {display:block;font-size:15px;min-height:44px;padding-block:10px}
  .public-footer-grid {gap:24px;grid-template-columns:1fr 1fr}
  .public-footer-brand {grid-column:1/-1}
  .public-footer-grid>section {padding-inline-start:0;border-inline-start:0}
}
@media(max-width:480px) {
  .public-header-row {min-height:72px;gap:10px}
  .public-brand {gap:7px}.public-brand span {font-size:24px}.public-brand img {width:28px;height:32px}
  .public-header-actions {gap:8px}
  .public-site-header .public-partnership {font-size:11px;min-height:44px;padding:9px 10px;max-width:126px;white-space:normal;text-align:center;line-height:1.5}
  .public-site-footer {margin-top:32px;padding-top:26px}
  .public-footer-grid {grid-template-columns:1fr;gap:20px}
  .public-footer-brand {grid-column:auto}
  .public-footer-brand .public-brand span {font-size:30px}
  .public-site-footer .public-contact-row {min-height:44px;padding-block:6px}
  .public-footer-grid>section {border-top:1px solid var(--public-line);padding-top:20px}
  .public-footer-bottom {align-items:flex-start;flex-direction:column;gap:12px}
}
@media(prefers-reduced-motion:reduce) {.public-site-header *,.public-site-footer * {transition:none!important}.public-site-header .public-partnership:hover {transform:none}}
@media print {.public-site-header,.public-site-footer {display:none!important}}
@media screen and (max-width:700px) {
  .public-site-footer .public-social-link {width:44px;height:44px}
  .public-site-footer :is(.public-contact-row,.public-footer-links a) {min-height:44px}
  .public-language button {min-height:44px;min-width:44px}
}

/* === css/estimate_sheet.css === */
/* ==========================================================================
   Haplic — the estimate sheet (index.html)
   The paper the home page's estimator produces: the application, the amount,
   the reference percentage, and the five years as a table. The chart beside it
   already draws those five figures for the screen, so the sheet is drawn only
   on paper — `.es-paper` is display: none here and block in the print block
   below, and what the screen shows of this section is the button and the one
   sentence naming what the sheet holds.
   The colours are written for paper rather than for the dark page: this block
   is the only place on this surface that is white and black by design.
   ========================================================================== */

.estimate-sheet { margin: 18px 0 0; }
.es-paper { display: none; }
.es-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px; }
.es-hint { max-width: 640px; color: var(--color-text-dim); font-size: var(--text-sm); line-height: 1.8; }

@media (max-width: 640px) {
  .es-actions { flex-direction: column; }
  .es-hint { text-align: center; }
}

/* --- the sheet itself: read on paper, never drawn on screen --------------- */
.es-print-letterhead {
  position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12pt;
  margin-bottom: 15pt; padding-bottom: 10pt; border-bottom: 2pt solid #0f294a;
}
.es-print-letterhead::after { content: ""; position: absolute; inset-inline: 0; bottom: -4pt; border-bottom: 0.75pt solid #0f294a; }
.es-print-brand { display: flex; align-items: center; gap: 9pt; }
.es-print-brand img { width: 26pt; height: 26pt; object-fit: contain; }
.es-print-org { display: block; color: #0f294a; font-size: 11pt; font-weight: 800; letter-spacing: 0.01em; }
.es-print-badge { display: block; margin-top: 2pt; color: #3b4f6b; font-size: 8.5pt; font-weight: 600; }
.es-print-kind {
  flex: none; padding: 2pt 7pt; border: 0.75pt solid #0f294a; border-radius: 3pt;
  background: #eef4fb; color: #0f294a; font-size: 8pt; font-weight: 800;
}

.es-head { margin-bottom: 16px; }
.es-eyebrow {
  display: block; margin-bottom: 4px; color: #0f294a;
  font-size: var(--text-xs); font-weight: 800;
}
.es-head h3 { margin: 0 0 6px; color: #000; font-size: var(--text-lg); }
.es-app { margin: 0; color: #334155; font-size: var(--text-sm); }

.es-figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 18px; }
.es-figures > div { padding: 13px 15px; border: 1px solid #94a8c4; border-radius: var(--radius-md); background: #f8fbff; }
.es-figures span { display: block; margin-bottom: 6px; color: #334155; font-size: var(--text-xs); font-weight: 700; }
.es-figures strong { color: #000; font-size: var(--text-md); font-weight: 800; }

.es-table { width: 100%; border-collapse: collapse; }
.es-table th,
.es-table td { padding: 10px 12px; border: 1px solid #94a8c4; color: #000; font-size: var(--text-base); text-align: start; }
.es-table thead th { background: #eef4fb; color: #0f294a; font-size: var(--text-xs); font-weight: 800; }
.es-table tbody th { font-weight: 700; }
.es-table td { font-weight: 800; }

/* The method sits under the table rather than in a footnote on another page: a figure the office
   entered is an estimate, and the line that says so belongs where the figure is read. */
.es-method { margin: 12px 0 0; color: #334155; font-size: var(--text-sm); line-height: 1.9; }
.es-close { margin: 14px 0 0; color: #334155; font-size: var(--text-xs); line-height: 1.9; }
.es-print-signatures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12pt; margin-top: 16pt; break-inside: avoid; }
.es-sig-box {
  display: flex; flex-direction: column; justify-content: space-between; min-height: 64pt;
  padding: 9pt 11pt; border: 0.85pt solid #94a8c4; border-radius: 4pt; background: #fcfdff; break-inside: avoid;
}
.es-sig-title { color: #0f294a; font-size: 9pt; font-weight: 800; }
.es-sig-line { padding-top: 6pt; border-top: 0.75pt dashed #94a8c4; color: #475569; font-size: 8pt; }
.es-figures > div,
.es-table tr { break-inside: avoid; }

/* --- print: one sheet, and nothing on it but the sheet --------------------
   Every other block of the home page, by name. The chrome is named first, then
   each top-level section of <main> — including #calculator, which holds the
   chart and the controls. A section added to index.html later is named here or
   it prints onto the paper, and the suite fails until it is named: that is why
   the list is written out rather than left to a structural rule.
   -------------------------------------------------------------------------- */
@media print {
  html, body { background: #fff; color: #000; }
  @page { margin: 14mm; }

  .site-header,
  .public-site-header,
  .company-header,
  .site-footer,
  .public-site-footer,
  .mobile-cta,
  .estimator-ambient,
  .estimator-project-row,
  #page-state,
  .estimator-legal,
  .estimator-extra,
  #estimator-status,
  #estimator-method > summary,
  .estimator-method-body > p,
  #projection-assumptions,
  #floating-contact,
  #welcome,
  #company-profile,
  #partnership-context,
  #project-summary,
  #project-journal,
  #project-details,
  .project-page-top,
  .trust-strip,
  #how-it-works,
  #disclosure,
  #ventures,
  #calculator,
  #partnership-incentives,
  #partnership-executive-actions,
  #partnership-advanced-tools,
  #register,
  #faq { display: none; }

  .container,
  .company-container,
  .estimator-main,
  .estimator-method,
  .estimator-method-body { max-width: none; margin: 0; padding: 0; border: 0; background: transparent; box-shadow: none; }
  .estimate-sheet { margin: 0; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .es-paper { display: block; }
  .es-actions { display: none; }
}

/* === css/corsa_simulation.css === */
.corsa-simulation{margin-block:32px 48px;color:#14243c;min-width:0}
.corsa-simulation h2{font-size:clamp(24px,3vw,36px);line-height:1.5;margin-block:12px 20px}
.corsa-simulation h3{font-size:20px;margin-block:24px 12px}
.corsa-simulation p{max-width:72ch;line-height:1.85;color:#485a72;overflow-wrap:anywhere}
.cs-workspace{display:grid;grid-template-columns:minmax(270px,2fr) minmax(0,3fr);gap:36px;align-items:start;margin-block:24px}
.cs-controls>details{border-block-end:1px solid #cfdef1;padding-block:16px}
.corsa-simulation summary{cursor:pointer;min-height:44px;padding-block:8px;font-weight:600}
.cs-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;margin-block:16px}
.cs-field{display:flex;flex-direction:column;gap:8px;min-width:0;font-size:14px;line-height:1.6}
.corsa-simulation input,.corsa-simulation select{box-sizing:border-box;min-width:0;width:100%;min-height:46px;background:#fff;border:1px solid #bfd6ed;border-radius:8px;padding:10px;color:#14243c;font:inherit;caret-color:#086de8}
.corsa-simulation button,.cs-actions a{min-height:44px;border:1px solid #bfd6ed;border-radius:8px;background:#edf5ff;padding:10px 14px;color:#0059c6;font:inherit;cursor:pointer}
.corsa-simulation :focus-visible{outline:3px solid #086de8;outline-offset:3px}
.corsa-simulation ::selection{background:#d8eafe;color:#14243c}
.cs-plan{border-block-start:1px solid #cfdef1;margin-block:16px;padding-block:8px}
.cs-plan-head,.cs-add{display:flex;gap:12px;align-items:center;justify-content:space-between;flex-wrap:wrap}
.cs-plan-head h3{margin:8px 0}.cs-month-inputs{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cs-month-inputs fieldset{border:0;border-block-start:1px solid #cfdef1;padding:8px 0;min-width:0}
.cs-month-inputs .cs-field{margin-block:8px}.cs-month-inputs legend{font-weight:600}
.cs-summary,.cs-finance{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px;margin:20px 0}
.corsa-simulation dl div{min-width:0}.corsa-simulation dt{font-size:13px;line-height:1.7;color:#485a72}
.corsa-simulation dd{margin:4px 0 0;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.corsa-simulation bdi{direction:ltr;unicode-bidi:isolate}.corsa-simulation small{display:block;font-size:12px;font-weight:400;line-height:1.7;color:#485a72}
.cs-summary{padding-block:20px;border-block:1px solid #cfdef1}.cs-summary dd{font-size:22px;color:#0059c6}
.cs-warnings p{color:#8a5700;background:#fff5dd;padding:12px;border-radius:8px}
.cs-months{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cs-month{border-block-end:1px solid #cfdef1;min-width:0}
.cs-month summary{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;list-style:revert}
.cs-month dl{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.cs-month summary small{font-size:11px}
.cs-comparison{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.cs-comparison section{border-block-start:2px solid #086de8}
.cs-comparison h4{margin-block:12px}.cs-comparison dd{font-size:15px}.cs-comparison dl>div{margin-block:12px}
.cs-note{border-block-start:1px solid #cfdef1;padding-block:20px}.cs-actions{max-width:520px;margin-block:24px}
.cs-actions .estimator-submit{color:#fff;background:#086de8;display:flex;align-items:center;justify-content:center}
@media(max-width:1000px){.cs-workspace{grid-template-columns:1fr;gap:24px}.cs-controls{max-width:none}}
@media(max-width:480px){.cs-fields{grid-template-columns:1fr}.cs-months{grid-template-columns:1fr}.cs-comparison{grid-template-columns:1fr}.cs-summary dd{font-size:19px}.cs-workspace{gap:16px}.corsa-simulation input,.corsa-simulation select{font-size:16px}}
@media print{.cs-controls,.cs-actions{display:none}.cs-workspace{display:block}.cs-months{display:block}}

.cs-contribution{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));max-width:650px;gap:16px;margin-block:24px}.cs-contribution input{font-size:26px;font-weight:600}
@media(max-width:480px){.cs-contribution{grid-template-columns:1fr}}

body.corsa-monthly #calculator,body.corsa-monthly #estimator-method{display:none!important}

/* === css/corsa_simulation_public.css === */
#corsa-simulation{--csp-line:#cfdef1;--csp-muted:#485a72;--csp-card:#ffffff;padding:16px 0 36px}
body.estimator-home .estimator-route,body.corsa-monthly .estimator-legal{display:none!important}
#corsa-simulation .csp-heading{color:var(--csp-muted);margin-bottom:24px;font-size:18px}
.csp-layout{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:clamp(18px,2.4vw,28px);align-items:stretch}
.csp-input,.csp-result{padding:clamp(18px,2.2vw,24px);border:1px solid var(--csp-line);border-radius:16px;background:var(--csp-card);box-shadow:0 10px 28px #102a4c0a}
#corsa-simulation h2{font-size:clamp(20px,2.1vw,24px);margin:0 0 12px}
.csp-unit{display:block;max-width:260px;margin-bottom:12px}
.csp-amount{display:flex;align-items:center;gap:12px;direction:ltr}
#corsa-simulation .csp-amount input{min-width:0;text-align:center;font-size:clamp(24px,3vw,36px);font-weight:700;padding:10px 8px;width:100%;height:64px;border-radius:12px}
#corsa-simulation .csp-amount button{border:0;border-radius:50%;width:44px;height:44px;flex-shrink:0;font-size:28px;padding:0;color:#086de8;background:#e4efff}
.csp-amount button:disabled{opacity:.4}
.csp-equivalent{text-align:center;color:#086de8;font-weight:700;margin:10px 0 12px;padding:8px 14px;border:1px solid #cce0fa;border-radius:10px;background:#f2f8ff}
html[data-theme=dark] .csp-equivalent{color:#81b8ff;border-color:#2c4362;background:#16263e}
.csp-presets{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:16px}
#corsa-simulation .csp-presets button{min-height:44px;padding:6px 10px;border:1px solid var(--csp-line);border-radius:10px;background:transparent;color:inherit;font-size:13px;font-weight:600;cursor:pointer;transition:background-color 160ms ease,color 160ms ease}
.csp-kpi-strip{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:14px 0 0;padding-top:14px;border-top:1px solid var(--csp-line)}
.csp-kpi-strip p{margin:0;padding:10px 12px;border:1px solid var(--csp-line);border-radius:10px;background:#f7fbff;font-size:13px;color:var(--csp-muted);display:flex;flex-direction:column;gap:4px}
.csp-kpi-strip strong{color:#0b2347;font-size:15px}
html[data-theme=dark] .csp-kpi-strip p{background:#15243b}
html[data-theme=dark] .csp-kpi-strip strong{color:#edf4ff}
.csp-equivalent small,.csp-big small,.csp-year small{display:block;font-size:14px;line-height:1.8;color:var(--csp-muted);font-weight:400}
#corsa-simulation .csp-range{width:100%;height:32px;accent-color:#086de8;padding:0;cursor:pointer}
.csp-limits{display:flex;justify-content:space-between;font-size:12px;color:var(--csp-muted);margin-bottom:20px}
.csp-scenarios{border:0;padding:0;display:flex;gap:8px;flex-wrap:wrap;margin-top:0}
.csp-scenarios legend{margin-bottom:10px;font-weight:600}
#corsa-simulation .csp-scenarios button,#corsa-simulation .csp-period button{min-height:44px;border:1px solid var(--csp-line);border-radius:10px;padding:9px 14px;background:transparent;color:inherit}
#corsa-simulation button[aria-pressed=true]{background:#086de8;color:#fff;border-color:#086de8}
.csp-result>p:first-child{font-weight:600;margin-top:0}
.csp-big{color:#086de8;font-size:clamp(30px,3.8vw,52px);font-weight:700;line-height:1.3;margin:18px 0;padding:14px 18px;border-radius:12px;background:#f2f8ff;border:1px solid #d5e6fb;overflow-wrap:anywhere}
.csp-period{display:grid;grid-template-columns:repeat(6,1fr);gap:8px;margin:18px 0 22px}
#corsa-simulation .csp-period button{padding:8px}
.csp-year{display:flex;justify-content:space-between;gap:16px;border-top:1px solid var(--csp-line);padding-top:16px;align-items:start}
.csp-year strong{text-align:end;font-size:20px}
#corsa-simulation .estimator-submit{display:flex;justify-content:center;gap:18px;width:100%;margin-top:22px;box-sizing:border-box;border-radius:12px}
.csp-disclaimer{text-align:center;color:var(--csp-muted);line-height:1.9;margin:24px 0 12px;font-size:14px}
.csp-notices{color:var(--csp-muted);font-size:13px;line-height:1.8}
.csp-details{border:1px solid var(--csp-line);border-radius:14px;background:var(--csp-card);margin-top:20px;padding:14px 22px}
.csp-details>summary{color:#086de8;font-weight:600;cursor:pointer;min-height:44px;display:flex;align-items:center}
html[data-theme=dark] #corsa-simulation{--csp-line:#334862;--csp-muted:#b5c6dc;--csp-card:#111d30}
html[data-theme=dark] #corsa-simulation .csp-amount button{background:#1b3556;color:#81b8ff}
html[data-theme=dark] .csp-big{color:#81b8ff;background:#16263e;border-color:#2c4362}
@media(max-width:760px){.csp-layout{grid-template-columns:1fr;gap:20px}.csp-input,.csp-result{padding:20px}.csp-big{font-size:36px}.csp-heading{margin-bottom:18px}.csp-year strong{font-size:18px}}
@media(prefers-reduced-motion:no-preference){.csp-big{animation:csp-reveal .18s ease-out}@keyframes csp-reveal{from{opacity:.6;transform:translateY(3px)}to{opacity:1;transform:none}}}

.csp-view{display:flex;gap:6px;border-bottom:1px solid var(--csp-line);padding-bottom:10px;margin-bottom:12px}
#corsa-simulation .csp-view button{min-height:44px;padding:8px 16px;border:1px solid var(--csp-line);border-radius:10px;background:transparent;color:inherit}
#corsa-simulation .csp-view button[aria-pressed=true]{background:#086de8;color:#fff;border-color:#086de8}
.csp-year-note{color:var(--csp-muted);font-size:13.5px;line-height:1.75;margin-bottom:14px}

.cs-year-tabs{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:6px;margin:10px 0}
#corsa-simulation .cs-year-tabs button{min-height:44px;padding:6px 4px;border:1px solid var(--csp-line);border-radius:10px;background:transparent;color:inherit;font-size:13px}
#corsa-simulation .cs-year-tabs button[aria-pressed=true]{background:#086de8;color:#fff;border-color:#086de8}

.csp-result-context{margin:10px 0 6px;padding-top:10px;border-top:1px solid var(--csp-line);line-height:1.5}.csp-result-context dl{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:10px;margin:0}.csp-result-context dt{font-size:12px;color:var(--csp-muted);margin-bottom:2px}.csp-result-context dd{margin:0;font-size:clamp(16px,1.7vw,20px);font-weight:700;overflow-wrap:anywhere}.csp-result-context p{margin:8px 0 0;color:var(--csp-muted);font-size:13px}.csp-result-context+.csp-big{margin-top:8px}

/* The amount and the selected assumptions lead directly to one result. */
#corsa-simulation .csp-scenarios{margin:0 0 12px;gap:8px}
#corsa-simulation .csp-scenarios legend{margin-bottom:6px;color:var(--csp-muted);font-size:13px}
#corsa-simulation .csp-scenarios button{min-height:44px;padding-inline:15px;font-weight:600;transition:background-color 180ms ease,color 180ms ease,transform 180ms cubic-bezier(.23,1,.32,1)}
#corsa-simulation .csp-view{gap:8px;margin-block:0 10px}
#corsa-simulation .csp-view button{font-weight:600;transition:background-color 180ms ease,color 180ms ease}
#corsa-simulation .csp-share{display:flex;justify-content:space-between;gap:12px;max-width:none;margin:10px 0 0;padding-block:10px;border-top:1px solid var(--csp-line);font-size:14px;color:var(--csp-muted)}
#corsa-simulation .csp-share strong{color:#14243c;font-variant-numeric:tabular-nums}
html[data-theme=dark] #corsa-simulation .csp-share strong{color:#edf4ff}
#corsa-simulation .csp-big{margin-block:8px 14px;font-variant-numeric:tabular-nums;letter-spacing:-.025em}
#corsa-simulation .csp-range{appearance:none;-webkit-appearance:none;height:32px;min-height:32px;border:0;padding:0;background:transparent;outline-offset:2px}
#corsa-simulation .csp-range::-webkit-slider-runnable-track{height:8px;border-radius:999px;background:linear-gradient(to left,#00bfd9 var(--fill),#d5e8fb var(--fill))}
#corsa-simulation .csp-range::-moz-range-track{height:8px;border-radius:999px;background:linear-gradient(to left,#00bfd9 var(--fill),#d5e8fb var(--fill))}
html[dir=ltr] #corsa-simulation .csp-range::-webkit-slider-runnable-track,html[dir=ltr] #corsa-simulation .csp-range::-moz-range-track{background:linear-gradient(to right,#00bfd9 var(--fill),#d5e8fb var(--fill))}
#corsa-simulation .csp-range::-webkit-slider-thumb{appearance:none;-webkit-appearance:none;width:25px;height:25px;border:4px solid #fff;border-radius:50%;background:#00bfd9;box-shadow:0 2px 10px #0f5e9f38;cursor:grab;transition:transform 180ms cubic-bezier(.34,1.56,.64,1),box-shadow 180ms ease}
#corsa-simulation .csp-range::-moz-range-thumb{width:17px;height:17px;border:4px solid #fff;border-radius:50%;background:#00bfd9;box-shadow:0 2px 10px #0f5e9f38;cursor:grab;transition:transform 180ms cubic-bezier(.34,1.56,.64,1),box-shadow 180ms ease}
#corsa-simulation .csp-range:is(:hover,:active,:focus-visible)::-webkit-slider-thumb{transform:scale(1.22);box-shadow:0 0 0 6px rgba(0,191,217,.22),0 4px 14px #0f5e9f45}
#corsa-simulation .csp-range:is(:hover,:active,:focus-visible)::-moz-range-thumb{transform:scale(1.22);box-shadow:0 0 0 6px rgba(0,191,217,.22),0 4px 14px #0f5e9f45}
#corsa-simulation .csp-range:active::-webkit-slider-thumb{cursor:grabbing}
#corsa-simulation .csp-range:active::-moz-range-thumb{cursor:grabbing}
html[data-theme=dark] #corsa-simulation .csp-range::-webkit-slider-runnable-track,html[data-theme=dark] #corsa-simulation .csp-range::-moz-range-track{background:linear-gradient(to left,#00bfd9 var(--fill),#314762 var(--fill))}
html[data-theme=dark][dir=ltr] #corsa-simulation .csp-range::-webkit-slider-runnable-track,html[data-theme=dark][dir=ltr] #corsa-simulation .csp-range::-moz-range-track{background:linear-gradient(to right,#00bfd9 var(--fill),#314762 var(--fill))}
@media(hover:hover) and (pointer:fine){#corsa-simulation .csp-scenarios button:hover:not([aria-pressed=true]){background:#edf5ff}#corsa-simulation .csp-scenarios button:hover{transform:translateY(-1px)}}
#corsa-simulation .csp-scenarios button:active{transform:scale(.98)}
@media(max-width:700px){#corsa-simulation .csp-input{padding-bottom:16px}.csp-layout{gap:20px}#corsa-simulation .csp-scenarios{margin-bottom:16px}#corsa-simulation .csp-big{font-size:clamp(32px,9vw,44px)}}
@media(prefers-reduced-motion:reduce){#corsa-simulation .csp-scenarios button,#corsa-simulation .csp-view button{transition:none}}
.csp-faq{margin-top:28px;padding-top:24px;border-top:1px solid var(--csp-line)}
.csp-faq h3{margin:0 0 16px;font-size:clamp(19px,2vw,23px);color:inherit}
.csp-faq-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
.csp-faq-card{padding:20px 22px;border:1px solid var(--csp-line);border-radius:14px;background:var(--csp-card);box-shadow:0 8px 24px #102a4c08}
.csp-faq-card h4{margin:0 0 8px;color:#086de8;font-size:16px;line-height:1.5}
html[data-theme=dark] .csp-faq-card h4{color:#81b8ff}
.csp-faq-card p{margin:0;color:var(--csp-muted);font-size:14px;line-height:1.8}
.csp-compare-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin-top:20px}
#corsa-simulation .csp-compare-card{display:flex;flex-direction:column;align-items:flex-start;gap:4px;padding:16px 18px;border:1px solid var(--csp-line);border-radius:14px;background:var(--csp-card);color:inherit;text-align:start;cursor:pointer;box-shadow:0 8px 22px #102a4c08;transition:border-color 160ms ease,transform 160ms ease}
#corsa-simulation .csp-compare-card[aria-pressed=true]{border-color:#086de8;background:#f2f8ff;color:#0b2347;box-shadow:0 10px 26px #086de81a}
html[data-theme=dark] #corsa-simulation .csp-compare-card[aria-pressed=true]{border-color:#5fa8ff;background:#172b47;color:#f0f6ff}
.csp-compare-name{font-size:13px;font-weight:700;color:#086de8}
html[data-theme=dark] .csp-compare-name{color:#81b8ff}
.csp-compare-val{font-size:clamp(17px,1.8vw,21px);font-weight:800;line-height:1.35}
.csp-compare-card small{font-size:12.5px;color:var(--csp-muted);line-height:1.5}
.csp-promo-row{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin-top:12px}
#corsa-simulation :is(.csp-promo-wa,.csp-promo-copy,.csp-sticky-wa){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border:1px solid var(--csp-line);border-radius:10px;background:var(--csp-card);color:inherit;font-size:13.5px;font-weight:600;text-decoration:none;cursor:pointer}
#corsa-simulation .csp-promo-wa,#corsa-simulation .csp-sticky-wa{border-color:#15803d38;background:#f0fdf4;color:#166534}
html[data-theme=dark] #corsa-simulation :is(.csp-promo-wa,.csp-sticky-wa){border-color:#22c55e45;background:#112a1f;color:#86efac}
.csp-sticky-bar{position:sticky;bottom:14px;z-index:25;display:flex;align-items:center;justify-content:space-between;gap:16px;margin-top:26px;padding:12px 20px;border:1px solid #b8d3f4;border-radius:16px;background:var(--csp-card);box-shadow:0 16px 40px #07192f1f;opacity:0;pointer-events:none;transform:translateY(10px);transition:opacity 180ms ease,transform 180ms ease}
.csp-sticky-bar.is-visible{opacity:1;pointer-events:auto;transform:none}
body:has(.csp-sticky-bar.is-visible) #floating-contact{bottom:96px!important;transition:bottom 220ms ease}
.csp-sticky-summary{display:flex;flex-direction:column;gap:2px}
.csp-sticky-summary strong{font-size:18px;color:#086de8}
html[data-theme=dark] .csp-sticky-summary strong{color:#81b8ff}
.csp-sticky-summary span{font-size:13px;color:var(--csp-muted)}
.csp-sticky-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
#corsa-simulation .csp-sticky-cta{margin:0;width:auto;min-height:44px;padding:10px 20px;font-size:14.5px}
.csp-period button{position:relative;overflow:hidden;z-index:1}
.csp-period button::after{content:"";position:absolute;inset-inline:0;bottom:0;height:var(--m-bar,15%);background:linear-gradient(180deg,rgba(8,109,232,.14),rgba(0,191,217,.28));z-index:-1;transition:height 220ms ease}
.csp-period button[aria-pressed="true"]::after{background:linear-gradient(180deg,rgba(255,255,255,.15),rgba(255,255,255,.32))}
.csp-pin-bar{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px}
.csp-pin-compare{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px;flex:1;padding:7px 12px;border-radius:10px;background:var(--csp-soft);border:1px solid var(--csp-line);font-size:12px}
.csp-pin-compare strong.is-pos{color:#0f6a4b;font-weight:800}
.csp-pin-compare strong.is-neg{color:#945408;font-weight:800}
html[data-theme=dark] .csp-pin-compare strong.is-pos{color:#34d399}
html[data-theme=dark] .csp-pin-compare strong.is-neg{color:#fbbf24}
#corsa-simulation .csp-pin-btn{width:100%;min-height:44px;padding:6px 12px;border:1px dashed var(--csp-line);border-radius:10px;background:transparent;color:var(--csp-muted);font-size:12px;font-weight:700;cursor:pointer}
#corsa-simulation .csp-pin-btn.is-pinned{width:auto;border-style:solid;flex-shrink:0}
@media(prefers-reduced-motion:no-preference){
  @keyframes csp-value-pop{0%{opacity:.55;transform:translateY(4px) scale(.985)}60%{opacity:1;transform:translateY(-1px) scale(1.01)}100%{opacity:1;transform:none}}
  @keyframes csp-seg-wave{from{opacity:.25;transform:scaleX(.4)}to{opacity:1;transform:scaleX(1)}}
  @keyframes csp-bar-wave{from{transform:scaleY(0)}to{transform:scaleY(1)}}
  @keyframes csp-breakeven-pulse{0%,100%{box-shadow:0 0 0 2px #fff,0 0 0 4px #086de8}50%{box-shadow:0 0 0 2px #fff,0 0 0 7px rgba(8,109,232,.35)}}
  @keyframes csp-cta-sheen{0%,75%{transform:translateX(140%) skewX(-20deg)}100%{transform:translateX(-240%) skewX(-20deg)}}
  .csp-big,.csp-monthly-avg strong,.csp-pin-compare strong{animation:csp-value-pop 280ms cubic-bezier(.22,1,.36,1) both}
  .csp-track-seg{transform-origin:inline-start center;animation:csp-seg-wave 340ms cubic-bezier(.22,1,.36,1) calc(var(--seg-i,0)*28ms) both}
  .csp-track-seg.is-breakeven{animation:csp-seg-wave 340ms cubic-bezier(.22,1,.36,1) calc(var(--seg-i,0)*28ms) both,csp-breakeven-pulse 2.2s ease-in-out 450ms infinite}
  .csp-period button::after{transform-origin:bottom center;animation:csp-bar-wave 380ms cubic-bezier(.22,1,.36,1) calc(var(--m-i,0)*24ms) both}
  #corsa-simulation :is(.csp-presets button,.csp-scenarios button,.csp-view button,.csp-period button,.csp-compare-card,.csp-goal-chip,.csp-upgrade-nudge){transition:transform 160ms cubic-bezier(.22,1,.36,1),box-shadow 160ms ease,border-color 160ms ease,background-color 160ms ease}
  #corsa-simulation :is(.csp-presets button,.csp-scenarios button,.csp-view button,.csp-period button,.csp-compare-card,.csp-goal-chip,.csp-upgrade-nudge):active{transform:scale(.97)}
  #corsa-simulation .estimator-submit{position:relative;overflow:hidden;transition:transform 180ms cubic-bezier(.22,1,.36,1),box-shadow 180ms ease}
  #corsa-simulation .estimator-submit:hover{transform:translateY(-2px);box-shadow:0 12px 26px rgba(8,109,232,.28)}
  #corsa-simulation .estimator-submit::after{content:"";position:absolute;top:0;bottom:0;width:36%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.26),transparent);animation:csp-cta-sheen 4.8s ease-in-out infinite;pointer-events:none}
  @keyframes csp-unfold{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
  @keyframes csp-card-rise{from{opacity:0;transform:translateY(12px)}to{opacity:1;transform:none}}
  details.csp-details[open]>.cs-output,details.cpc-table[open]>table,details.cs-month[open]>dl{animation:csp-unfold 240ms cubic-bezier(.22,1,.36,1) both}
  .csp-compare-card,.csp-pulse-item,.csp-faq-card{animation:csp-card-rise 380ms cubic-bezier(.22,1,.36,1) both}
  .csp-compare-card:nth-child(2),.csp-pulse-item:nth-child(2),.csp-faq-card:nth-child(2){animation-delay:60ms}
  .csp-compare-card:nth-child(3),.csp-pulse-item:nth-child(3),.csp-faq-card:nth-child(3){animation-delay:120ms}
  .csp-faq-card:nth-child(4){animation-delay:180ms}
  .csp-result,.csp-compare-card{background-image:radial-gradient(380px circle at var(--spot-x,50%) var(--spot-y,0%),rgba(8,109,232,.07),transparent 70%)}
  html[data-theme=dark] .csp-result,html[data-theme=dark] .csp-compare-card{background-image:radial-gradient(380px circle at var(--spot-x,50%) var(--spot-y,0%),rgba(56,189,248,.11),transparent 70%)}
  @keyframes csp-copy-ok{0%{transform:scale(.95)}60%{transform:scale(1.04)}100%{transform:none}}
  #corsa-simulation .csp-promo-copy.is-copied{border-color:#16a34a;background:#f0fdf4;color:#166534;animation:csp-copy-ok 280ms cubic-bezier(.34,1.56,.64,1) both}
  html[data-theme=dark] #corsa-simulation .csp-promo-copy.is-copied{border-color:#22c55e66;background:#112a1f;color:#86efac}
}
@media(max-width:760px){.csp-faq-grid,.csp-compare-grid,.csp-promo-row,.csp-goal-chips{grid-template-columns:1fr;gap:10px}.csp-faq-card{padding:16px 18px}.csp-sticky-bar{flex-direction:column;align-items:stretch;gap:10px;padding:14px}.csp-sticky-actions{display:grid;grid-template-columns:1fr 1fr}body:has(.csp-sticky-bar.is-visible) #floating-contact{bottom:136px!important}}

/* === css/corsa_profit_chart.css === */
.corsa-profit-chart{--cpc-base:#086de8;--cpc-conservative:#946000;--cpc-fast:#087d72;margin:28px 0 0;padding:clamp(20px,2.6vw,30px);border:1px solid var(--csp-line);border-radius:16px;background:var(--csp-card,#fff);box-shadow:0 10px 28px #102a4c08;min-width:0}
#corsa-simulation .corsa-profit-chart h2{font-size:clamp(20px,2.4vw,25px);margin:0 0 8px}
.corsa-profit-chart figcaption p,.cpc-unit,.cpc-selected,.cpc-caveat{color:var(--csp-muted);line-height:1.8}
.cpc-unit{font-size:13px;margin:16px 0 10px}
.cpc-plot{position:relative;padding-inline-start:42px}
.cpc-plot svg{width:100%;height:220px;display:block;overflow:visible}
.cpc-axis{position:absolute;inset-inline-start:0;top:0;width:42px;height:220px;font-size:12px;color:var(--csp-muted)}
.cpc-axis span{position:absolute;inset-inline-end:10px;transform:translateY(-50%)}
.cpc-grid{stroke:var(--csp-line);stroke-width:1;vector-effect:non-scaling-stroke}
.cpc-selection{stroke:var(--cpc-base);stroke-opacity:.45;stroke-dasharray:3 5;vector-effect:non-scaling-stroke}
.cpc-series-base{color:var(--cpc-base)}.cpc-series-conservative{color:var(--cpc-conservative)}.cpc-series-fast{color:var(--cpc-fast)}
.cpc-line{fill:none;stroke:currentColor;stroke-width:2;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.cpc-current .cpc-line{stroke-width:3}
.cpc-series-conservative .cpc-line{stroke-dasharray:6 4}
.cpc-canvas{position:relative}
.cpc-points{position:absolute;inset:0;pointer-events:none}
.cpc-point{position:absolute;width:8px;height:8px;background:currentColor;transform:translate(-50%,-50%)}
.cpc-point.cpc-series-conservative{border-radius:50%}
.cpc-point.cpc-series-fast{width:10px;height:10px;clip-path:polygon(50% 0,0 100%,100% 100%)}
.cpc-years{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:4px;margin-inline-start:42px;margin-top:8px}
#corsa-simulation .cpc-years button{min-height:44px;padding:6px 2px;border:1px solid transparent;background:transparent;color:var(--csp-muted);border-radius:9px;font-size:13px}
#corsa-simulation .cpc-years button[aria-pressed=true]{border-color:var(--cpc-base);color:var(--cpc-base);background:transparent;font-weight:700}
.cpc-years button:focus-visible{outline:3px solid var(--cpc-base);outline-offset:2px}
.cpc-selected{font-weight:600;margin:22px 0 10px}
.cpc-values{margin:0}
.cpc-values>div{display:flex;justify-content:space-between;align-items:start;gap:14px;padding:13px 0;border-bottom:1px solid var(--csp-line)}
.cpc-values dt{display:flex;align-items:center;gap:9px;font-weight:600;overflow-wrap:anywhere;min-width:0}
.cpc-key{position:relative;width:22px;flex-shrink:0;border-top:3px solid currentColor}
.cpc-series-conservative .cpc-key{border-top-style:dashed}
.cpc-key::after{content:"";position:absolute;left:50%;top:-1.5px;width:7px;height:7px;background:currentColor;transform:translate(-50%,-50%)}
.cpc-series-conservative .cpc-key::after{border-radius:50%}
.cpc-series-fast .cpc-key::after{width:9px;height:9px;clip-path:polygon(50% 0,0 100%,100% 100%)}
#corsa-simulation .cpc-values .cpc-series-base dt{color:var(--cpc-base)}
#corsa-simulation .cpc-values .cpc-series-conservative dt{color:var(--cpc-conservative)}
#corsa-simulation .cpc-values .cpc-series-fast dt{color:var(--cpc-fast)}
.cpc-values dd{margin:0;text-align:end;color:var(--text-primary,#14243c);font-weight:700}
.cpc-values dd small{display:block;font-size:12px;font-weight:400;color:var(--csp-muted);line-height:1.8}
.cpc-table{margin-top:18px}.cpc-table summary{cursor:pointer;min-height:44px;color:var(--cpc-base)}
.cpc-table table{width:100%;table-layout:fixed;border-collapse:collapse;font-size:12px}
.cpc-table caption{text-align:start;margin-bottom:12px;color:var(--csp-muted);line-height:1.8}
.cpc-table :is(th,td){padding:10px 3px;text-align:center;border-bottom:1px solid var(--csp-line);overflow-wrap:anywhere}
.cpc-table th:first-child{width:48px}
.cpc-caveat{font-size:13px;margin:18px 0 0}
html[data-theme=dark] .corsa-profit-chart{--cpc-base:#81b8ff;--cpc-conservative:#ffc86a;--cpc-fast:#57d5cb}
html[data-theme=dark] .cpc-values dd{color:#e8effb}
@media(min-width:1000px){.cpc-plot svg,.cpc-axis{height:260px}.cpc-values{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}.cpc-values>div{display:block}.cpc-values dd{text-align:start;margin-top:10px}}

.cpc-export{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin:20px 0 0;padding-top:18px;border-top:1px solid var(--csp-line)}
#corsa-simulation .cpc-export button{min-height:46px;padding:12px 20px;border:1px solid var(--cpc-base);border-radius:12px;background:transparent;color:var(--cpc-base);font-weight:600}
.cpc-export button:focus-visible{outline:3px solid var(--cpc-base);outline-offset:3px}
.cpc-export button:disabled{opacity:.65;cursor:wait}
.cpc-export small{flex-basis:100%;color:var(--csp-muted);font-size:12px;line-height:1.8}
.cpc-export [role=status]{font-size:13px;color:var(--csp-muted)}
@media(max-width:480px){#corsa-simulation .cpc-export button{width:100%}}

.cpc-whatsapp{display:inline-flex;align-items:center;justify-content:center;min-height:46px;padding:12px 20px;border:1px solid #16834c;border-radius:12px;color:var(--text-primary,#14243c);text-decoration:none;font-weight:600;line-height:1.5;text-align:center;box-sizing:border-box}.cpc-whatsapp:focus-visible{outline:3px solid #16834c;outline-offset:3px}@media(max-width:480px){.cpc-whatsapp{width:100%}}
@media(prefers-reduced-motion:no-preference){
  @keyframes cpc-draw{from{stroke-dasharray:100;stroke-dashoffset:100;opacity:.35}to{stroke-dasharray:100;stroke-dashoffset:0;opacity:1}}
  @keyframes cpc-pop{from{opacity:0;transform:translate(-50%,-50%) scale(.2)}to{opacity:1;transform:translate(-50%,-50%) scale(1)}}
  @keyframes cpc-halo{0%,100%{box-shadow:0 0 0 3px rgba(8,109,232,.22)}50%{box-shadow:0 0 0 7px rgba(8,109,232,.08)}}
  @keyframes cpc-val-in{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:none}}
  .cpc-current:not(.cpc-series-conservative) .cpc-line{animation:cpc-draw 680ms cubic-bezier(.22,1,.36,1) both}
  .cpc-point{animation:cpc-pop 380ms cubic-bezier(.34,1.56,.64,1) calc(var(--pt-i,0)*65ms) both}
  .cpc-point.is-active{animation:cpc-halo 2.2s ease-in-out infinite}
  .cpc-selection,.cpc-values>div{animation:cpc-val-in 260ms cubic-bezier(.22,1,.36,1) both}
}
.cpc-values>.is-current{padding:12px 14px;border:1px solid var(--cpc-base);border-radius:12px;background:rgba(8,109,232,.06);box-shadow:0 8px 20px rgba(8,109,232,.1)}
html[data-theme=dark] .cpc-values>.is-current{background:rgba(129,184,255,.1)}

/* === css/saved_simulations.css === */
.saved-simulations{margin-block:20px;padding:24px;border:1px solid var(--border-color,#d9e4f2);border-radius:20px;background:var(--bg-card,#fff);color:var(--text-primary,#14243c)}
.saved-simulations h2{font-size:1.3rem;margin:0 0 12px}.saved-simulations .field-note{line-height:1.9}.saved-simulation-row{padding:20px 0;border-top:1px solid var(--border-color,#d9e4f2);overflow-wrap:anywhere}.saved-simulation-row h3{font-size:1.1rem;margin:0 0 10px}.saved-simulation-row strong{font-size:1.4rem}.saved-simulation-row p{margin-block:8px}.saved-simulation-row small{display:block;color:var(--text-secondary,#536580)}.saved-simulation-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:14px}.saved-simulation-actions a,.saved-simulation-actions button,.saved-simulations>[data-saved-more]{min-height:46px;padding:12px 18px;border-radius:12px;white-space:normal;text-align:center;box-sizing:border-box;line-height:1.6}.saved-simulation-actions a:focus-visible,.saved-simulation-actions button:focus-visible{outline:3px solid #086de8;outline-offset:3px}.saved-simulations [role=status]{line-height:1.8}.cpc-account{min-height:46px;display:inline-flex;align-items:center;color:var(--cpc-base,#086de8);text-underline-offset:4px}
@media(max-width:480px){.saved-simulations{padding:18px}.saved-simulation-actions>*{flex:1 1 130px}.saved-simulation-actions a{flex-basis:100%}.cpc-account{width:100%;justify-content:center}}
body.workspace-v2 #partner-profile-section>.partner-workspace-tabs{grid-template-columns:repeat(5,minmax(0,1fr))}@media(max-width:700px){body.workspace-v2 #partner-profile-section>.partner-workspace-tabs{grid-template-columns:repeat(2,minmax(0,1fr))}.partner-workspace-tabs [data-workspace-tab=simulations]{grid-column:1/-1}}

/* === css/advisor_call_modal.css === */
.advisor-call-overlay[hidden], .advisor-call-overlay.is-leaving { display: none !important; }
#corsa-simulation .csp-advisor-call-btn { grid-column: 1 / -1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding-block: 10px; padding-inline: 16px; border: 1px solid #086de8; border-radius: 12px; background: #eef6ff; color: #0055bf; font-size: 14px; font-weight: 700; line-height: 1.6; cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease; }
#corsa-simulation .csp-advisor-call-btn:hover { background: #dcebff; }
html[data-theme=dark] #corsa-simulation .csp-advisor-call-btn { border-color: #4b96f3; background: #142844; color: #8cc2ff; }
html[data-theme=dark] #corsa-simulation .csp-advisor-call-btn:hover { background: #1b3558; }

.advisor-call-overlay { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 16px; background: rgba(9, 19, 36, 0.62); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); overflow-y: auto; }
.acm-dialog { width: min(100%, 560px); max-height: calc(100dvh - 32px); overflow-y: auto; padding: clamp(18px, 3vw, 26px); border: 1px solid #cfdef1; border-radius: 18px; background: #ffffff; color: #0d1725; box-shadow: 0 24px 60px rgba(7, 22, 46, 0.28); text-align: start; }
.acm-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.acm-badge { display: inline-block; padding-block: 3px; padding-inline: 10px; border-radius: 999px; background: #e9f3ff; color: #0055bf; font-size: 12px; font-weight: 700; line-height: 1.6; }
.acm-head h3 { margin: 6px 0 0; font-size: clamp(19px, 2.2vw, 22px); font-weight: 700; line-height: 1.45; color: #0d1725; }
.acm-close { flex-shrink: 0; width: 44px; height: 44px; border: 1px solid #cfdef1; border-radius: 10px; background: #f7fbff; color: #14243c; font-size: 22px; line-height: 1; cursor: pointer; }
.acm-lead { margin: 10px 0 14px; color: #485a72; font-size: 14.5px; line-height: 1.8; }

.acm-sim-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; padding: 12px 14px; border: 1px solid #d5e6fb; border-radius: 12px; background: #f2f8ff; margin-bottom: 16px; }
.acm-sim-summary span { display: block; font-size: 12px; color: #485a72; line-height: 1.6; }
.acm-sim-summary strong { display: block; font-size: 16px; font-weight: 700; color: #0055bf; line-height: 1.5; }

.acm-slots { margin: 0 0 14px; padding: 0; border: 0; }
.acm-slots legend { margin-bottom: 8px; font-size: 13.5px; font-weight: 700; color: #14243c; }
.acm-slots-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.acm-slot-btn { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 8px 10px; border: 1px solid #cfdef1; border-radius: 12px; background: #ffffff; color: #14243c; cursor: pointer; text-align: center; }
.acm-slot-btn strong { font-size: 13px; line-height: 1.5; }
.acm-slot-btn bdi { font-size: 12px; color: #485a72; }
.acm-slot-btn[aria-pressed=true] { border-color: #086de8; background: #086de8; color: #ffffff; }
.acm-slot-btn[aria-pressed=true] bdi { color: #e9f3ff; }

.acm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.acm-field label { display: block; margin-bottom: 6px; font-size: 13px; font-weight: 600; color: #14243c; line-height: 1.6; }
.acm-field select, .acm-field input { width: 100%; min-height: 44px; padding-block: 8px; padding-inline: 12px; border: 1px solid #b8cde6; border-radius: 10px; background: #ffffff; color: #0d1725; font-size: 14px; box-sizing: border-box; }

.acm-preview-wrap { margin-bottom: 14px; }
.acm-preview-label { display: block; margin-bottom: 6px; font-size: 12.5px; font-weight: 600; color: #485a72; }
.acm-preview { margin: 0; padding: 10px 12px; border: 1px solid #cfdef1; border-radius: 10px; background: #f7fbff; color: #14243c; font-family: inherit; font-size: 12.5px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }

.acm-actions { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 10px; }
.acm-wa-btn, .acm-copy-btn { display: inline-flex; align-items: center; justify-content: center; min-height: 46px; padding-block: 10px; padding-inline: 14px; border-radius: 12px; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; text-align: center; }
.acm-wa-btn { border: 1px solid #15803d; background: #15803d; color: #ffffff; }
.acm-copy-btn { border: 1px solid #cfdef1; background: #f7fbff; color: #14243c; }
.acm-status { margin: 8px 0 0; min-height: 20px; color: #15803d; font-size: 13px; font-weight: 600; }
.acm-privacy { margin: 4px 0 0; color: #485a72; font-size: 12px; line-height: 1.7; }

html[data-theme=dark] .acm-dialog { border-color: #334862; background: #111d30; color: #edf4ff; }
html[data-theme=dark] .acm-head h3 { color: #edf4ff; }
html[data-theme=dark] .acm-badge { background: #172b47; color: #8cc2ff; }
html[data-theme=dark] .acm-close, html[data-theme=dark] .acm-copy-btn, html[data-theme=dark] .acm-preview { border-color: #334862; background: #16263e; color: #edf4ff; }
html[data-theme=dark] .acm-lead, html[data-theme=dark] .acm-sim-summary span, html[data-theme=dark] .acm-preview-label, html[data-theme=dark] .acm-privacy { color: #b5c6dc; }
html[data-theme=dark] .acm-sim-summary { border-color: #2c4362; background: #16263e; }
html[data-theme=dark] .acm-sim-summary strong { color: #8cc2ff; }
html[data-theme=dark] .acm-slots legend, html[data-theme=dark] .acm-field label { color: #dce8f8; }
html[data-theme=dark] .acm-slot-btn, html[data-theme=dark] .acm-field select, html[data-theme=dark] .acm-field input { border-color: #334862; background: #15243b; color: #edf4ff; }
html[data-theme=dark] .acm-slot-btn bdi { color: #b5c6dc; }
html[data-theme=dark] .acm-slot-btn[aria-pressed=true] { border-color: #086de8; background: #086de8; color: #ffffff; }
html[data-theme=dark] .acm-status { color: #86efac; }
@media (max-width: 620px) { .acm-slots-grid, .acm-fields, .acm-actions, .acm-sim-summary { grid-template-columns: 1fr; } }

/* === css/scenario_comparison.css === */
#scenario-comparison[hidden] { display: none !important; }
#scenario-comparison {
  margin-top: 24px; padding: 18px; border: 1px solid #cfdef1; border-radius: 16px;
  background: #f8fbff; color: #0d1725; text-align: start;
}

.sc-head { display: grid; gap: 4px; }
.sc-eyebrow { display: inline-block; color: #0055bf; font-size: 12.5px; font-weight: 700; line-height: 1.6; }
.sc-heading { margin: 0; color: #0d1725; font-size: clamp(18px, 1.8vw, 21px); font-weight: 700; line-height: 1.5; }
.sc-sub { margin: 0; color: #3f526b; font-size: 13.5px; line-height: 1.75; }

.sc-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.sc-card {
  position: relative; display: flex; flex-direction: column; align-items: stretch; gap: 8px;
  padding: 16px 13px 13px; border: 1px solid #c4d7ee; border-radius: 14px;
  background: #ffffff; color: #0d1725; font: inherit; text-align: start; cursor: pointer;
  box-shadow: 0 8px 20px rgba(13, 29, 56, 0.06);
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}
.sc-card::before {
  content: ""; position: absolute; inset-inline: 0; top: 0; height: 4px;
  border-radius: 13px 13px 0 0; background: transparent;
}
.sc-card:hover { border-color: #6aa7f2; background: #f9fcff; }
.sc-card.is-active {
  border-color: #086de8; background: #eff6ff;
  box-shadow: 0 12px 26px rgba(8, 109, 232, 0.14);
}
.sc-card.is-active::before { background: linear-gradient(90deg, #086de8, #0055bf); }

.sc-badge {
  align-self: flex-start; padding-block: 2px; padding-inline: 9px;
  border: 1px solid #c9dff8; border-radius: 999px; background: #e9f3ff; color: #0055bf;
  font-size: 12px; font-weight: 700; line-height: 1.6;
}
.sc-card.is-active .sc-badge { border-color: #086de8; background: #086de8; color: #ffffff; }
.sc-metric-label { color: #3f526b; font-size: 12px; line-height: 1.6; }
.sc-share {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 5px;
  color: #0055bf; font-size: clamp(19px, 1.75vw, 23px); font-weight: 700; line-height: 1.35;
  font-variant-numeric: tabular-nums;
}
.sc-currency { font-size: 0.72em; font-weight: 600; }
.sc-metric-row {
  display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px;
  padding-top: 8px; border-top: 1px solid #dce8f6; color: #3f526b; font-size: 12px; line-height: 1.6;
}
.sc-metric-row strong { color: #0d1725; font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; }
.sc-cumul strong { color: #0055bf; }

.sc-actions { margin-top: 14px; padding-top: 12px; border-top: 1px solid #d5e4f5; display: grid; gap: 8px; }
.sc-action-btns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sc-copy-btn, .sc-wa-link {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 44px; padding: 9px 14px; border-radius: 10px;
  font: inherit; font-size: 13.5px; font-weight: 700; line-height: 1.5;
  text-decoration: none; text-align: center; cursor: pointer;
}
.sc-copy-btn { border: 1px solid #b8cde6; background: #ffffff; color: #14243c; }
.sc-copy-btn.is-copied { border-color: #15803d; background: #f0fdf4; color: #166534; }
.sc-wa-link { border: 1px solid #15803d; background: #15803d; color: #ffffff !important; }
.sc-note { margin: 0; color: #3f526b; font-size: 12px; line-height: 1.75; text-align: center; }

html[data-theme=dark] #scenario-comparison { border-color: #2c4362; background: #0f1b2e; color: #edf4ff; }
html[data-theme=dark] .sc-heading, html[data-theme=dark] .sc-metric-row strong { color: #edf4ff; }
html[data-theme=dark] .sc-eyebrow, html[data-theme=dark] .sc-share, html[data-theme=dark] .sc-cumul strong { color: #8cc2ff; }
html[data-theme=dark] .sc-sub, html[data-theme=dark] .sc-metric-label, html[data-theme=dark] .sc-metric-row, html[data-theme=dark] .sc-note { color: #b8c9df; }
html[data-theme=dark] .sc-card { border-color: #2f4665; background: #14233a; color: #edf4ff; box-shadow: 0 10px 24px rgba(0, 0, 0, 0.36); }
html[data-theme=dark] .sc-card:hover { border-color: #4f94f0; background: #182b47; }
html[data-theme=dark] .sc-card.is-active { border-color: #086de8; background: #193052; box-shadow: 0 12px 28px rgba(8, 109, 232, 0.28); }
html[data-theme=dark] .sc-badge { border-color: #315585; background: #1c3558; color: #8cc2ff; }
html[data-theme=dark] .sc-card.is-active .sc-badge { border-color: #086de8; background: #086de8; color: #ffffff; }
html[data-theme=dark] .sc-metric-row, html[data-theme=dark] .sc-actions { border-top-color: #29405e; }
html[data-theme=dark] .sc-copy-btn { border-color: #355072; background: #162842; color: #edf4ff; }
html[data-theme=dark] .sc-copy-btn.is-copied { border-color: #22c55e; background: #122b22; color: #86efac; }
html[data-theme=dark] .sc-wa-link { border-color: #15803d; background: #15803d; color: #ffffff !important; }

@media (max-width: 1080px) { .sc-grid { grid-template-columns: 1fr; } }
@media (max-width: 620px) { .sc-action-btns { grid-template-columns: 1fr; } }
@media print { #scenario-comparison { display: none; } }

/* === css/partnership_incentives.css === */
/* Strategic Partnership Suite (Initiatives 1–6): Tiers, Tranches, Contract Preview, Public Briefing, Basket, Co-Partner & Ambassador. */
@media screen {
#partnership-incentives[hidden],#partnership-executive-actions[hidden],#partnership-advanced-tools[hidden],
#signup-referral-badge[hidden],:is(.icd-overlay,.pbb-overlay,.pah-panel)[hidden],:is(.icd-overlay,.pbb-overlay).is-leaving{display:none!important}
#partnership-incentives{margin-top:18px;text-align:start}
.pi-wrap{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:14px;align-items:stretch}
.pi-tier-card,.pi-tranche-card{display:flex;flex-direction:column;gap:12px;padding:18px 20px;border:1px solid #cfe1f8;border-top:3px solid #086de8;border-radius:16px;background:#fff;color:#0d1725;box-shadow:0 10px 26px rgba(11,30,66,0.05);font-variant-numeric:tabular-nums}
.pi-tier-card[data-tier-id=active]{border-top-color:#0284c7}
.pi-tier-card[data-tier-id=strategic]{border-top-color:#059669}
.pi-tier-card[data-tier-id=founder]{border-top-color:#0f4c9c;background:linear-gradient(180deg,#f5f9ff 0%,#fff 100%)}
.pi-eyebrow{display:inline-block;color:#0055bf;font-size:12px;font-weight:700}
.pi-tier-title-row{display:flex;flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px}
.pi-tier-badge,:is(.icd-dialog,.icd-terms-banner) .acm-badge{display:inline-block;padding:3px 10px;border:1px solid #bfd7f6;border-radius:999px;background:#eaf3ff;color:#0055bf;font-size:12px;font-weight:700}
.pi-tier-title,.pi-tranche-title,.mvb-title,.cpp-title{margin:0;color:#0b162c;font-size:17.5px;font-weight:800;line-height:1.45}
.pi-tranche-sub,.pi-perks-heading,.mvb-sub,.cpp-sub,.mvb-budget-line,.mvb-note,.cpp-note{margin:2px 0 0;color:#3b4f6b;font-size:12.8px;font-weight:600;line-height:1.65}
.pi-perks{list-style:none;margin:0;padding:0;display:grid;gap:7px}
.pi-perk-item{padding:8px 12px;border:1px solid #dce8f7;border-inline-start:3px solid #086de8;border-radius:10px;background:#f8fbff;color:#162b48;font-size:13px;font-weight:600;line-height:1.6}
.pi-tier-progress{margin-top:auto;padding-top:10px;border-top:1px solid #e2ecf9;display:grid;gap:8px}
.pi-progress-track{height:9px;border-radius:999px;background:#e2ecf9;overflow:hidden}
.pi-progress-fill{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#086de8 0%,#10b981 100%);transition:width 220ms ease}
.pi-progress-note{margin:0;color:#334763;font-size:12.5px;line-height:1.6}
.pi-progress-note strong{color:#0055bf;font-weight:800}
.pi-founder-badge{margin:0;padding:6px 12px;border:1px solid #a7f3d0;border-radius:10px;background:#ecfdf5;color:#065f46;font-size:12.5px;font-weight:700}
.pi-tranche-tabs,.icd-controls,.icd-actions,.pbb-modes{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
:is(.pi-tranche-tab,.pah-tab,.mvb-preset-pill,.cpp-toggle-btn,.cpp-equalize-btn,.mvb-copy-btn,.cpp-copy-btn){min-height:42px;padding:7px 11px;border:1px solid #c4d8f2;border-radius:10px;background:#fff;color:#162b48;font:inherit;font-size:12.8px;font-weight:700;cursor:pointer;transition:background-color 150ms ease,border-color 150ms ease}
.pi-tranche-tab:hover:not(.is-active){border-color:#6ea8f5;background:#eaf3ff;color:#0055bf}
.pi-tranche-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:10px}
.pi-tranche-item{display:flex;flex-direction:column;gap:5px;padding:12px 13px;border:1px solid #d4e4f7;border-radius:12px;background:#f8fbff}
.pi-tranche-top,.mvb-card-top,.mvb-row{display:flex;align-items:center;justify-content:space-between;gap:8px;font-size:13px}
.pi-tranche-label{color:#334763;font-size:12px;font-weight:700}
.pi-tranche-ratio{padding:2px 8px;border-radius:999px;background:#e6f0ff;color:#0055bf;font-size:11.5px;font-weight:800}
.pi-tranche-amount{color:#0b162c;font-size:16.5px;font-weight:800}
.pi-tranche-amount span,.pi-tranche-milestone{margin:0;color:#3b4f6b;font-size:12px;line-height:1.55}
.pi-tranche-foot{margin-top:auto;padding-top:10px;border-top:1px solid #e2ecf9;display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:10px}
.pi-total-summary{color:#334763;font-size:13px}
.pi-total-summary strong{color:#0b162c;font-weight:800}
:is(.pi-wa-link,.mvb-wa-link,.cpp-wa-link,.icd-wa-btn,.icd-print-btn,.icd-apply-btn,.exec-action-btn){display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:8px 14px;border-radius:11px;font:inherit;font-size:13.5px;font-weight:700;text-decoration:none;text-align:center;cursor:pointer}
:is(.pi-wa-link,.mvb-wa-link,.cpp-wa-link,.icd-wa-btn){border:1px solid #15803d;background:#15803d;color:#fff!important}

.company-discovery-actions .exhibition-hero-book-btn{font:inherit;font-size:15px;font-weight:700;border:1px solid #8bb8f8;background:#f2f8ff;color:#0055bf;cursor:pointer;transition:background-color 160ms ease,border-color 160ms ease}
.company-discovery-actions .exhibition-hero-book-btn:hover{border-color:#075df5;background:#e0edff;color:#054ac7}
.icd-overlay,.pbb-overlay{position:fixed;inset:0;z-index:1220;display:flex;align-items:center;justify-content:center;padding:16px;background:rgba(9,19,36,0.64);backdrop-filter:blur(6px);overflow-y:auto}
.icd-dialog{width:min(100%,780px);max-height:calc(100dvh - 32px);overflow-y:auto;padding:clamp(18px,2.8vw,26px);border:1px solid #cfdef1;border-radius:18px;background:#fff;color:#0d1725;box-shadow:0 24px 60px rgba(7,22,46,0.28);text-align:start;font-variant-numeric:tabular-nums}
.pbb-dialog{width:min(100%,640px);font-variant-numeric:tabular-nums}
.icd-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}
.icd-head h3{margin:6px 0 0;color:#0d1725;font-size:20px;font-weight:800;line-height:1.45}
.icd-dialog .acm-close{flex-shrink:0;width:42px;height:42px;border:1px solid #cfdef1;border-radius:10px;background:#f7fbff;color:#14243c;font-size:22px;cursor:pointer}
.icd-dialog > .acm-lead{margin:8px 0 14px;color:#3b4f6b;font-size:14px;line-height:1.75}
.icd-controls{margin-bottom:14px}
.icd-controls .acm-field label{display:block;margin-bottom:5px;color:#14243c;font-size:12.5px;font-weight:700}
.icd-controls :is(input,select),.cpp-input,.mvb-weight-select{width:100%;min-height:42px;padding:7px 11px;border:1px solid #b8cde6;border-radius:10px;background:#fff;color:#0d1725;font:inherit;font-size:13.5px;box-sizing:border-box}
.icd-paper{padding:20px 22px;border:1px solid #bfd7f6;border-top:4px solid #0f4c9c;border-radius:14px;background:#fbfdff;color:#0b162c}
.icd-watermark{display:inline-block;margin-bottom:10px;padding:3px 10px;border:1px dashed #7ea9e8;border-radius:6px;background:#eef5ff;color:#0055bf;font-size:11.5px;font-weight:800}
.icd-paper-head{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px;padding-bottom:12px;margin-bottom:14px;border-bottom:2px solid #cfe1f8}
.icd-brand{display:inline-flex;align-items:center;gap:9px;color:#0b162c;font-size:16px;font-weight:800}
.icd-meta h4{margin:0 0 3px;color:#0b162c;font-size:15px;font-weight:800}
.icd-meta span{color:#3b4f6b;font-size:12.5px;font-weight:600}
.icd-clauses{display:grid;gap:11px}
.icd-clause{padding:11px 14px;border:1px solid #dde9f8;border-radius:10px;background:#fff}
.icd-clause h5{margin:0 0 5px;color:#0055bf;font-size:13.5px;font-weight:800}
.icd-clause p{margin:0;color:#1e3350;font-size:13.2px;line-height:1.75}
:is(.icd-tranche-table,.cpp-table){width:100%;margin-top:9px;border-collapse:collapse;font-size:12.8px;font-variant-numeric:tabular-nums}
:is(.icd-tranche-table,.cpp-table) :is(th,td){padding:8px 10px;border:1px solid #cfe1f8;text-align:start;color:#0d1725}
:is(.icd-tranche-table,.cpp-table) :is(thead,tfoot) th{background:#eef5ff;color:#0b2548;font-weight:800}
.icd-actions{margin-top:14px}
.icd-print-btn{border:1px solid #b8cde6;background:#f7fbff;color:#14243c}
.icd-apply-btn{border:1px solid #086de8;background:#086de8;color:#fff!important}
.icd-terms-banner{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px;padding:20px 24px;border:1px solid #bfd7f6;border-inline-start:4px solid #086de8;border-radius:16px;background:linear-gradient(135deg,#f2f8ff 0%,#fff 100%)}
.icd-terms-banner-body{flex:1 1 320px}
.icd-terms-banner-body h2{margin:6px 0 4px;color:#0d1725;font-size:19px;font-weight:800}
.icd-terms-banner-body p{margin:0;color:#3b4f6b;font-size:14px;line-height:1.7}
.pbb-dialog [data-pbb-mode]{min-height:54px;padding:8px 10px;border:1px solid #c7daf2;border-radius:12px;background:#f8fbff;color:#14243c;font:inherit;font-size:12.8px;cursor:pointer}
.pbb-dialog .acm-actions{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}

.partnership-exec-actions{margin-top:14px;display:grid;gap:10px}
.partnership-exec-btns,.pah-tabs,.mvb-action-btns,.cpp-action-btns{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.exec-action-btn{border:1px solid #93bef8;background:#f0f7ff;color:#0055bf;transition:background-color 150ms ease,border-color 150ms ease}
.exec-action-btn:hover{border-color:#086de8;background:#dfeeff}
.partnership-advanced-tools{margin-top:16px;border:1px solid #cfe1f8;border-radius:16px;background:#f8fbff;color:#0d1725;text-align:start;overflow:hidden}
.pah-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:15px 20px;background:#eef5ff;color:#0b162c;font-size:15px;font-weight:800;cursor:pointer;list-style:none}
.pah-summary::-webkit-details-marker{display:none}
.pah-body{padding:16px 20px 20px;display:grid;gap:14px}
:is(.pi-tranche-tab,.pbb-dialog [data-pbb-mode])[aria-pressed=true],
:is(.pi-tranche-tab,.pah-tab,.mvb-preset-pill,.cpp-toggle-btn,.pbb-dialog [data-pbb-mode]).is-active{border-color:#086de8;background:#086de8;color:#fff;box-shadow:0 6px 16px rgba(8,109,232,0.22)}
.mvb-wrap,.cpp-wrap{display:grid;gap:12px;font-variant-numeric:tabular-nums}
.mvb-presets,.cpp-toolbar,.cpp-count-toggle{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.cpp-toolbar{justify-content:space-between}
.mvb-grid,.cpp-inputs{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:11px}
.mvb-card,.cpp-partner-card{display:grid;gap:9px;padding:14px;border:1px solid #d4e4f7;border-radius:13px;background:#fff}
:is(.mvb-row span,.mvb-field label,.cpp-field label){color:#3b4f6b;font-size:12.5px;font-weight:600;display:block;margin-bottom:4px}
.mvb-mode-badge{padding:2px 9px;border-radius:999px;font-size:11.5px;font-weight:700;border:1px solid #93c5fd;background:#eff6ff;color:#0055bf}
.mvb-mode-badge.is-immediate{border-color:#a7f3d0;background:#ecfdf5;color:#065f46}
.cpp-table-wrap{overflow-x:auto}
:is(.mvb-copy-btn,.cpp-copy-btn,.partner-referral-btn).is-copied{border-color:#15803d;background:#f0fdf4;color:#166534}
.amb-code-pill,.ref-welcome-pill{display:inline-flex;flex-wrap:wrap;align-items:center;gap:8px;padding:7px 13px;border:1px solid #93bef8;border-radius:999px;background:#eef6ff;color:#073980;font-size:13px;font-weight:700;font-variant-numeric:tabular-nums}
.amb-code-pill{margin-bottom:8px}
#signup-referral-badge{margin-bottom:14px;width:100%;box-sizing:border-box;border-radius:12px}
.amb-code-val,.ref-welcome-pill bdi{padding:2px 8px;border-radius:7px;background:#fff;border:1px solid #bfd7f6;color:#0055bf;font-weight:800}

html[data-theme=dark] :is(.pi-tier-card,.pi-tranche-card,.icd-dialog,.partnership-advanced-tools){border-color:#2c4362;background:#101d31;color:#edf4ff;box-shadow:0 14px 34px rgba(2,8,20,0.45)}
html[data-theme=dark] .pi-tier-card[data-tier-id=founder]{background:linear-gradient(180deg,#152844 0%,#101d31 100%);border-top-color:#60a5fa}
html[data-theme=dark] :is(.pi-tier-title,.pi-tranche-title,.pi-tranche-amount,.pi-total-summary strong,.icd-head h3,.icd-brand,.icd-meta h4,.icd-terms-banner-body h2,.mvb-title,.cpp-title,.pah-summary){color:#f1f6ff}
html[data-theme=dark] :is(.pi-eyebrow,.pi-progress-note strong,.icd-clause h5){color:#8cc2ff}
html[data-theme=dark] :is(.pi-tranche-sub,.pi-perks-heading,.pi-progress-note,.pi-tranche-label,.pi-tranche-milestone,.pi-total-summary,.icd-dialog > .acm-lead,.icd-meta span,.icd-terms-banner-body p,.mvb-sub,.cpp-sub,.mvb-budget-line,.mvb-note,.cpp-note,.mvb-row span,.mvb-field label,.cpp-field label,.icd-controls .acm-field label){color:#bfd0e6}
html[data-theme=dark] :is(.pi-perk-item,.pi-tranche-item,.mvb-card,.cpp-partner-card,.icd-clause){border-color:#2a415f;background:#15263f;color:#edf4ff}
html[data-theme=dark] .icd-clause p{color:#dce8f8}
html[data-theme=dark] :is(.pi-tier-badge,.pi-tranche-ratio,.icd-watermark,.mvb-mode-badge,.icd-terms-banner,.exec-action-btn,.company-discovery-actions .exhibition-hero-book-btn,.amb-code-pill,.ref-welcome-pill),html[data-theme=dark] :is(.icd-dialog,.icd-terms-banner) .acm-badge{border-color:#3b6ca8;background:#183050;color:#93c5fd}
html[data-theme=dark] :is(.pi-founder-badge,.mvb-mode-badge.is-immediate),html[data-theme=dark] :is(.mvb-copy-btn,.cpp-copy-btn,.partner-referral-btn).is-copied{border-color:#34d399;background:#0f2f2a;color:#6ee7b7}
html[data-theme=dark] :is(.pi-tier-progress,.pi-tranche-foot,.icd-paper-head){border-color:#29405e}
html[data-theme=dark] .pi-progress-track{background:#1c3150}
html[data-theme=dark] :is(.pi-tranche-tab,.pah-tab,.mvb-preset-pill,.cpp-toggle-btn,.cpp-equalize-btn,.mvb-copy-btn,.cpp-copy-btn,.icd-print-btn,.icd-dialog .acm-close,.pbb-dialog [data-pbb-mode]){border-color:#355075;background:#162842;color:#dce8f8}
html[data-theme=dark] :is(.pi-tranche-tab,.pbb-dialog [data-pbb-mode])[aria-pressed=true],html[data-theme=dark] :is(.pi-tranche-tab,.pah-tab,.mvb-preset-pill,.cpp-toggle-btn,.pbb-dialog [data-pbb-mode]).is-active{border-color:#3b82f6;background:#086de8;color:#fff}
html[data-theme=dark] :is(.icd-controls input,.icd-controls select,.cpp-input,.mvb-weight-select){border-color:#3b5984;background:#0d1829;color:#f1f6ff;color-scheme:dark}
html[data-theme=dark] .icd-paper{border-color:#355075;border-top-color:#60a5fa;background:#122137;color:#edf4ff}
html[data-theme=dark] :is(.icd-tranche-table,.cpp-table) :is(th,td){border-color:#2c4362;color:#edf4ff}
html[data-theme=dark] :is(.icd-tranche-table,.cpp-table) :is(thead,tfoot) th,html[data-theme=dark] .pah-summary{background:#172b47;color:#93c5fd}
html[data-theme=dark] :is(.amb-code-val,.ref-welcome-pill bdi){border-color:#4f86c6;background:#0d1829;color:#cce4ff}

@media (max-width:860px){.pi-wrap,.pi-tranche-tabs,.icd-controls,.icd-actions,.pbb-modes,.partnership-exec-btns,.pah-tabs,.mvb-action-btns,.cpp-action-btns{grid-template-columns:1fr}}
@media (prefers-reduced-motion:reduce){.pi-progress-fill,.pi-tranche-tab,.exec-action-btn,.company-discovery-actions .exhibition-hero-book-btn{transition:none}}
}

@media print {
#partnership-incentives,#partnership-executive-actions,#partnership-advanced-tools,.icd-terms-banner,.pbb-overlay,
body:not(.contract-draft-print-active) .icd-overlay{display:none!important}
body.contract-draft-print-active{background:#fff!important;color:#000!important}
body.contract-draft-print-active > :not(.icd-overlay),
body.contract-draft-print-active :is(.icd-head,.icd-dialog > .acm-lead,.icd-controls,.icd-actions){display:none!important}
body.contract-draft-print-active > .icd-overlay{position:static!important;display:block!important;padding:0!important;background:#fff!important;backdrop-filter:none!important;overflow:visible!important}
body.contract-draft-print-active :is(.icd-dialog,.icd-paper){width:100%!important;max-width:none!important;max-height:none!important;padding:0!important;border:0!important;background:#fff!important;color:#000!important;box-shadow:none!important;overflow:visible!important;-webkit-print-color-adjust:exact;print-color-adjust:exact}
body.contract-draft-print-active .icd-watermark{border:1pt solid #0f294a!important;background:#eef4fb!important;color:#0f294a!important}
body.contract-draft-print-active .icd-paper-head{border-bottom:1.5pt solid #0f294a!important}
body.contract-draft-print-active :is(.icd-brand,.icd-meta h4,.icd-meta span,.icd-clause h5,.icd-clause p,.icd-tranche-table th,.icd-tranche-table td){color:#000!important}
body.contract-draft-print-active :is(.icd-clause,.icd-tranche-table th,.icd-tranche-table td){border-color:#94a8c4!important;background:#fff!important;break-inside:avoid}
body.contract-draft-print-active .icd-tranche-table thead th{background:#eef4fb!important;color:#0f294a!important}
}

/* === css/pwa_install.css === */
/* Installable PWA prompt pill & partner session bar inline banner (screen-only). */
@media screen {
  .pwa-install-bar[hidden] { display: none !important; }
  .partner-session-bar:has(.pwa-install-bar) { flex-wrap: wrap; gap: 10px 14px; }

  .pwa-install-bar {
    position: fixed; z-index: 88;
    inset-inline-start: 16px; inset-block-end: calc(16px + env(safe-area-inset-bottom, 0px));
    display: inline-flex; align-items: center; gap: 12px;
    max-width: min(460px, calc(100vw - 96px)); padding: 10px 14px;
    border: 1px solid #bfd7fc; border-radius: 14px;
    background: #f7faff; color: #0b162c;
    box-shadow: 0 12px 30px rgba(11, 22, 44, 0.14);
    font-family: var(--font-main, 'Readex Pro', Arial, sans-serif);
    box-sizing: border-box;
  }

  .partner-session-bar .pwa-install-bar,
  .pwa-install-bar.pwa-install-bar--inline {
    position: static; inset: auto; z-index: auto;
    max-width: 100%; padding: 6px 10px;
    border-radius: 10px; background: #eef5ff; box-shadow: none;
  }

  .pwa-install-text { font-size: 13.5px; font-weight: 600; line-height: 1.5; color: #0b162c; }
  .pwa-install-actions { display: inline-flex; align-items: center; gap: 8px; flex-shrink: 0; }

  .pwa-install-btn,
  .pwa-dismiss-btn {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 38px; padding: 6px 13px; border-radius: 9px;
    font: inherit; font-size: 13px; font-weight: 700; line-height: 1.4;
    cursor: pointer; transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease;
  }

  .pwa-install-btn { border: 1px solid #075df5; background: #075df5; color: #ffffff; }
  .pwa-install-btn:hover { border-color: #054ac7; background: #054ac7; }
  .pwa-dismiss-btn { border: 1px solid #93bef8; background: #ffffff; color: #142847; }
  .pwa-dismiss-btn:hover { border-color: #075df5; background: #e8f1ff; color: #075df5; }
  .pwa-install-bar :is(button):focus-visible { outline: 3px solid #075df5; outline-offset: 2px; }

  body[style*="overflow: hidden"] > .pwa-install-bar,
  body:has(dialog[open], .advisor-call-overlay:not([hidden]), .modal-overlay:not([inert])) > .pwa-install-bar {
    visibility: hidden; pointer-events: none;
  }

  html[data-theme=dark] .pwa-install-bar { border-color: #2b4363; background: #101e33; color: #edf4ff; box-shadow: 0 14px 34px rgba(2, 8, 20, 0.52); }
  html[data-theme=dark] .partner-session-bar .pwa-install-bar,
  html[data-theme=dark] .pwa-install-bar.pwa-install-bar--inline { background: #14263e; box-shadow: none; }
  html[data-theme=dark] .pwa-install-text { color: #edf4ff; }
  html[data-theme=dark] .pwa-install-btn { border-color: #3b82f6; background: #075df5; color: #ffffff; }
  html[data-theme=dark] .pwa-install-btn:hover { border-color: #60a5fa; background: #054ac7; }
  html[data-theme=dark] .pwa-dismiss-btn { border-color: #355075; background: #172a45; color: #dce8f8; }
  html[data-theme=dark] .pwa-dismiss-btn:hover { border-color: #60a5fa; background: #1e3556; color: #ffffff; }

  @media (max-width: 720px) {
    .pwa-install-bar { inset-inline-start: 12px; max-width: calc(100vw - 84px); flex-wrap: wrap; gap: 8px 10px; padding: 10px 12px; }
    body:has(.mobile-cta, #admin-main-section:not([hidden]) .admin-mobile-nav) > .pwa-install-bar { inset-block-end: calc(88px + env(safe-area-inset-bottom, 0px)); }
    .pwa-install-btn, .pwa-dismiss-btn { min-height: 44px; }
  }
  @media (prefers-reduced-motion: reduce) { .pwa-install-btn, .pwa-dismiss-btn { transition: none; } }
}

