@import url("https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800&family=Lexend+Deca:wght@400;500;600;700&family=Manrope:wght@500;600;700;800&family=Nunito+Sans:wght@700;800;900&family=Onest:wght@400;500;600;700;800&display=swap");

:root {
  --bg: #fff8f2;
  --bg-2: #f4e7df;
  --surface: #fffdf8;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: #fff;
  --ink: #2c232d;
  --muted: #7d707f;
  --line: rgba(44, 35, 45, 0.14);
  --accent: #c75f99;
  --accent-2: #637a68;
  --accent-3: #f2b66d;
  --danger: #e06d6d;
  --white: #fff;
  --shadow: 0 22px 64px rgba(44, 35, 45, 0.12);
}

/* GNight-style landing refresh */
:root {
  --night: #071321;
  --night-2: #0f1b2e;
  --pink: #c75f99;
  --pink-soft: #f4d6e7;
  --mist: #f8edf6;
  --cream: #fffaf4;
  --hero-drift-x: 0px;
  --hero-drift-y: 0px;
  --hero-breath-x: 0px;
  --hero-breath-y: 0px;
  --hero-scale: 1.055;
  --display-font: "Nunito Sans", "Manrope", "Onest", "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --text-font: "Onest", "DM Sans", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

@property --hero-breath-x {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --hero-breath-y {
  syntax: "<length>";
  inherits: true;
  initial-value: 0px;
}

@property --hero-scale {
  syntax: "<number>";
  inherits: true;
  initial-value: 1.055;
}

body.landing-page {
  background: #fff;
}

body.landing-page main {
  padding: 0;
  overflow: hidden;
}

.top-links,
.top-cta {
  display: none;
}

@media (min-width: 900px) {
  .top-links {
    display: inline-flex;
    align-items: center;
    gap: 34px;
    margin-left: auto;
    font-weight: 800;
  }

  .top-links a {
    position: relative;
    color: inherit;
    text-decoration: none;
  }

  .top-links a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -8px;
    height: 2px;
    background: currentColor;
    transform: scaleX(0);
    transform-origin: left;
    transition: transform 220ms ease;
  }

  .top-links a:hover::after {
    transform: scaleX(1);
  }

  .top-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 24px;
    background: var(--pink);
    color: #fff;
    font-weight: 800;
    text-decoration: none;
    box-shadow: 0 18px 34px rgba(199, 95, 153, 0.24);
    transition: transform 180ms ease, background 180ms ease;
  }

  .top-cta:hover {
    background: #b74f8b;
    transform: translateY(-2px);
  }

  .landing-page .nav-menu {
    display: none;
  }
}

body.landing-page .topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  max-width: none;
  padding: 27px clamp(34px, 5vw, 70px);
  border: 0;
  background: transparent;
  color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: none;
}

body.landing-page.is-scrolled .topbar {
  padding: 27px clamp(34px, 5vw, 70px);
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.brand {
  transition: transform 180ms ease;
}

.brand:hover {
  transform: translateY(-1px);
}

.gnight-hero {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 100svh;
  width: 100%;
  margin: 0;
  padding: 148px clamp(24px, 6vw, 84px) 72px;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: #fff;
}

.gnight-hero::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -3;
  background: url("/static/images/gnight/hero-main-wide.png") center center / cover no-repeat;
  transform: scale(1.055);
  filter: none;
  transition: none;
  will-change: transform;
}

.gnight-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 13, 23, 0.74) 0%, rgba(6, 13, 23, 0.36) 43%, rgba(6, 13, 23, 0.04) 100%),
    linear-gradient(0deg, rgba(6, 13, 23, 0.30) 0%, rgba(6, 13, 23, 0.08) 48%, rgba(6, 13, 23, 0) 100%);
}

.hero-copy {
  width: min(100%, 1060px);
  animation: heroRise 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

.gnight-hero .eyebrow,
.landing-section .eyebrow,
.landing-band .eyebrow {
  color: var(--pink);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
}

.gnight-hero .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.gnight-hero h1 {
  display: grid;
  gap: 0;
  max-width: 1050px;
  margin: 22px 0 28px;
  color: #fff;
  font-family: var(--display-font);
  font-size: 126px;
  font-weight: 700;
  line-height: 0.91;
  letter-spacing: 0;
  text-wrap: balance;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.gnight-hero h1 span {
  display: block;
}

.hero-row {
  display: grid;
  grid-template-columns: 156px minmax(0, 500px);
  align-items: center;
  gap: 28px;
}

.hero-play {
  position: relative;
  display: grid;
  width: 104px;
  height: 104px;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.10)),
    url("/static/images/gnight/sleep-ritual.jpg") center / cover;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.26);
  text-decoration: none;
  animation: floatSoft 4.8s ease-in-out infinite;
}

.hero-play::before {
  content: "";
  position: absolute;
  inset: -10px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: inherit;
  animation: pulseRing 2.4s ease-out infinite;
}

.hero-play span {
  width: 0;
  height: 0;
  margin-left: 6px;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  border-left: 16px solid #fff;
  filter: drop-shadow(0 3px 8px rgba(0, 0, 0, 0.24));
}

.gnight-hero .lead {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 21px;
  line-height: 1.58;
}

.gnight-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.gnight-hero .button {
  min-height: 52px;
  border-radius: 0;
  padding: 0 24px;
}

.gnight-hero .button.primary {
  border-color: var(--pink);
  background: var(--pink);
}

.gnight-hero .button.ghost {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.hero-social {
  position: absolute;
  right: clamp(28px, 4vw, 74px);
  bottom: 70px;
  z-index: 2;
  display: grid;
  gap: 12px;
  justify-items: end;
}

.hero-social a {
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  text-decoration: none;
  text-transform: uppercase;
  transition: color 180ms ease, transform 180ms ease;
}

.hero-social a:hover {
  color: var(--pink-soft);
  transform: translateX(-4px);
}

.hero-tools {
  position: fixed;
  right: 0;
  top: 44%;
  z-index: 55;
  display: grid;
}

.hero-tools a {
  display: grid;
  width: 58px;
  height: 62px;
  place-items: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.28);
  background: var(--pink);
  color: #fff;
  font-size: 22px;
  font-weight: 900;
  text-decoration: none;
  transition: width 180ms ease, background 180ms ease;
}

.hero-tools a:hover {
  width: 70px;
  background: #b64e89;
}

