/* Voice-first positioning on top of the production Watermelon design system. */

.nav__inner,
.hero__grid,
.feature,
.feature__body,
.feature__media {
  min-width: 0;
}

main > .wrap,
.ribbon-wrap {
  width: 100%;
  max-width: var(--maxw);
}

.section-pad.wrap > .feature,
.section-pad.wrap > .centered-feature {
  width: 100%;
}

/* Several production sections reveal as one parent. Their directional child
   classes should not keep a permanent ±34px transform after that reveal. */
.feature > .feature__body.reveal-left:not(.reveal),
.feature > .feature__body.reveal-right:not(.reveal),
.feature > .feature__media.reveal-left:not(.reveal),
.feature > .feature__media.reveal-right:not(.reveal) {
  transform: none;
}

.hero__copy {
  position: relative;
  z-index: 2;
}

.hero__actions {
  gap: 0;
}

/* Utility controls stay available without competing with the primary CTA. */
.nav__tools {
  gap: 4px;
}

.lang-menu {
  position: relative;
  display: grid;
  place-items: center;
}

.lang-menu__trigger {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  cursor: pointer;
  opacity: 0.55;
  transition: background-color 0.2s var(--ease-snap), opacity 0.2s var(--ease-snap);
}

.lang-menu__trigger:hover,
.lang-menu__trigger[aria-expanded="true"] {
  background: var(--mist);
  opacity: 0.9;
}

.lang-menu__trigger:focus-visible {
  outline: 2px solid var(--flesh);
  outline-offset: 2px;
}

.lang-menu__trigger img {
  width: 15px;
  height: 15px;
}

.lang-menu__list {
  position: absolute;
  z-index: 20;
  top: calc(100% + 9px);
  right: 0;
  width: 158px;
  padding: 6px;
  border: 0.75px solid var(--whisper);
  border-radius: 12px;
  background: color-mix(in srgb, var(--paper) 96%, transparent);
  box-shadow: var(--elev-card);
  backdrop-filter: blur(18px);
}

.lang-menu__list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  padding: 7px 9px;
  border-radius: 8px;
  color: var(--pith);
  font-size: 0.78rem;
  font-weight: 500;
  text-decoration: none;
}

.lang-menu__list a:hover,
.lang-menu__list a:focus-visible {
  background: var(--mist);
  color: var(--ink);
  outline: none;
}

.lang-menu__list a[aria-current="true"] {
  color: var(--ink);
}

.lang-menu__list a[aria-current="true"] span::before {
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 7px;
  border-radius: 50%;
  background: var(--flesh);
  content: "";
  vertical-align: 1px;
}

.lang-menu__list small {
  color: var(--pith);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  opacity: 0.72;
}

.nav__tools .icon-btn {
  width: 30px;
  height: 30px;
  border: 0;
  background: transparent;
  color: var(--pith);
  opacity: 0.55;
}

.nav__tools .icon-btn:hover {
  background: var(--mist);
  color: var(--ink);
  opacity: 0.9;
  transform: none;
}

.nav__tools .icon-btn svg {
  width: 15px;
  height: 15px;
}

/* The brand object itself is the interaction: no duplicate mini-interface. */
.hero-concept {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: min(100%, 460px);
  min-height: 470px;
  margin-inline: auto;
  isolation: isolate;
}

.hero-concept::before {
  position: absolute;
  z-index: -1;
  inset: 12% 8% 18%;
  background: radial-gradient(circle at 50% 48%, var(--flesh-15), transparent 65%);
  content: "";
  filter: blur(10px);
}

.hero-melon-hold {
  position: relative;
  display: grid;
  place-items: center;
  width: min(78%, 340px);
  aspect-ratio: 1;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  touch-action: none;
  -webkit-tap-highlight-color: transparent;
}

.hero-melon-hold img {
  position: relative;
  z-index: 2;
  display: block;
  width: 82%;
  height: auto;
  filter: drop-shadow(0 24px 28px var(--shadow-lifted));
  transition:
    transform var(--dur-snap) var(--ease-snap),
    filter var(--dur-standard) var(--ease-standard);
}

.hero-melon-hold__pulse {
  position: absolute;
  z-index: 1;
  width: 66%;
  aspect-ratio: 1;
  border: 1px solid var(--flesh-35);
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.82);
  transition:
    opacity var(--dur-standard) var(--ease-standard),
    transform var(--dur-standard) var(--ease-standard);
}

