/* Cozy Pack — warm cream + teal bin + amber title */

:root {
  --cream: #fff6e8;
  --cream-deep: #ffe8c8;
  --teal: #2a9d8f;
  --teal-deep: #1d7a6f;
  --teal-soft: #b8e4de;
  --amber: #f4a261;
  --amber-deep: #e76f51;
  --wood: #8b5e3c;
  --ink: #2c2416;
  --ink-soft: rgba(44, 36, 22, 0.72);
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(139, 94, 60, 0.12);
  --radius: 20px;
  --radius-pill: 999px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --leading-body: 1.75;
  --leading-title: 1.28;
}

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

html {
  scroll-behavior: smooth;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: var(--leading-body);
  color: var(--ink);
  background: var(--cream);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  line-height: var(--leading-title);
  font-weight: 700;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--teal-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 9999;
  padding: 0.75rem 1rem;
  background: var(--ink);
  color: var(--white);
}

.skip-link:focus {
  left: 1rem;
  top: 1rem;
}

.room-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: linear-gradient(180deg, var(--cream) 0%, #fffaf0 50%, var(--cream-deep) 100%);
}

.room-bg__blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: blob-float 16s ease-in-out infinite;
}

.room-bg__blob--cream {
  width: 280px;
  height: 280px;
  top: 8%;
  left: -4%;
  background: #ffe0a8;
}

.room-bg__blob--teal {
  width: 220px;
  height: 220px;
  top: 40%;
  right: -6%;
  background: var(--teal-soft);
  animation-delay: -5s;
}

.room-bg__blob--amber {
  width: 180px;
  height: 180px;
  bottom: 12%;
  left: 20%;
  background: rgba(244, 162, 97, 0.55);
  animation-delay: -9s;
}

@keyframes blob-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

/* Sticky nav */
.pack-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  padding: 0.65rem 1rem 0;
}

.pack-nav__rail {
  max-width: 1120px;
  margin: 0 auto;
  height: 6px;
  border-radius: var(--radius-pill);
  background: linear-gradient(90deg, var(--teal), var(--amber), var(--amber-deep));
  opacity: 0.9;
}

.pack-nav__bar {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 1rem;
  background: rgba(255, 255, 255, 0.94);
  border: 2px solid rgba(42, 157, 143, 0.18);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  transition: box-shadow 0.25s ease;
}

.pack-nav.is-scrolled .pack-nav__bar {
  box-shadow: 0 20px 48px rgba(139, 94, 60, 0.16);
}

.pack-nav__brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--ink);
  text-decoration: none;
}

.pack-nav__brand img {
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(42, 157, 143, 0.35);
}

.pack-nav__links {
  display: none;
  align-items: center;
  gap: 0.15rem;
  margin-left: auto;
  margin-right: 0.35rem;
}

.pack-nav__links a {
  padding: 0.45rem 0.75rem;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-soft);
  border-radius: 8px;
  text-decoration: none;
}

.pack-nav__links a:hover {
  background: var(--cream-deep);
  color: var(--teal-deep);
  text-decoration: none;
}

.pack-nav__actions {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin-left: auto;
}

.pack-nav__links ~ .pack-nav__actions {
  margin-left: 0;
}

.pack-nav__burger {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  border: 2px solid rgba(42, 157, 143, 0.25);
  border-radius: 10px;
  background: var(--white);
  cursor: pointer;
}

.pack-nav__burger span {
  display: block;
  height: 2px;
  margin: 0 10px;
  background: var(--ink);
}

@media (min-width: 920px) {
  .pack-nav__links {
    display: flex;
  }
  .pack-nav__burger {
    display: none;
  }
}

