/* PayPer Apply UI — prototype styles (offline, Inter Tight, brand #00ADFF) */

:root {
  --brand: #00ADFF;
  --brand-dark: #0090d6;
  --brand-soft: #e8f7ff;
  --ink: #111827;
  --muted: #6b7280;
  --border: #e5e7eb;
  --surface: #f9fafb;
  --white: #ffffff;
  --danger: #ef4444;
  --success: #059669;
  --radius: 12px;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  --font: 'Inter Tight', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--surface);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

img { max-width: 100%; height: auto; display: block; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* —— Top nav (marketing stages) —— */
.topnav {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}
.topnav-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo { height: 40px; width: auto; object-fit: contain; }
.badge-demo {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-dark);
  background: var(--brand-soft);
  border: 1px solid #b8e6ff;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

/* —— Hero strip —— */
.hero-strip {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-dark) 100%);
  color: var(--white);
  padding: 2.5rem 1.25rem;
}
.hero-strip-inner { max-width: 720px; margin: 0 auto; }
.hero-strip .eyebrow {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  opacity: 0.9;
  margin: 0 0 0.5rem;
}
.hero-strip h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero-strip p { margin: 0; opacity: 0.92; max-width: 36rem; }

/* —— Stage chips —— */
.stage-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1.25rem;
}
.stage-chip {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(255,255,255,0.2);
  color: #fff;
}
.stage-chip.is-current {
  background: #fff;
  color: var(--brand-dark);
}

/* —— Cards / layout —— */
.page-wrap {
  max-width: 720px;
  margin: -1.5rem auto 3rem;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}
.page-wrap.wide { max-width: 880px; }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.75rem 1.5rem;
}
@media (min-width: 640px) {
  .card { padding: 2rem 2.25rem; }
}

.card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
  font-weight: 700;
}
.card .subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* —— Forms —— */
.form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.1rem;
}
@media (min-width: 560px) {
  .form-grid.cols-2 { grid-template-columns: 1fr 1fr; }
  .form-grid .span-2 { grid-column: 1 / -1; }
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  margin-bottom: 0.35rem;
}
label .req { color: var(--danger); }
label .opt { color: var(--muted); font-weight: 500; font-size: 0.75rem; }

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  width: 100%;
  font: inherit;
  font-size: 0.95rem;
  padding: 0.7rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--ink);
  transition: border-color 0.15s, box-shadow 0.15s;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 173, 255, 0.2);
}
textarea { min-height: 100px; resize: vertical; }

.is-invalid {
  border-color: var(--danger) !important;
  box-shadow: 0 0 0 1px var(--danger);
}
.field-error {
  color: var(--danger);
  font-size: 0.75rem;
  margin-top: 0.3rem;
  display: none;
}
.field-error.show { display: block; }

.hint { font-size: 0.75rem; color: var(--muted); margin-top: 0.3rem; }

/* Channel chips */
.channel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
@media (min-width: 560px) {
  .channel-grid { grid-template-columns: repeat(4, 1fr); }
}
.channel-opt {
  position: relative;
  cursor: pointer;
}
.channel-opt input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}
.channel-opt span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  text-align: center;
  padding: 0.85rem 0.5rem;
  border: 2px solid var(--border);
  border-radius: 10px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #4b5563;
  background: #fff;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
  min-height: 4.5rem;
}
.channel-opt i { font-size: 1.15rem; color: var(--brand); }
.channel-opt input:checked + span {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.channel-opt input:focus-visible + span {
  box-shadow: 0 0 0 3px rgba(0, 173, 255, 0.25);
}

/* Checkboxes */
.check-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  margin: 0.75rem 0;
}
.check-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--brand);
  flex-shrink: 0;
}
.check-row label {
  margin: 0;
  font-weight: 500;
  font-size: 0.875rem;
  color: #374151;
}

