/* ---------- Design tokens (matches the Daystack iOS app theme) ---------- */
:root {
  --bg: #F7F3EC;
  --surface: #FFFDF9;
  --ink: #1E1B18;
  --ink-muted: #6F6A62;
  --hairline: #E5DED2;
  --accent: #B0663F;
  --accent-soft: #EFDDD0;
  --accent-line: rgba(176, 102, 63, 0.28);

  --font-serif: 'Fraunces', Georgia, serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;

  --container: 1220px;
  --radius-sm: 10px;
  --radius-md: 22px;
  --radius-lg: 36px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* subtle paper grain overlay for warmth */
.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 999;
  opacity: 0.035;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

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

/* ---------- Typography ---------- */
.eyebrow {
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 18px;
}
.eyebrow.center { text-align: center; }

.display {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.01em;
  line-height: 1.06;
  margin: 0 0 22px;
  color: var(--ink);
}
h1.display { font-size: clamp(44px, 6.4vw, 76px); font-weight: 300; }
h2.display { font-size: clamp(32px, 4.6vw, 48px); }
.display em { font-style: italic; color: var(--accent); }
.display.center { text-align: center; margin-left: auto; margin-right: auto; }

.lede {
  font-size: 18.5px;
  font-weight: 300;
  color: var(--ink-muted);
  max-width: 470px;
  margin: 0 0 36px;
  line-height: 1.7;
  text-wrap: pretty;
}

.section-sub {
  color: var(--ink-muted);
  font-weight: 300;
  font-size: 17px;
  line-height: 1.7;
  max-width: 400px;
  text-wrap: pretty;
}
.section-sub.center { max-width: 520px; margin: 0 auto 56px; text-align: center; }

/* ---------- Buttons & forms ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: none;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--surface);
  padding: 17px 30px;
}
.btn-primary:hover { background: var(--accent); transform: translateY(-1px); box-shadow: 0 14px 28px -14px rgba(176, 102, 63, 0.55); }
.btn-sm { padding: 11px 22px; font-size: 11.5px; }

.waitlist-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin-bottom: 10px;
}
.waitlist-form.center { margin-left: auto; margin-right: auto; }
.waitlist-form input {
  flex: 1;
  min-width: 0;
  padding: 17px 20px;
  border-radius: 999px;
  border: 1px solid var(--hairline);
  background: var(--surface);
  font-family: var(--font-sans);
  font-weight: 300;
  font-size: 15px;
  color: var(--ink);
}
.waitlist-form input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}
.waitlist-form.submitted input,
.waitlist-form.submitted button { opacity: 0.55; pointer-events: none; }

.form-note {
  font-size: 13.5px;
  color: var(--ink-muted);
  margin: 0;
}
.form-note.center { text-align: center; }
.form-note.success { color: var(--accent); font-weight: 600; }

@media (max-width: 480px) {
  .waitlist-form { flex-direction: column; }
}

/* ---------- Nav ---------- */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 236, 0.82);
  backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}
.logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 500;
  letter-spacing: 0.01em;
  color: var(--ink);
}
.logo-mark { color: var(--accent); display: inline-flex; }

