/* Site-wide overrides and helpers built on top of colors_and_type.css */

html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font-ui);
  color: var(--color-ink);
  background: var(--color-surface-canvas-light);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { color: inherit; text-decoration: none; }
button { font-family: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

/* App container fades route transitions a touch */
.route-fade {
  animation: routeIn 280ms ease-out;
}
@keyframes routeIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Utility — buttons */
.btn-primary {
  background: #fff; color: #1f1633; border: none;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2px;
  padding: 14px 22px; border-radius: 8px; cursor: pointer;
  box-shadow: 0 2px 8px 0 rgba(0,0,0,0.08);
  transition: background 150ms ease-out;
}
.btn-primary:active { background: #f0f0f0; color: #1a1a1a; }

.btn-ghost-dark {
  background: rgba(255,255,255,0.18); color: #fff; border: none;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2px;
  padding: 14px 22px; border-radius: 12px; cursor: pointer;
  transition: background 150ms ease-out;
}
.btn-ghost-dark:hover { background: rgba(255,255,255,0.26); }

.btn-dark {
  background: #150f23; color: #fff; border: none;
  font-family: var(--font-ui); font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.2px;
  padding: 14px 22px; border-radius: 8px; cursor: pointer;
  transition: background 150ms ease-out;
}
.btn-dark:active { background: #efefef; color: #1a1a1a; }

.btn-light-outline {
  background: transparent; color: #1f1633; border: 1px solid #cfcfdb;
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2px;
  padding: 12px 18px; border-radius: 8px; cursor: pointer;
}

/* Input */
.txt-input {
  width: 100%; padding: 12px 14px; border: 1px solid #cfcfdb;
  border-radius: 6px; font-family: var(--font-ui); font-size: 15px;
  background: #fff; color: #1f1633; outline: none;
  transition: box-shadow 150ms ease, border-color 150ms ease;
}
.txt-input:focus {
  border-color: #79628c;
  box-shadow: inset 0 2px 10px rgba(0,0,0,0.08), 0 0 0 3px rgba(59,130,246,0.5);
}
.txt-input.dark {
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
  color: #fff;
}
.txt-input.dark::placeholder { color: rgba(255,255,255,0.5); }

/* Status pill */
.status-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 9999px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18);
  font-family: var(--font-ui); font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.25px;
  color: rgba(255,255,255,0.85);
}
.status-pill .dot {
  width: 6px; height: 6px; border-radius: 9999px; background: #c2ef4e;
  box-shadow: 0 0 8px #c2ef4e;
}

/* Eyebrow text */
.eyebrow {
  font-family: var(--font-ui); font-size: 13px; font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.2px;
}

/* Code chip — for inline accents like email addresses or barcodes */
.code-chip {
  font-family: var(--font-code); font-size: 0.92em;
  background: rgba(194,239,78,0.16); color: #1f1633;
  border: 1px solid rgba(194,239,78,0.6);
  padding: 2px 8px; border-radius: 4px;
}
.code-chip.dark {
  background: rgba(194,239,78,0.16); color: #c2ef4e;
  border: 1px solid rgba(194,239,78,0.4);
}

/* Card */
.card-light {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 12px;
  box-shadow: 0 10px 15px -3px rgba(0,0,0,0.04), 0 4px 6px -4px rgba(0,0,0,0.04);
}
.card-dark {
  background: #150f23; border: 1px solid #362d59; border-radius: 12px;
}

/* Starfield (matches design system) */
.starfield {
  background-color: var(--color-surface-canvas-dark);
  background-image:
    radial-gradient(rgba(255,255,255,0.55) 1px, transparent 1.2px),
    radial-gradient(rgba(255,255,255,0.30) 1px, transparent 1.2px);
  background-size: 120px 120px, 73px 73px;
  background-position: 0 0, 37px 51px;
}

/* Container */
.container { max-width: 1152px; margin: 0 auto; padding: 0 32px; }

/* Hairline divider */
.hr-dark { border: 0; border-top: 1px solid #362d59; margin: 0; }
.hr-light { border: 0; border-top: 1px solid #e5e7eb; margin: 0; }

/* Soft selection */
::selection { background: #c2ef4e; color: #1f1633; }

/* Scrollbar (subtle) */
* { scrollbar-width: thin; scrollbar-color: #cfcfdb transparent; }

/* Cart drawer transitions */
.drawer-backdrop { background: rgba(21,15,35,0.6); }

/* Footer squiggle row spacing (light pages) */
.squiggle-row { width: 100%; height: 24px; line-height: 0; }
.squiggle-row img { width: 100%; height: 24px; display: block; }

/* Marquee-ish logo strip */
.logos-strip {
  display: flex; align-items: center; justify-content: space-around;
  gap: 48px; opacity: 0.55; flex-wrap: wrap;
}
.logos-strip span {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: -0.01em; color: rgba(255,255,255,0.85);
}

/* Toast */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%);
  background: #150f23; color: #fff; padding: 12px 20px;
  border-radius: 9999px; box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  font-family: var(--font-ui); font-size: 14px; font-weight: 500;
  border: 1px solid #362d59;
  z-index: 200;
  animation: toastIn 200ms ease-out;
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 8px); }
  to   { opacity: 1; transform: translate(-50%, 0); }
}