.nav-sheet {
  position: fixed;
  inset: 0;
  z-index: 99;
  padding: 5.5rem 1.25rem 2rem;
  background: rgba(255, 246, 232, 0.98);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.nav-sheet[hidden] {
  display: none;
}

.nav-sheet a {
  font-weight: 700;
  padding: 0.85rem 1rem;
  background: var(--white);
  border: 2px solid var(--cream-deep);
  border-radius: 12px;
  color: var(--ink);
  text-decoration: none;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  font-family: var(--font-body);
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
}

.btn:hover {
  transform: translateY(-2px);
  text-decoration: none;
}

.btn--sm {
  font-size: 0.88rem;
  padding: 0.5rem 1rem;
}

.btn--lg {
  font-size: 1rem;
  padding: 0.78rem 1.35rem;
}

.btn--xl {
  font-size: 1.05rem;
  padding: 0.92rem 1.6rem;
}

.btn--block {
  width: 100%;
}

.btn--pack {
  background: linear-gradient(135deg, var(--teal), var(--teal-deep));
  color: var(--white);
  box-shadow: 0 8px 28px rgba(42, 157, 143, 0.4);
}

.btn--outline {
  background: var(--white);
  color: var(--ink);
  border: 2px solid rgba(42, 157, 143, 0.28);
  box-shadow: 0 6px 20px rgba(44, 36, 22, 0.06);
}

.btn svg {
  width: 1.15em;
  height: 1.15em;
}

main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 1.25rem 4rem;
}

.hero__banner {
  margin-top: 1rem;
  border-radius: var(--radius);
  overflow: hidden;
  border: 3px solid var(--white);
  box-shadow: var(--shadow);
}

.hero__banner img {
  width: 100%;
  aspect-ratio: 1280 / 720;
  object-fit: cover;
}

.hero__stage {
  display: grid;
  gap: 2rem;
  margin-top: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .hero__stage {
    grid-template-columns: 1.05fr 0.88fr;
  }
}

.hero__copy {
  padding: 1.4rem 1.3rem;
  background: var(--white);
  border-radius: var(--radius);
  border: 1px solid var(--cream-deep);
  box-shadow: var(--shadow);
}

.hero__kicker {
  margin: 0 0 0.55rem;
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.5;
  color: var(--teal);
}

.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4.2vw, 2.45rem);
  line-height: 1.22;
  margin: 0 0 0.85rem;
}

.hero h1 span {
  display: block;
  margin-top: 0.2rem;
  line-height: 1.26;
  background: linear-gradient(90deg, var(--amber-deep), var(--amber));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero__lead {
  margin: 0 0 1rem;
  color: var(--ink-soft);
  line-height: 1.78;
  font-size: 1.02rem;
}

.hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.hero__chips span {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  background: var(--cream);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius-pill);
  color: var(--ink);
}

