:root {
  color-scheme: light;
  --ink: #1f1e26;
  --muted: #656270;
  --violet: #817e99;
  --violet-dark: #5f5b74;
  --violet-soft: #f1f0f5;
  --line: #e9e7ed;
  --white: #ffffff;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  font-synthesis: none;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-width: 320px;
  background: var(--white);
}

body {
  min-height: 100vh;
  margin: 0;
  display: flex;
  flex-direction: column;
  color: var(--ink);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration-thickness: 1px;
  text-underline-offset: 0.25em;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.site-header {
  border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%);
}

.header-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.brand {
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.brand img {
  display: block;
  width: 220px;
  height: auto;
}

.primary-navigation,
.language-selector {
  display: flex;
  align-items: center;
}

.primary-navigation {
  gap: 38px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 540;
}

.home-link {
  text-decoration: none;
}

.home-link:hover,
.home-link:focus-visible,
.site-footer a:hover,
.site-footer a:focus-visible {
  color: var(--violet-dark);
}

.home-link[aria-current="page"] {
  color: var(--ink);
}

.language-selector {
  gap: 9px;
  color: #aaa7b3;
}

.language-selector button {
  padding: 7px 3px;
  border: 0;
  color: var(--muted);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.language-selector button[aria-pressed="true"] {
  color: var(--violet-dark);
  font-weight: 720;
}

.language-selector button:focus-visible,
.brand:focus-visible,
.home-link:focus-visible,
.site-footer a:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 4px;
  border-radius: 2px;
}

main {
  flex: 1;
}

.hero {
  padding-block: 96px 104px;
}

.hero-copy {
  max-width: 790px;
}

.eyebrow {
  margin: 0 0 22px;
  color: var(--violet-dark);
  font-size: 0.78rem;
  font-weight: 720;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  max-width: 780px;
  margin: 0;
  font-size: clamp(2.35rem, 5vw, 3.65rem);
  font-weight: 590;
  letter-spacing: -0.04em;
  line-height: 1.07;
}

.intro {
  max-width: 680px;
  margin: 34px 0 0;
  color: #3d3b45;
  font-size: clamp(1.08rem, 2vw, 1.28rem);
  line-height: 1.7;
}

.secondary {
  max-width: 620px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 0.98rem;
  line-height: 1.65;
}

.beta-notice {
  max-width: 650px;
  margin-top: 34px;
  padding: 20px 22px;
  border-left: 2px solid var(--violet);
  background: #faf9fc;
}

.beta-title {
  margin: 0;
  color: var(--violet-dark);
  font-size: 0.88rem;
  font-weight: 700;
}

.beta-copy {
  margin: 9px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.62;
}

.prompt-examples {
  max-width: 700px;
  margin-top: 38px;
}

.prompt-examples h2 {
  margin: 0;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 680;
}

.prompt-examples ul {
  margin: 16px 0 0;
  padding-left: 1.2rem;
  color: var(--muted);
  line-height: 1.65;
}

.prompt-examples li + li {
  margin-top: 8px;
}

.button {
  position: relative;
  min-height: 44px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 3px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.25;
  text-decoration: none;
  cursor: pointer;
}

.button.is-loading .button-label {
  visibility: hidden;
}

.button-spinner {
  position: absolute;
  width: 17px;
  height: 17px;
  border: 2px solid rgb(255 255 255 / 45%);
  border-top-color: var(--white);
  border-radius: 50%;
  animation: button-spinner-rotation 700ms linear infinite;
}

@keyframes button-spinner-rotation {
  to {
    transform: rotate(360deg);
  }
}

.button:disabled {
  cursor: not-allowed;
  opacity: 0.56;
}

.button-primary {
  border-color: var(--violet-dark);
  color: var(--white);
  background: var(--violet-dark);
}

.button-primary:hover,
.button-primary:focus-visible {
  border-color: #4d4960;
  background: #4d4960;
}

.button-secondary {
  border-color: #d8d5df;
  color: var(--ink);
  background: var(--white);
}

.button-link {
  margin-right: auto;
  color: var(--violet-dark);
  background: transparent;
}

.button-copy {
  min-height: 36px;
  padding: 8px 12px;
  border-color: #d8d5df;
  color: var(--violet-dark);
  background: var(--white);
  font-size: 0.78rem;
}

.button:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 3px;
}

.registration-entry {
  margin-top: 34px;
}

.wizard {
  padding-block: 72px 120px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}

.wizard-heading {
  max-width: 720px;
}

.wizard-heading h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-weight: 590;
  letter-spacing: -0.035em;
}

