@font-face {
  font-family: "Sleep Sensor Sans";
  src: local("Roboto"), local("Arial");
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg: #121212;
  --surface: #1e1e1e;
  --surface-raised: #252525;
  --border: #2c2c2c;
  --primary: #81c784;
  --primary-strong: #9bd99e;
  --text: #f5f5f5;
  --muted: #bdbdbd;
  --subtle: #8a8a8a;
  --max: 1120px;
  --radius: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 78% 8%, rgba(129, 199, 132, .12), transparent 28rem),
    var(--bg);
  color: var(--text);
  font-family: "Sleep Sensor Sans", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--primary-strong); }
a:hover { color: #c6efc8; }
img { max-width: 100%; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 20;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--primary);
  color: #101810;
  font-weight: 700;
}

.skip-link:focus { top: 16px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255, 255, 255, .06);
  background: rgba(18, 18, 18, .9);
  backdrop-filter: blur(16px);
}

.nav {
  width: min(var(--max), calc(100% - 32px));
  min-height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-size: 1.05rem;
  font-weight: 750;
  text-decoration: none;
}

.brand-mark {
  width: 36px;
  height: 36px;
  display: block;
  flex: 0 0 36px;
  border-radius: 11px;
  object-fit: cover;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px 20px;
}

.nav-links a {
  color: var(--muted);
  font-size: .94rem;
  text-decoration: none;
}

.nav-links a:hover,
.nav-links a[aria-current="page"] { color: var(--text); }

.lang-link {
  padding: 5px 9px;
  border: 1px solid var(--border);
  border-radius: 999px;
}

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }

.hero {
  min-height: 720px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(310px, .9fr);
  align-items: center;
  gap: 72px;
  padding: 88px 0 74px;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--primary);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

h1, h2, h3 { line-height: 1.14; letter-spacing: -.035em; }
h1 { max-width: 760px; margin: 0; font-size: clamp(2.8rem, 7vw, 5.4rem); }
h2 { margin: 0 0 14px; font-size: clamp(2rem, 4vw, 3.2rem); }
h3 { margin: 0 0 10px; font-size: 1.22rem; }

.hero-copy {
  max-width: 680px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: clamp(1.05rem, 2vw, 1.25rem);
}

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 20px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: var(--surface);
  color: var(--text);
  font-weight: 750;
  text-decoration: none;
}

.button.primary { border-color: var(--primary); background: var(--primary); color: #102012; }
.button:hover { transform: translateY(-1px); color: var(--text); }
.button.primary:hover { color: #102012; background: var(--primary-strong); }

.trust-row { display: flex; flex-wrap: wrap; gap: 10px 18px; margin-top: 28px; color: var(--subtle); font-size: .9rem; }
.trust-row span::before { content: "✓"; margin-right: 7px; color: var(--primary); }

.phone-shell {
  width: min(100%, 360px);
  margin: 0 auto;
  padding: 12px;
  border: 1px solid #353535;
  border-radius: 42px;
  background: #0b0b0b;
  box-shadow: 0 32px 90px rgba(0, 0, 0, .45);
}

.phone-screen {
  min-height: 620px;
  padding: 34px 22px 22px;
  overflow: hidden;
  border-radius: 32px;
  background: linear-gradient(180deg, #171717, #121212 55%);
}

.phone-label { color: var(--subtle); font-size: .78rem; }
.phone-title { margin-top: 5px; font-size: 1.55rem; font-weight: 800; letter-spacing: -.03em; }
.pulse {
  width: 188px;
  height: 188px;
  margin: 46px auto 38px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(129, 199, 132, .35);
  border-radius: 50%;
  box-shadow: 0 0 0 20px rgba(129, 199, 132, .05), 0 0 0 42px rgba(129, 199, 132, .025);
}

.pulse-core {
  width: 114px;
  height: 114px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--primary);
  color: #102012;
  text-align: center;
  font-size: .74rem;
  font-weight: 900;
  letter-spacing: .05em;
  text-transform: uppercase;
}

.session-card,
.card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255,255,255,.035), transparent), var(--surface);
}

