:root {
  --peach: #ffa56b;
  --coral: #ff8a76;
  --lavender: #c598f8;
  --violet: #a877ea;
  --cream: #fffaf1;
  --mist: #f8f1ff;
  --text: #5b4a63;
  --text-soft: #8e7c95;
  --card: rgba(255, 250, 245, 0.92);
  --shadow: 0 18px 50px rgba(91, 74, 99, 0.14);
  --radius-lg: 24px;
  --radius-md: 18px;
  --max: 1120px;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Nunito", system-ui, -apple-system, sans-serif;
  color: var(--text);
  background: var(--cream);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

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

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

.bg-gradient {
  background: linear-gradient(
    135deg,
    #ffa66d 0%,
    #f7b68b 35%,
    #e8b3d8 70%,
    #b89af1 100%
  );
  position: relative;
  overflow: hidden;
}

.bg-gradient::before,
.bg-gradient::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.bg-gradient::before {
  width: 280px;
  height: 280px;
  top: -90px;
  right: -40px;
  background: rgba(255, 255, 255, 0.28);
}

.bg-gradient::after {
  width: 220px;
  height: 220px;
  left: -70px;
  bottom: 80px;
  background: rgba(255, 255, 255, 0.16);
}

.bg-gradient > * {
  position: relative;
  z-index: 1;
}

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

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 100;
  padding: 0.75rem 0;
  transition: background 0.25s, box-shadow 0.25s, backdrop-filter 0.25s;
}

.site-header.scrolled {
  background: rgba(255, 250, 245, 0.88);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 30px rgba(91, 74, 99, 0.08);
}

.site-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
}

.brand img {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(168, 119, 234, 0.25);
}

.brand__stack {
  display: none;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 0.1rem;
  line-height: 1.15;
  min-width: 0;
}

.brand__title {
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand__subtitle {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text);
  opacity: 0.82;
  white-space: nowrap;
}

.brand__full {
  min-width: 0;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text);
  opacity: 0.9;
}

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

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.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;
}

.lang-select-wrap {
  display: flex;
  align-items: center;
}

.lang-select {
  max-width: 9.5rem;
  padding: 0.42rem 1.75rem 0.42rem 0.55rem;
  border: 1.5px solid rgba(91, 74, 99, 0.15);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%235B4A63' d='M3 4.5 6 7.5 9 4.5'/%3E%3C/svg%3E")
    no-repeat right 0.45rem center;
  color: var(--text);
  font-family: inherit;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  appearance: none;
}

.site-header.scrolled .lang-select {
  background-color: rgba(255, 250, 245, 0.95);
}

.menu-toggle {
  display: none;
  border: none;
  background: rgba(255, 255, 255, 0.7);
  width: 42px;
  height: 42px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 1.25rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  border: none;
  border-radius: 999px;
  font-family: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

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

.btn-primary {
  background: var(--cream);
  color: var(--violet);
  padding: 0.85rem 1.35rem;
  font-size: 1rem;
  box-shadow: 0 10px 28px rgba(168, 119, 234, 0.22);
}

.btn-gradient {
  background: linear-gradient(135deg, var(--peach), var(--violet));
  color: white;
  padding: 0.9rem 1.5rem;
  font-size: 1.02rem;
  box-shadow: 0 12px 32px rgba(168, 119, 234, 0.35);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.22);
  color: white;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  padding: 0.85rem 1.25rem;
}

/* Hero: light pills on gradient for readable contrast */
.hero-copy .btn-ghost {
  background: rgba(255, 250, 245, 0.94);
  color: var(--text);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 2px 0 rgba(168, 119, 234, 0.08),
    0 10px 28px rgba(91, 74, 99, 0.14);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-copy .btn-ghost:hover {
  background: #ffffff;
  box-shadow:
    0 2px 0 rgba(168, 119, 234, 0.12),
    0 14px 32px rgba(168, 119, 234, 0.2);
}

/* Store buttons — light pills + colored icons (Renew-style, Dear Pet palette) */
.store-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: stretch;
}

