/* ============================================================
   Ninja Selling app feedback — base + primitives + page
   ============================================================ */

/* ---------- Base (from the design system's base.css) ---------- */
*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font: var(--ui-body);
  color: var(--text-body);
  background: var(--surface-page);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1 { font-family: var(--font-display); color: var(--text-strong); font-weight: var(--fw-semibold);
     letter-spacing: var(--tracking-display); margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--dur-fast) var(--ease-standard);
}
a:hover { color: var(--copper-hover); text-decoration: underline; text-underline-offset: 2px; }

:focus-visible {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
  border-radius: var(--radius-xs);
}

::selection { background: var(--copper-tint); color: var(--text-strong); }

@keyframes nc-reveal {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}
.nc-reveal { animation: nc-reveal var(--dur-base) var(--ease-standard); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
    scroll-behavior: auto !important;
  }
}

[hidden] { display: none !important; }

.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;
}

/* ---------- Page shell ---------- */
.page {
  min-height: 100vh;
  background: var(--surface-page);
  padding: 56px 20px 120px;
  font-family: var(--font-ui);
  color: var(--text-body);
}

.column {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.logo-row { display: flex; justify-content: center; padding-bottom: 28px; }
.logo-row img { height: 35px; width: auto; max-width: 100%; display: block; }

.masthead { display: flex; flex-direction: column; gap: 12px; }

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: var(--tracking-eyebrow);
  text-transform: uppercase;
  color: var(--text-muted);
}

.masthead h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-strong);
}

.lead {
  font-size: 18px;
  line-height: 1.6;
  color: var(--text-body);
  max-width: 56ch;
}

/* ---------- Card shell ---------- */
.card {
  background: var(--surface-card);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.card-head { display: flex; flex-direction: column; gap: 6px; }
.card-title { font-size: 20px; font-weight: 600; color: var(--text-strong); }
.card-sub { font-size: 15px; color: var(--text-muted); }

.stack-16 { display: flex; flex-direction: column; gap: 16px; }
.stack-24 { display: flex; flex-direction: column; gap: 24px; }

.two-up {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.ruled-block {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border-top: 1px solid var(--border-hairline);
  padding-top: 20px;
}

/* ---------- Type picker ---------- */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.type-option {
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
  min-height: 118px;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--border-strong);
  background: var(--surface-card);
  transition: box-shadow var(--dur-base) var(--ease-standard),
              background var(--dur-base) var(--ease-standard),
              border-color var(--dur-base) var(--ease-standard);
}
.type-option:hover { border-color: var(--copper); }
.type-option[aria-pressed="true"] { border-color: var(--copper); background: var(--copper-tint); }

.type-option .t-title {
  font-size: 17px; font-weight: 600; line-height: 1.3;
  min-height: 44px; color: var(--text-strong);
}
.type-option .t-blurb { font-size: 14px; line-height: 1.5; color: var(--text-muted); }

/* ---------- Field primitives (mirror the DS Input/Select/Textarea) ---------- */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label { font: var(--ui-label); color: var(--text-strong); }
.field-hint { font: var(--ui-meta); color: var(--text-muted); }
.field.is-invalid .field-hint { color: var(--mauve); }

.control {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 48px;
  padding: 0 14px;
  background: var(--surface-sunken);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  transition: border-color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.control:focus-within {
  background: var(--surface-card);
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(87, 111, 124, 0.16);
}
.field.is-invalid .control { border-color: var(--mauve); }

.control input {
  flex: 1; min-width: 0;
  border: none; outline: none; background: transparent;
  font: var(--ui-body); color: var(--text-strong);
}
.control input::placeholder { color: var(--text-subtle); }

/* Select */
.control-select { position: relative; padding: 0; }
.control-select select {
  appearance: none; -webkit-appearance: none;
  flex: 1; height: 100%;
  padding: 0 40px 0 14px;
  border: none; outline: none; background: transparent;
  font: var(--ui-body); color: var(--text-strong);
  cursor: pointer;
}
.control-select .chevron {
  position: absolute; right: 12px;
  pointer-events: none;
  color: var(--text-muted);
  display: flex;
}

/* Textarea */
.control-textarea {
  resize: vertical;
  padding: 12px 14px;
  width: 100%;
  background: var(--surface-sunken);
  border: 1.5px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: var(--ui-body);
  color: var(--text-strong);
  outline: none;
  transition: border-color var(--dur-fast) var(--ease-standard),
              background var(--dur-fast) var(--ease-standard),
              box-shadow var(--dur-fast) var(--ease-standard);
}
.control-textarea::placeholder { color: var(--text-subtle); }
.control-textarea:focus {
  background: var(--surface-card);
  border-color: var(--ocean);
  box-shadow: 0 0 0 3px rgba(87, 111, 124, 0.16);
}
.field.is-invalid .control-textarea { border-color: var(--mauve); }

/* Checkbox */
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  cursor: pointer;
  min-height: 48px;
}
.checkbox.is-centered { align-items: center; }
.checkbox input {
  position: absolute; opacity: 0; width: 1px; height: 1px;
}
.checkbox .box {
  flex: 0 0 auto;
  width: 22px; height: 22px;
  margin-top: 2px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 7px;
  border: 1.5px solid var(--border-strong);
  background: var(--surface-card);
  color: var(--text-on-dark);
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard);
}
.checkbox .box svg { opacity: 0; }
.checkbox input:checked + .box { background: var(--copper); border-color: var(--copper); }
.checkbox input:checked + .box svg { opacity: 1; }
.checkbox input:focus-visible + .box {
  outline: var(--focus-ring-width) solid var(--focus-ring);
  outline-offset: var(--focus-ring-offset);
}
.checkbox .text { display: flex; flex-direction: column; gap: 2px; }
.checkbox .c-label { font: var(--ui-body); color: var(--text-strong); }
.checkbox .c-desc { font: var(--ui-meta); color: var(--text-muted); }

