:root {
  --ink: #181716;
  --ink-soft: #3d3834;
  --muted: #706a63;
  --accent: #e84b2f;
  --accent-deep: #c23a24;
  --sage: #416b55;
  --yellow: #f4c95d;
  --paper: #f7f1e7;
  --cream: #fffaf1;
  --line: #d8cfc2;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  font-family: var(--font-body);
  background:
    radial-gradient(ellipse 90% 60% at 85% 0%, color-mix(in srgb, var(--yellow) 35%, transparent) 0%, transparent 50%),
    radial-gradient(ellipse 70% 50% at 5% 15%, color-mix(in srgb, var(--accent) 12%, transparent) 0%, transparent 45%),
    linear-gradient(165deg, var(--cream) 0%, var(--paper) 50%, #efe6d6 100%);
}

a {
  color: inherit;
}

.skip-link {
  position: absolute;
  left: -9999px;
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
  z-index: 100;
  background: #fff;
  padding: 0.5rem 1rem;
}

.site-header {
  position: absolute;
  inset: 0 0 auto;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  color: #fff;
}

.brand {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.brand .joy {
  color: #fff;
}

.brand .napping {
  color: color-mix(in srgb, var(--yellow) 90%, #fff);
}

.header-links {
  display: flex;
  gap: 1.25rem;
  align-items: center;
  font-size: 0.85rem;
  font-weight: 500;
}

.header-links a {
  text-decoration: none;
  opacity: 0.9;
}

.header-links a:hover {
  opacity: 1;
}

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-end;
  color: #fff;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(24, 23, 22, 0.35) 0%, rgba(24, 23, 22, 0.78) 62%, rgba(24, 23, 22, 0.92) 100%),
    url("../images/Joynapping_Image_B.png") center 30% / cover no-repeat;
}

.hero-art {
  position: absolute;
  right: 6%;
  top: 14%;
  z-index: 0;
  width: min(34vw, 20rem);
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
  filter: drop-shadow(0 16px 36px rgba(0, 0, 0, 0.35));
  opacity: 0.95;
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(68rem, 100%);
  margin: 0 auto;
  padding: 0 1.5rem 4.5rem;
}

.eyebrow {
  font-size: 0.72rem;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  font-weight: 500;
  opacity: 0.85;
}

.hero h1 {
  margin: 0.85rem 0 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 8vw, 5.25rem);
  line-height: 1.02;
  letter-spacing: -0.02em;
  max-width: 12ch;
}

.hero-slogan {
  margin: 1rem 0 0;
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 500;
  font-size: clamp(1.05rem, 2.4vw, 1.35rem);
  color: color-mix(in srgb, var(--yellow) 85%, #fff);
  max-width: 28rem;
}

.hero-lede {
  margin: 1rem 0 0;
  max-width: 30rem;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin-top: 2rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.85rem 1.4rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 999px;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover {
  background: var(--accent-deep);
}

.btn-ghost {
  border: 1px solid rgba(255, 255, 255, 0.45);
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
}

.btn-ghost:hover {
  border-color: #fff;
  background: rgba(255, 255, 255, 0.14);
}

.section {
  width: min(68rem, 100%);
  margin: 0 auto;
  padding: 4.5rem 1.5rem;
}

.section h2 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.section p.lead {
  margin: 1rem 0 0;
  max-width: 38rem;
  color: var(--ink-soft);
  font-size: 1.1rem;
  line-height: 1.55;
}

.platforms {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: 1.5rem;
}

.platform-chip {
  display: inline-flex;
  padding: 0.4rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--sage);
  background: color-mix(in srgb, var(--sage) 12%, var(--cream));
  border: 1px solid color-mix(in srgb, var(--sage) 28%, transparent);
  border-radius: 999px;
}

.feature-grid {
  display: grid;
  gap: 2rem 2.5rem;
  margin-top: 2.5rem;
  grid-template-columns: 1fr;
  width: 100%;
}

@media (min-width: 640px) {
  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .feature-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.feature {
  min-width: 0;
}

.feature .step-num {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.5rem;
}

.feature h3 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
}

.feature p {
  margin: 0.55rem 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.site-footer {
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
}

.site-footer a {
  color: var(--accent-deep);
}

.mls-case-shot-tall img {
  object-fit: cover;
  object-position: top;
  max-height: 22rem;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-rise {
  animation: rise 0.85s ease both;
}

.delay-1 {
  animation-delay: 0.12s;
}

.delay-2 {
  animation-delay: 0.24s;
}

@media (max-width: 720px) {
  .hero-art {
    right: -1rem;
    top: 4rem;
    width: min(48vw, 12rem);
    opacity: 0.7;
  }

  .hero h1 {
    max-width: 10ch;
  }

  .site-header {
    color: #fff;
  }
}
