@font-face {
  font-family: "Inter";
  src: url("assets/fonts/inter-variable.woff2") format("woff2-variations");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --iv-brand: #bd4d79;
  --iv-brand-strong: #a63868;
  --iv-brand-hover: #922b59;
  --iv-ink: #29202b;
  --iv-muted: #675b63;
  --iv-surface: #ffffff;
  --iv-surface-soft: #f7f3f5;
  --iv-surface-brand: #f8e7ee;
  --iv-line: #eadde3;
  --iv-line-strong: #d6c1cb;
  --iv-focus: #95315e;
  --iv-control-primary: linear-gradient(135deg, var(--iv-brand) 0%, var(--iv-brand-strong) 100%);
  --iv-control-radius: 22px;
  --iv-control-height: 54px;
  --iv-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --brand: var(--iv-brand);
  --brand-strong: var(--iv-brand-strong);
  --ink: var(--iv-ink);
  --muted: var(--iv-muted);
  --surface-soft: var(--iv-surface-soft);
  --surface-brand: var(--iv-surface-brand);
  --line: var(--iv-line);
  --focus: var(--iv-focus);
  --control-primary: var(--iv-control-primary);
  --control-radius: var(--iv-control-radius);
  font-family: var(--iv-font);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--iv-surface);
  font-family: var(--iv-font);
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  color: var(--iv-ink);
  background: var(--iv-surface);
  font-family: var(--iv-font);
  letter-spacing: 0;
}

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

button {
  border: 0;
}

a {
  color: inherit;
}

::selection {
  color: var(--iv-ink);
  background: var(--iv-surface-brand);
}

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

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

.iv-header {
  position: sticky;
  top: 0;
  z-index: 10;
  width: min(100%, calc(var(--iv-header-width, 880px) + 40px));
  min-height: calc(64px + env(safe-area-inset-top, 0px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin: 0 auto;
  padding:
    max(10px, env(safe-area-inset-top, 0px))
    max(20px, env(safe-area-inset-right, 0px))
    10px
    max(20px, env(safe-area-inset-left, 0px));
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px);
}

.iv-brand,
.iv-header__action {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--iv-brand-strong);
  background: transparent;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

.iv-brand {
  font-size: 20px;
  font-weight: 750;
}

.iv-header__action {
  padding: 0;
  cursor: pointer;
}

.iv-header__action:disabled {
  color: #a99da3;
  cursor: wait;
}

.iv-kicker {
  margin: 0;
  color: var(--iv-brand-strong);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0;
  line-height: 1.2;
  text-transform: uppercase;
}

.iv-kicker--brand {
  font-size: 14px;
  text-transform: none;
}

.iv-button {
  min-width: 0;
  min-height: var(--iv-control-height);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: var(--iv-control-radius);
  padding: 14px 20px;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background-color 160ms ease,
    color 160ms ease,
    filter 160ms ease;
}

.iv-button--primary {
  color: #ffffff;
  background: var(--iv-control-primary);
}

.iv-button--soft {
  color: var(--iv-brand-strong);
  background: var(--iv-surface-soft);
}

.iv-button:active {
  transform: scale(0.985);
}

.iv-button:disabled,
.iv-button[aria-disabled="true"] {
  color: #9b8e94;
  background: #f4f1f2;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

.iv-state-body {
  min-height: 100vh;
  min-height: 100dvh;
}

.iv-state-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding:
    max(32px, env(safe-area-inset-top, 0px))
    max(20px, env(safe-area-inset-right, 0px))
    max(48px, env(safe-area-inset-bottom, 0px))
    max(20px, env(safe-area-inset-left, 0px));
}

.iv-state-page__content {
  width: min(100%, 440px);
  display: grid;
  gap: 20px;
}

.iv-state-page h1,
.iv-state-page p {
  margin: 0;
}

.iv-state-page h1 {
  max-width: 420px;
  font-size: 40px;
  font-weight: 760;
  letter-spacing: 0;
  line-height: 1.02;
}

.iv-state-page__lead {
  max-width: 420px;
  color: var(--iv-muted);
  font-size: 18px;
  line-height: 1.45;
}

@media (hover: hover) {
  .iv-button--primary:hover {
    filter: brightness(0.94);
  }

  .iv-button--soft:hover {
    background: var(--iv-surface-brand);
  }

  .iv-header__action:hover {
    color: var(--iv-brand-hover);
  }
}

@media (min-width: 640px) {
  .iv-state-page h1 {
    font-size: 56px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .iv-button {
    transition: none;
  }
}