.store-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1.15rem 0.5rem 0.65rem;
  min-height: 58px;
  min-width: min(100%, 178px);
  border-radius: 14px;
  background: linear-gradient(160deg, #ffffff 0%, var(--cream) 100%);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow:
    0 2px 0 rgba(168, 119, 234, 0.1),
    0 10px 28px rgba(91, 74, 99, 0.16);
  color: var(--text);
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.store-btn--play:hover {
  transform: translateY(-2px);
  box-shadow:
    0 2px 0 rgba(168, 119, 234, 0.14),
    0 14px 36px rgba(168, 119, 234, 0.28);
}

.store-btn__icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.store-btn__icon svg {
  width: 24px;
  height: 24px;
}

.store-btn__icon--play {
  background: linear-gradient(145deg, #e9faf0 0%, #ffffff 100%);
  box-shadow:
    inset 0 0 0 1px rgba(0, 200, 83, 0.12),
    0 4px 12px rgba(0, 200, 83, 0.12);
}

.store-btn__icon--apple {
  background: linear-gradient(145deg, var(--mist) 0%, #ffffff 100%);
  color: var(--text);
  box-shadow:
    inset 0 0 0 1px rgba(168, 119, 234, 0.12),
    0 4px 12px rgba(168, 119, 234, 0.1);
}

.store-btn__label {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.15;
  text-align: left;
}

.store-btn__eyebrow {
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.store-btn__name {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
}

.store-btn--soon {
  cursor: default;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.92) 0%,
    rgba(248, 241, 255, 0.98) 100%
  );
  border-color: rgba(197, 152, 248, 0.28);
}

.store-btn--soon .store-btn__name {
  color: var(--text-soft);
}

.store-btn__pill {
  position: absolute;
  top: -7px;
  right: -5px;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
  font-size: 0.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: linear-gradient(135deg, var(--peach), var(--violet));
  box-shadow: 0 4px 14px rgba(168, 119, 234, 0.4);
  white-space: nowrap;
}

.store-buttons--hero .store-btn {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.5),
    0 12px 32px rgba(91, 74, 99, 0.2);
}

.store-buttons--hero .store-btn--play:hover {
  box-shadow:
    0 2px 0 rgba(255, 255, 255, 0.55),
    0 16px 40px rgba(168, 119, 234, 0.32);
}

.hero {
  min-height: 100svh;
  padding: 6.5rem 0 4rem;
  display: flex;
  align-items: center;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 2.5rem;
  align-items: center;
}

.hero-copy h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.8vw, 3.35rem);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: white;
  text-shadow: 0 8px 30px rgba(91, 74, 99, 0.18);
}

.hero-copy .lead {
  margin: 0 0 1.5rem;
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255, 255, 255, 0.94);
  max-width: 34rem;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: white;
  font-size: 0.85rem;
  font-weight: 700;
}

.hero-copy .chip {
  background: rgba(255, 250, 245, 0.93);
  color: var(--text);
  border: 1px solid rgba(197, 152, 248, 0.28);
  box-shadow: 0 6px 20px rgba(91, 74, 99, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  font-weight: 800;
  font-size: 0.82rem;
}

.hero-copy .badge-row .chip:first-child {
  background: linear-gradient(
    135deg,
    rgba(255, 250, 245, 0.98) 0%,
    rgba(248, 241, 255, 0.96) 100%
  );
  color: var(--violet);
  border-color: rgba(168, 119, 234, 0.35);
}

.hero-visual {
  display: flex;
  justify-content: center;
}

.phone {
  width: min(100%, 320px);
  border-radius: 32px;
  padding: 12px;
  background: rgba(255, 250, 245, 0.18);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  box-shadow: var(--shadow), 0 0 0 1px rgba(255, 255, 255, 0.2) inset;
  backdrop-filter: blur(8px);
}

.phone-screen {
  border-radius: 24px;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 20px 40px rgba(91, 74, 99, 0.2);
}

.phone-screen img {
  width: 100%;
  aspect-ratio: 9 / 16;
  object-fit: cover;
}

.section {
  padding: 5rem 0;
}

.section-light {
  background: linear-gradient(180deg, var(--cream), var(--mist));
}

.section-title {
  text-align: center;
  max-width: 38rem;
  margin: 0 auto 2.5rem;
}

.section-title h2 {
  margin: 0 0 0.65rem;
  font-size: clamp(1.65rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
}

.section-title p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.05rem;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  border: 1px solid rgba(197, 152, 248, 0.18);
}

.card .step-num {
  width: 40px;
  height: 40px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: white;
  background: linear-gradient(135deg, var(--peach), var(--violet));
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.15rem;
}

.card p {
  margin: 0;
  color: var(--text-soft);
  font-size: 0.98rem;
}

.example-usage {
  margin-top: 3rem;
  padding: 1.75rem;
  border-radius: var(--radius-lg);
  background: var(--card);
  border: 1px solid rgba(197, 152, 248, 0.2);
  box-shadow: var(--shadow);
}

.example-usage__header {
  text-align: center;
  max-width: 32rem;
  margin: 0 auto 1.75rem;
}

.example-usage__header h3 {
  margin: 0 0 0.5rem;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  color: var(--text);
}

.example-usage__header p {
  margin: 0;
  color: var(--text-soft);
  font-size: 1rem;
  line-height: 1.5;
}

.example-usage__flow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.example-panel {
  margin: 0;
  flex: 1 1 280px;
  max-width: min(100%, 360px);
}

@media (min-width: 901px) {
  .example-usage__flow {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 1.5rem 2rem;
    max-width: 920px;
    margin-inline: auto;
    align-items: center;
  }

  .example-panel {
    flex: none;
    max-width: none;
    width: 100%;
  }
}

.example-panel__label {
  display: block;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--violet);
  margin-bottom: 0.65rem;
}

.example-panel__media {
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--mist);
  box-shadow:
    0 12px 32px rgba(91, 74, 99, 0.12),
    inset 0 0 0 1px rgba(197, 152, 248, 0.15);
  aspect-ratio: 3 / 4;
}

.example-panel__media img,
.example-panel__media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.example-panel--video .example-panel__media {
  box-shadow:
    0 12px 32px rgba(168, 119, 234, 0.2),
    inset 0 0 0 1px rgba(168, 119, 234, 0.25);
}

