/* Mobile prototype shell + screen styles. Loaded inside the iOS frame. */

* { box-sizing: border-box; }

.screen {
  position: absolute;
  inset: 0 16px;
  display: flex;
  flex-direction: column;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.scr-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 56px 20px 8px;  /* leaves room for status bar */
  position: sticky;
  top: 0;
  background: rgba(250, 250, 247, 0.92);
  backdrop-filter: blur(8px);
  z-index: 2;
}
.scr-header.scr-header--bare { padding-top: 56px; }
.scr-header__title { font-size: 17px; font-weight: 600; flex: 1; text-align: center; }
.scr-header__btn {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  border: 0; background: transparent; cursor: pointer; color: var(--ink);
  border-radius: 4px;
}
.scr-header__btn:hover { background: var(--bg-sunken); }

.scr-body { padding: 16px 24px 32px; flex: 1; }
.scr-body--lg { padding: 24px 24px 120px; }

.scr-footer {
  position: sticky;
  bottom: 0;
  padding: 16px 20px 32px;
  background: linear-gradient(to top, var(--paper) 70%, transparent);
  display: flex; flex-direction: column; gap: 10px;
}

/* Mono label */
.cap {
  font-family: var(--font-mono);
  font-size: 10px; letter-spacing: 0.16em;
  text-transform: uppercase; color: var(--graphite-5);
  font-weight: 500;
}
.cap--red { color: var(--red); }

/* Titles */
.h1m { font-size: 34px; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
.h2m { font-size: 22px; line-height: 1.2; letter-spacing: -0.01em; font-weight: 600; }
.h3m { font-size: 16px; font-weight: 600; }
.muted { color: var(--graphite-5); font-size: 14px; line-height: 1.5; }

/* Buttons (touch-friendly: 48px+) */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 52px; padding: 0 20px;
  border-radius: 6px; border: 1px solid transparent;
  font: inherit; font-family: var(--font-sans); font-weight: 500; font-size: 16px;
  cursor: pointer;
  transition: background 150ms var(--ease-out), transform 150ms var(--ease-out);
  width: 100%;
}
.btn:active { transform: scale(0.98); }
.btn--primary { background: var(--red); color: white; }
.btn--primary:hover { background: var(--red-deep); }
.btn--secondary { background: white; color: var(--ink); border-color: var(--border-1); }
.btn--ghost { background: transparent; color: var(--ink); }
.btn--ghost:hover { background: var(--bg-sunken); }
.btn[disabled] { opacity: 0.4; cursor: not-allowed; }
.btn--sm { height: 40px; font-size: 14px; padding: 0 14px; width: auto; }
.btn--iconleft svg { margin-right: 2px; }

/* Trust strip */
.trust {
  display: flex; gap: 10px;
  border-top: 1px solid var(--border-1);
  border-bottom: 1px solid var(--border-1);
  padding: 14px 0;
  margin-top: 8px;
}
.trust__item {
  flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite-5);
  text-align: center;
}
.trust__item svg { color: var(--ink); }

/* Hero illustration frame */
.hero-art {
  border: 1px solid var(--border-1);
  border-radius: 8px;
  background:
    linear-gradient(to right, var(--graphite-1) 1px, transparent 1px) 0 0 / 24px 24px,
    linear-gradient(to bottom, var(--graphite-1) 1px, transparent 1px) 0 0 / 24px 24px,
    white;
  padding: 8px 12px 4px;
  position: relative;
  overflow: hidden;
}
.hero-art img { display: block; width: 100%; height: auto; }
.hero-art__chip {
  position: absolute; top: 10px; left: 12px;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite-5);
}