.hero-cloud {
  position: absolute;
  left: 41%;
  bottom: -34px;
  z-index: -1;
  width: min(30vw, 420px);
  min-width: 220px;
  opacity: 0.55;
  filter: blur(0.2px);
  animation: cloudDrift 13s ease-in-out infinite;
}

.landing-section {
  position: relative;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1fr);
  gap: clamp(48px, 8vw, 110px);
  align-items: center;
  width: min(100% - 42px, 1120px);
  margin: 0 auto;
  padding: 118px 0;
}

.landing-photo {
  margin: 0;
  overflow: hidden;
}

.landing-photo img,
.program-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 700ms ease;
}

.landing-photo:hover img,
.program-preview:hover img {
  transform: scale(1.04);
}

.tall-photo {
  height: 560px;
}

.landing-copy h2,
.landing-band h2 {
  margin: 14px 0 26px;
  color: #211829;
  font-size: 50px;
  font-weight: 700;
  line-height: 1.04;
  letter-spacing: 0;
}

.landing-copy p {
  max-width: 560px;
  color: #6f6574;
  font-size: 18px;
}

.landing-copy .button {
  margin-top: 18px;
  border-radius: 0;
}

.landing-band {
  position: relative;
  overflow: hidden;
  padding: 110px clamp(22px, 5vw, 70px) 120px;
  background: linear-gradient(180deg, #fff7fb 0%, #fbedf8 100%);
}

.landing-band .section-heading {
  position: relative;
  z-index: 1;
  width: min(100%, 800px);
  margin: 0 auto 44px;
  text-align: center;
}

.landing-band .features {
  position: relative;
  z-index: 1;
  margin-top: 0;
}

.landing-band .features article {
  min-height: 300px;
  padding: 34px 30px;
  border-radius: 0;
  background: #fff;
  box-shadow: 0 24px 60px rgba(34, 24, 41, 0.10);
  transition: transform 240ms ease, box-shadow 240ms ease;
}

.landing-band .features article:hover {
  transform: translateY(-8px);
  box-shadow: 0 32px 74px rgba(34, 24, 41, 0.15);
}

.feature-number {
  display: inline-block;
  margin-bottom: 70px;
  color: var(--pink);
  font-weight: 900;
}

.landing-band .features h3 {
  font-size: 25px;
  line-height: 1.1;
}

.landing-band .features p {
  color: #786c7d;
}

.band-cloud {
  position: absolute;
  pointer-events: none;
  opacity: 0.42;
}

.band-cloud-one {
  top: -52px;
  right: -40px;
  width: 420px;
}

.band-cloud-two {
  left: -90px;
  bottom: -68px;
  width: 480px;
  transform: scaleX(-1);
}

.landing-program {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1.18fr);
}

.button.ghost.dark {
  background: #211829;
  color: #fff;
}

.program-preview {
  position: relative;
  min-height: 430px;
  overflow: hidden;
  background: var(--night);
  color: #fff;
}

.program-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(7, 13, 22, 0.72), transparent 56%);
}

.program-preview div {
  position: absolute;
  left: 30px;
  right: 30px;
  bottom: 28px;
  z-index: 1;
  display: grid;
  gap: 8px;
}

