:root {
  color-scheme: dark;
  --bg: #08213a;
  --bg-deep: #04101d;
  --panel: rgba(17, 48, 80, 0.72);
  --panel-soft: rgba(255, 255, 255, 0.07);
  --line: rgba(214, 234, 255, 0.18);
  --line-strong: rgba(214, 234, 255, 0.3);
  --text: #f7fbff;
  --soft: #d7eaff;
  --muted: #a9c2d8;
  --accent: #c7e9ff;
  --accent-blue: #7dbcf8;
  --accent-violet: #6f7df8;
  --gold: #f2d47a;
  --gold-soft: rgba(242, 212, 122, 0.16);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
  --radius: 20px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background:
    linear-gradient(180deg, rgba(9, 37, 65, 0.52), rgba(5, 17, 31, 0.62) 38%, rgba(3, 12, 22, 0.96) 100%),
    url("./assets/sleep-bg.png") top center / cover no-repeat fixed,
    #08213a;
  color: var(--text);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    "Hiragino Sans", "Yu Gothic UI", "Yu Gothic", Meiryo, sans-serif;
  letter-spacing: 0;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 48% 10%, rgba(221, 243, 255, 0.32), transparent 10rem),
    radial-gradient(circle at 70% 32%, rgba(90, 164, 231, 0.28), transparent 24rem),
    linear-gradient(90deg, rgba(4, 15, 28, 0.5), rgba(11, 55, 92, 0.15), rgba(4, 15, 28, 0.54));
}

a {
  color: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

.page-shell {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.stars {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, 0.72) 0 1px, transparent 1px),
    radial-gradient(circle, rgba(191, 229, 255, 0.48) 0 1px, transparent 1px);
  background-position:
    24px 44px,
    76px 120px;
  background-size:
    132px 164px,
    214px 242px;
  opacity: 0.3;
}

