/* Happy – Mood Tracker: shared design system
   Calm, trust-first, minimalist. No gradients, hype, or heavy effects. */

:root {
  /* Backgrounds */
  --bg: #FAF8F5;
  --bg-section: #F1EEE9;
  --bg-card: #FFFFFF;

  /* Text */
  --text-primary: #1C1C1C;
  --text-secondary: #6E6E6E;
  --text-muted: #9A9A9A;

  /* Dividers */
  --divider: #E8E4DF;

  /* Accent (use sparingly) */
  --accent-low: #A8B6C8;
  --accent-neutral: #C9BFAE;
  --accent-positive: #F4C27A;
  --accent-strong: #F7A95E;
}

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

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text-primary);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

/* Layout */
.container {
  width: 100%;
  max-width: 42rem;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.container--wide {
  max-width: 52rem;
}

/* Typography */
h1, h2 {
  font-weight: 600;
  color: var(--text-primary);
}

h1 {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  line-height: 1.3;
}

h2 {
  font-size: 1.1rem;
  margin: 2rem 0 0.5rem;
}

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

p {
  margin: 0 0 0.75rem;
  color: var(--text-primary);
}

p.muted,
.text-muted {
  color: var(--text-secondary);
}

/* Links – no bright blue */
a {
  color: var(--text-primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

a[href^="mailto:"] {
  color: var(--text-primary);
}

/* Header (all pages) */
.page-header {
  padding: 2rem 0;
  border-bottom: 1px solid var(--divider);
}

.page-header nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.page-header .logo {
  display: inline-flex;
  align-items: center;
  line-height: 0;
}

.page-header .logo-img {
  height: clamp(1.65rem, 4.2vw, 2.1rem);
  width: auto;
  max-width: min(52vw, 16rem);
  display: block;
  object-fit: contain;
}

.page-header .logo:hover {
  text-decoration: none;
  opacity: 0.82;
}

.page-header a:not(.logo) {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.page-header a:not(.logo):hover {
  color: var(--text-primary);
}

/* Section spacing – mobile first */
.section {
  padding: 3rem 0;
  border-top: 1px solid var(--divider);
}

.section:first-of-type {
  border-top: none;
}

@media (min-width: 640px) {
  .section {
    padding: 5rem 0;
  }

  .container {
    padding: 0 1.5rem;
  }
}

/* Footer (all pages) */
.page-footer {
  padding: 2.5rem 0 3rem;
  border-top: 1px solid var(--divider);
  text-align: center;
}

.page-footer a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.page-footer a:hover {
  color: var(--text-primary);
}

.page-footer .sep {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

.page-footer .footer-brand {
  margin: 0 0 0.75rem;
}

.page-footer .footer-brand a {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
}

.page-footer .footer-brand a:hover {
  color: var(--text-primary);
}

.page-footer .footer-brand__mark {
  width: 1.35rem;
  height: 1.35rem;
  object-fit: contain;
  flex-shrink: 0;
}

/* Lists */
ul.trust-list,
ul.faq-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.trust-list li,
ul.faq-list li {
  padding: 0.5rem 0;
  color: var(--text-primary);
  padding-left: 0;
}

ul.trust-list li + li,
ul.faq-list li + li {
  border-top: 1px solid var(--divider);
}

ul.bug-report-list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-primary);
}

ul.overview-list {
  margin: 0 0 0.75rem;
  padding-left: 1.25rem;
  color: var(--text-primary);
}

/* Marketing page: hero */
.hero {
  padding: 3rem 0;
  text-align: center;
}

.hero h1 {
  font-size: clamp(1.5rem, 4vw, 2rem);
  margin: 0 0 0.35rem;
}

.hero .subhead {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

.hero .lead {
  font-size: 1rem;
  color: var(--text-secondary);
  max-width: 36ch;
  margin: 0 auto 1.5rem;
  line-height: 1.65;
}

.hero .links {
  margin-top: 1.25rem;
}

.hero .links a {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

.hero .links a:hover {
  color: var(--text-primary);
}

.hero .links .sep {
  color: var(--text-muted);
  margin: 0 0.5rem;
}

@media (min-width: 640px) {
  .hero {
    padding: 5rem 0;
  }

  .hero .lead {
    margin-bottom: 2rem;
  }
}

/* Optional screenshot placeholder */
.screenshot-placeholder {
  background: var(--bg-section);
  border-top: 1px solid var(--divider);
  padding: 3rem 0;
  text-align: center;
}

.screenshot-placeholder img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Concepts page */
.concept-map {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: 0.5rem;
  padding: 1rem;
  margin: 0;
  overflow-x: auto;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-primary);
}

.concept-note {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}

/* Guide flow components */
.guide-intro {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: 0.5rem;
  padding: 1rem;
}

.guide-intro p:last-child {
  margin-bottom: 0;
}

.guide-thread {
  list-style: none;
  padding: 0;
  margin: 0 0 1rem;
}

.guide-thread li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--divider);
}

.guide-thread li:last-child {
  border-bottom: none;
}

.guide-note {
  color: var(--text-secondary);
  font-size: 0.9375rem;
}

/* Soft launch CTA */
.cta-band {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: 0.5rem;
  padding: 1rem;
  margin-top: 1.25rem;
}

.cta-band p {
  margin-bottom: 0.75rem;
}

.cta-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.cta-links a {
  font-size: 0.9375rem;
}

.primary-cta {
  display: inline-block;
  padding: 0.55rem 0.85rem;
  border: 1px solid var(--text-primary);
  border-radius: 0.4rem;
  font-size: 0.9375rem;
}

.primary-cta:hover {
  text-decoration: none;
  background: #f3f0ea;
}

.proof-block {
  border-left: 2px solid var(--divider);
  padding-left: 0.9rem;
  margin: 0.75rem 0 1rem;
}

.proof-block p:last-child {
  margin-bottom: 0;
}

.waitlist-card {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: 0.5rem;
  padding: 1rem;
}

.waitlist-grid {
  display: grid;
  gap: 0.9rem;
}

@media (min-width: 720px) {
  .waitlist-grid {
    grid-template-columns: 1fr 1fr;
  }
}

.waitlist-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.waitlist-field--full {
  grid-column: 1 / -1;
}

.waitlist-field label {
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.waitlist-field input,
.waitlist-field select,
.waitlist-field textarea {
  width: 100%;
  border: 1px solid var(--divider);
  background: #fff;
  border-radius: 0.4rem;
  padding: 0.6rem 0.7rem;
  font: inherit;
  color: var(--text-primary);
}

.waitlist-field textarea {
  min-height: 7rem;
  resize: vertical;
}

.waitlist-field input:focus,
.waitlist-field select:focus,
.waitlist-field textarea:focus {
  outline: none;
  border-color: #7d7d7d;
}

.waitlist-bot-field {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.waitlist-form-actions {
  margin-top: 1rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.waitlist-submit {
  border: 1px solid var(--text-primary);
  background: var(--text-primary);
  color: #fff;
  border-radius: 0.4rem;
  padding: 0.62rem 1rem;
  font: inherit;
  cursor: pointer;
}

.waitlist-submit[disabled] {
  opacity: 0.65;
  cursor: wait;
}

.waitlist-status {
  font-size: 0.9375rem;
  color: var(--text-secondary);
}