/* ---------- Buttons (mirror the DS Button) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  font: 600 16px/1 var(--font-ui);
  letter-spacing: 0.01em;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: background var(--dur-fast) var(--ease-standard),
              border-color var(--dur-fast) var(--ease-standard),
              color var(--dur-fast) var(--ease-standard);
  white-space: nowrap;
  user-select: none;
}
.btn:disabled { cursor: not-allowed; opacity: 0.5; }

.btn-primary { background: var(--copper); color: var(--text-on-dark); }
.btn-primary:hover:not(:disabled) { background: var(--copper-hover); }
.btn-primary:active:not(:disabled) { background: var(--copper-press); }

.btn-secondary {
  background: var(--surface-card);
  color: var(--text-strong);
  border-color: var(--border-strong);
}
.btn-secondary:hover:not(:disabled) { background: var(--khaki-soft); }
.btn-secondary:active:not(:disabled) { background: var(--khaki); }

.btn-text {
  font-family: inherit; font-size: 15px; font-weight: 600;
  color: var(--copper); background: none; border: none;
  cursor: pointer; padding: 8px;
}
.btn-text:hover { color: var(--copper-hover); }

/* ---------- Saved-identity summary ---------- */
.identity-summary {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
  background: var(--surface-sunken);
  border-radius: var(--radius-md);
  padding: 16px 20px;
  font-size: 15px;
  color: var(--text-strong);
}

/* ---------- Dropzone ---------- */
.dropzone {
  display: flex; flex-direction: column; align-items: center;
  gap: 10px;
  text-align: center;
  padding: 36px 24px;
  width: 100%;
  border-radius: var(--radius-md);
  border: 1.5px dashed var(--border-strong);
  background: var(--surface-sunken);
  cursor: pointer;
  font-family: inherit;
  transition: border-color var(--dur-base) var(--ease-standard);
}
.dropzone.is-dragging { border-color: var(--copper); }
.dropzone .dz-primary { font-size: 17px; font-weight: 600; color: var(--text-strong); }
.dropzone .dz-secondary { font-size: 15px; color: var(--text-muted); }

.thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.thumb { position: relative; width: 132px; }
.thumb img {
  width: 132px; height: 96px; object-fit: cover;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-hairline);
  display: block;
}
.thumb .thumb-name {
  font-size: 13px; color: var(--text-muted); margin-top: 6px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.thumb .thumb-remove {
  position: absolute; top: -8px; right: -8px;
  width: 28px; height: 28px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline);
  background: var(--surface-card);
  color: var(--text-strong);
  font-family: inherit; font-size: 15px; line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-raised);
}

/* ---------- Messages ---------- */
.error-line { font-size: 14px; color: var(--attention); }
.error-line--ack { margin-top: 8px; }

.error-banner {
  font-size: 15px;
  color: var(--attention);
  background: var(--attention-tint);
  border-radius: var(--radius-md);
  padding: 14px 18px;
}

.confirmation {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--olive-tint);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
}
.confirmation .dot {
  width: 8px; height: 8px; border-radius: var(--radius-pill);
  background: var(--positive); margin-top: 9px; flex: none;
}
.confirmation .msg { font-size: 16px; line-height: 1.6; color: var(--text-strong); }

.submit-block { display: flex; flex-direction: column; gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

/* Honeypot — off-screen, never displayed, not announced */
.hp-field {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

@media (max-width: 560px) {
  .page { padding: 40px 16px 96px; }
  .card { padding: 22px; }
  .masthead h1 { font-size: 36px; }
  .btn { width: 100%; }
}
