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

:root {
  --background: #f4f7ef;
  --ink: #252a23;
  --muted: #72796d;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
}

html {
  -webkit-font-smoothing: antialiased;
}

body {
  min-height: 100dvh;
  background:
    radial-gradient(circle at 50% 28%, rgba(218, 235, 198, 0.72), transparent 34%),
    var(--background);
  color: var(--ink);
  font-family: "Avenir Next", Avenir, ui-rounded, system-ui, sans-serif;
  font-weight: 500;
}

.page {
  min-height: calc(100dvh - 76px);
  overflow: clip;
}

.hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: clamp(72px, 12dvh, 132px) 24px 0;
  text-align: center;
}

.mark {
  display: flex;
  align-items: end;
  gap: 4px;
  height: 25px;
  margin-bottom: 22px;
  animation: rise 0.7s var(--ease-out) both;
}

.mark span {
  display: block;
  width: 8px;
  border-radius: 8px;
  background: var(--ink);
}

.mark span:nth-child(1) { height: 14px; transform: rotate(-13deg); }
.mark span:nth-child(2) { height: 24px; }
.mark span:nth-child(3) { height: 14px; transform: rotate(13deg); }

h1 {
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.045em;
  animation: rise 0.8s 0.05s var(--ease-out) both;
}

.lede {
  max-width: 520px;
  margin-top: 22px;
  color: var(--muted);
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.5;
  animation: rise 0.8s 0.1s var(--ease-out) both;
}

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 30px;
  padding: 14px 24px;
  border-radius: 999px;
  background: var(--ink);
  color: white;
  font-size: 14px;
  white-space: nowrap;
  animation: rise 0.8s 0.15s var(--ease-out) both;
}

.store-button svg {
  width: 15px;
  height: 18px;
  fill: currentColor;
}

.phone-stage {
  width: min(640px, 100vw);
  height: 570px;
  margin-top: 44px;
  overflow: hidden;
  animation: rise 1s 0.2s var(--ease-out) both;
}

.phone {
  position: relative;
  width: min(310px, 72vw);
  height: 630px;
  margin: 0 auto;
  padding: 12px;
  border: 2px solid rgba(37, 42, 35, 0.72);
  border-radius: 54px;
  background: #171b16;
  box-shadow: 0 38px 80px -30px rgba(42, 55, 32, 0.42);
  transform: rotate(1.8deg);
}

.speaker {
  position: absolute;
  top: 20px;
  left: 50%;
  z-index: 2;
  width: 84px;
  height: 24px;
  border-radius: 20px;
  background: #171b16;
  transform: translateX(-50%);
}

.screen {
  height: 100%;
  padding: 62px 22px 28px;
  overflow: hidden;
  border-radius: 43px;
  background:
    radial-gradient(circle at 22% 12%, rgba(255, 255, 255, 0.8), transparent 18%),
    linear-gradient(150deg, #e8f2db 0%, #cfe3b9 46%, #f0d9c6 100%);
}

.room-title {
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.people {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 34px;
}

.person {
  display: grid;
  aspect-ratio: 1;
  place-items: center;
  border: 2px solid rgba(255, 255, 255, 0.76);
  border-radius: 30px;
  box-shadow: inset 0 0 50px rgba(255, 255, 255, 0.25);
  color: white;
  font-size: 30px;
  font-weight: 600;
}

.person:first-child {
  grid-row: span 2;
}

.coral { background: #e39b84; }
.blue { background: #8eaeba; }
.green { background: #96b981; }

.status {
  margin-top: 30px;
  color: rgba(37, 42, 35, 0.68);
  font-size: 14px;
}

.controls {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 18px;
}

.controls i {
  display: block;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.76);
}

.controls .hangup {
  background: #df745f;
}

footer {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 26px 20px;
  color: var(--muted);
  font-size: 13px;
}

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

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

.legal {
  width: min(720px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0;
}

.legal h1 {
  margin-bottom: 30px;
}

.legal h2 {
  margin: 32px 0 10px;
  font-size: 20px;
}

.legal p,
.legal li {
  color: var(--muted);
  line-height: 1.65;
}

.legal a {
  color: var(--ink);
}

@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 560px) {
  .hero { padding-top: 62px; }
  .phone-stage { height: 500px; }
  footer { flex-wrap: wrap; gap: 14px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-delay: 0ms !important;
  }
}
