:root {
  color-scheme: dark;
  --ink: #f2efe9;
  --muted: rgba(242, 239, 233, 0.72);
  --bg: #1a222d;
  --bg-soft: #202b38;
  --panel: rgba(242, 239, 233, 0.07);
  --panel-strong: rgba(242, 239, 233, 0.11);
  --rose: #d4a5a5;
  --sage: #b2bfa1;
  --line: rgba(242, 239, 233, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.32);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(212, 165, 165, 0.16), transparent 34rem),
    radial-gradient(circle at bottom right, rgba(178, 191, 161, 0.13), transparent 32rem),
    var(--bg);
  line-height: 1.6;
}

a {
  color: var(--ink);
  text-decoration-color: rgba(212, 165, 165, 0.7);
  text-underline-offset: 0.22em;
}

a:hover,
a:focus-visible {
  color: var(--rose);
}

a:focus-visible,
.status-cta:focus-visible,
.language-toggle label:focus-visible {
  outline: 3px solid rgba(212, 165, 165, 0.75);
  outline-offset: 4px;
}

.language-radio {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  opacity: 0;
  white-space: nowrap;
}

.lang-en {
  display: none;
}

#lang-en:checked ~ .site-header .lang-fr,
#lang-en:checked ~ .skip-link .lang-fr,
#lang-en:checked ~ main .lang-fr,
#lang-en:checked ~ .footer .lang-fr {
  display: none;
}

#lang-en:checked ~ .site-header .lang-en,
#lang-en:checked ~ .skip-link .lang-en,
#lang-en:checked ~ main .lang-en,
#lang-en:checked ~ .footer .lang-en {
  display: revert;
}

#lang-fr:checked ~ .site-header .lang-fr,
#lang-fr:checked ~ .skip-link .lang-fr,
#lang-fr:checked ~ main .lang-fr,
#lang-fr:checked ~ .footer .lang-fr {
  display: revert;
}

#lang-fr:checked ~ .site-header .lang-en,
#lang-fr:checked ~ .skip-link .lang-en,
#lang-fr:checked ~ main .lang-en,
#lang-fr:checked ~ .footer .lang-en {
  display: none;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: 12px;
  z-index: 20;
  transform: translateY(-140%);
  padding: 10px 14px;
  border-radius: var(--radius);
  color: var(--bg);
  background: var(--ink);
  font-weight: 800;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--line);
  background: rgba(26, 34, 45, 0.9);
  backdrop-filter: blur(18px);
}

.nav,
.section,
.footer {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 76px;
}

.brand,
.nav-links {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand {
  font-weight: 800;
  letter-spacing: 0;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--bg);
  background: linear-gradient(135deg, var(--rose), var(--sage));
}

.nav-links {
  flex-wrap: wrap;
  justify-content: flex-end;
  font-size: 0.94rem;
}

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

.language-toggle {
  display: inline-flex;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(242, 239, 233, 0.06);
}

.language-toggle label {
  display: inline-flex;
  min-width: 38px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  color: var(--muted);
  cursor: pointer;
  font-weight: 800;
}

#lang-fr:checked ~ .site-header label[for="lang-fr"],
#lang-en:checked ~ .site-header label[for="lang-en"] {
  color: var(--bg);
  background: linear-gradient(135deg, var(--rose), var(--sage));
}

.section {
  padding: 86px 0;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(300px, 0.95fr);
  align-items: center;
  gap: 48px;
  min-height: calc(100svh - 76px);
}

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

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

h1,
h2,
h3 {
  line-height: 1.08;
  letter-spacing: 0;
}

h1 {
  max-width: 760px;
  margin-bottom: 24px;
  font-size: clamp(2.65rem, 7.4vw, 6rem);
}

h2 {
  margin-bottom: 18px;
  font-size: clamp(2rem, 4vw, 3.55rem);
}

h3 {
  margin-bottom: 12px;
  font-size: 1.28rem;
}

.lead {
  max-width: 660px;
  color: var(--muted);
  font-size: clamp(1.08rem, 2vw, 1.28rem);
}

.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 34px;
}

.cta,
.secondary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 24px;
  border: 0;
  border-radius: var(--radius);
  color: var(--bg);
  background: linear-gradient(135deg, var(--rose), var(--sage));
  font: inherit;
  font-weight: 800;
  text-decoration: none;
}

.status-cta {
  cursor: default;
  box-shadow: 0 12px 34px rgba(0, 0, 0, 0.22);
}

.text-link {
  color: var(--muted);
}

