:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --accent: #006ea8;
  --accent-strong: #005f91;
  --accent-soft: #eaf6fc;
  --background: #f7f8fa;
  --border: #e5e5ea;
  --card: #ffffff;
  --primary: #1c1c1e;
  --secondary: #5f6368;
  --subtle: #777b80;
  --shadow: 0 24px 70px rgb(28 28 30 / 8%);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--background);
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0;
  background:
    radial-gradient(circle at 50% -20%, rgb(0 152 219 / 10%), transparent 44%),
    var(--background);
  color: var(--primary);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

.page-shell {
  width: min(100%, 632px);
  margin: 0 auto;
  padding:
    max(28px, env(safe-area-inset-top))
    max(18px, env(safe-area-inset-right))
    max(28px, env(safe-area-inset-bottom))
    max(18px, env(safe-area-inset-left));
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0 8px 22px;
}

.brand-rail {
  width: 4px;
  height: 28px;
  border-radius: 999px;
  background: #008dd3;
}

.brand-name {
  font-size: 23px;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.3px;
}

.invite-card {
  padding: 42px 44px 38px;
  border: 1px solid var(--border);
  border-radius: 26px;
  background: var(--card);
  box-shadow: var(--shadow);
}

.status-mark {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 28px;
  place-items: center;
  border-radius: 18px;
  background: var(--accent-soft);
}

.status-check {
  width: 22px;
  height: 12px;
  transform: translateY(-2px) rotate(-45deg);
  border-bottom: 3px solid var(--accent);
  border-left: 3px solid var(--accent);
  border-radius: 1px;
}

.eyebrow {
  margin: 0 0 13px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 750;
  line-height: 16px;
  letter-spacing: 1.1px;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 8vw, 40px);
  font-weight: 750;
  line-height: 1.14;
  letter-spacing: -0.9px;
}

.lead {
  max-width: 470px;
  margin: 0 0 28px;
  color: var(--secondary);
  font-size: 18px;
  line-height: 1.52;
}

.action-stack {
  display: grid;
  max-width: 360px;
  gap: 11px;
}

.primary-action {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  padding: 14px 25px;
  border-radius: 15px;
  background: var(--accent);
  color: #ffffff;
  font-size: 17px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  transition: background-color 120ms ease, transform 120ms ease;
}

.primary-action:hover {
  background: var(--accent-strong);
}

.primary-action:active {
  transform: scale(0.985);
}

.primary-action:focus-visible {
  outline: 3px solid rgb(0 110 168 / 28%);
  outline-offset: 4px;
}

.secondary-action {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  border: 1px solid #b9ddea;
  border-radius: 15px;
  background: var(--card);
  color: var(--accent);
  font-size: 16px;
  font-weight: 700;
  line-height: 24px;
  text-align: center;
  text-decoration: none;
  transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.secondary-action:hover {
  border-color: #8fcce2;
  background: var(--accent-soft);
}

.secondary-action:active {
  transform: scale(0.985);
}

.secondary-action:focus-visible {
  outline: 3px solid rgb(0 110 168 / 28%);
  outline-offset: 4px;
}

.recovery-note {
  margin-top: 30px;
  padding: 17px 18px;
  border: 1px solid #cbeaf8;
  border-radius: 16px;
  background: #eef8fd;
}

.recovery-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  line-height: 21px;
}

.recovery-copy {
  margin: 0;
  color: #3f4a50;
  font-size: 15px;
  line-height: 22px;
}

.consent-note {
  margin: 26px 0 0;
  padding-top: 24px;
  border-top: 1px solid #ececf0;
  color: var(--subtle);
  font-size: 14px;
  line-height: 21px;
}

footer {
  padding: 22px 12px 0;
  color: var(--subtle);
  font-size: 13px;
  line-height: 19px;
  text-align: center;
}

@media (max-width: 520px) {
  .page-shell {
    padding-top: max(20px, env(safe-area-inset-top));
  }

  .brand {
    margin-bottom: 18px;
  }

  .invite-card {
    padding: 30px 24px 27px;
    border-radius: 24px;
    box-shadow: 0 18px 50px rgb(28 28 30 / 7%);
  }

  .status-mark {
    width: 48px;
    height: 48px;
    margin-bottom: 24px;
    border-radius: 16px;
  }

  .lead {
    margin-bottom: 25px;
    font-size: 17px;
  }

  .primary-action {
    display: flex;
    width: 100%;
  }

  .action-stack,
  .secondary-action {
    width: 100%;
  }

  .recovery-note {
    margin-top: 25px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .primary-action,
  .secondary-action {
    transition: none;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --accent: #75cef4;
    --accent-strong: #8cd7f7;
    --accent-soft: #162b35;
    --background: #111214;
    --border: #343438;
    --card: #1c1c1e;
    --primary: #f7f8fa;
    --secondary: #c7c7cc;
    --subtle: #a1a1a6;
    --shadow: 0 24px 70px rgb(0 0 0 / 24%);
  }

  body {
    background:
      radial-gradient(circle at 50% -20%, rgb(117 206 244 / 10%), transparent 44%),
      var(--background);
  }

  .primary-action {
    background: #006ea8;
    color: #ffffff;
  }

  .primary-action:hover {
    background: #007dbd;
  }

  .secondary-action {
    border-color: #31596a;
  }

  .secondary-action:hover {
    border-color: #44788e;
  }

  .recovery-note {
    border-color: #21485a;
    background: #162b35;
  }

  .recovery-copy {
    color: #c7c7cc;
  }

  .consent-note {
    border-color: #343438;
  }
}