.session-card { padding: 20px; }
.session-heading { color: var(--subtle); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; }
.score-row { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-top: 16px; }
.score-value { color: var(--primary); font-size: 2.2rem; font-weight: 850; line-height: 1; }
.score-meta { color: var(--muted); font-size: .83rem; text-align: right; }

.section { padding: 84px 0; }
.section-intro { max-width: 720px; margin: 0 0 34px; color: var(--muted); font-size: 1.08rem; }
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.card { padding: 28px; }
.card p { margin: 0; color: var(--muted); }
.icon-chip {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 13px;
  background: rgba(129, 199, 132, .12);
  color: var(--primary);
  font-weight: 900;
}

.privacy-band {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 46px;
  align-items: center;
  padding: 44px;
  border: 1px solid rgba(129, 199, 132, .22);
  border-radius: 30px;
  background: linear-gradient(135deg, rgba(129, 199, 132, .11), rgba(129, 199, 132, .02));
}

.privacy-band p { color: var(--muted); }
.check-list { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; }
.check-list li { position: relative; padding-left: 30px; color: var(--muted); }
.check-list li::before { content: "✓"; position: absolute; left: 0; color: var(--primary); font-weight: 900; }

.steps { counter-reset: steps; }
.steps .card::before {
  counter-increment: steps;
  content: counter(steps);
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  margin-bottom: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #102012;
  font-weight: 900;
}

.faq { display: grid; gap: 12px; }
.faq details { padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.faq summary { cursor: pointer; font-weight: 750; }
.faq p { margin: 12px 0 0; color: var(--muted); }

.cta {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: 42px;
  border-radius: 30px;
  background: var(--primary);
  color: #102012;
}
.cta h2 { margin: 0 0 8px; }
.cta p { max-width: 650px; margin: 0; color: #254328; }
.cta .button { border-color: #102012; background: #102012; color: var(--text); }

.page-hero { max-width: 820px; padding: 90px 0 44px; }
.page-hero h1 { font-size: clamp(2.6rem, 6vw, 4.8rem); }
.page-hero p { color: var(--muted); font-size: 1.12rem; }
.prose { max-width: 820px; padding: 12px 0 88px; }
.prose h2 { margin-top: 48px; font-size: 1.8rem; }
.prose h3 { margin-top: 30px; }
.prose p, .prose li { color: var(--muted); }
.prose strong { color: var(--text); }
.prose .notice { padding: 18px 20px; border-left: 3px solid var(--primary); border-radius: 0 12px 12px 0; background: var(--surface); }
.prose table { width: 100%; border-collapse: collapse; margin: 20px 0 30px; }
.prose th, .prose td { padding: 14px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.prose th { color: var(--text); background: var(--surface); }
.prose td { color: var(--muted); }

.site-footer { border-top: 1px solid var(--border); padding: 34px 0 48px; color: var(--subtle); }
.footer-grid { display: flex; align-items: flex-start; justify-content: space-between; gap: 26px; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px 18px; }
.footer-links a { color: var(--muted); text-decoration: none; }
.fine-print { margin-top: 12px; font-size: .84rem; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; min-height: auto; gap: 54px; padding-top: 64px; }
  .hero-text { text-align: center; }
  .hero-copy { margin-inline: auto; }
  .actions, .trust-row { justify-content: center; }
  .grid { grid-template-columns: 1fr; }
  .privacy-band { grid-template-columns: 1fr; padding: 32px; }
  .cta { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav { min-height: auto; padding: 14px 0; align-items: flex-start; }
  .nav-links { max-width: 220px; gap: 7px 14px; }
  .nav-links a { font-size: .86rem; }
  .section { padding: 62px 0; }
  .phone-screen { min-height: 570px; }
  .footer-grid { flex-direction: column; }
  .footer-links { justify-content: flex-start; }
  .prose table { display: block; overflow-x: auto; }
}

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