/* V11.6 brand refresh: logo colours as the accent, solid primary actions,
   readable minimum text sizes. Loaded last; selectors carry :root so they
   outrank the earlier layered stylesheets without !important. */
:root {
  --brand: #2468f2;
  --brand-ink: #1b54c9;
  --brand-violet: #6c45ee;
  --brand-grad: linear-gradient(120deg, #2a6ff2 0%, #5552f0 62%, #7044ee 100%);
  --brand-wash: #eef3ff;
  --text-2: #46566c;
  --text-3: #5a687d;
}

/* Primary actions: solid brand gradient, white label. */
:root .button.button-primary,
:root .real-hero-actions .button.button-primary {
  color: #fff;
  background: var(--brand-grad);
  border-color: transparent;
  box-shadow: inset 0 1px 0 #ffffff40, 0 10px 24px -12px #3d4fe0b3;
}
:root .button.button-primary > .icon { color: #fff; background: none; box-shadow: none; }
:root .real-hero-actions .button.button-primary > .icon-arrow { color: #fff; background: #ffffff26; box-shadow: none; }
@media (hover: hover) and (pointer: fine) {
  :root .button.button-primary:hover,
  :root .real-hero-actions .button.button-primary:hover { color: #fff; background: var(--brand-grad); filter: brightness(1.07); box-shadow: inset 0 1px 0 #ffffff4d, 0 14px 28px -12px #3d4fe0cc; }
  :root .real-hero-actions .button.button-primary:hover > .icon-arrow { background: #ffffff33; box-shadow: none; }
}
:root .button.button-primary:focus-visible { outline: 2px solid var(--brand-violet); outline-offset: 3px; }

/* Secondary actions: one white pill with a brand outline everywhere. */
:root .button { font-weight: 600; gap: 8px; }
:root .button.button-glass,
:root .button.button-soft,
:root .real-hero-actions .button.button-glass,
:root .inventory-panel--list .inventory-card-link,
:root .copy-contact {
  color: var(--brand-ink);
  background: #fff;
  border: 1px solid #cdd9f4;
  border-radius: 999px;
  box-shadow: 0 1px 2px #1b3a7a0f;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
:root .button.button-glass > .icon,
:root .button.button-soft > .icon,
:root .real-hero-actions .button.button-glass > .icon,
:root .inventory-panel--list .inventory-card-link > .icon { color: currentColor; background: none; box-shadow: none; }
:root .inventory-panel--list .inventory-card-link { font-weight: 600; }
:root .inventory-panel--list .inventory-card[data-availability="empty"] .inventory-card-link,
:root .inventory-panel--list .inventory-card[data-availability="unknown"] .inventory-card-link { color: var(--text-2); background: #fff; border-color: #dbe1ea; }
:root .inventory-panel--list .inventory-soldout-toggle { border: 1px solid #cdd9f4; border-radius: 999px; background: #fff; }
:root .copy-contact { padding: 6px 14px; }
@media (hover: hover) and (pointer: fine) {
  :root .button.button-glass:hover,
  :root .button.button-soft:hover,
  :root .real-hero-actions .button.button-glass:hover,
  :root .inventory-panel--list .inventory-card-link:hover,
  :root .inventory-panel--list .inventory-soldout-toggle:hover,
  :root .copy-contact:hover { color: var(--brand-ink); background: #f3f7ff; border-color: #9db5ee; box-shadow: 0 4px 12px -6px #2a5bd04d; }
}
:root .button.button-glass:focus-visible,
:root .button.button-soft:focus-visible,
:root .inventory-panel--list .inventory-card-link:focus-visible,
:root .copy-contact:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; }

/* Plan switch: segmented control in the same palette. */
:root .pricing-section .plan-tabs { background: #fff; border: 1px solid #cdd9f4; box-shadow: none; }
:root .pricing-section .plan-tabs button.active { color: #fff; background: var(--brand-grad); box-shadow: 0 6px 14px -8px #3d4fe0b3; }

/* Brand accents on links, counts and the active nav item. */
:root .real-hero-links a,
:root .inventory-help,
:root .download-bottom a,
:root .faq-intro a { color: var(--brand-ink); }
:root .inventory-panel--list .inventory-count strong,
:root .inventory-panel--list .inventory-totals dd strong { color: var(--brand-ink); }
:root .inventory-panel--list .inventory-card[data-availability="empty"] .inventory-count strong { color: #7a889b; }
:root .inventory-panel--list .inventory-filters button { border-radius: 999px; }
:root .inventory-panel--list .inventory-filters button[aria-pressed="true"] { color: var(--brand-ink); border-color: #b9cdf6; background: #e8effe; }

/* Second headline lines carry the brand gradient instead of a disabled-looking grey. */
:root .hero.real-hero h1 > span + span,
:root .section-heading h2 .title-part.muted,
:root .title-part.muted {
  color: var(--brand);
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Recommended plan stands out. */
:root .pricing-section .price-card.featured { border: 1.5px solid #7f9df5; box-shadow: inset 0 1px 1px #fff, 0 22px 44px -26px #3d4fe099; }
:root .pricing-section .recommended { color: #fff; background: var(--brand-grad); border-color: transparent; box-shadow: none; font-size: 11px; }

/* Section rhythm: pricing sits on a light brand wash. */
:root .pricing-section { background: linear-gradient(180deg, #f3f6ff 0%, var(--brand-wash) 55%, #f4f2ff 100%); }

/* Readable minimum sizes and contrast for secondary text. */
:root .eyebrow,
:root .section-heading .eyebrow { font-size: 13px; color: var(--text-3); }
:root .section-heading > p:not(.eyebrow),
:root .download-heading > p:not(.eyebrow),
:root .scene-copy > p { color: var(--text-2); }
:root .real-hero-eyebrow { font-size: 12px; }
:root .real-hero-platforms { font-size: 12px; color: var(--text-3); }
:root .real-device-version { font-size: 12px; }
:root .feature-footnote,
:root .scene-caption { font-size: 12px; color: var(--text-3); }
:root .runtime-pill { font-size: 12px; color: var(--text-2); }
:root .runtime-core span { font-size: 12px; }
:root .expand-tags span { color: var(--text-2); }

:root .inventory-panel--list .inventory-totals dt { font-size: 13px; color: var(--text-3); }
:root .inventory-panel--list .inventory-totals dd span,
:root .inventory-panel--list .inventory-count span { font-size: 12px; color: var(--text-3); }
:root .inventory-panel--list .inventory-status { font-size: 12px; }
:root .inventory-panel--list .inventory-updated { font-size: 12px; color: var(--text-3); }
:root .inventory-panel--list .inventory-refresh { font-size: 12px; }
:root .inventory-panel--list .inventory-filters button { font-size: 13px; }
:root .inventory-panel--list .inventory-filter-count { font-size: 12px; color: var(--text-3); }
:root .inventory-panel--list .inventory-available-only { font-size: 12px; color: var(--text-3); }
:root .inventory-panel--list .inventory-system { font-size: 13px; color: var(--text-3); }
:root .inventory-panel--list .inventory-card-link { font-size: 12px; }
:root .inventory-panel--list .inventory-note,
:root .inventory-panel--list .inventory-help { font-size: 12px; }
:root .inventory-panel--list .inventory-note { color: var(--text-3); }

:root .pricing-section .plan-tabs button { color: var(--text-2); }
:root .pricing-section .plan-tag { font-size: 12px; color: var(--text-3); }
:root .pricing-section .price span { font-size: 13px; color: var(--text-3); }
:root .pricing-section .pricing-note,
:root .pricing-section .price-swipe-hint { font-size: 12px; color: var(--text-3); }

:root .platform-purpose,
:root .release-size,
:root .download-bottom { font-size: 12px; }
:root .release-size { color: var(--text-3); }

:root .footer-brand p,
:root .footer-signature { font-size: 12px; color: var(--text-3); }
:root .footer-nav a,
:root .copy-contact { color: var(--text-2); }
:root .footer-bottom,
:root .footer-bottom a,
:root .footer-back { font-size: 12px; color: var(--text-3); }

/* Device management demo: real screenshots and legible labels. */
:root .demo-device-head { height: 24px; gap: 5px; font-size: 10px; color: var(--text-2); }
:root .demo-device-head .status-dot { width: 5px; height: 5px; }
:root .demo-device-head .icon { width: 11px; height: 11px; }
:root .demo-device-screen { height: auto; aspect-ratio: 9 / 16; background: #10131c; }
:root .demo-device-screen::before { display: none; }
:root .demo-device-screen img { display: block; width: 100%; height: 100%; object-fit: cover; }
:root .demo-device-foot { font-size: 10px; color: var(--text-2); }
:root .demo-device-foot span { font-size: 10px; color: var(--text-3); }
:root .window-titlebar,
:root .workspace-toolbar,
:root .workspace-user,
:root .sidebar-label,
:root .sidebar-bottom { font-size: 11px; }

:root .workspace-user strong,
:root .demo-groups button,
:root .window-titlebar span { font-size: 11px; }
:root .workspace-user small,
:root .demo-groups button span,
:root .workspace-view { font-size: 10px; color: var(--text-3); }
:root .sidebar-label,
:root .sidebar-bottom { color: var(--text-3); }
:root .workspace-user > span:first-child { color: var(--brand-ink); }
:root .inventory-panel--list .inventory-filter-count { color: var(--text-2); }
:root .inventory-panel--list .inventory-filters button[aria-pressed="true"] .inventory-filter-count { color: var(--brand-ink); }
:root #demoCount { font-size: 10px; color: var(--text-3); }
:root .real-hero-facts > div { font-size: 12px; }
:root .inventory-panel--list .inventory-soldout-toggle { color: var(--text-2); }
:root .runtime-core span { color: var(--text-3); }
:root .native-chip small,
:root .native-chip span { color: var(--text-3); }

/* Phones. */
@media (max-width: 760px) {
  :root .real-hero-platforms { font-size: 12px; }
  :root .real-hero-links a { font-size: 13px; }
  :root .real-hero-eyebrow { font-size: 12px; }
  /* Android 16 in front, the other two smaller on either side. */
  :root .real-hero-phones { grid-template-columns: .8fr 1.2fr .8fr; gap: 8px; align-items: start; }
  :root .real-hero .real-device-16 { order: 2; margin-top: 0; }
  :root .real-hero .real-device-14 { order: 1; margin-top: 30px; }
  :root .real-hero .real-device-12 { order: 3; margin-top: 30px; }
  :root .real-device-kind { font-size: 11px; }
  /* Version filters: one swipeable row. */
  :root .inventory-panel--list .inventory-filters { display: flex; flex-wrap: nowrap; overflow-x: auto; gap: 6px; scrollbar-width: none; }
  :root .inventory-panel--list .inventory-filters::-webkit-scrollbar { display: none; }
  :root .inventory-panel--list .inventory-filters button { flex: 0 0 auto; font-size: 13px; padding: 7px 12px; }
  :root .inventory-panel--list .inventory-available-only { font-size: 12px; }
  :root .inventory-panel--list .inventory-totals dt { font-size: 12px; }
  :root .inventory-panel--list .inventory-refresh { font-size: 12px; }
  :root .expand-tags span { font-size: 12px; }
  :root .product-benefits strong { font-size: 14px; }
  :root .workspace-toolbar h3 { font-size: 12px; }
  :root .product-benefits p { font-size: 12px; color: var(--text-3); }
}
@media (max-width: 640px) {
  :root .header-download { font-size: 13px; transition: opacity .2s, visibility .2s; }
  /* The bottom action bar already offers both actions. */
  :root.has-action-bar .header-download { opacity: 0; visibility: hidden; }
}

@media (prefers-reduced-motion: reduce) {
  :root .header-download { transition: none; }
}
@media (forced-colors: active) {
  :root .hero.real-hero h1 > span + span,
  :root .title-part.muted { background: none; color: CanvasText; -webkit-text-fill-color: CanvasText; }
  :root .button.button-primary,
  :root .pricing-section .recommended { background: ButtonFace; color: ButtonText; border: 1px solid ButtonText; }
}
