/* Ayre Sleep — landing + legal pages
   Palette and type pulled from the in-app design system. */

:root {
  --bg: #070E17;
  --bg-soft: #0D1B2A;
  --surface: #162A3E;
  --text: #F5F0E8;
  --text-muted: #A89F94;
  --text-dim: #6B6259;
  --gold: #C9A84C;
  --moss: #6B8F71;
  --rule: rgba(245, 240, 232, 0.08);
  --max-content: 720px;
}

* { box-sizing: border-box; }

html {
  background: var(--bg);
  color: var(--text);
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(ellipse at top, rgba(13, 27, 42, 0.6), transparent 60%),
    radial-gradient(ellipse at bottom, rgba(22, 42, 62, 0.4), transparent 60%),
    var(--bg);
}

a {
  color: var(--gold);
  text-decoration: none;
  border-bottom: 1px solid rgba(201, 168, 76, 0.3);
  transition: border-color 160ms ease;
}

a:hover { border-bottom-color: var(--gold); }

/* ─── Layout ────────────────────────────────────────────── */

.shell {
  max-width: var(--max-content);
  margin: 0 auto;
  padding: 64px 24px 96px;
}

.shell--wide { max-width: 960px; }

.nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 24px 0;
  margin-bottom: 32px;
  border-bottom: 1px solid var(--rule);
}

.nav__brand {
  font-family: "Fraunces", "Times New Roman", serif;
  font-size: 1.25rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: var(--text);
  border: none;
}

.nav__links { display: flex; gap: 24px; font-size: 0.875rem; }
.nav__links a {
  color: var(--text-muted);
  border: none;
}
.nav__links a:hover { color: var(--text); }

.footer {
  margin-top: 96px;
  padding-top: 32px;
  border-top: 1px solid var(--rule);
  font-size: 0.875rem;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
}

.footer a { color: var(--text-muted); border: none; }
.footer a:hover { color: var(--text); }

/* ─── Typography ────────────────────────────────────────── */

h1, h2, h3 {
  font-family: "Fraunces", "Times New Roman", serif;
  font-weight: 400;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.2;
}

h1 {
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin: 0 0 16px;
  font-style: italic;
}

h2 {
  font-size: 1.5rem;
  margin: 56px 0 16px;
  padding-top: 8px;
}

h3 {
  font-size: 1.125rem;
  margin: 32px 0 12px;
  font-style: italic;
  color: var(--text-muted);
}

p { margin: 0 0 16px; color: var(--text-muted); }
p strong { color: var(--text); font-weight: 500; }

ul { color: var(--text-muted); padding-left: 20px; }
ul li { margin-bottom: 8px; }

hr {
  border: none;
  border-top: 1px solid var(--rule);
  margin: 48px 0;
}

.lede {
  font-size: 1.125rem;
  color: var(--text);
  margin-bottom: 32px;
}

.muted { color: var(--text-dim); font-size: 0.875rem; }

/* ─── Landing-specific ─────────────────────────────────── */

.hero {
  text-align: center;
  padding: 80px 0 64px;
}

.hero__eyebrow {
  display: inline-block;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 24px;
}

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

.hero__sub {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 40px;
}

.badges {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  border: 1px solid var(--rule);
  border-radius: 12px;
  background: rgba(245, 240, 232, 0.02);
  color: var(--text-muted);
  font-size: 0.875rem;
  border-bottom: 1px solid var(--rule);
}

.badge--coming {
  cursor: default;
  opacity: 0.7;
}

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin: 96px 0;
}

.feature {
  padding: 32px 28px;
  background: rgba(13, 27, 42, 0.5);
  border: 1px solid var(--rule);
  border-radius: 16px;
}

.feature h3 {
  font-style: normal;
  color: var(--text);
  margin: 0 0 8px;
  font-size: 1rem;
  font-family: "Inter", sans-serif;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.feature p { font-size: 0.9375rem; margin: 0; }

/* ─── Legal-specific ────────────────────────────────────── */

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

.legal__meta {
  font-size: 0.875rem;
  color: var(--text-dim);
  margin-bottom: 48px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--rule);
}

.legal h2:first-of-type { margin-top: 0; }

.toc {
  background: rgba(13, 27, 42, 0.4);
  border: 1px solid var(--rule);
  border-radius: 12px;
  padding: 24px 28px;
  margin: 0 0 48px;
}

.toc h3 {
  margin: 0 0 12px;
  font-style: normal;
  font-size: 0.75rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold);
  font-family: "Inter", sans-serif;
}

.toc ol {
  margin: 0;
  padding-left: 20px;
  font-size: 0.9375rem;
  columns: 2;
  column-gap: 32px;
}

.toc li { margin-bottom: 6px; break-inside: avoid; }

.toc a { color: var(--text-muted); border: none; }
.toc a:hover { color: var(--text); }

@media (max-width: 540px) {
  .toc ol { columns: 1; }
  .shell { padding: 48px 20px 64px; }
}
