/* ===== Design tokens ===== */
:root {
  --color-bg: #FAF7F1;
  --color-bg-rgb: 250, 247, 241;
  --color-bg-alt: #F1ECE2;
  --color-surface: #FFFFFF;
  --color-border: rgba(34, 32, 27, 0.10);
  --color-primary: #00694F;
  --color-primary-rgb: 0, 105, 79;
  --color-primary-dark: #004E3B;
  --color-secondary: #B8790A;
  --color-secondary-rgb: 255, 200, 87;
  --color-pink: #C63E7F;
  --color-pink-rgb: 198, 62, 127;
  --color-blue: #323CA0;
  --color-blue-dark: #262E7A;
  --color-blue-light: #96A0F0;
  --color-mint: #D3EEE5;
  --color-mint-deep: #9FCFC0;
  --color-cream: #FFF8EC;
  --color-text: #22201B;
  --color-text-muted: rgba(34, 32, 27, 0.68);

  --font-display: 'Lilita One', sans-serif;
  --font-body: 'Nunito Sans', sans-serif;

  --container-width: 1120px;
  --radius: 16px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--color-bg);
  color: var(--color-text);
  font-family: var(--font-body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

.container {
  width: 100%;
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 16px;
  line-height: 1.15;
}

p { margin: 0 0 16px; color: var(--color-text-muted); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.06em;
  font-size: 18px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }

.btn-primary {
  background: var(--color-blue-light);
  color: var(--color-blue-dark);
}
.btn-primary:hover {
  background: var(--color-blue);
  color: var(--color-cream);
}

/* ===== Header / Nav ===== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 0.25s ease, border-color 0.25s ease, backdrop-filter 0.25s ease;
}

.site-header.is-solid {
  background: rgba(var(--color-bg-rgb), 0.92);
  backdrop-filter: blur(10px);
  border-bottom-color: var(--color-border);
}

.nav-inner {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  column-gap: 16px;
  padding-top: 14px;
  padding-bottom: 14px;
}

.brand {
  display: flex;
  align-items: center;
}

.nav-toggle {
  justify-self: end;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: transparent;
  border: none;
  cursor: pointer;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--color-cream);
  border-radius: 2px;
  transition: background 0.2s ease;
}
.site-header.is-solid .nav-toggle span { background: var(--color-text); }

.nav-links {
  position: absolute;
  top: 100%;
  right: 0;
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 2px;
  min-width: 190px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 16px;
  box-shadow: 0 12px 28px rgba(34, 32, 27, 0.15);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s;
}
.nav-links.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-links a {
  color: var(--color-text);
  font-weight: 700;
  font-size: 15px;
  padding: 10px 14px;
  border-radius: 10px;
  transition: background 0.15s ease;
}
.nav-links a:hover { background: var(--color-bg-alt); }

/* ===== Hero banner (full-width image, header floats on top) ===== */
.hero-banner {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: 640px;
  overflow: hidden;
  background: var(--color-bg-alt);
}

.hero-banner img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-banner::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 160px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
  pointer-events: none;
}

.hero-banner-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.35) 60%, rgba(0, 0, 0, 0) 100%);
}

.hero-overlay-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.hero-overlay-text {
  color: var(--color-cream);
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: 0.02em;
  font-size: clamp(20px, 2.4vw, 32px);
  line-height: 1.3;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.45);
  margin: 0;
  flex: 1;
}

/* ===== Hero copy (below the banner image) ===== */
.hero-content {
  padding: 48px 0 32px;
  background-color: var(--color-bg);
  background-image: url('../assets/images/zigzag-pattern.svg');
  background-repeat: repeat;
  background-size: 28px 28px;
}

.hero-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  max-width: 780px;
  margin: 0 auto;
}

.hero-copy {
  order: 2;
  text-align: left;
}

.hero-logo {
  margin: 0 0 20px;
}
.hero-logo img {
  width: 100%;
  max-width: 460px;
  height: auto;
}

