@font-face {
  font-family: "Walter Turncoat";
  src: url("./assets/fonts/WalterTurncoat-Regular.ttf") format("truetype");
  font-weight: 400;
}

@font-face {
  font-family: "Nunito";
  src: url("./assets/fonts/Nunito-Black.ttf") format("truetype");
  font-weight: 900;
}

@font-face {
  font-family: "Nunito";
  src: url("./assets/fonts/Nunito-SemiBold.ttf") format("truetype");
  font-weight: 600;
}

:root {
  --ink: #1a1a1a;
  --paper: #fffdf6;
  --cream: #fcfaf0;
  --yellow: #fcd108;
  --yellow-soft: #ffe26a;
  --blue: #84bae8;
  --blue-deep: #4a7fb0;
  --night: #0e1b2e;
  --coral: #ff6961;
  --green: #74c69d;
  --line: 3px solid var(--ink);
  --shadow: 8px 8px 0 var(--ink);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 600;
}

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

.site-header {
  position: fixed;
  z-index: 20;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 16px clamp(18px, 4vw, 48px);
  background: rgba(255, 253, 246, 0.88);
  border-bottom: var(--line);
  backdrop-filter: blur(14px);
}

.brand,
nav {
  display: flex;
  align-items: center;
}

.brand {
  gap: 10px;
  font-family: "Walter Turncoat", cursive;
  font-size: 26px;
}

.brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

nav {
  gap: clamp(12px, 3vw, 28px);
  font-size: 14px;
}

.nav-cta {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.hero {
  display: grid;
  align-items: center;
  min-height: 90svh;
  padding: clamp(150px, 18vh, 210px) clamp(22px, 6vw, 80px) clamp(120px, 16vh, 180px);
  background: var(--yellow);
}

.hero-inner {
  display: grid;
  grid-template-columns: minmax(0, 620px) minmax(240px, 360px);
  align-items: center;
  justify-content: center;
  gap: clamp(36px, 6vw, 80px);
  width: min(100%, 1120px);
  margin: 0 auto;
}

.hero-content {
  width: 100%;
}

#hero-title {
  margin-left: -0.02em;
  font-size: clamp(46px, 6.6vw, 88px);
  line-height: 1.02;
  max-width: 12ch;
}

.hero-art {
  display: flex;
  justify-content: center;
  width: 100%;
}

.hero-art img {
  display: block;
  width: 100%;
  max-width: 360px;
  aspect-ratio: 1;
  object-fit: contain;
  border: var(--line);
  border-radius: 22%;
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--blue-deep);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

h1,
h2,
h3 {
  margin: 0;
  line-height: 0.98;
}

h1,
h2 {
  font-family: "Walter Turncoat", cursive;
  font-weight: 400;
}

h1 {
  font-size: clamp(118px, 12vw, 176px);
}

h2 {
  font-size: clamp(40px, 7vw, 80px);
}

h3 {
  font-size: 23px;
}

.hero-copy {
  max-width: 570px;
  margin: 20px 0 0;
  font-size: clamp(22px, 2.2vw, 29px);
  line-height: 1.18;
  font-weight: 900;
}

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

.hero-note {
  margin: 16px 0 0;
  font-size: 15px;
  font-weight: 900;
  color: rgba(26, 26, 26, 0.62);
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 14px 20px;
  border: var(--line);
  border-radius: 8px;
  box-shadow: 5px 5px 0 var(--ink);
  font-weight: 900;
}

.button.primary {
  background: var(--ink);
  color: white;
}

.button.secondary {
  background: var(--paper);
}

.app-store-badge-link {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border-radius: 10px;
  box-shadow: 5px 5px 0 var(--ink);
  line-height: 0;
}

.app-store-badge {
  display: block;
  width: 178px;
  height: auto;
}

.nav-cta .app-store-badge {
  width: 150px;
}

.nav-cta.app-store-badge-link {
  box-shadow: none;
}

.night-section .app-store-badge-link {
  margin-top: 18px;
  box-shadow: 5px 5px 0 var(--yellow-soft);
}

.quick-panel,
.feature-band,
.split-feature,
.night-section {
  padding: clamp(56px, 9vw, 110px) clamp(22px, 6vw, 80px);
}

.quick-panel {
  background: var(--blue);
  border-top: var(--line);
  border-bottom: var(--line);
}

.quick-panel-inner {
  display: grid;
  grid-template-columns: minmax(260px, 420px) minmax(0, 1fr);
  align-items: center;
  gap: clamp(34px, 7vw, 92px);
  width: min(100%, 1120px);
  margin: 0 auto;
}

