/* 50/50 marketing site — "Bone & Ink" (mirrors packages/shared/src/theme/tokens.ts) */
:root {
  --bg: #faf6f0;
  --bg-deep: #f1e9de;
  --surface: #ffffff;
  --surface-alt: #fbf8f3;
  --ink: #1b1b2e;
  --muted: #5a5a6e;
  --subtle: #686879;
  --border: #91836a;
  --border-subtle: #e0d7cb;
  --violet: #6a4cc4;
  --violet-hover: #5a3dae;
  --violet-pressed: #4b3194;
  --violet-soft: rgba(106, 76, 196, 0.14);
  --coral: #e8694c;
  --coral-ink: #c24a2e;
  --coral-soft: rgba(232, 105, 76, 0.16);
  --success: #0e6e46;
  --g1: #5965f0;
  --g2: #a85fc4;
  --g3: #e85f9c;
  --shadow-card: 0 6px 22px rgba(27, 27, 46, 0.08);
  --shadow-lift: 0 14px 40px rgba(27, 27, 46, 0.12);
  --radius: 12px;
  --radius-lg: 20px;
  --radius-pill: 999px;
  --font-display: 'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body: 'Outfit', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --maxw: 1080px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1,
h2,
h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.08;
  margin: 0;
}
p {
  margin: 0;
}
a {
  color: var(--violet);
  text-decoration: none;
}
a:hover {
  color: var(--violet-hover);
}
em {
  font-style: normal;
  color: var(--violet);
}
b {
  font-weight: 600;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--violet);
  color: #fff;
  padding: 10px 16px;
  border-radius: 0 0 var(--radius) 0;
  z-index: 100;
}
.skip:focus {
  left: 0;
  color: #fff;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 24px;
}
.wrap--narrow {
  max-width: 720px;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--violet);
  color: #fff;
  font: 500 16px/1 var(--font-body);
  padding: 14px 22px;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition:
    background 0.16s ease,
    transform 0.08s ease;
  white-space: nowrap;
}
.btn:hover {
  background: var(--violet-hover);
  color: #fff;
}
.btn:active {
  transform: scale(0.98);
  background: var(--violet-pressed);
}
.btn--sm {
  padding: 9px 15px;
  font-size: 14px;
}

/* header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: rgba(250, 246, 240, 0.82);
  backdrop-filter: saturate(1.1) blur(10px);
  border-bottom: 1px solid var(--border-subtle);
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
}
.wordmark:hover {
  color: var(--ink);
}
.wordmark__mark {
  display: inline-flex;
}
.wordmark__text {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 20px;
  letter-spacing: -0.03em;
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}
.site-nav a:not(.btn) {
  color: var(--muted);
  font-size: 15px;
}
.site-nav a:not(.btn):hover {
  color: var(--ink);
}

/* HERO */
.hero {
  position: relative;
  height: 168vh; /* scroll room for the join animation */
}
.hero__stage {
  position: sticky;
  top: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 84px 24px 40px;
  gap: 20px;
}

.logo-tile {
  width: clamp(116px, 30vw, 188px);
  aspect-ratio: 1;
  border-radius: 24%;
  background: linear-gradient(135deg, var(--g1), var(--g2) 52%, var(--g3));
  display: grid;
  place-items: center;
  box-shadow: 0 18px 46px rgba(106, 76, 196, 0.28);
}
.logo-circle {
  position: relative;
  width: 66%;
  aspect-ratio: 1;
}
.logo-half {
  position: absolute;
  top: 0;
  height: 100%;
  width: calc(50% - 2px);
  background: #fff;
  will-change: transform;
}
.logo-half--left {
  left: 0;
  border-radius: 100% 0 0 100% / 50% 0 0 50%;
  transform: translateX(calc((var(--p) - 1) * 42px));
}
.logo-half--right {
  right: 0;
  border-radius: 0 100% 100% 0 / 0 50% 50% 0;
  transform: translateX(calc((1 - var(--p)) * 42px));
}

.hero__eyebrow {
  color: var(--coral-ink);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: lowercase;
  margin-top: 6px;
}
.hero__headline {
  font-size: clamp(2.1rem, 6.5vw, 4rem);
  max-width: 15ch;
}
.hero__sub {
  color: var(--muted);
  font-size: clamp(1rem, 2.6vw, 1.2rem);
  max-width: 40ch;
}

