/* CosmoOS launch site. Tokens follow the app's DESIGN.md ("The Home Orbit"): one solid teal accent, midnight-navy
   chrome, Starlight neutrals, Manrope, one 10px radius, 4px spacing. No gradients, no purple. */

@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/manrope-latin-ext-wght-normal.woff2) format('woff2-variations');
  unicode-range:
    U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F,
    U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(assets/fonts/manrope-latin-wght-normal.woff2) format('woff2-variations');
  unicode-range:
    U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F,
    U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --teal: #20b8b0;
  --teal-hover: #1ea29e;
  --teal-ink: #136e6a;
  --teal-soft: #e4f6f6;
  --navy: #101b2d;
  --navy-raised: #17263b;
  --navy-line: #26374f;
  --on-navy: #e8eef5;
  --on-navy-muted: #9aabbf;
  --starlight: #f7f9fc;
  --surface: #ffffff;
  --mist: #eef2f7;
  --ink: #101b2d;
  --muted: #556275;
  --border: #dde4ed;
  --border-strong: #c5cfdb;
  --warning: #b45309;
  --danger: #dc2626;
  --success: #15803d;
  --radius: 10px;
  --ease: cubic-bezier(0.2, 0, 0, 1);
  --font: 'Manrope', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --wrap: 1200px;
  --gutter: 16px;
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
}
@media (min-width: 1024px) {
  :root {
    --gutter: 40px;
  }
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  margin: 0;
  background: var(--starlight);
  color: var(--ink);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  letter-spacing: -0.02em;
  text-wrap: balance;
}

p {
  margin: 0;
}

a {
  color: inherit;
}

img {
  display: block;
}

::selection {
  background: var(--teal-soft);
  color: var(--ink);
}

:focus-visible {
  outline: 2px solid var(--teal);
  outline-offset: 3px;
  border-radius: 4px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip {
  position: absolute;
  left: 8px;
  top: -48px;
  z-index: 50;
  padding: 8px 16px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 700;
}
.skip:focus {
  top: 8px;
}

.wrap {
  width: 100%;
  max-width: calc(var(--wrap) + 2 * var(--gutter));
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ---------- Buttons and the waitlist form ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: var(--navy);
  font: 700 0.9375rem/1 var(--font);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 120ms var(--ease);
}
.btn:hover {
  background: var(--teal-hover);
}
.btn:disabled {
  opacity: 0.6;
  cursor: progress;
}
.btn--ghost {
  border: 1px solid var(--teal);
  background: transparent;
  color: var(--surface);
}
.btn--ghost:hover {
  background: rgb(32 184 176 / 0.14);
}
.btn--small {
  height: 40px;
  padding: 0 16px;
  font-size: 0.875rem;
}

.waitlist {
  max-width: 520px;
}
.waitlist__consent {
  max-width: 520px;
  margin: 8px 0 0;
  color: var(--on-navy-muted);
  font-size: 0.8125rem;
  line-height: 1.5;
}
.waitlist__consent a,
.waitlist__closed a {
  color: var(--teal);
}
.join .waitlist__consent {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}
.waitlist__closed {
  max-width: 520px;
  margin: 0;
  padding: 14px 16px;
  border: 1px solid var(--navy-line);
  border-radius: var(--radius);
  color: var(--on-navy);
  font-weight: 600;
}

/* ---------- Masthead ---------- */

.masthead {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--navy);
  border-bottom: 1px solid var(--navy-line);
}
.masthead__bar {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--surface);
  font-size: 1.125rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-decoration: none;
}
.brand img {
  border-radius: var(--radius);
}
.brand--small {
  font-size: 1rem;
}
.masthead__nav {
  display: none;
  gap: 4px;
  margin-left: auto;
}
.masthead__nav a {
  padding: 8px 12px;
  border-radius: var(--radius);
  color: var(--on-navy-muted);
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: color 120ms var(--ease);
}
.masthead__nav a:hover {
  color: var(--surface);
}
.masthead .btn--small {
  margin-left: auto;
}
.masthead .masthead__try {
  display: none;
}
@media (min-width: 480px) {
  .masthead .masthead__try {
    display: inline-flex;
  }
  .masthead .masthead__try + .btn--small {
    margin-left: 8px;
  }
}
@media (min-width: 860px) {
  .masthead__nav {
    display: flex;
  }
  .masthead .btn--small {
    margin-left: 8px;
  }
}

