:root {
  --text: #5c4245;
  --muted: #8a6f72;
  --rose: #e8738f;
  --rose-deep: #c24468;
  --pink: #f5d4db;
  --green: #5eae87;
  --green-deep: #3a8562;
  --pale-green: #cfe8db;
  --cream: #fff5f0;
  --focus-top: #ffe0e8;
  --break-top: #e6f2ed;
  --card: #fffaf8;
  --round: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: ui-rounded, "SF Pro Rounded", "Arial Rounded MT Bold", "Nunito", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--round);
  font-size: 18px;
  line-height: 1.55;
  color: var(--text);
  background: var(--cream);
}

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

a { color: var(--rose-deep); text-underline-offset: 3px; }
a:hover { color: var(--text); }

:focus-visible { outline: 3px solid var(--rose-deep); outline-offset: 3px; border-radius: 6px; }

h1, h2, h3, .wordmark, .clock, .pill { font-family: var(--display); }
h1, h2, h3 { line-height: 1.15; margin: 0; text-wrap: balance; }
p { margin: 0; }

.wrap { width: min(1080px, 100% - 40px); margin-inline: auto; }

/* Header */
.top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 0;
}
.wordmark {
  font-size: 28px; font-weight: 800; letter-spacing: -0.01em;
  color: var(--text); text-decoration: none;
  display: inline-flex; align-items: center; gap: 12px;
}
.wordmark img { width: 40px; height: 40px; border-radius: 10px; }
.wordmark span span { color: var(--rose); }
.top nav { display: flex; gap: 22px; font-weight: 600; font-size: 16px; }
.top nav a { color: var(--text); text-decoration: none; }
.top nav a:hover { color: var(--rose-deep); }

/* Hero */
.hero-band { background: linear-gradient(var(--focus-top), var(--cream)); }
.hero-band.break { background: linear-gradient(var(--break-top), var(--cream)); }
.hero {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 48px;
  align-items: center; padding: 36px 0 84px;
}
.hero h1 { font-size: clamp(38px, 5.6vw, 62px); font-weight: 800; letter-spacing: -0.02em; }
.hero .lead { font-size: 21px; margin-top: 22px; max-width: 30em; }
.soon {
  display: inline-flex; align-items: center; gap: 12px;
  margin-top: 30px; padding: 12px 20px 12px 12px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 6px 22px rgba(92, 66, 69, 0.10);
  font-weight: 700; line-height: 1.25;
}
.soon img { width: 48px; height: 48px; border-radius: 12px; }
.soon small { display: block; font-weight: 500; color: var(--muted); font-size: 15px; }
.hero .note { margin-top: 16px; font-size: 16px; color: var(--muted); }

/* Demo timer */
.demo {
  background: rgba(255, 255, 255, 0.55);
  border-radius: 36px; padding: 28px 28px 30px;
  text-align: center; max-width: 400px; width: 100%; justify-self: center;
  box-shadow: 0 10px 40px rgba(92, 66, 69, 0.10);
}
.ring { position: relative; width: min(300px, 100%); aspect-ratio: 1; margin: 0 auto; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 9; }
.ring .track { stroke: var(--pink); }
.ring .bar { stroke: var(--rose); stroke-linecap: round; transition: stroke 0.4s; }
.ring .disc { fill: var(--card); stroke: none; }
.demo.is-done .ring .track { stroke: var(--pale-green); }
.demo.is-done .ring .bar { stroke: var(--green); }
.ring .pose {
  position: absolute; inset: 14%; width: 72%; height: 72%;
  object-fit: contain; opacity: 0; transition: opacity 0.6s;
}
.ring .pose.on { opacity: 1; }
.demo .clock {
  font-size: 56px; font-weight: 800; letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums; margin-top: 14px; line-height: 1.1;
}
.demo .status { color: var(--muted); min-height: 1.6em; }
.pill {
  font-weight: 700; font-size: 18px;
  display: inline-block; width: 100%; min-height: 54px; margin-top: 18px;
  border: 0; border-radius: 999px; padding: 12px 24px;
  background: var(--rose); color: #fff; cursor: pointer;
  text-shadow: 0 1px 1px rgba(150, 40, 70, 0.35);
}
.pill:hover { filter: brightness(0.96); }
.pill:active { opacity: 0.75; }
.demo.is-done .pill { background: var(--green); text-shadow: 0 1px 1px rgba(30, 90, 60, 0.35); }
.demo .hint { font-size: 14px; color: var(--muted); margin-top: 12px; }

