:root {
  --paper: #f4ecdc;
  --paper-deep: #eadfc8;
  --ink: #141915;
  --muted: #657066;
  --panel: rgba(255, 252, 241, 0.86);
  --line: rgba(20, 25, 21, 0.14);
  --green: #63c89d;
  --green-deep: #2f8567;
  --blue: #7eb9dc;
  --peach: #f2ac86;
  --sun: #f2c257;
  --rose: #e76fa5;
  --shadow: 0 22px 60px rgba(45, 37, 25, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: ui-rounded, "SF Pro Rounded", Inter, ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  background:
    radial-gradient(circle at 8% 12%, rgba(99, 200, 157, 0.22), transparent 18rem),
    radial-gradient(circle at 90% 18%, rgba(242, 172, 134, 0.25), transparent 20rem),
    radial-gradient(circle at 70% 72%, rgba(126, 185, 220, 0.18), transparent 19rem),
    linear-gradient(135deg, var(--paper), var(--paper-deep));
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.18;
  background-image:
    linear-gradient(90deg, rgba(20, 25, 21, 0.08) 1px, transparent 1px),
    linear-gradient(rgba(20, 25, 21, 0.06) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
}

a {
  color: var(--green-deep);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.site-header,
.site-footer,
.hero,
.feature-grid,
.notice,
.legal-page {
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.site-header,
.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.site-header {
  padding: 24px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-size: 1.25rem;
  font-weight: 900;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(45, 37, 25, 0.14);
}

.brand:hover {
  text-decoration: none;
}

.nav-links,
.site-footer nav {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  font-weight: 800;
}

.hero {
  min-height: calc(100vh - 160px);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 34px;
  align-items: center;
  padding: 44px 0 74px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 950;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

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

h1 {
  margin-bottom: 18px;
  max-width: 11ch;
  font-size: clamp(3.2rem, 8vw, 6.6rem);
  line-height: 0.94;
}

h2 {
  margin-bottom: 10px;
  font-size: 1.45rem;
  line-height: 1.15;
}

h3 {
  margin: 22px 0 8px;
  font-size: 1.06rem;
}

.hero-copy p:not(.eyebrow),
.feature-grid p,
.notice p,
.legal-page p {
  color: var(--muted);
  font-size: 1.06rem;
}

.hero-copy > p:not(.eyebrow) {
  max-width: 62ch;
}

.button-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 12px;
  background: var(--green);
  color: var(--ink);
  font-weight: 950;
  box-shadow: 0 14px 28px rgba(47, 133, 103, 0.24);
}

.button:hover {
  text-decoration: none;
  filter: brightness(0.98);
}

.button-secondary {
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: none;
}

.phone-scene {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 560px;
  overflow: hidden;
}

.paper-shape {
  position: absolute;
  border-radius: 42% 58% 47% 53%;
  opacity: 0.72;
}

.shape-one {
  width: 310px;
  height: 310px;
  background: rgba(126, 185, 220, 0.38);
  transform: translate(-90px, -120px) rotate(-12deg);
}

.shape-two {
  width: 340px;
  height: 340px;
  background: rgba(242, 172, 134, 0.34);
  transform: translate(90px, 130px) rotate(16deg);
}

.phone {
  position: relative;
  z-index: 1;
  width: min(360px, 100%);
  padding: 18px;
  border: 1px solid rgba(20, 25, 21, 0.18);
  border-radius: 34px;
  background: rgba(20, 25, 21, 0.92);
  box-shadow: var(--shadow);
}

.phone-top,
.mini-player {
  display: flex;
  align-items: center;
  gap: 12px;
}

.phone-top {
  color: white;
  margin-bottom: 18px;
}

.phone-top img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
}

.phone-top span {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.95rem;
}

.session-card,
.mini-player {
  margin-top: 12px;
  padding: 16px;
  border-radius: 14px;
  background: rgba(255, 252, 241, 0.92);
}

.session-card span {
  display: inline-block;
  margin-bottom: 5px;
  color: var(--green-deep);
  font-size: 0.8rem;
  font-weight: 900;
}

.session-card strong {
  display: block;
  font-size: 1.3rem;
}

.session-card small {
  display: block;
  color: var(--muted);
  font-size: 0.92rem;
}

.session-card.sleep {
  background: #dfe7ff;
}

.session-card.calm {
  background: #dff1e8;
}

.mini-player {
  justify-content: center;
  background: var(--green);
  font-weight: 950;
}

.mini-player span {
  width: 0;
  height: 0;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 13px solid var(--ink);
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding-bottom: 24px;
}

.feature-grid article,
.notice,
.legal-page,
.support-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.feature-grid article {
  padding: 22px;
}

.notice {
  margin-top: 18px;
  margin-bottom: 64px;
  padding: 24px;
}

.legal-page {
  max-width: 840px;
  padding: 28px;
  margin-top: 28px;
  margin-bottom: 64px;
}

.legal-page h1 {
  max-width: none;
  font-size: clamp(2.5rem, 6vw, 4.2rem);
}

.legal-page h2 {
  margin-top: 30px;
}

.support-card {
  padding: 18px;
  margin: 22px 0;
  box-shadow: none;
}

.site-footer {
  padding: 28px 0 36px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

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

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 24px;
  }

  .phone-scene {
    min-height: 500px;
  }

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

  h1 {
    font-size: clamp(3rem, 14vw, 5rem);
  }
}
