/* Checkout / app flows — DESIGN.md dials 4 / 3 / 5 */
.app-main {
  position: relative;
  z-index: 1;
  max-width: 640px;
  margin: 0 auto;
  padding: 28px 20px 56px;
}

.page-head {
  margin-bottom: 28px;
}

.page-head .eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold-soft);
  background: linear-gradient(135deg, var(--accent-dim), rgba(212, 175, 55, 0.12));
  border: 1px solid rgba(212, 175, 55, 0.22);
  border-radius: 999px;
  padding: 4px 12px;
  margin-bottom: 10px;
}

.page-head h1 {
  font-size: clamp(1.55rem, 4vw, 1.85rem);
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.page-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.95rem;
  max-width: 52ch;
  line-height: 1.55;
}

.checkout-card {
  background: var(--surface);
  border: 1px solid var(--surface-border);
  border-radius: var(--radius-lg);
  padding: 22px 20px;
  margin-bottom: var(--space-4);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(10px);
}

.checkout-card label {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 14px 0 6px;
}

.checkout-card label:first-of-type {
  margin-top: 0;
}

.checkout-card select,
.checkout-card input {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(5, 8, 13, 0.65);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.checkout-card select:focus-visible,
.checkout-card input:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.checkout-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

@media (max-width: 560px) {
  .checkout-row {
    grid-template-columns: 1fr;
  }
}

button.checkout-primary {
  appearance: none;
  border: 0;
  border-radius: var(--radius-md);
  padding: 15px 18px;
  min-height: 48px;
  font-weight: 700;
  cursor: pointer;
  background: var(--accent-gradient);
  color: #042f2e;
  width: 100%;
  margin-top: var(--space-4);
  font-size: 1rem;
  font-family: inherit;
  transition: transform 0.2s ease, filter 0.2s ease, opacity 0.2s ease;
}

button.checkout-primary.checkout-primary--gold {
  background: linear-gradient(135deg, var(--gold-soft), var(--gold));
  color: #1a1408;
  box-shadow: 0 4px 20px rgba(212, 175, 55, 0.22);
}

button.checkout-primary:hover:not(:disabled) {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

button.checkout-secondary {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  padding: 12px 16px;
  min-height: 44px;
  font-weight: 600;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  width: 100%;
  margin-top: var(--space-3);
  font-size: 0.95rem;
  font-family: inherit;
}

button.checkout-primary:disabled,
button.checkout-secondary:disabled {
  opacity: 0.42;
  cursor: not-allowed;
  transform: none;
}

.muted {
  color: var(--muted);
  font-size: 0.9rem;
}

.err {
  color: var(--danger);
  font-size: 0.9rem;
  white-space: pre-wrap;
  margin-top: var(--space-2);
}

.hint-line {
  margin-top: var(--space-2);
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.4;
}

.checkout-foot {
  margin-top: 14px;
  font-size: 0.88rem;
  color: var(--muted);
  line-height: 1.45;
}

.quote-panel {
  margin-top: var(--space-4);
  padding: var(--space-4);
  border-radius: var(--radius-md);
  border: 1px solid var(--surface-border);
  background: rgba(5, 8, 13, 0.55);
}

.quote-panel dl {
  margin: 0;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 14px;
  font-size: 0.9rem;
}

.quote-panel dt {
  color: var(--muted);
  margin: 0;
}

.quote-panel dd {
  margin: 0;
  text-align: right;
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
}

.quote-timer {
  margin-top: var(--space-3);
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--cyan);
  font-variant-numeric: tabular-nums;
  font-family: var(--mono);
}

#status {
  min-height: 1.25em;
}

.steps {
  display: flex;
  gap: var(--space-2);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.step-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--muted);
}

.step-pill.is-active {
  border-color: var(--surface-border);
  color: var(--cyan);
  background: var(--accent-dim);
}

.step-pill.is-done {
  color: var(--up);
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  color: var(--muted);
}

.trust-strip span::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 6px;
  vertical-align: middle;
  opacity: 0.85;
}

.checkout-card .section-title {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 0 0 14px;
}

.page-head .sub {
  color: var(--muted);
  margin: 0;
  font-size: 0.95rem;
  max-width: 42em;
}

.checkout-card h2.section-title {
  font-size: 0.72rem;
}

pre.checkout-debug {
  font-size: 11px;
  font-family: var(--mono);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 12px;
  border-radius: var(--radius-md);
  overflow: auto;
  max-height: 220px;
  color: #cbd5e1;
}

.pill {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  font-size: 0.72rem;
  color: var(--muted);
}

details.checkout-dev {
  border: 1px dashed rgba(255, 255, 255, 0.15);
  background: rgba(0, 0, 0, 0.25);
  border-radius: var(--radius-lg);
  padding: 0 16px 16px;
  margin-top: var(--space-2);
}

details.checkout-dev > summary {
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  padding: 14px 0;
  list-style: none;
}

details.checkout-dev > summary::-webkit-details-marker {
  display: none;
}

#linkShortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
  margin: 10px 0;
}

#linkShortcuts button {
  width: auto;
  margin-top: 0;
  padding: 8px 12px;
  font-size: 0.8rem;
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.12);
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
}

.chk {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-top: var(--space-3);
  font-size: 0.88rem;
  color: var(--muted);
}

.chk input {
  width: auto;
  margin-top: 3px;
  min-height: auto;
}

.checkout-card--action {
  padding-top: 8px;
}

.checkout-card--action .hint-line {
  margin-top: 12px;
}

.checkout-card--action .hint-line a {
  color: var(--gold-soft);
}
