:root {
  color-scheme: light;
  --ink: #20182d;
  --muted: #5a5067;
  --purple: #5228a0;
  --purple-hover: #3c187e;
  --paper: #f8f5fc;
  --line: #ded5eb;
  --white: #fff;
  --display: "Songti SC", "Noto Serif SC", "SimSun", serif;
  --body: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --wrap: min(1200px, calc(100% - 104px));
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 1rem/1.7 var(--body); }
button, input { font: inherit; }
button, summary { cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; object-fit: cover; }
figure, p, h1, h2, h3 { margin: 0; }
:focus-visible { outline: 3px solid #7650bc; outline-offset: 4px; }
.wrap { width: var(--wrap); margin-inline: auto; }
.skip { position: fixed; z-index: 9; background: white; padding: 12px; inset: 8px auto auto 8px; transform: translateY(-160%); }
.skip:focus { transform: translateY(0); }
.header { position: sticky; top: 0; isolation: isolate; z-index: 5; background: #f8f5fcf5; border-bottom: 1px solid #e7dfef; backdrop-filter: blur(12px); }
.header-inner { min-height: 75px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; color: var(--ink); font-size: 1.52rem; font-weight: 760; letter-spacing: -.063em; line-height: 1; white-space: nowrap; }
.brand-mark { width: 19px; height: 19px; position: relative; margin-right: 9px; }
.brand-mark::before, .brand-mark::after { content: ""; border: 1.5px solid #5d35a2; width: 10px; height: 16px; border-radius: 52%; position: absolute; top: 1px; transform: rotate(43deg); }
.brand-mark::before { left: 2px; }
.brand-mark::after { right: 1px; transform: rotate(-43deg); }
.brand-period { color: var(--purple); }
.nav, .footer > div { display: flex; align-items: center; gap: clamp(24px, 3.5vw, 49px); }
.nav a, .footer > div a { color: var(--muted); font-size: .9rem; font-weight: 540; }
.nav a:hover, .footer a:hover, .text-link:hover, .moment:hover h3 { color: var(--purple); }
.header-tools { display: flex; align-items: center; justify-content: flex-end; gap: 12px; }
.language-switch { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 4px 8px; color: var(--purple); font-size: .9rem; font-weight: 650; white-space: nowrap; border-radius: 6px; }
.language-switch:hover { background: #eee5f9; }
.button { min-height: 49px; display: inline-flex; align-items: center; justify-content: center; padding: 10px 24px; border-radius: 7px; border: 1px solid transparent; font-size: .94rem; font-weight: 660; white-space: nowrap; transition: background .16s, color .16s, border .16s; }
.button-primary { background: var(--purple); color: white; }
.button-primary:hover { background: var(--purple-hover); }
.button-outline { background: transparent; border-color: #a58cbc; color: var(--purple); }
.button-outline:hover { background: #eee5f9; border-color: var(--purple); }
.header-button { min-height: 43px; padding-inline: 20px; }
.text-link { color: var(--ink); font-size: .92rem; font-weight: 640; text-underline-offset: 5px; text-decoration: underline; text-decoration-color: #9c85b7; }
.mobile-break { display: none; }
.hero { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: clamp(32px, 5vw, 74px); padding-block: 57px 65px; }
.hero-copy { padding-block: 17px; }
.eyebrow { display: flex; align-items: center; gap: 10px; margin-bottom: 20px; font-size: .88rem; line-height: 1.4; font-weight: 680; color: var(--purple); letter-spacing: .09em; }
.eyebrow span { width: 21px; height: 1px; background: currentColor; flex: none; }
h1, h2 { font-family: var(--display); font-weight: 700; line-height: 1.22; letter-spacing: -.02em; }
h1 { font-size: clamp(2.65rem, 5.2vw, 5.15rem); white-space: nowrap; }
h1 em { font-style: normal; color: var(--purple); }
h2 { font-size: clamp(2rem, 4.2vw, 3.6rem); }
.hero-description { margin-top: 24px; color: var(--muted); font-size: clamp(1rem, 1.55vw, 1.18rem); line-height: 1.8; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin-top: 28px; }
.hero-image { position: relative; isolation: isolate; overflow: hidden; background: #dacfe6; border-radius: 14px 112px 14px 14px; }
.hero-image img { width: 100%; height: auto; aspect-ratio: 1.19; object-position: 64% center; }
.hero-image figcaption, .story-art figcaption { position: absolute; bottom: 14px; right: 15px; padding: 3px 10px; color: white; background: #2a193bc9; border-radius: 4px; font-size: .78rem; }
.moments { background: #fefcff; border-block: 1px solid #e7dfef; padding: 68px 0 58px; }
.section-intro { display: grid; grid-template-columns: 1fr auto; gap: 18px 34px; align-items: end; margin-bottom: 32px; }
.section-intro p, .section-lead { color: var(--muted); }
.section-intro h2 { font-size: clamp(1.95rem, 3.4vw, 3.15rem); }
.moment-list { display: grid; grid-template-columns: repeat(3, 1fr); border-block: 1px solid var(--line); }
.moment { padding: 23px 24px 23px 0; transition: background .16s; }
.moment:not(:first-child) { padding-left: 26px; border-left: 1px solid var(--line); }
.moment h3 { margin-top: 10px; font-size: clamp(1.03rem, 1.65vw, 1.24rem); }
.moment p { margin-top: 3px; color: var(--muted); font-size: .95rem; }
.moment > span { display: inline-block; margin-top: 11px; color: var(--purple); font-size: .88rem; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.symbol { position: relative; display: inline-block; width: 30px; height: 23px; color: #693ab5; vertical-align: middle; }
.symbol::before, .symbol::after { position: absolute; content: ""; }
.symbol-sleep::before { width: 15px; height: 15px; top: 2px; left: 1px; border: solid currentColor; border-width: 0 0 2px 2px; border-radius: 50%; transform: rotate(-24deg); }
.symbol-sleep::after { width: 5px; height: 5px; border: 1px solid currentColor; transform: rotate(45deg); right: 7px; top: 2px; }
.symbol-rhythm::before, .symbol-rhythm::after { width: 12px; height: 15px; top: 5px; border: 1.6px solid currentColor; border-radius: 50%; transform: rotate(37deg); }
.symbol-rhythm::before { left: 1px; }
.symbol-rhythm::after { left: 11px; }
.symbol-feeling::before { width: 16px; height: 14px; top: 3px; left: 3px; border: 1.6px solid currentColor; border-radius: 58% 48% 62% 38%; transform: rotate(-27deg); }
.symbol-feeling::after { width: 9px; height: 6px; top: 8px; left: 8px; border: solid currentColor; border-width: 0 0 1.4px; border-radius: 50%; transform: rotate(-27deg); }
.experience { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 50px; padding-block: 87px; }
.experience-copy h2 { font-size: clamp(2rem, 3.8vw, 3.35rem); }
.section-lead { max-width: 37ch; margin-top: 20px; }
.tablist, .feeling-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.tablist { margin-top: 25px; }
.tablist button, .feeling-choices button { min-height: 44px; border-radius: 6px; padding: 7px 12px; border: 1px solid #d5c6e7; background: white; color: var(--muted); font-weight: 580; font-size: .9rem; }
.tablist button:hover, .feeling-choices button:hover { border-color: var(--purple); }
.tablist button[aria-selected="true"], .feeling-choices button[aria-pressed="true"] { background: #ede4fb; color: #4a228c; border-color: #ac94d3; }
.demo-note { margin-top: 13px; color: var(--muted); font-size: .82rem; }
.demo-stage { display: grid; place-items: center; border: 1px solid #e8dbf6; border-radius: 72px 15px 15px 15px; background: radial-gradient(ellipse at 64% 24%, #f7ebff, #e9dff5 65%, #e8def5); padding: 29px; min-height: 434px; }
.demo-panel { width: min(100%, 422px); min-height: 360px; border: 1px solid #e5dbf0; background: #fff; border-radius: 15px; padding: 22px 24px; box-shadow: 0 14px 40px #4e367a19; }
.demo-label { font-size: .86rem; color: var(--purple); font-weight: 650; }
.demo-panel h3 { font-size: 1.05rem; margin: 4px 0 10px; }
.sleep-duration { color: #655774; font-size: .9rem; }
.sleep-duration strong { font-size: 2.3rem; color: var(--ink); font-weight: 690; line-height: 1.15; letter-spacing: -.055em; }
.chart-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; font-weight: 640; margin: 18px 0 4px; font-size: .83rem; }
.chart-heading span, .demo-description, .panel-footer { color: var(--muted); font-size: .78rem; font-weight: 450; }
.sleep-chart { background: #f7f2fd; border-radius: 7px; display: grid; grid-template-columns: repeat(7, 1fr); padding: 10px 9px 5px; }
.sleep-chart > span { height: 75px; display: flex; flex-direction: column; color: var(--muted); align-items: center; justify-content: flex-end; font-size: .72rem; gap: 3px; }
.bar { display: block; width: min(36%, 18px); background: #bfa5e2; border-radius: 4px 4px 2px 2px; }
.bar-1 { height: 48px; } .bar-2 { height: 54px; } .bar-3 { height: 51px; } .bar-4 { height: 46px; } .bar-5 { height: 57px; } .bar-6 { height: 55px; } .bar-7 { height: 56px; background: #6836b7; }
.check-in { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .85rem; margin-top: 13px; }
.check-in b { color: var(--purple); border-radius: 5px; background: #f2ebfa; padding: 3px 8px; }
.timeline { list-style: none; padding: 0 0 0 13px; margin: 16px 0 17px 4px; border-left: 1px solid #d4c0ec; }
.timeline li { position: relative; display: grid; row-gap: 2px; padding: 1px 0 14px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--purple); position: absolute; top: 8px; left: -17px; }
.timeline li span { font-size: .79rem; color: var(--purple); }
.timeline li b { font-size: .91rem; font-weight: 600; }
.feeling-choices { gap: 6px; margin-bottom: 11px; }
.feeling-choices button { min-height: 39px; padding-inline: 8px; font-size: .8rem; }
.feeling-preview { position: relative; isolation: isolate; background: #261933; color: white; overflow: hidden; border-radius: 8px; height: 132px; margin-bottom: 6px; }
.feeling-preview img { width: 100%; height: 100%; object-position: center 49%; transition: filter .32s; }
.feeling-preview[data-mood="tired"] img { filter: hue-rotate(23deg) saturate(.62) brightness(.76); }
.feeling-preview[data-mood="light"] img { filter: hue-rotate(327deg) brightness(1.2); }
.feeling-preview p { position: absolute; inset: auto 0 0; background: #20132dd9; padding: 5px 8px; font-size: .8rem; }
.story { background: #241836; color: #fcf9ff; }
.story-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(36px, 7vw, 105px); padding-block: 58px; }
.story-art { position: relative; border-radius: 12px 76px 12px 12px; overflow: hidden; }
.story-art img { width: 100%; height: auto; aspect-ratio: 1.35; object-position: center 53%; }
.story .eyebrow { color: #dfc9fc; }
.story-copy > p:not(.eyebrow) { color: #e6dcee; max-width: 39ch; margin-top: 21px; }
.faq { display: grid; grid-template-columns: .65fr 1.35fr; gap: 38px; padding-block: 88px 70px; }
.questions { border-top: 1px solid var(--line); }
.questions details { border-bottom: 1px solid var(--line); }
.questions summary { list-style: none; min-height: 58px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 10px 0; font-weight: 650; line-height: 1.45; }
.questions summary::-webkit-details-marker { display: none; }
.questions summary::after { content: "+"; color: var(--purple); font-size: 1.35rem; font-weight: 450; }
.questions details[open] summary::after { content: "−"; }
.questions details p { color: var(--muted); margin-bottom: 16px; }
.join { padding-bottom: 28px; }
.join-inner { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 30px 46px; padding: clamp(25px, 6vw, 68px); border-radius: 15px; background: linear-gradient(113deg, #eae0f6, #f3ebf9 74%); border: 1px solid #e4d7f1; }
.join h2 { font-size: clamp(2rem, 3.8vw, 3.35rem); }
.join #join-description { margin-top: 12px; color: var(--muted); }
.join-action { justify-self: start; min-width: 0; }
#waitlist-form { padding-top: 5px; }
#waitlist-form > label { font-weight: 650; display: block; margin-bottom: 5px; }
.form-row { display: flex; flex-wrap: wrap; gap: 8px; }
.form-row input { flex: 1 1 11rem; min-width: 0; min-height: 49px; border: 1px solid #ac98c3; border-radius: 7px; padding: 8px 12px; color: var(--ink); background: white; }
.form-row input::placeholder { color: #685c75; }
.form-row button:disabled { opacity: .66; cursor: progress; }
.consent { display: grid; grid-template-columns: auto 1fr; align-items: start; gap: 8px; color: var(--muted); font-size: .85rem; margin-top: 12px; }
.consent input { margin-top: .35em; accent-color: var(--purple); }
.consent a { text-decoration: underline; text-underline-offset: 3px; color: var(--purple); }
.form-status:not(:empty) { font-size: .92rem; margin-top: 8px; }
.form-status[data-error="true"] { color: #86313e; }
.footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; min-height: 84px; flex-wrap: wrap; }
.footer > div { gap: clamp(15px, 4vw, 35px); flex-wrap: wrap; row-gap: 6px; }
.privacy-page { max-width: 700px; padding-block: 68px; }
.privacy-page h1 { white-space: normal; font-size: clamp(2.1rem, 5.2vw, 3.6rem); }
.privacy-page h2 { font-size: 1.5rem; margin-top: 25px; }
.privacy-page p { color: var(--muted); margin-top: 10px; }
.privacy-page .button { margin-top: 25px; }

:root[lang="en"] { --display: Georgia, "Times New Roman", serif; }
:root[lang="en"] .hero h1 { font-size: clamp(1.95rem, 3.34vw, 3.2rem); white-space: normal; }
:root[lang="en"] .section-intro { grid-template-columns: minmax(0, 1.25fr) minmax(0, .75fr); }
:root[lang="en"] .section-intro p { max-width: 36ch; }

@media (max-width: 1050px) {
  :root { --wrap: min(1200px, calc(100% - 72px)); }
  .hero { grid-template-columns: 1fr 1.05fr; gap: 29px; }
  .experience { gap: 28px; }
  :root[lang="en"] .nav { gap: clamp(15px, 2.5vw, 26px); }
}
@media (max-width: 760px) {
  :root { --wrap: calc(100% - 40px); }
  html { scroll-padding-top: 79px; }
  .header-inner { min-height: 63px; gap: 15px; }
  .header-tools { gap: 4px; }
  .header-button { padding-inline: 12px; }
  .nav { display: none; }
  .hero { grid-template-columns: 1fr; padding-block: 32px 40px; gap: 23px; }
  .hero-copy { padding: 0; }
  .hero h1 { font-size: clamp(2.5rem, 9.6vw, 4.35rem); }
  .eyebrow { margin-bottom: 14px; }
  .hero-description { margin-top: 15px; }
  .hero-actions { margin-top: 19px; }
  .desktop-break { display: none; }
  .mobile-break { display: initial; }
  .hero-image { border-top-right-radius: 66px; }
  .hero-image img { aspect-ratio: 1.29; object-position: 64% 51%; }
  .moments { padding: 42px 0 36px; }
  .section-intro { grid-template-columns: 1fr; gap: 13px; margin-bottom: 22px; }
  :root[lang="en"] .hero h1 { font-size: clamp(1.95rem, 8.3vw, 3.9rem); }
  :root[lang="en"] .section-intro { grid-template-columns: 1fr; }
  .moment-list { grid-template-columns: 1fr; }
  .moment, .moment:not(:first-child) { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 3px 8px; border-inline: 0; padding: 14px 0; }
  .moment:not(:last-child) { border-bottom: 1px solid var(--line); }
  .moment h3, .moment p, .moment > span { margin: 0; }
  .moment p { grid-area: 2 / 2 / auto / 4; }
  .moment > span { align-self: center; white-space: nowrap; }
  :root[lang="en"] .moment { grid-template-columns: 26px minmax(0, 1fr); }
  :root[lang="en"] .moment > p, :root[lang="en"] .moment > span { grid-area: auto / 2; }
  :root[lang="en"] .moment > span { margin-top: 3px; }
  .experience, .story-inner, .faq, .join-inner { grid-template-columns: 1fr; }
  .experience { padding-block: 45px; gap: 19px; }
  .section-lead { margin-top: 14px; }
  .tablist { margin-top: 18px; }
  .demo-stage { min-height: 0; border-top-left-radius: 43px; padding: 16px; }
  .demo-panel { min-height: 338px; padding: 18px; }
  .story-inner { gap: 27px; padding-block: 36px 43px; }
  .story-art { grid-row: 2; border-top-right-radius: 55px; }
  .story-copy > p:not(.eyebrow) { margin-top: 13px; }
  .faq { padding-block: 45px; gap: 18px; }
  .join-inner { gap: 18px; }
  .footer { min-height: 62px; }
}
@media (max-width: 440px) {
  :root[lang="en"] .header-button { display: none; }
}
@media (max-width: 355px) {
  :root { --wrap: calc(100% - 30px); }
  .header-button { display: none; }
  .hero h1 { font-size: clamp(2rem, 10.8vw, 2.45rem); }
  .moment, .moment:not(:first-child) { grid-template-columns: 24px minmax(0, 1fr) auto; gap: 3px 6px; }
  .moment > span { font-size: .82rem; }
  .join-inner { padding-inline: 19px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; }
}

.method { background: #fefcff; border-block: 1px solid #e7dfef; }
.method-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; padding-block: 61px; align-items: center; }
.method h2 { font-size: clamp(2rem, 3.8vw, 3.35rem); }
.method-list { margin: 0; border-top: 1px solid var(--line); }
.method-list > div { display: grid; grid-template-columns: 6em 1fr; gap: 12px; padding-block: 13px; border-bottom: 1px solid var(--line); }
.method-list dt { margin: 0; color: var(--purple); font-weight: 680; }
.method-list dd { margin: 0; color: var(--muted); }
:root[lang="en"] .method-list > div { grid-template-columns: 7.4rem minmax(0, 1fr); }
@media (max-width: 760px) {
  .method-inner { grid-template-columns: 1fr; gap: 20px; padding-block: 42px; }
  .method-list > div { grid-template-columns: 5em 1fr; }
}
