/* ─── DESIGN TOKENS ──────────────────────────────────── */
/* Target vibe: 50% Pinterest/Etsy warmth, 30% Flat 2.0, 10% Web 2.0 depth */
:root {
  /* Warm off-white base — feels like aged paper, not sterile white */
  --bg:          #f7f3ee;
  --bg-warm:     #f0ebe3;
  --bg-card:     #fdfaf6;
  --bg-overlay:  rgba(247, 243, 238, 0.94);

  /* Text — warm near-blacks, not cold grays */
  --fg:          #2b2319;
  --fg-muted:    #7a6e62;
  --fg-dim:      #b0a599;

  /* Warm saturated accent — brick orange, feels chosen not generated */
  --accent:      #c45c2a;
  --accent-hover:#a84820;
  --accent-light: rgba(196, 92, 42, 0.10);
  --accent-glow:  rgba(196, 92, 42, 0.18);

  /* Secondary: dusty teal-blue (Pinterest board blue) */
  --teal:        #3b7d8c;
  --teal-light:  rgba(59, 125, 140, 0.10);

  /* Confirm green — slightly desaturated, natural */
  --green:       #4a7c59;
  --green-light: rgba(74, 124, 89, 0.10);

  /* Borders — warm, subtle */
  --border:      rgba(43, 35, 25, 0.10);
  --border-med:  rgba(43, 35, 25, 0.16);

  /* Cork-board-ish shadows */
  --shadow-sm:   0 1px 3px rgba(43, 35, 25, 0.10), 0 1px 2px rgba(43, 35, 25, 0.06);
  --shadow-md:   0 4px 10px rgba(43, 35, 25, 0.12), 0 2px 4px rgba(43, 35, 25, 0.07);
  --shadow-card: 0 2px 8px rgba(43, 35, 25, 0.09), 0 1px 3px rgba(43, 35, 25, 0.06);
  --shadow-lift: 0 6px 18px rgba(43, 35, 25, 0.13), 0 2px 6px rgba(43, 35, 25, 0.08);

  /* Typography — serif headings give handpicked warmth */
  --font-display: 'Playfair Display', serif;
  --font-body:    'Source Sans 3', sans-serif;
  --font-mono:    'DM Mono', monospace;

  /* Geometry — less uniform than pure Flat, slight Web 2.0 roundness */
  --radius-sm:   6px;
  --radius:      10px;
  --radius-lg:   16px;
  --radius-pill: 100px;
}

/* ─── RESET ──────────────────────────────────────────── */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

/* ─── PAPER TEXTURE ──────────────────────────────────── */
/* Subtle noise — hand-crafted feel without screaming "I'm textured" */
body {
  background-color: var(--bg);
  background-image:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='300' height='300' filter='url(%23noise)' opacity='0.025'/%3E%3C/svg%3E");
  color: var(--fg);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* ─── HERO ──────────────────────────────────────────── */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 120px 24px 80px;
  position: relative;
  overflow: hidden;
}

/* Warm radial warmth — not a glow, more like ambient lamp light */
.hero::before {
  content: '';
  position: absolute;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  width: 800px;
  height: 700px;
  background: radial-gradient(ellipse at center, rgba(196, 92, 42, 0.07) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

/* Small ribbon — Web 2.0 nod */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  border-radius: var(--radius-pill);
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  box-shadow: var(--shadow-sm);
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.025em;
  margin-bottom: 40px;
  position: relative;
  z-index: 1;
}

.hero-badge span { color: var(--fg-muted); font-weight: 400; }

/* Serif headings — gives it that Etsy/early-Pinterest warmth */
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 8vw, 5rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.01em;
  max-width: 760px;
  position: relative;
  z-index: 1;
  color: var(--fg);
}

.hero h1 em {
  font-style: italic;
  color: var(--accent);
}

.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--fg-muted);
  max-width: 520px;
  margin-top: 24px;
  line-height: 1.65;
  position: relative;
  z-index: 1;
}

.hero-visual {
  margin-top: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  position: relative;
  z-index: 1;
}

/* Swap cards look like pinned notes / index cards on a cork board */
.swap-card {
  background: var(--bg-card);
  border: 1px solid var(--border-med);
  border-radius: var(--radius);
  padding: 22px 26px;
  min-width: 230px;
  text-align: left;
  box-shadow: var(--shadow-card);
  /* Slight rotation for cork-board feel — alternating per .offer/.need */
  position: relative;
}

/* Pin dot — Web 2.0 nod, like a thumbtack */
.swap-card::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 2px 4px rgba(196, 92, 42, 0.4);
}

.swap-card.offer { transform: rotate(-1.5deg); }
.swap-card.need  { transform: rotate(1deg); }

.swap-card .label {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}

.swap-card.offer .label { color: var(--accent); }
.swap-card.need .label  { color: var(--teal); }

.swap-card .task {
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--fg);
  line-height: 1.4;
}