.phone-stack {
  position: relative;
  display: grid;
  width: min(100%, 390px);
  min-height: 706px;
  align-items: start;
  justify-items: center;
}

.phone-stack .phone-frame {
  grid-area: 1 / 1;
  width: 100%;
  max-width: 390px;
  opacity: 0;
  pointer-events: none;
  transform: translateX(22px) scale(0.985);
  transition: opacity 1.15s ease, transform 1.15s ease;
}

.phone-stack:not([data-active]) .setup-phone,
.phone-stack[data-active="day"] .setup-phone,
.phone-stack[data-active="night"] .night-phone,
.phone-stack[data-active="pin"] .pin-phone {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.phone-stack[data-active="night"] .setup-phone,
.phone-stack[data-active="pin"] .setup-phone,
.phone-stack[data-active="pin"] .night-phone {
  transform: translateX(-22px) scale(0.985);
}

.phone-frame {
  width: min(100%, 390px);
  padding: 14px;
  background: var(--ink);
  border-radius: 36px;
  box-shadow: var(--shadow);
}

.phone-screen {
  height: 620px;
  position: relative;
  overflow: hidden;
  padding: 24px 20px 104px;
  background: var(--yellow);
  border-radius: 26px;
}

@media (prefers-reduced-motion: reduce) {
  .phone-stack .phone-frame {
    transition: none;
  }

  .copy-panel {
    transition: none;
  }
}

.phone-mode-controls {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.phone-mode-controls button {
  min-height: 38px;
  padding: 8px 14px;
  border: 2px solid var(--ink);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.phone-mode-controls button[aria-pressed="true"] {
  background: var(--ink);
  color: white;
}

.setup-phone,
.night-phone {
  box-shadow: 8px 8px 0 var(--blue-deep);
}

.night-screen {
  background: var(--night);
  color: white;
}

.night-top {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.night-top strong {
  color: var(--yellow);
  font-family: "Walter Turncoat", cursive;
  font-size: 28px;
  letter-spacing: 1px;
}

.night-moon-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 3px solid white;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.2);
}

.night-moon-icon {
  width: 22px;
  height: 22px;
  overflow: visible;
}

.night-moon-icon path {
  fill: var(--yellow);
  stroke: white;
  stroke-width: 2;
  stroke-linejoin: round;
}

.night-center {
  position: relative;
  z-index: 2;
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 22px;
}

.night-center img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  margin-bottom: -8px;
}

.night-center h3 {
  margin: 0;
  color: var(--yellow);
  font-family: "Walter Turncoat", cursive;
  font-size: 34px;
  font-weight: 400;
}

.night-center p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-family: "Walter Turncoat", cursive;
  font-size: 13px;
  letter-spacing: 1.4px;
}

.night-center strong {
  margin-top: 8px;
  color: var(--yellow);
  font-family: "Walter Turncoat", cursive;
  font-size: 44px;
  font-weight: 400;
  line-height: 1;
}

.night-center > span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 900;
}

.night-progress {
  width: 78%;
  height: 14px;
  margin-top: 22px;
  padding: 3px;
  border: 2px solid white;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
}

.night-progress i {
  display: block;
  width: 38%;
  height: 100%;
  border-radius: 999px;
  background: var(--yellow);
}

.dreaming-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 26px;
}

.dreaming-row em {
  color: rgba(255, 255, 255, 0.7);
  font-family: "Walter Turncoat", cursive;
  font-size: 13px;
  font-style: normal;
}

.dream-app {
  position: relative;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  opacity: 0.6;
}

.dream-app img {
  width: 54%;
  height: 54%;
  object-fit: contain;
  filter: invert(1);
  transform: translateY(-1.5px);
}

.dream-app b {
  position: absolute;
  top: -8px;
  right: -4px;
  color: var(--yellow);
  font-size: 10px;
}

.night-footer {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  display: grid;
  place-items: center;
}

.night-footer span {
  min-height: 46px;
  padding: 12px 16px;
  border: var(--line);
  border-radius: 8px;
  background: white;
  color: var(--ink);
  font-family: "Walter Turncoat", cursive;
  font-size: 18px;
}

.pin-phone {
  box-shadow: 8px 8px 0 var(--blue-deep);
}

.pin-screen {
  display: flex;
  flex-direction: column;
  padding: 20px 20px 18px;
  background: var(--night);
  color: white;
}