.section-pad,
.site-header,
.site-footer {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.floating-words {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.floating-words span {
  position: absolute;
  color: rgba(237, 247, 255, 0.16);
  font-size: 1rem;
  font-weight: 700;
  text-shadow: 0 0 18px rgba(160, 217, 255, 0.22);
  animation: float-word 46s linear infinite;
}

.floating-words span:nth-child(1) {
  left: 5%;
  top: 18%;
  animation-delay: -4s;
}

.floating-words span:nth-child(2) {
  left: 78%;
  top: 16%;
  animation-delay: -18s;
}

.floating-words span:nth-child(3) {
  left: 58%;
  top: 34%;
  animation-delay: -10s;
}

.floating-words span:nth-child(4) {
  left: 13%;
  top: 54%;
  animation-delay: -26s;
}

.floating-words span:nth-child(5) {
  left: 84%;
  top: 58%;
  animation-delay: -33s;
}

.floating-words span:nth-child(6) {
  left: 36%;
  top: 73%;
  animation-delay: -14s;
}

.floating-words span:nth-child(7) {
  left: 8%;
  top: 86%;
  animation-delay: -38s;
}

.floating-words span:nth-child(8) {
  left: 68%;
  top: 90%;
  animation-delay: -22s;
}

@keyframes float-word {
  0% {
    opacity: 0;
    transform: translate3d(-20px, 32px, 0);
  }

  20%,
  74% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(34px, -46px, 0);
  }
}

.site-header,
main,
.site-footer {
  position: relative;
  z-index: 2;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  min-height: 76px;
  padding: 12px 0;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0 -16px;
  z-index: -1;
  border-bottom: 1px solid rgba(214, 234, 255, 0.1);
  background: rgba(3, 15, 28, 0.7);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  text-decoration: none;
}

.brand-icon,
.final-icon {
  overflow: hidden;
  border: 1px solid rgba(238, 248, 255, 0.24);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 28px rgba(146, 208, 255, 0.22);
}

.brand-icon {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border-radius: 13px;
}

.brand-icon img,
.final-icon img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.material-symbols-rounded {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Material Symbols Rounded";
  font-size: 40px;
  font-style: normal;
  font-weight: normal;
  font-feature-settings: "liga";
  -webkit-font-feature-settings: "liga";
  font-variation-settings:
    "FILL" 1,
    "wght" 500,
    "GRAD" 0,
    "opsz" 40;
  -webkit-font-smoothing: antialiased;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.15;
}

.brand-text small {
  display: block;
  overflow: hidden;
  max-width: 240px;
  color: var(--soft);
  font-size: 0.76rem;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 700;
}

.header-nav a,
.site-footer a {
  text-decoration: none;
}

.header-nav a:hover,
.site-footer a:hover {
  color: var(--text);
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 14px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.language-switch button {
  margin: 0;
  padding: 4px 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.language-switch button[aria-pressed="true"] {
  color: var(--text);
  text-decoration: underline;
  text-underline-offset: 5px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  min-height: 50px;
  padding: 0 26px;
  border: 1px solid rgba(220, 235, 255, 0.32);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.2), transparent 35%),
    linear-gradient(135deg, #6373f6 0%, #315fd7 48%, #69b4fb 100%);
  color: #ffffff;
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.1;
  text-align: center;
  text-decoration: none;
  white-space: normal;
  box-shadow:
    0 16px 44px rgba(67, 105, 230, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  border-color: rgba(255, 255, 255, 0.7);
  box-shadow: 0 18px 48px rgba(92, 130, 245, 0.46);
  transform: translateY(-1px);
}

.button:focus-visible,
.language-switch button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}

.button-small {
  min-height: 40px;
  padding-inline: 16px;
  font-size: 0.84rem;
}

.button-ghost {
  background: rgba(255, 255, 255, 0.035);
  box-shadow: inset 0 0 0 1px rgba(214, 234, 255, 0.32);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(420px, 1fr);
  align-items: center;
  gap: 64px;
  min-height: 790px;
  padding: 44px 0 70px;
}

.hero::before {
  content: "";
  position: absolute;
  left: 12%;
  bottom: 6%;
  width: 72%;
  height: 32%;
  pointer-events: none;
  background: radial-gradient(ellipse at center, rgba(103, 172, 234, 0.26), transparent 68%);
  filter: blur(8px);
}

.hero-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  padding-top: 28px;
  overflow-wrap: anywhere;
}

.eyebrow {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.science-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 34px;
  margin: 0 0 18px;
  padding: 0 13px;
  border: 1px solid rgba(242, 212, 122, 0.34);
  border-radius: 999px;
  background: var(--gold-soft);
  color: #fff4cf;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.2;
}

.science-label .material-symbols-rounded {
  width: 20px;
  height: 20px;
  color: var(--gold);
  font-size: 20px;
}

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

h1 {
  margin-bottom: 20px;
  color: var(--text);
  font-size: clamp(3.6rem, 6.2vw, 5.5rem);
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 22px;
  color: var(--text);
  font-size: 2.25rem;
  line-height: 1.2;
  letter-spacing: 0;
}

.hero-main-copy {
  margin-bottom: 18px;
  color: var(--text);
  font-size: 1.28rem;
  font-weight: 750;
  line-height: 1.7;
  overflow-wrap: anywhere;
}

.hero-subcopy {
  margin-bottom: 0;
  color: var(--soft);
  font-size: 1.06rem;
  line-height: 1.75;
  overflow-wrap: anywhere;
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin: 28px 0 12px;
}

.platform-note {
  margin: 0;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
}

.hero-art {
  position: relative;
  display: grid;
  min-height: 640px;
  place-items: center;
}

.moon {
  position: absolute;
  left: 10%;
  top: 10%;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: #fff7dd;
  box-shadow:
    0 0 36px rgba(255, 245, 214, 0.9),
    0 0 120px rgba(150, 210, 255, 0.34);
}

.moon::after {
  content: "";
  position: absolute;
  left: -22px;
  top: -12px;
  width: 102px;
  height: 102px;
  border-radius: 50%;
  background: #113a62;
}

.word-cloud {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.word-cloud span {
  position: absolute;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 0 14px;
  border: 1px solid rgba(214, 234, 255, 0.14);
  border-radius: 999px;
  background: rgba(9, 32, 56, 0.34);
  color: rgba(237, 247, 255, 0.42);
  font-size: 0.86rem;
  font-weight: 700;
  backdrop-filter: blur(10px);
  animation: chip-drift 18s ease-in-out infinite;
}

.word-cloud span:nth-child(1) {
  left: 2%;
  top: 42%;
}

.word-cloud span:nth-child(2) {
  right: 2%;
  top: 38%;
  animation-delay: -5s;
}

.word-cloud span:nth-child(3) {
  left: 14%;
  bottom: 18%;
  animation-delay: -9s;
}

.word-cloud span:nth-child(4) {
  right: 7%;
  bottom: 12%;
  animation-delay: -13s;
}

@keyframes chip-drift {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-12px);
  }
}

