/* ================================================================
   BASE — Reset, document defaults, typography
================================================================ */

/* ── Reset ────────────────────────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 100%;
  -webkit-text-size-adjust: 100%;
  tab-size: 4;
}

body {
  font-family: var(--hs-font-body);
  font-size: var(--hs-text-base);
  font-weight: var(--hs-font-normal);
  line-height: var(--hs-leading-body);
  color: var(--hs-color-text-primary);
  background-color: var(--hs-color-bg-page);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* ── Headings ─────────────────────────────────────────────── */
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: var(--hs-font-display);
  font-weight: var(--hs-font-bold);
  line-height: var(--hs-leading-heading);
  color: var(--hs-color-text-primary);
  text-wrap: balance;
}

h1 {
  font-size: var(--hs-text-hero);
  font-weight: var(--hs-font-extrabold);
  line-height: var(--hs-leading-display);
}

h2 {
  font-size: var(--hs-text-section-h);
}

h3 {
  font-size: var(--hs-text-2xl);
  font-weight: var(--hs-font-semibold);
}

h4 {
  font-size: var(--hs-text-xl);
  font-weight: var(--hs-font-semibold);
}

h5 {
  font-size: var(--hs-text-lg);
  font-weight: var(--hs-font-medium);
}

h6 {
  font-size: var(--hs-text-base);
  font-weight: var(--hs-font-medium);
}

/* ── Body text ────────────────────────────────────────────── */
p {
  line-height: var(--hs-leading-body);
  color: var(--hs-color-text-secondary);
  text-wrap: pretty;
}

strong,
b {
  font-weight: var(--hs-font-semibold);
  color: var(--hs-color-text-primary);
}

em {
  font-style: normal;
}

/* ── Links ────────────────────────────────────────────────── */
a {
  color: var(--hs-color-text-link);
  text-decoration: none;
  transition: var(--hs-transition-colors);
}

a:hover {
  color: var(--hs-color-text-link-hover);
}

/* ── Lists ────────────────────────────────────────────────── */
ul,
ol {
  list-style: none;
}

/* ── Media ────────────────────────────────────────────────── */
img,
video,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

/* ── Button reset ─────────────────────────────────────────── */
button {
  cursor: pointer;
  font-family: inherit;
  border: none;
  background: none;
}

/* ── Selection ────────────────────────────────────────────── */
::selection {
  background-color: var(--hs-palette-accent-600);
  color: var(--hs-palette-navy-900);
}

/* ── Focus ────────────────────────────────────────────────── */
:focus-visible {
  outline: var(--hs-border-3) solid var(--hs-color-border-focus);
  outline-offset: 3px;
  border-radius: var(--hs-radius-sm);
}

/* ── Scrollbar ────────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 5px;
}

::-webkit-scrollbar-track {
  background: var(--hs-color-bg-subtle);
}

::-webkit-scrollbar-thumb {
  background: var(--hs-palette-navy-400);
  border-radius: var(--hs-radius-full);
}

/* ── Layout utilities ─────────────────────────────────────── */
.hs-container {
  width: 100%;
  max-width: var(--hs-container-default);
  margin-inline: auto;
  padding-inline: var(--hs-container-pad-x);
}

.hs-section {
  padding-block: var(--hs-section-pad-y);
}

/* ── Icon base ────────────────────────────────────────────── */
.hs-icon {
  width: 1.25em;
  height: 1.25em;
  flex-shrink: 0;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hs-icon--sm {
  width: 1em;
  height: 1em;
}

.hs-icon--lg {
  width: 1.5em;
  height: 1.5em;
}

.hs-icon--xl {
  width: 2em;
  height: 2em;
}

.hs-icon--accent {
  color: var(--hs-color-icon-accent);
}

.hs-icon--success {
  color: var(--hs-color-icon-success);
}

.hs-icon--danger {
  color: var(--hs-color-icon-danger);
}

.hs-icon--inverse {
  color: var(--hs-color-icon-inverse);
}

.hs-icon--brand {
  color: var(--hs-color-icon-brand);
}

/* ── Reduced motion ───────────────────────────────────────── */
@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ── Utilities ────────────────────────────────────────────── */
@media (max-width: 480px) {
  .hs-hide-mobile {
    display: none !important;
  }
}