/*
 * Copyright 2020 Adobe. All rights reserved.
 * This file is licensed to you under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License. You may obtain a copy
 * of the License at http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software distributed under
 * the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR REPRESENTATIONS
 * OF ANY KIND, either express or implied. See the License for the specific language
 * governing permissions and limitations under the License.
 */

:root {
  /* Primitive Colors - Used to construct the usage tokens */

  /* Vida / Orange - primary brand color */
  --color-vida-50: #FBF6F4;
  --color-vida-100: #F7DACF;
  --color-vida-200: #F7B9A1;
  --color-vida-300: #F78D64;
  --color-vida-500: #FF5310;
  --color-vida-600: #CC420D;
  --color-vida-700: #99320A;
  --color-vida-800: #662106;
  --color-vida-900: #331103;

  /* Dirt.E / Purple sub-brand color */
  --color-dirte-50: #F1EEFC;
  --color-dirte-100: #DCD2F9;
  --color-dirte-200: #BFADF5;
  --color-dirte-300: #9275F0;
  --color-dirte-500: #522AE9;
  --color-dirte-600: #3410C6;
  --color-dirte-700: #3B0D93;
  --color-dirte-800: #1A0A66;
  --color-dirte-900: #12093E;

  /* Neutral */
  --color-neutral-0: #FFF;
  --color-neutral-50: #F4F4F4;
  --color-neutral-100: #EAEAEA;
  --color-neutral-200: #D4D4D4;
  --color-neutral-300: #BDBDBD;
  --color-neutral-400: #9B9A9A;
  --color-neutral-500: #767575;
  --color-neutral-600: #5C5A5A;
  --color-neutral-700: #3F3D3D;
  --color-neutral-800: #2E2C2C;
  --color-neutral-900: #1D1B1B;

  /* As per the old design footer */
  --color-neutral-1000: #dfdfdf;

  /* Warm */
  --color-warm-50: #F9F5EE;
  --color-warm-100: #F6EDDA;
  --color-warm-200: #F5DBA3;
  --color-warm-300: #F9D686;
  --color-warm-500: #FFBC10;
  --color-warm-600: #D09809;
  --color-warm-700: #99710A;
  --color-warm-800: #664B06;
  --color-warm-900: #332603;

  /* Green */
  --color-green-50: #CCF9DE;
  --color-green-100: #99F3BD;
  --color-green-200: #66EC9C;
  --color-green-300: #33E67B;
  --color-green-500: #00E05A;
  --color-green-600: #00B348;
  --color-green-700: #008636;
  --color-green-800: #005A24;
  --color-green-900: #002D12;

  /* Red */
  --color-red-50: #FCC;
  --color-red-100: #F99;
  --color-red-200: #F66;
  --color-red-300: #F33;
  --color-red-500: #F00;
  --color-red-600: #C00;
  --color-red-700: #900;
  --color-red-800: #600;
  --color-red-900: #300;

  /* Blue */
  --color-blue-50: #DDE4F6;
  --color-blue-100: #BAC9EE;
  --color-blue-200: #98ADE5;
  --color-blue-300: #7592DD;
  --color-blue-500: #5377D4;
  --color-blue-600: #425FAA;
  --color-blue-700: #32477F;
  --color-blue-800: #213055;
  --color-blue-900: #11182A;

  /* Colors - Usage Tokens - To be used in components */

  /* Surface */
  --surface-primary: var(--color-neutral-0);
  --surface-secondary: var(--color-warm-50);
  --surface-inverse: var(--color-neutral-900);
  --surface-elevated: var(--color-neutral-0);
  --dirte-surface: var(--color-dirte-700);
  --dirte-surface-muted: var(--color-dirte-50);
  --dirte-accent: var(--color-dirte-500);
  --dirte-text-on-surface: var(--color-neutral-0);

  /* Content - Text/icon foreground */
  --content-primary: var(--color-neutral-900);
  --content-secondary: var(--color-neutral-500);
  --content-tertiary: var(--color-neutral-400);
  --content-inverse: var(--color-neutral-0);
  --content-secondary-inverse: var(--color-neutral-1000);
  --content-brand: var(--color-vida-500);
  --content-on-brand: var(--color-neutral-0);
  --content-disabled: var(--color-neutral-200);


  /* Brand expression */
  --brand-default: var(--color-vida-500);
  --brand-hover: var(--color-vida-600);
  --brand-muted: var(--color-vida-100);

  /* Border */
  --border-default: var(--color-neutral-100);
  --border-strong: var(--color-neutral-200);
  --border-brand: var(--color-vida-500);

  /* Focus */
  --focus-ring: var(--color-vida-500);

  /* Status Positive */
  --status-positive-bg: var(--color-green-50);
  --status-positive-content: var(--color-green-800);
  --status-positive-border: var(--color-green-200);
  --status-positive-intense: var(--color-green-700);

  /* Status Error */
  --status-error-bg: var(--color-red-50);
  --status-error-content: var(--color-red-700);
  --status-error-border: var(--color-red-200);

  /* Status Info */
  --status-info-bg: var(--color-blue-50);
  --status-info-content: var(--color-blue-700);
  --status-info-border: var(--color-blue-200);

  /* Status Warning */
  --status-warning-bg: var(--color-warm-200);
  --status-warning-content: var(--color-warm-800);
  --status-warning-border: var(--color-warm-300);

  /* overlay scrim */
  --overlay-scrim: rgb(0 0 0 / 40%);

  /* action - buttons/controls */
  --action-primary: var(--color-neutral-900);
  --action-primary-hover: var(--color-neutral-700);
  --action-primary-disabled: var(--color-neutral-200);
  --action-secondary-hover: var(--color-neutral-50);
  --action-link: var(--brand-default);
  --action-link-hover: var(--brand-hover);
  --action-link-disabled: var(--color-neutral-400);

  /* Link */
  --link-default: var(--brand-default);
  --link-hover: var(--brand-hover);
  --link-disabled: var(--color-neutral-400);

  /* Selection */
  --selection-bg: var(--color-vida-100);
  --selection-border: var(--color-vida-500);
  --selection-content: var(--color-vida-500);


  /* fonts */
  --ff-primary: 'PP Neue Montreal', sans-serif;
  --ff-display-alt: 'Tactic Sans', 'PP Neue Montreal', sans-serif;

  /* font weights */
  --fw-regular: 450;
  --fw-medium: 530;

  /* ===== TYPOGRAPHY - TYPE SCALE (mobile-first: overriden at >= 768px and >= 1024px) ======= */

  /* --- Display (mobile) --- */

  /* font size */
  --fs-display-xl: 48px;
  --fs-display-lg: 44px;
  --fs-display-md: 36px;

  /* line height */
  --lh-display-xl: 56px;
  --lh-display-lg: 52px;
  --lh-display-md: 44px;

  /* letter spacing */
  --ls-display-xl: -0.75px;
  --ls-display-lg: -0.5px;
  --ls-display-md: -0.25px;

  /* --- Heading (mobile <768px) --- */

  /* font-size */
  --fs-heading-2xl: 40px;
  --fs-heading-xl: 36px;
  --fs-heading-lg: 28px;
  --fs-heading-md: 22px;
  --fs-heading-sm: 18px;
  --fs-heading-xs: 16px;
  --fs-heading-2xs: 14px;
  --fs-heading-3xs: 14px;

  /* line-height */
  --lh-heading-2xl: 48px;
  --lh-heading-xl: 44px;
  --lh-heading-lg: 36px;
  --lh-heading-md: 30px;
  --lh-heading-sm: 26px;
  --lh-heading-xs: 24px;
  --lh-heading-2xs: 20px;
  --lh-heading-3xs: 20px;

  /* letter-spacing */
  --ls-heading-2xl: -0.25px;
  --ls-heading-xl: -0.25px;
  --ls-heading-lg: 0px;
  --ls-heading-md: 0px;
  --ls-heading-sm: 0px;
  --ls-heading-xs: 0px;
  --ls-heading-2xs: 0.1px;
  --ls-heading-3xs: 0.15px;

  /* --- Body (for all breakpoints) --- */

  /* font-size */
  --fs-body-xl: 24px;
  --fs-body-lg: 20px;
  --fs-body-md: 16px;
  --fs-body-sm: 14px;
  --fs-body-xs: 12px;

  /* line-height */
  --lh-body-xl: 32px;
  --lh-body-lg: 28px;
  --lh-body-md: 24px;
  --lh-body-sm: 20px;
  --lh-body-xs: 16px;

  /* letter-spacing */
  --ls-body-xl: 0px;
  --ls-body-lg: 0px;
  --ls-body-md: 0px;
  --ls-body-sm: 0.1px;
  --ls-body-xs: 0.2px;

  /* --- Utility & Labels (For all breakpoints) --- */

  /* font-size */
  --fs-label-xl: 20px;
  --fs-label-lg: 16px;
  --fs-label-md: 14px;
  --fs-label-sm: 12px;
  --fs-caption: 12px;
  --fs-overline: 10px;

  /* line-height */
  --lh-label-xl: 28px;
  --lh-label-lg: 24px;
  --lh-label-md: 18px;
  --lh-label-sm: 16px;
  --lh-caption: 16px;
  --lh-overline: 14px;

  /* letter-spacing */
  --ls-label-xl: 0px;
  --ls-label-lg: 0.5px;
  --ls-label-md: 0.5px;
  --ls-label-sm: 0.5px;
  --ls-caption: 0.2px;
  --ls-overline: 1px;

  /* border radius */
  --radius-button: 9999px;
  --radius-input: 6px;
  --radius-card: 16px;
  --radius-modal: 24px;
  --radius-badge: 2px;
  --radius-avatar: 9999px;
  --radius-chip: 9999px;
  --radius-tooltip: 8px;
  --radius-notification: 9999px;
}

