:root {
  color-scheme: light dark;
  --background: #f9f9fe;
  --surface: #ffffff;
  --surface-low: #f2f3f9;
  --surface-high: #dfe2eb;
  --text: #2e3339;
  --muted: #5b5f67;
  --outline: #777b83;
  --border: #aeb2ba;
  --primary: #5e5a88;
  --primary-fixed: #c7c1f6;
  --primary-fixed-dim: #b9b3e7;
  --secondary: #655a7b;
  --tertiary: #8a4e4f;
  --hero-start: #4a4477;
  --hero-end: #2e2a55;
  --shadow: 0 24px 70px rgba(46, 42, 85, 0.12);
  --font-headline: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-body: "Be Vietnam Pro", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
}

body,
button,
input,
textarea {
  letter-spacing: 0;
}

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

a {
  color: inherit;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 0;
  z-index: 20;
  transform: translateY(-220%);
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
}

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

.site-header {
  position: sticky;
  top: 12px;
  z-index: 10;
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 12px auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px 14px 10px 12px;
  border: 1px solid rgba(174, 178, 186, 0.58);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: 0 14px 40px rgba(46, 42, 85, 0.08);
  backdrop-filter: blur(18px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  text-decoration: none;
}

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

.brand span {
  display: grid;
  gap: 1px;
}

.brand strong {
  font-family: var(--font-headline);
  font-size: 19px;
  line-height: 1;
}

.brand small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
}

.site-header nav,
.site-footer nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.site-header nav a,
.site-footer nav a {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.site-header nav a:hover,
.site-footer nav a:hover,
.text-link:hover {
  color: var(--primary);
}

.landing-hero {
  position: relative;
  min-height: 78svh;
  overflow: hidden;
  color: #ffffff;
  background: #13111e;
}

.hero-bg,
.hero-bg::after {
  position: absolute;
  inset: 0;
}

.hero-bg {
  background-image: image-set(
    url("./assets/dreamer-bg.webp") type("image/webp"),
    url("./assets/dreamer-bg.jpg") type("image/jpeg")
  );
  background-size: cover;
  background-position: center 42%;
}

.hero-bg::after {
  content: "";
  background: rgba(19, 17, 30, 0.66);
}

.hero-inner {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  align-items: center;
  gap: 54px;
  padding: 56px 0 64px;
}

.hero-copy {
  max-width: 650px;
  min-width: 0;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--primary-fixed-dim);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
  overflow-wrap: break-word;
}

h1,
h2,
h3,
.button,
.store-badge strong,
.floating-metric strong {
  font-family: var(--font-headline);
}

h1 {
  margin-bottom: 22px;
  font-size: 68px;
  line-height: 1.02;
}

.hero-lede {
  max-width: 610px;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 18px;
  line-height: 1.75;
}

.hero-actions,
.button-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}

