/* Rescript Sleep — marketing site.
   Tokens transcribed from Marketing Site.dc.html. */

:root {
  --sbg: oklch(0.17 0.012 58);
  --sbg2: oklch(0.215 0.014 58);
  --sbg3: oklch(0.27 0.016 60);
  --sline: oklch(0.30 0.014 58);
  --stx: oklch(0.95 0.010 75);
  --stx2: oklch(0.755 0.014 70);
  --stx3: oklch(0.615 0.014 70);
  --sacc: oklch(0.80 0.09 62);
  --saccq: oklch(0.30 0.045 62);
  --ssage: oklch(0.80 0.09 165);
  --sonacc: oklch(0.22 0.03 60);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--sbg);
  color: var(--stx);
  font-family: 'Work Sans', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--sacc); text-decoration: none; }
a:hover { color: oklch(0.87 0.07 62); }

h1, h2, p { margin: 0; }

@keyframes rsGlow { 0%, 100% { opacity: .5 } 50% { opacity: .85 } }

.page { display: flex; flex-direction: column; align-items: center; width: 100%; overflow-x: hidden; }
.wrap { width: 100%; max-width: 1160px; padding: 0 32px; }
.band { width: 100%; display: flex; justify-content: center; }
.band-line { border-top: 1px solid var(--sline); }
.band-2 { background: var(--sbg2); border-top: 1px solid var(--sline); border-bottom: 1px solid var(--sline); }

.serif { font-family: Newsreader, serif; font-weight: 400; }

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--sacc);
}

.lede { font-size: 16px; line-height: 1.65; color: var(--stx2); }

/* ── Nav ────────────────────────────────────────────────────── */

.nav {
  width: 100%;
  display: flex;
  justify-content: center;
  border-bottom: 1px solid var(--sline);
  background: color-mix(in oklab, var(--sbg) 88%, transparent);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 20;
}

.nav-inner {
  width: 100%;
  max-width: 1160px;
  padding: 20px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand { display: flex; align-items: center; gap: 11px; }

.brand-mark {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, var(--sacc), transparent 72%);
  border: 1px solid var(--sline);
  flex: none;
}

.brand-name { font-family: Newsreader, serif; font-size: 20px; letter-spacing: -0.2px; }
.nav-links { display: flex; align-items: center; gap: 26px; }
.nav-links a { font-size: 14.5px; color: var(--stx2); }
.nav-links a:hover { color: var(--stx); }

/* `.nav-links a` is (0,1,1) and beats `.btn` at (0,1,0), so the header CTA was
   taking the muted light text colour and painting it on the amber fill —
   light on light, barely readable. The button needs dark text like every
   other filled button, so state it at a specificity that wins. */
.nav-links a.btn, .nav-links a.btn:hover { color: var(--sonacc); }

.btn {
  display: inline-block;
  text-align: center;
  font-size: 15.5px;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 14px;
  background: var(--sacc);
  color: var(--sonacc);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.btn:hover { filter: brightness(1.07); color: var(--sonacc); }

.btn-nav { font-size: 14.5px; font-weight: 500; padding: 10px 17px; border-radius: 12px; }

.btn-quiet {
  background: var(--sbg3);
  border: 1px solid var(--sline);
  color: var(--stx);
  font-weight: 500;
}

.btn-quiet:hover { color: var(--stx); }

/* ── Hero ───────────────────────────────────────────────────── */

.hero {
  width: 100%;
  max-width: 1160px;
  padding: 78px 32px 88px;
  display: flex;
  gap: 64px;
  align-items: center;
  flex-wrap: wrap;
}

.hero-copy { flex: 1; min-width: 340px; display: flex; flex-direction: column; gap: 26px; }

.hero-kicker {
  font-family: Newsreader, serif;
  font-weight: 300;
  font-style: italic;
  font-size: 40px;
  line-height: 1.1;
  letter-spacing: -0.6px;
  color: var(--sacc);
}

.hero h1 {
  font-family: Newsreader, serif;
  font-weight: 400;
  font-size: 62px;
  line-height: 1.03;
  letter-spacing: -1.3px;
  text-wrap: balance;
}

.hero-sub {
  font-size: 19px;
  line-height: 1.6;
  color: var(--stx2);
  max-width: 520px;
  text-wrap: pretty;
}

.hero-device { flex: none; position: relative; padding: 12px; }

.hero-glow {
  position: absolute;
  inset: -30px;
  background: radial-gradient(ellipse at 50% 40%, var(--saccq), transparent 68%);
  animation: rsGlow 9s ease-in-out infinite;
  pointer-events: none;
}

/* ── Scaled screen embeds ───────────────────────────────────── */

.embed {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--sline);
  background: var(--sbg2);
  flex: none;
}