@media (width >=768px) {
  :root {
    /* --- Display (Tablet) --- */

    /* font size */
    --fs-display-xl: 64px;
    --fs-display-lg: 56px;
    --fs-display-md: 48px;

    /* line height */
    --lh-display-xl: 72px;
    --lh-display-lg: 64px;
    --lh-display-md: 56px;

    /* letter spacing */
    --ls-display-xl: -1px;
    --ls-display-lg: -0.75px;
    --ls-display-md: -0.5px;

    /* --- Heading (Tablet) --- */

    /* No override for heading-3xs in tablet */

    /* font-size */
    --fs-heading-2xl: 48px;
    --fs-heading-xl: 40px;
    --fs-heading-lg: 32px;
    --fs-heading-md: 24px;
    --fs-heading-sm: 20px;
    --fs-heading-xs: 16px;
    --fs-heading-2xs: 14px;

    /* line-height */
    --lh-heading-2xl: 56px;
    --lh-heading-xl: 48px;
    --lh-heading-lg: 40px;
    --lh-heading-md: 32px;
    --lh-heading-sm: 28px;
    --lh-heading-xs: 24px;
    --lh-heading-2xs: 20px;

    /* letter-spacing */
    --ls-heading-2xl: -0.25px;
    --ls-heading-xl: -0.25px;
    --ls-heading-lg: -0.25px;
    --ls-heading-md: 0px;
    --ls-heading-sm: 0px;
    --ls-heading-xs: 0px;
    --ls-heading-2xs: 0.1px;
  }
}