.hero-tagline {
  font-size: 19px;
  max-width: 480px;
  margin: 0 auto 32px;
  text-align: center;
}

.hero-product {
  justify-self: center;
}
.hero-product img {
  width: 100%;
  max-width: 180px;
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(34, 32, 27, 0.18));
}

/* ===== Section heading ===== */
.section-heading {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-heading h2 {
  font-size: clamp(32px, 4vw, 44px);
  color: var(--color-text);
}

.heading-img {
  display: block;
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto;
}

.eyebrow {
  display: block;
  color: var(--color-secondary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  margin-bottom: 12px;
}

/* ===== Quick facts ===== */
.facts-section {
  margin-top: 0;
}

.feature-row {
  display: flex;
  justify-content: center;
  gap: 24px;
}

.feature {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 1px 3px rgba(34, 32, 27, 0.05);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  width: 173px;
  height: 173px;
  flex: none;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.feature-label {
  display: block;
  color: var(--color-secondary);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 10px;
}

.feature-icon {
  margin-bottom: 12px;
}

.feature-icon img {
  width: auto;
  height: 40px;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.icon-alarm {
  transform-origin: 50% 85%;
}

@keyframes alarm-ring {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-14deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-10deg); }
  80% { transform: rotate(8deg); }
}

body.is-scrolling .feature-row.is-visible .icon-alarm {
  animation: alarm-ring 0.6s ease-in-out infinite;
}

.feature h3 {
  color: var(--color-text);
  font-size: 19px;
  margin: 0;
}

/* ===== Meet the Sloths ===== */
.sloths-section {
  padding: 64px 0;
  background: var(--color-mint);
}

.sloths-section .section-heading p {
  font-size: 20px;
}

.sloth-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
}

.sloth-card {
  margin: 0;
  aspect-ratio: 600 / 835;
  perspective: 1200px;
  transition: transform 0.2s ease;
}
.sloth-card:nth-child(even) { transform: rotate(-2deg); }
.sloth-card:nth-child(odd) { transform: rotate(2deg); }
.sloth-card:hover { transform: translateY(-4px) rotate(0deg); }

.sloth-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 14px;
  border: 3px solid var(--color-surface);
  box-shadow: 0 2px 4px rgba(34, 32, 27, 0.14), 0 14px 28px rgba(34, 32, 27, 0.24);
  transform-style: preserve-3d;
}

