/* ============================================================
   BABY CATE — the page
   ============================================================ */

body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background:
    radial-gradient(120% 70% at 50% -10%, rgba(242, 202, 94, 0.34), transparent 62%),
    radial-gradient(80% 50% at 92% 8%, rgba(217, 165, 33, 0.14), transparent 60%),
    linear-gradient(180deg, var(--ivory) 0%, var(--ivory-2) 46%, var(--ivory-3) 100%);
  background-attachment: fixed;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.shell {
  width: min(100% - 2.5rem, var(--shell));
  margin-inline: auto;
}

/* ------------------------------------------------------------
   Type
   ------------------------------------------------------------ */
h1,
h2,
h3 {
  font-family: var(--display);
  font-weight: 600;
  font-variation-settings: "SOFT" 40, "WONK" 1;
  line-height: 1.08;
  letter-spacing: -0.015em;
  margin: 0;
}

.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
  margin: 0 0 0.9rem;
}

.lede {
  font-size: 1.12rem;
  color: var(--ink-2);
  max-width: 60ch;
}

.num {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

/* ------------------------------------------------------------
   Top bar
   ------------------------------------------------------------ */
.bar {
  position: sticky;
  top: 0;
  z-index: 40;
  height: var(--bar);
  border-bottom: var(--edge) solid var(--line);
  background: rgba(253, 247, 231, 0.82);
  backdrop-filter: blur(14px) saturate(1.3);
}

.bar > .shell {
  height: 100%;
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  font-family: var(--display);
  font-weight: 600;
  font-size: 1.06rem;
  margin-right: auto;
  min-height: 40px;
}

.brand img {
  width: 34px;
  border-radius: 50%;
  box-shadow: 0 0 0 1px rgba(169, 119, 13, 0.28);
}

.bar-links {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.icon-link {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  color: var(--ink-2);
  text-decoration: none;
  transition: background 0.16s, color 0.16s;
}

.icon-link:hover {
  background: rgba(217, 165, 33, 0.16);
  color: var(--gold-ink);
}

.icon-link svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* ------------------------------------------------------------
   Buttons
   ------------------------------------------------------------ */
.btn {
  --btn-bg: var(--gold);
  --btn-fg: #40290a;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 44px;
  padding: 0 1.15rem;
  border: none;
  border-radius: 999px;
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-weight: 650;
  font-size: 0.94rem;
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: var(--lift);
  transition: transform 0.14s ease, box-shadow 0.18s ease, background 0.16s;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--glow);
  background: var(--gold-lit);
}

.btn:active {
  transform: translateY(0);
}

.btn.ghost {
  --btn-bg: transparent;
  --btn-fg: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--line);
}

.btn.ghost:hover {
  background: rgba(217, 165, 33, 0.12);
  box-shadow: inset 0 0 0 1.5px var(--gold);
}

.btn.small {
  /* 40px is the floor: their audit fails a tap target below it, and a 38px
     pill in a sticky bar is exactly the thing that trips it. */
  min-height: 40px;
  font-size: 0.86rem;
  padding: 0 0.95rem;
}

/* ------------------------------------------------------------
   Hero
   ------------------------------------------------------------ */
.hero {
  padding: clamp(2.5rem, 7vw, 5rem) 0 clamp(2rem, 5vw, 3.5rem);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.hero h1 {
  font-size: clamp(2.6rem, 6.6vw, 4.4rem);
  margin-bottom: 1rem;
}

.hero h1 .soft {
  color: var(--gold-deep);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.7rem;
  margin-top: 1.8rem;
}

.coin {
  position: relative;
  justify-self: center;
  width: min(100%, 380px);
}

.coin img {
  width: 100%;
  border-radius: 50%;
  box-shadow: 0 24px 70px rgba(140, 96, 20, 0.28), 0 0 0 1px rgba(169, 119, 13, 0.2);
  animation: bob 7s ease-in-out infinite;
}

@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-14px) rotate(1deg); }
}

