:root {
  --gold: #c4842a;
  --gold-deep: #8f5a14;
  --amber: #e8b86a;
  --cream: #fff6e0;
  --ink: #2a1808;
  --ink-soft: #5a3a1c;
  --earth: #3a2410;
  --sky: #f3d9a0;
  --leaf: #3d5c22;
  --max: 68rem;
  --radius: 0.35rem;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Source Sans 3", system-ui, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--cream);
  background:
    radial-gradient(120% 80% at 70% 0%, #e8a84a 0%, transparent 55%),
    linear-gradient(180deg, #d4923a 0%, #a8651e 35%, #3a2410 100%);
  background-attachment: fixed;
  line-height: 1.5;
  min-height: 100vh;
}

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

a {
  color: inherit;
}

.skip {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--ink);
  color: var(--cream);
  padding: 0.5rem 1rem;
  z-index: 100;
}

.skip:focus {
  left: 0.5rem;
  top: 0.5rem;
}

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

.wrap {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

.top {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  background: color-mix(in srgb, #3a2410 72%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--amber) 35%, transparent);
}

.top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 0;
  gap: 1rem;
}

.mark {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: 0.04em;
}

.mark img {
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 0.45rem;
}

.top-cta {
  font-weight: 600;
  font-size: 0.92rem;
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border: 1px solid color-mix(in srgb, var(--cream) 45%, transparent);
  border-radius: 999px;
}

.top-cta:hover,
.top-cta:focus-visible {
  background: color-mix(in srgb, var(--cream) 14%, transparent);
}

/* Hero — one composition: brand, headline, lede, CTA, dominant image */
.hero {
  position: relative;
  min-height: min(100svh, 52rem);
  display: grid;
  align-items: stretch;
  isolation: isolate;
  overflow: hidden;
}

.hero-visual {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* Kid near ~40% from left; keep tree readable on right */
  object-position: 48% 42%;
  animation: hero-drift 18s ease-in-out infinite alternate;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  /* Soft dark left third so GULEL + tagline sit on clean ground */
  background:
    linear-gradient(90deg, rgba(24, 12, 4, 0.92) 0%, rgba(24, 12, 4, 0.72) 16%, rgba(24, 12, 4, 0.32) 32%, transparent 44%),
    linear-gradient(180deg, rgba(24, 12, 4, 0.15) 0%, transparent 40%, rgba(24, 12, 4, 0.4) 100%);
  pointer-events: none;
}

.hero-copy {
  position: relative;
  z-index: 1;
  align-self: center;
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
  padding: 5.5rem 0 3.25rem;
  /* No entrance fade — keep headline fully opaque for contrast */
  animation: none;
  opacity: 1;
  pointer-events: none;
}

.hero-copy-inner {
  width: min(24rem, 34%);
  pointer-events: auto;
  opacity: 1;
}

.hero-copy a,
.hero-copy .btn {
  pointer-events: auto;
  opacity: 1;
}

/* Mobile: painting on top, text below on dark band — no figure overlap */
@media (max-width: 719px) {
  .hero {
    display: flex;
    flex-direction: column;
    min-height: 85vh;
    min-height: 85svh;
    background: #2a1808;
  }

  .hero-visual {
    position: relative;
    inset: auto;
    z-index: 0;
    flex: 1 1 auto;
    min-height: 58vh;
    min-height: 58svh;
  }

  .hero-img {
    width: 100%;
    height: 100%;
    min-height: 58vh;
    min-height: 58svh;
    object-fit: cover;
    object-position: 55% 35%;
    animation: none;
  }

  .hero::after {
    display: none;
  }

  .hero-copy {
    position: relative;
    z-index: 1;
    align-self: stretch;
    width: 100%;
    margin: 0;
    padding: 1.35rem 1.15rem 1.75rem;
    background: #2a1808;
    animation: none;
  }

  .hero-copy-inner {
    width: 100%;
    max-width: none;
  }

  .brand {
    font-size: clamp(2.2rem, 11vw, 3rem);
  }

  .hero h1 {
    max-width: none;
  }

  .lede {
    max-width: none;
  }
}

.brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.8rem, 9vw, 4.6rem);
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 0.95;
  color: #fff6e0;
  opacity: 1;
  text-shadow: 0 2px 18px rgba(24, 12, 4, 0.85), 0 1px 2px rgba(24, 12, 4, 0.9);
}

.hero h1 {
  margin: 0 0 0.85rem;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 3.2vw, 1.75rem);
  font-weight: 600;
  line-height: 1.25;
  color: #f0c56a;
  opacity: 1;
  max-width: 22ch;
  text-shadow: 0 1px 12px rgba(24, 12, 4, 0.8);
}

