/* Midnight Glow chrome for /start.html (form, login question, password, link sent). */
:root {
  --bg: #060B1C;
  --card: rgba(14, 22, 44, 0.82);
  --card-border: rgba(120, 160, 255, 0.22);
  --text: #ffffff;
  --muted: rgba(226, 232, 245, 0.78);
  --faint: rgba(200, 210, 230, 0.5);
  --orange: #19D3C5;
  --orange-deep: #5BC8FF;
  --gold: #19D3C5;
  --link: #5AA2FF;
  --danger: #fda4af;
}
html, body.start-page {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}
body.start-page { overflow-x: hidden; }
body.start-page a { color: var(--link); text-decoration: none; }
body.start-page a:hover { text-decoration: underline; text-underline-offset: 3px; }

.start-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 42% 38% at 28% 12%, rgba(25, 211, 197, .26), transparent 70%),
    radial-gradient(ellipse 42% 38% at 78% 10%, rgba(59, 130, 246, .32), transparent 70%),
    #060B1C;
}
.start-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.045) 1px, transparent 1px);
  background-size: 56px 56px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 20%, transparent 75%);
}

.start-shell {
  position: relative;
  z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: 32px 20px 64px;
}
.start-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}
.start-brand img { width: 40px; height: 40px; border-radius: 10px; }
.start-brand span { font-weight: 800; letter-spacing: -.2px; font-size: 18px; }
.preview-flag {
  display: inline-block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .8px;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(25, 211, 197, .12);
  border: 1px solid rgba(25, 211, 197, .38);
  border-radius: 99px;
  padding: 3px 10px;
  margin-bottom: 14px;
}
.sample-note {
  background: rgba(59, 130, 246, .15);
  border: 1px solid rgba(90, 162, 255, .35);
  color: #dbe7ff;
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  margin: 0 0 18px;
}

.start-card {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 24px;
  padding: 28px 26px 30px;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  backdrop-filter: blur(10px);
}
.start-card h1 {
  font-size: 32px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.4px;
  margin: 0 0 10px;
}
.start-lead { color: var(--muted); font-size: 16px; line-height: 1.55; margin: 0 0 22px; }
.start-caption { color: var(--faint); font-size: 13.5px; line-height: 1.5; margin: 16px 0 0; }

.field { margin: 0 0 16px; }
.field label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 6px;
  color: #e8eefc;
}
.field input, .field select {
  width: 100%;
  box-sizing: border-box;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(120, 160, 255, .28);
  background: rgba(6, 11, 28, .7);
  color: #fff;
  font: inherit;
  font-size: 16px;
  padding: 0 14px;
}
.field input:focus, .field select:focus {
  outline: none;
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(25, 211, 197, .25);
}
.field select option { color: #111; }

.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 72px; }
.pw-toggle {
  position: absolute; right: 8px; top: 50%; transform: translateY(-50%);
  background: none; border: 0; color: var(--link);
  font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 8px;
}

.btn-orange, .btn-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  width: 100%; height: 54px; border-radius: 99px;
  font: inherit; font-size: 17px; font-weight: 800;
  cursor: pointer; border: 0; margin-top: 8px;
}
.btn-orange {
  color: #0a1628;
  background: linear-gradient(90deg, #19D3C5, #5BC8FF);
  box-shadow: 0 8px 24px rgba(25, 211, 197, .32);
}
.btn-orange:hover { filter: brightness(1.06); }
.btn-orange[disabled], .btn-ghost[disabled] { opacity: .45; cursor: not-allowed; }
.btn-ghost {
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.16);
  margin-top: 10px;
}
.btn-ghost:hover { background: rgba(255,255,255,.1); }

.form-error {
  color: var(--danger);
  font-size: 14px;
  font-weight: 600;
  margin: 0 0 12px;
}
.locked-email {
  font-weight: 700;
  color: #fff;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 16px;
  word-break: break-word;
}
.ready-spin {
  width: 36px; height: 36px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.15);
  border-top-color: var(--orange);
  margin: 8px auto 18px;
  animation: startspin .8s linear infinite;
}
@keyframes startspin { to { transform: rotate(360deg); } }
.ready-copy { text-align: center; font-size: 18px; font-weight: 700; margin: 0 0 8px; }

#toast {
  position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%);
  z-index: 80; background: #111827; color: #fff;
  padding: 12px 18px; border-radius: 12px; font-size: 14px;
  box-shadow: 0 10px 30px rgba(0,0,0,.4);
}

