@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@400;500;600;700&display=swap');

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

:root {
  --bg: #f0ebe1;
  --text: #1a1714;
  --text-muted: #7d756a;
  --accent: #bf5b30;
  --green: #5e7a42;
  --blue: #4a6d8c;
  --surface: #e4ded2;
  --border: #cec7b9;
  --display: 'Rubik', system-ui, sans-serif;
  --sans: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

/* Grain texture */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='a'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.75' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23a)'/%3E%3C/svg%3E");
}

a {
  color: var(--accent);
  text-decoration: none;
  transition: color 0.2s;
}

a:hover {
  color: var(--text);
}

/* ── Nav ── */

nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 0 2rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 56px;
}

.logo {
  font-family: var(--display);
  font-size: 1.3rem;
  color: var(--text);
  letter-spacing: -0.02em;
}

.logo:hover {
  color: var(--text);
}

.nav-links {
  display: flex;
  gap: 2rem;
  list-style: none;
}

.nav-links a {
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.01em;
}

.nav-links a:hover {
  color: var(--text);
}

/* ── Hero ── */

.hero {
  position: relative;
}

.hero-banner {
  position: relative;
  width: 100%;
  height: clamp(180px, 30vw, 280px);
  overflow: hidden;
}

.hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 45%;
  display: block;
}

.hero-fade {
  display: none;
}

.hero-inner {
  max-width: 960px;
  margin: -3rem auto 0;
  position: relative;
  z-index: 1;
  text-align: center;
  padding: 0 2rem 2.5rem;
}

.hero-gnomes {
  width: 300px;
  height: auto;
  margin-top: -7rem;
  margin-bottom: 0.75rem;
  filter: drop-shadow(0 8px 24px rgba(26, 23, 20, 0.12));
}

.hero h1 {
  font-family: var(--display);
  font-size: clamp(2.4rem, 5.5vw, 3.8rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
  color: var(--text);

}

.h-accent {
  color: var(--accent);
}

.hero p {
  margin-top: 0.75rem;
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.65;
  max-width: 360px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Steps ── */

.steps {
  padding: 2rem 2rem 3rem;
}

.steps-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.step {
  flex: 1;
  text-align: center;
}

.step-img {
  width: 88px;
  height: 88px;
  object-fit: contain;
  filter: drop-shadow(0 6px 16px rgba(26, 23, 20, 0.1));
  margin-bottom: 0.75rem;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.step:hover .step-img {
  transform: scale(1.08) rotate(-3deg);
}

.step h3 {
  font-family: var(--display);
  font-size: 1.2rem;
  letter-spacing: -0.02em;
  margin-bottom: 0.3rem;
}

.step p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 220px;
  margin: 0 auto;
}

.step-arrow {
  color: var(--border);
  font-size: 1.4rem;
  margin-top: 3rem;
  flex-shrink: 0;
  user-select: none;
}

/* ── Friends ── */

.friends {
  padding: 3rem 2rem 3.5rem;
  background: var(--text);
  color: #ece6da;
}

.friends-inner {
  max-width: 960px;
  margin: 0 auto;
  text-align: center;
}

.friends h2 {
  font-family: var(--display);
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  letter-spacing: -0.025em;
  margin-bottom: 2rem;
}

.friends-grid {
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.friend {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
}

.friend img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  filter: drop-shadow(0 4px 16px rgba(191, 91, 48, 0.15));
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.friend:hover img {
  transform: translateY(-8px);
}

.friend-tag {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.2rem 0.6rem;
  border-radius: 100px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.tag--focus {
  background: rgba(94, 122, 66, 0.2);
  color: #a6c48a;
}

.tag--walk {
  background: rgba(191, 91, 48, 0.2);
  color: #d9a17a;
}

.tag--sleep {
  background: rgba(74, 109, 140, 0.2);
  color: #8bb4d2;
}

/* ── Footer ── */

footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 2rem;
}

.footer-inner {
  max-width: 960px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-left {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  list-style: none;
}

.footer-links a {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* ── Legal Pages ── */

.legal-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 7rem 2rem 4rem;
}

.legal-back {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.legal-back:hover {
  color: var(--text);
}

.legal-page h1 {
  font-family: var(--display);
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

.legal-page .last-updated {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
}

.legal-page h2 {
  font-family: var(--display);
  font-size: 1.3rem;
  margin-top: 2.5rem;
  margin-bottom: 0.75rem;
}

.legal-page h3 {
  font-family: var(--display);
  font-size: 1.1rem;
  margin-top: 1.5rem;
  margin-bottom: 0.5rem;
}

.legal-page p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 1rem;
  line-height: 1.7;
}

.legal-page ul, .legal-page ol {
  margin-bottom: 1rem;
  padding-left: 1.5rem;
}

.legal-page li {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 0.4rem;
}

.legal-page strong {
  color: var(--text);
}

.legal-page .all-caps {
  text-transform: uppercase;
  font-size: 0.9rem;
}


/* ── Responsive ── */

@media (max-width: 768px) {
  .hero-banner {
    height: clamp(220px, 45vw, 280px);
  }

  .hero-bg {
    transform: scale(1.3);
  }

  .steps-inner {
    flex-direction: column;
    align-items: center;
    gap: 1.5rem;
  }

  .step-arrow {
    transform: rotate(90deg);
    margin: 0;
  }

  .step-img {
    width: 72px;
    height: 72px;
  }

  .friends-grid {
    gap: 1.5rem;
  }

  .friend img {
    width: 64px;
    height: 64px;
  }

  footer .footer-inner {
    flex-direction: column;
    text-align: center;
  }

  .nav-links {
    gap: 1.25rem;
  }
}

@media (max-width: 480px) {
  .hero-inner {
    padding: 0 1.25rem 2rem;
  }

  .steps {
    padding: 1rem 1.25rem 2rem;
  }

  .friends {
    padding: 2.5rem 1.25rem;
  }

  .step h3 {
    font-size: 1.1rem;
  }
}
