:root {
  --sand: #F4E7DD;
  --paper: #FBF8F5;
  --peach: #F5D9C6;
  --lavender: #DDD8F3;
  --butter: #F2DE94;
  --sage-light: #CFE0D3;
  --sage: #8FA37B;
  --ink: #1F1B19;
  --ink-muted: #706661;
  --ink-muted-on-sage: #506352;
  --ink-muted-on-lavender: #605A83;
  --ink-muted-on-peach: #775B4A;
  --ink-warm: #775B4A;
  --coral: #E3865F;
  --link: #B9603C;
  --link-pressed: #8E4526;
  --green: #506352;
  --violet: #605A83;
  --hairline: #E6D8CC;
  --hairline-strong: #D8C8BB;
  --card-label: #706661;
  --card-label-sage: #506352;
  --card-label-peach: #775B4A;
  --card-label-lavender: #605A83;
}

/*
 * Morning Mirror landing (L09). The color variables above come from src/ui/tokens.ts (the canvas palette).
 * Contrast rules for the web (WCAG AA, computed 2026-10-02; --ink-muted 2026-10-04, MOR-X1XNY): body text is --ink
 * everywhere; --ink-muted on --paper (5.28:1) or --sand (4.60:1), not on --peach, --sage-light or --lavender
 * (4.04–4.15:1, too low for small text: there the panel's --ink-muted-on-* variable); links use --link-pressed
 * (5.72:1 on sand), because --link is 3.61:1. Type: Outfit 300 / 600 (OFL, /fonts/OFL.txt), the app's two weights.
 */
@font-face {
  font-family: "Outfit";
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/outfit-300.woff") format("woff");
}
@font-face {
  font-family: "Outfit";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/fonts/outfit-600.woff") format("woff");
}

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

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: "Outfit", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  font-weight: 300;
  font-size: 1.0625rem;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

strong,
b,
th {
  font-weight: 600;
}

a {
  color: var(--link-pressed);
  text-decoration-thickness: 1px;
  text-underline-offset: 0.18em;
}

a:hover {
  color: var(--ink);
}

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

img,
svg {
  max-width: 100%;
  height: auto;
}

/* ---- frame ---------------------------------------------------------------------------------------------- */

.site-header,
main,
.site-footer {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
}

.site-header {
  padding-top: 1.5rem;
  padding-bottom: 0.5rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 44px;
  color: var(--ink);
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
}

.brand svg {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
}

main {
  padding-bottom: 2rem;
}

section,
.answer > .qa {
  margin-top: 3rem;
}

/* ---- type ----------------------------------------------------------------------------------------------- */

h1,
h2 {
  font-weight: 300;
  text-wrap: balance;
}

h1 {
  margin: 1.5rem 0 0;
  font-size: clamp(2.5rem, 9vw, 3.5rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

h2 {
  margin: 0 0 0.75rem;
  font-size: 1.625rem;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 1rem;
  text-wrap: pretty;
}

.lead {
  margin-top: 1rem;
  font-size: 1.25rem;
  line-height: 1.45;
}

.capsule {
  font-size: 1.125rem;
}

.updated {
  font-size: 0.875rem;
}

/* ---- hero, waitlist ------------------------------------------------------------------------------------- */

.hero {
  margin-top: 0;
}

.waitlist-soon {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: var(--paper);
  font-size: 0.9375rem;
}

.waitlist {
  margin-top: 1.5rem;
  padding: 1.25rem;
  border-radius: 24px;
  background: var(--paper);
}

.waitlist label {
  display: block;
  margin-bottom: 0.625rem;
  font-weight: 600;
  font-size: 1rem;
}

.waitlist input[type="email"] {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 1rem;
  border: 1.5px solid var(--hairline-strong);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 1.0625rem;
}

.waitlist input[type="email"]:focus-visible {
  border-color: var(--ink);
}

.waitlist button,
.store {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 56px;
  margin-top: 0.75rem;
  border: 0;
  border-radius: 20px;
  background: var(--ink);
  color: var(--paper);
  font: inherit;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  cursor: pointer;
}

.waitlist button:hover,
.store:hover {
  background: #000;
  color: var(--paper);
}

.form-note {
  margin: 0.75rem 0 0;
  color: var(--ink-muted);
  font-size: 0.875rem;
}

.form-note a {
  color: var(--ink);
}

.store {
  max-width: 22rem;
}

/* ---- sections ------------------------------------------------------------------------------------------- */

.steps {
  margin: 1.25rem 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 0.75rem;
}

.steps li {
  counter-increment: step;
  position: relative;
  padding: 1rem 1.25rem 1rem 3.25rem;
  border-radius: 20px;
  background: var(--paper);
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 1.1rem;
  top: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
  background: var(--peach);
  font-weight: 600;
  font-size: 0.875rem;
  line-height: 1.5rem;
  text-align: center;
}

.guarantee-card {
  padding: 1.25rem;
  border-radius: 20px;
  background: var(--sage-light);
}

.guarantee-label {
  margin-bottom: 0.375rem;
  font-weight: 600;
  font-size: 0.9375rem;
}

.guarantee-card .capsule {
  margin: 0;
}

.compare {
  width: 100%;
  border-collapse: collapse;
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
}

.compare th,
.compare td {
  padding: 0.875rem 1.25rem;
  text-align: left;
  vertical-align: top;
}

.compare tr + tr th,
.compare tr + tr td {
  border-top: 1px solid var(--hairline);
}

.compare th {
  width: 40%;
}

blockquote {
  margin: 1rem 0 0;
  padding: 1.25rem 1.5rem;
  border-radius: 24px;
  background: var(--peach);
}

section > blockquote:first-child {
  margin-top: 0;
}

blockquote p {
  font-size: 1.1875rem;
  line-height: 1.5;
}

blockquote footer {
  font-weight: 600;
  font-size: 0.9375rem;
}

.disclosure,
.founder-note {
  margin-top: 2.5rem;
  font-size: 0.9375rem;
}

.cta-end {
  margin-top: 2.5rem;
  font-size: 1.0625rem;
}

/* ---- legal and support ---------------------------------------------------------------------------------- */

.legal h1 {
  font-size: clamp(2rem, 7vw, 2.75rem);
}

.legal h2 {
  margin-top: 2.25rem;
  font-size: 1.375rem;
}

.legal table {
  width: 100%;
  border-collapse: collapse;
  margin: 1rem 0;
  font-size: 0.9375rem;
}

.legal th,
.legal td {
  padding: 0.5rem 0.625rem;
  border-bottom: 1px solid var(--hairline-strong);
  text-align: left;
  vertical-align: top;
}

.legal code {
  font-size: 0.9em;
}

/* ---- footer --------------------------------------------------------------------------------------------- */

.site-footer {
  margin-top: 2rem;
  padding-top: 1.5rem;
  padding-bottom: 2.5rem;
  border-top: 1px solid var(--hairline-strong);
  font-size: 0.9375rem;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 1.25rem;
}

.site-footer nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

@media (min-width: 48rem) {
  body {
    font-size: 1.125rem;
  }

  .site-header {
    padding-top: 2rem;
  }

  section,
  .answer > .qa {
    margin-top: 3.75rem;
  }

  .waitlist {
    padding: 1.5rem;
  }

  .waitlist-row {
    display: flex;
    gap: 0.75rem;
    align-items: stretch;
  }

  .waitlist-row input[type="email"] {
    flex: 1;
  }

  .waitlist-row button {
    width: auto;
    margin-top: 0;
    padding: 0 1.75rem;
  }
}
