/* Prevail Elements design tokens v1.0.2 (2026-10-16)
   Source of truth: the live site, https://prevailelements.com/assets/styles-BYFqH7gp.css
   Names and oklch values are copied verbatim, so anything built on this file matches the site.
   Hex fallbacks come first for clients without oklch (older email webviews, some in-app browsers).
   Fonts: load once in <head>:
   <link rel="preconnect" href="https://fonts.googleapis.com">
   <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
   <link rel="stylesheet" href="https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Montserrat:wght@300;400;500&display=swap">
   Email: do NOT link this file; inline the hex values from tokens.json and use the email font stacks. */

:root {
  /* palette: hex fallbacks (screen conversion of the live oklch) */
  --white: #FFFFFF;
  --mist: #E8F3FC;
  --periwinkle: #B9C8F3;
  --lavender: #C9A5E4;
  --teal: #00B7A2;
  --teal-deep: #009684;
  --royal: #44146A;
  --navy: #22365B;
  --navy-soft: #394D71;
  --navy-foreground: #F7FBFD;
  --muted: #F2F8FC;
  --muted-foreground: #5B6983;
  --border: #D9E4F0;
  --input: #CCD9E8;
  --star: #00B7A2;
  --destructive: #E7000B;

  /* semantic roles (same mapping as the live site) */
  --background: var(--white);
  --foreground: var(--navy);
  --card: var(--white);
  --card-foreground: var(--navy);
  --popover: var(--white);
  --popover-foreground: var(--navy);
  --primary: var(--teal);
  --primary-foreground: var(--white);
  --secondary: var(--mist);
  --secondary-foreground: var(--navy);
  --muted: var(--muted);
  --muted-foreground: var(--muted-foreground);
  --accent: var(--mist);
  --accent-foreground: var(--navy);
  --destructive-foreground: var(--white);
  --border: var(--border);
  --input: var(--input);
  --ring: var(--teal);
  --heading: var(--royal);
  /* brand rule: the site's --primary-foreground is white, which is 2.53:1 on teal and fails for text.
     Label teal buttons with --button-label (navy, 4.75:1) instead. */
  --button-label: var(--navy);

  /* washes the site uses (bg-lavender/30, bg-periwinkle/40, bg-primary/10), flattened over white.
     Use these, or --mist, for any soft tint; never invent one. */
  --lavender-wash: #EFE4F7;
  --periwinkle-wash: #E3E9FA;
  --teal-wash: #E6F8F6;

  /* type */
  --font-display: "Cormorant Garamond", "Times New Roman", serif;
  --font-sans: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --text-xs: 0.75rem; --text-xs--line-height: 1.333;
  --text-sm: 0.875rem; --text-sm--line-height: 1.429;
  --text-base: 1rem; --text-base--line-height: 1.5;
  --text-lg: 1.125rem; --text-lg--line-height: 1.556;
  --text-xl: 1.25rem; --text-xl--line-height: 1.4;
  --text-2xl: 1.5rem; --text-2xl--line-height: 1.333;
  --text-3xl: 1.875rem; --text-3xl--line-height: 1.2;
  --text-5xl: 3rem; --text-5xl--line-height: 1;
  --text-6xl: 3.75rem; --text-6xl--line-height: 1;
  --text-7xl: 4.5rem; --text-7xl--line-height: 1;
  --leading-body: 1.7;
  --leading-heading: 1.08;
  --tracking-heading: -0.005em;

  /* shape, depth, motion */
  --radius: .625rem;
  --radius-sm: calc(.625rem - 4px);
  --radius-md: calc(.625rem - 2px);
  --radius-lg: .625rem;
  --radius-xl: calc(.625rem + 4px);
  --shadow-soft: 0 1px 2px rgba(34,54,91,.04), 0 8px 24px -12px rgba(34,54,91,.12);
  --shadow-lift: 0 2px 4px rgba(34,54,91,.04), 0 18px 40px -16px rgba(34,54,91,.18);
  --gradient-mist: linear-gradient(135deg, #FFFFFF 0%, #E8F3FC 55%, #DEE8FF 100%);
  --gradient-water: linear-gradient(160deg, #E8F3FC 0%, #FFFFFF 45%, rgba(239,230,255,.6) 100%);
  --gradient-aurora: radial-gradient(60% 80% at 20% 20%, rgba(233,222,255,.55) 0%, transparent 60%), radial-gradient(50% 70% at 85% 30%, rgba(175,235,238,.55) 0%, transparent 60%), linear-gradient(180deg, #E8F3FC 0%, #FFFFFF 100%);
  --ease-premium: cubic-bezier(.22, 1, .36, 1);
  --ease-default: cubic-bezier(.4, 0, .2, 1);
  --duration-fast: 150ms;
  --duration-base: 500ms;
  --duration-slow: 600ms;
}

@supports (color: oklch(0% 0 0)) {
  :root {
    --white: oklch(100% 0 0);
    --mist: oklch(95.8% .017 243);
    --periwinkle: oklch(83.6% .062 270);
    --lavender: oklch(77.5% .096 310);
    --teal: oklch(69.6% .132 181);
    --teal-deep: oklch(60% .115 181);
    --royal: oklch(32% .14 305);
    --navy: oklch(33.5% .07 262);
    --navy-soft: oklch(42% .065 262);
    --navy-foreground: oklch(98.5% .005 240);
    --muted: oklch(97.5% .008 243);
    --muted-foreground: oklch(52% .045 262);
    --border: oklch(91.5% .02 250);
    --input: oklch(88% .025 250);
    --star: oklch(69.6% .132 181);
    --destructive: oklch(57.7% .245 27.325);
    --shadow-soft: 0 1px 2px oklch(33.5% .07 262/.04), 0 8px 24px -12px oklch(33.5% .07 262/.12);
    --shadow-lift: 0 2px 4px oklch(33.5% .07 262/.04), 0 18px 40px -16px oklch(33.5% .07 262/.18);
    --gradient-mist: linear-gradient(135deg, oklch(100% 0 0) 0%, var(--mist) 55%, oklch(93% .035 268) 100%);
    --gradient-water: linear-gradient(160deg, var(--mist) 0%, oklch(100% 0 0) 45%, oklch(94% .04 300/.6) 100%);
    --gradient-aurora: radial-gradient(60% 80% at 20% 20%, oklch(92% .05 300/.55) 0%, transparent 60%), radial-gradient(50% 70% at 85% 30%, oklch(90% .06 200/.55) 0%, transparent 60%), linear-gradient(180deg, var(--mist) 0%, oklch(100% 0 0) 100%);
  }
}

/* base, as on the live site */
body { background-color: var(--background); color: var(--foreground); font-family: var(--font-sans); font-size: 1rem; font-weight: 400; line-height: var(--leading-body); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { font-family: var(--font-display); color: var(--royal); font-weight: 500; line-height: var(--leading-heading); letter-spacing: var(--tracking-heading); text-wrap: balance; }
.pe-eyebrow { font-family: var(--font-sans); font-size: var(--text-xs); text-transform: uppercase; color: var(--navy); }
.pe-label { font-family: var(--font-sans); font-size: var(--text-sm); font-weight: 500; text-transform: uppercase; color: var(--teal-deep); }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; }

@keyframes pe-fade-up { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes pe-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes pe-ripple { 0%, 100% { opacity: .55; transform: scale(1); } 50% { opacity: .8; transform: scale(1.06); } }
.pe-fade-up { animation: pe-fade-up var(--duration-slow) var(--ease-premium) both; }
.pe-fade-in { animation: pe-fade-in var(--duration-base) var(--ease-premium) both; }
@media (prefers-reduced-motion: reduce) {
  .pe-fade-up, .pe-fade-in { animation: pe-fade-in 150ms linear both; }
  * { scroll-behavior: auto !important; }
}
