:root {
  --bg: #ffffff;
  --surface: #f4f3fa;
  --line: #e8e6f2;
  --text: #14121f;
  --muted: #5e5b6e;
  --accent: #6c4dff;
  --on-accent: #ffffff;
  --hero-soft: #eeeaff;
  --tint: #ddd5ff;
  --android: #3ddc84;
  --coral: #ff5c7a;
  --lime: #c6f432;
  --yellow: #ffd60a;

  --display: "Space Grotesk", sans-serif;
  --gutter: 16px;
  --phone-scale: 0.6667;
}

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", system-ui, sans-serif;
  -webkit-text-size-adjust: 100%;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.page {
  overflow: hidden;
}

.wrap {
  max-width: 1440px;
  margin-inline: auto;
}

.site-header {
  height: 64px;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--display);
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -1px;
  color: var(--text);
  text-decoration: none;
}

.header-cta {
  height: 44px;
  padding: 0 18px;
  border-radius: 22px;
  background: var(--text);
  color: var(--bg);
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  display: flex;
  align-items: center;
}

.store-buttons {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.store-button {
  height: 60px;
  padding: 0 28px 0 24px;
  border-radius: 30px;
  font-family: var(--display);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.3px;
  text-decoration: none;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.store-button svg {
  flex-shrink: 0;
  fill: currentColor;
}

.store-button.iphone {
  background: var(--text);
  color: var(--bg);
}

.store-button.android {
  background: var(--android);
  color: var(--text);
}

.bubble {
  position: absolute;
  display: flex;
}

.bubble > span {
  width: var(--size);
  height: var(--size);
  border-radius: 50%;
  background: var(--fill);
  font-size: calc(var(--size) / 2);
  transform: rotate(var(--tilt));
  box-shadow: 0 8px 20px rgba(20, 18, 31, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero {
  position: relative;
  overflow: hidden;
  margin: 0 var(--gutter);
  border-radius: 28px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 32px 24px 0;
  display: flex;
  flex-direction: column;
  gap: 32px;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.hero h1 {
  font-family: var(--display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -2.5px;
  line-height: 0.95;
}

.hero-copy p {
  font-size: 18px;
  line-height: 1.4;
  color: var(--hero-soft);
}

.hero .store-buttons {
  align-self: stretch;
  margin-top: 8px;
}

/* The phone is taller than the stage on small screens, so the hero crops its lower part. */
.phone-stage {
  position: relative;
  align-self: center;
  width: 276px;
  height: 428px;
}

.phone {
  width: 276px;
  height: 579px;
  border: 8px solid var(--text);
  border-radius: 40px;
  overflow: hidden;
  background: var(--bg);
  transform: rotate(3deg);
}

.bubble.fire {
  --size: 64px;
  --fill: var(--yellow);
  --tilt: 12deg;
  right: -33px;
  top: -44px;
}

.bubble.heart {
  --size: 64px;
  --fill: var(--lime);
  --tilt: -14deg;
  left: -37px;
  top: 108px;
}

.bubble.pizza {
  --size: 72px;
  --fill: var(--coral);
  --tilt: -10deg;
  right: -37px;
  top: 248px;
}

.bubble.laugh,
.push-card {
  display: none;
}

.screen {
  width: 390px;
  height: 844px;
  position: relative;
  overflow: hidden;
  transform: scale(var(--phone-scale));
  transform-origin: top left;
  background: var(--bg);
  color: var(--text);
  padding: 58px 16px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.screen-title {
  height: 44px;
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -1px;
  line-height: 1;
}

.screen-day {
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

.screen-row {
  height: 60px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.screen-row + .screen-row {
  border-top: 1px solid var(--line);
}

.screen-row img,
.screen-row .group,
.screen-row .generated {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.screen-row img,
.screen-row .generated {
  border-radius: 50%;
  object-fit: cover;
}

.screen-row .group {
  border-radius: 12px;
  background: var(--surface);
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-row .generated {
  background: #8ee3ae;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.screen-row .generated i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  background: var(--text);
}

.screen-row .what {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 16px;
}

.screen-row .what.to-you {
  font-weight: 600;
}

.screen-row .what small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.screen-row .emojis {
  font-size: 24px;
  line-height: 1;
}

.screen-row .poke-back {
  height: 44px;
  padding: 0 16px;
  border-radius: 22px;
  background: var(--accent);
  color: var(--on-accent);
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

.screen-note {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}

.screen-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 84px;
  padding: 8px 24px 26px;
  background: var(--bg);
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  justify-items: center;
}

.screen-tabs svg {
  fill: none;
  stroke: var(--muted);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.screen-tabs .current {
  width: 64px;
  height: 36px;
  border-radius: 18px;
  background: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
}

.screen-tabs .current svg {
  stroke: var(--on-accent);
}

.screen-tabs img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

.ticker {
  margin: 56px -20px 0;
  height: 64px;
  background: var(--text);
  color: var(--bg);
  transform: rotate(-3deg);
  overflow: hidden;
  display: flex;
  align-items: center;
  font-family: var(--display);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.3px;
  white-space: nowrap;
}

.ticker-track,
.ticker-track > div {
  display: flex;
}

.ticker-track {
  width: max-content;
}

.ticker-track span {
  padding: 0 16px;
}

.features {
  padding: 56px var(--gutter) 0;
}

.features h2 {
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.1;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.feature {
  min-height: 210px;
  border-radius: 24px;
  background: var(--fill);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
}

.feature.on-accent {
  color: var(--on-accent);
}

.feature .emoji {
  align-self: flex-start;
  font-size: 56px;
  line-height: 1;
  transform: rotate(var(--tilt));
}

.feature .emoji.five {
  margin-top: 14px;
  font-size: 28px;
  letter-spacing: -3px;
  white-space: nowrap;
}

.feature h3 {
  margin-bottom: 2px;
  font-family: var(--display);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.4px;
}

.feature p {
  font-size: 14px;
  line-height: 1.4;
}

.get {
  padding: 56px var(--gutter);
  display: flex;
  flex-direction: column;
  gap: 24px;
  text-align: center;
}

.get h2 {
  font-family: var(--display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -1.8px;
  line-height: 1;
}

.site-footer {
  margin: 0 var(--gutter);
  padding: 24px 0;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column-reverse;
  gap: 8px;
  font-size: 14px;
  color: var(--muted);
}

.site-footer nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.site-footer a {
  height: 44px;
  display: flex;
  align-items: center;
  font-size: 15px;
  color: var(--text);
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
}

.contact-hero {
  position: relative;
  overflow: hidden;
  margin: 0 var(--gutter);
  border-radius: 28px;
  background: var(--accent);
  color: var(--on-accent);
  padding: 40px 24px 56px;
  display: flex;
  flex-direction: column;
  gap: 48px;
}

.contact-copy {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 16px;
}

.contact-hero h1 {
  font-family: var(--display);
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 0.95;
}

.contact-copy p {
  max-width: 22em;
  font-size: 18px;
  line-height: 1.4;
  color: var(--hero-soft);
}

.contact-copy .store-button {
  margin-top: 8px;
  max-width: 100%;
  font-size: clamp(15px, 4.6vw, 19px);
}

.note-stack {
  position: relative;
  align-self: center;
  width: min(100%, 290px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.note-card {
  border-radius: 20px;
  background: var(--bg);
  color: var(--text);
  padding: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(20, 18, 31, 0.28);
  transform: translateX(var(--shift)) rotate(var(--tilt));
}

.note-card .icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: var(--fill);
  font-size: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.note-card .text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  font-size: 16px;
  font-weight: 600;
}

.note-card small {
  font-size: 13px;
  font-weight: 400;
  color: var(--muted);
}

.bubble.mail {
  --size: 72px;
  --fill: var(--yellow);
  --tilt: 12deg;
  right: -12px;
  top: -44px;
}

.bubble.wave {
  --size: 64px;
  --fill: var(--lime);
  --tilt: -14deg;
  right: -8px;
  bottom: -48px;
}

.reasons {
  padding: 12px var(--gutter) 56px;
}

.reasons .feature {
  min-height: 0;
}

.reasons .feature-grid {
  grid-template-columns: minmax(0, 1fr);
}

@media (min-width: 600px) {
  .reasons .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .contact-hero {
    overflow: visible;
    margin: 0 var(--gutter);
    min-height: 560px;
    border-radius: 40px;
    padding: 72px clamp(40px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 64px;
  }

  .contact-copy {
    gap: 24px;
  }

  .contact-hero h1 {
    font-size: clamp(72px, 8vw, 120px);
    line-height: 0.92;
  }

  .contact-copy p {
    font-size: 24px;
  }

  .note-stack {
    width: 320px;
    gap: 28px;
  }

  .bubble.mail {
    --size: 104px;
    right: -56px;
    top: -88px;
  }

  .bubble.wave {
    --size: 88px;
    left: -72px;
    right: auto;
    bottom: -72px;
  }

  .reasons {
    padding: 16px var(--gutter) 96px;
  }

  .reasons .feature {
    min-height: 220px;
  }
}

a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.hero a:focus-visible {
  outline-color: var(--bg);
}

@keyframes wiggle {
  20% {
    transform: rotate(-16deg) scale(1.2);
  }
  50% {
    transform: rotate(12deg) scale(1.2);
  }
  80% {
    transform: rotate(-6deg) scale(1.1);
  }
}

@media (hover: hover) and (prefers-reduced-motion: no-preference) {
  .store-button,
  .header-cta {
    transition: transform 0.25s cubic-bezier(0.34, 1.8, 0.64, 1), box-shadow 0.25s ease;
  }

  .store-button:hover {
    transform: translateY(-4px) rotate(-2deg) scale(1.05);
    box-shadow: 0 12px 24px rgba(20, 18, 31, 0.28);
  }

  .store-button.android:hover {
    transform: translateY(-4px) rotate(2deg) scale(1.05);
  }

  .store-button:hover svg {
    animation: wiggle 0.6s ease-in-out;
  }

  .header-cta:hover {
    transform: rotate(-3deg) scale(1.06);
  }

  .store-button:active,
  .header-cta:active {
    transform: scale(0.95);
    transition-duration: 0.08s;
  }
}

@keyframes slide {
  to {
    transform: translateX(-50%);
  }
}

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

@media (prefers-reduced-motion: no-preference) {
  .ticker-track {
    animation: slide 30s linear infinite;
  }

  .bubble {
    animation: bob 4s ease-in-out infinite;
  }

  .bubble.pizza,
  .bubble.heart {
    animation: bob 5s ease-in-out -2s infinite;
  }
}

@media (min-width: 600px) {
  :root {
    --gutter: 32px;
  }

  .store-buttons {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .get .store-buttons {
    justify-content: center;
  }

  .feature-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .site-footer nav {
    display: flex;
    gap: 32px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: clamp(64px, 11.1vw, 160px);
    --phone-scale: 0.7692;
  }

  .site-header {
    height: 88px;
  }

  .wordmark {
    font-size: 30px;
  }

  .header-cta {
    padding: 0 20px;
  }

  .hero {
    overflow: visible;
    margin: 0 var(--gutter);
    min-height: 720px;
    border-radius: 40px;
    padding: 24px clamp(40px, 5vw, 72px);
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 40px;
  }

  .hero-copy {
    gap: 24px;
  }

  .hero h1 {
    font-size: clamp(56px, 6.6vw, 104px);
    letter-spacing: -0.035em;
    line-height: 0.92;
  }

  .hero-copy p {
    font-size: 24px;
  }

  .hero .store-buttons {
    align-self: auto;
  }

  .phone-stage {
    width: 320px;
    height: 670px;
    margin-left: clamp(40px, 6vw, 100px);
  }

  .phone {
    width: 320px;
    height: 670px;
    border-width: 10px;
    border-radius: 44px;
  }

  .bubble > span {
    box-shadow: 0 12px 28px rgba(20, 18, 31, 0.25);
  }

  .bubble.fire {
    --size: 96px;
    right: -48px;
    top: 24px;
  }

  .bubble.pizza {
    --size: 112px;
    right: -64px;
    top: auto;
    bottom: 120px;
  }

  .bubble.heart {
    --size: 88px;
    left: -96px;
    top: auto;
    bottom: 60px;
  }

  .bubble.laugh {
    --size: 80px;
    --fill: var(--bg);
    --tilt: -8deg;
    display: flex;
    left: 44%;
    top: 56px;
  }

  .push-card {
    position: absolute;
    left: -150px;
    top: 96px;
    width: 280px;
    border-radius: 20px;
    background: var(--bg);
    color: var(--text);
    padding: 12px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 16px 40px rgba(20, 18, 31, 0.28);
    transform: rotate(-4deg);
  }

  .push-card .icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: var(--accent);
    font-size: 20px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .push-card .text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    font-size: 16px;
    font-weight: 600;
  }

  .push-card small {
    font-size: 13px;
    font-weight: 400;
    color: var(--muted);
  }

  .ticker {
    margin: 96px -40px 0;
    height: 88px;
    transform: rotate(-2deg);
    font-size: 30px;
    letter-spacing: -0.5px;
  }

  .ticker-track span {
    padding: 0 32px;
  }

  .features {
    padding-top: 96px;
  }

  .features h2 {
    margin-bottom: 40px;
    font-size: 56px;
    letter-spacing: -2px;
  }

  .feature-grid {
    gap: 16px;
  }

  .feature {
    min-height: 260px;
    border-radius: 32px;
    padding: 32px;
  }

  .feature .emoji {
    font-size: 88px;
  }

  .feature .emoji.five {
    margin-top: 16px;
    font-size: clamp(40px, 3.9vw, 56px);
    letter-spacing: -6px;
  }

  .feature h3 {
    margin-bottom: 4px;
    font-size: 28px;
    letter-spacing: -0.8px;
  }

  .feature p {
    font-size: 16px;
  }

  .get {
    padding-block: 96px;
    align-items: center;
    gap: 32px;
  }

  .get h2 {
    font-size: 80px;
    letter-spacing: -3px;
  }

  .site-footer {
    padding: 32px 0;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
  }

  .site-footer a {
    height: auto;
  }

  @media (prefers-reduced-motion: no-preference) {
    .ticker-track {
      animation-duration: 36s;
    }
  }
}
