/* GoldWalk — soft kawaii wellness landing (cream / mint / teal / gold) */
:root {
  --cream: #fff6e4;
  --cream-deep: #ffe8b8;
  --mint: #dff5ef;
  --mint-deep: #6bc5b5;
  --teal: #3fad9f;
  --sky: #dcebff;
  --lavender: #ebe6ff;
  --gold: #ffc26f;
  --gold-deep: #f0b429;
  --navy: #1e3a5f;
  --ink: #243447;
  --muted: #5a6b7d;
  --white: #ffffff;
  --shadow: 0 18px 40px rgba(36, 52, 71, 0.12);
  --shadow-soft: 0 10px 28px rgba(63, 173, 159, 0.18);
  --radius-xl: 28px;
  --radius-pill: 999px;
  --font-display: "Fredoka", system-ui, sans-serif;
  --font-body: "Nunito", system-ui, sans-serif;
  --header-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background:
    radial-gradient(ellipse 80% 50% at 10% -10%, #fff0c8 0%, transparent 55%),
    radial-gradient(ellipse 60% 40% at 90% 5%, #d8f3ec 0%, transparent 50%),
    linear-gradient(180deg, var(--cream) 0%, #f7fbff 42%, var(--mint) 100%);
  min-height: 100vh;
  line-height: 1.55;
  overflow-x: hidden;
}

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

a {
  color: var(--teal);
  text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
  transition: color 0.2s var(--ease);
}

a:hover {
  color: var(--navy);
}

button {
  font-family: inherit;
}

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

.skip-link {
  position: absolute;
  left: 1rem;
  top: -100px;
  z-index: 1000;
  background: var(--navy);
  color: var(--white);
  padding: 0.75rem 1rem;
  border-radius: 8px;
}

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

/* Atmosphere blobs */
.atmosphere {
  pointer-events: none;
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
  opacity: 0.55;
}

.blob--cream {
  width: min(48vw, 420px);
  height: min(48vw, 420px);
  background: #ffe7a8;
  top: -8%;
  right: 8%;
}

.blob--mint {
  width: min(40vw, 360px);
  height: min(40vw, 360px);
  background: #b8ebe0;
  bottom: 18%;
  left: -6%;
}

.blob--sky {
  width: min(36vw, 300px);
  height: min(36vw, 300px);
  background: #c5dcff;
  top: 42%;
  right: -4%;
}

.blob--gold {
  width: 160px;
  height: 160px;
  background: #ffd89a;
  top: 22%;
  left: 18%;
  opacity: 0.35;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  transition: background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.site-header.is-scrolled {
  background: rgba(255, 246, 228, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 4px 24px rgba(30, 58, 95, 0.08);
}

.navbar {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0.85rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  color: var(--navy);
}

.brand__icon {
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
}

.brand__name {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.nav-panel {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav-links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  gap: 1.1rem;
}

.nav-links a {
  text-decoration: none;
  color: var(--muted);
  font-weight: 600;
  font-size: 0.95rem;
}

.nav-links a:hover {
  color: var(--navy);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: var(--white);
  border-radius: 14px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
  box-shadow: var(--shadow-soft);
}

.nav-toggle__bar {
  display: block;
  width: 18px;
  height: 2.5px;
  background: var(--navy);
  border-radius: 2px;
  transition: transform 0.2s var(--ease), opacity 0.2s;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) {
  transform: translateY(7.5px) rotate(45deg);
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) {
  opacity: 0;
}

.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) {
  transform: translateY(-7.5px) rotate(-45deg);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: 0;
  cursor: pointer;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), background 0.2s;
}

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

.btn:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 3px;
}

.btn--pill {
  background: var(--mint-deep);
  color: var(--white);
  padding: 0.7rem 1.35rem;
  border-radius: var(--radius-pill);
  box-shadow: 0 8px 20px rgba(63, 173, 159, 0.35);
}

.btn--pill:hover {
  background: var(--teal);
  box-shadow: 0 12px 28px rgba(63, 173, 159, 0.4);
}

.btn--store {
  background: linear-gradient(180deg, #4fbfb0 0%, #3a9f92 100%);
  color: var(--white);
  padding: 0.85rem 1.4rem;
  border-radius: 16px;
  font-size: 1rem;
  box-shadow: 0 10px 24px rgba(63, 173, 159, 0.35);
}

.btn--store-alt {
  background: linear-gradient(180deg, #ffd56a 0%, #f0b429 100%);
  color: var(--navy);
  box-shadow: 0 10px 24px rgba(240, 180, 41, 0.35);
}

.btn__icon {
  flex-shrink: 0;
}

/* Hero — brand-first composition */
.hero {
  position: relative;
  z-index: 1;
  padding: 1.5rem 1.25rem 3.5rem;
}

.hero__inner {
  max-width: 1120px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2rem;
  align-items: center;
  min-height: calc(100vh - var(--header-h) - 2rem);
}

.hero__brand {
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6vw, 4.2rem);
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1;
}

.hero__title {
  margin: 0 0 1rem;
  font-family: var(--font-display);
  font-size: clamp(1.55rem, 3.2vw, 2.15rem);
  font-weight: 600;
  color: var(--teal);
  line-height: 1.25;
}

.hero__lead {
  margin: 0 0 1.75rem;
  max-width: 34ch;
  color: var(--muted);
  font-size: 1.08rem;
}

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

.hero__stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 480px;
}

/* Phone frames — keep screenshot aspect ratio 576:1024 */
.phone {
  position: relative;
}

.phone__bezel {
  border-radius: 32px;
  padding: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.phone__bezel img {
  width: 100%;
  height: auto;
  aspect-ratio: 576 / 1024;
  object-fit: cover;
  border-radius: 24px;
  background: var(--white);
}

.phone__bezel--teal { background: linear-gradient(160deg, #6bc5b5, #3fad9f); }
.phone__bezel--cream { background: linear-gradient(160deg, #ffe8b8, #f0b429); }
.phone__bezel--mint { background: linear-gradient(160deg, #b8ebe0, #6bc5b5); }
.phone__bezel--gold { background: linear-gradient(160deg, #ffd89a, #ffc26f); }
.phone__bezel--lavender { background: linear-gradient(160deg, #d8d0ff, #a99cff); }
.phone__bezel--sky { background: linear-gradient(160deg, #c5dcff, #7eb0f0); }

.phone--hero {
  width: min(280px, 68vw);
  z-index: 2;
  margin-inline: auto;
}

.phone--hero .phone__bezel {
  animation: phone-float 5s var(--ease) infinite;
}

.phone--mini {
  width: min(160px, 38vw);
  margin-inline: auto;
}

.phone--rail {
  width: min(200px, 42vw);
  max-width: 200px;
}

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

.float-chip {
  position: absolute;
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow);
  z-index: 3;
  animation: chip-bob 4.5s var(--ease) infinite;
}

.float-chip--steps {
  left: -4%;
  top: 18%;
  padding: 1rem 1.15rem;
  width: 150px;
  background: linear-gradient(160deg, #ffe8a0, #ffd56a);
}

.float-chip--points {
  right: 0;
  bottom: 22%;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-display);
  color: var(--navy);
}

.float-chip__label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--muted);
}

.float-chip__value {
  display: block;
  font-family: var(--font-display);
  font-size: 1.85rem;
  line-height: 1.1;
  color: var(--navy);
}

.float-chip__unit {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 600;
}

.float-chip__bar {
  margin-top: 0.55rem;
  height: 8px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
}

.float-chip__bar i {
  display: block;
  height: 100%;
  background: var(--teal);
  border-radius: inherit;
}

.float-chip__dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold-deep);
}

@keyframes chip-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(8px); }
}

/* Section heads */
.section-head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
  text-align: center;
  padding: 0 1.25rem;
  position: relative;
  z-index: 1;
}

.section-head h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section-head__lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}

.eyebrow {
  display: inline-block;
  margin: 0 0 0.5rem;
  font-weight: 700;
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--teal);
}

/* Trail milestones — zigzag path layout */
.features {
  position: relative;
  z-index: 1;
  padding: 2rem 0 4rem;
}

.trail {
  position: relative;
  max-width: 980px;
  margin: 0 auto;
  padding: 1rem 1.25rem 2rem;
}

.trail__path {
  position: absolute;
  left: 50%;
  top: 0;
  bottom: 0;
  width: 40px;
  height: 100%;
  transform: translateX(-50%);
  color: rgba(63, 173, 159, 0.45);
  pointer-events: none;
}

.milestone {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.25rem;
  align-items: center;
  margin-bottom: 3.5rem;
  position: relative;
}

.milestone--right {
  direction: rtl;
}

.milestone--right > * {
  direction: ltr;
}

.milestone__marker {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--white);
  color: var(--teal);
  display: grid;
  place-items: center;
  box-shadow: var(--shadow-soft);
  z-index: 2;
}

.milestone__body {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(8px);
  border-radius: var(--radius-xl);
  padding: 1.35rem 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 24px rgba(30, 58, 95, 0.06);
  max-width: 360px;
}

.milestone__body h3 {
  margin: 0 0 0.4rem;
  font-family: var(--font-display);
  font-size: 1.25rem;
  color: var(--navy);
}

.milestone__body p {
  margin: 0;
  color: var(--muted);
  font-size: 0.98rem;
}

.milestone__shot {
  margin: 0;
  display: flex;
  justify-content: center;
}

/* Gallery — centered screenshot showcase */
.gallery {
  position: relative;
  z-index: 1;
  padding: 3rem 1.25rem 2rem;
  background: linear-gradient(180deg, transparent, rgba(220, 235, 255, 0.55) 30%, rgba(223, 245, 239, 0.7));
}

.gallery__rail {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: flex-start;
  gap: 1.75rem 1.5rem;
  max-width: 1120px;
  margin: 0 auto;
  padding: 1rem 0 2.5rem;
}

.gallery__item {
  margin: 0;
  flex: 0 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.gallery__item figcaption {
  margin-top: 0.85rem;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.gallery__item .phone--rail {
  margin-left: auto;
  margin-right: auto;
}

/* Habits strip */
.habits {
  position: relative;
  z-index: 1;
  padding: 1rem 1.25rem 3rem;
}

.habits__inner {
  max-width: 1000px;
  margin: 0 auto;
}

.habits__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.habits__list li {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--white);
  padding: 0.65rem 1.1rem;
  border-radius: var(--radius-pill);
  font-weight: 700;
  color: var(--navy);
  font-size: 0.92rem;
  box-shadow: 0 6px 18px rgba(30, 58, 95, 0.07);
}

.habits__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--mint);
  color: var(--teal);
}

/* Download */
.download {
  position: relative;
  z-index: 1;
  padding: 1rem 1.25rem 4rem;
}

.download__card {
  max-width: 720px;
  margin: 0 auto;
  text-align: center;
  background: linear-gradient(145deg, #fff9ec 0%, #e5f8f3 55%, #dcebff 100%);
  border-radius: 36px;
  padding: 2.75rem 1.75rem;
  box-shadow: var(--shadow);
  border: 2px solid rgba(255, 255, 255, 0.8);
}

.download__card h2 {
  margin: 0 0 0.65rem;
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.1rem);
  color: var(--navy);
}

.download__card > p {
  margin: 0 0 1.5rem;
  color: var(--muted);
}

.download__card .hero__cta {
  justify-content: center;
}

/* Footer */
.footer {
  position: relative;
  z-index: 1;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.85);
  padding: 2.5rem 1.25rem;
}

.footer a {
  color: #9fe0d4;
}

.footer a:hover {
  color: var(--white);
}

.footer__inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  gap: 1.5rem;
}

.footer__brand {
  display: flex;
  gap: 0.85rem;
  align-items: center;
}

.footer__brand img {
  border-radius: 10px;
}

.footer__brand strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--white);
}

