/* Yolkfin — yolkfin.com landing
   World: Sky field, mono tag pills, one yolk number. Light-first. */

:root {
  --yf-sky: #DCEBFD;
  --yf-blue: #5295FF;
  --yf-yolk: #FACC00;
  --yf-green: #06E17A;
  --yf-ink: #101418;
  --yf-white: #FFFFFF;
  --yf-ink-soft: #42536A; /* secondary text on Sky — 7:1 */

  --yf-font-display: 'Baloo 2', system-ui, sans-serif;
  --yf-font-body: 'Nunito', system-ui, sans-serif;
  --yf-font-mono: 'JetBrains Mono', ui-monospace, monospace;

  --yf-radius-pill: 999px;
  --yf-radius-badge: 14px;

  --yf-shadow-pill: 0 6px 18px rgba(82, 149, 255, 0.10);
  --yf-shadow-pill-hover: 0 10px 26px rgba(82, 149, 255, 0.18);
}

html {
  color-scheme: light;
}

body {
  margin: 0;
  font-family: var(--yf-font-body);
  font-size: 1.0625rem;
  line-height: 1.5;
  background: var(--yf-sky);
  color: var(--yf-ink);
  min-block-size: 100svh;
  display: flex;
  flex-direction: column;
}

::selection {
  background: var(--yf-yolk);
  color: var(--yf-ink);
}

:focus-visible {
  outline: 3px solid var(--yf-blue);
  outline-offset: 3px;
  border-radius: 6px;
}

::-webkit-scrollbar {
  inline-size: 10px;
}
::-webkit-scrollbar-track {
  background: var(--yf-sky);
}
::-webkit-scrollbar-thumb {
  background: rgba(16, 20, 24, 0.22);
  border-radius: var(--yf-radius-pill);
  border: 2px solid var(--yf-sky);
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(16, 20, 24, 0.38);
}

.container {
  inline-size: min(76rem, 100% - 3rem);
  margin-inline: auto;
}

/* Header */

.site-header {
  padding-block: 1.75rem 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--yf-ink);
}

.brand img {
  inline-size: 2.5rem;
  block-size: 2.5rem;
}

.brand span {
  font-family: var(--yf-font-display);
  font-weight: 700;
  font-size: 1.5rem;
  letter-spacing: -0.01em;
}

/* Hero: copy left, tag field right */

.hero {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 30rem) 1fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 5rem);
  padding-block: clamp(2rem, 6vh, 4rem);
}

.hero-copy > * {
  animation: rise 0.9s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.hero-copy > *:nth-child(2) { animation-delay: 0.08s; }
.hero-copy > *:nth-child(3) { animation-delay: 0.16s; }
.hero-copy > *:nth-child(4) { animation-delay: 0.24s; }

@keyframes rise {
  from { transform: translateY(10px); opacity: 0.55; }
  to   { transform: translateY(0);    opacity: 1; }
}

h1 {
  font-family: var(--yf-font-display);
  font-weight: 800;
  font-size: clamp(2.9rem, 1.9rem + 4.2vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin: 0;
  text-wrap: balance;
}

.hero-sub {
  font-size: 1.375rem;
  font-weight: 600;
  color: var(--yf-ink-soft);
  margin: 1.25rem 0 0;
}

/* Coming-soon badge */

.store-badge {
  display: inline-flex;
  flex-direction: column;
  margin: 2.75rem 0 0;
  padding: 0.625rem 1.25rem;
  background: var(--yf-ink);
  color: var(--yf-white);
  border-radius: var(--yf-radius-badge);
  line-height: 1.15;
}

.store-badge__small {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: #B9C4D4;
}

.store-badge__big {
  font-family: var(--yf-font-display);
  font-weight: 700;
  font-size: 1.375rem;
}

.privacy {
  margin: 1.5rem 0 0;
  font-size: 0.875rem;
  color: var(--yf-ink-soft);
}

/* The tag field */

.field {
  position: relative;
  align-self: stretch;
  display: flex;
  align-items: center;
  min-block-size: 26rem;
}

.field-ring {
  position: absolute;
  inset: 50% auto auto 50%;
  translate: -50% -50%;
  inline-size: min(34rem, 92%);
  opacity: 0.55;
}

.field-grid {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-content: center;
  gap: 1rem clamp(1rem, 2.5vw, 2rem);
  inline-size: 100%;
}

.pill {
  font-family: var(--yf-font-mono);
  font-size: 0.9375rem;
  font-weight: 500;
  background: var(--yf-white);
  color: var(--yf-ink);
  border-radius: var(--yf-radius-pill);
  padding-block: 0.5rem;
  text-align: center;
  box-shadow: var(--yf-shadow-pill);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.pill:hover {
  transform: translateY(-2px);
  box-shadow: var(--yf-shadow-pill-hover);
}

.pill--income {
  color: var(--yf-green);
  font-weight: 700;
}

.yf-decimal {
  color: var(--yf-yolk);
}

/* Fresh tags: a blue glow that lands, then settles */

.pill--fresh {
  animation: fresh-glow 3s cubic-bezier(0.16, 1, 0.3, 1) both;
}
.pill--fresh:nth-of-type(3)  { animation-delay: 0.9s; }
.pill--fresh:nth-of-type(7)  { animation-delay: 1.4s; }
.pill--fresh:nth-of-type(14) { animation-delay: 1.9s; }

@keyframes fresh-glow {
  0% {
    background: var(--yf-blue);
    color: var(--yf-white);
    box-shadow: 0 0 0 6px rgba(82, 149, 255, 0.35), 0 12px 32px rgba(82, 149, 255, 0.45);
  }
  100% {
    box-shadow: var(--yf-shadow-pill);
  }
}

/* Footer */

.site-footer {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding-block: 1.5rem 2rem;
  font-size: 0.875rem;
  color: var(--yf-ink-soft);
}

.site-footer p {
  margin: 0;
}

.site-footer a {
  color: var(--yf-ink);
  font-weight: 700;
  text-decoration: none;
  border-bottom: 2px solid var(--yf-blue);
  padding-block-end: 1px;
}

.site-footer a:hover {
  color: var(--yf-blue);
}

/* Mobile: copy first, the field becomes a fading band below */

@media (max-width: 56rem) {
  .hero {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    align-items: start;
  }

  .field {
    min-block-size: 0;
    align-self: auto;
    overflow: hidden;
    mask-image: linear-gradient(to bottom, black 55%, transparent 98%);
    -webkit-mask-image: linear-gradient(to bottom, black 55%, transparent 98%);
  }

  .field-ring {
    display: none;
  }

  .field-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-content: start;
    gap: 0.875rem 1rem;
    block-size: 14rem;
  }

  .pill {
    font-size: 0.8125rem;
  }

  .site-footer {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-copy > *,
  .pill--fresh {
    animation: none;
  }
  .pill {
    transition: none;
  }
}
