/* ─────────────────────────────────────────────────────────────────────
   Merit — landing site
   Typography-first, editorial minimalism, warm cream + forest green.
   ───────────────────────────────────────────────────────────────────── */

:root {
  --cream: #FFF4E4;
  --cream-deep: #FBE8CE;
  --ink: #1A1F1D;
  --ink-soft: #4A544F;
  --ink-mute: #8A938D;
  --ink-ghost: rgba(26, 31, 29, 0.08);
  --forest: #1D4D3E;
  --forest-light: #2F6B5A;
  --forest-deep: #0F2E24;
  --peach: #F5B895;
  --yellow: #F4C753;
  --pink: #E89AAF;

  --radius-card: 24px;
  --radius-pill: 9999px;
  --radius-input: 16px;

  --serif: "Fraunces", "Georgia", "Times New Roman", serif;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  --s-xs: 4px;
  --s-sm: 8px;
  --s-md: 16px;
  --s-lg: 24px;
  --s-xl: 32px;
  --s-xxl: 48px;
  --s-xxxl: 80px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 var(--s-lg);
}

.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 var(--s-lg);
}

/* ───────── Nav ───────── */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 244, 228, 0.9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--ink-ghost);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px var(--s-lg);
  max-width: 1120px;
  margin: 0 auto;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.015em;
  color: var(--forest);
}
.brand img { height: 28px; }
.nav-links {
  display: flex;
  gap: var(--s-lg);
  font-size: 14px;
  font-weight: 500;
  color: var(--ink-soft);
}
.nav-links a:hover { color: var(--forest); }

/* ───────── Buttons ───────── */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: var(--radius-pill);
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .18s ease, background .18s ease, color .18s ease;
  text-decoration: none;
  letter-spacing: -0.005em;
}
.btn-primary {
  background: var(--forest);
  color: var(--cream);
}
.btn-primary:hover {
  background: var(--forest-deep);
  transform: translateY(-1px);
}
.btn-ghost {
  background: transparent;
  color: var(--forest);
  border: 1.5px solid var(--ink-ghost);
}
.btn-ghost:hover {
  background: var(--ink-ghost);
}

/* ───────── Hero ───────── */
.hero {
  padding: 80px 0 120px;
  position: relative;
  overflow: hidden;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--s-xxl);
  align-items: center;
}
.hero h1 {
  font-family: var(--serif);
  font-size: clamp(44px, 7vw, 88px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  color: var(--ink);
  margin-bottom: var(--s-lg);
}
.hero h1 em {
  font-style: italic;
  font-weight: 500;
  color: var(--forest);
}
.hero p.lead {
  font-size: 19px;
  line-height: 1.55;
  color: var(--ink-soft);
  letter-spacing: -0.005em;
  margin-bottom: var(--s-xl);
  max-width: 520px;
}
.hero-actions {
  display: flex;
  gap: var(--s-sm);
  flex-wrap: wrap;
}

/* Hero mock card */
.hero-card {
  position: relative;
  aspect-ratio: 9 / 16;
  max-width: 360px;
  margin: 0 auto;
  background: var(--cream-deep);
  border-radius: 40px;
  padding: 28px 22px;
  box-shadow:
    0 24px 60px -20px rgba(26, 31, 29, 0.22),
    0 2px 6px rgba(26, 31, 29, 0.04);
  overflow: hidden;
}
.mock-date {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: 20px;
}
.mock-h {
  font-family: var(--serif);
  font-size: 38px;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: 4px;
}
.mock-h em { font-style: italic; font-weight: 500; }
.mock-meta {
  font-size: 13px;
  color: var(--ink-soft);
  margin-bottom: 24px;
}
.mock-wallet {
  background: var(--forest);
  border-radius: 20px;
  padding: 18px;
  color: var(--cream);
  margin-bottom: 18px;
}
.mock-wallet-value {
  font-family: var(--serif);
  font-size: 32px;
  letter-spacing: -0.03em;
}
.mock-wallet-label {
  font-size: 11px;
  opacity: 0.72;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 4px;
}
.mock-task {
  background: var(--cream);
  border-radius: 18px;
  padding: 14px 16px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
}
.mock-task .dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--forest);
  flex-shrink: 0;
}
.mock-task.done .dot {
  background: var(--forest);
  position: relative;
}
.mock-task.done .dot::after {
  content: "";
  position: absolute;
  top: 4px; left: 7px;
  width: 4px; height: 8px;
  border: solid var(--cream);
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}
.mock-task .t-label { flex: 1; }
.mock-task .t-xp {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: var(--forest);
  text-transform: uppercase;
}

/* Hero subtle orb */
.hero::before {
  content: "";
  position: absolute;
  top: -15%; right: -10%;
  width: 520px; height: 520px;
  background: radial-gradient(closest-side, rgba(29, 77, 62, 0.14), transparent);
  border-radius: 50%;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  50% { transform: translateY(30px) translateX(-20px); }
}

/* ───────── Sections ───────── */
section {
  padding: 80px 0;
  position: relative;
}
.section-kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--forest);
  margin-bottom: var(--s-md);
}
.section-title {
  font-family: var(--serif);
  font-size: clamp(34px, 5vw, 56px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-lg);
  max-width: 760px;
}
.section-title em { font-style: italic; font-weight: 500; color: var(--forest); }
.section-lead {
  font-size: 18px;
  color: var(--ink-soft);
  max-width: 640px;
  margin-bottom: var(--s-xxl);
}