.button {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 22px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.button.primary {
  background: #ffffff;
  color: var(--hero-end);
}

.button.secondary {
  border: 1px solid rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.content .button.primary,
.content .button,
.download-panel .button.primary {
  background: var(--primary);
  color: #ffffff;
}

.content .button.secondary {
  border: 1px solid var(--border);
  background: var(--surface-low);
  color: var(--primary);
}

.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.hero-points li {
  border: 1px solid rgba(199, 193, 246, 0.34);
  border-radius: 999px;
  padding: 8px 12px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 12px;
  font-weight: 600;
}

.product-stage {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 620px;
}

.phone-shell {
  width: 318px;
  border-radius: 42px;
  padding: 10px;
  background: #0c0e12;
  box-shadow: 0 34px 90px rgba(0, 0, 0, 0.44);
}

.phone-screen {
  min-height: 608px;
  overflow: hidden;
  border-radius: 34px;
  padding: 18px 14px;
  background: var(--background);
  color: var(--text);
}

.mock-topbar,
.mock-cta,
.mock-calendar,
.mock-timeline div {
  display: flex;
  align-items: center;
}

.mock-topbar {
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.mock-topbar > span:nth-child(2) {
  flex: 1;
  display: grid;
  gap: 2px;
}

.mock-topbar strong,
.mock-cta strong,
.mock-timeline strong {
  font-family: var(--font-headline);
  line-height: 1.15;
}

.mock-topbar small,
.mock-timeline small {
  color: var(--muted);
  font-size: 10px;
}

.mock-avatar,
.mock-gear,
.mock-play,
.dot {
  flex: 0 0 auto;
  border-radius: 999px;
}

.mock-avatar {
  width: 34px;
  height: 34px;
  background: var(--primary-fixed);
}

.mock-gear {
  width: 32px;
  height: 32px;
  background: var(--surface-low);
  border: 1px solid rgba(174, 178, 186, 0.48);
}

.mock-cta {
  justify-content: space-between;
  gap: 10px;
  min-height: 54px;
  margin-bottom: 14px;
  border-radius: 24px;
  padding: 10px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(46, 42, 85, 0.08);
}

.mock-play {
  width: 34px;
  height: 34px;
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
}

.mock-chip {
  border-radius: 999px;
  padding: 5px 9px;
  background: var(--primary-fixed);
  color: var(--primary);
  font-size: 10px;
  font-weight: 700;
}

.mock-hero-card {
  display: grid;
  justify-items: center;
  gap: 10px;
  margin-bottom: 14px;
  border-radius: 16px;
  padding: 24px 18px;
  text-align: center;
  color: #ffffff;
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
}

.mock-hero-card p {
  margin: 0;
  color: var(--primary-fixed-dim);
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
}

.mock-ring {
  width: 138px;
  height: 138px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, var(--hero-start) 54%, transparent 56%),
    conic-gradient(var(--primary-fixed) 0 68%, rgba(255, 255, 255, 0.12) 68% 100%);
}

.mock-ring span {
  font-family: var(--font-headline);
  font-size: 32px;
  font-weight: 800;
}

.mock-hero-card h2 {
  margin: 0;
  font-size: 18px;
}

.mock-hero-card small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
}

.mock-pressure {
  border-radius: 999px;
  padding: 7px 11px;
  background: rgba(255, 255, 255, 0.14);
  color: rgba(255, 255, 255, 0.84);
  font-size: 11px;
  font-weight: 600;
}

.mock-calendar {
  justify-content: space-between;
  gap: 6px;
  margin-bottom: 14px;
}

.mock-calendar span {
  flex: 1;
  border-radius: 14px;
  padding: 9px 0;
  background: var(--surface-low);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  text-align: center;
}

.mock-calendar .active {
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
  color: #ffffff;
}

.mock-timeline {
  display: grid;
  gap: 10px;
}

.mock-timeline div {
  gap: 10px;
  border-radius: 22px;
  padding: 12px;
  background: var(--surface);
  box-shadow: 0 10px 24px rgba(46, 42, 85, 0.06);
}

.mock-timeline div strong,
.mock-timeline div small {
  display: block;
}

.dot {
  width: 10px;
  height: 10px;
  background: var(--tertiary);
}

.floating-metric {
  position: absolute;
  display: grid;
  gap: 0;
  min-width: 116px;
  border: 1px solid rgba(199, 193, 246, 0.34);
  border-radius: 24px;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  backdrop-filter: blur(14px);
}

.floating-metric strong {
  font-size: 25px;
  line-height: 1.05;
}

.floating-metric span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 600;
}

.floating-metric.one {
  left: -8px;
  top: 120px;
}

.floating-metric.two {
  right: -18px;
  bottom: 132px;
}

.proof-strip,
.section,
.site-footer,
.shell {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

/* Nap prediction spotlight */
.spotlight {
  margin-top: 18px;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
  color: #ffffff;
  overflow: hidden;
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
}

.spotlight-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 52px;
  padding: 60px 52px;
}

.spotlight .eyebrow {
  color: var(--primary-fixed-dim);
}

.spotlight h2 {
  margin-bottom: 18px;
  color: #ffffff;
  font-size: 40px;
  line-height: 1.1;
}

.spotlight-lead {
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
  line-height: 1.72;
  margin-bottom: 0;
}

.prediction-pillars {
  display: grid;
  gap: 12px;
}

.pillar-card {
  border: 1px solid rgba(199, 193, 246, 0.28);
  border-radius: 20px;
  padding: 22px 24px;
  background: rgba(255, 255, 255, 0.10);
}

.pillar-card h3 {
  margin: 0 0 6px;
  color: #ffffff;
  font-family: var(--font-headline);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
}

.pillar-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 13px;
  line-height: 1.58;
}

.proof-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-top: 18px;
}

