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

:root {
  --accent: rgb(235, 153, 89); /* steamy */
  --accent-light: rgba(235, 153, 89, 0.12);
  --bg: #faf7f2;
  --text: #2d2418;
  --text-muted: #9c8b7a;
  --border: rgba(45, 36, 24, 0.06);
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', system-ui, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Ambient background */
.ambient {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 0%, rgba(235, 153, 89, 0.12) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 100% 100%, rgba(200, 160, 120, 0.08) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 0% 80%, rgba(180, 140, 100, 0.06) 0%, transparent 50%);
  z-index: -2;
}

/* Subtle grain texture */
.grain {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
  opacity: 0.03;
  z-index: -1;
  pointer-events: none;
}

/* Typography */
h1 {
  font-family: 'Georgia', 'Times New Roman', serif;
  font-size: clamp(2.75rem, 7vw, 4.5rem);
  font-weight: 400;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

/* Layout */
.container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* Header */
header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0;
  z-index: 100;
}

header .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-family: 'Georgia', serif;
  font-size: 1.25rem;
  color: var(--text);
  text-decoration: none;
  letter-spacing: -0.02em;
  opacity: 0.9;
}

nav {
  display: flex;
  gap: 2rem;
}

nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-size: 0.85rem;
  transition: color 0.2s;
}

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

/* Hero */
.hero {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 6rem 2rem;
}

.hero-content {
  max-width: 600px;
}

.tagline {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--accent);
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.hero h1 {
  margin-bottom: 1.25rem;
}

.hero h1 span {
  background: linear-gradient(135deg, var(--accent) 0%, #c4845a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-muted);
  margin-bottom: 2.5rem;
  font-weight: 400;
}

/* Pill App Store Button */
.app-store-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--text);
  color: #fff;
  padding: 1rem 2rem;
  border-radius: 100px;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 24px rgba(45, 36, 24, 0.15);
}

.app-store-btn:hover {
  transform: translateY(-3px) scale(1.02);
  box-shadow: 0 12px 40px rgba(45, 36, 24, 0.25);
}

.app-store-btn:active {
  transform: translateY(-1px) scale(0.98);
}

.app-store-btn svg {
  width: 18px;
  height: 18px;
  opacity: 0.9;
}

/* Footer */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem 0;
}

footer .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

footer p {
  font-size: 0.75rem;
  color: var(--text-muted);
  opacity: 0.7;
}

footer nav {
  gap: 1.5rem;
}

footer nav a {
  font-size: 0.75rem;
  opacity: 0.7;
}

footer nav a:hover {
  opacity: 1;
}

/* Legal Pages */
.legal {
  padding: 8rem 0 4rem;
  max-width: 640px;
  margin: 0 auto;
}

.legal h1 {
  font-family: 'Georgia', serif;
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

.legal h2 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 2rem 0 0.75rem;
  color: var(--text);
}

.legal h3 {
  font-family: -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  margin: 1.5rem 0 0.5rem;
  color: var(--text);
}

.legal p, .legal li {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.legal ul {
  margin-left: 1.25rem;
  margin-bottom: 1rem;
}

.legal a {
  color: var(--accent);
  text-decoration: none;
}

.legal a:hover {
  text-decoration: underline;
}

.legal address {
  font-style: normal;
  line-height: 1.8;
}

/* Mobile/Desktop visibility */
.mobile-only {
  display: none;
}

.desktop-only {
  display: inline-flex;
}

/* Mobile CTA Container */
.mobile-cta {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Copy Button */
.copy-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, #d4884f 100%);
  color: #fff;
  border: none;
  padding: 1rem 2rem;
  border-radius: 20px;
  font-family: inherit;
  font-size: 1.1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow:
    0 8px 24px rgba(235, 153, 89, 0.35),
    0 2px 8px rgba(235, 153, 89, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.copy-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 50%);
  border-radius: inherit;
}

.copy-btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 12px 32px rgba(235, 153, 89, 0.45),
    0 4px 12px rgba(235, 153, 89, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

.copy-btn:active {
  transform: translateY(0) scale(0.98);
  box-shadow:
    0 4px 16px rgba(235, 153, 89, 0.3),
    0 2px 6px rgba(235, 153, 89, 0.15);
}

.copy-btn-content {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  transition: opacity 0.2s, transform 0.2s;
}

.copy-icon svg {
  width: 20px;
  height: 20px;
  opacity: 0.9;
}

.copy-text {
  font-family: 'Georgia', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 1.2rem;
  letter-spacing: 0.01em;
}

.copied-feedback {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: scale(0.8);
  transition: opacity 0.2s, transform 0.2s;
  font-weight: 600;
}

.copy-btn.copied .copy-btn-content {
  opacity: 0;
  transform: scale(0.8);
}

.copy-btn.copied .copied-feedback {
  opacity: 1;
  transform: scale(1);
}

.copy-btn.copied {
  background: linear-gradient(135deg, #5cb85c 0%, #449d44 100%);
  box-shadow:
    0 8px 24px rgba(92, 184, 92, 0.35),
    0 2px 8px rgba(92, 184, 92, 0.2);
}

/* Search Hint */
.search-hint {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
  text-align: center;
  line-height: 1.4;
  max-width: 260px;
  padding: 0.75rem 1rem;
  background: var(--accent-light);
  border-radius: 12px;
  border: 1px solid rgba(235, 153, 89, 0.15);
}

/* Responsive */
@media (max-width: 600px) {
  /* Toggle desktop/mobile elements */
  .desktop-only {
    display: none !important;
  }

  .mobile-only {
    display: flex !important;
  }

  header {
    padding: 1rem 0;
  }

  header .container {
    flex-direction: row;
    justify-content: center;
  }

  header nav {
    display: none;
  }

  .hero {
    padding: 4rem 1.5rem;
    justify-content: center;
  }

  .hero-content {
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .tagline {
    font-size: 0.75rem;
    margin-bottom: 1.25rem;
  }

  h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
  }

  .subtitle {
    font-size: 1rem;
    margin-bottom: 2.5rem;
    max-width: 280px;
  }

  .copy-btn {
    padding: 1.1rem 2.2rem;
    animation: glow 2.5s ease-in-out infinite;
  }

  @keyframes glow {
    0%, 100% {
      box-shadow:
        0 8px 24px rgba(235, 153, 89, 0.35),
        0 2px 8px rgba(235, 153, 89, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    }
    50% {
      box-shadow:
        0 8px 40px rgba(235, 153, 89, 0.5),
        0 4px 16px rgba(235, 153, 89, 0.3),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    }
  }

  footer {
    position: relative;
    margin-top: 0;
    padding: 1rem 0 2rem;
  }

  footer .container {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  footer nav {
    gap: 1.25rem;
  }

  footer p, footer nav a {
    font-size: 0.7rem;
  }
}