.hero__chips svg {
  width: 16px;
  height: 16px;
  color: var(--teal);
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.hero__phone {
  position: relative;
  margin: 0 auto;
  max-width: 285px;
  padding: 0.55rem;
  background: linear-gradient(145deg, #3d2e1f, #2c2416);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.hero__phone-deco {
  position: absolute;
  border-radius: 50%;
  border: 2px solid;
  pointer-events: none;
}

.hero__phone-deco--a {
  width: 48px;
  height: 48px;
  right: -20px;
  top: 15%;
  border-color: var(--teal);
  box-shadow: 0 0 16px rgba(42, 157, 143, 0.5);
}

.hero__phone-deco--b {
  width: 36px;
  height: 36px;
  left: -16px;
  bottom: 22%;
  border-color: var(--amber);
  box-shadow: 0 0 14px rgba(244, 162, 97, 0.55);
}

.hero__phone img {
  width: 100%;
  border-radius: 22px;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  background: #1a140e;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2rem;
}

.section-head .eyebrow {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.8rem;
  line-height: 1.4;
  color: var(--wood);
  margin: 0 0 0.45rem;
}

.section-head h2 {
  font-family: var(--font-display);
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  margin: 0;
  line-height: 1.24;
}

.section-head h2 span {
  color: var(--teal);
}

.section-head__lead {
  margin: 0.75rem 0 0;
  color: var(--ink-soft);
}

.features-grid {
  margin-top: 4.5rem;
}

.features-grid__cells {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}

@media (min-width: 720px) {
  .features-grid__cells {
    grid-template-columns: repeat(2, 1fr);
  }
}

.feature-card {
  padding: 1.35rem 1.25rem;
  background: var(--white);
  border: 1px solid var(--cream-deep);
  border-radius: var(--radius);
  box-shadow: 0 10px 28px rgba(139, 94, 60, 0.06);
  text-align: left;
}

.feature-card__icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  color: var(--white);
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
}

.feature-card h3 {
  font-family: var(--font-display);
  font-size: 1.15rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

.feature-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1rem;
  line-height: 1.72;
}

.howto {
  margin-top: 3.5rem;
}

.howto__panel {
  padding: 1.5rem 1.35rem;
  background: linear-gradient(120deg, rgba(42, 157, 143, 0.1), rgba(244, 162, 97, 0.12));
  border: 2px dashed rgba(42, 157, 143, 0.35);
  border-radius: var(--radius);
}

.howto__panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.howto__list {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
  color: var(--ink-soft);
}

.howto__cta-line {
  margin: 0;
  font-weight: 800;
  color: var(--teal-deep);
}

.screen-grid {
  margin-top: 4.5rem;
}

.screen-grid__wall {
  display: flex;
  gap: 1rem;
  overflow-x: auto;
  padding: 0.5rem 0 1.5rem;
  scroll-snap-type: x mandatory;
}

.screen-tile {
  flex: 0 0 min(68vw, 190px);
  margin: 0;
  scroll-snap-align: center;
  padding: 0.4rem;
  background: linear-gradient(145deg, #3d2e1f, #2c2416);
  border-radius: 14px;
  box-shadow: var(--shadow);
}

.screen-tile img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
  border-radius: 10px;
  background: #1a140e;
}

.screen-tile figcaption {
  margin: 0.5rem 0 0.15rem;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--white);
}

@media (min-width: 960px) {
  .screen-grid__wall {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 1rem;
    overflow: visible;
    padding-bottom: 0;
  }

  .screen-tile {
    flex: unset;
    min-width: 0;
  }
}

.download {
  margin-top: 4.5rem;
}

.download__card {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--white);
  border: 2px solid var(--cream-deep);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}

.download__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 3px;
  background: linear-gradient(135deg, var(--teal), var(--amber), var(--amber-deep));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
  opacity: 0.65;
}

.download__icon {
  margin: 0 auto 1rem;
  border-radius: 18px;
}

.download__card h2 {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  margin: 0 0 0.35rem;
}

.download__lead {
  font-weight: 700;
  line-height: 1.5;
  color: var(--teal);
  margin: 0 0 0.35rem;
}

.download__card p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}

.download__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.footer {
  margin-top: 3rem;
  padding: 2rem 1.25rem;
  background: var(--white);
  border-top: 2px solid var(--cream-deep);
}

.footer__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  text-align: center;
}

.footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  font-weight: 700;
}

.footer__links {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem 1.25rem;
}

.footer__links a {
  font-weight: 700;
  font-size: 0.92rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(44, 36, 22, 0.5);
}

.modal__panel {
  position: relative;
  max-width: 400px;
  width: 100%;
  padding: 2rem 1.75rem;
  background: var(--white);
  border-radius: var(--radius);
  text-align: center;
  box-shadow: 0 24px 60px rgba(44, 36, 22, 0.2);
}

.modal__close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 10px;
  background: var(--cream);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.modal__mark {
  width: 56px;
  height: 56px;
  margin: 0 auto 1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--teal), var(--amber));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
}

.modal__panel h2 {
  font-family: var(--font-display);
  margin: 0 0 0.75rem;
}

.modal__panel p {
  color: var(--ink-soft);
  margin: 0 0 1.25rem;
}
