/* Mingby Early Testers — Desk sibling theme (editorial gold + cream) */
:root {
  /* Desk / brand tokens (logo tile gold, not neon --gold #ffd100) */
  --paper: #ffffff;
  --ink: #111111;
  --muted: #5c5c5c;
  --line: #e6e6e6;
  --cream: #fffdf8;
  --gold: #e0b13a;
  --gold-soft: #f5e6b8;
  --gold-trim: 2px;
  --dark: #000000;
  --nav-muted: #d0d0d0;

  /* Aliases kept for early-* selectors */
  --early-cream: var(--cream);
  --early-ink: var(--ink);
  --early-muted: #5c574f;
  --early-soft: #8a847a;
  --early-gold: var(--gold);
  --early-gold-soft: var(--gold-soft);
  --early-line: #e8e2d6;
  --early-black: var(--dark);
  --early-phone: #111111;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body.early-page {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: "Noto Sans", "Figtree", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

body.early-page > main { flex: 1 0 auto; }
body.early-page > .early-foot { margin-top: auto; flex-shrink: 0; }

.early-page a { color: inherit; text-decoration: none; }

/* —— Top nav (Desk .top language) —— */
.early-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 0 28px;
  min-height: 56px;
  height: auto;
  background: #000;
  color: #fff;
  overflow: visible;
}

.early-brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  min-height: 56px;
}

.early-nav .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: "Noto Sans", "Figtree", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1rem;
  letter-spacing: 0.02em;
  text-transform: none;
  color: #fff;
  flex-shrink: 0;
  line-height: 1;
  text-decoration: none;
}

/* Desk brand-plate: cream tile + editorial gold border */
.early-nav .brand-plate {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fffdf8;
  padding: 0;
  border: 2.5px solid #e0b13a;
  border-radius: 8px;
  line-height: 0;
  overflow: hidden;
}

.early-nav .brand-plate img {
  width: 32px;
  height: 32px;
  display: block;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.early-nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px;
  justify-content: flex-end;
  margin-left: auto;
}

.early-nav-link {
  color: var(--nav-muted);
  text-decoration: none;
  min-height: 56px;
  padding: 0 10px;
  margin-left: 6px;
  display: inline-flex;
  align-items: center;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 0;
  white-space: nowrap;
  background: transparent;
}

.early-nav-link:hover {
  color: #fff;
  background: transparent;
}

.early-nav-link.on,
.early-nav-link:focus-visible {
  color: #e0b13a;
  background: transparent;
  box-shadow: inset 0 -3px 0 #e0b13a;
  outline: none;
}


.early-menu-btn {
  display: none;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.early-menu-bars,
.early-menu-btn span:not(.early-menu-bars),
.early-menu-btn .early-menu-bars {
  display: block;
  width: 18px;
  height: 2px;
  background: #fff;
  position: relative;
  border-radius: 1px;
  transition: background 0.15s ease;
}
.early-menu-bars::before,
.early-menu-bars::after,
.early-menu-btn span:not(.early-menu-bars)::before,
.early-menu-btn span:not(.early-menu-bars)::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: #fff;
  border-radius: 1px;
  transition: transform 0.15s ease, top 0.15s ease;
}
.early-menu-bars::before,
.early-menu-btn span:not(.early-menu-bars)::before { top: -6px; }
.early-menu-bars::after,
.early-menu-btn span:not(.early-menu-bars)::after { top: 6px; }

.early-nav.menu-open .early-menu-bars,
.early-nav.is-open .early-menu-bars {
  background: transparent;
}
.early-nav.menu-open .early-menu-bars::before,
.early-nav.is-open .early-menu-bars::before {
  top: 0;
  transform: rotate(45deg);
}
.early-nav.menu-open .early-menu-bars::after,
.early-nav.is-open .early-menu-bars::after {
  top: 0;
  transform: rotate(-45deg);
}

/* —— Hero —— */
.early-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: 64px 40px 72px;
}

.early-hero-copy { max-width: 32rem; }

.early-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  font-size: 0.92rem;
  color: var(--early-muted);
  font-weight: 500;
}

/* Desk kicker gold square */
.early-eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  background: #e0b13a;
  border-radius: 0;
  flex-shrink: 0;
}

.early-hero h1 {
  margin: 0 0 18px;
  font-family: "Noto Sans", "Figtree", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4.2vw, 3rem);
  line-height: 1.12;
  letter-spacing: -0.035em;
  color: var(--ink);
}

.early-sub {
  margin: 0 0 28px;
  font-size: 1.05rem;
  line-height: 1.55;
  color: var(--early-muted);
  max-width: 30em;
}

.early-ctas {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
  margin: 0 0 16px;
}

.early-cta-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
}

.early-cta-stack .early-ctas {
  margin-bottom: 0;
}

.early-footnote {
  margin: 0;
  color: var(--early-soft);
  font-size: 0.84rem;
  line-height: 1.35;
}

.early-join .early-cta-stack {
  align-items: center;
}

.early-join-details {
  margin-top: 16px;
}


.early-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 14px;
  font: inherit;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: normal;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.early-btn-gold {
  background: #ffd100;
  color: #111;
  border: 0;
}

.early-btn-gold:hover {
  background: #e0b13a;
  color: #111;
}

.early-btn-outline {
  background: #fff;
  color: #111;
  border: 1px solid #111;
  letter-spacing: 0.02em;
}

.early-btn-outline:hover {
  background: #ffd100;
  border-color: #111;
  color: #111;
}