.proof-strip div {
  min-height: 112px;
  border: 1px solid rgba(174, 178, 186, 0.5);
  border-radius: 24px;
  padding: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.proof-strip strong,
.proof-strip span {
  display: block;
}

.proof-strip strong {
  margin-bottom: 6px;
  font-family: var(--font-headline);
  font-size: 17px;
  line-height: 1.2;
}

.proof-strip span {
  color: var(--muted);
  font-size: 13px;
}

.section {
  padding: 76px 0 0;
}

.section-heading {
  max-width: 720px;
  margin-bottom: 28px;
  min-width: 0;
}

.section-heading.compact {
  max-width: 620px;
}

.section h2 {
  margin-bottom: 14px;
  font-size: 42px;
  line-height: 1.1;
}

.section-heading p:not(.eyebrow),
.showcase-copy p,
.download-panel p,
.content p,
.content li {
  color: var(--muted);
}

.feature-grid,
.resource-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.feature-card,
.resource-card,
.content {
  border: 1px solid rgba(174, 178, 186, 0.5);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.feature-card,
.resource-card {
  padding: 24px;
}

.feature-card h3,
.resource-card h3,
.steps h3 {
  margin-bottom: 8px;
  font-size: 20px;
  line-height: 1.18;
}

.feature-card p,
.resource-card p,
.steps p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.primary-feature {
  background: var(--surface-low);
}

.feature-icon {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 999px;
  background: rgba(199, 193, 246, 0.42);
  color: var(--primary);
  font-family: var(--font-headline);
  font-size: 13px;
  font-weight: 800;
}

.split-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  align-items: start;
  gap: 40px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.steps article {
  border-radius: 24px;
  padding: 24px;
  background: var(--surface-low);
}

.steps span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: var(--primary);
  color: #ffffff;
  font-family: var(--font-headline);
  font-weight: 800;
}

.showcase {
  display: grid;
  grid-template-columns: 0.78fr 1.22fr;
  align-items: center;
  gap: 40px;
}

.showcase picture,
.showcase img {
  border-radius: 28px;
}

.showcase picture {
  overflow: hidden;
  box-shadow: 0 28px 80px rgba(46, 42, 85, 0.16);
}

.text-link {
  display: inline-flex;
  margin-top: 8px;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
}

.download-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  align-items: center;
  gap: 28px;
  border-radius: 28px;
  padding: 34px;
  background: linear-gradient(135deg, var(--hero-start), var(--hero-end));
  color: #ffffff;
}

.download-panel h2 {
  font-size: 34px;
}

.download-panel p {
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.78);
}

.store-list {
  display: grid;
  gap: 12px;
}

.store-badge {
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 20px;
  padding: 16px 18px;
  background: rgba(255, 255, 255, 0.12);
}

.store-badge span,
.store-badge strong {
  display: block;
}

.store-badge span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
}

.store-badge strong {
  font-size: 22px;
}

.resource-card {
  color: var(--text);
  text-decoration: none;
}

.resource-card:hover {
  border-color: var(--primary-fixed);
}

.faq-list {
  display: grid;
  gap: 12px;
}

