/* ---------------------------------------------------------
   Wooed — design tokens
--------------------------------------------------------- */
:root {
  --rust: #B5451B;
  --rust-light: #D4622C;
  --cream: #F7F3EE;
  --parchment: #EDE7DC;
  --linen: #E0D6C8;
  --ink-dark: #1A1208;
  --ink-mid: #5C4B35;
  --ink-light: #9C8B78;
  --gold: #C8A96A;
  --card-back: #1C1208;

  --font-display: 'Fraunces', Didot, Georgia, serif;
  --font-body: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;

  /* fluid type scale */
  --step--1: clamp(0.83rem, 0.8rem + 0.15vw, 0.9rem);
  --step-0:  clamp(1rem, 0.95rem + 0.2vw, 1.05rem);
  --step-1:  clamp(1.2rem, 1.1rem + 0.5vw, 1.35rem);
  --step-2:  clamp(1.5rem, 1.3rem + 1vw, 1.9rem);
  --step-3:  clamp(1.9rem, 1.5rem + 1.8vw, 2.6rem);
  --step-4:  clamp(2.4rem, 1.7rem + 3vw, 3.75rem);
  --step-5:  clamp(3rem, 2rem + 4.5vw, 5.25rem);

  /* spacing scale */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  --nav-height: 76px;
  --max-width: 1180px;
}

/* ---------------------------------------------------------
   Reset / base
--------------------------------------------------------- */
* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--cream);
  color: var(--ink-dark);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--space-5);
}

h1, h2, h3, blockquote {
  font-family: var(--font-display);
  margin: 0;
  line-height: 1.15;
}

a { color: inherit; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------------------------------------------------------
   Grain texture (zero-asset, inline SVG feTurbulence)
--------------------------------------------------------- */
.grain {
  position: relative;
  isolation: isolate;
}

.grain::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.05;
  mix-blend-mode: overlay;
  z-index: 1;
}

.grain--soft::after { opacity: 0.025; mix-blend-mode: multiply; }

/* ---------------------------------------------------------
   Scroll-reveal utility (paired with main.js IntersectionObserver)
--------------------------------------------------------- */
[data-reveal] {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
}

/* ---------------------------------------------------------
   Nav
--------------------------------------------------------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-nav.nav--solid {
  background: rgba(247, 243, 238, 0.92);
  backdrop-filter: blur(8px);
  border-bottom-color: var(--linen);
  box-shadow: 0 2px 16px rgba(26, 18, 8, 0.05);
}

.site-nav .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.nav-logo {
  display: flex;
  align-items: center;
  height: 28px;
}

.nav-logo img { height: 100%; width: auto; }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a:not(.nav-cta) {
  font-size: var(--step--1);
  text-decoration: none;
  color: var(--ink-mid);
  letter-spacing: 0.2px;
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-links a:not(.nav-cta):hover { color: var(--rust); }

.nav-links a.active:not(.nav-cta) { color: var(--rust); }

.nav-links a.active:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--gold);
  border-radius: 2px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  background: var(--rust);
  color: var(--cream) !important;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 100px;
  font-size: var(--step--1);
  font-weight: 600;
  transition: background-color 0.2s ease;
  white-space: nowrap;
}

.nav-cta:hover { background: var(--rust-light); }

/* ---------------------------------------------------------
   Hero
--------------------------------------------------------- */
.hero {
  background: var(--card-back);
  padding: var(--space-8) 0 var(--space-9);
  margin-top: calc(var(--nav-height) * -1);
  padding-top: calc(var(--nav-height) + var(--space-7));
}

.hero .wrap {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: var(--space-8);
  align-items: center;
}

.hero-copy { max-width: 480px; }

.hero-logo { width: 200px; margin-bottom: var(--space-2); }

.tagline {
  color: var(--gold);
  font-family: var(--font-display);
  font-style: italic;
  font-size: var(--step-0);
  margin: 0 0 var(--space-5);
}

.hero h1 {
  color: var(--cream);
  font-size: var(--step-4);
  font-weight: 600;
  margin-bottom: var(--space-4);
}

.hero p.sub {
  color: var(--linen);
  font-size: var(--step-1);
  line-height: 1.6;
  margin: 0 0 var(--space-6);
}