.pin-top {
  display: flex;
  min-height: 38px;
}

.pin-close {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 3px solid white;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 3px 3px 0 rgba(255, 255, 255, 0.2);
  color: white;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
}

.pin-content {
  display: grid;
  justify-items: center;
  text-align: center;
  padding-top: 18px;
}

.pin-content img {
  width: 104px;
  height: 104px;
  object-fit: contain;
}

.pin-content h3 {
  margin: 8px 0 0;
  color: var(--yellow);
  font-family: "Walter Turncoat", cursive;
  font-size: 30px;
  font-weight: 400;
}

.pin-content p {
  margin: 4px 0 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 900;
}

.pin-dots {
  display: flex;
  gap: 18px;
  margin-top: 16px;
}

.pin-dots span {
  width: 18px;
  height: 18px;
  border: 2px solid white;
  border-radius: 50%;
}

.pin-keypad {
  display: grid;
  grid-template-columns: repeat(3, 52px);
  justify-content: center;
  gap: 8px 22px;
  margin-top: auto;
  padding-top: 14px;
}

.pin-keypad span {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 2px solid white;
  border-radius: 50%;
  color: white;
  font-family: "Walter Turncoat", cursive;
  font-size: 28px;
}

.pin-keypad span:empty {
  border-color: transparent;
}

.pin-delete {
  border-color: transparent !important;
  font-family: var(--font-body) !important;
  font-size: 22px !important;
}

.pin-forgot {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.62);
  text-align: center;
  font-size: 14px;
  font-weight: 900;
}

.night-star,
.night-dot {
  position: absolute;
  z-index: 1;
  background: white;
}

.night-star {
  width: 14px;
  height: 14px;
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
}

.ns-one { top: 34px; right: 64px; }
.ns-two { top: 82px; left: 42px; background: var(--yellow); }
.ns-three { top: 184px; right: 26px; width: 17px; height: 17px; }

.night-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
}

.nd-one { top: 52px; left: 50%; }
.nd-two { top: 270px; right: 54px; width: 6px; height: 6px; }

.app-home-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.app-home-top strong {
  font-family: "Walter Turncoat", cursive;
  font-size: 32px;
  letter-spacing: 1px;
}

.settings-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: var(--line);
  border-radius: 50%;
  background: white;
  box-shadow: 3px 3px 0 var(--ink);
}

.cog-icon {
  width: 24px;
  height: 24px;
  overflow: visible;
  fill: none;
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

.app-status {
  position: relative;
  min-height: 114px;
  margin-top: 34px;
  padding-right: 82px;
}

.app-status > div {
  min-width: 0;
}

.app-status p {
  margin: 0 0 3px;
  color: rgba(26, 26, 26, 0.55);
  font-family: "Walter Turncoat", cursive;
  font-size: 13px;
  letter-spacing: 1px;
}

.app-status strong {
  display: block;
  font-family: "Walter Turncoat", cursive;
  font-size: 32px;
  line-height: 0.98;
  font-weight: 400;
  white-space: nowrap;
}

.app-status img {
  position: absolute;
  top: 0px;
  right: -18px;
  width: 104px;
  height: 104px;
  object-fit: contain;
  transform: translateX(-8px);
}

.app-card {
  margin-top: 18px;
  padding: 18px;
  background: white;
  border: var(--line);
  border-radius: 22px;
  box-shadow: 6px 6px 0 var(--ink);
}

.app-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: rgba(26, 26, 26, 0.55);
  font-family: "Walter Turncoat", cursive;
  font-size: 14px;
  letter-spacing: 1px;
}

.app-card-head span:last-child {
  color: var(--ink);
  font-size: 24px;
  line-height: 1;
}

.time-row {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
}

.time-chip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  min-width: 0;
  flex: 1 1 0;
  font-family: "Walter Turncoat", cursive;
  font-size: 18px;
  white-space: nowrap;
}

.time-chip:last-child {
  flex-grow: 1.14;
}

.arrow {
  color: rgba(26, 26, 26, 0.35);
  flex: 0 0 auto;
  font-size: 18px;
  font-weight: 900;
}

.moon-icon,
.sun-icon {
  flex: 0 0 auto;
  width: 16px;
  height: 16px;
}

.moon-icon {
  position: relative;
  border: 2px solid var(--ink);
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset -7px 0 0 white;
}

.sun-icon {
  overflow: visible;
  display: block;
}

