/*
 * Shared styles for gratitudegate.com.
 *
 * No external fonts, no JS, no third-party CSS. Renders identically with or
 * without network because we have no dependencies past whatever the browser
 * ships with.
 *
 * Color palette matches the app: warm cream surfaces with an amber accent in
 * light mode, dark navy surfaces with a brighter amber in dark mode. Sticks
 * to prefers-color-scheme so the site adapts to the user's OS setting
 * without a toggle.
 */

:root {
  color-scheme: light dark;
  --bg: #FBF7F2;
  --card: #FFFFFF;
  --text: #2A2620;
  --muted: #6F6657;
  --accent: #B5793E;
  --accent-strong: #9C6731;
  --rule: #E7DFD1;
  --shadow: rgba(40, 30, 18, 0.06);
  --nav-bg: rgba(251, 247, 242, 0.85);
  --hero-bg: #031431;
  --hero-text: #F3ECDF;
  --hero-muted: #B7AB97;
  --hero-accent: #E4A974;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #181412;
    --card: #221C18;
    --text: #F3ECDF;
    --muted: #B7AB97;
    --accent: #E4A974;
    --accent-strong: #C68F5C;
    --rule: #2E2620;
    --shadow: rgba(0, 0, 0, 0.4);
    --nav-bg: rgba(24, 20, 18, 0.85);
  }
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
}

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

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  color: var(--accent-strong);
  text-decoration: underline;
}

/* ---------- Layout ---------- */

main {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 24px 96px;
}

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

section {
  margin: 48px 0 0;
}

section:first-of-type {
  margin-top: 24px;
}

/* ---------- Top nav ---------- */

.topnav {
  position: sticky;
  top: 0;
  background: var(--nav-bg);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--rule);
  z-index: 10;
}

.topnav-inner {
  max-width: 960px;
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

.topnav-brand {
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--text);
}

.topnav-brand:hover {
  color: var(--text);
  text-decoration: none;
}

.topnav-links {
  display: flex;
  gap: 20px;
  font-size: 0.95rem;
}

.topnav-links a {
  color: var(--muted);
}

.topnav-links a:hover {
  color: var(--text);
  text-decoration: none;
}

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

.hero {
  background: var(--hero-bg);
  color: var(--hero-text);
  padding: 72px 24px 88px;
  text-align: center;
}

.hero-inner {
  max-width: 720px;
  margin: 0 auto;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0 0 16px;
}

.hero .lede {
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  color: var(--hero-muted);
  margin: 0 0 32px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--hero-accent);
  color: #1a0f00;
  padding: 12px 24px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 0.95rem;
}

.hero-cta:hover {
  color: #1a0f00;
  text-decoration: none;
  opacity: 0.92;
}

.hero-cta.coming-soon {
  background: transparent;
  border: 1.5px solid var(--hero-muted);
  color: var(--hero-text);
}

.hero-cta.coming-soon:hover {
  border-color: var(--hero-text);
}

.hero-note {
  margin: 24px 0 0;
  font-size: 0.9rem;
  color: var(--hero-muted);
}

/* ---------- Typography ---------- */

h2 {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  margin: 32px 0 12px;
  font-weight: 600;
}

h3 {
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0 0 4px;
  color: var(--text);
}

p { margin: 0 0 12px; }
p:last-child { margin-bottom: 0; }

.muted { color: var(--muted); }

.lede {
  font-size: 1.1rem;
  color: var(--muted);
  margin: 0 0 24px;
}

/* ---------- Cards ---------- */

.card {
  background: var(--card);
  border: 1px solid var(--rule);
  border-radius: 20px;
  padding: 20px 22px;
  margin: 0 0 12px;
  box-shadow: 0 2px 6px var(--shadow);
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.card-tight {
  padding: 16px 18px;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  position: relative;
  padding: 4px 0 4px 18px;
}

ul li::before {
  content: "-";
  color: var(--accent);
  position: absolute;
  left: 0;
  top: 4px;
  font-weight: 600;
}

ul li + li { margin-top: 4px; }

/* ---------- Pricing block ---------- */

.tier {
  border: 1px solid var(--rule);
  background: var(--card);
  border-radius: 16px;
  padding: 18px 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: baseline;
  justify-content: space-between;
  box-shadow: 0 2px 6px var(--shadow);
}

.tier + .tier { margin-top: 10px; }

.tier-name {
  font-weight: 600;
  color: var(--text);
}

.tier-price {
  color: var(--accent-strong);
  font-weight: 600;
}

.tier-note {
  color: var(--muted);
  font-size: 0.9rem;
  width: 100%;
}

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

footer {
  border-top: 1px solid var(--rule);
  padding: 32px 24px;
  margin-top: 64px;
  color: var(--muted);
  font-size: 0.9rem;
}

.footer-inner {
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}

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

.footer-links a:hover {
  color: var(--accent);
  text-decoration: none;
}

/* ---------- Small screens ---------- */

@media (max-width: 520px) {
  main { padding: 24px 18px 80px; }
  .topnav-inner { gap: 14px; padding: 10px 18px; }
  .topnav-links { gap: 14px; font-size: 0.9rem; }
  .hero { padding: 56px 18px 64px; }
}
