/* Sayzly website styles, part 2 (loaded after styles.css): bubble mascot, pricing perks, lips section */
.brand img { width: 2.5rem; height: auto; }

/* hero headline: always exactly two lines, each kept whole; the size follows the column width */
@media (min-width: 861px) { .hero { grid-template-columns: 1.3fr 1fr; } }
.hero > div:first-child { container-type: inline-size; }
.hero h1 { white-space: nowrap; font-size: clamp(2.4rem, 6vw, 6rem); font-size: min(6rem, 15.5cqi); }

/* hero: the bubble talks while the key is held */
.stage { padding-top: 10.5rem; }
.speaker {
  left: -1.25rem; width: 14.5rem; overflow: visible;
  rotate: -6deg; transform-origin: 40% 80%;
}
.speaker .mouth-talk { opacity: 0; transform-box: fill-box; transform-origin: center; }
.talking .speaker { animation: bob 0.5s ease-in-out infinite alternate; }
.talking .speaker .mouth-smile { opacity: 0; }
.talking .speaker .mouth-talk { opacity: 1; animation: chat 0.24s ease-in-out infinite alternate; }
@keyframes bob { from { transform: translateY(0); } to { transform: translateY(-4px); } }
@keyframes chat { from { transform: scaleY(0.35); } to { transform: scaleY(1); } }
.window-bar { padding-left: 8rem; }

/* pricing: short perks under the headline */
.perks { list-style: none; padding: 0; margin: 1.25rem 0 0; display: grid; gap: 0.6rem; }
.perks li { display: flex; align-items: center; gap: 0.6rem; font-size: 1.2rem; font-weight: 600; }
.perks li::before {
  content: ""; flex: none; width: 1.35rem; height: 1.35rem; border-radius: 50%;
  border: 2px solid var(--fig);
  background: var(--marigold) no-repeat center / 0.8rem
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='M2.5 6.3l2.3 2.2 4.7-5' fill='none' stroke='%232B1D2F' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

/* hero box: one sentence on one line, the last word changes; a row of app logos underneath */
.window-body { padding-top: 1.6rem; min-height: 0; }
.typed { font-size: min(1.3rem, 2vw); line-height: 1.45; white-space: nowrap; margin: 0; }
.app-logos { list-style: none; margin: 1.25rem 0 0; padding: 0; display: flex; justify-content: space-between; gap: 0.5rem; }
.app-logos li { width: 22px; height: 22px; flex: none; transition: opacity 0.3s ease; }
.app-logos svg { display: block; width: 100%; height: 100%; }
.app-logos.focus li { opacity: 0.35; }
.app-logos.focus li.on { opacity: 1; }

/* demo video: a taped, slightly tilted photo card on a light-green band */
.demo-band { background: #E4EFD6; }
.demo-card { position: relative; background: var(--paper); border: 2px solid var(--fig); border-radius: 6px; padding: 0.9rem; rotate: -1.5deg; max-width: 56rem; margin-inline: auto; }
.demo-card::before { content: ""; position: absolute; top: -0.85rem; left: 50%; width: 7.5rem; height: 1.6rem; translate: -50% 0; rotate: 2deg; background: var(--marigold); opacity: 0.85; }
.demo-screen { position: relative; aspect-ratio: 16 / 9; border: 2px dashed var(--fig-soft); border-radius: 4px; overflow: hidden;
  background: repeating-linear-gradient(135deg, #F7FAF1 0 12px, #EDF3E3 12px 24px); }
.demo-play { position: absolute; inset: 50% auto auto 50%; translate: -50% -50%; width: 4.5rem; height: 4.5rem; border-radius: 50%; border: 2.5px solid var(--fig); background: var(--marigold); box-shadow: 3px 3px 0 var(--fig); display: grid; place-items: center; cursor: pointer; padding: 0; z-index: 1; }
.demo-play[aria-disabled="true"] { cursor: default; }
.demo-play svg { width: 1.9rem; height: 1.9rem; fill: var(--fig); margin-left: 0.2rem; }
.demo-screen video { position: absolute; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; background: var(--paper); }
.demo-screen.playing { border-style: solid; }
.demo-screen.playing .demo-play { display: none; }

/* speed section: three quiet columns */
#why h2 { max-width: none; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2.5rem; margin-top: 2.5rem; align-items: start; }
.stat { border-top: 1.5px solid var(--fig); padding-top: 1.1rem; }
.stat-icon { display: block; width: 1.5rem; height: 1.5rem; margin-bottom: 0.6rem; }
.stat-icon svg { width: 100%; height: 100%; fill: none; stroke: var(--fig); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.stat-icon img { width: 100%; height: auto; }
.stat h3 { font-family: var(--hand); font-size: 1.1rem; font-weight: 700; margin: 0 0 0.35rem; }
.stat-num { margin: 0; line-height: 1; max-width: none; }
.stat-num b { font-family: var(--serif); font-weight: 400; font-size: clamp(2.75rem, 5vw, 3.75rem); font-variant-numeric: tabular-nums; }
.stat-num small { font-size: 1rem; color: var(--fig-soft); margin-left: 0.2rem; }

/* last section: lips with words coming out */
.lips-wrap { position: relative; justify-self: center; width: 100%; max-width: 30rem; padding-right: 9rem; }
.lips-wrap img { width: 100%; max-width: none; height: auto; rotate: -4deg; }
.lips-wrap .w {
  position: absolute; white-space: nowrap;
  font-family: var(--hand); font-variation-settings: "INFM" 100; font-weight: 600;
  color: var(--fig); background: var(--paper);
  border: 2px solid var(--fig); border-radius: 999px;
  padding: 0.15rem 0.6rem; font-size: 0.95rem;
  box-shadow: 3px 3px 0 var(--marigold);
}
.lips-wrap .w1 { right: 4.5rem; top: 10%; rotate: -8deg; }
.lips-wrap .w2 { right: 0.5rem; top: 30%; rotate: 5deg; }
.lips-wrap .w3 { right: 1rem; top: 52%; rotate: -4deg; font-size: 0.85rem; }
.lips-wrap .w4 { right: 4rem; top: 72%; rotate: 7deg; font-size: 0.85rem; }
@media (prefers-reduced-motion: no-preference) {
  .lips-wrap .w { animation: drift 3.2s ease-in-out infinite alternate; }
  .lips-wrap .w2 { animation-delay: -0.8s; }
  .lips-wrap .w3 { animation-delay: -1.6s; }
  .lips-wrap .w4 { animation-delay: -2.4s; }
}
@keyframes drift { from { transform: translate(0, 0); } to { transform: translate(6px, -5px); } }

@media (max-width: 860px) {
  /* phones: the sentence may wrap; "in Gmail." gets its own line so a changing word never reflows the box */
  .typed { font-size: 1.2rem; white-space: normal; min-height: calc(2 * 1.45em); }
  .typed .tail { display: block; white-space: nowrap; }
  .app-logos li { width: 20px; height: 20px; }
  .stage { padding-top: 8.75rem; }
  .speaker { width: 12rem; left: -0.75rem; }
  .window-bar { padding-left: 6.5rem; }
  .lips-wrap { max-width: 24rem; padding-right: 7.5rem; }
  .stats { grid-template-columns: 1fr; gap: 1.75rem; }
  .demo-card { rotate: -0.75deg; padding: 0.6rem; }
  .demo-play { width: 3.75rem; height: 3.75rem; }
}
@media (max-width: 360px) {
  .typed { min-height: calc(3 * 1.45em); }
  .app-logos { gap: 0.25rem; }
  .app-logos li { width: 18px; height: 18px; }
}
