/* ==========================================================================
   ROMURE — product shell (dashboard, auth, pricing, legal, upload, results)
   Loaded after home.css so it reuses the approved homepage design tokens.
   ========================================================================== */

.product-body {
  background: var(--wash);
  min-height: 100vh;
}

.product-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------------------------------------------------------------- top bar */
.app-bar {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, .97);
  border-bottom: 1px solid var(--line);
}

.app-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 68px;
  padding: 10px 0;
}

.app-bar__left {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.app-bar__nav {
  display: flex;
  gap: 16px;
  font-size: 14px;
  color: var(--body-dim);
}

.app-bar__nav a {
  color: var(--body);
  text-decoration: none;
}

.app-bar__nav a:hover,
.app-bar__nav a[aria-current="page"] {
  color: var(--ink);
  font-weight: 600;
}

.app-bar__right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.app-bar__user {
  font-size: 13px;
  color: var(--body-dim);
  max-width: 210px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.beta-pill {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 10px;
  color: var(--body-dim);
  background: #fff;
  white-space: nowrap;
}

/* ------------------------------------------------------------ demo banner */
.demo-banner {
  background: #fff7e8;
  border-bottom: 1px solid #f0d9a8;
  color: #7a5410;
  font-size: 13.5px;
  line-height: 1.5;
  padding: 12px 0;
}

.demo-banner strong {
  color: #6b4708;
}

/* --------------------------------------------------------------- layout */
.dash {
  flex: 1;
  padding: 30px 0 64px;
}

.dash__grid {
  display: grid;
  grid-template-columns: minmax(0, 280px) minmax(0, 1fr);
  gap: 26px;
  align-items: start;
}

.dash__side {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  position: sticky;
  top: 88px;
}

.dash__side-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--body-dim);
  margin: 0 0 12px;
}

.dash__main {
  min-width: 0;
  display: grid;
  gap: 20px;
}

.panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 26px 28px;
  min-width: 0;
}

.panel--tight {
  padding: 20px 22px;
}

.panel h1,
.panel h2,
.panel h3 {
  font-family: var(--display);
  color: var(--ink);
  margin: 0 0 10px;
  letter-spacing: -.02em;
}

.panel h1 { font-size: 30px; }
.panel h2 { font-size: 21px; }
.panel h3 { font-size: 17px; }

.panel p { margin: 0 0 12px; }

.dash__new { width: 100%; margin-bottom: 18px; }

.muted { color: var(--body-dim); }
.small { font-size: 13.5px; }
.tiny { font-size: 12px; }

.eyebrow {
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--body-dim);
}

/* ------------------------------------------------------------ project list */
.project-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-item {
  width: 100%;
  text-align: left;
  border: 1px solid transparent;
  border-radius: 12px;
  background: var(--wash);
  padding: 11px 12px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  min-width: 0;
}

.project-item:hover { background: var(--wash-blue); }
.project-item[aria-current="true"] {
  border-color: var(--navy);
  background: #fff;
  box-shadow: var(--shadow-sm);
}

.project-item__name {
  font-weight: 650;
  font-size: 14.5px;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-item__meta {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
  margin-top: 5px;
  font-size: 12px;
  color: var(--body-dim);
}

/* --------------------------------------------------------------- statuses */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 650;
  background: var(--wash-blue);
  color: var(--body);
  white-space: nowrap;
}

.status-badge__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  flex: none;
}