/* —— Phone mock —— */
.early-phone-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.early-phone {
  width: 300px;
  background: var(--early-phone);
  border-radius: 36px;
  padding: 12px;
  box-shadow:
    0 0 0 2px #2a2a2a,
    0 24px 64px rgba(0, 0, 0, 0.28),
    0 8px 24px rgba(0, 0, 0, 0.12);
  position: relative;
}

.early-phone::before {
  content: "";
  position: absolute;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  width: 72px;
  height: 8px;
  background: #1a1a1a;
  border-radius: 4px;
  z-index: 2;
}

.early-phone-screen {
  background: #0a0a0a;
  border-radius: 26px;
  overflow: hidden;
  aspect-ratio: 390 / 844;
  min-height: 0;
  position: relative;
}

.early-phone-shot {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
}

/* —— Sections —— */
.early-section {
  max-width: 880px;
  margin: 0 auto;
  padding: 56px 40px;
  border-top: 1px solid var(--early-line);
}

.early-section h2 {
  margin: 0 0 12px;
  font-family: "Noto Sans", "Figtree", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 2.5vw, 1.75rem);
  letter-spacing: -0.03em;
}

.early-section .lead {
  margin: 0 0 28px;
  color: var(--early-muted);
  font-size: 1.02rem;
  max-width: 38em;
}

.early-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.early-steps li {
  background: #fff;
  border: 1px solid var(--early-line);
  border-radius: 2px;
  padding: 20px 18px;
}

.early-steps .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: #ffd100;
  color: #111;
  font-family: "Noto Sans", "Figtree", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-weight: 700;
  font-size: 0.85rem;
  border-radius: 2px;
  margin-bottom: 12px;
}

.early-steps h3 {
  margin: 0 0 6px;
  font-family: "Noto Sans", "Figtree", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.early-steps p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--early-muted);
  line-height: 1.45;
}

.early-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.early-card {
  background: #fff;
  border: 1px solid var(--early-line);
  border-radius: 2px;
  padding: 22px 20px;
}

.early-card h3 {
  margin: 0 0 8px;
  font-family: "Noto Sans", "Figtree", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
}

.early-card p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--early-muted);
  line-height: 1.45;
}

.early-quote {
  margin: 0 0 16px;
  padding: 20px 22px;
  background: #fff;
  border-left: 3px solid #e0b13a;
  border-radius: 0 2px 2px 0;
}

.early-quote p {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--ink);
  line-height: 1.5;
}

.early-quote cite {
  font-style: normal;
  font-size: 0.82rem;
  color: var(--early-soft);
}

.early-join {
  text-align: center;
  padding-bottom: 72px;
}

.early-join .early-ctas {
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

.early-foot {
  border-top: 1px solid var(--early-line);
  padding: 28px 40px 40px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--early-soft);
}

.early-foot a {
  color: var(--early-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.early-footnote a {
  color: var(--early-muted);
  text-decoration: underline;
  text-underline-offset: 2px;
}

:focus-visible {
  outline: 2px solid #e0b13a;
  outline-offset: 2px;
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .early-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 40px 24px 48px;
  }
  .early-hero-copy { max-width: none; }
  .early-phone { width: 280px; }
  .early-steps { grid-template-columns: 1fr; }
  .early-cards { grid-template-columns: 1fr; }
  .early-section { padding: 40px 24px; }
}

/* Desktop: inline links, no hamburger */
@media (min-width: 720px) {
  .early-menu-btn { display: none !important; }
  .early-nav-links {
    display: flex !important;
    position: static;
    width: auto;
    max-width: none;
    min-width: 0;
    flex-direction: row;
    background: transparent;
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

@media (max-width: 719px) {
  .early-nav {
    padding: 0 max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
    padding-top: env(safe-area-inset-top, 0px);
    min-height: 56px;
    overflow: visible;
  }
  .early-menu-btn { display: inline-flex; margin-left: auto; }

  /* Full-width cream panel under black header (not cramped dropdown box) */
  .early-nav-links {
    display: none;
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    width: 100%;
    min-width: 0;
    max-width: none;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    background: #fffdf8;
    border: 0;
    border-top: 3px solid #e0b13a;
    border-radius: 0;
    padding: 6px 0 calc(10px + env(safe-area-inset-bottom, 0px));
    gap: 0;
    margin: 0;
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.16);
    z-index: 80;
  }
  .early-nav.is-open .early-nav-links,
  .early-nav.menu-open .early-nav-links { display: flex; }

  body.early-page .early-nav-links .early-nav-link {
    display: flex;
    align-items: center;
    min-height: 52px;
    width: 100%;
    padding: 0 20px;
    margin: 0;
    font-family: "Noto Sans", "Figtree", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;
    font-size: 1rem;
    font-weight: 650;
    letter-spacing: 0.01em;
    text-transform: none;
    color: #111;
    justify-content: flex-start;
    background: transparent;
    border-bottom: 1px solid #e8e2d6;
    box-shadow: none;
    border-radius: 0;
    white-space: normal;
  }
  body.early-page .early-nav-links .early-nav-link:last-child { border-bottom: 0; }
  body.early-page .early-nav-links .early-nav-link:hover,
  body.early-page .early-nav-links .early-nav-link:focus-visible,
  body.early-page .early-nav-links .early-nav-link.on {
    color: #111;
    background: #f5e6b8;
    box-shadow: inset 3px 0 0 #e0b13a;
    outline: none;
  }

  .early-hero .early-ctas,
  .early-join .early-ctas { flex-direction: column; }
  .early-btn { width: 100%; min-width: 0; }
}
