/* =============================================================================
   ACRONIS — Palette & Design Tokens (single source of truth for the Acronis brand)
   =============================================================================
   Scope   : font, color palette and semantic tokens.
   Loaded  : by the Acronis templates (head_extra block).
   Pairs   : component styles (.ac-*, .acm365-*) live in
             app/static/css/tailwind-input.css under the ACRONIS sections.

   SOURCE OF THE VALUES BELOW — two official sources, no guesswork:
     1. "Acronis Logo Usage Guidelines" (Acronis, dl.acronis.com/u/pdf/
        acronis_guidelines.pdf), page 6 "COLORS", which is the governing document:
           Navy Blue  Print PANTONE 282C / Web & UI #00204D   <- primary
           Blue       #4875B3      Steel #9297A1      Green #9BC225   <- secondary
        Page 10 specifies the corporate typeface: Open Sans.
     1b. The brand style guide at logo.acronis.com (updated 15 Jun 2026) supersedes that PDF:
        typeface is the Acronis Cyber family (variable, weight 200-800), and the blue shades are
        #3764AF, #173E7E, #387DC0, #83D0F5, #73ACDD, #D4E5F7 (tokens --ac-guide-blue-*).
     2. Live acronis.com measured with Playwright (Oct 2026) for the accents the
        current product UI actually ships, the same method used for redhat.com and
        cloud.google.com:
           navy   rgb(0, 32, 77)    #00204D   (matches the guide exactly)
           green  rgb(35, 225, 114) #23E172   CTA accent
           blue   rgb(0, 101, 227)  #0065E3   button fill
           blue   rgb(64, 139, 234) #408BEA
           link   rgb(38, 104, 197) #2668C5
           body   rgba(36, 49, 67, 0.9)
           font   "Acronis Cyber", sans-serif   radius 8px
        app/static/img/svg-icon/Acronis-logo.svg and Acronis-symbol.svg fill with
        #00204D, confirming the navy.

   WHAT WAS WRONG BEFORE
   The old --ac-* block kept the correct navy (#00204D) and the correct green
   (#9BC225), but invented five blues that appear in no Acronis asset
   (--ac-additional-blue #173E7E, --ac-accent-blue #5BA3E8, --ac-ultra-light
   #A8E0FF, --ac-secondary-blue #73ACDD, --ac-light-blue #D4E5F7) and used them
   for whole page gradients. It also carried --ac-red #D20A10, --ac-orange #FF7300
   and --ac-yellow #F59B00, which are not Acronis brand colors. Worse, the GEO and
   FAQ sections on every Acronis page were configured with 'color': 'blue', which
   resolved to the generic .sx-blue (#1D4ED8) — a Tailwind blue, not Acronis navy.
   All of that is why the Acronis pages read as "no defined palette".

   Icons: the official marks in app/static/img/svg-icon/ (Acronis-logo*.svg, Acronis-symbol*.svg,
          Acronis_Cyber_Protection*.svg) identify the BRAND. Capability, step and benefit glyphs are
          the official duotone icon library from the acronis.com platform pages, one SVG per icon in
          app/static/img/svg-icon/acronis-icons/<id>.svg (linear gradients #70B1FF to #005CCD, as
          shipped by acronis.com). Vendor logos (Microsoft, Google, AWS...) stay Bootstrap glyphs.

   NEVER hard-code a hex value in .ac-* component rules; use a token from here.
   ============================================================================= */

/* ---------------------------------------------------------------------------
   1. FONT — "Acronis Cyber" (the current brand face, brand style guide logo.acronis.com/typo,
      updated 15 Jun 2026) is self-hosted as ONE variable font (weight axis 200-800: Ultra Light
      to Ultra Bold) from app/static/fonts/acronis/Acronis_Cyber_VF/. The 2014-era logo guide specifies Open Sans as the
      corporate face, and Open Sans is also self-hosted (fonts/open-sans/) for the
      logo lock-up and long-form copy, matching the guide's Light/Regular/Bold/
      ExtraBold assignment. Both are declared here so no Acronis page ever falls
      back to a generic system font.
   --------------------------------------------------------------------------- */