.phone {
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 38px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(3, 10, 18, 0.94)),
    #081829;
  box-shadow:
    0 34px 104px rgba(0, 0, 0, 0.48),
    0 0 0 10px rgba(255, 255, 255, 0.025),
    inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.phone-session {
  width: min(88vw, 388px);
  aspect-ratio: 0.54;
  padding: 12px;
}

.phone-settings,
.phone-words {
  width: 276px;
  aspect-ratio: 0.55;
  padding: 10px;
}

.phone-screen {
  position: relative;
  height: 100%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 28px;
  background:
    linear-gradient(180deg, rgba(12, 48, 83, 0.46), rgba(4, 13, 24, 0.96)),
    url("./assets/sleep-bg.png") center top / cover no-repeat;
}

.phone-screen::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.05), rgba(0, 0, 0, 0.58));
}

.screen-replacement {
  position: absolute;
  inset: 0;
  z-index: 8;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.has-screenshot .mock-content,
.has-screenshot .mini-phone-content {
  display: none;
}

.mock-content {
  position: relative;
  z-index: 2;
  height: 100%;
  padding: 18px;
}

.status-row {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.72rem;
  font-weight: 700;
}

.app-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.round-icon,
.diamond {
  display: inline-flex;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(214, 234, 255, 0.2);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
}

.nav-pill {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 12px;
  border: 1px solid rgba(214, 234, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-size: 0.78rem;
  font-weight: 800;
}

.diamond {
  margin-left: auto;
  background:
    linear-gradient(135deg, transparent 35%, rgba(206, 236, 255, 0.8) 36% 58%, transparent 59%),
    rgba(255, 255, 255, 0.08);
}

.current-card {
  padding: 14px;
  border: 1px solid rgba(214, 234, 255, 0.14);
  border-radius: 10px;
  background: rgba(4, 16, 29, 0.56);
}

.current-card p,
.screen-heading {
  margin-bottom: 10px;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.setting-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.setting-tags span {
  color: var(--text);
  font-size: 0.72rem;
  font-weight: 700;
}

.listen-copy {
  margin: 52px 0 24px;
  color: var(--text);
  font-size: 0.96rem;
  font-weight: 800;
  line-height: 1.55;
  text-align: center;
}

.pause-ring {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 132px;
  height: 132px;
  margin: 0 auto 28px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(214, 238, 255, 0.3), rgba(214, 238, 255, 0.07) 58%, transparent 60%);
  box-shadow: 0 0 56px rgba(176, 223, 255, 0.28);
}

.pause-ring span {
  width: 9px;
  height: 40px;
  border-radius: 999px;
  background: #f5fbff;
}

.countdown {
  margin-bottom: 28px;
  color: var(--text);
  font-size: 3rem;
  font-weight: 360;
  line-height: 1;
  text-align: center;
}

.volume-row {
  display: grid;
  gap: 7px;
  margin-top: 14px;
}

.volume-row div {
  display: flex;
  justify-content: space-between;
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 700;
}

.volume-row i,
.setting-row.slider i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.volume-row i::before,
.setting-row.slider i::before {
  content: "";
  display: block;
  width: var(--value, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ffffff, #78c8ff);
}

.section {
  position: relative;
  padding-block: 66px;
}

.center-title {
  max-width: 900px;
  margin-inline: auto;
  text-align: center;
}

.glass-card {
  border: 1px solid var(--line);
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.03)),
    rgba(12, 43, 73, 0.62);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(12px);
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: -34px;
  margin-bottom: 34px;
  padding: 12px;
  border: 1px solid rgba(214, 234, 255, 0.16);
  border-radius: 22px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.035)),
    rgba(4, 17, 31, 0.68);
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
}

