:root {
  --bg: #05060a;
  --navy: #030d34;
  --blue: #002be8;
  --coral: #fc533e;
  --text: #f4f6fb;
  --muted: #a8b1c8;
  --card: #0c1222;
  --line: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  min-height: 100vh;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(0, 43, 232, 0.28), transparent 60%),
    radial-gradient(700px 360px at -10% 20%, rgba(252, 83, 62, 0.16), transparent 55%),
    var(--bg);
  color: var(--text);
  font-family: Outfit, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

img { max-width: 100%; height: auto; }

.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 0;
}

.logo-plate {
  display: inline-block;
  max-width: 100%;
  background: #ffffff;
  border-radius: 16px;
  padding: 8px 12px;
  line-height: 0;
  text-decoration: none;
}

.logo { display: block; width: min(420px, 72vw); }

.nav-links { display: flex; align-items: center; gap: 18px; }

.nav-links a { color: var(--muted); text-decoration: none; font-weight: 600; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.btn-coral { background: var(--coral); color: white; }
.btn-coral:hover { background: #ff6a54; }
.btn-ghost { background: transparent; color: var(--text); border: 1px solid var(--line); }
.btn-blue { background: var(--blue); color: white; }

.hero, .section { padding: 18px 0 48px; }

.hero-grid, .split {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 36px;
  align-items: center;
}

.hero-grid > *,
.split > * {
  min-width: 0;
}

h1, h2, h3 { line-height: 1.05; margin: 0 0 12px; overflow-wrap: break-word; }

h1 { font-size: clamp(42px, 6vw, 72px); letter-spacing: -0.045em; }

h2 { font-size: 32px; letter-spacing: -0.03em; }

.lede { color: var(--muted); font-size: 19px; max-width: 560px; overflow-wrap: anywhere; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 28px; }

.card, .panel {
  background: rgba(12, 18, 34, 0.88);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 20px;
  box-shadow: var(--shadow);
}

.step-no {
  color: var(--coral);
  font-weight: 800;
  letter-spacing: 0.14em;
  font-size: 12px;
}

.muted { color: var(--muted); }
.fine { color: var(--muted); font-size: 14px; }

.banner {
  background: #102018;
  border: 1px solid rgba(110, 220, 150, 0.35);
  color: #d9ffe8;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 18px;
}

.form-error {
  background: #2a1014;
  border: 1px solid rgba(252, 83, 62, 0.45);
  color: #ffd0c8;
  border-radius: 12px;
  padding: 12px 14px;
  margin: 0 0 18px;
}

label { display: block; font-weight: 600; margin: 14px 0 6px; }

input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
textarea,
select {
  width: 100%;
  max-width: 100%;
  background: #070b16;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font: inherit;
  font-size: 16px;
}

textarea { min-height: 110px; resize: vertical; }

input:focus, textarea:focus, select:focus {
  outline: 2px solid var(--blue);
  border-color: transparent;
}

.field-error { color: #ffb0a4; font-size: 14px; margin: 6px 0 0; }

.check { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.check input { width: auto; }

.choices { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 12px; }

.choice {
  position: relative;
  min-width: 0;
  max-width: 100%;
}

.choice input { position: absolute; opacity: 0; }

.choice span {
  display: inline-flex;
  min-width: 92px;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
  font-weight: 700;
}

.choice input:checked + span,
.choice input:focus-visible + span {
  background: var(--blue);
  border-color: var(--blue);
}

.designs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 8px 0 16px; }
.design { position: relative; min-width: 0; }
.design input { position: absolute; opacity: 0; }
.design span {
  display: block;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: #101628;
}
.design strong { display: block; color: var(--text); }
.design em { display: block; margin-top: 4px; font-style: normal; color: var(--text); font-size: 13px; font-weight: 500; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 50%; margin-right: 8px; vertical-align: -2px; border: 1px solid rgba(255,255,255,.4); }
.design input:checked + span,
.design input:focus-visible + span { border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }

.look-preview { margin: 8px 0 12px; max-width: 100%; min-width: 0; }

.certificate {
  width: 100% !important;
  max-width: 100%;
  table-layout: fixed;
}

.certificate .cert-logo,
.certificate img {
  max-width: 100% !important;
  height: auto !important;
}

.certificate .cert-logo-plate {
  max-width: 100%;
}

.cert-business,
.cert-for,
.cert-message,
.cert-terms,
.cert-eyebrow,
.cert-code {
  overflow-wrap: anywhere;
}

.sales-scroll {
  display: block;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.sales-scroll .sales { min-width: 36rem; }

.sales { width: 100%; border-collapse: collapse; font-size: 14px; }
.sales th, .sales td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.sales th { color: var(--muted); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; }

code { font-family: ui-monospace, Consolas, monospace; color: white; }

.site-footer { color: var(--muted); padding: 10px 0 40px; font-size: 14px; }

@media (max-width: 860px) {
  .hero-grid, .split, .steps { grid-template-columns: 1fr; }
  .wrap { width: min(1120px, calc(100% - 28px)); }
  .nav {
    flex-wrap: wrap;
    align-items: center;
    gap: 10px 12px;
    padding: 14px 0;
  }
  .nav > a.logo-plate { display: inline-block; max-width: 100%; flex: 0 1 auto; }
  .logo { width: min(200px, calc(68vw - 28px)); max-width: 100%; height: auto; }
  .nav-links {
    flex: 1 1 auto;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px 12px;
    margin-left: auto;
    max-width: 100%;
    min-width: 0;
  }
  .nav-links a:not(.btn) {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 2px;
  }
  .nav-links .btn { min-height: 44px; padding: 10px 14px; white-space: nowrap; }
  .hero, .section { padding: 8px 0 32px; }
  h1 { font-size: clamp(34px, 10vw, 56px); }
  h2 { font-size: clamp(26px, 7vw, 32px); }
  .lede { font-size: 17px; }
  .card, .panel { padding: 16px; }
  .actions .btn { min-height: 48px; flex: 1 1 160px; }
  .choices { gap: 8px; }
  .choice { flex: 1 1 calc(50% - 8px); }
  .choice span {
    width: 100%;
    min-height: 48px;
    padding: 12px 10px;
    white-space: normal;
    text-align: center;
  }
  .design { min-width: 0; }
  .design span { min-height: 48px; height: 100%; }
  .check { min-height: 48px; }
  .check input { width: 22px; height: 22px; flex: 0 0 auto; }
  input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]):not([type="submit"]):not([type="button"]),
  textarea,
  select { min-height: 48px; }
  .certificate > tbody > tr > td { padding-left: 16px !important; padding-right: 16px !important; }
  .certificate table,
  .certificate .cert-logo-plate { width: auto !important; max-width: 100% !important; }
  .certificate .cert-logo,
  .certificate img { width: min(180px, 100%) !important; }
  .certificate .cert-business { font-size: 24px !important; line-height: 1.15 !important; }
  .certificate .cert-amount { font-size: 34px !important; }
  .certificate .cert-for,
  .certificate .cert-message { font-size: 15px !important; }
  .certificate .cert-code {
    font-size: 15px !important;
    letter-spacing: 0.04em !important;
    padding: 12px !important;
  }
  .catalog-sell a { display: inline-flex; align-items: center; min-height: 44px; }
}

@media (max-width: 480px) {
  .designs { grid-template-columns: 1fr; }
  .choice { flex-basis: 100%; }
}

/* Homepage sits on near-black. Keep copy near-white; leave dashboard form colors alone. */
.page-home {
  color: #f7f8fc;
}

.page-home h1,
.page-home h2,
.page-home h3 {
  color: #ffffff;
}

.page-home .lede {
  color: #f7f8fc;
}

.page-home .muted,
.page-home .nav-links a:not(.btn),
.page-home .site-footer {
  color: #eef2fb;
}

.page-catalog {
  color: #f7f8fc;
}

.page-catalog h1,
.page-catalog h2,
.page-catalog h3 {
  color: #ffffff;
}

.page-catalog .lede,
.page-catalog .catalog-desc,
.page-catalog .catalog-custom,
.page-catalog .nav-links a:not(.btn),
.page-catalog .site-footer {
  color: #eef2fb;
}

.catalog h1 { font-size: clamp(32px, 4vw, 48px); }

.catalog-list { display: grid; gap: 16px; margin-top: 28px; }

a.catalog-card {
  display: block;
  text-decoration: none;
  color: #f7f8fc;
}

a.catalog-card:hover { border-color: var(--coral); }

.catalog-business {
  margin: 0 0 8px;
  color: #ffffff;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-desc {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin: 0;
}

.catalog-amounts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
}

.catalog-amounts li {
  color: #ffffff;
  background: var(--blue);
  border-radius: 999px;
  padding: 6px 12px;
  font-weight: 700;
}

.catalog-custom { margin: 12px 0 0; font-size: 14px; }

.catalog-empty p { margin: 0; color: #f7f8fc; }

.catalog-sell {
  margin: 36px 0 0;
  text-align: center;
  font-size: 14px;
}

.catalog-sell a {
  color: #ffd7d1;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.page-home .nav-links a.btn-coral,
.page-catalog .nav-links a.btn-coral {
  color: #ffffff;
}

.catalog-search-label {
  display: block;
  margin: 22px 0 8px;
  color: #f7f8fc;
  font-weight: 700;
}

.catalog-search {
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
  margin: 0;
  background: #070b16;
  color: #f7f8fc;
  caret-color: #f7f8fc;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 12px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px;
  line-height: 1.4;
  -webkit-appearance: none;
  appearance: none;
}

.catalog-search::placeholder {
  color: #d5dced;
  opacity: 1;
}

.catalog-search::-webkit-search-decoration,
.catalog-search::-webkit-search-cancel-button {
  -webkit-appearance: none;
  appearance: none;
}

.page-catalog .catalog-search {
  color: #f7f8fc;
  background: #070b16;
}

.catalog-none {
  margin: 16px 0 0;
  color: #f7f8fc;
  font-weight: 600;
}

.catalog-card[hidden],
.catalog-none[hidden] {
  display: none !important;
}

.designs[hidden] { display: none !important; }
.design strong,
.design em { overflow-wrap: break-word; }
.design-categories,
.look-preview { max-width: 100%; min-width: 0; }
.design-categories .choice { max-width: 100%; }
.design-categories .choice span {
  max-width: 100%;
  white-space: normal;
  text-align: center;
}
.split > *,
.hero-grid > * { min-width: 0; }