.wizard-heading > p:last-child,
.step-heading > p:last-child {
  max-width: 680px;
  margin: 20px 0 0;
  color: var(--muted);
  line-height: 1.65;
}

.wizard-progress-wrapper {
  margin-top: 48px;
  overflow-x: auto;
  padding-bottom: 6px;
}

.wizard-progress {
  min-width: 780px;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  list-style: none;
}

.wizard-progress li {
  position: relative;
  padding-top: 17px;
  border-top: 1px solid #dcd9e2;
  color: #8a8791;
}

.wizard-progress li::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #c8c5ce;
}

.wizard-progress li[aria-current="step"],
.wizard-progress li.is-complete {
  border-color: var(--violet);
  color: var(--violet-dark);
}

.wizard-progress li[aria-current="step"]::before,
.wizard-progress li.is-complete::before {
  background: var(--violet);
}

.wizard-progress span {
  display: block;
  margin-bottom: 5px;
  font-size: 0.7rem;
}

.wizard-progress strong {
  max-width: 130px;
  display: block;
  font-size: 0.78rem;
  font-weight: 640;
  line-height: 1.35;
}

.wizard-panel {
  max-width: 780px;
  padding-top: 60px;
}

.step-count {
  margin: 0 0 12px;
  color: var(--violet-dark);
  font-size: 0.74rem;
  font-weight: 690;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.step-heading h3 {
  margin: 0;
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 590;
  letter-spacing: -0.025em;
}

.step-heading h3:focus {
  outline: none;
}

.form-grid {
  margin-top: 38px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.form-grid.single-column {
  max-width: 620px;
  grid-template-columns: 1fr;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 9px;
  color: #34323a;
  font-size: 0.87rem;
  font-weight: 630;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 48px;
  padding: 11px 13px;
  border: 1px solid #cfccd5;
  border-radius: 3px;
  color: var(--ink);
  background: var(--white);
  font: inherit;
  font-weight: 450;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--violet);
  outline: 2px solid rgb(129 126 153 / 18%);
  outline-offset: 0;
}

.consent-field {
  max-width: 700px;
  margin-top: 30px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.consent-field input,
.client-option input {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  accent-color: var(--violet-dark);
}

.consent-field input {
  margin-top: 3px;
}

.consent-field-following {
  margin-top: 14px;
}

.wizard-actions {
  margin-top: 38px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.wizard-actions-end {
  justify-content: flex-end;
}

.verification-field {
  max-width: 190px;
  margin-top: 38px;
}

.verification-field input {
  font-size: 1.25rem;
  letter-spacing: 0.25em;
}

.inline-feedback,
.validation-message {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.83rem;
  line-height: 1.55;
}

.validation-message {
  color: #8a3841;
}

.resend-help {
  max-width: 540px;
  margin-top: 24px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  background: #faf9fc;
  color: var(--muted);
  font-size: 0.88rem;
}

.resend-help strong {
  color: var(--ink);
}

.resend-help p {
  margin: 7px 0 0;
}

.resend-help-actions {
  margin-top: 18px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.security-note {
  max-width: 700px;
  margin-top: 32px;
  padding: 20px 22px;
  border-left: 2px solid var(--violet);
  background: #faf9fc;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.security-note strong {
  color: var(--ink);
}

.security-note p {
  margin: 8px 0;
}

.security-note a {
  color: var(--violet-dark);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 88px;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  padding: 7px 9px;
  border: 0;
  transform: translateY(-50%);
  color: var(--violet-dark);
  background: transparent;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 650;
  cursor: pointer;
}

.password-toggle:focus-visible {
  outline: 2px solid var(--violet);
  outline-offset: 1px;
}

.client-options {
  margin-top: 36px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.client-option {
  min-height: 128px;
  padding: 22px;
  border: 1px solid #d9d6df;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  cursor: pointer;
}

.client-option:has(input:checked) {
  border-color: var(--violet);
  background: #faf9fc;
}

.client-option strong,
.client-option small {
  display: block;
}

.client-option strong {
  font-size: 1rem;
}

.client-option small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.5;
}

.setup-guidance {
  max-width: 700px;
  margin-top: 30px;
  padding: 16px 18px;
  background: var(--violet-soft);
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.55;
}

.setup-guidance p {
  margin: 0;
}

.setup-guidance p + p {
  margin-top: 8px;
}

.client-setup {
  max-width: 700px;
  margin-top: 24px;
  padding: 26px;
  border: 1px solid var(--line);
}

.client-setup h4 {
  margin: 0 0 22px;
  font-size: 1.12rem;
}

.client-setup > p {
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.6;
}

.setup-value + .setup-value {
  margin-top: 20px;
}

.setup-value > span {
  margin-bottom: 8px;
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.setup-value code {
  overflow-wrap: anywhere;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
}

.copy-row {
  padding: 10px 10px 10px 13px;
  border: 1px solid #dedbe3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.registration-success {
  max-width: 700px;
  padding-block: 72px 40px;
}

.success-mark {
  width: 44px;
  height: 44px;
  margin: 0 0 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--white);
  background: var(--violet-dark);
  font-size: 1.2rem;
}

.registration-success h2 {
  margin: 0;
  font-size: clamp(1.85rem, 4vw, 2.7rem);
  font-weight: 590;
  letter-spacing: -0.035em;
}

.registration-success h2:focus {
  outline: none;
}

.registration-success > p:not(.success-mark) {
  max-width: 600px;
  margin: 20px 0 30px;
  color: var(--muted);
  line-height: 1.65;
}

.existing-user-hint {
  max-width: 620px;
  margin-top: 20px;
  color: var(--muted);
}

.existing-user-hint p {
  margin: 6px 0 0;
  line-height: 1.6;
}

.success-connect-links {
  display: grid;
  gap: 10px;
  margin: -12px 0 30px;
}

.content-page {
  padding-block: 96px 120px;
}

.legal-placeholder {
  max-width: 760px;
}

.legal-placeholder h1 {
  margin-bottom: 42px;
}

.legal-placeholder p:not(.eyebrow) {
  margin: 0 0 18px;
  color: #494650;
  font-size: 1.06rem;
  line-height: 1.75;
}

.legal-address {
  margin: 10px 0 22px;
  padding-left: 24px;
  color: #494650;
  font-style: normal;
  line-height: 1.55;
}

.legal-placeholder li > .legal-address {
  margin-bottom: 8px;
}

.help-document h2 {
  margin-top: 52px;
  scroll-margin-top: 24px;
}

.help-document h3 {
  margin-top: 36px;
  scroll-margin-top: 24px;
}

.help-document h4 {
  margin: 28px 0 12px;
  font-size: 1.05rem;
  line-height: 1.35;
  scroll-margin-top: 24px;
}

.help-toc {
  margin: 32px 0 48px;
}

.help-toc h2 {
  margin: 0;
}

.help-toc ul {
  margin: 16px 0 0;
  padding-left: 1.25rem;
  line-height: 1.55;
}

.help-toc li + li {
  margin-top: 6px;
}

.legal-placeholder p.help-prompt-example {
  width: fit-content;
  max-width: 100%;
  margin: 10px 0 22px;
  padding: 10px 14px;
  border-radius: 6px;
  color: #3d3b45;
  background: #f5f5f6;
  font-size: 1rem;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.84rem;
}

.footer-inner {
  min-height: 112px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

.footer-copyright {
  margin: 0;
  color: var(--muted);
  font-size: 0.8rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

@media (max-width: 760px) {
  .shell {
    width: min(100% - 32px, 620px);
  }

  .header-inner {
    min-height: 92px;
    gap: 18px;
  }

  .brand img {
    width: 174px;
  }

  .primary-navigation {
    gap: 18px;
  }

  .hero {
    padding-block: 72px 80px;
  }

  .wizard {
    padding-block: 64px 88px;
  }

  .form-grid,
  .client-options {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .content-page {
    padding-block: 72px 88px;
  }
}

.existing-user {
  padding-block: 48px 72px;
}

.existing-user-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 32px;
}

.existing-user-option,
.existing-key-delivery {
  padding: 28px;
  border: 1px solid var(--border-color, #d9dce2);
  border-radius: 12px;
  background: #fff;
}

.existing-key-delivery {
  margin-top: 28px;
}

@media (max-width: 480px) {
  .header-inner {
    min-height: 84px;
  }

  .brand img {
    width: 145px;
  }

  .primary-navigation {
    gap: 12px;
    font-size: 0.82rem;
  }

  .language-selector {
    gap: 5px;
  }

  .hero {
    padding-block: 58px 68px;
  }

  .wizard-panel {
    padding-top: 46px;
  }

  h1 {
    font-size: 2.2rem;
  }

  .intro {
    margin-top: 26px;
  }

  .wizard-actions {
    align-items: stretch;
    flex-direction: column-reverse;
  }

  .wizard-actions .button {
    width: 100%;
  }

  .resend-help-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .button-link {
    margin-right: 0;
  }

  .copy-row {
    align-items: stretch;
    flex-direction: column;
  }

  .footer-inner {
    min-height: 126px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 22px;
  }

  .site-footer nav {
    gap: 12px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
  }
}