#start-hidden-view { display: none; }
#panel-setup { min-height: 0; }
body.start-page.setup-open .start-shell { visibility: hidden; }
body.start-page[data-screen="setup"] .start-shell { padding: 0; max-width: none; }

.linkish {
  background: none; border: 0; color: var(--link);
  font: inherit; font-weight: 700; cursor: pointer; padding: 0;
}
.linkish[disabled] { opacity: .5; cursor: not-allowed; }
.auth-links { margin: 16px 0 0; display: flex; gap: 16px; flex-wrap: wrap; }

@media (max-width: 520px) {
  .start-card { padding: 22px 18px 24px; }
  .start-card h1 { font-size: 26px; }
}


/* typography: Inter for body/labels — Plus Jakarta at small sizes can collapse spaces */
body.start-page .start-lead,
body.start-page .start-caption,
body.start-page .sample-note,
body.start-page .form-error,
body.start-page .field label,
body.start-page .locked-email,
body.start-page .ready-copy,
body.start-page .auth-links,
body.start-page .linkish,
body.start-page.setup-open .setup,
body.start-page .setup-body,
body.start-page .setup-small,
body.start-page .setup-starter,
body.start-page .setup-count,
body.start-page .setup-rail,
body.start-page .setup-skip-all,
body.start-page .setup-ghost,
body.start-page .setup-kicker,
body.start-page .setup-label,
body.start-page .setup-input,
body.start-page .setup-trade-tile {
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.01em;
}
body.start-page h1,
body.start-page .setup-title,
body.start-page .btn-orange,
body.start-page .btn-ghost,
body.start-page .setup-primary {
  font-family: "Plus Jakarta Sans", Inter, system-ui, sans-serif;
  letter-spacing: -0.02em;
}

.setup-trade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 8px 0 4px;
}
.setup-trade-tile {
  min-height: 64px;
  padding: 14px 12px;
  border-radius: 16px;
  border: 1.5px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.05);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  cursor: pointer;
}
.setup-trade-tile:hover { background: rgba(255,255,255,.09); }
.setup-trade-tile.on {
  border-color: #19D3C5;
  background: rgba(25, 211, 197, .16);
  box-shadow: 0 0 0 3px rgba(25, 211, 197, .18);
}
.setup-start-field { margin: 8px 0 0; }
.setup-start-field .setup-input { width: 100%; box-sizing: border-box; }
@media (max-width: 640px) {
  .setup-trade-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .setup-trade-tile { min-height: 56px; font-size: 15px; }
}

.setup-name-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin: 8px 0 0;
}
@media (min-width: 720px) {
  .setup-name-row { grid-template-columns: 1fr 1fr; }
}

/* Matches Midnight Glow t.small on the app cell screen */
body.start-page .setup-consent {
  color: rgba(200, 210, 230, 0.5);
  font-size: 13px;
  line-height: 18px;
  margin: 12px 0 0;
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
  letter-spacing: 0.01em;
}