/* ---------- Hero ---------- */

.hero {
  background: var(--navy);
  color: var(--on-navy);
  padding: 56px 0 72px;
}
.hero__grid {
  display: grid;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  color: var(--surface);
  font-size: clamp(2.5rem, 5.2vw, 4.25rem);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.035em;
}
.hero h1 span {
  display: block;
  color: var(--teal);
}
.hero__lede {
  max-width: 34rem;
  margin: 24px 0 28px;
  color: var(--on-navy);
  font-size: 1.125rem;
  line-height: 1.65;
}
@media (min-width: 960px) {
  .hero {
    padding: 80px 0 96px;
  }
  .hero__grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 64px;
  }
}

/* The demonstration: the feedback check at work, on a real work surface. */
.demo {
  margin: 0;
  padding: 24px;
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 24px 48px -24px rgb(0 0 0 / 0.55);
}
.demo__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}
.demo__title {
  font-size: 1rem;
  font-weight: 800;
}
.demo__tag {
  padding: 3px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--mist);
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}
.demo__label {
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.demo__brief,
.demo__message {
  padding: 16px 0;
  border-bottom: 1px solid var(--border);
}
.demo__brief ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 4px;
  font-size: 0.9375rem;
  font-weight: 600;
}
.demo__brief li::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 50%;
  background: var(--teal);
  vertical-align: middle;
}
.demo__message blockquote {
  margin: 0;
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--mist);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.demo__findings {
  margin: 0;
  padding: 16px 0 0;
  list-style: none;
  display: grid;
  gap: 12px;
}
.finding {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 0.9375rem;
  animation: finding-in 360ms var(--ease) backwards;
}
.finding:nth-child(2) {
  animation-delay: 160ms;
}
.finding:nth-child(3) {
  animation-delay: 320ms;
}
.finding p {
  font-weight: 600;
}
.finding__kind {
  justify-self: start;
  margin-bottom: 4px;
  padding: 2px 8px;
  border-radius: var(--radius);
  font-size: 0.75rem;
  font-weight: 800;
}
.finding--scope {
  border-color: rgb(180 83 9 / 0.3);
  background: rgb(180 83 9 / 0.05);
}
.finding--scope .finding__kind {
  background: rgb(180 83 9 / 0.12);
  color: #8a3f07; /* warning, one step darker for 4.5:1 on its own tint */
}
.finding--ok .finding__kind {
  background: var(--teal-soft);
  color: var(--teal-ink);
}
.finding__quote {
  color: var(--muted);
  font-size: 0.8125rem;
  font-weight: 500 !important;
}
.demo__foot {
  margin-top: 16px;
  color: var(--muted);
  font-size: 0.8125rem;
}
@keyframes finding-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
}

.hero__try {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 16px;
}
.hero__try span {
  color: var(--on-navy-muted);
  font-size: 0.875rem;
}
.hero__or {
  margin: 28px 0 10px;
  color: var(--on-navy);
  font-size: 0.9375rem;
  font-weight: 600;
}
.demo__foot a,
.faq a {
  color: var(--teal-ink);
  font-weight: 700;
}

/* ---------- Shared section type ---------- */

.section-title {
  font-size: clamp(1.75rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.12;
}
.section-lede {
  max-width: 40rem;
  margin-top: 16px;
  color: var(--muted);
  font-size: 1.0625rem;
}

/* ---------- Flow: one deal on one orbit ---------- */

.flow {
  padding: 88px 0;
  background: var(--surface);
}
.orbit {
  position: relative;
  margin: 56px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 32px;
}
.orbit::before {
  content: '';
  position: absolute;
  left: 15px;
  top: 8px;
  bottom: 8px;
  border-left: 2px dashed var(--border-strong);
}
.orbit li {
  position: relative;
  padding-left: 56px;
  counter-increment: step;
}
.orbit li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--surface);
  font-size: 0.875rem;
  font-weight: 800;
  box-shadow: 0 0 0 6px var(--surface);
}
.orbit li:nth-child(2)::before,
.orbit li:nth-child(4)::before {
  background: var(--teal);
  color: var(--navy);
}
.orbit h3 {
  font-size: 1.125rem;
  font-weight: 800;
}
.orbit p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 0.9375rem;
}
@media (min-width: 960px) {
  .orbit {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 28px;
  }
  .orbit::before {
    left: 16px;
    right: 16px;
    top: 15px;
    bottom: auto;
    border-left: 0;
    border-top: 2px dashed var(--border-strong);
  }
  .orbit li {
    padding: 56px 0 0;
  }
}