.embed > .scaler { width: 402px; height: 874px; transform-origin: top left; }
.embed .rs { pointer-events: none; }

.embed-hero { width: 328px; height: 713px; border-radius: 44px; box-shadow: 0 40px 90px rgba(0,0,0,.45); }
.embed-hero > .scaler { transform: scale(0.8159); }

.embed-step { width: 243px; height: 528px; border-radius: 26px; }
.embed-step > .scaler { transform: scale(0.6045); }

.embed-review { width: 340px; height: 434px; border-radius: 24px; }
.embed-review > .scaler { transform: scale(0.8458); }

/* ── Waitlist ───────────────────────────────────────────────── */

.waitlist { display: flex; flex-direction: column; gap: 11px; max-width: 470px; scroll-margin-top: 90px; }
.waitlist-row { display: flex; gap: 9px; flex-wrap: wrap; }

.waitlist input {
  flex: 1;
  min-width: 210px;
  background: var(--sbg2);
  border: 1px solid var(--sline);
  border-radius: 14px;
  padding: 16px 18px;
  color: var(--stx);
  font-family: inherit;
  font-size: 16px;
  outline: none;
}

.waitlist input:focus { border-color: var(--sacc); }
.waitlist .btn { padding: 16px 24px; font-size: 16px; }
.fine { font-size: 13px; color: var(--stx3); line-height: 1.5; }

.note {
  background: var(--sbg2);
  border: 1px solid var(--sline);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.note.ok { border-color: var(--ssage); }
.note.ok .note-t { color: var(--ssage); }
.note-t { font-size: 16px; font-weight: 500; }
.note-b { font-size: 14px; color: var(--stx2); line-height: 1.5; }

/* ── Sections ───────────────────────────────────────────────── */

.sec { width: 100%; max-width: 1160px; padding: 84px 32px; }
.sec-head { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; align-items: flex-end; }
.sec h2 { font-family: Newsreader, serif; font-weight: 400; letter-spacing: -0.7px; line-height: 1.1; }

.compare-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 20px;
  padding: 14px 0;
  border-top: 1px solid var(--sline);
}

.compare-row .n { font-size: 16.5px; font-weight: 500; }
.compare-row .d { font-size: 15px; color: var(--stx2); text-align: right; }
.compare-row.is-us .n { color: var(--sacc); }

.steps { display: flex; gap: 28px; flex-wrap: wrap; }
.step { flex: 1; min-width: 230px; display: flex; flex-direction: column; gap: 16px; }
.step-copy { display: flex; flex-direction: column; gap: 7px; max-width: 270px; }
.step-copy .n { font-family: Newsreader, serif; font-size: 14px; color: var(--sacc); }
.step-copy .t { font-size: 19px; font-weight: 500; line-height: 1.25; }
.step-copy .b { font-size: 14.5px; line-height: 1.55; color: var(--stx2); }

.why { background: linear-gradient(180deg, var(--saccq), var(--sbg) 62%); }
.why-inner { width: 100%; max-width: 820px; padding: 96px 32px; display: flex; flex-direction: column; gap: 30px; }

.why-inner .big {
  font-family: Newsreader, serif;
  font-size: 46px;
  line-height: 1.14;
  letter-spacing: -1px;
  text-wrap: pretty;
}

.hr { height: 1px; background: var(--sline); }

.cards { display: flex; gap: 18px; flex-wrap: wrap; }