/* Stripe Checkout trust card on the Final step */
.setup-card-trust {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 16px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(127, 167, 255, 0.22);
  background: #0B1224;
}
.setup-card-trust-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.setup-card-trust-row svg {
  flex: none;
  color: var(--s-gold, #19D3C5);
  margin-top: 1px;
}
.setup-card-trust-title {
  margin: 0;
  flex: 1;
  color: #F5F7FB;
  font-size: 13.5px;
  font-weight: 800;
  letter-spacing: -0.1px;
  line-height: 1.25;
}
.setup-card-trust-body {
  margin: 0;
  color: var(--s-muted, #AAB6C8);
  font-size: 12.5px;
  line-height: 17px;
}
.setup-card-trust-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.setup-card-trust-pill {
  border-radius: 6px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(200, 210, 230, 0.78);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 3px 7px;
  line-height: 1.2;
}

.setup-checkout-steps { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.setup-checkout-step { display: flex; align-items: flex-start; gap: 8px; }
.setup-checkout-num { color: var(--s-gold, #19D3C5); font-size: 13px; font-weight: 800; width: 18px; flex: none; }
.setup-checkout-text { color: var(--s-muted, #AAB6C8); font-size: 13.5px; line-height: 19px; }

body.start-page .setup-hint {
  color: rgba(200, 210, 230, 0.5);
  font-size: 13px;
  line-height: 18px;
  margin: 6px 0 0;
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
}
body.start-page .setup-check {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
  text-align: left;
}
body.start-page .setup-check-box {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1.5px solid rgba(200, 210, 230, 0.4);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
  color: rgba(200, 210, 230, 0.95);
}
body.start-page .setup-check.on .setup-check-box {
  border-color: #19D3C5;
  background: #19D3C5;
  color: #0a1628;
}

/* All-in-one sign-up (Nov 28 2026): grouped business types, tools, and the two optional slides. */
.setup-trade-groups { display: block; }
.setup-trade-group-head { display: flex; flex-direction: column; gap: 2px; margin: 18px 0 2px; }
.setup-trade-group-head:first-child { margin-top: 4px; }
.setup-trade-group-head strong { color: #fff; font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.setup-trade-group-head .setup-hint { margin: 0; }
.setup-tools, .setup-choices { display: flex; flex-wrap: wrap; gap: 10px; margin: 10px 0 0; }
.setup-tools .setup-chip { flex: 1 1 calc(50% - 10px); min-width: 220px; }
.setup-choices .setup-chip { flex: 1 1 100%; }
.setup-tools .setup-chip.tall, .setup-choices .setup-chip.tall { align-items: flex-start; }
.setup-tools .setup-chip-sub, .setup-choices .setup-chip-sub { display: block; font-weight: 500; font-size: 13px; color: rgba(200, 210, 230, .7); margin-top: 2px; }
@media (max-width: 640px) { .setup-tools .setup-chip { flex-basis: 100%; min-width: 0; } }
/* 1-year plan choice on the card step (sign-up) */
.plan-picker { display: flex; flex-direction: column; gap: 10px; margin: 6px 0 14px; }
.plan-choice {
  display: flex; flex-direction: column; gap: 4px; text-align: left; width: 100%;
  padding: 14px; border-radius: 16px; font: inherit; cursor: pointer;
  border: 1.5px solid rgba(255, 255, 255, 0.14); background: rgba(255, 255, 255, 0.04); color: #F5F7FB;
}
.plan-choice.on { border-color: #19D3C5; background: rgba(25, 211, 197, 0.12); }
.plan-choice:focus-visible { outline: 2px solid var(--s-gold, #19D3C5); outline-offset: 2px; }
.plan-choice-top { display: flex; align-items: center; gap: 10px; }
.plan-radio { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid rgba(200, 210, 230, 0.5); position: relative; }
.plan-radio.on { border-color: #19D3C5; }
.plan-radio.on::after { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #19D3C5; }
.plan-choice-name { flex: 1; font-size: 16px; font-weight: 800; letter-spacing: -0.1px; }
.plan-choice-price { font-size: 16px; font-weight: 800; }
.plan-choice-line { font-size: 14px; line-height: 20px; color: #E3E9F4; }
.plan-choice-fine { font-size: 12.5px; line-height: 17px; color: var(--s-muted, #AAB6C8); }
.plan-choice-gift { display: block; margin-top: 10px; padding-left: 10px; border-left: 3px solid #19D3C5; }
.plan-choice-gift-line { display: block; font-size: 14px; line-height: 20px; color: var(--s-text, #f5f7fb); }
.plan-choice-gift-fine { display: block; margin-top: 4px; font-size: 12.5px; line-height: 17px; color: var(--s-muted, #AAB6C8); }

/* Download-the-app finish screen (Nov 29 2026): store badges first, QR codes on computers, Front Desk as a small line. */
.start-app-card .start-store-badges { margin: 0 0 4px; }
.start-app-card .start-store-qrs { margin: 18px 0 2px; }
.start-app-card .start-store-qrs figcaption { color: var(--muted); }
.start-app-card .start-also { margin-top: 22px; }
body.start-page .start-app-card .start-also .linkish { font-size: inherit; color: var(--link); }
@media (max-width: 420px) {
  .start-app-card .start-store-badges { gap: 10px; }
  .start-app-card .store-badge img { height: 44px; }
}

/* Terms and Privacy line above the card-step button (Dec 3 2026). Links underlined so they read as tappable. */
body.start-page .setup-terms {
  color: rgba(200, 210, 230, 0.72);
  font-size: 13px;
  line-height: 19px;
  margin: 0 0 6px;
  text-align: center;
  font-family: Inter, "Plus Jakarta Sans", system-ui, sans-serif;
}
body.start-page .setup-terms a { color: #ffffff; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
