/* Label Relativity Theory — Co-Parent Signal Decoder */
:root {
  --bg: #090b10;
  --bg-2: #11151d;
  --bg-3: #171d28;
  --ink: #f8f1e7;
  --ink-2: #d8cfbf;
  --muted: #a89f90;
  --line: rgba(248, 241, 231, 0.13);
  --gold: #d6a75a;
  --gold-2: #f0cf8a;
  --copper: #b66b38;
  --danger: #e67a57;
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
  --radius: 24px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 15% 8%, rgba(214, 167, 90, .14), transparent 30%),
    radial-gradient(circle at 82% 20%, rgba(182, 107, 56, .16), transparent 30%),
    linear-gradient(180deg, #080a0f 0%, #10131a 44%, #080a0f 100%);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; }
.shell { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }
.skip-link { position: absolute; left: -999px; top: 1rem; padding: .75rem 1rem; background: var(--gold); color: #100d08; z-index: 10; }
.skip-link:focus { left: 1rem; }

.site-header {
  position: sticky; top: 0; z-index: 5;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 18px clamp(20px, 4vw, 54px);
  background: rgba(9, 11, 16, .78);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: .8rem; }
.brand-mark {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(214,167,90,.48); color: var(--gold-2); letter-spacing: -.05em;
  background: radial-gradient(circle, rgba(214,167,90,.16), rgba(255,255,255,.02));
}
.brand strong { display: block; font-family: Georgia, 'Times New Roman', serif; font-size: 1.08rem; letter-spacing: .01em; }
.brand small { display: block; color: var(--muted); text-transform: uppercase; font-size: .68rem; letter-spacing: .16em; }
nav { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; color: var(--ink-2); }
nav a:not(.button) { font-size: .94rem; color: var(--ink-2); }
nav a:hover { color: var(--gold-2); }

.hero { min-height: 72vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr); gap: clamp(2rem, 6vw, 5rem); align-items: center; padding: clamp(70px, 11vw, 140px) 0 60px; }
.eyebrow { margin: 0 0 .85rem; color: var(--gold-2); text-transform: uppercase; letter-spacing: .18em; font-size: .78rem; font-weight: 700; }
h1, h2, h3 { margin: 0; font-family: Georgia, 'Times New Roman', serif; font-weight: 500; line-height: 1.05; }
h1 { font-size: clamp(3.3rem, 9vw, 7.8rem); letter-spacing: -.075em; max-width: 880px; }
h2 { font-size: clamp(2rem, 5vw, 4.1rem); letter-spacing: -.05em; }
h3 { font-size: 1.45rem; letter-spacing: -.02em; }
.lead { max-width: 710px; margin: 1.35rem 0 0; font-size: clamp(1.1rem, 2vw, 1.42rem); color: var(--ink-2); }
.hero-actions, .toolbar { display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; margin-top: 1.6rem; }
.button {
  border: 1px solid rgba(214,167,90,.62); border-radius: 999px; color: #0d0b08; background: linear-gradient(135deg, var(--gold-2), var(--gold));
  padding: .86rem 1.18rem; font-weight: 800; cursor: pointer; box-shadow: 0 12px 30px rgba(214,167,90,.18);
}
.button:hover { transform: translateY(-1px); }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line); box-shadow: none; }
.button-small { padding: .62rem .9rem; font-size: .87rem; }
.text-button { background: transparent; border: 0; color: var(--gold-2); padding: 0; cursor: pointer; font-weight: 700; }

.signal-panel { border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.03)); box-shadow: var(--shadow); }
.signal-panel div { padding: 1.25rem; border-bottom: 1px solid var(--line); }
.signal-panel div:last-child { border-bottom: 0; }
.signal-panel span { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; }
.signal-panel strong { display: block; margin-top: .25rem; font-size: 1.15rem; color: var(--ink); }