.trust-item {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border-radius: 15px;
  color: var(--soft);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.35;
}

.trust-item span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
}

.trust-item .material-symbols-rounded {
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(242, 212, 122, 0.22);
  border-radius: 10px;
  background: rgba(242, 212, 122, 0.11);
  color: var(--gold);
  font-size: 20px;
}

.concerns-band,
.how-band,
.plans-band,
.faq-band {
  background: linear-gradient(180deg, rgba(9, 39, 70, 0.44), rgba(7, 26, 49, 0.32));
}

.concern-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
}

.concern-card {
  min-height: 170px;
  padding: 18px;
}

.card-icon {
  width: 62px;
  height: 62px;
  margin-bottom: 18px;
  border: 1px solid rgba(218, 241, 255, 0.2);
  border-radius: 20px;
  background:
    radial-gradient(circle at 35% 25%, rgba(255, 255, 255, 0.24), transparent 44%),
    rgba(128, 190, 245, 0.16);
  color: rgba(224, 245, 255, 0.94);
  box-shadow:
    inset 0 0 22px rgba(207, 235, 255, 0.08),
    0 0 28px rgba(108, 183, 244, 0.18);
}

.concern-card p,
.how-card p,
.feature-card p,
.plan-card p,
.faq-card p,
.science-card p {
  margin-bottom: 0;
  color: var(--soft);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.science-band {
  padding-block: 88px;
  background:
    radial-gradient(circle at 16% 18%, rgba(242, 212, 122, 0.12), transparent 16rem),
    radial-gradient(circle at 82% 34%, rgba(125, 188, 248, 0.2), transparent 22rem),
    linear-gradient(180deg, rgba(4, 15, 28, 0.46), rgba(9, 39, 70, 0.36));
}

.science-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(340px, 0.72fr);
  gap: 54px;
  align-items: center;
}

.science-copy h2 {
  max-width: 760px;
  margin-bottom: 18px;
}

.science-lead {
  color: var(--text);
  font-size: 1.08rem;
  font-weight: 800;
  line-height: 1.8;
}

.science-copy p:not(.eyebrow) {
  color: var(--soft);
  line-height: 1.95;
}

.science-panel {
  display: grid;
  justify-items: center;
  padding: 28px;
  border: 1px solid rgba(214, 234, 255, 0.16);
  border-radius: 24px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.025)),
    rgba(3, 14, 26, 0.52);
  box-shadow: inset 0 0 70px rgba(125, 188, 248, 0.08);
}

.science-step {
  width: min(100%, 280px);
  padding: 15px 18px;
  border: 1px solid rgba(214, 234, 255, 0.16);
  border-radius: 16px;
  background: rgba(9, 32, 56, 0.62);
  color: var(--soft);
  font-weight: 900;
  line-height: 1.35;
  text-align: center;
}

.science-step.highlighted {
  border-color: rgba(242, 212, 122, 0.38);
  background:
    linear-gradient(135deg, rgba(242, 212, 122, 0.18), rgba(125, 188, 248, 0.18)),
    rgba(9, 32, 56, 0.74);
  color: var(--text);
}

.science-divider {
  display: block;
  width: 2px;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(214, 234, 255, 0.46), transparent);
}

.science-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 34px;
}

.science-card {
  padding: 24px;
}