.lede {
  margin: 0 0 1.4rem;
  font-size: 1.05rem;
  color: #fff6e0;
  opacity: 1;
  max-width: 34ch;
  text-shadow: 0 1px 10px rgba(24, 12, 4, 0.75);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem 1rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  border: 0;
  border-radius: 999px;
  padding: 0.75rem 1.25rem;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease;
}

.btn.primary {
  background: var(--cream);
  color: var(--ink);
}

.btn.primary:hover,
.btn.primary:focus-visible {
  transform: translateY(-1px);
  background: #fff;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.9rem;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, var(--cream) 40%, transparent);
  background: color-mix(in srgb, var(--ink) 45%, transparent);
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.01em;
}

.features {
  padding: 4rem 0 3.5rem;
  background: #2a1808;
  color: var(--cream);
}

.features h2,
.waitlist h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3.5vw, 2.15rem);
  font-weight: 700;
  line-height: 1.2;
}

.section-lede {
  margin: 0 0 2rem;
  color: var(--amber);
  max-width: 40ch;
}

.feature-grid {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 720px) {
  .feature-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
  }
}

.feature img {
  width: 100%;
  aspect-ratio: 400 / 260;
  object-fit: cover;
  border-radius: var(--radius);
  margin-bottom: 0.85rem;
  filter: saturate(1.05);
  transition: transform 0.35s ease;
}

.feature:hover img {
  transform: scale(1.02);
}

.feature h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
}

.feature p {
  margin: 0;
  color: color-mix(in srgb, var(--cream) 82%, transparent);
  font-size: 0.98rem;
}

.waitlist {
  padding: 3.5rem 0 4rem;
  background:
    radial-gradient(80% 60% at 50% 0%, rgba(232, 184, 106, 0.22), transparent 60%),
    #2a1808;
}

.waitlist-inner {
  display: grid;
  gap: 1.75rem;
}

@media (min-width: 820px) {
  .waitlist-inner {
    grid-template-columns: 1.1fr 0.9fr;
    align-items: end;
    gap: 2.5rem;
  }
}

.waitlist-copy p {
  margin: 0.4rem 0 0;
  color: color-mix(in srgb, var(--cream) 85%, transparent);
}

.store-note {
  margin-top: 1rem !important;
  display: inline-flex;
  width: fit-content;
  /* Matches .badge — quiet "Coming soon on iPhone" only */
}

.waitlist-form {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem;
  background: color-mix(in srgb, var(--earth) 80%, #000);
  border: 1px solid color-mix(in srgb, var(--gold) 45%, transparent);
  border-radius: 0.6rem;
}

.waitlist-form input[type="email"] {
  width: 100%;
  border: 1px solid color-mix(in srgb, var(--amber) 40%, transparent);
  border-radius: 999px;
  padding: 0.8rem 1rem;
  font: inherit;
  background: #1d1007;
  color: var(--cream);
}

.waitlist-form input::placeholder {
  color: color-mix(in srgb, var(--cream) 45%, transparent);
}

.waitlist-form .btn {
  width: 100%;
}

.form-hint {
  margin: 0;
  font-size: 0.78rem;
  color: color-mix(in srgb, var(--amber) 75%, transparent);
}

.footer {
  padding: 1.4rem 0 2rem;
  background: #1a0f07;
  border-top: 1px solid color-mix(in srgb, var(--gold) 30%, transparent);
  font-size: 0.9rem;
  color: color-mix(in srgb, var(--cream) 70%, transparent);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.5rem 1.5rem;
}

.footer p {
  margin: 0;
}

.footer-meta {
  color: var(--amber);
}

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

@keyframes hero-drift {
  from {
    transform: scale(1.02) translate3d(0, 0, 0);
  }
  to {
    transform: scale(1.06) translate3d(-1.5%, 1%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .hero-img,
  .hero-copy,
  .feature img {
    animation: none !important;
    transition: none !important;
  }
}

/* Waitlist states (functional wiring only) */
.waitlist-form .hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--cream);
}

.form-status.is-error {
  color: #f0c56a;
}

.waitlist-form.is-done .form-status {
  font-family: var(--font-display);
  font-size: 1.15rem;
  line-height: 1.35;
  padding: 0.35rem 0.25rem;
}

.waitlist-form button[disabled] {
  opacity: 0.7;
  cursor: progress;
}

.waitlist-form [hidden] {
  display: none !important;
}