.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 5rem; }
.stats div { padding: 1.2rem; border: 1px solid var(--line); border-radius: 18px; background: rgba(255,255,255,.04); }
.stats strong { display: block; font-size: 2rem; color: var(--gold-2); font-family: Georgia, 'Times New Roman', serif; }
.stats span { color: var(--muted); }

.section-card { padding: clamp(1.2rem, 3vw, 2rem); border: 1px solid var(--line); border-radius: var(--radius); background: rgba(255,255,255,.05); box-shadow: var(--shadow); }
.section-heading { max-width: 800px; margin-bottom: 1.4rem; }
.section-heading p:not(.eyebrow) { color: var(--muted); margin: .75rem 0 0; font-size: 1.05rem; }
.split { display: flex; justify-content: space-between; gap: 1.5rem; align-items: end; max-width: none; }
textarea, input, select {
  width: 100%; border: 1px solid var(--line); border-radius: 18px; background: rgba(7,9,13,.72); color: var(--ink);
  padding: 1rem 1rem; outline: none;
}
textarea:focus, input:focus, select:focus { border-color: rgba(214,167,90,.72); box-shadow: 0 0 0 4px rgba(214,167,90,.1); }
textarea { resize: vertical; }
.meta { color: var(--muted); font-size: .94rem; }
.hidden, .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }

.result-grid, .label-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin-top: 1rem; }
.labels { padding: 6rem 0 2rem; }
.search-box { width: min(430px, 100%); }
.filters { display: flex; gap: .55rem; flex-wrap: wrap; margin: 1rem 0; }
.filter-pill {
  border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.035); color: var(--ink-2);
  padding: .55rem .8rem; cursor: pointer; font-size: .88rem;
}
.filter-pill[aria-pressed="true"] { border-color: rgba(214,167,90,.8); color: var(--gold-2); background: rgba(214,167,90,.12); }
.muted-toolbar { justify-content: space-between; margin: .8rem 0 0; }

.label-card {
  border: 1px solid var(--line); border-radius: 20px; padding: 1rem; background: linear-gradient(180deg, rgba(255,255,255,.07), rgba(255,255,255,.025));
  min-height: 100%; display: flex; flex-direction: column; gap: .8rem;
}
.card-top { display: flex; justify-content: space-between; gap: .6rem; align-items: start; }
.tag, .charge { display: inline-flex; align-items: center; border-radius: 999px; padding: .28rem .55rem; font-size: .72rem; color: var(--ink-2); border: 1px solid var(--line); }
.charge { color: var(--gold-2); }
dl { margin: 0; display: grid; gap: .72rem; }
dt { color: var(--gold-2); font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; font-weight: 800; }
dd { margin: .18rem 0 0; color: var(--ink-2); font-size: .92rem; }
.copy-repair { align-self: start; margin-top: auto; }
.center-row { text-align: center; margin: 2rem 0 0; }

.api { margin-top: 5rem; display: grid; grid-template-columns: 1fr minmax(300px, 420px); gap: 2rem; align-items: start; }
.api-copy p:not(.eyebrow) { color: var(--ink-2); font-size: 1.04rem; }
.small-note { color: var(--muted) !important; font-size: .92rem !important; }
.waitlist-form { display: grid; gap: .9rem; }
.waitlist-form label { display: grid; gap: .35rem; color: var(--muted); font-size: .88rem; }
.site-footer { padding: 4rem 0 3rem; color: var(--muted); border-top: 1px solid var(--line); margin-top: 5rem; }
.site-footer strong { color: var(--ink); }

@media (max-width: 920px) {
  .site-header { align-items: flex-start; flex-direction: column; }
  .hero, .api { grid-template-columns: 1fr; }
  .result-grid, .label-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { display: block; }
  .search-box { margin-top: 1rem; }
}
@media (max-width: 620px) {
  .shell { width: min(100% - 28px, var(--max)); }
  nav { gap: .7rem; }
  h1 { font-size: 3.2rem; }
  .stats, .result-grid, .label-grid { grid-template-columns: 1fr; }
  .site-header { position: static; }
}