.footer__brand p {
  margin: 0.15rem 0 0;
  font-size: 0.9rem;
  opacity: 0.75;
}

.footer__links {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem 1.5rem;
}

.footer__copy {
  margin: 0;
  font-size: 0.85rem;
  opacity: 0.65;
}

/* Modal */
.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(30, 58, 95, 0.45);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.modal__dialog {
  position: relative;
  z-index: 1;
  width: min(400px, 100%);
  background: var(--white);
  border-radius: 28px;
  padding: 2rem 1.75rem 1.75rem;
  text-align: center;
  box-shadow: var(--shadow);
  animation: modal-in 0.28s var(--ease);
}

@keyframes modal-in {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal__close {
  position: absolute;
  top: 0.85rem;
  right: 0.85rem;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--mint);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
}

.modal__close:hover {
  background: var(--mint-deep);
  color: var(--white);
}

.modal__icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--cream);
  color: var(--teal);
  display: grid;
  place-items: center;
}

.modal__dialog h2 {
  margin: 0 0 0.5rem;
  font-family: var(--font-display);
  color: var(--navy);
}

.modal__dialog p {
  margin: 0 0 1.35rem;
  color: var(--muted);
}

body.modal-open {
  overflow: hidden;
}

/* Responsive */
@media (max-width: 900px) {
  .hero__inner {
    grid-template-columns: 1fr;
    min-height: auto;
    text-align: center;
  }

  .hero__lead {
    margin-left: auto;
    margin-right: auto;
  }

  .hero__cta {
    justify-content: center;
  }

  .hero__stage {
    min-height: 420px;
    order: -1;
  }

  .float-chip--steps {
    left: 2%;
    top: 10%;
  }

  .trail__path {
    display: none;
  }

  .milestone,
  .milestone--right {
    grid-template-columns: 1fr;
    direction: ltr;
    justify-items: center;
    text-align: center;
  }

  .milestone__body {
    max-width: 100%;
  }

  .milestone__marker {
    order: -1;
  }

  .milestone__shot {
    order: 1;
    width: 100%;
  }

  .gallery__rail {
    gap: 1.5rem 1rem;
  }
}

@media (max-width: 768px) {
  .nav-toggle {
    display: inline-flex;
  }

  .nav-panel {
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 1rem;
    right: 1rem;
    flex-direction: column;
    align-items: stretch;
    background: rgba(255, 255, 255, 0.97);
    border-radius: 20px;
    padding: 1rem;
    box-shadow: var(--shadow);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.2s, transform 0.2s, visibility 0.2s;
  }

  .nav-panel.is-open {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .nav-links {
    flex-direction: column;
    gap: 0.35rem;
  }

  .nav-links a {
    display: block;
    padding: 0.7rem 0.85rem;
    border-radius: 12px;
  }

  .nav-links a:hover {
    background: var(--mint);
  }

  .nav-panel .btn--pill {
    width: 100%;
  }

  .phone--hero {
    width: min(240px, 62vw);
  }

  .float-chip--steps {
    width: 120px;
    padding: 0.75rem;
  }

  .float-chip__value {
    font-size: 1.4rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .phone--hero .phone__bezel,
  .float-chip {
    animation: none;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