.nav-links {
  display: flex;
  gap: 36px;
}
.nav-links a {
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  transition: color 0.15s ease;
}
.nav-links a:hover { color: var(--ink); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  width: 26px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-toggle span {
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

@media (max-width: 880px) {
  .nav-links {
    position: absolute;
    top: 100%;
    left: 0; right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--hairline);
    flex-direction: column;
    gap: 0;
    padding: 8px 24px 18px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 0; border-bottom: 1px solid var(--hairline); }
  .nav-links a:last-child { border-bottom: none; }
  .nav-toggle { display: flex; }
  .nav-actions .btn-sm { display: none; }
}

/* ---------- Hero ---------- */
.hero { padding: 96px 0 130px; overflow: hidden; }
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 0.92fr;
  gap: 88px;
  align-items: center;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 32px;
  font-size: 13px;
  font-weight: 300;
  color: var(--ink-muted);
}
.hero-trust span { text-wrap: pretty; }
.avatar-stack { display: flex; }
.avatar-stack span {
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
  background: var(--accent-soft);
}
.avatar-stack span:first-child { margin-left: 0; background: #E4E7DF; }
.avatar-stack span:nth-child(2) { background: #EFDDD0; }
.avatar-stack span:nth-child(3) { background: #E7DCE7; }

.hero-visual { position: relative; display: flex; justify-content: center; }
.blob {
  position: absolute;
  width: 560px; height: 560px;
  background: radial-gradient(circle at 30% 30%, var(--accent-soft), transparent 72%);
  filter: blur(18px);
  border-radius: 50%;
  top: -60px;
  z-index: 0;
}

.phone {
  position: relative;
  z-index: 1;
  width: 300px;
  background: var(--ink);
  border-radius: 44px;
  padding: 14px;
  box-shadow: 0 60px 100px -36px rgba(30, 27, 24, 0.4), 0 12px 32px -14px rgba(176, 102, 63, 0.3);
}
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 90px; height: 22px;
  background: var(--ink);
  border-radius: 0 0 14px 14px;
  z-index: 2;
}
.phone-screen {
  background: var(--surface);
  border-radius: 32px;
  padding: 28px 18px 20px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.app-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
  margin-bottom: 22px;
}
.app-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.stack-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 16px;
}
.stack-eyebrow {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 4px;
}
.stack-card-header h3 {
  font-family: var(--font-serif);
  font-size: 20px;
  font-weight: 600;
  margin: 0;
}
.stack-icon {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}

.stack-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  background: var(--accent-soft);
  border-radius: 999px;
  padding: 3px;
}
.tab-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 0;
}
.tab-btn.active {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 2px 8px -2px rgba(30, 27, 24, 0.15);
}
.tab-icon { flex-shrink: 0; color: var(--accent); }

.stack-steps { list-style: none; margin: 0; padding: 0; flex: 1; }
.stack-steps li {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 1px solid var(--hairline);
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.4;
}
.stack-steps li.done { color: var(--ink-muted); text-decoration: line-through; text-decoration-color: var(--hairline); }
.check {
  flex-shrink: 0;
  width: 18px; height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  color: var(--surface);
  margin-top: 1px;
}
.stack-steps li.done .check { background: var(--accent); border-color: var(--accent); }
.add-pill {
  margin-left: auto;
  flex-shrink: 0;
  border: 1px solid var(--hairline);
  background: transparent;
  color: var(--accent);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  padding: 4px 9px;
  align-self: center;
  display: inline-block;
}

.stack-source {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--hairline);
  font-size: 12px;
}
.stack-source > span {
  color: var(--ink-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 10.5px;
}
.stack-source p { margin: 2px 0 0; color: var(--ink); }
.stack-source p .source-link { color: inherit; display: inline-flex; align-items: center; gap: 4px; }
.external-icon { flex-shrink: 0; color: var(--accent); }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-copy { order: 0; text-align: left; }
  .hero-visual { order: 1; }
  .lede { max-width: none; }
}

/* ---------- Proof strip / marquee ---------- */
.proof-strip {
  background: var(--ink);
  color: var(--surface);
  padding: 20px 0;
  overflow: hidden;
}
.marquee { width: 100%; }
.marquee-track {
  display: flex;
  gap: 18px;
  white-space: nowrap;
  width: max-content;
  animation: scroll-left 40s linear infinite;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  opacity: 0.85;
}
.marquee-track span:nth-child(2n) { color: var(--accent-soft); }
@keyframes scroll-left {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- How it works ---------- */
.how { padding: 150px 0; }
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  margin-top: 56px;
}
.step-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  padding: 40px 32px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.step-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -30px rgba(30,27,24,0.2);
}
.step-index {
  font-family: var(--font-sans);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  color: var(--accent);
  display: block;
  margin-bottom: 22px;
}
.step-card h3 {
  font-family: var(--font-serif);
  font-weight: 500;
  font-size: 23px;
  margin: 0 0 12px;
}
.step-card p { color: var(--ink-muted); font-weight: 300; line-height: 1.65; margin: 0; font-size: 15.5px; }