details {
  border: 1px solid rgba(174, 178, 186, 0.5);
  border-radius: 24px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

summary {
  cursor: pointer;
  padding: 20px 22px;
  font-family: var(--font-headline);
  font-size: 18px;
  font-weight: 800;
}

details p {
  margin: 0;
  padding: 0 22px 22px;
  color: var(--muted);
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 28px;
  margin-top: 80px;
  padding: 32px 0 48px;
  border-top: 1px solid rgba(174, 178, 186, 0.42);
}

.site-footer > div {
  max-width: 560px;
}

.site-footer p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.footer-brand img {
  width: 38px;
  height: 38px;
}

/* Policy and support pages */
.shell {
  padding: 36px 0 0;
}

.shell .site-header {
  width: 100%;
  margin: 0 0 28px;
}

.legal-hero,
.hero {
  border-radius: 28px;
  padding: 42px;
  color: #ffffff;
  background:
    linear-gradient(rgba(19, 17, 30, 0.62), rgba(19, 17, 30, 0.62)),
    image-set(
      url("./assets/dreamer-bg.webp") type("image/webp"),
      url("./assets/dreamer-bg.jpg") type("image/jpeg")
    );
  background-size: cover;
  background-position: center;
}

.legal-hero .updated,
.hero .updated,
.updated {
  margin-bottom: 12px;
  color: var(--primary-fixed-dim);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.legal-hero h1,
.hero h1 {
  max-width: 820px;
  margin-bottom: 16px;
  font-size: 48px;
}

.legal-hero p:not(.updated),
.hero p:not(.updated) {
  max-width: 760px;
  margin-bottom: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 17px;
}

.content {
  margin-top: 22px;
  padding: 34px;
  min-width: 0;
}

.content h2 {
  margin: 34px 0 10px;
  font-size: 26px;
  line-height: 1.15;
}

.content h2:first-child {
  margin-top: 0;
}

.content h3 {
  margin: 24px 0 8px;
}

.content p,
.content ul,
.content ol {
  margin-bottom: 0;
}

.content li + li {
  margin-top: 8px;
}

.content a {
  color: var(--primary);
  font-weight: 800;
}

.callout {
  margin-top: 22px;
  border-radius: 20px;
  padding: 18px;
  background: var(--surface-low);
  color: var(--muted);
}

code {
  border-radius: 8px;
  padding: 2px 6px;
  background: var(--surface-low);
  color: var(--primary);
}

@media (max-width: 980px) {
  .hero-inner,
  .split-section,
  .showcase,
  .download-panel,
  .spotlight-inner {
    grid-template-columns: 1fr;
  }

  .spotlight-inner {
    gap: 32px;
    padding: 44px 32px;
  }

  .spotlight h2 {
    font-size: 34px;
  }

  .hero-inner {
    gap: 32px;
  }

  .product-stage {
    min-height: auto;
  }

  .feature-grid,
  .resource-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .download-panel {
    padding: 28px;
  }
}

@media (max-width: 720px) {
  .site-header,
  .proof-strip,
  .section,
  .site-footer,
  .shell,
  .hero-inner {
    width: calc(100vw - 32px);
    max-width: calc(100vw - 32px);
  }

  .site-header {
    position: static;
    align-items: flex-start;
    flex-direction: column;
    border-radius: 24px;
  }

  .site-header nav,
  .site-footer nav {
    justify-content: flex-start;
    max-width: 100%;
  }

  .site-header nav a,
  .site-footer nav a {
    font-size: 12px;
  }

  .landing-hero {
    min-height: auto;
  }

  .hero-inner {
    padding: 52px 0 42px;
  }

  h1 {
    font-size: 40px;
  }

  .hero-copy h1 {
    max-width: 13ch;
  }

  .section h2,
  .download-panel h2 {
    font-size: 32px;
  }

  .hero-lede {
    max-width: 34ch;
    font-size: 16px;
    overflow-wrap: break-word;
  }

  .hero-points {
    max-width: 340px;
  }

  .hero-inner {
    padding: 38px 0 28px;
  }

  .product-stage {
    max-height: 360px;
    margin-top: 14px;
    overflow: hidden;
  }

  .phone-shell {
    width: min(270px, 100%);
    border-radius: 36px;
    padding: 8px;
  }

  .phone-screen {
    min-height: 520px;
    border-radius: 30px;
    padding: 16px 12px;
  }

  .mock-hero-card {
    padding: 18px 14px;
  }

  .mock-ring {
    width: 112px;
    height: 112px;
  }

  .mock-ring span {
    font-size: 28px;
  }

  .floating-metric {
    display: none;
  }

  .proof-strip,
  .feature-grid,
  .resource-grid,
  .steps {
    grid-template-columns: 1fr;
  }

  .section {
    padding-top: 58px;
  }

  .showcase {
    gap: 22px;
  }

  .legal-hero,
  .hero,
  .content {
    padding: 26px;
    max-width: 100%;
  }

  .legal-hero h1,
  .hero h1 {
    font-size: 38px;
  }

  .site-footer {
    flex-direction: column;
    margin-top: 58px;
  }

  .spotlight {
    border-radius: 20px;
  }

  .spotlight-inner {
    padding: 36px 24px;
    gap: 24px;
  }

  .spotlight h2 {
    font-size: 28px;
  }
}

@media (max-width: 520px) {
  .site-header,
  .proof-strip,
  .section,
  .site-footer,
  .shell,
  .hero-inner {
    width: min(calc(100vw - 32px), 358px);
    max-width: min(calc(100vw - 32px), 358px);
  }

  .site-header,
  .proof-strip,
  .section,
  .site-footer,
  .shell,
  .hero-inner {
    margin-left: 16px;
    margin-right: auto;
  }

  .shell .site-header {
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (max-width: 420px) {
  .site-header,
  .proof-strip,
  .section,
  .site-footer,
  .shell,
  .hero-inner {
    width: calc(100vw - 24px);
    max-width: calc(100vw - 24px);
  }

  h1 {
    font-size: 36px;
  }

  .button {
    width: 100%;
  }

  .hero-actions {
    width: 100%;
  }
}

@media (prefers-color-scheme: dark) {
  :root {
    --background: #13111e;
    --surface: #1b1928;
    --surface-low: #1f1d2e;
    --surface-high: #31304c;
    --text: #e8e3f4;
    --muted: #9994b8;
    --outline: #6a6690;
    --border: #302d48;
    --primary: #c7c1f6;
    --primary-fixed: #c7c1f6;
    --primary-fixed-dim: #b9b3e7;
    --secondary: #ddcef5;
    --tertiary: #f7aaaa;
    --shadow: none;
  }

  .site-header {
    border-color: rgba(48, 45, 72, 0.8);
    background: rgba(27, 25, 40, 0.86);
  }

  .button.primary {
    background: var(--primary-fixed);
    color: #2b2751;
  }

  .content .button.primary,
  .content .button {
    background: #5e5a88;
    color: #ffffff;
  }

  .phone-screen {
    background: var(--background);
  }

  .mock-cta,
  .mock-timeline div,
  .proof-strip div,
  .feature-card,
  .resource-card,
  .content,
  details {
    border-color: rgba(48, 45, 72, 0.9);
  }
}
