/* ---------------------------------------------------------------
   Tumble brand tokens — blue-violet gradient identity
   Don't hand-pick new colours; derive them from these.
   --------------------------------------------------------------- */
:root {
  --brand-violet:   #3922FF;   /* gradient start / primary */
  --brand-lilac:    #BC8AFF;   /* gradient end */
  --brand-indigo:   #1E1B5B;   /* wordmark / ink */
  --brand-gradient: linear-gradient(135deg, #3922FF 0%, #BC8AFF 100%);

  /* tenant-overridable accent (defaults to brand) */
  --accent:       var(--brand-violet);
  --accent-dark:  #2B18C9;

  --ink:    var(--brand-indigo);
  --paper:  #FAFAFD;
  --line:   #E4E2F0;
  --muted:  #6B6890;
  --radius: 14px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0; padding: 0;
  width: 100%; height: 100%;
  background: var(--paper);
  color: var(--ink);
  font-family: 'DM Sans', sans-serif;
  overflow: hidden;
  -webkit-user-select: none;
  user-select: none;
}

h1, h2 { font-family: 'Montserrat', sans-serif; font-weight: 800; margin: 0; }

#app { position: relative; width: 100vw; height: 100vh; }

/* thin gradient hairline across the top — brand signature */
#app::before {
  content: ''; position: fixed; top: 0; left: 0; right: 0; height: 4px;
  background: var(--brand-gradient); z-index: 90;
}

.screen {
  position: absolute; inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 64px;
  text-align: center;
}
.screen.active { display: flex; }

/* persistent small mark on every step screen (hidden on attract — big logo is there) */
.corner-mark { position: fixed; top: 22px; left: 24px; width: 38px; height: 38px; z-index: 95; transition: opacity 0.2s ease; border-radius: 10px; }
body.on-attract .corner-mark { opacity: 0; pointer-events: none; }

