/* Standalone port of the AdvoIn design tokens (packages/ui/src/styles/tokens.css)
 * for the static Cloudflare Pages landing deploy — no build step, so values are
 * transcribed here rather than imported. Keep in sync by hand if tokens.css changes. */
@font-face {
  font-family: 'Fraunces Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('./fonts/fraunces-latin-wght-normal.woff2') format('woff2-variations');
}
@font-face {
  font-family: 'Inter Variable';
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url('./fonts/inter-latin-wght-normal.woff2') format('woff2-variations');
}

:root {
  --ink: #0e1420;
  --paper: #faf8f4;
  --card: #ffffff;
  --accent: #9a7b4f;
  --accent-strong: #6e5a3b;
  --border: #e7e2d9;
  --success: #2f6b4f;
  --success-bg: #e7f0ea;
  --info: #3a5a8c;
  --info-bg: #e6ecf5;
  --ink-muted: #4a5568;

  --radius-card: 12px;
  --radius-control: 8px;
  --radius-pill: 999px;
  --shadow-card: 0 1px 2px rgb(14 20 32 / 0.05);

  --font-display: 'Fraunces Variable', 'Libre Caslon Text', georgia, serif;
  --font-ui: 'Inter Variable', system-ui, -apple-system, sans-serif;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-2xl: 2rem;
  --text-3xl: 2.75rem;

  --motion-fast: 150ms ease-out;
}

@media (prefers-reduced-motion: reduce) {
  :root {
    --motion-fast: 0ms linear;
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-ui);
  font-size: var(--text-base);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
}

.wrap {
  max-width: 72rem;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid var(--border);
  background: rgb(250 248 244 / 0.9);
  backdrop-filter: blur(6px);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 1rem;
  padding-bottom: 1rem;
}
.logo {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 600;
}
.nav {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: var(--text-sm);
}
.nav-link {
  display: none;
  color: var(--ink-muted);
  text-decoration: none;
}
.nav-link:hover {
  color: var(--ink);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 2.75rem;
  padding: 0 1.5rem;
  border-radius: var(--radius-control);
  border: 1px solid transparent;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: var(--text-base);
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--motion-fast), border-color var(--motion-fast), color var(--motion-fast);
}
.btn-sm {
  height: 2.25rem;
  padding: 0 1rem;
  font-size: var(--text-sm);
}
.btn-primary {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--paper);
}
.btn-primary:hover {
  background: var(--accent-strong);
  border-color: var(--accent-strong);
}
.btn-secondary {
  background: var(--card);
  border-color: var(--border);
  color: var(--ink);
}
.btn-secondary:hover {
  border-color: var(--accent);
}
.btn-on-dark {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ink);
}
.btn-on-dark:hover {
  background: var(--accent-strong);
  color: var(--paper);
}

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
}
.hero-decoration {
  position: absolute;
  top: -6rem;
  right: -6rem;
  width: 18rem;
  height: 18rem;
  color: rgb(154 123 79 / 0.25);
  pointer-events: none;
}
.hero-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 4rem;
  padding-bottom: 5rem;
}
.eyebrow {
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.75rem;
  font-size: var(--text-xs);
  font-weight: 600;
}
.hero h1 {
  margin: 1.5rem 0 0;
  max-width: 46rem;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-2xl);
  line-height: 1.2;
}
.hero p.lede {
  margin: 1.25rem 0 0;
  max-width: 38rem;
  color: var(--ink-muted);
}
.cta-row {
  margin-top: 2rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
}
.trust-block {
  margin-top: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.badge-disclosure {
  display: inline-block;
}
.badge-disclosure summary {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  list-style: none;
  cursor: pointer;
  border: 1px solid var(--accent);
  border-radius: var(--radius-pill);
  padding: 0.25rem 0.625rem;
  font-size: var(--text-xs);
  font-weight: 600;
  color: var(--accent-strong);
}
.badge-disclosure summary::-webkit-details-marker {
  display: none;
}
.badge-disclosure ul {
  margin: 0.5rem auto 0;
  max-width: 20rem;
  text-align: left;
  list-style: none;
  padding: 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-control);
  background: var(--card);
  box-shadow: var(--shadow-card);
  font-size: var(--text-xs);
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
}
.escrow-note {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}

/* Sections */
section {
  border-top: 1px solid var(--border);
}
.section-inner {
  padding-top: 4rem;
  padding-bottom: 4rem;
}
h2 {
  text-align: center;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-xl);
  margin: 0;
}

.steps {
  margin-top: 2.5rem;
  display: grid;
  gap: 2rem;
}
.step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
.step-badge {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 999px;
  background: var(--info-bg);
  color: var(--accent-strong);
  font-family: var(--font-display);
  font-weight: 600;
}
.step p.title {
  margin: 0.75rem 0 0;
  font-weight: 600;
}
.step p.body {
  margin: 0.25rem 0 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.why {
  background: rgb(255 255 255 / 0.4);
}
.why-grid {
  margin-top: 2.5rem;
  display: grid;
  gap: 1.25rem;
}
.why-card {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 1.5rem;
}
.why-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  background: var(--success-bg);
  color: var(--success);
}
.why-card h3 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: var(--text-base);
}
.why-card p {
  margin: 0.25rem 0 0;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}

.advocates {
  background: var(--ink);
  color: var(--paper);
}
.advocates .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}
.advocates p {
  max-width: 36rem;
  color: rgb(250 248 244 / 0.8);
}

.waitlist .section-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
}
.waitlist p.lede {
  margin-top: 0.75rem;
  max-width: 30rem;
  text-align: center;
  font-size: var(--text-sm);
  color: var(--ink-muted);
}
.waitlist-card {
  margin-top: 2rem;
  width: 100%;
  max-width: 26rem;
  border: 1px solid var(--border);
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  padding: 2rem;
  text-align: center;
}
.waitlist-card .btn {
  width: 100%;
}
.waitlist-card .fine-print {
  margin: 1rem 0 0;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
.waitlist-card .sign-in-note {
  margin: 0.75rem 0 0;
  font-size: var(--text-xs);
  color: var(--ink-muted);
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem;
  text-align: center;
  font-size: var(--text-xs);
  color: var(--ink-muted);
}
footer p {
  margin: 0.25rem 0 0;
}
footer p:first-child {
  margin-top: 0;
}

@media (min-width: 640px) {
  .nav-link {
    display: inline;
  }
  .hero-decoration {
    width: 26rem;
    height: 26rem;
  }
  .hero-inner {
    padding-top: 6rem;
    padding-bottom: 7rem;
  }
  .hero h1 {
    font-size: var(--text-3xl);
  }
  .steps {
    grid-template-columns: repeat(3, 1fr);
  }
  .why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