/* ───────── 3-step how it works ───────── */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-lg);
}
.step {
  background: var(--cream-deep);
  border-radius: var(--radius-card);
  padding: var(--s-xl);
}
.step-num {
  font-family: var(--serif);
  font-size: 56px;
  font-weight: 400;
  font-style: italic;
  color: var(--forest);
  line-height: 1;
  margin-bottom: var(--s-md);
  letter-spacing: -0.04em;
}
.step h3 {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-sm);
}
.step p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* ───────── Features grid ───────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--s-md);
}
.feature {
  background: var(--cream-deep);
  border-radius: 20px;
  padding: var(--s-lg);
}
.feature .icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--forest);
  color: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  margin-bottom: var(--s-md);
}
.feature h4 {
  font-family: var(--serif);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.02em;
  margin-bottom: var(--s-xs);
}
.feature p {
  color: var(--ink-soft);
  font-size: 14.5px;
  line-height: 1.55;
}

/* ───────── Balance section ───────── */
.balance {
  background: var(--forest);
  color: var(--cream);
  border-radius: var(--radius-card);
  padding: var(--s-xxxl) var(--s-xxl);
  margin-top: var(--s-xxl);
}
.balance h2 {
  font-family: var(--serif);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-lg);
  color: var(--cream);
}
.balance h2 em { font-style: italic; font-weight: 500; color: var(--peach); }
.balance p {
  font-size: 17px;
  color: rgba(255, 244, 228, 0.78);
  max-width: 640px;
  margin-bottom: var(--s-xl);
}
.pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--s-sm);
}
.pill {
  padding: 10px 18px;
  border-radius: var(--radius-pill);
  background: rgba(255, 244, 228, 0.1);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  display: flex;
  align-items: center;
  gap: 8px;
}
.pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
}

/* ───────── CTA ───────── */
.cta {
  text-align: center;
  padding: 120px 0;
}
.cta h2 {
  font-family: var(--serif);
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 400;
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-lg);
}
.cta h2 em { font-style: italic; font-weight: 500; color: var(--forest); }
.cta p {
  font-size: 18px;
  color: var(--ink-soft);
  margin-bottom: var(--s-xl);
}

/* ───────── Footer ───────── */
footer {
  background: var(--forest-deep);
  color: rgba(255, 244, 228, 0.72);
  padding: var(--s-xxl) 0 var(--s-lg);
  font-size: 14px;
}
footer .container {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--s-lg);
}
footer .brand {
  color: var(--cream);
}
footer a {
  color: rgba(255, 244, 228, 0.72);
  transition: color .18s ease;
}
footer a:hover { color: var(--cream); }
footer nav a {
  display: block;
  margin-bottom: 6px;
}
footer .col-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--cream);
  margin-bottom: 12px;
}
footer .copy {
  width: 100%;
  margin-top: var(--s-xl);
  padding-top: var(--s-lg);
  border-top: 1px solid rgba(255, 244, 228, 0.1);
  font-size: 12px;
  color: rgba(255, 244, 228, 0.55);
}

/* ───────── Legal pages ───────── */
.legal {
  padding: 80px 0 120px;
}
.legal h1 {
  font-family: var(--serif);
  font-size: clamp(38px, 5vw, 56px);
  font-weight: 400;
  line-height: 0.98;
  letter-spacing: -0.035em;
  margin-bottom: var(--s-xs);
}
.legal h1 em { font-style: italic; font-weight: 500; color: var(--forest); }
.legal .updated {
  font-size: 13px;
  color: var(--ink-mute);
  margin-bottom: var(--s-xxl);
}
.legal h2 {
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  letter-spacing: -0.02em;
  margin-top: var(--s-xxl);
  margin-bottom: var(--s-md);
}
.legal h3 {
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 600;
  margin-top: var(--s-lg);
  margin-bottom: var(--s-sm);
}
.legal p {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: var(--s-md);
}
.legal ul {
  color: var(--ink-soft);
  font-size: 16px;
  line-height: 1.7;
  padding-left: 24px;
  margin-bottom: var(--s-md);
}
.legal li { margin-bottom: 6px; }
.legal strong { color: var(--ink); }
.legal a { color: var(--forest); text-decoration: underline; }
.legal .toc {
  background: var(--cream-deep);
  border-radius: 16px;
  padding: 20px 24px;
  margin-bottom: var(--s-xxl);
}
.legal .toc a { text-decoration: none; }
.legal .toc ol {
  padding-left: 20px;
  color: var(--ink-soft);
  font-size: 14.5px;
}

/* ───────── Reveal on scroll ───────── */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(0.25, 0.5, 0.3, 1), transform .8s cubic-bezier(0.25, 0.5, 0.3, 1);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal.delay-1 { transition-delay: .08s; }
.reveal.delay-2 { transition-delay: .16s; }
.reveal.delay-3 { transition-delay: .24s; }

/* ───────── Responsive ───────── */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--s-xxl); }
  .hero-card { max-width: 300px; }
  .steps, .features { grid-template-columns: 1fr; }
  .nav-links { gap: var(--s-md); font-size: 13px; }
  .nav-links a:not(.btn) { display: none; }
  section { padding: 60px 0; }
  .balance { padding: var(--s-xxl) var(--s-lg); }
}
