@font-face {
  font-family: "Montserrat";
  src: url("/fonts/montserrat-latin.woff2") format("woff2");
  font-weight: 700 800;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "DM Sans";
  src: url("/fonts/dm-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cobalt: #2155cd;
  --sunshine: #ffe453;
  --midnight: #0b2a5b;
  --mist: #eef5fc;
  --line: #d5e2ee;
  --page: #f6f9fd;
  --ink-muted: #45566e;
  --sky: #5aa9e6;
  --white: #ffffff;
  --danger: #e7000b;

  --font-display: "Montserrat", ui-sans-serif, system-ui, sans-serif;
  --font-text: "DM Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius-card: 12px;
  --radius-hero: 16px;
  --radius-field: 6px;
  --gutter: 20px;
  --section-space: 64px;
  --focus: var(--cobalt);
  color-scheme: light;
}

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

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

body {
  margin: 0;
  background: var(--white);
  color: var(--midnight);
  font-family: var(--font-text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1,
h2,
h3,
p,
ul,
ol,
fieldset {
  margin: 0;
}

ul,
ol {
  padding: 0;
  list-style: none;
}

a {
  color: inherit;
}

[hidden] {
  display: none !important;
}

:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 10;
  padding: 10px 16px;
  border-radius: 999px;
  background: var(--midnight);
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
}

.skip-link:focus {
  top: 16px;
}

.container {
  width: 100%;
  max-width: calc(1120px + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* Type */

.eyebrow {
  margin-bottom: 12px;
  color: var(--cobalt);
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 700;
  line-height: 16px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.eyebrow--light {
  color: var(--white);
}

.section-title {
  max-width: 700px;
  font-family: var(--font-display);
  font-size: clamp(36px, 3.4vw + 18px, 56px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.01em;
}

.section-lead {
  max-width: 720px;
  margin-top: 16px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 28px;
}

.card-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
}

.card-text {
  margin-top: 10px;
  color: var(--ink-muted);
  font-size: 16px;
  line-height: 24px;
}

.icon {
  display: block;
  width: 40px;
  height: 40px;
  margin-bottom: 16px;
}

/* Buttons */

.btn {
  --o: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  box-shadow: var(--o) var(--o) 0 var(--midnight);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn--sm {
  --o: 3px;
  min-height: 44px;
  padding: 0 22px;
  font-size: 15px;
}

.btn--lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 17px;
}

.btn--primary {
  background: var(--cobalt);
  color: var(--white);
}

.btn--white {
  background: var(--white);
  color: var(--cobalt);
}

.btn--sunshine {
  background: var(--sunshine);
  color: var(--midnight);
}

/* Same states for every variant: lift on hover, press on click. */
@media (hover: hover) {
  .btn:not(:disabled):hover {
    transform: translate(-1px, -1px);
    box-shadow: calc(var(--o) + 1px) calc(var(--o) + 1px) 0 var(--midnight);
  }
}

.btn:not(:disabled):active {
  transform: translate(2px, 2px);
  box-shadow: calc(var(--o) - 2px) calc(var(--o) - 2px) 0 var(--midnight);
}

.btn:disabled {
  cursor: progress;
  opacity: 0.75;
}

/* Header */

.site-header {
  background: var(--white);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 72px;
}

.brand {
  display: inline-flex;
  color: var(--midnight);
  border-radius: 6px;
}

.wordmark {
  display: block;
  width: 136px;
  height: 22px;
}

/* Hero */

.hero {
  --focus: var(--sunshine);
  background: var(--cobalt);
  color: var(--white);
  overflow: hidden;
}

.hero__inner {
  display: grid;
  gap: 48px;
  padding-top: 56px;
  padding-bottom: 64px;
}

.hero__title {
  margin-top: 4px;
  color: var(--sunshine);
  font-family: var(--font-display);
  font-size: clamp(52px, 6vw + 28px, 88px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.02em;
}

.hero__lead {
  max-width: 480px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 28px;
}

.hero__copy .btn {
  margin-top: 28px;
}

.hero__visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 28px 0;
}

/* Dot grid behind the phone. */
.hero__visual::before {
  content: "";
  position: absolute;
  inset: 0 max(0px, calc(50% - 190px));
  background-image: radial-gradient(circle, rgba(90, 169, 230, 0.75) 3px, transparent 3.5px);
  background-size: 30px 30px;
  background-position: center;
}

.phone {
  position: relative;
  width: min(100%, 300px);
  padding: 12px;
  border-radius: 40px;
  background: var(--midnight);
  box-shadow: 10px 10px 0 var(--midnight);
}

.phone__screen {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 28px 18px 24px;
  border-radius: 30px;
  background: var(--white);
  color: var(--midnight);
  text-align: center;
}

.avatar {
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--sky);
  color: var(--midnight);
  font-family: var(--font-display);
  font-weight: 800;
}

.avatar--hero {
  width: 88px;
  height: 88px;
  margin: 0 auto 6px;
  border: 3px solid var(--white);
  box-shadow: 0 0 0 3px var(--cobalt);
  font-size: 30px;
  letter-spacing: 0.02em;
}

.phone__name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.phone__role {
  margin-top: -4px;
  margin-bottom: 8px;
  color: var(--ink-muted);
  font-size: 14px;
}

.phone__save,
.phone__row {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  font-size: 14px;
}

.phone__save {
  justify-content: center;
  background: var(--cobalt);
  color: var(--white);
  font-weight: 600;
}

.phone__row {
  justify-content: space-between;
  background: var(--mist);
}

.phone__row strong {
  font-weight: 600;
}

.phone__row span {
  color: var(--ink-muted);
}

/* Sections */

.section {
  padding: var(--section-space) 0;
}

.stats {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.stat {
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--midnight);
  color: var(--white);
}

.stat__figure {
  color: var(--sunshine);
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1;
}

.stat__number {
  font-size: 52px;
  letter-spacing: -0.02em;
}

.stat__unit {
  font-size: 24px;
}

.stat__text {
  margin-top: 14px;
  font-size: 16px;
  line-height: 24px;
}

.stat__source {
  margin-top: 12px;
  font-size: 13px;
  line-height: 18px;
  opacity: 0.9;
}

.how {
  background: var(--mist);
}

.how__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 1.4vw + 24px, 40px);
  font-weight: 700;
  line-height: 1.15;
}

.steps {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.step {
  padding: 28px;
  border-radius: var(--radius-card);
  background: var(--white);
}

.audiences {
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.audience {
  padding: 32px;
  border-radius: var(--radius-card);
  background: var(--mist);
}

/* Teams */

.teams {
  --focus: var(--sunshine);
  display: grid;
  gap: 40px;
  margin-top: 28px;
  padding: 32px 24px;
  border-radius: var(--radius-hero);
  background: var(--cobalt);
  color: var(--white);
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
}

.badge--sunshine {
  background: var(--sunshine);
  color: var(--midnight);
}

.teams__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(36px, 1.5vw + 30px, 44px);
  font-weight: 800;
  line-height: 1.1;
}

.teams__lead {
  max-width: 560px;
  margin-top: 16px;
  font-size: 18px;
  line-height: 28px;
}

.teams__list {
  display: grid;
  gap: 20px 32px;
  margin-top: 28px;
}

.teams__list li {
  position: relative;
  padding-left: 24px;
  font-size: 16px;
  line-height: 24px;
}

.teams__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 12px;
  height: 12px;
  border-radius: 999px;
  background: var(--sunshine);
}

.teams__list strong {
  font-weight: 700;
}

.team-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
  width: 100%;
  max-width: 440px;
  padding: 20px;
  border-radius: var(--radius-hero);
  background: var(--white);
  color: var(--midnight);
  box-shadow: 8px 8px 0 var(--midnight);
}

.team-panel__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.team-panel__title {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
}

.team-panel__count {
  color: var(--ink-muted);
  font-size: 13px;
}

.member {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 12px;
  border-radius: var(--radius-card);
  background: var(--mist);
}

.member__avatar {
  flex: none;
  width: 40px;
  height: 40px;
  border: 2px solid var(--white);
  border-radius: 999px;
}

.member__avatar--sky {
  background: var(--sky);
}

.member__avatar--cobalt {
  background: var(--cobalt);
}

.member__avatar--midnight {
  background: var(--midnight);
}

.member__info {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  font-size: 13px;
  line-height: 18px;
}

.member__info strong {
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.member__info span {
  color: var(--ink-muted);
}

.pill-tag {
  flex: none;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.pill-tag--white {
  background: var(--white);
  color: var(--cobalt);
}

.pill-tag--sunshine {
  background: var(--sunshine);
  color: var(--midnight);
}

.team-panel__add {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  border-radius: 999px;
  background: var(--cobalt);
  color: var(--white);
  font-size: 14px;
  font-weight: 600;
}

/* Sign-up */

.signup {
  --focus: var(--sunshine);
  background: var(--cobalt);
  color: var(--white);
  scroll-margin-top: 0;
}

.signup:focus {
  outline: none;
}

.signup__inner {
  display: grid;
  gap: 32px;
  align-items: center;
  padding-top: var(--section-space);
  padding-bottom: calc(var(--section-space) + 8px);
}

.signup__title {
  color: var(--sunshine);
  font-family: var(--font-display);
  font-size: clamp(48px, 3vw + 36px, 66px);
  font-weight: 800;
  line-height: 0.98;
  letter-spacing: -0.02em;
}

.signup__lead {
  max-width: 440px;
  margin-top: 20px;
  font-size: 18px;
  line-height: 28px;
}

.form-card {
  --focus: var(--cobalt);
  margin-right: 8px;
  padding: 28px 20px;
  border-radius: var(--radius-card);
  background: var(--white);
  color: var(--midnight);
  box-shadow: 8px 8px 0 var(--midnight);
}

.form {
  display: grid;
  gap: 20px;
}

.field {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 0;
  border: 0;
}

.field__label {
  padding: 0;
  font-size: 15px;
  font-weight: 600;
  line-height: 20px;
}

.choices .field__label {
  margin-bottom: 8px;
}

.field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 14px;
  border: 1.5px solid var(--ink-muted);
  border-radius: var(--radius-field);
  background: var(--white);
  color: var(--midnight);
  font: inherit;
  font-size: 16px;
}

.field__input:focus-visible {
  outline-offset: 1px;
  border-color: var(--cobalt);
}

.field__input[aria-invalid="true"] {
  border-color: var(--danger);
}

.field__error {
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
  line-height: 20px;
}

.choices__options {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.choice {
  position: relative;
}

/* The real radio stays focusable for keyboards and screen readers; the label is the pill. */
.choice__input {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 1px;
  margin: 0;
  opacity: 0;
  pointer-events: none;
}

.choice__label {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1.5px solid var(--midnight);
  border-radius: 999px;
  background: var(--white);
  color: var(--midnight);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.choice__label:hover {
  background: var(--mist);
}

.choice__input:checked + .choice__label {
  border-color: var(--cobalt);
  background: var(--cobalt);
  color: var(--white);
}

.choice__input:focus-visible + .choice__label {
  outline: 3px solid var(--focus);
  outline-offset: 3px;
}

.consent {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.consent__input {
  flex: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  accent-color: var(--cobalt);
  cursor: pointer;
}

.consent__label {
  color: var(--ink-muted);
  font-size: 15px;
  line-height: 22px;
  cursor: pointer;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form .btn {
  justify-self: start;
}

.form__status:empty {
  display: none;
}

.form__status {
  color: var(--danger);
  font-size: 15px;
  font-weight: 600;
}

.form__status--info {
  color: var(--ink-muted);
}

.form__note {
  color: var(--ink-muted);
  font-size: 14px;
  line-height: 20px;
}

.form__note a {
  color: var(--cobalt);
}

.success {
  padding: 8px 0;
}

.success:focus {
  outline: none;
}

.success__title {
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  line-height: 1.1;
}

.success__text {
  margin-top: 12px;
  color: var(--ink-muted);
  font-size: 18px;
  line-height: 28px;
}

/* Footer */

.site-footer {
  --focus: var(--sunshine);
  background: var(--midnight);
  color: var(--white);
}

.site-footer__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px 32px;
  padding-top: 32px;
  padding-bottom: 32px;
}

.brand--footer {
  color: var(--sunshine);
}

.site-footer__nav {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 24px;
  font-size: 15px;
}

.site-footer__nav a {
  color: var(--sky);
  text-underline-offset: 3px;
}

.site-footer__nav a:hover {
  color: var(--white);
}

/* Policy pages */

.policy-head {
  --focus: var(--sunshine);
  background: var(--cobalt);
  color: var(--white);
}

.policy-head .container {
  padding-top: 48px;
  padding-bottom: 56px;
}

.policy-head__title {
  margin: 0;
  color: var(--sunshine);
  font-family: var(--font-display);
  font-size: clamp(40px, 4vw + 20px, 64px);
  font-weight: 800;
  line-height: 1.04;
  letter-spacing: -0.02em;
}

.policy {
  padding: 48px 0 var(--section-space);
}

.policy__body {
  max-width: 720px;
  font-size: 17px;
  line-height: 28px;
}

.policy__body h2 {
  margin: 40px 0 12px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.policy__body h3 {
  margin: 28px 0 8px;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.3;
}

.policy__body > :first-child {
  margin-top: 0;
}

.policy__body p {
  margin-top: 12px;
  color: var(--ink-muted);
  overflow-wrap: anywhere;
}

.policy__body h2 + p,
.policy__body h3 + p {
  margin-top: 0;
}

.policy__body ul {
  margin-top: 12px;
  padding-left: 22px;
  list-style: disc;
  color: var(--ink-muted);
}

.policy__body li {
  margin-top: 8px;
  padding-left: 4px;
  overflow-wrap: anywhere;
}

.policy__body li::marker {
  color: var(--cobalt);
}

.policy__body strong {
  color: var(--midnight);
  font-weight: 600;
}

.policy__body a {
  color: var(--cobalt);
  text-underline-offset: 3px;
}

/* Narrow phones */

@media (max-width: 359px) {
  :root {
    --gutter: 16px;
  }

  .wordmark {
    width: 116px;
    height: 19px;
  }

  .btn--sm {
    padding: 0 16px;
    font-size: 14px;
  }
}

/* Tablet and up */

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .teams__list {
    grid-template-columns: repeat(2, 1fr);
  }

  .form-card {
    padding: 36px;
  }
}

@media (min-width: 768px) {
  :root {
    --section-space: 88px;
  }

  .stats {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .stat {
    padding: 32px;
  }

  .audiences {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .teams {
    padding: 40px;
  }

  .wordmark {
    width: 160px;
    height: 26px;
  }

  .site-header__inner {
    min-height: 80px;
  }
}

@media (min-width: 960px) {
  :root {
    --gutter: 40px;
    --section-space: 96px;
  }

  .steps {
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
  }
}

@media (min-width: 1024px) {
  .hero__inner {
    grid-template-columns: minmax(0, 1fr) 380px;
    align-items: center;
    gap: 64px;
    padding-top: 88px;
    padding-bottom: 88px;
  }

  .hero__lead {
    max-width: 470px;
    font-size: 20px;
    line-height: 30px;
  }

  .hero__visual {
    padding: 0;
  }

  .hero__visual::before {
    inset: -10px;
  }

  .signup__inner {
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
    gap: 48px;
  }
}

@media (min-width: 1100px) {
  .teams {
    grid-template-columns: minmax(0, 1fr) 428px;
    align-items: start;
    gap: 48px;
  }

  .teams__list {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 1200px) {
  .teams__list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition: none !important;
    animation: none !important;
  }
}
