@font-face {
  font-family: Jakarta;
  src: url('/assets/PlusJakartaSans-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Jakarta;
  src: url('/assets/PlusJakartaSans-SemiBold.ttf') format('truetype');
  font-weight: 600;
  font-display: swap;
}
:root {
  font-family: Jakarta, Arial, sans-serif;
  font-synthesis: none;
  --ink: #1f1d4d;
  --muted: #5b5a7a;
  --action: #2b2794;
  --label: #334db1;
  --panel: #f6f6ff;
  --on-blue: #e6e8ff;
  color: var(--ink);
}
* { box-sizing: border-box; }
body {
  min-height: 100vh;
  margin: 0;
  background: radial-gradient(ellipse at top left, #558dee 0%, transparent 63%),
              linear-gradient(155deg, #4757c9 8%, #2f40b8 36%, #2334af 65%, #2233ae 100%);
}
body > header { display: flex; justify-content: center; padding: 22px 18px 4px; }
header .stacked-logo { display: block; width: 108px; height: auto; }
header .horizontal-logo { display: none; }
main { max-width: 1040px; min-height: 60vh; margin: 0 auto; padding: 0 16px 40px; }
.signup-layout, .flow-page { max-width: 460px; text-align: center; margin: 0 auto; }
.download-page { max-width: 600px; }
.signup-offer, .page-intro { padding: clamp(16px, 3vw, 34px) 0 20px; color: white; }
#app h1 {
  font-size: 36px; font-weight: 600; line-height: 1.25; letter-spacing: 0; word-spacing: .045em;
  margin: 0 0 18px; text-wrap: balance;
}
.signup-offer h1 span, .page-intro h1 span { display: block; }
.pass-upgrade-heading span + span { margin-top: 1.25em; }
#app h2 { font-size: 28px; font-weight: 600; line-height: 1.25; margin: 0 0 20px; }
#app h3, #app label { font-size: 15px; font-weight: 600; color: var(--label); }
#app h3 { margin: 0; }
#app p, #app summary { font-size: 16px; line-height: 1.5; }
#app p { color: var(--muted); overflow-wrap: anywhere; }
#app .signup-offer p, #app .page-intro p {
  color: var(--on-blue); max-width: 38ch; margin: 0 auto; text-wrap: balance;
}
#app > p[role=status] { color: white; text-align: center; }
.card { background: var(--panel); border-radius: 25px; padding: clamp(20px, 5vw, 38px); }
.card + .card { margin-top: 16px; }
#app form { text-align: left; }
#app label { display: block; margin: 16px 0 8px; }
#app input { font: inherit; font-size: 16px; width: 100%; border: 1px solid #b5bbd9; border-radius: 10px; padding: 13px; color: var(--ink); background: white; }
#app button, #app .button {
  display: block; width: 100%; font: inherit; font-weight: 600; font-size: 17px; line-height: 1.4;
  min-height: 50px; border: 1px solid #b5bbd9; border-radius: 30px; padding: 13px 18px;
  margin: 12px 0; color: var(--action); background: white; text-align: center; cursor: pointer; text-decoration: none;
}
#app .primary { color: white; background: var(--action); border-color: var(--action); }
#app button:disabled { opacity: .55; cursor: wait; }
#app .link-button, #app .text-link, #app summary {
  background: transparent; border: 0; min-height: auto; padding: 6px; color: var(--action);
  font-size: 15px; font-weight: 400; cursor: pointer; text-decoration: underline; text-underline-offset: .15em;
}
#app .separator, #app .small { font-size: 13px; color: var(--muted); line-height: 1.6; }
.separator { margin: 24px 0; }
#app .notice { background: #e4e7fa; color: var(--ink); border-radius: 12px; padding: 14px 16px; font-size: 16px; line-height: 1.5; }
#app .error { color: #822c28; background: #ffece7; }
#status:empty, [hidden] { display: none !important; }
.quiz-back { display: block; width: fit-content; color: white; padding: 12px 4px; font-size: 14px; font-weight: 600; text-decoration: none; }
.quiz-back span { margin-right: 5px; }
.quiz-back:hover { text-decoration: underline; }
.stores { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; margin: 12px 0 24px; }
.store-card { background: white; border-radius: 16px; padding: 16px 8px; }
.qr { display: block; width: min(180px, 100%); height: auto; margin: 12px auto 0; }
.download-buttons { max-width: 380px; margin: 0 auto; }
.manage-link { display: inline-block; margin-top: 16px; }
body > footer { max-width: 1040px; margin: 0 auto; padding: 24px 28px; display: flex; justify-content: space-between; gap: 20px; border-top: 1px solid #ffffff36; color: #eeefff; font-size: 13px; }
body > footer a { color: inherit; }
body > :is(main,header,footer) :focus-visible { outline: 3px solid #6175d9; outline-offset: 3px; }
@media (max-width: 380px) { .stores { grid-template-columns: 1fr; } }

@media (max-width: 600px) and (max-height: 800px) {
  body > header { padding-top: 10px; }
  header .stacked-logo { width: 74px; }
  .signup-layout .signup-offer { padding: 8px 0 14px; }
  #app .signup-offer h1 { font-size: 30px; margin-bottom: 10px; }
  .signup-layout .card { padding: 18px; }
  #app .signup-layout h2 { margin-bottom: 10px; }
  .signup-layout .separator { margin: 8px 0; }
}

@media (max-width: 380px) and (max-height: 620px) {
  body > header { padding-top: 8px; }
  header .stacked-logo { width: 54px; }
  .signup-layout .quiz-back { padding-block: 8px; }
  #app .signup-offer h1 { font-size: 26px; }
  #app .signup-layout h2 { font-size: 23px; }
  #app .signup-offer p { font-size: 15px; }
  .signup-layout .separator { margin: 4px 0; }
}

.card .refund-promise { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--muted); }
.refund-promise a { color: var(--action); text-decoration: underline; }