.phone-card {
  position: relative;
  display: grid;
  min-height: 570px;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(242, 239, 233, 0.1), rgba(242, 239, 233, 0.03)),
    var(--bg-soft);
  box-shadow: var(--shadow);
}

.phone-card::before,
.phone-card::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(242, 239, 233, 0.1);
  border-radius: 50%;
}

.phone-card::before {
  width: 430px;
  height: 430px;
  right: -155px;
  top: -135px;
}

.phone-card::after {
  width: 280px;
  height: 280px;
  left: -90px;
  bottom: -95px;
}

.phone-shell {
  position: relative;
  z-index: 1;
  width: min(310px, calc(100% - 54px));
  min-height: 505px;
  padding: 22px;
  border: 1px solid rgba(242, 239, 233, 0.18);
  border-radius: 34px;
  background: linear-gradient(180deg, #1f2a36 0%, #171f2a 100%);
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.38);
}

.phone-top,
.mode-grid {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.phone-top {
  color: var(--muted);
  font-size: 0.8rem;
}

.sleep-visual {
  position: relative;
  display: grid;
  height: 210px;
  place-items: center;
}

.moon {
  position: relative;
  display: block;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: var(--ink);
  box-shadow: 0 0 70px rgba(242, 239, 233, 0.22);
}

.moon::after {
  content: "";
  position: absolute;
  top: -8px;
  left: 30px;
  width: 108px;
  height: 108px;
  border-radius: 50%;
  background: #1f2a36;
}

.signal-ring {
  position: absolute;
  border: 1px solid rgba(178, 191, 161, 0.28);
  border-radius: 50%;
}

.signal-ring-one {
  width: 160px;
  height: 160px;
}

.signal-ring-two {
  width: 225px;
  height: 225px;
}

.monitor-status {
  display: flex;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(242, 239, 233, 0.07);
}

.monitor-status p {
  margin-bottom: 0;
  color: var(--muted);
}

.pulse {
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin-top: 7px;
  border-radius: 999px;
  background: var(--sage);
  box-shadow: 0 0 0 8px rgba(178, 191, 161, 0.16);
}

.mode-grid {
  margin-top: 16px;
}

.mode-grid span {
  flex: 1;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  color: var(--muted);
  text-align: center;
}

.split,
.split-intro,
.privacy-callout {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
  gap: 36px;
  align-items: start;
}

.split-intro p,
.card p,
.policy-section p,
.privacy-callout p,
.policy-hero p {
  color: var(--muted);
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.card,
.privacy-callout,
.policy-section article,
.policy-hero {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.card,
.policy-section article {
  padding: 28px;
}

.card-index {
  display: inline-flex;
  margin-bottom: 22px;
  color: var(--sage);
  font-weight: 900;
}

.steps {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  padding: 22px 22px 22px 76px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.steps li::before {
  content: counter(step);
  counter-increment: step;
  position: absolute;
  top: 20px;
  left: 22px;
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 50%;
  color: var(--bg);
  background: var(--sage);
  font-weight: 900;
}

.steps span {
  display: block;
  color: var(--muted);
}

.privacy-callout,
.policy-hero {
  padding: 34px;
}

.privacy-callout {
  align-items: center;
}

.policy-main .section {
  padding: 48px 0;
}

.policy-section {
  display: grid;
  gap: 18px;
}

.policy-section h2 {
  margin-bottom: 10px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 34px 0 52px;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.footer p {
  margin: 0;
}

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

@media (max-width: 860px) {
  .hero,
  .split,
  .split-intro,
  .privacy-callout {
    grid-template-columns: 1fr;
  }

  .hero {
    min-height: auto;
    padding-top: 56px;
  }

  .phone-card {
    min-height: 470px;
  }

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

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

  .nav {
    padding: 14px 0;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .language-toggle {
    width: 100%;
  }

  .language-toggle label {
    flex: 1;
  }

  .section {
    padding: 58px 0;
  }

  h1 {
    font-size: clamp(2.4rem, 15vw, 4rem);
  }

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

  .phone-card {
    min-height: 410px;
  }

  .phone-shell {
    min-height: 390px;
    padding: 18px;
  }

  .sleep-visual {
    height: 145px;
  }

  .moon {
    width: 82px;
    height: 82px;
  }

  .moon::after {
    left: 22px;
    width: 82px;
    height: 82px;
  }

  .signal-ring-one {
    width: 124px;
    height: 124px;
  }

  .signal-ring-two {
    width: 175px;
    height: 175px;
  }

  .card,
  .privacy-callout,
  .policy-hero,
  .policy-section article {
    padding: 22px;
  }

  .steps li {
    padding: 20px 20px 20px 68px;
  }
}
