/* Slab Four.meme public site — extends styles.css, keeps the existing visual language. */

:root {
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 76px;
}

html { scroll-behavior: smooth; }

.skip-link {
  position: absolute;
  left: 16px;
  top: 8px;
  z-index: 80;
  padding: 8px 12px;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  transform: translateY(-120%);
}
.skip-link:focus { transform: none; outline: 2px solid var(--gold); outline-offset: 2px; }

a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--gold-bright);
  outline-offset: 2px;
}

.topbar { gap: 16px; }
.topbar-center {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: center;
}
.site-nav a {
  color: var(--muted);
  text-decoration: none;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 8px 12px;
  border-radius: 4px;
  transition: color 300ms var(--ease), background 300ms var(--ease);
}
.site-nav a:hover { color: var(--ivory); background: var(--gold-dim); }
.site-nav a.is-active {
  color: var(--ivory);
  background: rgba(201, 164, 106, 0.16);
  box-shadow: inset 0 0 0 1px var(--border-strong);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.brand-avatar {
  width: 46px;
  height: 46px;
  object-fit: cover;
  border-radius: 4px;
}
.brand-name { font-size: 28px; }
.brand-ticker { color: var(--gold); font-family: var(--mono); font-size: 12px; letter-spacing: 0.08em; }

.lang-btn,
.btn-menu {
  appearance: none;
  background: transparent;
  border: 1px solid var(--border-strong);
  color: var(--ivory);
  font-family: var(--sans);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  padding: 8px 12px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 300ms var(--ease), border-color 300ms var(--ease), color 300ms var(--ease);
}
.lang-btn:hover,
.btn-menu:hover { background: var(--gold-dim); border-color: var(--gold); }
.btn-menu { display: none; min-width: 44px; }
.btn-menu .menu-icon,
.btn-menu .menu-icon::before,
.btn-menu .menu-icon::after {
  display: block;
  width: 16px;
  height: 1.5px;
  background: currentColor;
  position: relative;
  transition: transform 500ms var(--ease), opacity 300ms var(--ease);
}
.btn-menu .menu-icon::before,
.btn-menu .menu-icon::after {
  content: "";
  position: absolute;
  left: 0;
}
.btn-menu .menu-icon::before { top: -5px; }
.btn-menu .menu-icon::after { top: 5px; }
.btn-menu.is-open .menu-icon { background: transparent; }
.btn-menu.is-open .menu-icon::before { transform: translateY(5px) rotate(45deg); }
.btn-menu.is-open .menu-icon::after { transform: translateY(-5px) rotate(-45deg); }

.topbar-actions { display: flex; align-items: center; gap: 8px; }

.mobile-nav {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgba(7, 6, 5, 0.96);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 96px 24px 40px;
  flex-direction: column;
  gap: 8px;
}
.mobile-nav.is-open { display: flex; }
.mobile-nav a {
  color: var(--ivory);
  text-decoration: none;
  font-size: 20px;
  font-weight: 500;
  padding: 12px 8px;
  opacity: 0;
  transform: translateY(24px);
  animation: navIn 500ms var(--ease) forwards;
}
.mobile-nav a:nth-child(1) { animation-delay: 0ms; }
.mobile-nav a:nth-child(2) { animation-delay: 60ms; }
.mobile-nav a:nth-child(3) { animation-delay: 120ms; }
.mobile-nav a:nth-child(4) { animation-delay: 180ms; }
.mobile-nav a:nth-child(5) { animation-delay: 240ms; }
.mobile-nav a:nth-child(6) { animation-delay: 300ms; }
.mobile-nav a:nth-child(7) { animation-delay: 360ms; }
.mobile-nav a.is-active { color: var(--gold-bright); }
@keyframes navIn {
  to { opacity: 1; transform: none; }
}

.status-strip { padding-left: 28px; padding-right: 28px; }

/* ——— Views ——— */
.view[hidden] { display: none !important; }
.dapp-main { padding: 0 0 64px; flex: 1; }
.page-wrap { width: min(1200px, calc(100% - 48px)); margin: 0 auto; padding: 40px 0 0; }
.page-wrap.wide { width: min(1280px, calc(100% - 40px)); }

/* ——— Cover ——— */
.home-cover {
  position: relative;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 24px 32px;
  text-align: center;
}
.cover-stack {
  width: min(720px, 100%);
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.cover-art {
  display: block;
  width: min(420px, 86vw);
  height: 260px;
  position: relative;
  margin-bottom: 32px;
  text-decoration: none;
}
.cover-art .fan {
  position: absolute;
  left: 50%;
  top: 10px;
  width: 150px;
  height: 210px;
  transform-origin: 50% 100%;
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.55));
}
.cover-art .fan img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border: 1px solid var(--border-strong);
  background: #050403;
  border-radius: 4px;
}
.cover-art .fan-0 { transform: translate(-118px, 16px) rotate(-14deg); }
.cover-art .fan-1 { transform: translate(-75px, 0) rotate(0deg); z-index: 2; }
.cover-art .fan-2 { transform: translate(-32px, 16px) rotate(14deg); }
.home-cover h1 {
  font-family: var(--serif);
  font-size: 96px;
  font-weight: 500;
  line-height: 1;
  letter-spacing: 0.02em;
  margin: 0;
  max-width: 680px;
  text-wrap: balance;
  background: linear-gradient(90deg, #F4EFE6, #C9A46A);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.cover-subtitle {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--gold-bright);
  margin: 12px 0 0;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-wrap: balance;
}
.cover-description {
  font-size: 16px;
  line-height: 24px;
  color: var(--muted);
  max-width: 680px;
  margin: 16px auto 0;
  text-wrap: pretty;
}
.cover-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 32px;
  margin-bottom: 8px;
  padding: 8px 12px;
  background: var(--gold);
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 4px;
  transition: background 300ms var(--ease), transform 500ms var(--ease);
}
.cover-cta:hover { background: var(--gold-bright); }
.cover-cta:active { transform: scale(0.98); }
.cover-footer {
  position: static;
  flex-shrink: 0;
  width: 100%;
  margin-top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.ecosystem-marks {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}
.ecosystem-marks a,
.eco-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-decoration: none;
  color: var(--dim);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}
