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

html.pwa-mode body.guided-signup-page { padding-bottom: 0; }
.guided-signup-page > :is(.site-navbar, .site-footer, .mobile-app-nav) { display: none; }

.guided-signup {
  min-height: 100svh;
  display: grid;
  align-items: center;
  justify-items: center;
  padding: max(32px, env(safe-area-inset-top)) 20px max(72px, env(safe-area-inset-bottom));
  background: radial-gradient(ellipse at 50% 0%, #241810 0%, #14100d 46%, #110e0c 85%);
  color: #f9eee3;
  --signup-muted: #d0bfb1;
  --signup-accent: #f4a364;
}

.guided-signup-frame { position: relative; width: min(100%, 432px); animation: guided-arrive 160ms ease-out both; }
.guided-signup-header { display: grid; place-items: center; position: relative; margin-bottom: 22px; }
.guided-signup-header img { width: 56px; height: 42px; object-fit: contain; }
.guided-back {
  position: absolute;
  inset: 0 auto auto 0;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border: 1px solid #4f3d30;
  border-radius: 12px;
  background: #211810;
  color: inherit;
  font-size: 24px;
  text-decoration: none;
  cursor: pointer;
}
.guided-signup-progress { display: flex; gap: 6px; margin: 0 0 28px; }
.guided-signup-progress span { flex: 1; height: 3px; background: #4a382c; border-radius: 4px; }
.guided-signup-progress .is-complete { background: var(--signup-accent); }
.guided-signup h1 {
  margin: 0 0 8px; color: inherit; font-size: clamp(1.75rem, 6vw, 2rem); line-height: 1.2;
  font-weight: 700; font-synthesis: none; letter-spacing: -.01em; overflow-wrap: anywhere; text-wrap: balance;
}
html .guided-signup p { margin: 0 0 20px; color: var(--signup-muted) !important; line-height: 1.45; font-size: 1rem; }
.guided-signup form { display: grid; gap: 8px; margin: 18px 0 0; }
html .guided-signup label:not(.location-choice-card, .auth-remember-choice) {
  display: block; margin: 2px 0 0; font-size: .9375rem; color: #f2e6db !important; font-weight: 650;
}
.guided-signup .location-choice-list { grid-template-columns: minmax(0, 1fr); gap: 8px; }
.guided-signup .location-choice-card {
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 8px 12px;
  border: 1px solid #5b4434; border-radius: 12px; margin: 0;
}
.app-theme .guided-signup .location-choice-card:has(input:checked) { border-color: var(--signup-accent) !important; background: #35251a !important; }
.guided-signup .location-choice-card:has(input:focus-visible) { outline: 2px solid var(--signup-accent); outline-offset: 3px; }
.guided-signup .location-choice-card:hover { transform: none; }
.guided-signup .location-map-preview { width: 68px; height: 89px; border-radius: 8px; }
.guided-signup .location-choice-copy { overflow-wrap: anywhere; }
.guided-signup input:not([type="hidden"], [type="radio"], [type="checkbox"]) {
  width: 100%; min-width: 0; min-height: 49px; padding: 10px 13px; border: 1px solid #5b4737; border-radius: 10px;
  color: #f9eee3; background: #211a15; font: inherit; caret-color: var(--signup-accent); color-scheme: dark;
}
html:is(.browser-mode, .pwa-mode) .guided-signup input::placeholder { color: #bba796 !important; opacity: 1; }
html:is(.browser-mode, .pwa-mode) .guided-signup input[aria-invalid="true"] { border-color: #ef967f !important; }
.guided-signup :is(button, a, input):focus-visible { outline: 2px solid var(--signup-accent); outline-offset: 3px; }
.guided-signup ::selection { background: #f4a364; color: #29160e; }
.guided-signup .guided-text-link {
  justify-self: start; display: inline-grid; place-items: center; min-width: 44px; min-height: 44px; padding: 4px 12px; border: 0;
  background: transparent; color: var(--signup-accent); font: inherit; font-size: .9rem;
  text-decoration: underline; text-underline-offset: 3px; cursor: pointer;
}
.guided-signup .guided-primary, .guided-signup .guided-choice {
  display: grid; place-items: center; min-height: 48px; width: 100%; padding: 11px 14px; border: 1px solid transparent;
  border-radius: 12px; font: inherit; font-weight: 700; text-align: center; text-decoration: none; line-height: 1.3; cursor: pointer;
  overflow-wrap: anywhere;
}
.guided-signup .guided-primary { margin-top: 4px; background: var(--signup-accent); color: #28170e; }
.guided-signup .guided-primary:hover { background: #ffb780; }
.guided-signup .guided-choice { justify-items: start; min-height: 58px; background: #251c15; border-color: #5b4434; color: #f9eee3; text-align: start; }
@media (hover: hover) {
  .guided-signup .guided-choice:hover { border-color: #a47756; background: #302219; }
}
.guided-signup .guided-choice:is(:active, .is-selected) {
  border-color: var(--signup-accent); background: #483021; box-shadow: inset 0 0 0 1px var(--signup-accent);
}
.guided-signup p.guided-error { color: #ffb6a7 !important; margin: 0; font-size: .875rem; }
.guided-signup .guided-error a, .guided-signup .guided-fine-print a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.guided-signup .guided-fine-print { margin: 0; font-size: .8125rem; }
.guided-signup .guided-primary + .guided-fine-print { margin-top: 2px; }
.guided-password { position: relative; }
.guided-password input:not([type="hidden"], [type="radio"]) { padding-inline-end: 64px; }
.guided-password button {
  position: absolute; inset-inline-end: 4px; top: 3px; min-width: 54px; min-height: 43px; padding: 0 8px;
  color: var(--signup-accent); background: transparent; border: 0; font: inherit; font-size: .875rem; cursor: pointer;
}
.guided-locked-plan { padding: 12px 14px; border: 1px solid #503b2c; border-radius: 12px; background: #241a13; margin: 12px 0 10px; }
.guided-locked-plan > div { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 4px; color: var(--signup-accent); }
.guided-locked-plan span { filter: blur(4px); user-select: none; }
.guided-challenge { margin-top: 5px; max-width: 100%; }
.guided-loader { width: 30px; height: 30px; margin: 22px 0 12px; border: 2px solid #543c2c; border-top-color: var(--signup-accent); border-radius: 50%; animation: guided-spin 800ms linear infinite; }
.guided-signup [hidden] { display: none !important; }

@keyframes guided-arrive { from { transform: translateY(4px); } to { transform: translateY(0); } }
@keyframes guided-spin { to { transform: rotate(360deg); } }
@media (max-width: 344px) { .guided-signup { padding-inline: 12px; } }
@media (prefers-reduced-motion: reduce) {
  .guided-signup-frame, .guided-loader { animation: none; }
  .guided-signup .location-choice-card { transition: none; }
}

