:root {
  --ink: #241733;
  --ink-deep: #1C1229;
  --brand: #762E8D;
  --brand-dark: #5A2070;
  --lav: #EEE8F7;
  --lav-2: #F6F2FA;
  --line: #ECE6F3;
  --field: #CFC6DB;
  --text: #2A2235;
  --body: #4A4256;
  --muted: #5C5468;
  --on-dark: #D9CFE8;
  --on-dark-2: #B9ACCB;
  --gold: #F2C46D;
  --ground: #FCFBFE;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--ground); color: var(--text); font-family: 'Figtree', system-ui, sans-serif; font-size: 17px; line-height: 1.6; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
a:hover { color: var(--brand-dark); }
h1, h2, h3 { font-family: 'Outfit', sans-serif; font-weight: 600; color: var(--ink); margin: 0; }
p { margin: 0; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.narrow { max-width: 880px; margin: 0 auto; padding-left: 24px; padding-right: 24px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; background: #fff; padding: 8px 12px; z-index: 10; }

/* Top bar + header */
.topbar { background: var(--ink-deep); color: #E6DDF2; font-size: 14px; }
.topbar .wrap { padding-top: 10px; padding-bottom: 10px; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; align-items: center; }
.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar .links { display: flex; flex-wrap: wrap; gap: 20px; }
.topbar .links a + a { color: #E6DDF2; font-weight: 400; }
header.site { background: #fff; border-bottom: 1px solid var(--line); }
header.site .wrap { padding-top: 16px; padding-bottom: 16px; display: flex; flex-wrap: wrap; gap: 16px 32px; justify-content: space-between; align-items: center; }
.logo img { height: 64px; width: auto; }
nav.main { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; font-weight: 500; font-size: 16px; }
nav.main a { color: var(--text); text-decoration: none; }
nav.main a:hover { color: var(--brand); }
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 12px 26px; border-radius: 999px; font-weight: 600; font-size: 17px; text-decoration: none; border: none; cursor: pointer; font-family: inherit; line-height: 1.2; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-dark); color: #fff; }
.btn-gold { background: var(--gold); color: var(--ink); }
.btn-gold:hover { background: #E8B04B; color: var(--ink); }
.btn-ghost-dark { color: #fff; border: 1.5px solid #8E78B0; background: transparent; }
.btn-ghost-dark:hover { color: #fff; border-color: #fff; }
.btn-ghost { color: var(--ink); border: 1.5px solid var(--field); background: transparent; }
.btn[disabled] { background: #B9AFC6; cursor: not-allowed; }
nav.main .btn { font-size: 16px; padding: 10px 22px; min-height: 44px; }
nav.main a.btn-brand, nav.main a.btn-brand:hover { color: #fff; }

/* Sections */
.eyebrow { font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.dark .eyebrow { color: var(--gold); }
.section { padding-top: 96px; padding-bottom: 96px; }
.section-head { display: flex; flex-direction: column; gap: 12px; max-width: 680px; margin-bottom: 48px; }
.h2 { font-size: clamp(32px, 3.5vw, 44px); line-height: 1.1; }
.lead { color: var(--muted); }
.dark { background: var(--ink); color: #fff; }
.dark h1, .dark h2, .dark h3 { color: #fff; }
.lav { background: var(--lav); }
.white { background: #fff; }

/* Hero */
.hero { position: relative; overflow: hidden; }
.hero .stars { position: absolute; inset: 0; opacity: 0.5; pointer-events: none; }
.hero .wrap { position: relative; padding-top: 88px; padding-bottom: 96px; display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.hero-copy { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.hero h1 { font-size: clamp(40px, 5vw, 64px); line-height: 1.05; letter-spacing: -0.01em; }
.hero .sub { font-size: 20px; color: var(--on-dark); max-width: 540px; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; }
.ticks { display: flex; flex-wrap: wrap; gap: 12px 28px; font-size: 15px; color: var(--on-dark); margin-top: 8px; }
.ticks span { display: flex; align-items: center; gap: 8px; }
.hero-media { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.hero-media img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; object-position: 55% 50%; border-radius: 28px; box-shadow: 0 24px 60px rgba(10, 4, 20, 0.45); }
.hero-media .caption { font-size: 14px; color: var(--on-dark-2); display: flex; align-items: center; gap: 8px; }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 36px; display: flex; flex-direction: column; gap: 16px; }
.card h3 { font-size: 24px; }
.card p { color: var(--muted); }
.icon-tile { width: 52px; height: 52px; border-radius: 16px; background: var(--lav); display: flex; align-items: center; justify-content: center; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.steps li { display: flex; flex-direction: column; gap: 12px; }
.steps .num { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 20px; width: 48px; height: 48px; border-radius: 50%; background: #fff; color: var(--brand); display: flex; align-items: center; justify-content: center; }
.steps h3 { font-size: 21px; }
.steps p { color: var(--body); }
.costs { margin-top: 56px; display: flex; flex-direction: column; gap: 16px; }
.costs h3 { font-size: 24px; }
.cost-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.cost { background: #fff; border-radius: 24px; padding: 28px 32px; display: flex; flex-direction: column; gap: 10px; }
.cost .tag { font-size: 14px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--brand); font-weight: 600; }
.cost .big { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 26px; color: var(--ink); }
.cost p { color: var(--body); }

/* Signs */
.split { display: flex; flex-wrap: wrap; gap: 48px; align-items: flex-start; }
.split > .col-a { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split > .col-b { flex: 1 1 480px; min-width: 0; }
.signs { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.signs li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-weight: 500; }

/* About */
.about { display: flex; flex-wrap: wrap; gap: 56px; align-items: center; }
.about .photo { flex: 1 1 340px; min-width: 0; max-width: 460px; position: relative; }
.about .photo::before { content: ''; position: absolute; inset: 24px -24px -24px 24px; border-radius: 28px; background: var(--lav); }
.about .photo img { position: relative; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.about .text { flex: 1 1 480px; min-width: 0; display: flex; flex-direction: column; gap: 18px; }
.about .text p { color: var(--body); }

/* Contact */
.contact { display: flex; flex-wrap: wrap; gap: 56px; }
.contact .info { flex: 1 1 360px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.contact .info p { color: var(--on-dark); }
.contact-list { display: flex; flex-direction: column; gap: 16px; font-size: 18px; list-style: none; margin: 0; padding: 0; }
.contact-list li, .contact-list a { display: flex; align-items: flex-start; gap: 14px; color: #fff; text-decoration: none; word-break: break-word; }
.contact-list svg { flex-shrink: 0; margin-top: 3px; }
.contact-list .sub { display: block; font-size: 15px; color: var(--on-dark); }
.form-card { flex: 1 1 460px; min-width: 0; background: #fff; color: var(--text); border-radius: 28px; padding: 40px; }

/* Forms (rendered from the Wix form schema) */
.wf { display: flex; flex-direction: column; gap: 18px; }
.wf-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.wf-field { display: flex; flex-direction: column; gap: 6px; }
.wf-field.full { grid-column: 1 / -1; }
.wf-field > label { font-weight: 600; font-size: 15px; color: var(--text); }
.wf-field .req { color: var(--brand); margin-left: 2px; }
.wf input[type=text], .wf input[type=email], .wf input[type=tel], .wf textarea { font: inherit; border: 1px solid var(--field); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; background: #fff; color: var(--text); }
.wf textarea { min-height: 140px; resize: vertical; }
.wf input:focus, .wf textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.wf [aria-invalid=true] { border-color: #B3261E; }
.wf .err { color: #B3261E; font-size: 14px; min-height: 0; }
.wf .err:empty { display: none; }
.wf-check { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; color: var(--body); cursor: pointer; }
.wf-check input { width: 22px; height: 22px; margin: 1px 0 0; flex-shrink: 0; accent-color: var(--brand); }
.wf .form-err { background: #FDECEA; color: #8A1C14; border-radius: 12px; padding: 12px 14px; font-size: 15px; }
.wf .form-err:empty { display: none; }
.wf-actions { display: flex; flex-wrap: wrap; gap: 12px 18px; align-items: center; }
.wf-loading { color: var(--muted); }
.thanks { background: #EEF7EF; border: 1px solid #9CCBA2; border-radius: 16px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; color: #1E4A24; }
.thanks svg { flex-shrink: 0; margin-top: 2px; }

/* Footer */
footer.site { background: var(--ink-deep); color: var(--on-dark-2); font-size: 14px; }
footer.site .wrap { padding-top: 32px; padding-bottom: 32px; display: flex; flex-wrap: wrap; gap: 12px 32px; justify-content: space-between; align-items: center; }
footer.site .brand { display: flex; align-items: center; gap: 14px; }
footer.site .brand img { width: 44px; height: 44px; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 24px; }
footer.site a { color: var(--on-dark-2); }
footer.site a:hover { color: #fff; }

/* Page intro (sleep check, privacy) */
.page-intro .narrow { padding-top: 64px; padding-bottom: 56px; display: flex; flex-direction: column; gap: 16px; }
.page-intro h1 { font-size: clamp(36px, 4.5vw, 54px); line-height: 1.08; }
.page-intro p { color: var(--on-dark); font-size: 19px; }
.page-intro .small { font-size: 15px; color: var(--on-dark-2); }

/* Sleep check */
.sc { padding-top: 56px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 56px; }
.progress-label { display: flex; justify-content: space-between; font-size: 15px; font-weight: 600; color: var(--body); margin-bottom: 10px; }
.bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar > div { height: 8px; border-radius: 999px; background: var(--brand); width: 0; transition: width 0.2s; }
.part { display: flex; flex-direction: column; gap: 24px; }
.part-head { display: flex; flex-direction: column; gap: 10px; }
.part-head h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; }
.part-head p { color: var(--muted); }
.q { margin: 0; border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.q legend { padding: 0; float: left; width: 100%; display: flex; gap: 14px; align-items: baseline; font-weight: 600; font-size: 18px; color: var(--ink); }
.q legend .n { font-family: 'Outfit', sans-serif; color: var(--brand); min-width: 22px; }
.opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.opt { min-height: 52px; border-radius: 14px; border: 1.5px solid var(--field); background: #fff; color: var(--text); padding: 8px 12px; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.25; font-family: inherit; }
.opt .v { font-weight: 700; font-size: 18px; }
.opt .t { font-size: 14px; }
.opt[aria-pressed=true] { background: var(--brand); border-color: var(--brand); color: #fff; }
.q.yn { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 16px 24px; }
.q.yn legend { flex: 1 1 380px; min-width: 0; align-items: flex-start; gap: 16px; font-size: 18px; font-weight: 400; }
.q.yn .letter { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 20px; width: 44px; height: 44px; border-radius: 12px; background: var(--lav); color: var(--brand); display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.q.yn .qt { display: flex; flex-direction: column; }
.q.yn .qt b { font-weight: 600; }
.q.yn .qt span { color: var(--body); font-size: 16px; }
.yn-opts { display: flex; gap: 10px; }
.yn-opts .opt { min-width: 88px; min-height: 48px; border-radius: 999px; font-weight: 600; }
.bmi { flex: 1 1 100%; background: var(--lav-2); border-radius: 14px; padding: 16px 18px; display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: flex-end; }
.bmi .hint { flex: 1 1 100%; font-size: 15px; color: var(--body); }
.bmi label { display: flex; flex-direction: column; gap: 4px; font-size: 14px; font-weight: 600; }
.bmi input { width: 130px; border: 1px solid var(--field); border-radius: 10px; padding: 10px 12px; min-height: 44px; font: inherit; font-weight: 400; }
.bmi .out { font-weight: 600; color: var(--ink); padding-bottom: 10px; }
.result { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: 40px; display: flex; flex-direction: column; gap: 28px; }
.result h2 { font-size: clamp(28px, 3vw, 36px); line-height: 1.15; }
.scores { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.score { background: var(--lav-2); border-radius: 20px; padding: 24px; display: flex; flex-direction: column; gap: 12px; }
.score .name { font-weight: 600; color: var(--body); }
.score .val { font-family: 'Outfit', sans-serif; font-weight: 600; font-size: 44px; line-height: 1; color: var(--ink); }
.score .val small { font-size: 22px; color: var(--muted); }
.meter { position: relative; height: 10px; border-radius: 999px; background: #E2D9EE; }
.meter > div { height: 10px; border-radius: 999px; background: var(--brand); }
.meter > i { position: absolute; top: -4px; width: 2px; height: 18px; background: var(--ink); }
.score .status { font-size: 15px; font-weight: 600; }
.warn { background: #FFF4E0; border: 1px solid #E8B04B; border-radius: 16px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; color: #5A3B00; }
.warn svg { flex-shrink: 0; margin-top: 2px; }
.send { border-top: 1px solid var(--line); padding-top: 28px; display: flex; flex-direction: column; gap: 18px; }
.send h3 { font-size: 24px; }
.send > p { color: var(--body); }
.fine { font-size: 14px; color: var(--muted); }
.attrib { font-size: 13px; color: #6A6276; }
.linkbtn { background: none; border: none; color: var(--body); font: inherit; font-weight: 600; text-decoration: underline; cursor: pointer; padding: 12px 8px; min-height: 48px; }

/* Privacy */
.policy { padding-top: 56px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 44px; max-width: 760px; }
.policy section { display: flex; flex-direction: column; gap: 14px; }
.policy h2 { font-size: 28px; line-height: 1.2; }
.policy ul { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 8px; }
.policy .box { background: var(--lav); border-radius: 24px; padding: 32px; }
.policy .box ul { list-style: none; padding: 0; }

@media (max-width: 640px) {
  .section { padding-top: 64px; padding-bottom: 64px; }
  .hero .wrap { padding-top: 56px; padding-bottom: 64px; gap: 40px; }
  .card, .form-card, .result { padding: 28px 22px; }
  .logo img { height: 52px; }
}