.swap-card .person {
  font-size: 0.82rem;
  color: var(--fg-dim);
  margin-top: 8px;
}

/* Arrow connector between swap cards */
.swap-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  flex-shrink: 0;
  box-shadow: var(--shadow-md), 0 0 0 4px var(--accent-light);
}

/* ─── HOW IT WORKS ──────────────────────────────────── */
.how {
  padding: 100px 24px;
  max-width: 960px;
  margin: 0 auto;
}

.section-label {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  margin-bottom: 14px;
}

.how h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 56px;
  line-height: 1.2;
  color: var(--fg);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.step {
  position: relative;
  padding: 32px 26px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.2s;
}

.step:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.step-num {
  font-family: var(--font-display);
  font-size: 3.5rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 16px;
  color: var(--accent-light);
  /* Outlined number — Flat 2.0 style */
  -webkit-text-stroke: 2px var(--accent);
  color: transparent;
}

.step h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}

.step p {
  color: var(--fg-muted);
  font-size: 0.93rem;
  line-height: 1.62;
}

/* ─── FEATURES ──────────────────────────────────────── */
.features {
  padding: 80px 24px 100px;
  max-width: 960px;
  margin: 0 auto;
}

.features h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 52px;
  line-height: 1.2;
  color: var(--fg);
}

/* Slightly uneven 2-col grid — avoids "perfect AI grid" feel */
.feature-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 20px;
}

.feature-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.25s, transform 0.2s;
}

.feature-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}

.feature-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-bottom: 18px;
  /* Flat 2.0 icon bg — bold but not garish */
}

.feature-icon.orange { background: var(--accent-light); }
.feature-icon.blue   { background: var(--teal-light); }
.feature-icon.green  { background: var(--green-light); }

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--fg);
}

.feature-card p {
  color: var(--fg-muted);
  font-size: 0.93rem;
  line-height: 1.62;
}

/* ─── SCENARIOS ─────────────────────────────────────── */
.scenarios {
  padding: 80px 24px 100px;
  max-width: 960px;
  margin: 0 auto;
}

.scenarios h2 {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 4.5vw, 2.8rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 44px;
  line-height: 1.2;
  color: var(--fg);
}

.scenario-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.scenario {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  padding: 22px 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s;
}

.scenario:hover { box-shadow: var(--shadow-md); }

.scenario .gives .who,
.scenario .gets .who {
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--fg-dim);
  margin-bottom: 4px;
}

.scenario .gives .action { color: var(--accent);    font-weight: 600; font-size: 0.97rem; }
.scenario .gets  .action { color: var(--teal);      font-weight: 600; font-size: 0.97rem; }

.scenario .swap-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--bg-warm);
  border: 1px solid var(--border-med);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--fg-muted);
  font-size: 14px;
  box-shadow: var(--shadow-sm);
}

/* ─── CLOSING CTA ───────────────────────────────────── */
.closing {
  padding: 120px 24px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.closing::before {
  content: '';
  position: absolute;
  bottom: -200px;
  left: 50%;
  transform: translateX(-50%);
  width: 700px;
  height: 600px;
  background: radial-gradient(ellipse at center, rgba(59, 125, 140, 0.07) 0%, transparent 68%);
  pointer-events: none;
}

.closing h2 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 5.5vw, 3.6rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  max-width: 640px;
  margin: 0 auto 22px;
  position: relative;
  z-index: 1;
  line-height: 1.15;
  color: var(--fg);
}

.closing p {
  color: var(--fg-muted);
  font-size: 1.1rem;
  max-width: 480px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
  line-height: 1.65;
}

/* ─── FOOTER ─────────────────────────────────────────── */
.footer {
  padding: 36px 24px;
  text-align: center;
  border-top: 1px solid var(--border-med);
  background: var(--bg-warm);
}

.footer p {
  font-family: var(--font-body);
  font-size: 0.84rem;
  color: var(--fg-dim);
}

.footer .name { color: var(--fg-muted); font-weight: 700; }

/* ─── RESPONSIVE ─────────────────────────────────────── */
@media (max-width: 768px) {
  .steps          { grid-template-columns: 1fr; }
  .feature-grid   { grid-template-columns: 1fr; }
  .hero-visual    { flex-direction: column; }
  .swap-arrow     { transform: rotate(90deg); }
  .scenario       { grid-template-columns: 1fr; text-align: center; gap: 10px; }
  .scenario .swap-icon { margin: 0 auto; }
  .hero           { padding: 80px 20px 60px; }
  .hero h1        { font-size: 2.4rem; }
  .swap-card      { min-width: auto; width: 100%; }
  .swap-card.offer, .swap-card.need { transform: none; }
}

@media (max-width: 480px) {
  body     { font-size: 15px; }
  .hero h1 { font-size: 2rem; }
  .closing h2 { font-size: 1.75rem; }
}