.science-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1.06rem;
  line-height: 1.45;
}

.science-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 18px;
  padding: 18px 20px;
  border: 1px solid rgba(242, 212, 122, 0.22);
  border-radius: 18px;
  background: rgba(242, 212, 122, 0.08);
  color: var(--soft);
}

.science-note .material-symbols-rounded {
  color: var(--gold);
  font-size: 24px;
}

.science-note p {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 650;
  line-height: 1.75;
}

.section-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  justify-content: center;
  margin-top: 28px;
  text-align: center;
}

.section-cta p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.how-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px minmax(0, 1fr) 38px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  margin: 30px auto 0;
  padding: 0;
  list-style: none;
}

.how-card {
  min-height: 300px;
  padding: 24px;
  text-align: center;
}

.step-badge {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0 auto 12px;
  border-radius: 50%;
  background: rgba(226, 244, 255, 0.88);
  color: #25456b;
  font-weight: 900;
}

.how-card h3,
.feature-card h3,
.plan-card h3,
.faq-card h3 {
  margin: 0 0 10px;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.45;
}

.mini-session {
  position: relative;
  width: 94px;
  height: 146px;
  margin: 16px auto;
  overflow: hidden;
  border: 1px solid rgba(214, 234, 255, 0.16);
  border-radius: 12px;
  background: url("./assets/sleep-bg.png") center / cover no-repeat;
}

.mini-phone-content {
  display: grid;
  height: 100%;
  place-items: center;
  background: rgba(3, 14, 26, 0.54);
}

.mini-phone-content span {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(227, 246, 255, 0.8);
}

.mini-phone-content span::before {
  content: "";
  width: 8px;
  height: 22px;
  border-left: 5px solid #123452;
  border-right: 5px solid #123452;
}

.mini-phone-content b {
  color: var(--text);
  font-size: 1rem;
}

.flow-arrow {
  position: relative;
  height: 40px;
}

.flow-arrow::before {
  content: "";
  position: absolute;
  left: 0;
  right: 8px;
  top: 50%;
  height: 2px;
  background: rgba(167, 219, 255, 0.36);
}

.flow-arrow::after {
  content: "";
  position: absolute;
  right: 4px;
  top: calc(50% - 6px);
  width: 12px;
  height: 12px;
  border-top: 2px solid rgba(167, 219, 255, 0.42);
  border-right: 2px solid rgba(167, 219, 255, 0.42);
  transform: rotate(45deg);
}

.word-bubbles {
  position: relative;
  height: 150px;
  margin: 14px 0;
}

.word-bubbles span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(230, 241, 226, 0.82);
  color: #425f7b;
  font-weight: 900;
}

.word-bubbles span:nth-child(1) {
  left: 16%;
  top: 20%;
}

.word-bubbles span:nth-child(2) {
  right: 20%;
  top: 8%;
}

.word-bubbles span:nth-child(3) {
  left: 42%;
  top: 44%;
}

.word-bubbles span:nth-child(4) {
  left: 20%;
  bottom: 8%;
}

.word-bubbles span:nth-child(5) {
  right: 16%;
  bottom: 18%;
}

.bed-visual {
  position: relative;
  height: 150px;
  margin: 14px 0;
}

.bed-moon {
  position: absolute;
  left: 50%;
  top: 16px;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #fff7df;
  box-shadow: 0 0 34px rgba(255, 246, 220, 0.64);
  transform: translateX(-50%);
}

.bed-moon::after {
  content: "";
  position: absolute;
  left: -14px;
  top: -8px;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: #173f68;
}

.bed-shape {
  position: absolute;
  left: 50%;
  bottom: 22px;
  width: 150px;
  height: 42px;
  border-radius: 999px 999px 18px 18px;
  background: rgba(214, 234, 255, 0.2);
  transform: translateX(-50%);
}