/* Sections */
section { padding: 72px 0; }
section > .wrap > h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; letter-spacing: -0.015em; }
section > .wrap > .sub { margin-top: 14px; max-width: 36em; font-size: 19px; }

/* Sleepiness stages */
.stages {
  list-style: none; padding: 0; margin: 44px 0 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.stages li { text-align: center; }
.stages .bubble {
  aspect-ratio: 1; border-radius: 50%; background: #fff;
  border: 6px solid var(--pink); display: grid; place-items: center;
}
.stages li:nth-child(2) .bubble { border-color: #f1b9c6; }
.stages li:nth-child(3) .bubble { border-color: #ec96ab; }
.stages li:nth-child(4) .bubble { border-color: var(--rose); }
.stages img { width: 74%; }
.stages p { margin-top: 14px; font-weight: 600; }
.stages small { display: block; color: var(--muted); font-weight: 500; font-size: 15px; }

/* Screens */
.band-green { background: linear-gradient(var(--cream), var(--break-top) 30%, var(--break-top) 70%, var(--cream)); }
.screens { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; margin-top: 48px; }
.screens figure { margin: 0; text-align: center; }
.phone {
  border-radius: 34px; overflow: hidden; background: #fff;
  border: 7px solid #4a3639; box-shadow: 0 14px 36px rgba(92, 66, 69, 0.18);
  max-width: 260px; margin-inline: auto;
}
.screens figcaption { margin-top: 20px; }
.screens h3 { font-size: 21px; font-weight: 800; }
.screens figcaption p { margin-top: 6px; font-size: 16.5px; color: var(--muted); }

/* Free / paid */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 44px; }
.plan { background: #fff; border-radius: 28px; padding: 32px; box-shadow: 0 6px 24px rgba(92, 66, 69, 0.07); }
.plan.paid { background: linear-gradient(#ffe6ec, #fff7f4); }
.plan h3 { font-size: 26px; font-weight: 800; }
.plan .tag { color: var(--muted); margin-top: 6px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; }
.plan li { padding: 7px 0 7px 34px; position: relative; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 11px; width: 21px; height: 21px; border-radius: 50%;
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5.5 10.5l3 3 6-7' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.plan.paid li::before { background-color: var(--rose); }
.plan li.later::before { background: var(--pink); }
.plan li em {
  font-style: normal; font-size: 13px; font-weight: 700; color: var(--rose-deep);
  background: #fbdfe6; border-radius: 999px; padding: 2px 10px; margin-left: 8px; white-space: nowrap;
}
.plan .fine { margin-top: 20px; font-size: 16px; color: var(--muted); }

/* About Lizi */
.about { display: grid; grid-template-columns: 300px 1fr; gap: 48px; align-items: center; }
.about .portrait { border-radius: 50%; background: var(--pale-green); aspect-ratio: 1; display: grid; place-items: center; }
.about .portrait img { width: 78%; }
.about h2 { font-size: clamp(30px, 4vw, 42px); font-weight: 800; }
.about p { margin-top: 16px; max-width: 34em; }

/* Footer */
footer { padding: 40px 0 56px; border-top: 2px solid var(--pink); font-size: 16px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 28px; justify-content: space-between; }
footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* Text pages */
.doc { padding: 24px 0 80px; max-width: 720px; }
.doc h1 { font-size: clamp(34px, 5vw, 46px); font-weight: 800; }
.doc .updated { color: var(--muted); margin-top: 10px; font-size: 16px; }
.doc h2 { font-size: 24px; font-weight: 800; margin-top: 40px; }
.doc p, .doc ul { margin-top: 14px; }
.doc ul { padding-left: 22px; }
.doc li { margin-top: 6px; }
.doc .card { background: #fff; border-radius: 22px; padding: 24px 26px; margin-top: 28px; box-shadow: 0 6px 24px rgba(92, 66, 69, 0.07); }
.doc .card h2 { margin-top: 0; }

@media (max-width: 860px) {
  body { font-size: 17px; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding: 16px 0 56px; }
  .stages { grid-template-columns: repeat(2, 1fr); gap: 28px 18px; }
  .screens { grid-template-columns: 1fr; gap: 44px; }
  .plans { grid-template-columns: 1fr; }
  .about { grid-template-columns: 1fr; gap: 28px; }
  .about .portrait { max-width: 240px; }
  section { padding: 52px 0; }
  .top nav { gap: 16px; font-size: 15px; }
  .plan { padding: 26px 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring .pose, .ring .bar { transition: none; }
}