/* Attract — dark indigo brand surface (the logo is a dark-field lockup) */
#screen-attract { background: var(--brand-indigo); }
.attract-content { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.attract-logo { width: min(520px, 66vw); height: auto; margin-bottom: 4px; border-radius: 12px; }
.tagline { font-size: 22px; color: #C9C5EA; margin: 0 0 24px; }
/* white CTA reads strongest against indigo */
#screen-attract .btn-primary { background: #fff; color: var(--brand-indigo); }
#screen-attract .btn-primary:hover { background: #EDE9FF; }

.eyebrow {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 13px;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--brand-violet);
}
.step-header { margin-bottom: 20px; }
.step-header h2 { font-size: 40px; margin-top: 8px; }
.body-text { font-size: 20px; color: var(--muted); max-width: 560px; margin: 0 auto 24px; }
.hint { font-size: 14px; color: var(--muted); opacity: 0.75; margin: 8px 0; }

/* Buttons */
.btn {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 18px;
  border: none; border-radius: var(--radius); padding: 18px 32px;
  cursor: pointer; transition: transform 0.1s ease, opacity 0.15s ease, background 0.15s ease;
}
.btn:active { transform: scale(0.97); }
.btn:focus-visible { outline: 3px solid var(--brand-violet); outline-offset: 3px; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); }
.btn-secondary { background: #EEECFB; color: var(--brand-indigo); margin-top: 12px; }
.btn-ghost { background: transparent; color: var(--muted); border: 2px solid var(--line); }
.btn-huge { font-size: 24px; padding: 28px 56px; border-radius: 20px; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; }

.nav-row {
  position: absolute; bottom: 40px; left: 0; right: 0;
  display: flex; justify-content: space-between; padding: 0 64px;
}

/* Service selection */
.service-list { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; max-width: 900px; }
.service-card {
  width: 240px; background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 28px 20px; cursor: pointer; transition: border-color 0.15s ease, transform 0.1s ease;
}
.service-card:active { transform: scale(0.98); }
.service-card.selected { border-color: var(--brand-violet); background: #F2F0FF; }
.service-card h3 { font-family: 'Montserrat', sans-serif; font-size: 20px; margin: 0 0 8px; }
.service-card .price { font-size: 28px; font-weight: 800; color: var(--brand-violet); }
.service-card .turnaround { font-size: 13px; color: var(--muted); margin-top: 6px; }

/* Weigh */
.weight-display { font-family: 'Montserrat', sans-serif; font-size: 96px; font-weight: 800; margin: 20px 0; }
.weight-unit { font-size: 32px; color: var(--muted); margin-left: 8px; }

/* Inputs */
.input {
  font-family: 'DM Sans', sans-serif; font-size: 20px; padding: 16px 20px;
  border: 2px solid var(--line); border-radius: var(--radius); width: 360px;
  margin: 8px 0; background: #fff; color: var(--ink);
}
.input:focus { outline: none; border-color: var(--brand-violet); }
.input-center { text-align: center; }
.textarea { width: 480px; height: 120px; resize: none; }
.form { display: flex; flex-direction: column; align-items: center; }
.contact-toggle { display: flex; gap: 8px; margin: 12px 0; }
.toggle-btn {
  font-family: 'Montserrat', sans-serif; font-weight: 700; font-size: 14px;
  padding: 10px 24px; border-radius: 999px; border: 2px solid var(--line);
  background: #fff; cursor: pointer; color: var(--ink);
}
.toggle-btn.active { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Assign tag */
.tag-status {
  font-size: 18px; color: var(--muted); padding: 24px 40px; border: 2px dashed var(--line);
  border-radius: var(--radius); margin: 16px 0; width: 360px;
}
.tag-status.tapped { border-color: var(--brand-violet); border-style: solid; color: var(--brand-violet); font-weight: 700; }

/* Order summary */
.order-summary {
  background: #fff; border: 2px solid var(--line); border-radius: var(--radius);
  padding: 24px 32px; width: 360px; margin-bottom: 20px; text-align: left;
}
.order-summary .row { display: flex; justify-content: space-between; font-size: 16px; margin: 6px 0; color: var(--muted); }
.order-summary .row.total { font-size: 22px; font-weight: 800; color: var(--ink); border-top: 2px solid var(--line); padding-top: 12px; margin-top: 12px; }

/* Confirmation */
.confirm-content { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.check-mark {
  width: 88px; height: 88px; border-radius: 50%; background: var(--brand-gradient); color: #fff;
  font-size: 44px; display: flex; align-items: center; justify-content: center;
}

/* Staff icon */
#staff-icon {
  position: fixed; top: 16px; right: 16px; width: 40px; height: 40px;
  border-radius: 50%; border: none; background: rgba(30,27,91,0.06); color: var(--muted);
  font-size: 18px; cursor: pointer; z-index: 100;
}
#staff-icon:hover { background: rgba(30,27,91,0.12); }

/* Overlay */
.overlay {
  position: fixed; inset: 0; background: rgba(30,27,91,0.94); z-index: 200;
  display: flex; align-items: center; justify-content: center;
}
.overlay.hidden { display: none; }
.overlay-panel {
  background: var(--paper); border-radius: 20px; padding: 44px 48px 48px; width: 520px; max-width: 90vw;
  text-align: center; position: relative; max-height: 85vh; overflow-y: auto;
  border-top: 5px solid var(--brand-violet);
}
.overlay-logo { width: 62px; height: auto; margin-bottom: 14px; border-radius: 14px; }
.overlay-close { position: absolute; top: 16px; right: 16px; background: none; border: none; font-size: 20px; cursor: pointer; color: var(--muted); }
.hidden { display: none !important; }

.in-progress-list { margin-top: 24px; text-align: left; }
.in-progress-item {
  display: flex; justify-content: space-between; padding: 12px 16px; border: 2px solid var(--line);
  border-radius: 10px; margin-bottom: 8px; font-size: 14px; background: #fff;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