/* Buttons */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  justify-content: space-between;
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}
.btn-row.end { justify-content: flex-end; }
.btn-row.start { justify-content: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  padding: 0.7rem 1.35rem;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s, transform 0.1s;
  text-decoration: none;
}
.btn:active { transform: scale(0.98); }
.btn-primary {
  background: var(--brand);
  color: #fff;
}
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-secondary {
  background: #fff;
  color: #374151;
  border: 1px solid var(--border);
}
.btn-secondary:hover { background: var(--surface); color: var(--ink); }
.btn-ghost {
  background: transparent;
  color: var(--muted);
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.btn-ghost:hover { color: var(--brand); }
.btn-success {
  background: var(--success);
  color: #fff;
}
.btn-success:hover { background: #047857; color: #fff; }
.btn-block { width: 100%; }
.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

/* Summary box */
.summary-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1rem 1.15rem;
  margin-bottom: 1.5rem;
}
.summary-box h3 {
  margin: 0 0 0.75rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.summary-dl {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.45rem 1.25rem;
  margin: 0;
}
@media (min-width: 480px) {
  .summary-dl { grid-template-columns: auto 1fr; }
}
.summary-dl dt {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin: 0;
}
.summary-dl dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--ink);
  word-break: break-word;
}
.summary-actions { margin-top: 0.85rem; }

/* —— Secure shell —— */
.secure-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.secure-header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0.85rem 0;
  position: sticky;
  top: 0;
  z-index: 40;
}
.secure-header-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}
.secure-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.secure-brand .logo { height: 36px; }
.secure-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--success);
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
}
.secure-badge::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--success);
}
.session-pill {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 500;
}
.session-pill strong { color: var(--ink); }

.secure-main {
  flex: 1;
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
  padding: 1.5rem 1.25rem 3rem;
}

/* Progress */
.progress {
  margin-bottom: 1.75rem;
}
.progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: space-between;
  gap: 0.25rem;
}
.progress-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  color: #9ca3af;
  font-size: 0.7rem;
  font-weight: 600;
  position: relative;
  min-width: 0;
}
.progress-step .num {
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #f3f4f6;
  color: #6b7280;
  font-size: 0.8rem;
  font-weight: 700;
  border: 2px solid transparent;
  transition: background 0.15s, color 0.15s;
}
.progress-step.is-active { color: var(--brand); }
.progress-step.is-active .num {
  background: var(--brand);
  color: #fff;
}
.progress-step.is-done { color: var(--brand-dark); }
.progress-step.is-done .num {
  background: var(--brand-dark);
  color: #fff;
}
.progress-step .label {
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
@media (max-width: 560px) {
  .progress-step .label { font-size: 0.6rem; }
  .progress-step .num { width: 1.7rem; height: 1.7rem; font-size: 0.7rem; }
}

.secure-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.5rem 1.35rem;
}
@media (min-width: 640px) {
  .secure-card { padding: 2rem; }
}
.secure-card h2 {
  margin: 0 0 0.35rem;
  font-size: 1.4rem;
  font-weight: 700;
}
.secure-card .subtitle {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.9rem;
}

/* Owner cards */
.owner-card {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem;
  margin-bottom: 1rem;
  background: var(--surface);
}
.owner-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.85rem;
}
.owner-card-head h3 {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
}
.btn-link {
  background: none;
  border: none;
  color: var(--danger);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}
.btn-link:hover { text-decoration: underline; }

.masked {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.05em;
}