.sloth-card-face {
  position: absolute;
  inset: 0;
  border-radius: 11px;
  overflow: hidden;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.sloth-card-back { transform: rotateY(0deg); }
.sloth-card-front { transform: rotateY(180deg); }

.sloth-card-face img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.section-footnote {
  text-align: center;
  color: var(--color-text-muted);
  font-size: 14px;
  margin: 32px 0 0;
}

/* ===== Messed Up ===== */
.mess-section {
  padding: 40px 0;
  background-color: var(--color-bg);
  background-image: url('../assets/images/zigzag-pattern.svg');
  background-repeat: repeat;
  background-size: 28px 28px;
}

.mess-section .section-heading {
  margin-bottom: 20px;
}

.mess-showcase {
  margin: 32px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 14px rgba(34, 32, 27, 0.08);
}

.mess-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

.mess-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

/* ===== Split-row layout (Messed Up / Dress Up / Sped Up) ===== */
.split-row {
  display: flex;
  flex-direction: column;
}

.split-copy { order: 1; }
.split-media { order: 2; }
.split-copy p { font-size: 20px; }

.mess-section .eyebrow,
.outfit-section .eyebrow,
.finish-section .eyebrow {
  color: #3345a6;
}

/* ===== Build the Outfit ===== */
.outfit-section {
  padding: 40px 0;
}

.outfit-showcase {
  margin: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 14px rgba(34, 32, 27, 0.08);
}

.outfit-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Sped Up ===== */
.finish-section {
  padding: 40px 0;
  background-color: var(--color-bg);
  background-image: url('../assets/images/zigzag-pattern.svg');
  background-repeat: repeat;
  background-size: 28px 28px;
}

.finish-section .section-heading {
  margin-bottom: 20px;
}

.finish-text {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
}

.finish-showcase {
  margin: 32px 0 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 14px rgba(34, 32, 27, 0.08);
}

.finish-showcase img {
  display: block;
  width: 100%;
  height: auto;
}

/* ===== Special Cards ===== */
.special-section {
  padding: 64px 0;
  background: var(--color-mint);
}

.special-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.special-card { text-align: center; }

.special-card img {
  width: 100%;
  height: auto;
  border-radius: var(--radius);
  border: 1px solid rgba(34, 32, 27, 0.08);
  box-shadow: 0 4px 14px rgba(34, 32, 27, 0.1);
  margin-bottom: 16px;
}

.special-card h3 {
  color: var(--color-text);
  font-size: 24px;
  margin-bottom: 8px;
}

.special-card p { margin: 0; font-size: 20px; }

/* ===== Team ===== */
.team-section {
  padding: 40px 0;
  text-align: center;
}

.team-section .eyebrow {
  margin-bottom: 24px;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  max-width: 780px;
  margin: 0 auto;
}

.team-role {
  display: block;
  color: var(--color-text-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 12px;
  margin-bottom: 6px;
}

.team-name {
  margin: 0;
  color: var(--color-text);
  font-size: 17px;
}

.section-divider {
  height: 28px;
  background-image: url('../assets/images/zigzag-pattern-tan.svg');
  background-repeat: repeat-x;
  background-position: top center;
  background-size: 28px 28px;
}

/* ===== Rulebook ===== */
.rulebook-section {
  padding: 40px 0;
}

.rulebook-inner {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 40px;
  max-width: 780px;
  margin: 0 auto;
}

.rulebook-product {
  justify-self: center;
}
.rulebook-product img {
  width: 100%;
  max-width: 135px;
  height: auto;
  filter: drop-shadow(0 16px 28px rgba(34, 32, 27, 0.18));
}

.rulebook-copy .section-heading {
  max-width: none;
  margin: 0 0 16px;
  text-align: left;
}

.rulebook-copy p {
  font-size: 20px;
  margin: 0;
}

.rulebook-product a {
  display: block;
  transition: transform 0.15s ease;
}
.rulebook-product a:hover {
  transform: translateY(-4px);
}

/* ===== About section ===== */
.about-section {
  padding: 64px 0;
}

.about-inner {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 48px;
  align-items: center;
}

.about-media {
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(var(--color-secondary-rgb), 0.18);
  border-radius: 24px;
  aspect-ratio: 1;
}

.about-logo {
  width: 80%;
  height: auto;
}

.about-copy h2 {
  color: var(--color-text);
  font-size: clamp(30px, 4vw, 40px);
}

.contact-section {
  padding: 64px 0;
  border-top: 1px solid var(--color-border);
}

.contact-inner {
  text-align: center;
}

.contact-inner h2 {
  color: var(--color-text);
  font-size: clamp(30px, 4vw, 40px);
}

.text-link {
  display: inline-block;
  margin-top: 8px;
  font-weight: 700;
  font-size: 18px;
  color: var(--color-secondary);
}
.text-link:hover { text-decoration: underline; }

/* ===== Notify section ===== */
.notify-section {
  padding: 64px 0;
  background-color: var(--color-bg-alt);
  background-image: url('../assets/images/zigzag-pattern.svg');
  background-repeat: repeat;
  background-size: 28px 28px;
}

.notify-card {
  max-width: 560px;
  margin: 0 auto;
  text-align: center;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  box-shadow: 0 4px 20px rgba(34, 32, 27, 0.06);
  border-radius: 24px;
  padding: 56px 40px;
}

.notify-card h2 {
  color: var(--color-text);
  font-size: clamp(28px, 4vw, 36px);
}

.signup-form { margin-top: 24px; }

.form-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.form-row input[type="email"] {
  flex: 1 1 240px;
  padding: 14px 18px;
  border-radius: 999px;
  border: 2px solid var(--color-border);
  background: var(--color-bg-alt);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 16px;
}
.form-row input[type="email"]::placeholder { color: rgba(34, 32, 27, 0.42); }
.form-row input[type="email"]:focus {
  outline: none;
  border-color: var(--color-blue);
}

.honeypot {
  position: absolute;
  left: -5000px;
}

.form-note {
  margin: 16px 0 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== Footer ===== */
.site-footer {
  padding: 48px 0;
  border-top: 1px solid var(--color-border);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}

.footer-brand img {
  height: 40px;
  width: auto;
}

.footer-social {
  display: flex;
  gap: 16px;
  margin: 8px 0;
  font-size: 13px;
  font-weight: 700;
}

.footer-copyright {
  margin: 0;
  font-size: 13px;
  color: var(--color-text-muted);
}

/* ===== Anchor targets ===== */
/* Keeps the fixed header from covering a section's own top padding when
   jumping to it via an in-page link (e.g. #notify, #about, #contact) —
   without this, the header eats into the section and lands right on its
   first child (the card/box) instead of the section's top. */
main section[id] {
  scroll-margin-top: 73px;
}

/* ===== Scroll reveal ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .hero-overlay-inner { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-overlay-text { text-align: center; }
  .hero-overlay-inner .btn { width: 100%; }
  .hero-content { padding: 24px 0 32px; }
  .facts-section { margin-top: 32px; }
  .hero-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .hero-copy { display: contents; text-align: center; }
  .hero-logo { order: 1; margin: 0; }
  .hero-logo img { margin: 0 auto; }
  .hero-product { order: 2; max-width: 170px; margin: 0 auto; }
  .hero-tagline { order: 3; margin: 0 auto; }
  .about-inner { grid-template-columns: 1fr; }
  .about-media { max-width: 240px; margin: 0 auto; }
  .feature-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .feature { width: auto; height: auto; padding: 16px 10px; }
  .feature-label { font-size: 10px; margin-bottom: 6px; }
  .feature-icon { margin-bottom: 8px; }
  .feature-icon img { width: auto; height: 30px; }
  .feature h3 { font-size: 15px; }

  .sloth-grid { grid-template-columns: repeat(3, 1fr); }
  .special-grid { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(2, 1fr); }

  .rulebook-inner { grid-template-columns: 1fr; gap: 32px; text-align: center; }
  .rulebook-copy { order: 1; }
  .rulebook-copy .section-heading { text-align: center; }
  .rulebook-product { order: 2; max-width: 128px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .sloth-grid { grid-template-columns: repeat(2, 1fr); }
  .special-grid { grid-template-columns: 1fr; }
  .notify-card { padding: 40px 24px; }

  .form-row { justify-content: center; }
  .form-row .btn { flex: 0 1 auto; }
}

@media (max-width: 600px) {
  .hero-banner { aspect-ratio: 4 / 5; max-height: none; }
  .hero-banner img { object-position: 15% 35%; }
}

@media (min-width: 861px) {
  .split-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 48px;
  }

  .split-row .section-heading {
    max-width: none;
    margin: 0 0 16px;
    text-align: center;
  }

  .split-copy .mess-text,
  .split-copy .finish-text {
    max-width: none;
    margin: 0;
    text-align: center;
  }

  .split-media.mess-showcase,
  .split-media.finish-showcase,
  .split-media.outfit-showcase {
    margin: 0;
  }

  .outfit-section .split-copy { order: 2; }
  .outfit-section .split-media { order: 1; }
}