.program-preview span {
  color: var(--pink-soft);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.program-preview b {
  max-width: 520px;
  font-size: 34px;
  line-height: 1.06;
}

body.has-motion [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 680ms ease, transform 680ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

body.has-motion [data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

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

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@keyframes pulseRing {
  0% {
    opacity: 0.75;
    transform: scale(0.86);
  }
  100% {
    opacity: 0;
    transform: scale(1.24);
  }
}

@keyframes cloudDrift {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(28px);
  }
}

@media (max-width: 1180px) {
  .gnight-hero h1 {
    font-size: 96px;
  }

  .hero-social {
    display: none;
  }
}

@media (max-width: 760px) {
  body.landing-page .topbar {
    padding: 18px 20px;
  }

  body.landing-page.is-scrolled .topbar {
    padding: 18px 20px;
  }

  .gnight-hero {
    min-height: 100svh;
    padding: 118px 20px 44px;
  }

  .gnight-hero::before {
    background-position: 58% center;
  }

  .gnight-hero h1 {
    margin-top: 18px;
    font-size: 54px;
    line-height: 0.98;
  }

  .hero-row {
    grid-template-columns: 86px minmax(0, 1fr);
    gap: 18px;
  }

  .hero-play {
    width: 76px;
    height: 76px;
  }

  .gnight-hero .lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .gnight-hero .actions {
    display: grid;
  }

  .hero-tools {
    display: none;
  }

  .hero-cloud {
    left: 22%;
    bottom: -20px;
    width: 240px;
    min-width: 0;
  }

  .landing-section,
  .landing-program {
    grid-template-columns: 1fr;
    width: min(100% - 32px, 560px);
    gap: 28px;
    padding: 64px 0;
  }

  .tall-photo {
    height: 360px;
  }

  .landing-copy h2,
  .landing-band h2 {
    font-size: 36px;
  }

  .landing-band {
    padding: 70px 16px 78px;
  }

  .landing-band .section-heading {
    text-align: left;
  }

  .landing-band .features article {
    min-height: auto;
  }

  .feature-number {
    margin-bottom: 40px;
  }

  .program-preview {
    min-height: 320px;
  }

  .program-preview b {
    font-size: 26px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }

  body.has-motion [data-reveal] {
    opacity: 1;
    transform: none;
  }
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

html {
  min-height: 100%;
  background: var(--bg);
  color-scheme: light;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  font-family: var(--text-font);
  background:
    radial-gradient(circle at 12% 16%, rgba(199, 95, 153, 0.11) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 12%, rgba(242, 182, 109, 0.14) 0 1px, transparent 2px),
    linear-gradient(135deg, #fff8f2 0%, #f7e8df 48%, #eef2e5 100%);
  background-attachment: scroll;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px 22px;
  background: rgba(255, 248, 242, 0.86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.landing-page .topbar {
  position: absolute;
  left: 0;
  right: 0;
  max-width: none;
  padding: 26px clamp(20px, 5vw, 70px);
  border-bottom: 0;
  background: transparent;
  color: #fff;
}

.brand,
.nav a,
.link-button,
.back-link {
  text-decoration: none;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0;
  font-family: var(--display-font);
  font-weight: 900;
  letter-spacing: 0;
}

.brand-raster {
  position: relative;
  display: block;
  width: 150px;
  aspect-ratio: 669 / 324;
  flex: 0 0 auto;
}

.brand-logo {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.brand-logo-inverse {
  display: none;
}

.brand-name {
  display: inline-flex;
  align-items: baseline;
  font-size: 25px;
  font-weight: 900;
  line-height: 1;
  color: currentColor;
  letter-spacing: 0;
}

.brand-letter {
  color: var(--pink);
}

body.landing-page .brand-logo-regular {
  display: none;
}

body.landing-page .brand-logo-inverse {
  display: block;
}

@media (max-width: 560px) {
  .brand-raster {
    width: 126px;
  }
}

.nav-menu {
  position: relative;
}

.nav-menu summary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  cursor: pointer;
  list-style: none;
}

.landing-page .nav-menu summary {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(44, 35, 45, 0.26);
  color: #fff;
}

.nav-menu summary::-webkit-details-marker {
  display: none;
}

.nav {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  display: grid;
  width: 220px;
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(44, 35, 45, 0.96);
  box-shadow: var(--shadow);
}

.nav a,
.link-button {
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.nav a:hover,
.link-button:hover {
  background: rgba(255, 255, 255, 0.10);
}

main {
  width: 100%;
  padding: 26px 16px 72px;
}

h1,
h2,
h3,
p {
  overflow-wrap: anywhere;
}

h1 {
  margin: 8px 0 12px;
  font-family: var(--display-font);
  font-size: 34px;
  font-weight: 500;
  line-height: 1.04;
  letter-spacing: 0;
}

h2 {
  margin: 0 0 10px;
  font-family: var(--display-font);
  font-size: 20px;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: 0;
}

h3 {
  margin: 0 0 8px;
}

p {
  line-height: 1.5;
}

.app-screen,
.narrow,
.questionnaire,
.lesson-page,
.vk-shell {
  position: relative;
  width: min(100%, 560px);
  margin: 0 auto;
}

.home-screen,
.program-screen {
  width: min(100%, 1120px);
}

.screen-kicker,
.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.muted,
.program-step span,
.entry-metrics,
.tag-row,
.features p {
  color: var(--muted);
}

.lead {
  color: var(--muted);
  font-size: 18px;
}

.home-screen h1 {
  padding-right: 0;
}

.wellness-split {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  gap: clamp(28px, 6vw, 76px);
  align-items: center;
  margin: clamp(26px, 6vh, 70px) 0 46px;
}

.wellness-copy h1 {
  max-width: 560px;
  font-size: clamp(48px, 6.4vw, 78px);
  line-height: 1.02;
}

.wellness-lead {
  max-width: 480px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.58;
}

.wellness-split .sleep-graphic {
  min-height: 520px;
  margin: 0;
}

.sleep-graphic {
  position: relative;
  min-height: 250px;
  margin: 0 0 24px;
  overflow: hidden;
  border: 1px solid rgba(44, 35, 45, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(22, 27, 38, 0.60), rgba(22, 27, 38, 0.08) 58%),
    url("/static/images/lunasha-sleep-hero.jpg") center 44% / cover;
  box-shadow: var(--shadow);
  isolation: isolate;
}

.sleep-graphic::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent 48%),
    linear-gradient(0deg, rgba(44, 35, 45, 0.18), transparent 50%);
  z-index: 0;
}

.sleep-graphic::after {
  content: "Лунаша";
  position: absolute;
  left: 22px;
  bottom: 18px;
  color: #fff;
  font-family: var(--display-font);
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  z-index: 2;
}

.sleep-moon,
.sleep-cloud,
.sleep-hill,
.sleep-window {
  position: absolute;
  display: none;
}

.sleep-moon {
  top: 24px;
  right: 34px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #fff9d4 0 18%, #f4c76f 72%);
  box-shadow: 0 0 34px rgba(244, 199, 111, 0.30);
  z-index: 3;
}

.sleep-moon::after {
  content: "";
  position: absolute;
  right: 7px;
  top: 5px;
  width: 45px;
  height: 45px;
  border-radius: 50%;
  background: rgba(52, 35, 61, 0.62);
}

.sleep-cloud {
  height: 18px;
  border-radius: 999px;
  background: rgba(255, 246, 232, 0.24);
  z-index: 2;
}

.sleep-cloud::before,
.sleep-cloud::after {
  content: "";
  position: absolute;
  bottom: 4px;
  border-radius: 50%;
  background: inherit;
}

.sleep-cloud::before {
  left: 16px;
  width: 24px;
  height: 24px;
}

.sleep-cloud::after {
  right: 18px;
  width: 30px;
  height: 30px;
}

.cloud-one {
  left: 28px;
  top: 54px;
  width: 104px;
}

.cloud-two {
  right: 76px;
  top: 92px;
  width: 86px;
  opacity: 0.72;
}

.sleep-hill {
  bottom: -28px;
  border-radius: 50% 50% 0 0;
  z-index: 2;
}

.hill-back {
  left: -10%;
  width: 76%;
  height: 84px;
  background: linear-gradient(180deg, #315044, #1c3a35);
}

.hill-front {
  right: -16%;
  width: 82%;
  height: 104px;
  background: linear-gradient(180deg, #203d3b, #142d2e);
}

.sleep-window {
  right: 42px;
  bottom: 28px;
  width: 54px;
  height: 36px;
  border: 1px solid rgba(255, 229, 188, 0.32);
  border-radius: 7px;
  background: rgba(33, 26, 39, 0.82);
  box-shadow: 0 14px 24px rgba(9, 8, 18, 0.18);
  z-index: 4;
}

.sleep-window::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  width: 12px;
  height: 20px;
  border-radius: 4px;
  background: rgba(244, 199, 111, 0.82);
  box-shadow: 22px 0 0 rgba(244, 199, 111, 0.44);
}

.home-graphic {
  min-height: 260px;
}

.login-graphic {
  min-height: 520px;
}

.hero-graphic,
.strip-graphic {
  min-height: 250px;
}

.strip-graphic {
  margin-top: 14px;
}

.panel,
.hero-panel,
.form-card,
.disabled-card,
.program-step,
.entry,
.features article,
.lesson-text,
.video-box,
.price-card,
.status-card,
.test-result,
.lesson-chip,
.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.panel,
.form-card,
.entry,
.program-step,
.lesson-text,
.video-box,
.price-card,
.status-card,
.test-result,
.features article,
.hero-panel {
  padding: 18px;
}

.latest-card p,
.entry p,
.program-step p,
.status-card p,
.test-result p {
  margin: 8px 0 0;
}

.entry-date {
  color: var(--accent-2);
  font-weight: 700;
}

.flash-wrap {
  width: min(100%, 560px);
  margin: 14px auto 0;
  padding: 0 16px;
}

.flash {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.flash.success {
  border-color: rgba(136, 213, 189, 0.58);
}

.flash.warning {
  border-color: rgba(244, 199, 111, 0.68);
}

.button,
.small-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

.button.primary,
.small-button {
  border-color: var(--accent);
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 30px rgba(199, 95, 153, 0.22);
}

.button.vkid-button {
  border-color: #0077ff;
  background: linear-gradient(135deg, #0077ff, #2b8dff);
  color: #fff;
}

.button.ghost {
  background: rgba(255, 255, 255, 0.70);
  color: var(--ink);
}

.button:hover,
.small-button:hover {
  border-color: rgba(199, 95, 153, 0.55);
  transform: translateY(-1px);
}

.button:focus-visible,
.small-button:focus-visible,
.nav-menu summary:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(136, 213, 189, 0.68);
  outline-offset: 2px;
}

.button.full,
.app-actions form,
.app-actions a,
.app-actions button {
  width: 100%;
}

.button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.app-actions,
.entry-list,
.program-list,
.stack,
.test-answer-list {
  display: grid;
  gap: 12px;
}

.app-actions {
  margin-top: 18px;
}

.app-actions .button {
  justify-content: flex-start;
  min-height: 48px;
  padding: 0 14px 0 16px;
  text-align: left;
}

.app-actions .button::after {
  content: "\203A";
  margin-left: auto;
  color: var(--accent);
  font-size: 24px;
  line-height: 1;
}

.action-cards {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.action-card,
.action-card-form {
  min-width: 0;
}

.action-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 198px;
  width: 100%;
  padding: 24px;
  overflow: hidden;
  border: 1px solid rgba(199, 95, 153, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  font: inherit;
  text-align: left;
  text-decoration: none;
  box-shadow: 0 18px 44px rgba(44, 35, 45, 0.08);
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.action-card::after {
  content: "\203A";
  position: absolute;
  right: 22px;
  bottom: 18px;
  color: var(--accent);
  font-size: 30px;
  line-height: 1;
}

.action-card:hover {
  transform: translateY(-3px);
  border-color: rgba(199, 95, 153, 0.42);
  box-shadow: 0 24px 54px rgba(44, 35, 45, 0.14);
}

.action-card span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.action-card b {
  max-width: 230px;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.15;
}

.action-card small {
  max-width: 230px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.48;
}

.action-card-primary {
  background:
    linear-gradient(135deg, rgba(199, 95, 153, 0.94), rgba(151, 97, 221, 0.92)),
    var(--accent);
  color: #fff;
}

.action-card-primary span,
.action-card-primary b,
.action-card-primary small,
.action-card-primary::after {
  color: #fff;
}

.action-card-form {
  display: grid;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0;
}

.stats-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.stats-grid div {
  display: grid;
  gap: 6px;
  min-height: 86px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.80);
  box-shadow: 0 12px 28px rgba(44, 35, 45, 0.08);
}

.stats-grid span {
  color: var(--muted);
  font-size: 13px;
}

.stats-grid b {
  align-self: end;
  color: var(--accent);
  font-size: 26px;
  line-height: 1;
}

.form-card {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--ink);
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  font: inherit;
  padding: 12px;
}

textarea {
  min-height: 96px;
  resize: vertical;
}

select option {
  color: var(--ink);
}

input::placeholder,
textarea::placeholder {
  color: rgba(44, 35, 45, 0.38);
}

input[type="range"] {
  min-height: 28px;
  padding: 0;
  accent-color: var(--accent);
}

input[type="checkbox"],
input[type="radio"] {
  width: auto;
  min-height: 0;
  accent-color: var(--accent);
}

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

.form-section {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 248, 242, 0.76);
  padding: 0;
}

.form-section summary {
  padding: 14px;
  color: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.form-section[open] {
  padding: 0 14px 14px;
}

.form-section[open] summary {
  margin: 0 -14px 2px;
  border-bottom: 1px solid var(--line);
}

.checkbox-row,
.toggle-row,
.radio-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  align-items: start;
  gap: 9px;
}

.toggle-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-weight: 400;
}

.entry-head,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.entry-metrics,
.tag-row,
.lesson-actions,
.actions,
.login-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.lesson-actions .button {
  flex: 1 1 160px;
}

.program-screen .section-heading {
  max-width: 760px;
  margin: clamp(24px, 6vh, 68px) 0 22px;
}

.program-screen .section-heading h1 {
  font-size: clamp(48px, 8vw, 78px);
}

.program-screen .program-list {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
  margin-top: 26px;
}

.program-screen .program-step {
  position: relative;
  overflow: hidden;
  padding: 0;
  background: rgba(255, 255, 255, 0.90);
}

.program-screen .program-step::before {
  content: "";
  display: block;
  height: 190px;
  background: url("/static/images/lunasha-course-01.jpg") center / cover;
}

.program-screen .program-step:nth-child(3n + 2)::before {
  background-image: url("/static/images/lunasha-course-02.jpg");
}

.program-screen .program-step:nth-child(3n)::before {
  background-image: url("/static/images/lunasha-course-03.jpg");
}

.program-screen .program-step > span,
.program-screen .program-step h2,
.program-screen .program-step p {
  margin-left: 22px;
  margin-right: 22px;
}

.program-screen .program-step > span {
  display: block;
  margin-top: 22px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.program-screen .program-step h2 {
  margin-top: 8px;
  font-size: 24px;
}

.program-screen .program-step p {
  color: var(--muted);
}

.program-screen .lesson-actions {
  padding: 4px 22px 24px;
}

.program-screen .lesson-actions .button {
  min-height: 48px;
}

.quality-badge,
.tag-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(136, 213, 189, 0.13);
  color: var(--accent-2);
  padding: 5px 9px;
  font-weight: 800;
}

.history-metrics {
  display: grid;
  gap: 8px;
  margin: 14px 0 0;
}

.history-metrics div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 10px;
}

.history-metrics dt {
  color: var(--muted);
}

.history-metrics dd {
  margin: 0;
  font-weight: 800;
}

.back-link {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--muted);
}

.video-frame {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0b0a12;
  margin: 18px 0;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.lesson-text {
  max-height: 520px;
  overflow: auto;
  line-height: 1.65;
}

.lesson-text h2 {
  margin: 0 0 12px;
}

.lesson-text h3 {
  margin: 20px 0 8px;
  color: var(--accent);
  font-size: 18px;
}

.lesson-text p {
  margin: 0 0 12px;
}

.test-card,
.complete-card {
  margin-top: 18px;
}

.stars {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  color: rgba(255, 246, 232, 0.25);
  font-size: 22px;
}

.stars .filled {
  color: var(--accent);
}

.test-answer-list article,
.question-field {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.question-text {
  display: block;
  color: var(--accent-2);
  line-height: 1.45;
}

.wizard-progress {
  color: var(--accent);
  font-weight: 800;
}

.wizard-step {
  display: none;
  gap: 16px;
}

.wizard-step.is-active {
  display: grid;
}

.wizard-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.range-value {
  color: var(--accent);
  font-size: 28px;
  line-height: 1;
}

.compact-field {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 250, 238, 0.06);
  padding: 12px;
}

.hero {
  display: grid;
  position: relative;
  width: calc(100% + 32px);
  max-width: none;
  min-height: 100vh;
  margin: -26px -16px 0;
  align-items: end;
  overflow: hidden;
  padding: clamp(130px, 19vh, 220px) clamp(22px, 5vw, 78px) clamp(54px, 9vh, 104px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(14, 20, 30, 0.86), rgba(14, 20, 30, 0.36) 48%, rgba(14, 20, 30, 0.16)),
    url("/static/images/lunasha-sleep-hero.jpg") center 42% / cover;
}

.hero h1 {
  max-width: 960px;
  margin: 12px 0 22px;
  color: #fff;
  font-size: clamp(48px, 10vw, 128px);
  font-weight: 400;
  line-height: 0.98;
}

.hero-copy {
  position: relative;
  z-index: 1;
}

.hero .eyebrow {
  color: #fff;
}

.hero .lead {
  max-width: 620px;
  color: rgba(255, 255, 255, 0.82);
}

.hero .button.ghost {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hero .hero-panel {
  display: none;
}

.features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  width: min(100%, 1120px);
  margin: 34px auto 0;
}

.vk-panel {
  width: min(100%, 460px);
  display: grid;
  gap: 14px;
}

.login-screen {
  min-height: auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: clamp(22px, 5vw, 56px);
  width: min(100%, 1040px);
  padding-top: clamp(30px, 7vh, 70px);
}

.login-screen .sleep-graphic {
  grid-row: 1 / span 4;
  margin: 0;
}

.login-screen .screen-kicker,
.login-screen h1,
.login-screen > .muted,
.login-card {
  grid-column: 2;
}

.login-card {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.button-icon {
  display: inline-grid;
  width: 32px;
  height: 32px;
  place-items: center;
  margin-right: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.20);
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.telegram-login-slot {
  display: grid;
  justify-items: center;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

th,
td {
  padding: 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 13px;
  text-transform: uppercase;
}

.admin-wide {
  width: min(100%, 1180px);
  margin: 0 auto;
}

.admin-head,
.dashboard-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.admin-lessons,
.dashboard-grid,
.lesson-strip,
.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (max-width: 760px) {
  main {
    padding: 20px 14px 56px;
  }

  .topbar {
    max-width: none;
  }

  .landing-page .topbar {
    padding: 22px 20px;
  }

  .nav {
    right: -2px;
  }

  .form-grid,
  .check-grid,
  .stats-grid,
  .features,
  .hero,
  .wellness-split,
  .action-cards,
  .program-screen .program-list,
  .admin-lessons,
  .dashboard-grid,
  .lesson-strip,
  .quick-actions {
    grid-template-columns: 1fr;
  }

  .entry-head,
  .panel-head,
  .admin-head,
  .dashboard-head {
    display: grid;
  }

  .history-metrics div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .wizard-actions {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: 100vh;
    width: calc(100% + 28px);
    margin: -20px -14px 0;
    padding: 120px 22px 52px;
  }

  .hero h1 {
    font-size: clamp(44px, 14vw, 72px);
  }

  .login-screen {
    grid-template-columns: 1fr;
    gap: 18px;
    padding-top: 22px;
  }

  .login-screen .sleep-graphic,
  .login-screen .screen-kicker,
  .login-screen h1,
  .login-screen > .muted,
  .login-card {
    grid-column: auto;
    grid-row: auto;
  }

  .home-screen h1 {
    max-width: none;
    padding-right: 0;
  }

  .wellness-split {
    gap: 22px;
    margin: 20px 0 28px;
  }

  .wellness-copy h1,
  .program-screen .section-heading h1 {
    font-size: clamp(40px, 12vw, 54px);
  }

  .wellness-lead {
    font-size: 17px;
  }

  .sleep-graphic {
    min-height: 190px;
  }

  .home-graphic {
    min-height: 310px;
  }

  .login-graphic {
    min-height: 360px;
  }

  .wellness-split .sleep-graphic {
    min-height: 330px;
    order: -1;
  }

  .action-card {
    min-height: auto;
    padding: 22px;
  }

  .program-screen .section-heading {
    margin: 20px 0 14px;
  }

  .program-screen .program-list {
    gap: 16px;
    margin-top: 18px;
  }

  .program-screen .program-step::before {
    height: 160px;
  }

  .app-stats.two {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Final cascade for the GNight-style landing page. Keep this block last. */
body.landing-page {
  background: #fff;
}

body.landing-page main {
  padding: 0;
  overflow: hidden;
}

body.landing-page .topbar {
  position: absolute;
  inset: 0 0 auto;
  z-index: 50;
  max-width: none;
  margin: 0;
  padding: 27px clamp(34px, 5vw, 70px);
  border: 0;
  background: transparent;
  color: #fff;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  transition: none;
}

body.landing-page.is-scrolled .topbar {
  padding: 27px clamp(34px, 5vw, 70px);
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.hero.gnight-hero {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  align-items: end;
  min-height: 100svh;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 148px clamp(24px, 6vw, 84px) 72px;
  overflow: hidden;
  isolation: isolate;
  background: var(--night);
  color: #fff;
}

.hero.gnight-hero::before {
  content: "";
  position: absolute;
  inset: -24px;
  z-index: -3;
  background: url("/static/images/gnight/hero-main-wide.png") center center / cover no-repeat;
  transform: scale(1.055);
  filter: none;
  transition: none;
  will-change: transform;
}

.hero.gnight-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(6, 13, 23, 0.74) 0%, rgba(6, 13, 23, 0.36) 43%, rgba(6, 13, 23, 0.04) 100%),
    linear-gradient(0deg, rgba(6, 13, 23, 0.30) 0%, rgba(6, 13, 23, 0.08) 48%, rgba(6, 13, 23, 0) 100%);
}

.hero.gnight-hero .hero-copy {
  position: relative;
  z-index: 1;
  width: min(100%, 1060px);
}

.hero.gnight-hero .hero-copy[data-reveal] {
  opacity: 1;
  transform: none;
}

.hero.gnight-hero h1 {
  display: grid;
  gap: 0;
  max-width: 1050px;
  margin: 22px 0 28px;
  color: #fff;
  font-family: var(--display-font);
  font-size: clamp(94px, 7.45vw, 112px);
  font-weight: 700;
  line-height: 0.91;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
  text-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.hero.gnight-hero h1 span {
  display: block;
  overflow-wrap: normal;
  word-break: normal;
  transform-origin: left bottom;
}

.hero.gnight-hero .eyebrow {
  color: rgba(255, 255, 255, 0.88);
}

.hero.gnight-hero .lead {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.84);
  font-size: 21px;
  line-height: 1.58;
}

.hero.gnight-hero .button {
  min-height: 52px;
  border-radius: 0;
  padding: 0 24px;
}

.hero.gnight-hero .button.primary {
  border-color: var(--pink);
  background: var(--pink);
}

.hero.gnight-hero .button.ghost {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.10);
  color: #fff;
}

.hero.gnight-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

@media (min-width: 900px) {
  body.landing-page .nav-menu {
    display: none;
  }
}

@media (max-width: 1180px) {
  .hero.gnight-hero h1 {
    font-size: 78px;
  }
}

@media (max-width: 760px) {
  body.landing-page .topbar {
    padding: 18px 20px;
  }

  body.landing-page.is-scrolled .topbar {
    padding: 18px 20px;
  }

  .hero.gnight-hero {
    min-height: 100svh;
    width: 100%;
    margin: 0;
    padding: 118px 20px 44px;
  }

  .hero.gnight-hero::before {
    background-position: 82% center;
  }

  .hero.gnight-hero h1 {
    margin-top: 18px;
    font-size: 52px;
    line-height: 0.94;
  }

  .hero.gnight-hero .lead {
    font-size: 16px;
    line-height: 1.5;
  }

  .hero.gnight-hero .actions {
    display: grid;
  }
}

body.has-motion.is-ready .hero.gnight-hero::before {
  animation: none;
}

body.has-motion.is-ready .hero.gnight-hero .eyebrow,
body.has-motion.is-ready .hero.gnight-hero h1 span,
body.has-motion.is-ready .hero.gnight-hero .hero-row,
body.has-motion.is-ready .hero.gnight-hero .actions,
body.has-motion.is-ready .hero-social,
body.has-motion.is-ready .hero-tools {
  animation: heroLineRise 1050ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

body.has-motion.is-ready .hero.gnight-hero .eyebrow {
  animation-delay: 120ms;
}

body.has-motion.is-ready .hero.gnight-hero h1 span:nth-child(1) {
  animation-delay: 220ms;
}

body.has-motion.is-ready .hero.gnight-hero h1 span:nth-child(2) {
  animation-delay: 340ms;
}

body.has-motion.is-ready .hero.gnight-hero h1 span:nth-child(3) {
  animation-delay: 460ms;
}

body.has-motion.is-ready .hero.gnight-hero .hero-row {
  animation-delay: 640ms;
}

body.has-motion.is-ready .hero.gnight-hero .actions {
  animation-delay: 760ms;
}

body.has-motion.is-ready .hero-social,
body.has-motion.is-ready .hero-tools {
  animation-delay: 920ms;
}

body.has-motion.is-ready .hero-cloud {
  animation: cloudDrift 14s cubic-bezier(0.45, 0, 0.2, 1) infinite alternate;
}

@keyframes heroLineRise {
  from {
    opacity: 0;
    transform: translate3d(0, 0.58em, 0);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0);
  }
}

@keyframes heroPhotoBreath {
  0% {
    --hero-breath-x: -8px;
    --hero-breath-y: 0px;
    --hero-scale: 1.055;
  }
  100% {
    --hero-breath-x: 10px;
    --hero-breath-y: -8px;
    --hero-scale: 1.085;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.has-motion.is-ready .hero.gnight-hero::before,
  body.has-motion.is-ready .hero-cloud {
    animation: none;
  }
}

/* Public sleep animal quiz */
.sleep-animal-page {
  width: min(1120px, calc(100vw - 32px));
  margin: 0 auto;
  padding: 52px 0 80px;
}

.sleep-animal-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  gap: 28px;
  align-items: center;
  min-height: 330px;
  margin-bottom: 30px;
  padding: clamp(28px, 5vw, 56px);
  overflow: hidden;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(7, 19, 33, 0.78), rgba(7, 19, 33, 0.48)),
    radial-gradient(circle at 78% 34%, rgba(199, 95, 153, 0.42), transparent 28%),
    #071321;
  color: #fff;
}

.sleep-animal-hero h1 {
  max-width: 780px;
  margin: 0;
  font-family: var(--display-font);
  font-size: 78px;
  font-weight: 900;
  line-height: 0.96;
  letter-spacing: 0;
}

.sleep-animal-hero .lead {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
}

.sleep-animal-note {
  max-width: 690px;
  margin: 20px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  line-height: 1.55;
}

.sleep-animal-orbit {
  display: grid;
  width: 176px;
  height: 176px;
  place-items: center;
  justify-self: end;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  text-align: center;
}

.sleep-animal-orbit span {
  font-size: 34px;
  color: var(--pink-soft);
}

.sleep-animal-orbit b {
  margin-top: -22px;
  font-family: var(--display-font);
  font-size: 54px;
  line-height: 1;
}

.sleep-animal-orbit small {
  margin-top: -28px;
  color: rgba(255, 255, 255, 0.66);
  font-weight: 700;
}

.sleep-animal-form,
.sleep-result {
  display: grid;
  gap: 18px;
}

.animal-name-card {
  display: grid;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.animal-name-card label,
.diploma-controls label {
  color: var(--ink);
  font-weight: 900;
}

.animal-name-card input,
.diploma-controls input {
  width: 100%;
  height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(44, 35, 45, 0.16);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-weight: 700;
  outline: none;
}

.animal-name-card input:focus,
.diploma-controls input:focus {
  border-color: rgba(199, 95, 153, 0.64);
  box-shadow: 0 0 0 3px rgba(199, 95, 153, 0.14);
}

.animal-name-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.compact-heading {
  margin: 24px 0 4px;
  text-align: left;
}

.compact-heading h2 {
  max-width: 760px;
  margin: 0;
}

.animal-question {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 52px rgba(44, 35, 45, 0.08);
}

.animal-question legend {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 24px;
  font-weight: 900;
  line-height: 1.15;
}

.animal-question legend span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  place-items: center;
  border-radius: 999px;
  background: var(--pink);
  color: #fff;
  font-size: 15px;
}

.animal-question p {
  margin: 0;
  color: var(--muted);
}

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

.animal-options label {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 13px 14px;
  border: 1px solid rgba(44, 35, 45, 0.13);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.animal-options label:hover {
  transform: translateY(-1px);
  border-color: rgba(199, 95, 153, 0.45);
  box-shadow: 0 12px 28px rgba(44, 35, 45, 0.08);
}

.animal-options input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
}

.animal-options span {
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
}

.sleep-result {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 20px;
  margin: 0 0 34px;
  padding: clamp(24px, 4vw, 40px);
  border: 1px solid rgba(44, 35, 45, 0.08);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(255, 247, 238, 0.88)),
    #fff;
  box-shadow: 0 22px 64px rgba(44, 35, 45, 0.13);
}

.sleep-result-main {
  display: grid;
  align-content: start;
  gap: 14px;
}

.sleep-result-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.sleep-result-meta .eyebrow {
  margin: 0;
}

.sleep-result-meta span {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  padding: 6px 10px;
  border: 1px solid rgba(190, 151, 106, 0.35);
  border-radius: 999px;
  background: rgba(255, 248, 220, 0.82);
  color: #76602c;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.sleep-result-main h2 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.animal-title {
  display: inline-flex;
  width: fit-content;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(199, 95, 153, 0.12);
  color: var(--pink);
  font-weight: 900;
}

.result-intro {
  max-width: 720px;
  margin: 0;
}

.sleep-result-main p,
.sleep-result-grid p,
.sleep-result-grid li {
  color: var(--muted);
  line-height: 1.6;
}

.sleep-fact-card {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin-top: 6px;
  padding: 18px 20px;
  border: 1px solid rgba(34, 83, 91, 0.18);
  border-radius: 8px;
  background: rgba(234, 249, 247, 0.74);
}

.sleep-fact-card span,
.result-share-line span,
.sleep-result-grid article span {
  color: #2f7779;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.sleep-fact-card p {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  font-weight: 800;
  line-height: 1.5;
}

.animal-card {
  display: grid;
  align-content: center;
  justify-items: center;
  min-height: 260px;
  padding: 24px;
  border-radius: 8px;
  background: #071321;
  color: #fff;
  text-align: center;
}

.animal-emoji {
  display: grid;
  width: 92px;
  height: 92px;
  place-items: center;
  margin-bottom: 16px;
  border-radius: 999px;
  background: var(--pink);
  color: #fff8d6;
  font-size: 44px;
  font-weight: 900;
}

.animal-card b {
  font-family: var(--display-font);
  font-size: 26px;
  line-height: 1.05;
}

.animal-card p {
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.animal-art {
  width: 132px;
  height: 132px;
  margin-bottom: 16px;
}

.sleep-animal-illustration {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.art-moon {
  fill: #fff7d4;
}

.art-main {
  fill: #c75f99;
  stroke: #2c232d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.art-accent {
  fill: none;
  stroke: #2c232d;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.art-eye {
  fill: #2c232d;
}

.art-spot {
  fill: #978b54;
  opacity: 0.72;
}

.art-inner {
  fill: #ffe0ec;
}

.animal-card .art-moon {
  fill: rgba(255, 247, 212, 0.95);
}

.result-share-line {
  display: grid;
  grid-column: 1 / -1;
  gap: 6px;
  padding: 18px 20px;
  border: 1px dashed rgba(199, 95, 153, 0.36);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.result-share-line span {
  color: var(--pink);
}

.result-share-line p {
  margin: 0;
  color: var(--ink);
  font-family: var(--display-font);
  font-size: 26px;
  font-weight: 900;
  line-height: 1.12;
}

.sleep-result-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.sleep-result-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.sleep-result-grid h3 {
  margin: 0;
  font-family: var(--display-font);
  font-size: 22px;
}

.sleep-result-grid p {
  margin: 0;
}

.sleep-result-grid ul {
  margin: 0;
  padding-left: 20px;
}

.sleep-score-details {
  grid-column: 1 / -1;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
}

.sleep-score-details summary {
  cursor: pointer;
  font-weight: 900;
}

.score-bars {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.score-bars div {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 10px;
  align-items: center;
  padding-bottom: 10px;
}

.score-bars div::after,
.score-bars i {
  content: "";
  position: absolute;
  left: 0;
  right: 44px;
  bottom: 0;
  height: 6px;
  border-radius: 999px;
}

.score-bars div::after {
  background: rgba(44, 35, 45, 0.10);
}

.score-bars i {
  width: min(var(--score-width), 100%);
  background: var(--pink);
}

.score-bars span {
  color: var(--ink);
  font-weight: 700;
}

.score-bars b {
  text-align: right;
}

.sleep-result-actions {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 12px;
}

.sleep-diploma {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  margin-top: 2px;
}

.diploma-controls {
  display: flex;
  gap: 12px;
  align-items: end;
  justify-content: space-between;
}

.diploma-controls label {
  display: grid;
  flex: 1 1 340px;
  gap: 7px;
}

.diploma-controls .button {
  flex: 0 0 auto;
}

.diploma-paper {
  padding: 10px;
  border: 1px solid rgba(190, 151, 106, 0.35);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.88), rgba(255, 244, 223, 0.92)),
    #fff7e7;
  box-shadow: 0 18px 44px rgba(44, 35, 45, 0.10);
}

.diploma-border {
  position: relative;
  display: grid;
  gap: 24px;
  min-height: 470px;
  padding: 30px;
  border: 2px solid rgba(44, 35, 45, 0.72);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(199, 95, 153, 0.10), transparent 22%, transparent 78%, rgba(199, 95, 153, 0.10)),
    #fffaf0;
  color: var(--ink);
}

.diploma-border::before {
  content: "";
  position: absolute;
  inset: 8px;
  pointer-events: none;
  border: 1px solid rgba(44, 35, 45, 0.24);
  border-radius: 5px;
}

.diploma-topline,
.diploma-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  color: rgba(44, 35, 45, 0.58);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.diploma-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  gap: 28px;
  align-items: center;
}

.diploma-copy h3 {
  margin: 6px 0 18px;
  font-family: var(--display-font);
  font-size: 48px;
  line-height: 0.98;
}

.diploma-confirm,
.diploma-profile,
.diploma-rules p {
  margin: 0;
  color: rgba(44, 35, 45, 0.68);
  line-height: 1.55;
}

.diploma-name {
  display: block;
  margin: 8px 0;
  color: var(--pink);
  font-family: var(--display-font);
  font-size: 44px;
  font-weight: 900;
  line-height: 1;
}

.diploma-animal-name {
  display: block;
  margin: 6px 0 14px;
  font-family: var(--display-font);
  font-size: 30px;
  line-height: 1.05;
}

.diploma-seal {
  display: grid;
  justify-items: center;
  gap: 8px;
  text-align: center;
}

.diploma-seal .sleep-animal-illustration {
  width: 172px;
  max-width: 100%;
}

.diploma-seal span {
  color: rgba(44, 35, 45, 0.62);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.diploma-rules {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px dashed rgba(44, 35, 45, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.46);
}

.diploma-rules ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

@media (max-width: 1080px) {
  .sleep-animal-hero h1 {
    font-size: 62px;
  }

  .sleep-result-main h2 {
    font-size: 44px;
  }
}

@media (max-width: 820px) {
  .sleep-animal-page {
    width: min(100% - 20px, 640px);
    padding: 18px 0 52px;
  }

  .sleep-animal-hero,
  .sleep-result {
    grid-template-columns: 1fr;
  }

  .sleep-animal-hero {
    gap: 18px;
    min-height: 0;
    margin-bottom: 18px;
    padding: 22px 18px;
  }

  .sleep-animal-hero h1 {
    font-size: 40px;
    line-height: 1;
  }

  .sleep-animal-hero .lead {
    font-size: 14px;
    line-height: 1.45;
  }

  .sleep-animal-note {
    margin-top: 14px;
    font-size: 12px;
    line-height: 1.45;
  }

  .sleep-animal-orbit {
    justify-self: start;
    width: 112px;
    height: 112px;
  }

  .sleep-animal-orbit span {
    font-size: 24px;
  }

  .sleep-animal-orbit b {
    margin-top: -16px;
    font-size: 40px;
  }

  .sleep-animal-orbit small {
    margin-top: -22px;
    font-size: 11px;
  }

  .animal-options,
  .sleep-result-grid {
    grid-template-columns: 1fr;
  }

  .compact-heading {
    margin-top: 12px;
  }

  .compact-heading h2 {
    font-size: 24px;
    line-height: 1.12;
  }

  .animal-question {
    gap: 12px;
    padding: 16px 14px;
  }

  .animal-name-card {
    padding: 16px 14px;
  }

  .animal-question legend {
    gap: 9px;
    font-size: 18px;
    line-height: 1.18;
  }

  .animal-question legend span {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .animal-question p {
    font-size: 13px;
    line-height: 1.45;
  }

  .animal-options {
    gap: 7px;
  }

  .animal-options label {
    min-height: 0;
    padding: 10px 11px;
    border-radius: 7px;
  }

  .animal-options span {
    font-size: 13px;
    line-height: 1.3;
  }

  .sleep-result {
    gap: 14px;
    margin-bottom: 22px;
    padding: 18px 14px;
  }

  .sleep-result-main h2 {
    font-size: 31px;
    line-height: 1.02;
  }

  .sleep-result-meta {
    gap: 7px;
  }

  .sleep-result-meta span {
    min-height: 27px;
    padding: 5px 8px;
    font-size: 10px;
    line-height: 1.15;
  }

  .animal-title {
    font-size: 13px;
    line-height: 1.2;
  }

  .result-intro {
    font-size: 14px;
    line-height: 1.5;
  }

  .sleep-fact-card,
  .result-share-line {
    padding: 14px;
  }

  .sleep-fact-card p {
    font-size: 15px;
    line-height: 1.45;
  }

  .result-share-line p {
    font-size: 21px;
    line-height: 1.12;
  }

  .animal-card {
    min-height: 0;
    padding: 18px;
  }

  .animal-emoji {
    width: 64px;
    height: 64px;
    margin-bottom: 12px;
    font-size: 30px;
  }

  .animal-card b {
    font-size: 22px;
  }

  .animal-art {
    width: 104px;
    height: 104px;
  }

  .sleep-result-grid article {
    padding: 16px;
  }

  .sleep-result-grid h3 {
    font-size: 20px;
  }

  .sleep-result-actions {
    display: grid;
  }

  .diploma-controls,
  .diploma-topline,
  .diploma-footer {
    display: grid;
  }

  .diploma-border {
    gap: 18px;
    min-height: 0;
    padding: 22px 16px;
  }

  .diploma-layout {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .diploma-copy h3 {
    font-size: 34px;
  }

  .diploma-name {
    font-size: 31px;
  }

  .diploma-animal-name {
    font-size: 24px;
  }

  .diploma-seal {
    justify-items: start;
  }

  .diploma-seal .sleep-animal-illustration {
    width: 118px;
  }

  .diploma-rules {
    padding: 14px;
  }
}

@media (max-width: 370px) {
  .sleep-animal-page {
    width: min(100% - 14px, 640px);
  }

  .sleep-animal-hero {
    padding: 19px 15px;
  }

  .sleep-animal-hero h1 {
    font-size: 32px;
  }

  .animal-question {
    padding: 14px 11px;
  }

  .animal-question legend {
    font-size: 17px;
  }

  .sleep-result-main h2 {
    font-size: 28px;
  }

  .result-share-line p {
    font-size: 19px;
  }

  .animal-options label {
    padding: 9px 10px;
  }

  .animal-options span {
    font-size: 12px;
  }

  .diploma-paper {
    padding: 7px;
  }

  .diploma-border {
    padding: 18px 12px;
  }

  .diploma-copy h3 {
    font-size: 30px;
  }

  .diploma-name {
    font-size: 27px;
  }
}

@media print {
  body {
    background: #fff;
  }

  body * {
    visibility: hidden;
  }

  .sleep-diploma,
  .sleep-diploma * {
    visibility: visible;
  }

  .sleep-diploma {
    position: absolute;
    inset: 0;
    margin: 0;
    padding: 0;
  }

  .diploma-controls {
    display: none;
  }

  .diploma-paper {
    border: 0;
    box-shadow: none;
  }
}
