/* Base reset and type scale (Design Studio spec section 4, T592). */

:root {
  --font-sans: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  /* Legacy marketing theme still uses serif accent on hero em; dropped in T593. */
  --font-display: var(--font-sans);
  --font-serif: Georgia, "Times New Roman", serif;

  --font-weight-regular: 400;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;

  --type-kicker-size: 0.875rem;
  --type-kicker-line: 1.35;
  --type-kicker-weight: var(--font-weight-semibold);
  --type-kicker-tracking: 0.06em;

  --type-h1-size: clamp(2.75rem, 6vw, 3.5rem);
  --type-h1-line: 1.08;
  --type-h1-weight: var(--font-weight-bold);

  --type-h2-size: clamp(2rem, 4.5vw, 2.5rem);
  --type-h2-line: 1.12;
  --type-h2-weight: var(--font-weight-bold);

  --type-h3-size: clamp(1.35rem, 3vw, 1.75rem);
  --type-h3-line: 1.2;
  --type-h3-weight: var(--font-weight-bold);

  --type-lead-size: 1.125rem;
  --type-lead-line: 1.55;
  --type-lead-weight: var(--font-weight-regular);

  --type-body-size: 1rem;
  --type-body-line: 1.55;
  --type-body-weight: var(--font-weight-regular);

  --type-nav-size: 0.9375rem;
  --type-nav-line: 1.4;
  --type-nav-weight: var(--font-weight-regular);

  --type-button-size: 0.9375rem;
  --type-button-line: 1.2;
  --type-button-weight: var(--font-weight-semibold);

  --type-wordmark-size: 1.5rem;
  --type-wordmark-line: 1.2;
  --type-wordmark-weight: var(--font-weight-bold);

  --type-small-size: 0.875rem;
  --type-small-line: 1.45;

  --type-label-size: 0.75rem;
  --type-label-line: 1.35;
  --type-label-weight: var(--font-weight-semibold);
  --type-label-tracking: 0.08em;
}

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

html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: var(--type-body-size);
  font-weight: var(--type-body-weight);
  line-height: var(--type-body-line);
  color: var(--text-secondary);
  background: var(--bg-void);
  overflow-x: hidden;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: none;
  background: none;
  color: inherit;
}

h1,
h2,
h3 {
  font-family: var(--font-sans);
  font-weight: var(--type-h2-weight);
  line-height: var(--type-h2-line);
}

h1 {
  font-size: var(--type-h1-size);
  line-height: var(--type-h1-line);
  font-weight: var(--type-h1-weight);
}

h2 {
  font-size: var(--type-h2-size);
}

h3 {
  font-size: var(--type-h3-size);
  line-height: var(--type-h3-line);
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

/* T594 — container, 12-column grid, section rhythm */
@media (min-width: 768px) {
  :root {
    --container-gutter: var(--space-5);
    --section-pad-y: var(--space-12);
    --hero-pad-top: var(--space-8);
    --privacy-pad-top: 216px;
  }
}

.container {
  position: relative;
  z-index: 1;
  width: min(var(--container-max), 100% - 2 * var(--container-gutter));
  margin-inline: auto;
}

.grid-12 {
  display: grid;
  grid-template-columns: repeat(var(--grid-cols), minmax(0, 1fr));
  column-gap: var(--grid-gap);
  row-gap: var(--grid-gap);
}

@media (min-width: 900px) {
  .grid-cols-1-7 {
    grid-column: 1 / 8;
  }

  .grid-cols-8-12 {
    grid-column: 8 / 13;
  }

  .grid-cols-1-6 {
    grid-column: 1 / 7;
  }

  .grid-cols-8-12-text {
    grid-column: 8 / 13;
    max-width: 480px;
  }

  .grid-row--alt .grid-cols-1-6 {
    grid-column: 8 / 13;
  }

  .grid-row--alt .grid-cols-8-12-text {
    grid-column: 1 / 7;
    justify-self: end;
    text-align: right;
  }
}

.section {
  position: relative;
  overflow: hidden;
  padding-block: var(--section-pad-y);
}

.section::before,
.section::after,
.hero::before,
.hero::after,
.features::before,
.features::after {
  z-index: 0;
}

.section-hero-top {
  padding-top: var(--hero-pad-top);
}

.section.section-privacy-top {
  padding-top: var(--privacy-pad-top);
  padding-bottom: var(--section-pad-y);
}

/* T595 — in-page nav lands below fixed header */
main > section[id],
.final-cta[id] {
  scroll-margin-top: var(--header-h);
}