/* ---------- Pillars ---------- */

.pillars {
  padding: 88px 0;
}
.pillars__grid {
  display: grid;
  gap: 40px;
}
.pillars__list {
  margin: 0;
  display: grid;
  border-top: 2px solid var(--ink);
}
.pillars__list > div {
  display: grid;
  gap: 4px;
  padding: 20px 0;
  border-bottom: 1px solid var(--border);
}
.pillars__list dt {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.pillars__list dd {
  margin: 0;
  color: var(--muted);
}
@media (min-width: 760px) {
  .pillars__list > div {
    grid-template-columns: 9rem minmax(0, 1fr);
    gap: 24px;
    align-items: baseline;
  }
}
@media (min-width: 960px) {
  .pillars__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
  }
}

/* ---------- Control ---------- */

.control {
  padding: 88px 0;
  background: var(--surface);
}
.control__list {
  margin: 40px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 32px 48px;
}
.control__list li {
  padding-top: 20px;
  border-top: 1px solid var(--border-strong);
}
.control__list h3 {
  font-size: 1.125rem;
  font-weight: 800;
}
.control__list p {
  margin-top: 8px;
  color: var(--muted);
}
@media (min-width: 760px) {
  .control__list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---------- FAQ ---------- */

.faq {
  padding: 88px 0;
}
.faq__grid {
  display: grid;
  gap: 32px;
}
.faq__list details {
  border-bottom: 1px solid var(--border);
}
.faq__list details:first-child {
  border-top: 1px solid var(--border);
}
.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 0;
  font-size: 1.0625rem;
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}
.faq__list summary::-webkit-details-marker {
  display: none;
}
.faq__list summary::after {
  content: '';
  flex: none;
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg) translateY(-3px);
  transition: transform 160ms var(--ease);
}
.faq__list details[open] summary::after {
  transform: rotate(225deg) translateY(-3px);
}
.faq__list details p {
  max-width: 44rem;
  padding: 0 0 20px;
  color: var(--muted);
}
@media (min-width: 960px) {
  .faq__grid {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 64px;
  }
}

/* ---------- Closing band ---------- */

.join {
  padding: 96px 0;
  background: var(--navy);
  color: var(--on-navy);
  text-align: center;
}
.join__inner {
  display: grid;
  justify-items: center;
}
.join__mark {
  border-radius: 20px;
}
.join h2 {
  max-width: 40rem;
  margin: 28px 0 32px;
  color: var(--surface);
  font-size: clamp(1.75rem, 3.6vw, 2.75rem);
  font-weight: 800;
  line-height: 1.12;
}
.waitlist--center {
  width: 100%;
  margin: 0 auto;
}

/* ---------- Footer ---------- */

.footer {
  background: var(--navy);
  border-top: 1px solid var(--navy-line);
  color: var(--on-navy-muted);
  font-size: 0.875rem;
}
.footer__bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding-top: 28px;
  padding-bottom: 28px;
}
.footer__bar p {
  margin: 0;
}
.social {
  display: flex;
  gap: 16px;
}
.social a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--on-navy);
  font-weight: 600;
  text-decoration: none;
  transition: color 120ms var(--ease);
}
.social a:hover {
  color: var(--teal);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* ---------- Legal pages ---------- */

.legal {
  padding: 56px 0 88px;
  background: var(--starlight);
  color: var(--ink);
}
.legal__inner {
  max-width: calc(44rem + 2 * var(--gutter));
}
.legal h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  font-weight: 800;
  line-height: 1.1;
}
.legal__meta {
  margin-top: 8px;
  color: var(--muted);
  font-size: 0.875rem;
}
.legal h2 {
  margin-top: 40px;
  font-size: 1.25rem;
  font-weight: 800;
}
.legal p,
.legal ul {
  margin-top: 12px;
  line-height: 1.65;
}
.legal ul {
  padding-left: 1.25rem;
}
.legal li + li {
  margin-top: 6px;
}
.legal a {
  color: var(--teal-ink);
  font-weight: 600;
}
.legal__back {
  margin-top: 48px;
}
.masthead__bar > .brand + .btn {
  margin-left: auto;
}