/* Banking connect */
.connect-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
  padding: 1.25rem;
  border: 1px dashed #93d5f7;
  border-radius: 10px;
  background: var(--brand-soft);
  margin: 1.25rem 0;
}
@media (min-width: 560px) {
  .connect-panel {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}
.connect-panel p { margin: 0; font-size: 0.9rem; color: #374151; }
.connect-status {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--success);
}
.connect-status.pending { color: var(--muted); }

/* Upload zone */
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 2rem 1.25rem;
  text-align: center;
  background: var(--surface);
  transition: border-color 0.15s, background 0.15s;
  cursor: pointer;
}
.dropzone:hover, .dropzone.is-dragover {
  border-color: var(--brand);
  background: var(--brand-soft);
}
.dropzone-icon {
  font-size: 2rem;
  color: var(--brand);
  margin-bottom: 0.5rem;
}
.dropzone p { margin: 0.25rem 0; color: var(--muted); font-size: 0.9rem; }
.dropzone strong { color: var(--ink); }
.file-list {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
}
.file-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 8px;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
}
.file-list .name {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 500;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Review blocks */
.review-section {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  margin-bottom: 1rem;
}
.review-section h3 {
  margin: 0 0 0.85rem;
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}
.review-section h3 a {
  font-size: 0.8rem;
  font-weight: 600;
}
.review-empty {
  color: var(--muted);
  font-size: 0.875rem;
  font-style: italic;
}

/* Success */
.success-panel {
  text-align: center;
  padding: 2.5rem 1.5rem;
}
.success-icon {
  width: 4.5rem;
  height: 4.5rem;
  border-radius: 50%;
  background: #ecfdf5;
  color: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin-bottom: 1.25rem;
}
.success-panel h2 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}
.success-panel p {
  color: var(--muted);
  max-width: 28rem;
  margin: 0 auto 1.5rem;
}

.footer-note {
  text-align: center;
  font-size: 0.75rem;
  color: #9ca3af;
  padding: 1.5rem 1rem 2rem;
}
.footer-note a { color: var(--muted); }

.alert {
  padding: 0.75rem 1rem;
  border-radius: 8px;
  font-size: 0.875rem;
  margin-bottom: 1rem;
}
.alert-error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}
.alert-info {
  background: var(--brand-soft);
  color: #075985;
  border: 1px solid #bae6fd;
}

.or-divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.25rem 0;
  color: #9ca3af;
  font-size: 0.8rem;
  font-weight: 600;
}
.or-divider::before, .or-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}


/* Processor statement slots (banking verification) */
.section-heading {
  margin: 1.5rem 0 0.65rem;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
}
.statements-section {
  margin-top: 0.5rem;
  padding-top: 0.25rem;
  border-top: 1px solid var(--border);
}
.statements-intro {
  margin: 0 0 1rem;
  font-size: 0.85rem;
  color: var(--muted);
}
.statement-slots {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
}
@media (min-width: 640px) {
  .statement-slots {
    grid-template-columns: repeat(3, 1fr);
  }
}
.statement-slot {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.85rem;
  background: var(--surface);
  min-height: 5.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.statement-slot-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}
.statement-pick {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 0.85rem 0.5rem;
  cursor: pointer;
  font: inherit;
  color: var(--muted);
  transition: border-color 0.15s, background 0.15s;
}
.statement-pick:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--ink);
}
.statement-pick i { color: var(--brand); font-size: 1.25rem; }
.statement-pick .pick-label { font-size: 0.8rem; font-weight: 600; }
.statement-file {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  word-break: break-word;
}
.statement-file .name { flex: 1; }
.dropzone-compact {
  margin-top: 0.75rem;
  padding: 1.25rem 1rem;
}
.dropzone-compact .dropzone-icon { font-size: 1.5rem; margin-bottom: 0.25rem; }

/* MO/TO questionnaire (business step) */
.moto-panel {
  margin: 1.25rem 0 0.5rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--surface);
  padding: 0.75rem 1rem 1rem;
}
.moto-panel > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.35rem 0;
  font-size: 0.95rem;
}
.moto-panel > summary::-webkit-details-marker { display: none; }
.moto-panel > summary::before {
  content: '▸ ';
  color: var(--brand);
  font-weight: 700;
}
.moto-panel[open] > summary::before { content: '▾ '; }
.moto-body { margin-top: 1rem; }
.mix-grid input[type="number"] { max-width: 100%; }

/* Sales / ops note on review */
.ops-note {
  margin: 1rem 0 1.25rem;
  padding: 0.85rem 1rem;
  border-radius: 8px;
  border: 1px dashed #cbd5e1;
  background: #f8fafc;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.45;
}
.ops-note strong { color: var(--ink); }

