:root {
  --bg: #061522;
  --bg-deep: #030a12;
  --card: rgba(11, 31, 48, 0.82);
  --card-strong: rgba(15, 46, 65, 0.94);
  --line: rgba(117, 224, 231, 0.22);
  --text: #f5efe1;
  --muted: #bbcad2;
  --aqua: #44d5d5;
  --aqua-dark: #177c84;
  --gold: #ffd27d;
  --rose: #ff8e84;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    radial-gradient(circle at 80% 10%, rgba(255, 210, 125, 0.18), transparent 28rem),
    radial-gradient(circle at 18% 18%, rgba(68, 213, 213, 0.2), transparent 26rem),
    linear-gradient(135deg, var(--bg-deep), var(--bg) 42%, #150d21);
  font-family: "Trebuchet MS", Verdana, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  content: "";
  background-image:
    radial-gradient(circle, rgba(255, 210, 125, 0.26) 0 1px, transparent 1.5px),
    linear-gradient(120deg, rgba(255, 255, 255, 0.04), transparent 36%);
  background-size: 4.75rem 4.75rem, cover;
  opacity: 0.5;
}

a {
  color: inherit;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.site-header,
.footer,
.section,
.hero,
.legal-page {
  width: min(1180px, calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 0;
}

.site-header.compact {
  margin-bottom: 3rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.35rem;
  font-weight: 700;
}

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

nav {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

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

nav a:hover,
.footer a:hover {
  color: var(--gold);
}

.language-select {
  min-width: 9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--text);
  background: rgba(4, 14, 24, 0.72);
  padding: 0.55rem 0.85rem;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(500px, 1.1fr);
  gap: clamp(1.2rem, 3vw, 3rem) clamp(2rem, 5vw, 5rem);
  align-items: center;
  padding: clamp(2rem, 6vw, 4.25rem) 0 clamp(3rem, 7vw, 5rem);
  overflow: hidden;
}

.hero-copy {
  min-width: 0;
}

.hero-copy h1,
.section h2,
.legal-card h1 {
  font-family: Georgia, "Times New Roman", serif;
  line-height: 0.96;
  letter-spacing: -0.04em;
}

.hero-copy h1 {
  max-width: 13ch;
  margin: 0.2rem 0 1rem;
  color: var(--gold);
  font-size: clamp(2.25rem, 4.15vw, 3.85rem);
  overflow-wrap: break-word;
  text-wrap: balance;
  hyphens: auto;
}

.lead {
  max-width: 38rem;
  color: var(--muted);
  font-size: clamp(1.06rem, 2vw, 1.28rem);
  overflow-wrap: break-word;
}

.eyebrow {
  margin: 0 0 0.6rem;
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-actions,
.cookie-actions {
  display: flex;
  gap: 0.8rem;
  flex-wrap: wrap;
  align-items: center;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 0;
  border-radius: 999px;
  padding: 0.78rem 1.2rem;
  cursor: pointer;
  text-decoration: none;
  font-weight: 800;
  transition: transform 150ms ease, box-shadow 150ms ease, background 150ms ease;
}

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

.button.primary {
  color: #06202a;
  background: linear-gradient(135deg, var(--gold), #fff0bb);
  box-shadow: 0 10px 34px rgba(255, 210, 125, 0.26);
}

.button.secondary {
  color: var(--text);
  background: linear-gradient(135deg, var(--aqua-dark), #0d6771);
  box-shadow: 0 10px 34px rgba(68, 213, 213, 0.18);
}

.hero-lead,
.hero-cta {
  grid-column: 1 / -1;
}

.hero-lead {
  max-width: 860px;
  margin: 0.3rem auto 0;
  text-align: center;
  font-size: clamp(1.12rem, 1.8vw, 1.42rem);
}

.hero-cta {
  justify-content: center;
  margin-top: -0.35rem;
}

.hero-art,
.card,
.form-card,
.legal-card,
.faq details {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-art {
  overflow: hidden;
  min-width: 0;
}

.hero-art img {
  width: 100%;
  min-height: 0;
  object-fit: contain;
}

.section {
  padding: 3rem 0;
}

.section-heading {
  max-width: 740px;
  margin-bottom: 1.4rem;
}

.section h2,
.legal-card h1 {
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-size: clamp(2.1rem, 4vw, 4rem);
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.section p,
.legal-card p {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.card,
.form-card,
.legal-card {
  padding: clamp(1.1rem, 2vw, 1.6rem);
}

.card h3 {
  margin: 0 0 0.55rem;
  color: #fff6dd;
  font-size: 1.25rem;
}

.guide-teaser {
  padding-top: 1.5rem;
}

.guide-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.compact-guides {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.guide-card,
.article-card,
.sleepbuddy-note {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: var(--card);
  box-shadow: var(--shadow);
  padding: clamp(1.1rem, 2vw, 1.6rem);
  overflow-wrap: anywhere;
}

.guide-card h3 {
  margin: 0 0 0.55rem;
  color: #fff6dd;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.15;
}

.guide-card h3 a,
.text-link,
.breadcrumb a {
  color: inherit;
  text-decoration: none;
}

.text-link,
.breadcrumb a {
  color: var(--aqua);
  font-weight: 900;
}

.text-link:hover,
.breadcrumb a:hover {
  color: var(--gold);
}

.article-page {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1.5rem;
}

.article-hero,
.article-card,
.related-guides {
  width: 100%;
  max-width: 920px;
}

.article-hero h1,
.article-card h1 {
  max-width: 13ch;
  margin: 0.2rem 0 1rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2.35rem, 5vw, 4.6rem);
  line-height: 0.96;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.article-card h2,
.related-guides h2 {
  margin-top: 2rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.65rem, 3vw, 2.7rem);
  line-height: 1;
}

.article-tips {
  display: grid;
  gap: 0.75rem;
  max-width: 100%;
  padding-left: 1.35rem;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.article-tips li::marker {
  color: var(--gold);
  font-weight: 900;
}

.sleepbuddy-note {
  margin: 1.6rem 0;
  background:
    radial-gradient(circle at 95% 0%, rgba(255, 210, 125, 0.18), transparent 16rem),
    rgba(9, 36, 50, 0.9);
}

.sleepbuddy-note strong {
  color: var(--gold);
  font-size: 1.1rem;
}

.article-sources {
  margin-top: 1.8rem;
  border-top: 1px solid var(--line);
  padding-top: 0.8rem;
}

.article-sources ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.2rem;
}

.article-sources a {
  color: var(--aqua);
  font-weight: 800;
}

.founder {
  padding-top: 1rem;
}

.founder-card {
  position: relative;
  overflow: hidden;
  display: block;
  min-height: clamp(460px, 42vw, 680px);
  border: 1px solid rgba(255, 210, 125, 0.32);
  border-radius: 32px;
  background: #071522;
  box-shadow: var(--shadow);
  isolation: isolate;
  padding: clamp(1.5rem, 5vw, 3.2rem);
}

.founder-card::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(3, 12, 22, 0.96) 0%, rgba(3, 12, 22, 0.88) 34%, rgba(3, 12, 22, 0.42) 56%, rgba(3, 12, 22, 0.1) 74%),
    radial-gradient(circle at 16% 38%, rgba(255, 210, 125, 0.16), transparent 19rem);
  content: "";
  pointer-events: none;
}

.founder-copy {
  position: relative;
  z-index: 2;
  display: grid;
  align-content: center;
  min-height: clamp(380px, 35vw, 560px);
  max-width: min(560px, 48%);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.64);
}

.founder-card h2 {
  position: relative;
  max-width: 19ch;
  margin: 0 0 0.8rem;
  color: var(--gold);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(2rem, 4vw, 3.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
  text-wrap: balance;
}

.founder-card p {
  position: relative;
  max-width: 760px;
}

.founder-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
  border: 0;
  border-radius: inherit;
  background: #071522;
  box-shadow: none;
}

.founder-art img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center right;
}

.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.testimonial-card {
  display: grid;
  align-content: start;
  gap: 0.85rem;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(11, 31, 48, 0.78);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  padding: 1rem;
}

.testimonial-card img {
  width: 72px;
  height: 72px;
  border: 2px solid rgba(255, 210, 125, 0.45);
  border-radius: 50%;
  object-fit: cover;
}

.testimonial-card blockquote {
  margin: 0;
  color: var(--text);
  font-size: 0.96rem;
  line-height: 1.45;
}

.testimonial-card footer {
  display: grid;
  gap: 0.12rem;
  margin: 0;
}

.testimonial-card strong {
  color: #fff6dd;
}

.testimonial-card span {
  color: var(--aqua);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.split,
.conversion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: clamp(1rem, 4vw, 3rem);
  align-items: center;
}

.steps {
  display: grid;
  gap: 0.8rem;
  padding: 0;
  list-style: none;
}

.steps li {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  color: var(--muted);
}

.steps span {
  display: inline-grid;
  place-items: center;
  flex: 0 0 2.3rem;
  height: 2.3rem;
  border-radius: 50%;
  color: #06202a;
  background: var(--gold);
  font-weight: 900;
}

.phone-shot {
  max-height: 620px;
  margin-inline: auto;
  border-radius: 34px;
  filter: drop-shadow(0 24px 50px rgba(0, 0, 0, 0.45));
}

.screens {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.screens figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--card-strong);
}

.screens img {
  width: 100%;
}

.form-card {
  display: grid;
  gap: 0.9rem;
}

.form-card h2 {
  margin-bottom: 0;
}

label {
  display: grid;
  gap: 0.35rem;
  color: var(--muted);
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  color: var(--text);
  background: rgba(3, 10, 18, 0.72);
  padding: 0.8rem 0.9rem;
  font: inherit;
}

textarea {
  min-height: 9rem;
  resize: vertical;
}

.check {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.92rem;
}

.check input {
  width: auto;
  margin-top: 0.2rem;
}

.hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.form-status {
  min-height: 1.4rem;
  margin: 0;
  color: var(--gold);
  font-weight: 800;
}

.faq {
  display: grid;
  gap: 0.8rem;
}

.faq details {
  padding: 1rem 1.1rem;
}

.faq summary {
  cursor: pointer;
  color: var(--text);
  font-weight: 900;
}

.legal-page {
  min-height: 58vh;
  padding-bottom: 4rem;
}

.legal-card {
  max-width: 820px;
}

.footer {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 3rem 0;
  color: var(--muted);
}

.cookie {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  left: 1rem;
  z-index: 20;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  width: min(980px, calc(100% - 2rem));
  margin-inline: auto;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(4, 14, 24, 0.96);
  box-shadow: var(--shadow);
  padding: 1rem;
}

.cookie p {
  margin: 0.2rem 0 0;
  color: var(--muted);
}

[hidden] {
  display: none !important;
}

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

  nav {
    width: 100%;
  }

  .hero,
  .split,
  .conversion,
  .card-grid,
  .screens,
  .testimonial-grid,
  .guide-grid,
  .compact-guides {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-copy h1 {
    max-width: 13ch;
    font-size: clamp(2rem, 8.3vw, 2.8rem);
    overflow-wrap: anywhere;
  }

  .hero-lead {
    text-align: left;
    margin-inline: 0;
  }

  .hero-cta {
    justify-content: flex-start;
  }

  .hero-art img {
    min-height: 0;
  }

  .founder-art {
    min-height: 100%;
    margin: 0;
  }

  .founder-art img {
    min-height: 100%;
    object-position: 62% center;
  }

  .founder-card {
    min-height: 620px;
  }

  .founder-card::before {
    background:
      linear-gradient(180deg, rgba(3, 12, 22, 0.96) 0%, rgba(3, 12, 22, 0.86) 43%, rgba(3, 12, 22, 0.26) 78%, rgba(3, 12, 22, 0.1) 100%),
      linear-gradient(90deg, rgba(3, 12, 22, 0.92), rgba(3, 12, 22, 0.24));
  }

  .founder-copy {
    min-height: auto;
    max-width: 100%;
  }

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

  .cookie {
    flex-direction: column;
  }
}

@media (min-width: 861px) and (max-width: 1160px) {
  .hero-copy h1 {
    font-size: clamp(2.1rem, 4.2vw, 3.45rem);
  }

  .testimonial-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 520px) {
  .site-header,
  .footer,
  .section,
  .hero,
  .legal-page {
    width: calc(100% - 32px);
  }

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

  .lead {
    max-width: 31ch;
    font-size: 0.98rem;
  }

  .hero-cta {
    max-width: 31ch;
  }

  .testimonial-card {
    grid-template-columns: 58px 1fr;
    align-items: start;
  }

  .article-card,
  .guide-card {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border-radius: 22px;
  }

  .article-card h1 {
    max-width: 100%;
    font-size: clamp(2rem, 12vw, 3rem);
  }

  .article-tips {
    padding-left: 1.05rem;
  }

  .testimonial-card img {
    width: 58px;
    height: 58px;
  }

  .testimonial-card blockquote,
  .testimonial-card footer {
    grid-column: 2;
  }

  .button {
    width: 100%;
  }
}