.concept-band {
  padding-block: 82px;
  background:
    radial-gradient(circle at 70% 38%, rgba(124, 187, 244, 0.26), transparent 18rem),
    linear-gradient(180deg, rgba(6, 22, 42, 0.2), rgba(10, 48, 84, 0.44)),
    url("./assets/sleep-bg.png") center / cover no-repeat;
}

.concept-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 64px;
  align-items: center;
}

.concept-copy p {
  color: var(--soft);
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.95;
}

.concept-orbit {
  display: grid;
  justify-items: center;
  padding: 34px;
  border: 1px solid rgba(214, 234, 255, 0.18);
  border-radius: 50%;
  background: rgba(12, 43, 73, 0.34);
  box-shadow: inset 0 0 60px rgba(161, 218, 255, 0.1);
}

.orbit-node {
  min-width: 190px;
  padding: 14px 18px;
  border: 1px solid rgba(214, 234, 255, 0.16);
  border-radius: 999px;
  background: rgba(10, 32, 56, 0.7);
  color: var(--text);
  font-weight: 800;
  line-height: 1.45;
  text-align: center;
}

.orbit-node small {
  color: var(--muted);
  font-size: 0.72rem;
}

.orbit-node.center {
  background: linear-gradient(135deg, rgba(92, 130, 245, 0.72), rgba(97, 174, 244, 0.72));
}

.orbit-line {
  display: block;
  width: 2px;
  height: 46px;
  background: rgba(214, 234, 255, 0.42);
}

.features-band {
  padding-block: 74px;
  background: linear-gradient(180deg, rgba(7, 30, 55, 0.62), rgba(8, 38, 70, 0.5));
}

.features-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: center;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 28px;
}

.feature-card {
  min-height: 190px;
  padding: 18px;
}

.feature-card:nth-child(n + 5) {
  grid-column: span 1;
}

.feature-card h3 {
  margin-top: 16px;
}

.feature-card:nth-child(2),
.feature-card:nth-child(4),
.feature-card:nth-child(5),
.feature-card:nth-child(6),
.feature-card:nth-child(7) {
  border-color: rgba(214, 234, 255, 0.28);
}

.feature-visual {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  min-height: 62px;
}

.feature-visual .card-icon {
  flex: 0 0 auto;
  width: 58px;
  height: 58px;
  margin-bottom: 0;
}

.ui-chips,
.ui-list,
.ui-toggle-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ui-chips i,
.ui-list i,
.ui-toggle-list i,
.tag-row span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 800;
}

.mini-eq {
  display: inline-flex;
  align-items: flex-end;
  gap: 4px;
  height: 42px;
  margin-top: 8px;
}

.mini-eq i {
  display: block;
  width: 5px;
  border-radius: 999px;
  background: rgba(199, 233, 255, 0.78);
}

.mini-eq i:nth-child(1) {
  height: 28px;
}

.mini-eq i:nth-child(2) {
  height: 40px;
}

.mini-eq i:nth-child(3) {
  height: 22px;
}

.mini-eq i:nth-child(4) {
  height: 34px;
}

.ui-slider {
  display: grid;
  gap: 8px;
  width: 112px;
  margin-top: 10px;
}

.ui-slider > i {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  overflow: hidden;
}

.ui-slider > i::before {
  content: "";
  display: block;
  width: var(--value, 50%);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d8f2ff, #7ec8ff);
}

.ui-slider b,
.mini-label {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  width: fit-content;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--accent);
  font-size: 0.72rem;
  font-weight: 800;
}

.phone-stack {
  display: grid;
  justify-items: center;
}

.compact {
  padding: 18px;
}

.screen-heading {
  position: relative;
  z-index: 2;
}

.setting-row,
.word-toggle,
.word-stat,
.word-search {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 10px;
  padding: 0 12px;
  border: 1px solid rgba(214, 234, 255, 0.14);
  border-radius: 12px;
  background: rgba(3, 14, 26, 0.48);
  color: var(--soft);
  font-size: 0.78rem;
  font-weight: 800;
}

.setting-row b {
  color: var(--accent);
}

.setting-row.slider {
  display: grid;
  align-content: center;
}