.sun-icon circle {
  fill: var(--yellow);
  stroke: var(--ink);
  stroke-width: 2;
}

.sun-icon line {
  stroke: var(--ink);
  stroke-width: 2;
  stroke-linecap: round;
}

.app-grid {
  display: grid;
  grid-template-columns: repeat(5, 42px);
  gap: 10px;
  margin-top: 14px;
}

.app {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 11px;
  border: 2px solid var(--ink);
  overflow: hidden;
}

.app img {
  width: 54%;
  height: 54%;
  object-fit: contain;
  filter: invert(1);
}

.youtube {
  background: #ff0033;
}

.tiktok {
  background: #111111;
}

.instagram {
  background: radial-gradient(circle at 30% 110%, #feda75 0 18%, #fa7e1e 32%, #d62976 54%, #962fbf 74%, #4f5bd5 100%);
}

.roblox {
  background: #232527;
}

.roblox img {
  width: 48%;
  height: 48%;
}

.add-app {
  color: rgba(26, 26, 26, 0.55);
  background: white;
  border-style: dashed;
  font-size: 24px;
  font-weight: 900;
}

.mock-footer {
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 22px;
  padding-top: 36px;
  background: linear-gradient(rgba(252, 209, 8, 0), var(--yellow) 38%);
}

.mock-footer span {
  display: grid;
  place-items: center;
  min-height: 54px;
  border: var(--line);
  border-radius: 8px;
  background: var(--ink);
  color: white;
  box-shadow: 5px 5px 0 white;
  font-family: "Walter Turncoat", cursive;
  font-size: 22px;
}

.panel-copy {
  display: grid;
  align-items: center;
  justify-self: stretch;
  max-width: 680px;
  width: 100%;
}

.copy-panel {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  visibility: hidden;
}

.copy-panel.is-active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
  visibility: visible;
}

.panel-copy p,
.split-feature p,
.night-section p,
.steps p {
  font-size: 18px;
  line-height: 1.5;
}

.feature-band {
  background: var(--paper);
}

.section-heading {
  max-width: 780px;
}

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

.steps article,
.notes p {
  background: white;
  border: var(--line);
  border-radius: 8px;
  box-shadow: 6px 6px 0 var(--ink);
}

.steps article {
  padding: 24px;
}

.steps span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 16px;
  border: var(--line);
  border-radius: 50%;
  background: var(--yellow);
  font-family: "Walter Turncoat", cursive;
  font-size: 22px;
}

.split-feature {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 0.62fr);
  gap: clamp(30px, 6vw, 70px);
  background: var(--cream);
  border-top: var(--line);
  border-bottom: var(--line);
}

.notes {
  display: grid;
  gap: 16px;
}

.notes p {
  margin: 0;
  padding: 18px;
}

.notes strong,
.notes span {
  display: block;
}

.notes span {
  margin-top: 6px;
  color: rgba(26, 26, 26, 0.68);
}

.night-section {
  display: grid;
  grid-template-columns: minmax(220px, 390px) minmax(0, 620px);
  align-items: center;
  justify-content: center;
  gap: clamp(28px, 6vw, 76px);
  background: var(--night);
  color: white;
}

.night-section .eyebrow {
  color: var(--yellow-soft);
}

.night-section .button {
  margin-top: 18px;
  background: var(--yellow);
  color: var(--ink);
}

.sleep-scene {
  position: relative;
  width: min(100%, 420px);
  min-height: 420px;
  display: grid;
  place-items: end center;
  justify-self: center;
}

.sleep-scene img {
  position: relative;
  z-index: 3;
  width: 100%;
  max-height: 390px;
  object-fit: contain;
  transform-origin: bottom center;
}

.star,
.moon {
  position: absolute;
  z-index: 2;
}

.star {
  width: 34px;
  height: 34px;
  background: var(--yellow);
  clip-path: polygon(50% 0, 61% 34%, 98% 35%, 68% 56%, 79% 91%, 50% 70%, 21% 91%, 32% 56%, 2% 35%, 39% 34%);
  filter: drop-shadow(3px 3px 0 var(--ink));
}

.star-one {
  top: 44px;
  left: 44px;
}

.star-two {
  top: 118px;
  right: 20px;
  width: 24px;
  height: 24px;
}

.star-three {
  top: 6px;
  right: 128px;
  width: 28px;
  height: 28px;
}

.moon {
  top: 74px;
  left: 132px;
  width: 66px;
  height: 66px;
  border: 3px solid var(--ink);
  border-radius: 50%;
  background: var(--yellow-soft);
  box-shadow: inset -18px 0 0 var(--night), 4px 4px 0 var(--ink);
}

footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px 28px;
  flex-wrap: wrap;
  padding: 28px clamp(22px, 6vw, 80px);
  background: var(--ink);
  color: white;
}

footer span {
  font-family: "Walter Turncoat", cursive;
  font-size: 24px;
}

.footer-links {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 22px;
  font-size: 14px;
  font-weight: 900;
}

.footer-links a:hover {
  color: var(--yellow);
}

@media (max-width: 980px) {
  .hero-inner {
    grid-template-columns: minmax(0, 520px) minmax(180px, 240px);
    gap: 28px;
  }

  .hero-copy {
    max-width: 480px;
  }

  .hero-art img {
    max-width: 240px;
  }
}

/* Legal pages (privacy, terms) */
.legal {
  max-width: 760px;
  margin: 0 auto;
  padding: 132px clamp(22px, 6vw, 40px) 88px;
}

.legal-title {
  font-size: clamp(44px, 9vw, 72px);
  margin: 6px 0 0;
}

.legal-updated {
  margin: 14px 0 0;
  color: rgba(26, 26, 26, 0.55);
  font-size: 14px;
  font-weight: 600;
}

.legal-lead {
  margin: 28px 0 0;
  font-size: 19px;
  line-height: 1.55;
  font-weight: 900;
}

.legal h2 {
  font-family: "Nunito", system-ui, sans-serif;
  font-weight: 900;
  font-size: 22px;
  line-height: 1.2;
  margin: 44px 0 10px;
}

.legal h3 {
  font-size: 17px;
  margin: 26px 0 6px;
}

.legal p,
.legal li {
  font-size: 16px;
  line-height: 1.65;
}

.legal p {
  margin: 12px 0;
}

.legal ul {
  margin: 12px 0;
  padding-left: 22px;
}

.legal li {
  margin: 7px 0;
}

.legal strong {
  font-weight: 900;
}

.legal a.inline {
  color: var(--blue-deep);
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal hr {
  margin: 40px 0;
  border: none;
  border-top: var(--line);
}

@media (max-width: 820px) {
  .site-header {
    align-items: flex-start;
  }

  .site-header nav a:not(.nav-cta) {
    display: none;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .hero-art {
    order: -1;
  }

  .hero-content {
    max-width: 680px;
    margin: 0 auto;
  }

  #hero-title {
    margin-left: 0;
    margin-inline: auto;
  }

  .hero-copy {
    margin-left: auto;
    margin-right: auto;
    max-width: 500px;
    font-size: 23px;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-art img {
    max-width: 300px;
  }

  h1 {
    font-size: 112px;
  }

  .quick-panel-inner,
  .split-feature,
  .night-section,
  .steps {
    grid-template-columns: 1fr;
  }

  .quick-panel-inner {
    justify-items: center;
  }

  .phone-stack,
  .phone-frame {
    justify-self: center;
  }

  .phone-stack {
    margin-inline: auto;
  }

  .phone-screen {
    min-height: 520px;
  }

  .sleep-scene {
    min-height: 360px;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand span {
    font-size: 22px;
  }

  .nav-cta {
    flex: 0 0 auto;
  }

  .nav-cta .app-store-badge {
    width: 132px;
  }

  .hero {
    min-height: auto;
    padding-top: 122px;
    padding-bottom: 92px;
  }

  .hero-actions,
  footer {
    flex-direction: column;
  }

  .hero-actions .app-store-badge-link {
    justify-content: center;
    width: 100%;
    min-height: 52px;
    background: #000;
    overflow: hidden;
  }

  .hero-actions .app-store-badge {
    width: 156px;
  }

  .hero-actions picture {
    display: inline-flex;
    line-height: 0;
  }

  footer {
    align-items: center;
    text-align: center;
  }

  .footer-links {
    justify-content: center;
    gap: 14px 18px;
  }

  h1 {
    font-size: 82px;
  }

  .hero-copy {
    font-size: 20px;
  }

  .hero-art img {
    max-width: 240px;
  }

  .button {
    width: 100%;
  }

  .phone-screen {
    min-height: 560px;
  }

  .phone-stack {
    justify-items: center;
    justify-self: center;
    margin-inline: auto;
  }

  .sleep-scene {
    min-height: 320px;
  }

  .star-one {
    left: 18px;
  }

  .moon {
    left: 88px;
  }
}