/* waitlist form */
.waitlist {
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 440px;
  margin-top: 6px;
}
.waitlist__input {
  flex: 1;
  min-width: 0;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-pill);
  padding: 14px 18px;
  font: 400 16px/1 var(--font-body);
  color: var(--ink);
}
.waitlist__input::placeholder {
  color: var(--subtle);
}
.waitlist__input:focus {
  outline: none;
  border-color: var(--violet);
  box-shadow: 0 0 0 3px var(--violet-soft);
}
.waitlist__input.is-invalid {
  border-color: var(--coral-ink);
  box-shadow: 0 0 0 3px var(--coral-soft);
}
.waitlist__note {
  color: var(--subtle);
  font-size: 13px;
}
.waitlist--lg {
  max-width: 480px;
  margin: 22px auto 0;
}
.waitlist--lg + .waitlist__note {
  text-align: center;
}
.is-success {
  color: var(--success);
  font-weight: 500;
}

/* sections shared */
section {
  position: relative;
}
.kicker {
  color: var(--coral-ink);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.kicker--center {
  text-align: center;
}

.band {
  background: var(--bg-deep);
  padding: 84px 0;
}
.stat-duo {
  display: flex;
  gap: 16px;
  margin-bottom: 26px;
}
.stat {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.stat--accent {
  border-color: var(--violet-soft);
}
.stat__num {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.4rem, 8vw, 3.4rem);
  line-height: 1;
}
.stat--accent .stat__num {
  color: var(--violet);
}
.stat__label {
  display: block;
  color: var(--muted);
  font-size: 14px;
  margin-top: 8px;
}
.band__title {
  font-size: clamp(1.7rem, 5vw, 2.6rem);
  margin-bottom: 14px;
}
.band__body {
  color: var(--muted);
  max-width: 52ch;
  font-size: 1.05rem;
}
.statlist {
  list-style: none;
  padding: 0;
  margin: 28px 0 0;
  display: grid;
  gap: 12px;
  max-width: 52ch;
}
.statlist li {
  padding-left: 20px;
  position: relative;
  color: var(--ink);
}
.statlist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 11px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--coral);
}
.statlist b {
  color: var(--coral-ink);
}

.manifesto {
  padding: 92px 0;
}
.manifesto__title {
  font-size: clamp(1.6rem, 4.4vw, 2.4rem);
  line-height: 1.16;
  margin-bottom: 22px;
}
.manifesto p {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 18px;
}
.manifesto p:last-child {
  margin-bottom: 0;
}

.how {
  background: var(--surface-alt);
  padding: 84px 0;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  box-shadow: var(--shadow-card);
}
.card__icon {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--violet-soft);
  color: var(--violet);
  font-size: 22px;
  margin-bottom: 14px;
}
.card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}
.card p {
  color: var(--muted);
  font-size: 1rem;
}

.close {
  padding: 96px 0;
  text-align: center;
}
.close__title {
  font-size: clamp(1.8rem, 5vw, 2.8rem);
  margin-bottom: 16px;
}
.close__body {
  color: var(--muted);
  max-width: 50ch;
  margin: 0 auto;
  font-size: 1.08rem;
}

/* footer */
.site-footer {
  background: var(--ink);
  color: #efe9dd;
  padding: 40px 0;
}
.footer__row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__brand {
  color: #fff;
  font-size: 22px;
}
.footer__tag {
  color: #b9b3c4;
}
.footer__meta {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  color: #8f8a9c;
  font-size: 14px;
  margin-top: 14px;
}
.site-footer a {
  color: #cfc8dc;
}
.site-footer a:hover {
  color: #fff;
}

/* scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition:
    opacity 0.6s ease,
    transform 0.6s ease;
}
.reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (max-width: 560px) {
  .site-nav a:not(.btn) {
    display: none;
  }
  .waitlist {
    flex-direction: column;
  }
  .waitlist .btn {
    width: 100%;
  }
  .stat-duo {
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .logo-half {
    transition: none;
  }
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
}