.card {
  flex: 1;
  min-width: 210px;
  background: var(--sbg2);
  border: 1px solid var(--sline);
  border-radius: 20px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.card .t { font-family: Newsreader, serif; font-size: 20px; line-height: 1.25; }
.card .b { font-size: 14.5px; line-height: 1.6; color: var(--stx2); }
.card-plain { background: var(--sbg); border-radius: 18px; padding: 20px; }
.card-plain .t { font-family: inherit; font-size: 16.5px; font-weight: 500; }
.card-plain .b { font-size: 14.5px; line-height: 1.55; }

.never-row {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding: 17px 0;
  border-top: 1px solid var(--sline);
}

.never-row .lab {
  font-size: 13px;
  color: var(--stx3);
  width: 56px;
  flex: none;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.never-row .txt { font-family: Newsreader, serif; font-size: 25px; line-height: 1.3; }
.never-row.is-only { border-bottom: 1px solid var(--sline); }
.never-row.is-only .lab, .never-row.is-only .txt { color: var(--sacc); }

.manual-head { display: flex; gap: 16px; padding-bottom: 9px; }

.manual-head span {
  flex: 1;
  font-size: 11.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stx3);
}

.manual-head .r { color: var(--sacc); }
.manual-row { display: flex; gap: 16px; padding: 12px 0; border-top: 1px solid var(--sline); }
.manual-row span { flex: 1; font-size: 14.5px; line-height: 1.5; }
.manual-row .ai { color: var(--stx3); }

.pull {
  border-left: 2px solid var(--sacc);
  padding: 4px 0 4px 16px;
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-top: 6px;
}

.pull .t { font-size: 15.5px; font-weight: 500; }
.pull .b { font-size: 14.5px; line-height: 1.6; color: var(--stx2); }

.chips { display: flex; flex-wrap: wrap; gap: 10px; align-content: flex-start; }

.chips span {
  font-size: 15px;
  color: var(--stx2);
  background: var(--sbg2);
  border: 1px solid var(--sline);
  border-radius: 12px;
  padding: 11px 15px;
}

/* ── Pricing ────────────────────────────────────────────────── */

.plans { display: flex; gap: 22px; flex-wrap: wrap; }

.plan {
  flex: 1;
  min-width: 290px;
  background: var(--sbg2);
  border: 1px solid var(--sline);
  border-radius: 22px;
  padding: 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.plan.is-paid { background: linear-gradient(160deg, var(--saccq), var(--sbg2) 78%); border-color: var(--sacc); }
.plan .tier { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stx3); }
.plan.is-paid .tier { color: var(--sacc); }
.plan .price { font-family: Newsreader, serif; font-size: 38px; line-height: 1; }
.plan .price small { font-family: 'Work Sans', sans-serif; font-size: 15px; color: var(--stx2); }
.plan ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.plan li { font-size: 15px; color: var(--stx2); display: flex; gap: 10px; }
.plan li i { font-style: normal; color: var(--ssage); }
.plan.is-paid li i { color: var(--sacc); }
.plan .grow { flex: 1; }

/* ── FAQ ────────────────────────────────────────────────────── */

.faq-inner { width: 100%; max-width: 820px; padding: 76px 32px; display: flex; flex-direction: column; gap: 26px; }
.faq-item { border-top: 1px solid var(--sline); display: flex; flex-direction: column; }

.faq-q {
  appearance: none;
  border: none;
  background: transparent;
  cursor: pointer;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 19px 0;
  color: var(--stx);
  font-family: inherit;
  font-size: 17.5px;
  font-weight: 500;
}

.faq-q .sign { color: var(--sacc); font-size: 20px; flex: none; }
.faq-a { margin: 0 0 20px; font-size: 16px; line-height: 1.65; color: var(--stx2); max-width: 640px; }
.faq-a[hidden] { display: none; }

/* ── Close + footer ─────────────────────────────────────────── */

.close {
  width: 100%;
  max-width: 1160px;
  padding: 88px 32px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: center;
  text-align: center;
}

.close h2 {
  font-family: Newsreader, serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1.06;
  letter-spacing: -1px;
  max-width: 720px;
  text-wrap: balance;
}

.foot { width: 100%; border-top: 1px solid var(--sline); display: flex; justify-content: center; margin-top: 40px; }

.foot-inner {
  width: 100%;
  max-width: 1160px;
  padding: 34px 32px 56px;
  display: flex;
  gap: 36px;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
}

.disclaimer { font-size: 13px; line-height: 1.6; color: var(--stx3); }
.foot-cols { display: flex; gap: 44px; flex-wrap: wrap; }
.foot-col { display: flex; flex-direction: column; gap: 9px; }
.foot-col .h { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--stx3); }
.foot-col a { font-size: 14.5px; color: var(--stx2); }

/* ── Responsive ─────────────────────────────────────────────── */

@media (max-width: 900px) {
  /* Phone mockups are fixed-width and flex:none, so once the hero and the
     step list wrap to a single column they sit hard against the left edge
     instead of under the copy they belong to. */
  .hero { justify-content: center; }
  .hero-device { margin-left: auto; margin-right: auto; }
  .step { align-items: center; }
  .step-copy { max-width: 320px; }
  .nav-links a:not(.btn-nav) { display: none; }
  .hero { padding: 48px 24px 56px; gap: 40px; }
  .hero h1 { font-size: 44px; letter-spacing: -0.8px; }
  .hero-kicker { font-size: 30px; }
  .hero-sub { font-size: 17px; }
  .sec, .close { padding-left: 24px; padding-right: 24px; }
  .sec { padding-top: 56px; padding-bottom: 56px; }
  .why-inner .big { font-size: 32px; }
  .close h2 { font-size: 34px; }
  .sec h2 { font-size: 30px !important; }
}