form.waitlist {
  display: flex;
  gap: var(--space-3);
  max-width: 420px;
  flex-wrap: wrap;
}

input[type="email"] {
  flex: 1;
  min-width: 220px;
  padding: 14px 16px;
  border-radius: 12px;
  border: none;
  font-size: var(--step-0);
  font-family: var(--font-body);
  background: var(--parchment);
  color: var(--ink-dark);
}

input[type="email"]:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }

button.submit {
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  background: var(--rust);
  color: var(--cream);
  font-size: var(--step-0);
  font-family: var(--font-body);
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

button.submit:hover { background: var(--rust-light); }
button.submit:disabled { opacity: 0.6; cursor: default; }

.waitlist-msg {
  color: var(--gold);
  font-size: var(--step--1);
  margin-top: var(--space-3);
  min-height: 20px;
}

/* ---------------------------------------------------------
   Scratch demo
--------------------------------------------------------- */
.scratch-demo {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4 / 5;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35);
}

.scratch-face {
  position: absolute;
  inset: 0;
  background: var(--parchment);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: var(--space-5);
}

.scratch-face .eyebrow {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rust);
  margin-bottom: var(--space-3);
}

.scratch-face p {
  font-family: var(--font-display);
  font-size: var(--step-2);
  color: var(--ink-dark);
  line-height: 1.3;
  margin: 0;
}

.scratch-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  cursor: grab;
  touch-action: none;
  transition: opacity 0.5s ease;
}

.scratch-hint {
  position: absolute;
  top: var(--space-4);
  right: var(--space-4);
  font-size: var(--step--1);
  color: var(--cream);
  opacity: 0.8;
  pointer-events: none;
  display: flex;
  align-items: center;
  gap: 6px;
  z-index: 2;
}

.scratch-hint.hint-pulse { animation: hint-pulse 1.6s ease-in-out 2; }

@keyframes hint-pulse {
  0%, 100% { opacity: 0.8; transform: translateX(0); }
  50% { opacity: 1; transform: translateX(-4px); }
}

/* ---------------------------------------------------------
   Story section
--------------------------------------------------------- */
.story {
  padding: var(--space-9) 0;
}

.story .wrap {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: var(--space-8);
  align-items: start;
}

.story .eyebrow {
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--rust);
  margin-bottom: var(--space-3);
}

.story blockquote {
  font-size: var(--step-4);
  color: var(--card-back);
  font-weight: 500;
  line-height: 1.1;
  margin: 0;
}

.story-body p {
  font-size: var(--step-1);
  color: var(--ink-mid);
  line-height: 1.7;
  margin: 0 0 var(--space-5);
}

.story-body p:last-child {
  font-family: var(--font-display);
  font-style: italic;
  color: var(--ink-dark);
  font-size: var(--step-2);
  margin-bottom: 0;
}

.story-signature {
  margin-top: var(--space-6);
  font-size: var(--step--1);
  color: var(--ink-light);
}

/* ---------------------------------------------------------
   How it works
--------------------------------------------------------- */
.how {
  padding: var(--space-9) 0;
  background: var(--parchment);
}

.how h2 {
  font-size: var(--step-3);
  color: var(--card-back);
  margin-bottom: var(--space-2);
}

.how .intro {
  max-width: 560px;
  color: var(--ink-mid);
  font-size: var(--step-1);
  margin: 0 0 var(--space-8);
}

.how-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-7);
}

.how-item {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: var(--space-6);
  align-items: start;
  padding-bottom: var(--space-7);
  border-bottom: 1px solid var(--linen);
}

.how-item:last-child { border-bottom: none; padding-bottom: 0; }

.how-item:nth-child(even) { margin-left: var(--space-8); }

.how-index {
  font-family: var(--font-display);
  font-size: var(--step-4);
  color: var(--gold);
  line-height: 1;
}

.how-item h3 {
  font-size: var(--step-2);
  color: var(--card-back);
  margin-bottom: var(--space-2);
}

.how-item p {
  font-size: var(--step-0);
  color: var(--ink-mid);
  line-height: 1.6;
  max-width: 480px;
  margin: 0;
}

