@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;700;900&family=Outfit:wght@300;400;600;800&family=Space+Grotesk:wght@400;700;800&display=swap');

/* =============================================
   DESIGN TOKENS
   ============================================= */
:root {
  /* Sunset palette */
  --sunset-yellow:  #ffd000;
  --sunset-orange:  #ff6a00;
  --sunset-orange-light: #ffaa00; /* warm amber — lighter body/small-text version */
  --sunset-pink:    #ff007c;

  /* Hero gradient: diagonal, bright like the favicon */
  --grad-hero: linear-gradient(145deg, #ffd000 0%, #ff6a00 55%, #ff007c 100%);

  /* Footer */
  --footer-bg: #0a0a0a;
  --footer-text: #ffffff;
  --footer-muted: rgba(255, 255, 255, 0.45);
  --footer-link: rgba(255, 255, 255, 0.7);
  --footer-link-hover: #ff6a00;

  /* Typography */
  --font-wordmark: 'Nunito', sans-serif;  /* Rounded bold — closest to the Slack S style */
  --font-title: 'Space Grotesk', sans-serif;
  --font-body:  'Outfit', sans-serif;

  --transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

/* =============================================
   RESET / BASE
   ============================================= */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100%;
}

body {
  font-family: var(--font-body);
  background: var(--footer-bg);
  color: var(--footer-text);
  -webkit-font-smoothing: antialiased;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

/* =============================================
   HERO SECTION
   ============================================= */
.home-body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.hero {
  background: var(--grad-hero);
  position: relative;
  /* Takes up all remaining space above footer */
  flex: 1;
  min-height: 60vh;
  overflow: hidden;
}

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

.hero-inner {
  position: relative;
  height: 100%;
  min-height: inherit;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 2.5rem 3rem 2.8rem;
}

/* S icon — top left */
.hero-logo-mark {
  display: flex;
  align-items: flex-start;
}

.s-icon {
  width: 64px;
  height: 64px;
  /* White semi-transparent background to make it feel like a frosted badge */
  border-radius: 18px;
  filter: drop-shadow(0 4px 14px rgba(0,0,0,0.2));
  transition: var(--transition);
  cursor: pointer;
}

.s-icon:hover {
  transform: scale(1.07) rotate(4deg);
  filter: drop-shadow(0 8px 22px rgba(0,0,0,0.3));
}

/* Wordmark — bottom left, MASSIVE */
.hero-wordmark {
  /* Align to the bottom left */
}

.wordmark {
  font-family: var(--font-wordmark);
  font-weight: 900;
  /* Scale with viewport — vw drives the size, clamp only prevents extremes */
  font-size: clamp(1.5rem, 16vw, 16rem);
  line-height: 0.88;
  letter-spacing: -0.03em;
  color: rgba(255, 255, 255, 0.88);
  /* Subtle stroke to pop on the bright gradient */
  -webkit-text-stroke: 1.5px rgba(0, 0, 0, 0.12);
  paint-order: stroke fill;
  user-select: none;
}

.wordmark-joy {
  /* Solid mid-gradient orange — clean at all glyph angles */
  color: #ff5500;
  -webkit-text-fill-color: #ff5500;
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-stroke: 5px #ffffff;
  paint-order: stroke fill;
  letter-spacing: -0.02em;
}

/* =============================================
   FOOTER
   ============================================= */
.site-footer {
  background: var(--footer-bg);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  /* All text in the dark section is lowercase */
  text-transform: lowercase;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 2rem;
  max-width: 1100px;
  margin: 0 auto;
  padding: 3.5rem 3rem 3rem;
}

/* Col 1 - brand */
.footer-brand .footer-logo {
  font-family: var(--font-wordmark);
  font-weight: 900;
  font-size: 1.6rem;
  letter-spacing: -0.02em;
  color: #ffffff;
  margin-bottom: 0.75rem;
}

.footer-logo-joy {
  color: var(--sunset-orange-light);
}

.footer-tagline {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--footer-muted);
}

/* Column headings */
.footer-col-head {
  font-family: var(--font-title);
  font-weight: 700;
  font-size: 1.2rem;
  color: var(--footer-text);
  margin-bottom: 0.85rem;
}

/* Footer links */
.footer-link {
  display: block;
  font-size: 0.92rem;
  color: var(--footer-link);
  margin-bottom: 0.5rem;
  transition: var(--transition);
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
}

.footer-link:hover {
  color: var(--footer-link-hover);
  text-decoration-color: var(--footer-link-hover);
}

.footer-email {
  display: block;
  font-size: 0.92rem;
  color: var(--footer-link);
  margin-bottom: 0.5rem;
}

/* =============================================
   RESPONSIVE — MOBILE
   ============================================= */
@media (max-width: 640px) {
  .hero-inner {
    padding: 1.8rem 1.6rem 2rem;
  }

  .s-icon {
    width: 50px;
    height: 50px;
  }

  /* Footer: stack to single column on mobile */
  .footer-inner {
    grid-template-columns: 1fr;
    padding: 2.5rem 1.6rem 2.5rem;
    gap: 2.5rem;
  }
}

/* =============================================
   SUBPAGES (privacy.html / tos.html)
   ============================================= */
body.subpage-body {
  background: #0a0a0a;
  color: #f0ece8;
  font-family: var(--font-body);
  min-height: 100vh;
}

.subpage-header {
  background: var(--grad-hero);
  padding: 2rem 3rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}

.subpage-header a {
  font-family: var(--font-title);
  font-weight: 800;
  font-size: 1.4rem;
  color: #ffffff;
  letter-spacing: -0.02em;
}

.subpage-logo-link {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  transition: var(--transition);
}

.subpage-logo-link:hover {
  opacity: 0.85;
  transform: scale(1.05);
}

.subpage-header .back-btn {
  font-family: var(--font-body);
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  font-weight: 400;
  background: rgba(0,0,0,0.15);
  border-radius: 999px;
  padding: 0.3rem 0.85rem;
  margin-left: auto;
  transition: var(--transition);
}

.subpage-header .back-btn:hover {
  background: rgba(0,0,0,0.3);
  color: #fff;
}

.subpage-content {
  max-width: 800px;
  margin: 0 auto;
  padding: 3rem 2rem 5rem;
}

.subpage-content h1 {
  font-family: var(--font-title);
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 0.4rem;
  letter-spacing: -0.02em;
}

.subpage-content .last-updated {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.35);
  margin-bottom: 2.5rem;
}

.subpage-content h2 {
  font-family: var(--font-title);
  font-size: 1.1rem;
  font-weight: 700;
  margin: 2rem 0 0.5rem;
  color: var(--sunset-orange-light);
}

.subpage-content p {
  font-size: 0.97rem;
  line-height: 1.75;
  color: rgba(255,255,255,0.65);
  margin-bottom: 0.75rem;
}

.subpage-content ul {
  margin: 0.5rem 0 1rem 1.5rem;
  color: rgba(255,255,255,0.65);
  font-size: 0.97rem;
  line-height: 1.75;
}

.subpage-content ul li {
  margin-bottom: 0.4rem;
}

.inline-link {
  color: var(--sunset-orange-light);
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: var(--transition);
}

.inline-link:hover {
  color: #ffd000;
}

@media (max-width: 640px) {
  .subpage-header {
    padding: 1.4rem 1.4rem;
  }
  .subpage-content {
    padding: 2rem 1.4rem 4rem;
  }
}