.setting-row.toggle b,
.word-toggle i {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: rgba(122, 199, 255, 0.34);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 16px;
}

.plans-band {
  padding-block: 78px;
}

.plans-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 310px;
  gap: 40px;
  align-items: center;
  margin-top: 28px;
}

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

.plan-card {
  padding: 28px;
}

.plan-card > p {
  min-height: 3.1em;
}

.plan-card ul {
  display: grid;
  gap: 11px;
  margin: 24px 0;
  padding: 0;
  color: var(--soft);
  list-style: none;
}

.plan-card li {
  position: relative;
  padding-left: 26px;
  line-height: 1.55;
}

.plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #f8de72;
}

.plan-card li::after {
  content: "";
  position: absolute;
  left: 5px;
  top: calc(0.45em + 3px);
  width: 5px;
  height: 8px;
  border-right: 2px solid #17345d;
  border-bottom: 2px solid #17345d;
  transform: rotate(45deg);
}

.plan-card strong {
  display: block;
  color: var(--text);
  font-size: 2rem;
}

.plan-card small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.plan-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.plan-heading span {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: #f8de72;
  color: #17345d;
  font-size: 0.78rem;
  font-weight: 900;
}

.premium {
  border-color: rgba(248, 222, 114, 0.38);
  background:
    linear-gradient(180deg, rgba(242, 212, 122, 0.12), rgba(255, 255, 255, 0.035)),
    rgba(12, 43, 73, 0.68);
}

.word-stat {
  display: inline-flex;
  width: calc(50% - 6px);
  flex-direction: column;
  align-items: flex-start;
  margin-right: 6px;
}

.word-stat strong {
  color: var(--text);
  font-size: 1rem;
}

.word-search {
  justify-content: flex-start;
  color: rgba(214, 234, 255, 0.48);
}

.word-toggle.off {
  opacity: 0.56;
}

.word-toggle.off i {
  background: rgba(255, 255, 255, 0.18);
}

.notice {
  padding-block: 28px;
}

.notice p {
  margin: 0;
  padding: 18px 22px;
  border-left: 3px solid rgba(199, 233, 255, 0.52);
  background: rgba(3, 14, 26, 0.28);
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.8;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 26px;
}

.faq-card {
  padding: 22px;
}

.faq-card h3 {
  overflow-wrap: anywhere;
}

.final-cta {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  margin-block: 50px 28px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background:
    radial-gradient(circle at 84% 18%, rgba(255, 246, 220, 0.2), transparent 9rem),
    linear-gradient(135deg, rgba(13, 61, 105, 0.82), rgba(8, 33, 62, 0.68)),
    url("./assets/sleep-bg.png") center / cover no-repeat;
  box-shadow: var(--shadow);
}

.final-icon {
  width: 92px;
  height: 92px;
  border-radius: 22px;
}

.final-copy h2 {
  margin-bottom: 10px;
}

.final-copy p,
.final-actions p {
  margin: 0;
  color: var(--soft);
}

.final-actions {
  display: grid;
  justify-items: end;
  gap: 10px;
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px 0 42px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px 30px;
}