.section-heading .req,
.section-heading .opt,
h3 .req,
h3 .opt {
  font-size: 0.8rem;
}



/* ========== Mobile-first restyle (Nick) ========== */
:root {
  --content-max: 460px;
  --tap: 48px;
  --sticky-h: 72px;
}

body {
  padding-bottom: env(safe-area-inset-bottom, 0);
}

/* Marketing stages: centered narrow column */
.topnav-inner {
  max-width: var(--content-max);
  padding: 0 1rem;
}
.hero-strip {
  padding: 1.35rem 1rem 1.75rem;
}
.hero-strip h1 {
  font-size: clamp(1.35rem, 5vw, 1.75rem);
}
.hero-strip p { font-size: 0.9rem; }
.page-wrap {
  max-width: var(--content-max);
  margin: -1.25rem auto 5.5rem;
  padding: 0 1rem;
}
.page-wrap.wide { max-width: var(--content-max); }
.card {
  padding: 1.35rem 1.15rem;
  margin-bottom: 0.5rem;
}
@media (min-width: 640px) {
  .card { padding: 1.5rem 1.35rem; }
}

/* Always single column on forms for phone comfort */
.form-grid.cols-2 {
  grid-template-columns: 1fr !important;
}
.form-grid .span-2 { grid-column: auto; }
.channel-grid {
  grid-template-columns: 1fr 1fr;
}
.channel-opt span {
  min-height: var(--tap);
  padding: 0.9rem 0.5rem;
}

/* Larger tap targets */
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="number"],
input[type="url"],
select,
textarea {
  min-height: var(--tap);
  font-size: 1rem;
  padding: 0.75rem 0.95rem;
}
.btn {
  min-height: var(--tap);
  padding: 0.75rem 1.25rem;
  font-size: 0.95rem;
}
.check-row input[type="checkbox"] {
  width: 1.25rem;
  height: 1.25rem;
  margin-top: 0.2rem;
}
.check-row label { font-size: 0.9rem; line-height: 1.4; }

/* Hide in-card btn-row when sticky bar is used */
.secure-card > .btn-row,
.card > form > .btn-row,
.card > .btn-row {
  display: none;
}

/* Sticky bottom Next/Back bar */
.sticky-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(8px);
  border-top: 1px solid var(--border);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom, 0));
}
.sticky-nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.65rem;
}
.sticky-nav .btn { flex: 1; }
.sticky-nav .btn-ghost {
  flex: 0 0 auto;
  min-width: 5.5rem;
  border: 1px solid var(--border);
  background: #fff;
  color: #374151;
  padding-left: 0.85rem;
  padding-right: 0.85rem;
}
.sticky-nav .btn-ghost:hover { background: var(--surface); color: var(--ink); }

/* Secure shell narrow column */
.secure-header-inner {
  max-width: var(--content-max);
  padding: 0 1rem;
  flex-wrap: nowrap;
}
.secure-brand .logo { height: 32px; }
.secure-badge { display: none; }
@media (min-width: 400px) {
  .secure-badge { display: inline-flex; }
}
.session-pill { font-size: 0.75rem; }
.secure-main {
  max-width: var(--content-max);
  padding: 1rem 1rem calc(var(--sticky-h) + 2rem);
}

/* Compact progress: dots + meta */
.progress {
  margin-bottom: 1.15rem;
}
.progress-meta {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--brand-dark);
  margin: 0 0 0.65rem;
  letter-spacing: -0.01em;
}
.progress-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.2rem;
}
.progress-dot {
  flex: 1;
  height: 6px;
  border-radius: 999px;
  background: #e5e7eb;
  min-width: 0;
  transition: background 0.15s;
}
.progress-dot.is-done { background: var(--brand-dark); }
.progress-dot.is-active {
  background: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 173, 255, 0.25);
}