/* ------------------------------------------------------------
   Contract chip
   ------------------------------------------------------------ */
.ca {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-top: 1.6rem;
  padding: 0.55rem 0.6rem 0.55rem 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--card);
  box-shadow: var(--lift);
  max-width: max-content;
}

.ca .label {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.ca code {
  font-family: var(--mono);
  font-size: 0.82rem;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.copy {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border: none;
  border-radius: 50%;
  background: rgba(217, 165, 33, 0.18);
  color: var(--gold-ink);
  cursor: pointer;
  transition: background 0.16s;
}

.copy:hover {
  background: var(--gold);
}

.copy svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

/* ------------------------------------------------------------
   The clock
   ------------------------------------------------------------ */
.clock {
  display: flex;
  align-items: baseline;
  gap: 0.7rem;
  margin-top: 1.5rem;
  flex-wrap: wrap;
}

.clock .t {
  font-family: var(--mono);
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--gold-ink);
  font-variant-numeric: tabular-nums;
}

.clock .cap {
  font-size: 0.86rem;
  color: var(--ink-3);
}

.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--good);
  margin-right: 0.4rem;
  animation: pulse 2.4s ease-in-out infinite;
}

.pulse.off {
  background: var(--ink-faint);
  animation: none;
}

@keyframes pulse {
  0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(63, 143, 95, 0.5); }
  50% { opacity: 0.75; box-shadow: 0 0 0 6px rgba(63, 143, 95, 0); }
}

/* ------------------------------------------------------------
   Sections + cards
   ------------------------------------------------------------ */
section {
  padding: clamp(2.5rem, 6vw, 4.5rem) 0;
}

.head {
  margin-bottom: 2rem;
  max-width: 62ch;
}

.head h2 {
  font-size: clamp(1.7rem, 3.6vw, 2.4rem);
  margin-bottom: 0.6rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--lift);
  padding: 1.5rem;
}

/* ---- the 50/50 split ---- */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.2rem;
}

.leg {
  position: relative;
  overflow: hidden;
  padding: 1.7rem 1.6rem;
}

.leg::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  background: linear-gradient(90deg, var(--gold), var(--gold-hi));
}

.leg .pct {
  font-family: var(--display);
  font-size: 2.9rem;
  font-weight: 600;
  line-height: 1;
  color: var(--gold-deep);
}

.leg h3 {
  font-size: 1.25rem;
  margin: 0.7rem 0 0.5rem;
}

.leg p {
  margin: 0;
  color: var(--ink-2);
  font-size: 0.95rem;
}

.leg .tag {
  display: inline-block;
  margin-top: 1rem;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  background: rgba(217, 165, 33, 0.16);
  color: var(--gold-ink);
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

/* ---- number strip ---- */
.stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}

.stat {
  background: var(--card);
  padding: 1.3rem 1.2rem;
}

.stat .k {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin-bottom: 0.5rem;
}

.stat .v {
  font-family: var(--mono);
  font-size: 1.5rem;
  font-weight: 500;
  letter-spacing: -0.03em;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.stat .s {
  font-size: 0.8rem;
  color: var(--ink-3);
  margin-top: 0.3rem;
}

/* ---- wallet checker ---- */
.check {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.check input {
  flex: 1 1 300px;
  min-height: 46px;
  padding: 0 1rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--ivory);
  font-family: var(--mono);
  font-size: 0.86rem;
}

.check input::placeholder {
  color: var(--ink-faint);
}

.result {
  margin-top: 1.2rem;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
}

.result .box {
  padding: 1.1rem 1.2rem;
  border-radius: var(--r);
  background: var(--ivory);
  border: 1px solid var(--line-soft);
}

/* ---- table ---- */
.wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  background: var(--card);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
  min-width: 620px;
}