.ecosystem-marks img {
  height: 22px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
  display: block;
}
.ecosystem-marks .eco-divider {
  width: 1px;
  height: 28px;
  background: var(--border-strong);
}
.scroll-cue {
  color: var(--dim);
  text-decoration: none;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.scroll-cue span {
  display: block;
  width: 1px;
  height: 16px;
  background: var(--gold);
  animation: cue 1.6s var(--ease) infinite;
}
@keyframes cue {
  0% { transform: scaleY(0.4); opacity: 0.3; }
  50% { transform: scaleY(1); opacity: 1; }
  100% { transform: scaleY(0.4); opacity: 0.3; }
}

/* ——— Sections ——— */
.home-section {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
  padding: 80px 0 16px;
}
.reveal {
  opacity: 0;
  transform: translateY(32px);
  animation: none;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
  transition: opacity 700ms var(--ease), transform 700ms var(--ease);
}

.tagline-block { max-width: 680px; }
.tagline-block p {
  font-family: var(--serif);
  font-size: 36px;
  line-height: 40px;
  font-weight: 500;
  margin: 0 0 8px;
  text-wrap: balance;
  color: var(--ivory);
}
.tagline-block .word {
  color: rgba(237, 230, 217, 0.3);
  transition: color 500ms var(--ease);
}
.tagline-block .word.is-on { color: var(--ivory); }

.how-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin-top: 32px;
  align-items: start;
}
.how-step { max-width: 480px; }
.how-step:nth-child(2) { margin-top: 48px; justify-self: end; }
.how-step:nth-child(3) { grid-column: 1; }
.how-index {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--gold);
  letter-spacing: 0.12em;
}
.how-step h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  margin: 8px 0;
  text-wrap: balance;
}
.how-step p { margin: 0; color: var(--muted); max-width: 40rem; text-wrap: pretty; }

.tier-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 32px;
}
.tier-link {
  text-decoration: none;
  color: inherit;
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: border-color 300ms var(--ease), transform 500ms var(--ease);
}
.tier-link:hover { border-color: var(--gold); transform: translateY(-2px); }
.tier-link:active { transform: scale(0.98); }
.tier-link img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  display: block;
  background: #050403;
}
.tier-meta { padding: 12px 12px 16px; }
.tier-meta strong {
  display: block;
  font-family: var(--serif);
  font-size: 20px;
  font-weight: 500;
}
.tier-meta span { color: var(--muted); font-size: 12px; font-family: var(--mono); }

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 24px;
}
.fact-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 16px;
}
.fact-card dt {
  font-size: 12px;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 600;
  margin: 0 0 8px;
}
.fact-card dd {
  margin: 0;
  font-family: var(--mono);
  font-size: 20px;
  color: var(--ivory);
  font-variant-numeric: tabular-nums;
}
.fact-card .addr {
  font-size: 13px;
  word-break: break-all;
  color: var(--gold-bright);
  text-decoration: none;
}
.fact-card .addr:hover { color: var(--ivory); }
.rules-note, .preview-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 14px;
  text-wrap: pretty;
  max-width: 42rem;
}

.faq-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 40px;
  margin-top: 32px;
}
.faq-item h3 {
  font-size: 16px;
  font-weight: 600;
  margin: 0 0 8px;
  text-wrap: balance;
}
.faq-item p { margin: 0; color: var(--muted); text-wrap: pretty; }

.home-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
}
.btn-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 600;
  font-size: 16px;
  border-radius: 4px;
  border: 1px solid var(--border-strong);
  color: var(--ivory);
  transition: background 300ms var(--ease), border-color 300ms var(--ease);
}
.btn-link:hover { background: var(--gold-dim); border-color: var(--gold); }
.btn-link.primary { background: var(--gold); color: var(--ink); border-color: transparent; }
.btn-link.primary:hover { background: var(--gold-bright); }