/* ---------------------------------------------------------
   Lead magnet
--------------------------------------------------------- */
.lead-magnet {
  padding: var(--space-8) 0;
  background: var(--linen);
  text-align: center;
}

.lead-magnet h2 { font-size: var(--step-2); margin-bottom: var(--space-2); color: var(--card-back); }
.lead-magnet p { color: var(--ink-mid); max-width: 420px; margin: 0 auto var(--space-5); }

a.download-btn {
  display: inline-block;
  background: var(--rust);
  color: var(--cream);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 600;
  font-size: var(--step-0);
  transition: background-color 0.2s ease;
}

a.download-btn:hover { background: var(--rust-light); }

.download-btn.is-disabled {
  background: transparent;
  color: var(--ink-light);
  border: 1px dashed var(--ink-light);
  cursor: default;
}

/* ---------------------------------------------------------
   Stores (coming soon)
--------------------------------------------------------- */
.stores {
  padding: var(--space-7) 0;
  text-align: center;
}

.stores p.label {
  color: var(--ink-light);
  font-size: var(--step--1);
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-4);
}

.store-badges {
  display: flex;
  gap: var(--space-4);
  justify-content: center;
  flex-wrap: wrap;
}

.store-badge {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink-light);
  padding: 8px 4px;
  font-size: var(--step--1);
  cursor: default;
  border-bottom: 1px dashed var(--linen);
}

.brand-icon { width: 16px; height: 16px; flex-shrink: 0; }

/* ---------------------------------------------------------
   Secondary waitlist CTA band
--------------------------------------------------------- */
.cta-band {
  background: var(--card-back);
  padding: var(--space-8) 0;
  text-align: center;
}

.cta-band h2 {
  color: var(--cream);
  font-size: var(--step-3);
  margin-bottom: var(--space-5);
}

.cta-band form.waitlist { margin: 0 auto; justify-content: center; }
.cta-band .waitlist-msg { text-align: center; }

/* ---------------------------------------------------------
   Footer
--------------------------------------------------------- */
footer {
  padding: var(--space-6) 0 var(--space-7);
  color: var(--ink-light);
  font-size: var(--step--1);
}

footer .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-3);
}

footer a { text-decoration: none; color: var(--ink-light); }
footer a:hover { color: var(--rust); }

footer .footer-links {
  display: flex;
  gap: var(--space-5);
  list-style: none;
  margin: 0;
  padding: 0;
}

/* ---------------------------------------------------------
   Privacy page
--------------------------------------------------------- */
.privacy-header {
  background: var(--card-back);
  padding: var(--space-6) 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.privacy-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.privacy-header img { height: 24px; width: auto; }

.privacy-header .back-link {
  color: var(--linen);
  text-decoration: none;
  font-size: var(--step--1);
}

.privacy-header .back-link:hover { color: var(--gold); }

.legal-wrap {
  max-width: 680px;
  margin: 0 auto;
  padding: var(--space-7) var(--space-5) var(--space-9);
}

.legal-wrap h1 { font-size: var(--step-3); margin-bottom: 4px; color: var(--card-back); }
.legal-wrap .updated { color: var(--ink-mid); font-size: var(--step--1); margin-bottom: var(--space-6); }
.legal-wrap h2 { font-family: var(--font-display); font-size: var(--step-1); margin-top: var(--space-6); color: var(--rust); }
.legal-wrap p, .legal-wrap li { color: var(--ink-mid); font-size: var(--step-0); }
.legal-wrap a { color: var(--rust); }

/* ---------------------------------------------------------
   Responsive
--------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-copy { max-width: 100%; }
  .scratch-demo { margin-top: var(--space-7); }

  .story .wrap { grid-template-columns: 1fr; gap: var(--space-6); }

  .how-item { grid-template-columns: 1fr; gap: var(--space-3); }
  .how-item:nth-child(even) { margin-left: 0; }
  .how-index { font-size: var(--step-3); }
}

@media (max-width: 640px) {
  .nav-links a:not(.nav-cta) { display: none; }
  .nav-links { gap: 0; }

  form.waitlist { flex-direction: column; }
  form.waitlist input, form.waitlist button { width: 100%; }

  .store-badges { flex-direction: column; align-items: center; }
}
