/* SleepyEye — shared styles */

:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --ink: #191918;
  --ink-soft: #f4f2ec;
  --muted: #6e6b63;
  --line: #e7e4dc;
  --accent: #1e6b50;
  --accent-hover: #17553f;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
  html {
    scroll-behavior: smooth;
  }
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .brand, .price {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 600;
  line-height: 1.2;
}

a {
  color: inherit;
}

a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 2px;
}

.wrap {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */

.site-header {
  border-bottom: 1px solid var(--line);
}

.site-header .wrap {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-top: 22px;
  padding-bottom: 22px;
}

.brand {
  font-size: 1.25rem;
  text-decoration: none;
}

.site-nav a {
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  margin-left: 24px;
}

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

/* Hero */

.hero {
  padding: 88px 0 64px;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 3.6rem);
  margin-bottom: 20px;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  max-width: 36em;
}

/* Pillars */

.pillars {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  padding-top: 48px;
  padding-bottom: 72px;
}

.pillar {
  border-top: 2px solid var(--ink);
  padding-top: 18px;
}

.pillar h2 {
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.pillar p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Pricing */

.pricing {
  padding: 64px 0 24px;
  border-top: 1px solid var(--line);
}

.section-head {
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 2rem;
  margin-bottom: 8px;
}

.section-head p {
  color: var(--muted);
}

.tiers {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  align-items: stretch;
}

.tier {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}

.tier h3 {
  font-size: 1.15rem;
  margin-bottom: 14px;
}

.tier .price {
  font-size: 2.4rem;
}

.tier .per {
  font-size: 0.9rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.tier .desc {
  font-size: 0.95rem;
  color: var(--muted);
  flex-grow: 1;
  margin-bottom: 24px;
}

.tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: var(--accent);
  color: #fff;
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 14px;
}

.btn {
  display: block;
  text-align: center;
  text-decoration: none;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 0.95rem;
  font-weight: 600;
  padding: 12px 16px;
  border-radius: 8px;
  background: var(--ink);
  color: #fff;
  transition: background 0.15s ease;
}

.btn:hover {
  background: #33322f;
}

.tier.featured {
  background: var(--ink);
  border-color: var(--ink);
  color: var(--ink-soft);
}

.tier.featured .per,
.tier.featured .desc {
  color: #b9b6ac;
}

.tier.featured .btn {
  background: var(--accent);
}

.tier.featured .btn:hover {
  background: var(--accent-hover);
}

.tier.featured a:focus-visible {
  outline-color: var(--ink-soft);
}

.pricing-note {
  font-size: 0.88rem;
  color: var(--muted);
  text-align: center;
  margin-top: 28px;
}

/* FAQ */

.faq {
  padding-top: 64px;
  padding-bottom: 64px;
}

.faq h2 {
  font-size: 2rem;
  margin-bottom: 24px;
}

.qa {
  border-top: 1px solid var(--line);
  padding: 22px 0;
  max-width: 44em;
}

.qa h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
}

.qa p {
  font-size: 0.95rem;
  color: var(--muted);
}

/* Footer */

.site-footer {
  border-top: 1px solid var(--line);
  padding: 40px 0 64px;
  font-size: 0.88rem;
  color: var(--muted);
}

.footer-links {
  margin-bottom: 20px;
}

.footer-links a {
  color: var(--muted);
  text-decoration: none;
  margin-right: 20px;
}

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

.disclaimer {
  max-width: 56em;
  font-size: 0.82rem;
  line-height: 1.6;
}

/* Legal pages */

.prose {
  max-width: 720px;
  padding-top: 56px;
  padding-bottom: 72px;
}

.prose h1 {
  font-size: 2.2rem;
  margin-bottom: 8px;
}

.prose .meta {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.prose h2 {
  font-size: 1.25rem;
  margin: 2em 0 0.6em;
}

.prose p,
.prose li {
  margin-bottom: 0.9em;
}

.prose ul {
  padding-left: 1.4em;
  margin-bottom: 0.9em;
}

.prose .allcaps {
  text-transform: uppercase;
  font-size: 0.92rem;
  letter-spacing: 0.01em;
}

.back-link {
  display: inline-block;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  margin-bottom: 8px;
}

.back-link:hover {
  color: var(--ink);
}

/* Responsive */

@media (max-width: 820px) {
  .hero {
    padding: 56px 0 40px;
  }

  .pillars,
  .tiers {
    grid-template-columns: 1fr;
  }

  .pillars {
    gap: 24px;
    padding-bottom: 48px;
  }
}