.secure-card {
  padding: 1.25rem 1.1rem;
}
@media (min-width: 640px) {
  .secure-card { padding: 1.5rem 1.35rem; }
}
.secure-card h2 {
  font-size: 1.25rem;
}
.secure-card .subtitle {
  font-size: 0.85rem;
  margin-bottom: 1.15rem;
}
.section-heading {
  margin: 0.35rem 0 0.75rem;
  font-size: 0.95rem;
}

/* Statement slots stay single column on phone */
.statement-slots {
  grid-template-columns: 1fr !important;
}
@media (min-width: 480px) {
  .statement-slots {
    grid-template-columns: 1fr !important;
  }
}

.owner-card { padding: 1rem; }
.moto-skip-panel {
  margin: 0 0 1rem;
  padding: 0.9rem 1rem;
  border-radius: 10px;
  background: var(--brand-soft);
  border: 1px solid #b8e6ff;
  font-size: 0.875rem;
  color: #075985;
}
.moto-skip-panel p { margin: 0 0 0.75rem; }
.hero-strip .eyebrow { font-size: 0.75rem; }
.stage-chips { margin-top: 0.85rem; }
.stage-chip { font-size: 0.7rem; padding: 0.3rem 0.65rem; }
.summary-box { padding: 0.85rem 1rem; margin-bottom: 1.15rem; }
.footer-note { padding-bottom: 5rem; }


/* Owner switcher (one principal at a time) */
.owner-switcher {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin: 0 0 1rem;
}
.owner-pill {
  appearance: none;
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--ink);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}
.owner-pill .pill-pct {
  color: var(--muted);
  font-weight: 500;
  font-size: 0.8rem;
}
.owner-pill.is-active {
  border-color: var(--brand);
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.owner-pill.is-done:not(.is-active) {
  border-color: #a7f3d0;
  background: #ecfdf5;
}
.owner-pill.is-done i { color: var(--success); font-size: 0.7rem; }

/* Glanceable review cards */
.review-cards {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}
.review-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.9rem 1rem;
  background: var(--white);
}
.review-card-body { min-width: 0; flex: 1; }
.review-card h3 {
  margin: 0 0 0.2rem;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.review-card-line {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-card-sub {
  margin: 0.15rem 0 0;
  font-size: 0.8rem;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-card-edit {
  flex-shrink: 0;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  background: var(--brand-soft);
  color: var(--brand-dark);
}
.review-card-edit:hover { background: #d6f0ff; color: var(--brand-dark); }

.attest-block {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.15rem 1.25rem;
  margin: 1.25rem 0 1rem;
  background: #fafafa;
}
.attest-block .section-heading { margin-top: 0; }

/* —— Site brand nav / footer (integrated into marketing site) —— */
.topnav-links {
  display: none;
  align-items: center;
  gap: 1.5rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #374151;
}
.topnav-links a { color: #374151; }
.topnav-links a:hover,
.topnav-links a.is-current { color: var(--brand); }
.topnav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--brand);
  color: #fff !important;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 0.5rem 1.25rem;
  border-radius: 999px;
  white-space: nowrap;
}
.topnav-cta:hover { background: var(--brand-dark); color: #fff !important; }
@media (min-width: 768px) {
  .topnav-links { display: flex; }
}

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 2rem 1.25rem 1rem;
  margin-top: 1rem;
}
.site-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer-inner {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
}
.site-footer .footer-logo { height: 40px; width: auto; }
.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
}
.site-footer-links a { color: #4b5563; }
.site-footer-links a:hover { color: var(--brand); }
.site-footer-meta {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.8rem;
  color: #6b7280;
  text-align: center;
}
@media (min-width: 768px) {
  .site-footer-meta { text-align: right; }
}
.site-footer-meta a { color: var(--brand); font-weight: 600; }
.site-footer .footer-note {
  max-width: 1100px;
  margin: 1rem auto 0;
  padding: 0.5rem 0 5rem; /* leave room for sticky nav */
}
.secure-shell + .site-footer .footer-note,
body > .site-footer .footer-note { padding-bottom: 5rem; }