/* ——— Rounds / rules ——— */
.round-clock {
  margin: 24px 0;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 4px;
  padding: 24px;
}
.clock-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.clock-label { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 0; }
.clock-state { font-family: var(--mono); font-size: 12px; color: var(--gold); letter-spacing: 0.08em; text-transform: uppercase; }
.clock-reading {
  display: block;
  margin-top: 16px;
  font-family: var(--serif);
  font-size: 30px;
  line-height: 36px;
  font-weight: 500;
  text-wrap: balance;
  color: var(--ivory);
}
.draw-facts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0;
}
.draw-facts div {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 4px;
  padding: 16px;
}
.draw-facts dt { font-size: 12px; color: var(--muted); margin: 0 0 8px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.draw-facts dd { margin: 0; font-family: var(--mono); font-size: 20px; }

.calc {
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 4px;
  padding: 24px;
  margin: 24px 0;
}
.calc h3 { margin: 0 0 16px; font-family: var(--serif); font-size: 24px; font-weight: 500; }
.slider-row { margin-bottom: 16px; }
.slider-heading { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.slider-heading label { font-weight: 600; font-size: 14px; }
.slider-value {
  appearance: none;
  background: none;
  border: 0;
  color: var(--gold-bright);
  font-family: var(--mono);
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}
.slider-row input[type="range"] {
  width: 100%;
  margin: 8px 0 4px;
  accent-color: var(--gold);
}
.slider-scale { display: flex; justify-content: space-between; color: var(--dim); font-size: 12px; font-family: var(--mono); }
.exact-value {
  width: 140px;
  background: var(--bg-elev);
  border: 1px solid var(--border-strong);
  color: var(--ivory);
  font-family: var(--mono);
  padding: 4px 8px;
  border-radius: 4px;
}
.estimate-total {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: end;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}
.estimate-total span { color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; }
.estimate-total output {
  display: block;
  font-family: var(--serif);
  font-size: 36px;
  font-weight: 500;
  color: var(--ivory);
}
.steps { margin: 16px 0 0; padding-left: 20px; color: var(--muted); }
.steps li { margin: 0 0 12px; text-wrap: pretty; }

.gate-bar { margin: 24px 0; }
.empty-block {
  text-align: center;
  padding: 48px 16px;
  border: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 4px;
  margin-top: 24px;
}
.empty-block img { width: 80px; opacity: 0.8; }
.empty-block h3 { font-family: var(--serif); font-size: 24px; font-weight: 500; margin: 12px 0 8px; }
.empty-block p { color: var(--muted); margin: 0 auto; max-width: 36rem; text-wrap: pretty; }

.board-kv { margin-top: 24px; }
.kv-table { width: 100%; }
.kv-row {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}
.kv-row span { color: var(--muted); }
.kv-row strong { font-weight: 500; color: var(--ivory); word-break: break-all; }
.kv-row a { color: var(--gold-bright); text-decoration: none; }
.kv-row a:hover { color: var(--ivory); }

.legal-body { max-width: 42rem; color: var(--muted); text-wrap: pretty; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 32px 24px 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  text-align: center;
}
.site-footer .footer-blurb {
  max-width: 52rem;
  color: var(--muted);
  font-size: 14px;
  text-wrap: pretty;
  margin: 0;
}
.footer-links { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; }
.footer-links a { color: var(--gold); text-decoration: none; font-size: 13px; font-weight: 600; }
.footer-links a:hover { color: var(--gold-bright); }
.footer-rpc { color: var(--dim); font-size: 12px; }

/* Modal: drop old vault buyback rows if present */
.modal-pricing { display: none; }

@media (max-width: 960px) {
  .topbar-center { display: none; }
  .btn-menu { display: inline-flex; align-items: center; justify-content: center; }
  .home-cover h1 { font-size: 72px; }
  .how-grid, .faq-list, .facts-grid, .tier-row, .draw-facts { grid-template-columns: 1fr 1fr; }
  .how-step:nth-child(2) { margin-top: 0; justify-self: stretch; }
  .how-step:nth-child(3) { grid-column: auto; }
}
@media (max-width: 700px) {
  .home-cover { padding: 108px 16px 96px; }
  .home-cover h1 { font-size: 48px; }
  .cover-subtitle { font-size: 18px; }
  .cover-art { height: 200px; width: min(320px, 90vw); }
  .cover-art .fan { width: 112px; height: 156px; }
  .cover-art .fan-0 { transform: translate(-96px, 14px) rotate(-12deg); }
  .cover-art .fan-1 { transform: translate(-56px, 0) rotate(0deg); }
  .cover-art .fan-2 { transform: translate(-16px, 14px) rotate(12deg); }
  .tagline-block p { font-size: 30px; line-height: 36px; }
  .how-grid, .faq-list, .facts-grid, .tier-row, .draw-facts { grid-template-columns: 1fr; }
  .page-wrap, .home-section { width: min(100% - 32px, 1120px); }
  .kv-row { grid-template-columns: 1fr; gap: 4px; }
  .brand-sub { display: none; }
  .status-strip { padding-left: 16px; padding-right: 16px; flex-wrap: wrap; }
  .estimate-total { flex-direction: column; align-items: start; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .reveal { opacity: 1; transform: none; }
  .tagline-block .word { color: var(--ivory); }
  .mobile-nav a { opacity: 1; transform: none; }
}
