/*
 * Prohance global styles.
 * Design tokens mirror the Next.js app (src/styles/design-tokens.css).
 */

:root {
  /* brand */
  --color-primary: #0145b1;
  --color-primary-hover: #004494;
  --color-charcoal: #222;
  --color-muted-blue: #5f7fa3;
  --color-light-blue-border: #dce8ff;

  /* accents */
  --color-accent-teal: #008675;
  --color-accent-gradient-blue: #00c7b1;
  --color-accent-teal-light: #d6f5f0;
  --color-accent-teal-border: #b3e8de;
  --color-accent-coral: #e10600;
  --color-accent-gradient-red: #ff6d6a;
  --color-accent-coral-light: #fef0ef;
  --color-accent-coral-border: #fcd5d3;
  --color-accent-blue: #0047bb;
  --color-accent-gradient-light: #418fde;
  --color-accent-blue-light: #e6f0fa;
  --color-accent-blue-border: #b3d4f5;

  /* surfaces */
  --color-surface-blue: #e3f0f9;
  --color-surface-offwhite: #fbfaf7;
  --color-surface-blue-light: #f4f8ff;
  --color-surface-blue-hover: #eaf2ff;
  --color-surface-gray: #f5f5f5;
  --color-surface-beige: #f7f5ef;
  --color-surface-blue-soft: #eef5fc;
  --color-surface-cream: #f9f7f1;

  /* text */
  --color-text-navy: #0a192f;
  --color-text-dark: #1a1a1a;
  --color-text-gray: #595959;
  --color-text-light-gray: #8c8c8c;
  --color-muted: #888b8d;
  --color-border: #bbbcbc;

  /* gradients & shadows */
  --color-gradient-start: #e5f0fe;
  --color-gradient-mid: #eaf3fe;
  --color-gradient-end: #fbf8f2;
  --shadow-card: 0 4px 24px rgb(0 0 0 / 4%);
  --shadow-card-hover: 0 8px 32px rgb(0 0 0 / 8%);

  /* boilerplate aliases */
  --background-color: #fff;
  --light-color: var(--color-surface-gray);
  --dark-color: var(--color-text-gray);
  --text-color: #000;
  --link-color: var(--color-primary);
  --link-hover-color: var(--color-primary-hover);

  /* fonts */
  --body-font-family: neurial-grotesk, neurial-grotesk-fallback, system-ui, sans-serif;
  --heading-font-family: var(--body-font-family);

  /* type scale (Tailwind defaults used by the Next.js app) */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 3.75rem;

  /* page gutters: px-4 / sm:px-8 / lg:px-16 / xl:px-28 */
  --gutter: 16px;
  --content-max: 80rem;

  /* nav: full-width header bar, 64px (72px from md) */
  --nav-height: 64px;
}

@media (width >= 640px) {
  :root { --gutter: 32px; }
}

@media (width >= 768px) {
  :root { --nav-height: 72px; }
}

@media (width >= 1024px) {
  :root { --gutter: 64px; }
}

@media (width >= 1280px) {
  :root { --gutter: 112px; }
}

/* fallback font keeps layout stable until Neurial Grotesk loads */
@font-face {
  font-family: neurial-grotesk-fallback;
  size-adjust: 103%;
  src: local('Arial');
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  display: none;
  margin: 0;
  background-color: var(--background-color);
  color: var(--text-color);
  font-family: var(--body-font-family);
  font-size: var(--text-base);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body.appear {
  display: block;
}

header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  height: var(--nav-height);
}

header .header,
footer .footer {
  visibility: hidden;
}

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

h1,
h2,
h3,
h4,
h5,
h6 {
  margin: 0;
  font-family: var(--heading-font-family);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-4xl); }
h2 { font-size: var(--text-3xl); }
h3 { font-size: var(--text-2xl); }

p,
dl,
ol,
ul,
pre,
blockquote {
  margin: 0;
}

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

img,
video {
  max-width: 100%;
  height: auto;
}

/* links */
a:any-link {
  color: var(--link-color);
  text-decoration: none;
  overflow-wrap: break-word;
}

/* buttons: **link** = primary pill, _link_ = outline pill */
p.button-wrapper {
  margin: 0;
}

a.button:any-link,
button.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  max-width: 100%;
  margin: 0;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 0.875rem 1.75rem;
  font: inherit;
  font-size: var(--text-sm);
  font-weight: 500;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}

a.button.primary,
button.button.primary,
a.button.accent,
button.button.accent {
  background-color: var(--color-primary);
  color: #fff;
}

a.button.primary:hover,
a.button.primary:focus-visible,
button.button.primary:hover,
button.button.primary:focus-visible,
a.button.accent:hover,
a.button.accent:focus-visible {
  background-color: var(--color-primary-hover);
}

a.button.secondary,
button.button.secondary {
  border-color: var(--color-primary);
  background-color: transparent;
  color: var(--color-primary);
}

a.button.secondary:hover,
button.button.secondary:hover {
  background-color: var(--color-surface-blue-hover);
}

.icon {
  display: inline-block;
  height: 24px;
  width: 24px;
}

.icon img {
  height: 100%;
  width: 100%;
}

/* sections are full-bleed; each block owns its own padding and max width */
main > .section {
  margin: 0;
}

main > .section > div {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* default content (text outside blocks) gets standard gutters */
main > .section > .default-content-wrapper {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 2rem var(--gutter);
}

/* shared helper for blocks: centered content with page gutters */
.pro-container {
  width: 100%;
  max-width: calc(var(--content-max) + (2 * var(--gutter)));
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* glass panel used by header and hero */
.glass {
  position: relative;
  border-radius: 24px;
  background: transparent;
  /* stylelint-disable-next-line property-no-vendor-prefix -- Safari 17 and older */
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}

.glass::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(135deg, rgb(255 255 255 / 85%) 0%, rgb(1 69 177 / 5%) 25%, rgb(1 69 177 / 10%) 55%, rgb(1 69 177 / 20%) 100%);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask-composite: exclude;
  pointer-events: none;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}