.site-footer p {
  margin: 0;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

@media (max-width: 1080px) {
  .site-header {
    grid-template-columns: auto auto;
  }

  .header-nav {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .hero-copy {
    padding-top: 26px;
  }

  .hero-art {
    min-height: 640px;
  }

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

  .concept-layout,
  .science-layout,
  .features-layout,
  .plans-layout {
    grid-template-columns: 1fr;
  }

  .phone-stack,
  .plans-layout > .phone {
    justify-self: center;
  }

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

@media (max-width: 760px) {
  body {
    background-attachment: scroll;
  }

  .section-pad,
  .site-header,
  .site-footer {
    width: min(100% - 24px, var(--max));
  }

  .site-header {
    position: relative;
    grid-template-columns: 1fr;
    gap: 12px;
    padding-top: 18px;
  }

  .site-header::before {
    inset: 0 -12px;
  }

  .brand-text small {
    max-width: 220px;
  }

  .header-nav {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 18px;
  }

  .header-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .button-small {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-top: 34px;
    padding-bottom: 48px;
    overflow: hidden;
  }

  .hero-copy {
    width: 100%;
    max-width: 342px;
  }

  h1 {
    font-size: 2.72rem;
    line-height: 1.14;
  }

  html[lang="en"] h1 {
    font-size: 2.08rem;
    line-height: 1.16;
  }

  h2 {
    font-size: 1.78rem;
    line-height: 1.25;
  }

  .center-title {
    max-width: 12em;
  }

  .hero-main-copy,
  .hero-subcopy {
    font-size: 1rem;
  }

  html[lang="en"] .hero-main-copy,
  html[lang="en"] .hero-subcopy {
    font-size: 0.94rem;
  }

  .science-label {
    font-size: 0.8rem;
  }

  .hero-main-copy br,
  .hero-subcopy br,
  .concept-copy br,
  .notice br {
    display: none;
  }

  .cta-row,
  .cta-row .button {
    width: 100%;
  }

  .trust-strip {
    grid-template-columns: 1fr;
    margin-top: -20px;
    margin-bottom: 18px;
    padding: 8px;
    border-radius: 18px;
  }

  .trust-item {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
    padding: 12px;
    font-size: 0.82rem;
  }

  .hero-art {
    min-height: 535px;
  }

  .moon {
    left: 68%;
    top: 0;
    width: 72px;
    height: 72px;
  }

  .moon::after {
    left: -14px;
    top: -7px;
    width: 64px;
    height: 64px;
  }

  .phone-session {
    width: min(78vw, 286px);
    justify-self: center;
  }

  .mock-content {
    padding: 14px;
  }

  .listen-copy {
    margin-top: 36px;
  }

  .pause-ring {
    width: 96px;
    height: 96px;
    margin-bottom: 18px;
  }

  .pause-ring span {
    height: 30px;
  }

  .countdown {
    font-size: 2.1rem;
  }

  .section {
    padding-block: 48px;
  }

  .concern-grid,
  .science-card-grid,
  .feature-grid,
  .plan-cards,
  .faq-grid {
    grid-template-columns: 1fr;
  }

  .science-band {
    padding-block: 58px;
  }

  .science-layout {
    gap: 28px;
  }

  .science-copy h2 {
    font-size: 1.78rem;
  }

  .science-lead {
    font-size: 1rem;
  }

  .science-panel {
    padding: 18px;
    border-radius: 18px;
  }

  .science-card {
    padding: 20px;
  }

  .section-cta,
  .section-cta .button {
    width: 100%;
  }

  .section-cta {
    align-items: stretch;
    flex-direction: column;
  }

  .how-grid {
    grid-template-columns: 1fr;
  }

  .flow-arrow {
    height: 34px;
  }

  .flow-arrow::before {
    left: 50%;
    right: auto;
    top: 0;
    width: 2px;
    height: 100%;
  }

  .flow-arrow::after {
    left: calc(50% - 6px);
    right: auto;
    top: auto;
    bottom: 2px;
    transform: rotate(135deg);
  }

  .concept-orbit {
    border-radius: var(--radius);
    padding: 22px;
  }

  .features-band {
    padding-block: 54px;
  }

  .phone-settings,
  .phone-words {
    width: min(82vw, 270px);
  }

  .final-cta {
    grid-template-columns: 1fr;
    padding: 24px;
  }

  .final-actions {
    justify-items: stretch;
  }

  .final-actions .button {
    width: 100%;
  }

  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 420px) {
  h1 {
    font-size: 2.16rem;
  }

  html[lang="en"] h1 {
    font-size: 1.98rem;
  }

  .hero-art {
    min-height: 505px;
  }

  .phone-session {
    width: min(88vw, 286px);
  }

  .current-card {
    padding: 12px;
  }

  .nav-pill {
    padding-inline: 9px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