.status-badge--progress { background: #eef3ff; color: #3459c7; }
.status-badge--ok { background: #ecfdf4; color: #177b57; }
.status-badge--warn { background: #fff7e8; color: #9b5b00; }
.status-badge--error { background: #fff1f0; color: #b42318; }
.status-badge--neutral { background: #f2f4f6; color: var(--body); }

.type-tag {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--body-dim);
}

/* ------------------------------------------------------------------ forms */
.field {
  display: block;
  margin: 0 0 16px;
  min-width: 0;
}

.field > span {
  display: block;
  font-size: 12px;
  font-weight: 650;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--body-dim);
  margin-bottom: 7px;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  font: inherit;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 13px;
  min-width: 0;
}

.field input:focus-visible,
.field select:focus-visible {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.choice-group {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
}

.choice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid var(--line);
  border-radius: 13px;
  padding: 14px 15px;
  background: #fff;
  cursor: pointer;
}

.choice input { margin-top: 3px; flex: none; }

.choice--selected {
  border-color: var(--navy);
  box-shadow: var(--shadow-sm);
}

.choice--disabled {
  opacity: .62;
  cursor: not-allowed;
  background: var(--wash);
}

.choice__title {
  font-weight: 650;
  color: var(--ink);
  font-size: 15px;
}

.choice__note {
  font-size: 13px;
  color: var(--body-dim);
  margin-top: 3px;
  line-height: 1.5;
}

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.btn--danger {
  background: #fff;
  border-color: #f0c7c2;
  color: #b42318;
}

.btn--quiet {
  background: transparent;
  border-color: transparent;
  color: var(--body-dim);
  text-decoration: underline;
  padding-left: 4px;
  padding-right: 4px;
}

.btn[disabled],
.btn[aria-disabled="true"] {
  opacity: .55;
  cursor: not-allowed;
}

.inline-note {
  font-size: 13px;
  line-height: 1.55;
  color: var(--body-dim);
}

.callout {
  /* home.css paints its hero callouts absolutely over the drawing; inside the
     product shell a callout is an inline notice, so it must stay in flow (an
     absolutely positioned notice floats over buttons and steals their clicks). */
  position: static;
  width: auto;
  box-shadow: none;
  border-radius: 13px;
  padding: 15px 16px;
  font-size: 13.5px;
  line-height: 1.55;
  border: 1px solid var(--line);
  background: var(--wash);
  color: var(--body);
  margin: 0 0 16px;
}

.callout::before { display: none; }
.callout h3 { margin: 0 0 8px; font-size: 15px; letter-spacing: -.01em; }
.callout p { font-size: 13.5px; }

.callout strong { color: var(--ink); }
.callout--info { background: var(--wash-blue); border-color: #d7e3f5; }
.callout--warn { background: #fff7e8; border-color: #f0d9a8; color: #7a5410; }
.callout--error { background: #fff7f6; border-color: #f0c7c2; color: #8b2c24; }
.callout--ok { background: #ecfdf4; border-color: #c6ecd9; color: #12603f; }

/* ----------------------------------------------------------------- upload */
.upload-zone {
  border: 1.5px dashed #c6d2e0;
  border-radius: 16px;
  padding: 30px 22px;
  text-align: center;
  background: var(--wash);
  min-width: 0;
}

.upload-zone--drag {
  border-color: var(--navy);
  background: var(--wash-blue);
}

.upload-zone__title {
  font-weight: 650;
  color: var(--ink);
  font-size: 16px;
  margin: 0 0 6px;
}

.upload-zone__hint {
  font-size: 13px;
  color: var(--body-dim);
  margin: 0 0 14px;
}

.file-input { display: none; }

.file-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  margin-top: 14px;
  text-align: left;
  min-width: 0;
}

.file-chip__name {
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.file-chip__meta {
  font-size: 12.5px;
  color: var(--body-dim);
  margin-left: 10px;
}

/* -------------------------------------------------------------- page grid */
.page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  margin: 6px 0 18px;
}

.page-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 8px;
  cursor: pointer;
  font: inherit;
  color: var(--ink);
  text-align: center;
  min-width: 0;
}

.page-card:hover { border-color: #b9c6d6; }

.page-card[aria-pressed="true"] {
  border-color: var(--navy);
  box-shadow: 0 0 0 2px rgba(7, 27, 53, .12);
}

.page-card__thumb {
  display: block;
  width: 100%;
  aspect-ratio: 1 / 1.35;
  object-fit: contain;
  background: var(--wash);
  border-radius: 8px;
  margin-bottom: 8px;
}

.page-card__label {
  font-size: 12.5px;
  font-weight: 600;
}

.page-card__hint {
  font-size: 11.5px;
  color: var(--body-dim);
}

.page-card--reviewed { border-color: #c6ecd9; }

/* -------------------------------------------------------------- progress */
.progress {
  display: grid;
  gap: 12px;
}

.progress__spinner {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid #e6ecf3;
  border-top-color: var(--navy);
  animation: romure-spin 1s linear infinite;
}

@keyframes romure-spin { to { transform: rotate(360deg); } }

.progress__steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 8px;
}

.progress__step {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 10px 11px;
  background: var(--wash);
}

.progress__step b {
  display: block;
  font-size: 10.5px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--body-dim);
}

.progress__step span {
  font-size: 12.5px;
  color: var(--ink);
}

.progress__step--active { border-color: var(--navy); background: #fff; }

/* --------------------------------------------------------------- results */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(122px, 1fr));
  gap: 10px;
  margin: 4px 0 18px;
}

.summary-box {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: #fff;
  min-width: 0;
}

.summary-box b {
  display: block;
  font-size: 21px;
  color: var(--ink);
  font-family: var(--display);
}

.summary-box span {
  display: block;
  font-size: 12px;
  color: var(--body-dim);
}

.finding-list {
  display: grid;
  gap: 10px;
  margin: 4px 0 18px;
  padding: 0;
  list-style: none;
}

.finding-row {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 14px;
  background: #fff;
  min-width: 0;
}

.finding-row__head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 6px;
}

.severity {
  font-size: 11px;
  font-weight: 750;
  border-radius: 999px;
  padding: 4px 9px;
  background: var(--wash-blue);
  color: var(--body);
  white-space: nowrap;
}

.severity--critical { background: #fff1f2; color: #9f1239; }
.severity--must_resolve { background: #fff7ed; color: #b54708; }
.severity--worth_confirming { background: #fff8e8; color: #a15c00; }
.severity--design_consideration { background: #f6f0ff; color: #5f3c8a; }
.severity--missing_information,
.severity--needs_evidence { background: #eef4ff; color: #3558b6; }
.severity--verified_ok { background: #ecfdf3; color: #147a55; }

.finding-row__title {
  font-weight: 650;
  color: var(--ink);
  font-size: 15px;
}

.finding-row__body {
  font-size: 13.5px;
  color: var(--body);
  line-height: 1.55;
  margin-top: 5px;
}

.finding-row__meta {
  font-size: 12px;
  color: var(--body-dim);
  margin-top: 6px;
}

/* ------------------------------------------------------------------ share */
.share-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 13px;
  background: var(--wash);
  margin-bottom: 8px;
  min-width: 0;
}

.share-row__link {
  font-size: 13px;
  color: var(--ink);
  overflow-wrap: anywhere;
  min-width: 0;
  flex: 1 1 220px;
}

.share-row__meta { font-size: 12px; color: var(--body-dim); }

/* --------------------------------------------------------- payment status */
.pay-table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.pay-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 0;
  font-size: 13px;
}

.pay-table caption {
  text-align: left;
  padding: 10px 12px 0;
}

.pay-table th,
.pay-table td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}

.pay-table th {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--body-dim);
  background: var(--wash);
}

.pay-table tr:last-child td { border-bottom: none; }

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  letter-spacing: -.01em;
}

/* -------------------------------------------------------------- auth page */
.auth-wrap {
  flex: 1;
  display: grid;
  place-items: center;
  padding: 40px 0 64px;
}

.auth-card {
  width: min(100%, 468px);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 34px 34px 30px;
  box-shadow: var(--shadow-sm);
}

.auth-card h1 {
  font-family: var(--display);
  font-size: 27px;
  color: var(--ink);
  margin: 10px 0 8px;
  letter-spacing: -.02em;
}

.auth-switch {
  font-size: 13.5px;
  color: var(--body-dim);
  margin-top: 18px;
  text-align: center;
}

.auth-switch a { color: var(--ink); font-weight: 600; }

/* ------------------------------------------------------------- pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(258px, 1fr));
  gap: 20px;
  align-items: stretch;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 28px 26px;
  min-width: 0;
}

.plan-card--featured {
  border-color: var(--navy);
  box-shadow: var(--shadow-md, 0 18px 44px rgba(7, 27, 53, .12));
}

.plan-card__badge {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .07em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 5px 10px;
  background: var(--wash-blue);
  color: var(--ink);
}

.plan-card__name {
  font-family: var(--display);
  font-size: 21px;
  color: var(--ink);
  margin: 4px 0 0;
}

.plan-card__tagline { font-size: 14px; color: var(--body-dim); margin: 0; }

.plan-card__price { display: flex; flex-direction: column; gap: 3px; margin: 6px 0 2px; }

.plan-card__amount {
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.plan-card__unit { font-size: 13px; color: var(--body-dim); }
.plan-card__note { font-size: 13px; color: var(--body-dim); margin: 0; min-height: 40px; }

.plan-card__features {
  list-style: none;
  margin: 4px 0 18px;
  padding: 0;
  display: grid;
  gap: 8px;
  font-size: 14px;
  color: var(--body);
}

.plan-card__feature::before {
  content: "✓";
  color: #177b57;
  font-weight: 700;
  margin-right: 8px;
}

.plan-card__cta { margin-top: auto; align-self: flex-start; }

.compare {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
  margin-top: 8px;
}

.compare th,
.compare td {
  border-bottom: 1px solid var(--line);
  padding: 12px 12px;
  text-align: left;
  vertical-align: top;
}

.compare th[scope="row"] { color: var(--body-dim); font-weight: 600; width: 34%; }

.compare-wrap { overflow-x: auto; }

/* ------------------------------------------------------------------ legal */
.prose { max-width: 780px; }
.prose h2 { font-family: var(--display); color: var(--ink); font-size: 20px; margin: 28px 0 8px; }
.prose p, .prose li { font-size: 15px; line-height: 1.65; }
.prose ul { padding-left: 20px; }

/* ----------------------------------------------------------------- footer */
.app-foot {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 0;
  font-size: 12.5px;
  color: var(--body-dim);
}

.app-foot__inner {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
}

.app-foot a { color: var(--body); }

/* ------------------------------------------------------------- responsive */
@media (max-width: 1000px) {
  .dash__grid { grid-template-columns: minmax(0, 1fr); }
  .dash__side { position: static; }
}

@media (max-width: 720px) {
  .app-bar__nav { display: none; }
  .app-bar__user { max-width: 130px; }
  .panel { padding: 20px 18px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .panel h1 { font-size: 24px; }
  .finding-row__head { gap: 6px; }
  .auth-card { padding: 26px 20px; border-radius: 16px; }
  .page-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); }
  .summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  .progress__spinner { animation: none; }
}
