/* TapCall shop — Warm Terminal essential.
   Style: light, IBM Plex Mono, sober. Refinements come later. */

:root {
  --color-bg:               #fdfcfc;
  --color-surface:          #f8f7f7;
  --color-surface-2:        #f1f0f0;
  --color-text:             #636262;
  --color-text-secondary:   #999898;
  --color-text-muted:       #cfcdcd;
  --color-text-strong:      #201e1e;
  --color-border-subtle:    hsla(0, 100%, 3%, 0.12);
  --color-border:           hsla(0, 100%, 3%, 0.18);
  --color-success:          #22c55e;
  --color-warning:          #f59e0b;
  --color-danger:           #ef4444;
  --color-primary:          #201e1e;
  --color-primary-text:     #fdfcfc;

  --r-md: 8px;
  --r-lg: 12px;

  --maxw: 720px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  background: var(--color-bg);
  color: var(--color-text);
  font-family: "IBM Plex Mono", monospace;
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: var(--color-text-strong); text-decoration: none; border-bottom: 1px solid var(--color-border-subtle); }
a:hover { border-bottom-color: var(--color-text-strong); }

.shell {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 1.25rem 1rem 2rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* ============== TOPBAR ============== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0 1.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
  margin-bottom: 2rem;
}
.brand {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--color-text-strong);
}
.nav-links { display: flex; gap: 1rem; }
.nav-link {
  font-size: 12px;
  color: var(--color-text-secondary);
  border-bottom: none;
}
.nav-link:hover { color: var(--color-text-strong); }

/* ============== CONTENT ============== */
.content { flex: 1; }

/* ============== HERO ============== */
.hero {
  text-align: center;
  margin-bottom: 2.5rem;
}
.hero h1 {
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--color-text-strong);
  margin-bottom: 0.5rem;
  letter-spacing: -0.02em;
}
.hero .lead {
  font-size: 14px;
  color: var(--color-text-secondary);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.55;
}

/* ============== PRODUCT ============== */
.product {
  margin-bottom: 2rem;
}
.product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--r-lg);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1.5rem;
  align-items: start;
}

.product-visual { display: flex; justify-content: center; }
.tag-mockup {
  width: 120px;
  height: 120px;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.tag-mockup::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed var(--color-text-muted);
  border-radius: 50%;
}
.tag-mockup-inner {
  font-size: 11px;
  letter-spacing: 1.5px;
  color: var(--color-text-strong);
  font-weight: 600;
}

.product-info { display: flex; flex-direction: column; gap: 1rem; }

.product-name {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-strong);
}
.product-desc {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.55;
}

.price-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}
.price {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-text-strong);
}
.price-note {
  font-size: 11px;
  color: var(--color-text-muted);
}

.qty-row { display: flex; align-items: center; gap: 0.75rem; }
.qty-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}
.qty-input {
  display: flex;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  background: var(--color-bg);
  overflow: hidden;
}
.qty-input input {
  width: 56px;
  border: none;
  text-align: center;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  color: var(--color-text-strong);
  padding: 8px 0;
}
.qty-input input::-webkit-inner-spin-button,
.qty-input input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-input input { -moz-appearance: textfield; }
.qty-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 16px;
  color: var(--color-text-strong);
  font-family: inherit;
}
.qty-btn:hover { background: var(--color-surface-2); }

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border-subtle);
}
.total-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--color-text-secondary);
}
.total-amount {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--color-text-strong);
}

.cta-primary {
  width: 100%;
  padding: 14px 20px;
  background: var(--color-primary);
  color: var(--color-primary-text);
  border: none;
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  letter-spacing: 0.5px;
  transition: opacity 0.15s;
}
.cta-primary:hover { opacity: 0.85; }
.cta-primary:disabled { opacity: 0.5; cursor: not-allowed; }

.cta-secondary {
  display: inline-block;
  padding: 10px 18px;
  background: transparent;
  color: var(--color-text-strong);
  border: 1px solid var(--color-border);
  border-radius: var(--r-md);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.cta-secondary:hover { background: var(--color-surface); }

.error-msg {
  font-size: 12px;
  color: var(--color-danger);
  padding: 8px 10px;
  border: 1px solid var(--color-danger);
  border-radius: var(--r-md);
  background: rgba(239, 68, 68, 0.05);
}

/* ============== TRUST STRIP ============== */
.trust {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--color-border-subtle);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--r-md);
  overflow: hidden;
}
.trust-item {
  background: var(--color-bg);
  padding: 1rem 0.85rem;
  text-align: center;
}
.trust-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--color-text-muted);
  margin-bottom: 0.4rem;
}
.trust-value {
  font-size: 12px;
  color: var(--color-text-strong);
  font-weight: 500;
  line-height: 1.4;
}

/* ============== STATUS PAGES (success/cancel) ============== */
.status-card {
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--r-lg);
  padding: 2.5rem 1.5rem;
  margin: 2rem 0;
}
.status-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  margin: 0 auto 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 600;
}
.status-icon.success { background: rgba(34, 197, 94, 0.12); color: var(--color-success); }
.status-icon.cancel  { background: rgba(245, 158, 11, 0.12); color: var(--color-warning); }
.status-title {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--color-text-strong);
  margin-bottom: 0.6rem;
}
.status-message {
  font-size: 13px;
  color: var(--color-text-secondary);
  line-height: 1.6;
  max-width: 420px;
  margin: 0 auto 1.5rem;
}
.status-actions {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============== FOOTER ============== */
.footer {
  text-align: center;
  font-size: 11px;
  color: var(--color-text-muted);
  padding-top: 2rem;
  border-top: 1px solid var(--color-border-subtle);
  margin-top: 2rem;
  letter-spacing: 0.5px;
}
.footer a { color: var(--color-text-muted); border: none; }
.footer a:hover { color: var(--color-text-strong); }

/* ============== RESPONSIVE ============== */
@media (max-width: 540px) {
  .hero h1 { font-size: 1.45rem; }
  .product-card {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .product-visual { padding: 0.5rem 0; }
  .trust { grid-template-columns: 1fr; }
  .trust-item { padding: 0.85rem; text-align: left; display: flex; justify-content: space-between; }
  .trust-label { margin-bottom: 0; }
}