.hero-melon-hold:hover img {
  transform: translateY(-3px);
}

.hero-melon-hold:focus-visible {
  border-radius: var(--r-xl);
  outline: 2px solid var(--flesh);
  outline-offset: 8px;
}

.hero-concept.is-listening .hero-melon-hold img {
  filter: drop-shadow(0 24px 34px var(--flesh-35));
  transform: scale(0.975);
}

.hero-concept.is-listening .hero-melon-hold__pulse {
  opacity: 1;
  transform: scale(1);
}

.hero-concept.is-complete .hero-melon-hold__pulse {
  border-color: var(--rind);
  opacity: 0.7;
  transform: scale(1.08);
}

.hero-concept__gesture {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  margin: -22px 0 0;
  color: var(--pith);
  font: 600 0.7rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-concept__gesture svg {
  width: 15px;
  height: 15px;
  color: var(--flesh);
}

.hero-concept__status {
  margin: 8px 0 0;
  color: var(--pith);
  font: 600 0.66rem/1.4 var(--font-mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-concept.is-listening .hero-concept__gesture,
.hero-concept.is-listening .hero-concept__status {
  color: var(--flesh);
}

.hero-concept.is-complete .hero-concept__gesture,
.hero-concept.is-complete .hero-concept__status {
  color: var(--rind);
}

/* Simplified output in the explanatory capture section. */
.simple-result-lines {
  display: grid;
  gap: 10px;
  width: min(100%, 300px);
  margin: 12px auto 0;
}

.simple-result-lines i {
  display: block;
  height: 14px;
  border-radius: var(--r-pill);
  background: var(--whisper);
  transition: background var(--dur-standard) var(--ease-standard);
}

.simple-result-lines i:nth-child(2) {
  width: 84%;
}

.simple-result-lines i:nth-child(3) {
  width: 68%;
}

.capture-demo.playing .simple-result-lines i {
  background: color-mix(in srgb, var(--rind) 42%, var(--whisper));
}

/* A real diary preview: one spoken note anchored in the day's event trail. */
.diary-preview {
  width: min(100%, 420px);
}

.diary-preview__date {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--whisper);
  color: var(--pith);
  font: 600 0.68rem/1.4 var(--font-mono);
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.diary-preview__date time {
  color: var(--ink);
  letter-spacing: 0.03em;
}

/* The simulator capture already includes the real Dynamic Island. */
.phone--lead::before {
  display: none;
}

.diary-preview .timeline::before {
  bottom: 12px;
}

#progress .wmstack {
  opacity: 0.9;
}

@media (prefers-reduced-motion: no-preference) {
  .hero-melon-hold img {
    animation: voiceMelonFloat 7.5s var(--ease-standard) infinite;
  }

  .hero-concept.is-listening .hero-melon-hold__pulse {
    animation: holdPulse 1.15s var(--ease-standard) infinite alternate;
  }

  @keyframes voiceMelonFloat {
    0%,
    100% {
      translate: 0 0;
    }

    50% {
      translate: 0 -6px;
    }
  }

  @keyframes holdPulse {
    from {
      opacity: 0.45;
      transform: scale(0.92);
    }

    to {
      opacity: 1;
      transform: scale(1.06);
    }
  }
}

@media (max-width: 879px) {
  .hero-concept {
    min-height: 390px;
    margin-top: -14px;
  }

  .hero-melon-hold {
    width: min(70%, 300px);
  }
}

@media (min-width: 880px) and (max-width: 1100px) {
  .hero__grid {
    grid-template-columns: minmax(0, 1.22fr) minmax(290px, 0.78fr);
    gap: 28px;
  }

  .hero h1 {
    font-size: clamp(3.65rem, 7vw, 4.45rem);
  }

  .hero-concept {
    min-height: 430px;
  }
}

@media (max-width: 560px) {
  .hero {
    padding-top: 36px;
  }

  .hero h1 {
    font-size: clamp(2.55rem, 12vw, 3.7rem);
  }

  .hero-concept {
    min-height: 340px;
  }

  .hero-melon-hold {
    width: min(72%, 250px);
  }

  .hero-concept__gesture {
    margin-top: -14px;
  }

  .diary-preview {
    padding: 20px;
  }
}