/* Questions */
.q-card {
  border: 1px solid var(--border-1);
  border-radius: 8px;
  background: white;
  padding: 16px;
  display: flex; flex-direction: column; gap: 14px;
}
.q-num { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em; color: var(--graphite-5); text-transform: uppercase; }
.q-text { font-size: 17px; font-weight: 500; line-height: 1.3; }
.q-yesno { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.q-btn {
  height: 44px; border-radius: 6px;
  border: 1px solid var(--border-1);
  background: white; color: var(--ink);
  font: inherit; font-family: var(--font-sans); font-size: 15px; font-weight: 500;
  cursor: pointer;
  transition: all 150ms var(--ease-out);
}
.q-btn:active { transform: scale(0.98); }
.q-btn.selected { background: var(--ink); color: var(--paper); border-color: var(--ink); }

/* Service list */
.svc {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  border: 1px solid var(--border-1);
  background: white;
  border-radius: 8px;
}
.svc + .svc { margin-top: 8px; }
.svc__ic {
  width: 40px; height: 40px;
  border: 1px solid var(--border-1);
  border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  color: var(--graphite-5);
  background: var(--paper);
  flex-shrink: 0;
}
.svc__body { flex: 1; min-width: 0; }
.svc__nm { font-size: 15px; font-weight: 500; }
.svc__d { font-size: 12px; color: var(--graphite-5); margin-top: 2px; line-height: 1.4; }
.svc__pr { font-family: var(--font-mono); font-size: 13px; font-weight: 600; white-space: nowrap; }
.svc__pr--free { color: var(--green); }

/* Form */
.field { display: flex; flex-direction: column; gap: 6px; margin-top: 18px; }
.field__l { font-size: 13px; font-weight: 500; color: var(--ink); }
.field__i {
  height: 52px;
  padding: 0 14px;
  border: 1px solid var(--border-1);
  border-radius: 6px;
  background: white;
  font: inherit; font-family: var(--font-sans); font-size: 16px; color: var(--ink);
}
.field__i:focus { outline: 2px solid var(--red); outline-offset: 2px; border-color: var(--ink); }
.field__h { font-size: 12px; color: var(--graphite-5); margin-top: 2px; }
.field__h--mono {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--graphite-5);
}

/* Dashboard process buttons */
.proc-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 20px;
}
.proc {
  border: 1px solid var(--border-1);
  background: white;
  border-radius: 8px;
  padding: 16px 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  cursor: pointer;
  transition: background 150ms var(--ease-out), transform 150ms var(--ease-out);
  text-align: left;
  position: relative;
}
.proc:active { transform: scale(0.98); }
.proc:hover { background: var(--bg-sunken); }
.proc__ring {
  width: 56px; height: 56px;
  position: relative;
}
.proc__ring svg { transform: rotate(-90deg); }
.proc__ring__n {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em;
  color: var(--ink); font-weight: 600;
}
.proc__t { font-size: 14px; font-weight: 600; line-height: 1.25; }
.proc__s { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--graphite-5); margin-top: 2px; }

/* Step list */
.steps { display: flex; flex-direction: column; gap: 0; margin-top: 16px; }
.step {
  display: grid;
  grid-template-columns: 32px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border-1);
}
.step:last-child { border-bottom: 0; }
.step__pip {
  width: 26px; height: 26px;
  border-radius: 999px;
  border: 1px solid var(--border-2);
  background: white;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--graphite-5);
}
.step.done .step__pip { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.step.active .step__pip { background: var(--red); color: white; border-color: var(--red); }
.step__t { font-size: 15px; font-weight: 500; }
.step__s { font-size: 12px; color: var(--graphite-5); margin-top: 2px; }
.step__chip {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; padding: 3px 7px; border-radius: 4px;
}
.step__chip--done   { color: var(--green); background: var(--green-wash); }
.step__chip--active { color: var(--amber); background: var(--amber-wash); }
.step__chip--todo   { color: var(--graphite-5); background: var(--bg-sunken); }

/* File list */
.files { margin-top: 14px; }
.file {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border: 1px solid var(--border-1);
  border-radius: 8px;
  background: white;
}
.file + .file { margin-top: 8px; }
.file__ic {
  width: 36px; height: 36px;
  border: 1px solid var(--border-1); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.1em; color: var(--graphite-5); background: var(--paper);
  flex-shrink: 0;
}
.file__body { flex: 1; min-width: 0; }
.file__nm { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.file__m { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; color: var(--graphite-5); text-transform: uppercase; margin-top: 2px; }

.upload-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px;
  border: 1.5px dashed var(--border-2);
  border-radius: 8px;
  background: var(--paper);
  margin-top: 8px;
  cursor: pointer;
}
.upload-row:active { transform: scale(0.99); }
.upload-row__t { font-size: 14px; font-weight: 500; }
.upload-row__s { font-family: var(--font-mono); font-size: 9px; letter-spacing: 0.12em; color: var(--graphite-5); text-transform: uppercase; margin-top: 2px; }

/* Toast */
.toast {
  position: fixed;
  left: 50%; transform: translateX(-50%);
  bottom: 40px;
  background: var(--ink); color: var(--paper);
  padding: 12px 16px; border-radius: 8px;
  font-size: 14px;
  display: inline-flex; align-items: center; gap: 10px;
  box-shadow: var(--shadow-2);
  z-index: 50;
}
.toast svg { color: var(--green); }

/* Logo lockup */
.logo-row { display: flex; align-items: center; gap: 8px; }
.logo-row img { height: 22px; }

/* Progress bar (questions) */
.prog {
  height: 3px; background: var(--graphite-2); border-radius: 99px; overflow: hidden;
  margin: 8px 24px 0;
}
.prog__fill { height: 100%; background: var(--ink); border-radius: 99px; transition: width 220ms var(--ease-out); }