th,
td {
  padding: 0.75rem 1rem;
  text-align: right;
  border-bottom: 1px solid var(--line-soft);
  white-space: nowrap;
}

th:first-child,
td:first-child {
  text-align: left;
}

th {
  font-family: var(--mono);
  font-size: 0.66rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 500;
  background: var(--ivory);
  position: sticky;
  top: 0;
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: rgba(217, 165, 33, 0.06);
}

td.n {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
}

.empty {
  padding: 2.5rem 1rem;
  text-align: center;
  color: var(--ink-3);
}

/* ---- notes ---- */
.notes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.2rem;
}

.note h3 {
  font-size: 1.1rem;
  margin-bottom: 0.45rem;
}

.note p {
  margin: 0;
  font-size: 0.93rem;
  color: var(--ink-2);
}

/* ---- log ---- */
.log {
  font-family: var(--mono);
  font-size: 0.78rem;
  max-height: 280px;
  overflow-y: auto;
  padding: 1rem 1.2rem;
}

.log div {
  padding: 0.22rem 0;
  color: var(--ink-2);
  border-bottom: 1px solid rgba(232, 213, 172, 0.4);
}

.log div:last-child {
  border-bottom: none;
}

.log .lv-warn {
  color: var(--warn);
}

.log .lv-error {
  color: var(--bad);
}

.log time {
  color: var(--ink-faint);
  margin-right: 0.6rem;
}

/* ------------------------------------------------------------
   Footer
   ------------------------------------------------------------ */
footer {
  padding: 3rem 0 4rem;
  border-top: 1px solid var(--line);
  color: var(--ink-3);
  font-size: 0.86rem;
}

footer .row {
  display: flex;
  gap: 1.4rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
}

footer a {
  color: var(--ink-2);
  text-decoration: none;
}

footer a:hover {
  color: var(--gold-ink);
  text-decoration: underline;
}

.fine {
  margin-top: 1.4rem;
  font-size: 0.79rem;
  color: var(--ink-faint);
  max-width: 74ch;
  line-height: 1.6;
}

/* ------------------------------------------------------------
   Responsive
   ------------------------------------------------------------ */
@media (max-width: 900px) {
  .hero-grid {
    grid-template-columns: 1fr;
    text-align: left;
  }
  .coin {
    grid-row: 1;
    width: min(70%, 260px);
    justify-self: start;
  }
  .split {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .shell {
    width: calc(100% - 1.8rem);
  }
  .ca {
    max-width: 100%;
  }
  .ca code {
    font-size: 0.72rem;
  }
  .brand span {
    display: none;
  }
  .hero h1 {
    font-size: clamp(2.1rem, 10vw, 2.9rem);
  }
}

/* ------------------------------------------------------------
   Distributed-to-date, in the hero
   ------------------------------------------------------------
   The two numbers that answer "is this thing actually paying?"
   before anyone scrolls. Both directions, side by side, because
   the whole pitch is that it goes both ways.
   ------------------------------------------------------------ */
.paid {
  display: flex;
  align-items: stretch;
  gap: 1.4rem;
  margin-top: 1.5rem;
  padding: 1rem 1.3rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: linear-gradient(180deg, var(--card), rgba(250, 238, 212, 0.7));
  box-shadow: var(--lift);
  max-width: max-content;
}

.paid-item {
  min-width: 0;
}

.paid-v {
  font-size: clamp(1.25rem, 3.2vw, 1.7rem);
  font-weight: 500;
  line-height: 1.1;
  color: var(--gold-ink);
}

.paid-k {
  margin-top: 0.25rem;
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  color: var(--ink-3);
}

.paid-sep {
  width: 1px;
  background: var(--line);
  flex: 0 0 1px;
}

@media (max-width: 560px) {
  .paid {
    max-width: 100%;
    gap: 1rem;
    padding: 0.9rem 1rem;
  }
  .paid-k {
    font-size: 0.66rem;
  }
}