@media (width >=1024px) {
  :root {
    /* --- Display (Desktop) --- */

    /* font size */
    --fs-display-xl: 96px;
    --fs-display-lg: 80px;
    --fs-display-md: 64px;

    /* line height */
    --lh-display-xl: 104px;
    --lh-display-lg: 88px;
    --lh-display-md: 72px;

    /* letter spacing */
    --ls-display-xl: -1.5px;
    --ls-display-lg: -1px;
    --ls-display-md: -0.75px;

    /* --- Heading (Desktop) --- */

    /* font-size */
    --fs-heading-2xl: 60px;
    --fs-heading-xl: 48px;
    --fs-heading-lg: 40px;
    --fs-heading-md: 32px;
    --fs-heading-sm: 24px;
    --fs-heading-xs: 20px;
    --fs-heading-2xs: 16px;
    --fs-heading-3xs: 14px;

    /* line-height */
    --lh-heading-2xl: 68px;
    --lh-heading-xl: 56px;
    --lh-heading-lg: 48px;
    --lh-heading-md: 40px;
    --lh-heading-sm: 32px;
    --lh-heading-xs: 28px;
    --lh-heading-2xs: 24px;

    /* letter-spacing */
    --ls-heading-2xl: -0.5px;
    --ls-heading-xl: -0.25px;
    --ls-heading-lg: -0.25px;
    --ls-heading-md: 0px;
    --ls-heading-sm: 0px;
    --ls-heading-xs: 0px;
    --ls-heading-2xs: 0.1px;

  }
}

body {
  display: none;
  margin: 0;
  font-family: var(--ff-primary);
}

body.appear {
  display: block;
}

header .hero-vida-header,
footer .footer {
  visibility: hidden;
}

header .hero-vida-header[data-block-status="loaded"],
footer .footer[data-block-status="loaded"] {
  visibility: visible;
}

header {
  min-height: 72px;
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--color-neutral-0);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--ff-primary);
}

p,
dl,
ol,
ul,
pre,
blockquote {
  font-family: var(--ff-primary);
}

button,
input,
select,
textarea {
  font: inherit;
}