.example-usage__arrow {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--peach), var(--violet));
  box-shadow: 0 8px 22px rgba(168, 119, 234, 0.3);
}

.example-usage__arrow-icon {
  color: white;
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.gallery-item {
  border-radius: var(--radius-md);
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  position: relative;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.gallery-item span {
  position: absolute;
  left: 0.75rem;
  bottom: 0.75rem;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: rgba(255, 250, 245, 0.9);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--violet);
}

.cta-band {
  margin-top: 3rem;
  padding: 2rem;
  border-radius: var(--radius-lg);
  text-align: center;
  background: linear-gradient(135deg, rgba(255, 165, 107, 0.2), rgba(168, 119, 234, 0.22));
  border: 1px solid rgba(168, 119, 234, 0.2);
}

.cta-band h3 {
  margin: 0 0 0.5rem;
  font-size: 1.5rem;
}

.cta-band p {
  margin: 0 0 1.25rem;
  color: var(--text-soft);
}

.cta-band .download-label {
  margin: 0 0 1rem;
  font-weight: 800;
  font-size: 1rem;
  color: var(--text);
}

.cta-band .store-buttons {
  justify-content: center;
}

.store-buttons--hero {
  margin-bottom: 0.15rem;
}

.hero-secondary-action {
  margin-top: 1.35rem;
}

.site-footer {
  padding: 2rem 0 2.5rem;
  background: var(--text);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.9rem;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.footer-links {
  display: flex;
  gap: 1.25rem;
}

.footer-links a:hover {
  color: white;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.55s ease, transform 0.55s ease;
}

.reveal.visible {
  opacity: 1;
  transform: none;
}

@media (max-width: 900px) {
  .container {
    width: min(100% - 1.25rem, var(--max));
  }

  /* Header: icon + short name, lang, menu — no duplicate Download CTA */
  .site-header {
    padding: 0.55rem 0;
  }

  .site-header .container {
    position: relative;
    gap: 0.5rem;
  }

  .brand {
    flex: 1 1 auto;
    min-width: 0;
    font-size: 1rem;
  }

  .brand__full {
    display: none;
  }

  .brand__stack {
    display: flex;
  }

  .header-actions .btn-primary {
    display: none;
  }

  .lang-select {
    max-width: 7.5rem;
    font-size: 0.72rem;
    padding-right: 1.5rem;
  }

  .nav-links {
    display: none;
    position: absolute;
    top: calc(100% + 0.35rem);
    left: 0.625rem;
    right: 0.625rem;
    flex-direction: column;
    align-items: stretch;
    background: var(--cream);
    padding: 0.75rem;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow);
    min-width: 0;
    z-index: 110;
  }

  .nav-links li a {
    display: block;
    padding: 0.65rem 0.75rem;
    border-radius: 10px;
  }

  .nav-links li a:hover {
    background: rgba(168, 119, 234, 0.08);
  }

  .nav-links.open {
    display: flex;
  }

  .menu-toggle {
    display: grid;
    place-items: center;
  }

  /* Hero */
  .hero {
    padding: 5.25rem 0 2.5rem;
    min-height: auto;
  }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
    text-align: center;
  }

  .hero-copy .lead {
    margin-inline: auto;
  }

  .hero-copy .store-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .hero-copy .store-btn {
    width: 100%;
    min-width: 178px;
    max-width: none;
    justify-content: flex-start;
    box-sizing: border-box;
  }

  .cta-band .store-buttons {
    display: grid;
    grid-template-columns: 1fr;
    width: fit-content;
    max-width: 100%;
    margin-inline: auto;
  }

  .cta-band .store-btn {
    width: 100%;
    min-width: 178px;
    box-sizing: border-box;
  }

  .hero-actions,
  .hero-secondary-action {
    justify-content: center;
  }

  .hero-secondary-action {
    margin-top: 1.35rem;
    margin-bottom: 0;
  }

  .hero-copy .btn-ghost {
    width: 100%;
    max-width: 340px;
    justify-content: center;
  }

  .hero-copy .badge-row {
    justify-content: center;
    gap: 0.4rem;
    max-width: 340px;
    margin-inline: auto;
    margin-top: 1.35rem;
  }

  .hero-copy .chip {
    font-size: 0.75rem;
    padding: 0.35rem 0.6rem;
  }

  .phone {
    width: min(100%, 280px);
  }

  .steps,
  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .example-usage__flow {
    flex-direction: column;
  }

  .example-usage__arrow {
    transform: rotate(90deg);
  }

  .example-panel {
    flex: 1 1 100%;
    max-width: min(100%, 340px);
    width: 100%;
  }
}

@media (max-width: 380px) {
  .brand__title {
    font-size: 0.92rem;
  }

  .brand__subtitle {
    font-size: 0.58rem;
  }

  .hero-copy h1 {
    font-size: 1.75rem;
  }

  .hero-copy .chip {
    flex: 1 1 calc(50% - 0.25rem);
    justify-content: center;
    text-align: center;
  }
}