@font-face {
  font-family: 'Acronis Cyber';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('../fonts/acronis/Acronis_Cyber_VF/Acronis_Cyber-VF.woff2') format('woff2');
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans/OpenSans-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Open Sans';
  font-style: normal;
  font-weight: 300 800;
  font-display: swap;
  src: url('../fonts/open-sans/OpenSans-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  /* -------------------------------------------------------------------------
     2. ACRONIS NAVY — the primary color (PANTONE 282C / #00204D)
     ------------------------------------------------------------------------- */
  --ac-navy-10: #e6ebf2;
  --ac-navy-20: #c2cddd;
  --ac-navy-30: #8a9ebc;
  --ac-navy-40: #4d6a95;
  --ac-navy-50: #00204d;   /* ACRONIS NAVY — logo, headings, primary surface */
  --ac-navy-60: #001a3d;   /* Hover */
  --ac-navy-70: #00122b;   /* Deep anchor — gradient */
  --ac-navy-80: #000c1d;

  /* -------------------------------------------------------------------------
     3. ACRONIS GREEN — the live CTA accent (measured on acronis.com)
     ------------------------------------------------------------------------- */
  --ac-green-10: #e6fcf0;
  --ac-green-20: #bff7d6;
  --ac-green-30: #7cefab;
  --ac-green-40: #23e172;  /* Cyber green — CTA accent on dark (9.0:1 on #00204D) */
  --ac-green-50: #9bc225;  /* Official secondary Green from the logo guide */
  --ac-green-60: #15803d;  /* Green for TEXT on light (4.6:1 on white) */
  --ac-green-70: #0f5c2c;

  /* -------------------------------------------------------------------------
     4. ACRONIS BLUE FAMILY — the blue the product UI actually ships
     ------------------------------------------------------------------------- */
  --ac-blue-10: #eef5fe;
  --ac-blue-20: #d4e5f7;   /* Tint / icon well */
  --ac-blue-30: #89c9f6;
  --ac-blue-40: #408bea;
  --ac-blue-50: #0065e3;   /* Product blue — buttons, links on dark */
  --ac-blue-60: #2668c5;   /* Link on light (5.9:1 on white) */
  --ac-blue-70: #1b4c96;
  --ac-blue-80: #123566;
  --ac-steel-40: #b0b4bb;
  --ac-steel-50: #9297a1;  /* Official secondary Steel from the logo guide */
  --ac-blue-45: #4875b3;   /* Official secondary Blue from the logo guide */

  /* Shades of blue from the brand style guide (logo.acronis.com/colors) and the gradient
     stops of the official icon library. The guide marks the navy as print-primary and
     says web/UI may extend the palette, so these feed the gradients, not the text. */
  --ac-guide-blue-light: #3764af;
  --ac-guide-blue-additional: #173e7e;
  --ac-guide-blue-accent: #387dc0;
  --ac-guide-blue-ultra-light: #83d0f5;
  --ac-guide-blue-secondary: #73acdd;
  --ac-guide-blue-secondary-light: #d4e5f7;
  --ac-icon-stop-a: #70b1ff;
  --ac-icon-stop-b: #005ccd;

  /* -------------------------------------------------------------------------
     5. NEUTRALS
     ------------------------------------------------------------------------- */
  --ac-gray-05: #f7f9fc;
  --ac-gray-10: #eef2f7;
  --ac-gray-20: #e0e6ee;
  --ac-gray-30: #c9d2de;   /* Hairlines */
  --ac-gray-50: #7d8a9c;
  --ac-gray-60: #5c6b80;   /* Muted text on light (5.5:1 on white) */
  --ac-gray-70: #3d4b61;
  --ac-gray-80: #243143;   /* Body copy (matches the live rgba(36,49,67,.9)) */
  --ac-gray-90: #14202f;
  --ac-white: #ffffff;

  /* Status — never reuse a brand hue for an alert */
  --ac-danger-50: #d20a10;
  --ac-warning-50: #f59b00;

  /* -------------------------------------------------------------------------
     6. SEMANTIC TOKENS — what components actually consume
     ------------------------------------------------------------------------- */
  --ac-brand: var(--ac-navy-50);
  --ac-brand-hover: var(--ac-navy-60);
  --ac-brand-text: var(--ac-navy-50);          /* Navy text on light (15.4:1) */
  --ac-brand-on-dark: var(--ac-blue-30);       /* On navy (7.8:1) */
  --ac-brand-tint: var(--ac-navy-10);
  --ac-brand-tint-text: var(--ac-navy-50);

  --ac-action: var(--ac-blue-60);              /* Interactive blue on light */
  --ac-action-hover: var(--ac-blue-70);
  --ac-action-on-dark: var(--ac-blue-40);
  --ac-accent: var(--ac-green-40);             /* Cyber green — highlights on dark */
  --ac-link: var(--ac-blue-60);
  --ac-link-on-dark: var(--ac-blue-30);

  /* Surfaces */
  --ac-surface-light: var(--ac-white);
  --ac-surface-alt: var(--ac-gray-05);
  --ac-surface-gray: var(--ac-gray-10);
  --ac-surface-dark: var(--ac-navy-50);
  --ac-surface-dark-2: var(--ac-navy-60);

  /* Text */
  --ac-text-heading: var(--ac-navy-50);
  --ac-text-body: var(--ac-gray-80);
  --ac-text-muted: var(--ac-gray-60);
  --ac-text-light: var(--ac-white);
  --ac-text-on-dark: var(--ac-white);
  --ac-text-on-dark-muted: rgba(255, 255, 255, 0.76);

  /* Borders */
  --ac-border: var(--ac-gray-30);
  --ac-border-light: var(--ac-gray-20);
  --ac-border-on-dark: rgba(255, 255, 255, 0.16);

  /* Gradients */
  --ac-gradient-navy: linear-gradient(135deg, var(--ac-navy-50) 0%, var(--ac-navy-70) 100%);
  --ac-gradient-blue: linear-gradient(135deg, var(--ac-navy-50) 0%, var(--ac-blue-50) 100%);
  --ac-gradient-dark: linear-gradient(180deg, var(--ac-navy-50) 0%, var(--ac-navy-70) 100%);
  --ac-gradient-cta:
    radial-gradient(ellipse at 90% 50%, rgba(0, 101, 227, 0.45) 0%, transparent 55%),
    linear-gradient(110deg, var(--ac-navy-70) 0%, var(--ac-navy-50) 55%, var(--ac-guide-blue-additional) 100%);

  /* Typography */
  --ac-font: 'Acronis Cyber', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --ac-font-logo: 'Open Sans', 'Acronis Cyber', -apple-system, sans-serif;

  /* Shape & motion (acronis.com: 8px buttons) */
  --ac-radius-sm: 6px;
  --ac-radius-md: 8px;
  --ac-radius-lg: 16px;
  --ac-radius-pill: 9999px;
  --ac-shadow-card: 0 1px 2px rgba(0, 32, 77, 0.06), 0 2px 6px rgba(0, 32, 77, 0.08);
  --ac-shadow-card-hover: 0 14px 28px -8px rgba(0, 32, 77, 0.22);
  --ac-ease: 0.25s ease;

  /* -------------------------------------------------------------------------
     7. SURFACE TOKENS — translucent layers for the navy sections
        Components never write an rgba() of their own: dark cards, icon wells, the
        photo scrim and the hero glow all resolve here.
     ------------------------------------------------------------------------- */
  --ac-card-on-dark: rgba(255, 255, 255, 0.06);
  --ac-tile-on-dark: rgba(255, 255, 255, 0.1);
  --ac-scrim: rgba(0, 18, 43, 0.55);
  --ac-scrim-strong: rgba(0, 12, 29, 0.92);
  --ac-glow-blue: rgba(0, 101, 227, 0.28);
  --ac-green-ring: rgba(35, 225, 114, 0.4);
  --ac-gradient-hero:
    radial-gradient(ellipse at 82% 8%, rgba(0, 101, 227, 0.42) 0%, transparent 52%),
    radial-gradient(ellipse at 6% 105%, rgba(35, 225, 114, 0.14) 0%, transparent 46%),
    linear-gradient(135deg, var(--ac-navy-70) 0%, var(--ac-navy-50) 52%, var(--ac-guide-blue-additional) 100%);
  --ac-texture-alt:
    radial-gradient(ellipse at 100% 0%, rgba(131, 208, 245, 0.2) 0%, transparent 46%),
    radial-gradient(ellipse at 0% 100%, rgba(212, 229, 247, 0.55) 0%, transparent 42%);
  --ac-texture-dark:
    radial-gradient(ellipse at 88% 0%, rgba(0, 101, 227, 0.3), transparent 52%),
    radial-gradient(ellipse at 4% 100%, rgba(35, 225, 114, 0.08), transparent 44%),
    linear-gradient(180deg, var(--ac-navy-50) 0%, var(--ac-navy-70) 100%);
}
