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

/*
  Palette:  #f2f0eb; #2a2520; #fff
  Type:     Syne 700 (wordmark, labels); 
            DM Serif Display (headline, card text)
  Scale:    0.6; 0.72; 0.85; 1rem; 1.25; clamp(2-2.8rem)
  Tracking: 0.04em (utility); 0.1em (caps)
*/

:root {
  --bg:        #f2f0eb;
  --surface:   #ffffff;
  --ink:       #2a2520;
  --ink-mid:   #6b6460;
  --ink-faint: #b0a89e;
  --border:    rgba(42,37,32,0.13);
  --shadow:    rgba(42,37,32,0.08);
  --green:     #16a34a;
  --red:       #dc2626;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg:        #18181a;
    --surface:   #2c2c2e;
    --ink:       #f0f0ee;
    --ink-mid:   #9a9895;
    --ink-faint: #525050;
    --border:    rgba(240,240,238,0.11);
    --shadow:    rgba(0,0,0,0.3);
    --green:     #4ade80;
    --red:       #f87171;
  }
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  -webkit-font-smoothing: antialiased;
}

/* grain */
body::after {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none; z-index: 9999; opacity: 0.04;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 512 512' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.75' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 256px 256px;
}

/* Layout */
.wrap {
  width: 100%;
  max-width: 560px;
  padding: 0 1.5rem;
}

/* Nav */
nav {
  width: 100%;
  max-width: 560px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 1.5rem;
}

.nav-wordmark {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink);
  text-decoration: none;
}

.nav-cta {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--ink);
  text-decoration: none;
  border: 1.5px solid var(--border);
  padding: 0.4rem 1.05rem;
  border-radius: 10px;
  transition: border-color 0.15s;
}
.nav-cta:hover { border-color: var(--ink-mid); }

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
  text-align: center;
}

.hero-eyebrow {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin-bottom: 1.4rem;
}

.hero-headline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 8vw, 2.75rem);
  font-weight: 400;
  line-height: 1.18;
  color: var(--ink);
  margin-bottom: 1.25rem;
}

.hero-headline em {
  font-style: italic;
  color: var(--ink-mid);
}

.hero-sub {
  font-size: 0.95rem;
  color: var(--ink-mid);
  line-height: 1.7;
  max-width: 380px;
  margin: 0 auto 2.75rem;
}

.hero-btn {
  display: inline-block;
  background: var(--ink);
  color: var(--bg);
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  padding: 0.85rem 2.1rem;
  border-radius: 10px;
  text-decoration: none;
  transition: opacity 0.15s, transform 0.15s;
}
.hero-btn:hover  { opacity: 0.8; transform: translateY(-1px); }
.hero-btn:active { opacity: 1;   transform: translateY(0); }

/* Card preview */
.preview {
  padding: 0 0 5rem;
  display: flex;
  justify-content: center;
}

.preview-stack {
  position: relative;
  width: 288px;
}

.preview-stack::before,
.preview-stack::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px;
  background: var(--surface);
}
.preview-stack::before {
  bottom: -9px;
  width: calc(100% - 22px);
  height: 100%;
  opacity: 0.5;
  box-shadow: 0 4px 18px var(--shadow);
}
.preview-stack::after {
  bottom: -16px;
  width: calc(100% - 44px);
  height: 100%;
  opacity: 0.28;
  box-shadow: 0 4px 18px var(--shadow);
}

.preview-card {
  position: relative;
  z-index: 1;
  background: var(--surface);
  border-radius: 22px;
  padding: 2.25rem 1.75rem 1.75rem;
  box-shadow: 0 8px 40px var(--shadow);
  text-align: center;
}

.preview-setup {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.05rem;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 1rem;
  min-height: 1.6em;
}

.preview-divider {
  width: 28px;
  height: 1px;
  background: var(--border);
  margin: 0 auto 1rem;
}

.preview-punchline {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 1.05rem;
  font-style: italic;
  color: var(--ink-mid);
  line-height: 1.5;
  min-height: 1.6em;
}

.preview-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1.75rem;
}

.preview-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  background: var(--bg);
  box-shadow: 0 2px 10px var(--shadow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
.preview-btn.nah { color: var(--red); }
.preview-btn.ha  { color: var(--green); }

.preview-labels {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 0.45rem;
}

.preview-label {
  width: 46px;
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-faint);
  text-align: center;
}

/* Features (definition list) */
.features {
  display: grid;
  grid-template-columns: max-content 1fr;
  column-gap: 2.5rem;
  margin-bottom: 5rem;
}

.features dt {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  padding: 0.75rem 0;
  white-space: nowrap;
}

.features dd {
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.6;
  padding: 0.75rem 0;
}

/* Pricing */
.pricing {
  margin-bottom: 4rem;
}
.pricing-heading {
  font-family: 'Syne', system-ui, sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 1rem;
}
.pricing-list {
  list-style: none;
  padding: 0;
}
.pricing-list li {
  font-size: 0.85rem;
  color: var(--ink-mid);
  line-height: 1.6;
  padding: 0.15rem 0;
}

.restore-link {
  font-size: 0.78rem;
  color: var(--ink-faint);
  margin-top: 0.75rem;
  margin-bottom: 4rem;
}
.restore-link a {
  color: var(--ink-mid);
  text-decoration: none;
}
.restore-link a:hover { color: var(--ink); }

/* Footer */
footer {
  width: 100%;
  max-width: 560px;
  padding: 1.5rem 1.5rem 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.85rem;
  border-top: 1px solid var(--border);
  margin-top: auto;
  text-align: center;
}

.footer-copy {
  font-size: 0.72rem;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
}
.footer-copy a {
  color: var(--ink-mid);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.15s;
}
.footer-copy a:hover { color: var(--ink); }

.footer-links {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}
.footer-links a {
  font-size: 0.72rem;
  color: var(--ink-faint);
  text-decoration: none;
  letter-spacing: 0.03em;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--ink); }

/* Mobile CTA bar */
.mobile-cta { display: none; }

@media (max-width: 600px) {
  nav { justify-content: center; }
  .nav-cta { display: none; }

  body { padding-bottom: 80px; }

  .mobile-cta {
    display: block;
    position: fixed;
    bottom: 0; left: 0; right: 0;
    padding: 0.85rem 1.5rem;
    padding-bottom: calc(0.85rem + env(safe-area-inset-bottom));
    background: var(--bg);
    border-top: 1px solid var(--border);
    z-index: 100;
  }
  .mobile-cta a {
    display: block;
    background: var(--ink);
    color: var(--bg);
    font-family: 'Syne', system-ui, sans-serif;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-decoration: none;
    text-align: center;
    padding: 0.85rem;
    border-radius: 10px;
    transition: opacity 0.15s;
  }
  .mobile-cta a:active { opacity: 0.8; }
}