@media (max-width: 820px) {
  .steps-grid { grid-template-columns: 1fr; }
}

/* ---------- Creators ---------- */
.creators { padding: 0 0 150px; }
.section-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.creator-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.creator-card {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.creator-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 28px 56px -30px rgba(30,27,24,0.28);
}
.creator-portrait {
  position: relative;
  aspect-ratio: 4 / 5;
  background: linear-gradient(160deg, var(--tint, var(--accent-soft)), var(--surface) 115%);
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.creator-portrait::after {
  content: attr(data-name);
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: 15px;
  letter-spacing: 0.02em;
  color: var(--ink);
  opacity: 0.55;
}
.creator-card .creator-body { padding: 24px 26px 28px; }
.creator-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 20px; margin: 0 0 5px; }
.creator-tag { color: var(--ink-muted); font-weight: 300; font-size: 14px; margin: 0 0 20px; }

.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 11.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--ink-muted);
  background: transparent;
  border: 1px solid var(--hairline);
  border-radius: 999px;
  padding: 6px 13px;
}

@media (max-width: 820px) {
  .creator-grid { grid-template-columns: 1fr; }
}

/* ---------- Features ---------- */
.features { padding: 0 0 160px; }
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-top: 56px;
}
.feature-card {
  padding: 32px 26px;
  border-radius: var(--radius-md);
  background: var(--surface);
  border: 1px solid var(--hairline);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 48px -30px rgba(30,27,24,0.2);
  border-color: var(--accent-line);
}
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 22px;
}
.feature-card h3 { font-family: var(--font-serif); font-weight: 500; font-size: 18px; margin: 0 0 9px; }
.feature-card p { font-size: 14.5px; font-weight: 300; line-height: 1.6; color: var(--ink-muted); margin: 0; }

@media (max-width: 980px) {
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .feature-grid { grid-template-columns: 1fr; }
}

/* ---------- Quote ---------- */
.quote-section {
  padding: 130px 0;
  background: var(--ink);
  color: var(--surface);
  text-align: center;
}
.quote-section blockquote {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(24px, 3.4vw, 36px);
  line-height: 1.35;
  max-width: 820px;
  margin: 0 auto 24px;
}
.quote-attr { color: #B8B2A7; font-size: 14px; margin: 0; }

/* ---------- Final CTA ---------- */
.cta-final { padding: 160px 0; }

/* ---------- FAQ ---------- */
.faq { padding: 0 0 170px; }
.faq-list {
  max-width: 720px;
  margin: 48px auto 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.faq-item {
  background: var(--surface);
  border: 1px solid var(--hairline);
  border-radius: var(--radius-sm);
  padding: 20px 24px;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--font-serif);
  font-size: 22px;
  color: var(--accent);
  margin-left: 16px;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '–'; }
.faq-item p { color: var(--ink-muted); margin: 14px 0 0; font-size: 15px; }

/* ---------- Footer ---------- */
.footer { background: var(--surface); border-top: 1px solid var(--hairline); padding-top: 56px; }
.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-tag { color: var(--ink-muted); font-size: 14px; margin: 10px 0 0; }
.footer-links { display: flex; gap: 24px; flex-wrap: wrap; }
.footer-links a { font-size: 14px; color: var(--ink-muted); }
.footer-links a:hover { color: var(--ink); }
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hairline);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-muted);
}
.footer-bottom {
  border-top: 1px solid var(--hairline);
  padding: 20px 24px;
  font-size: 13px;
  color: var(--ink-muted);
}
.footer-bottom a { color: var(--accent); }
.footer-bottom a:hover { text-decoration: underline; }

/* ---------- Reveal on scroll ---------- */
.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.in-view { opacity: 1; transform: translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .marquee-track { animation: none; }
}
