/* Grateful — site styles. Tokens mirror src/constants/theme.ts exactly. */

:root {
  --text: #2e2622;
  --text-secondary: #8c7f73;
  --background: #faf5ee;
  --background-element: #f1e8dc;
  --background-selected: #e7daca;
  --card: #ffffff;
  --border: #eadfd1;
  --accent: #c2506b;
  --accent-soft: #f7e5e6;
  --on-accent: #ffffff;

  --font-display: ui-rounded, "SF Pro Rounded", -apple-system, system-ui,
    "Segoe UI", sans-serif;
  --font-body: -apple-system, system-ui, "Segoe UI", sans-serif;
  --font-serif: ui-serif, Georgia, "Times New Roman", serif;

  --radius-card: 20px;
  --radius-control: 14px;

  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --text: #f3ece2;
    --text-secondary: #a3968a;
    --background: #181310;
    --background-element: #241e19;
    --background-selected: #332a23;
    --card: #211b16;
    --border: #2e2620;
    --accent: #da7e92;
    --accent-soft: #33232a;
    --on-accent: #2a141b;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--background);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

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

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* Header */

header.site {
  padding: 24px 0;
}

header.site .wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: var(--accent-soft);
  flex: none;
}

.mark svg {
  width: 24px;
  height: 24px;
  fill: var(--accent);
}

.wordmark {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
}

.wordmark:hover {
  text-decoration: none;
}

header.site nav {
  margin-left: auto;
  display: flex;
  gap: 24px;
}

header.site nav a {
  color: var(--text-secondary);
  font-weight: 500;
}

/* Hero */

.hero {
  padding: 72px 0 48px;
  text-align: center;
}

.hero h1 {
  font-size: clamp(34px, 7vw, 52px);
  margin: 0 0 16px;
}

.hero p.lede {
  font-size: 20px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

.badge-soon {
  display: inline-block;
  padding: 12px 24px;
  border-radius: 999px;
  background: var(--accent);
  color: var(--on-accent);
  font-family: var(--font-display);
  font-weight: 600;
}

/* Sections */

section {
  padding: 48px 0;
}

section h2 {
  font-size: 28px;
  margin: 0 0 24px;
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 640px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.step {
  background: var(--background-element);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: 12px;
}

.step h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.step p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

/* Letter preview */

.letter {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 40px;
  font-family: var(--font-serif);
  font-size: 18px;
  max-width: 560px;
  margin: 0 auto;
  box-shadow: 0 8px 32px rgb(46 38 34 / 0.06);
}

.letter p {
  margin: 0 0 16px;
}

.letter p:last-child {
  margin: 0;
}

/* Feature lists */

ul.plain {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}

ul.plain li {
  padding-left: 32px;
  position: relative;
}

ul.plain li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft);
  border: 4px solid var(--accent);
}

/* Pricing cards */

.tiers {
  display: grid;
  gap: 16px;
}

.tier {
  background: var(--background-element);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
}

.tier.free {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.tier h3 {
  margin: 0 0 8px;
  font-size: 19px;
}

.tier p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}

.tier.free p {
  color: var(--text);
}

/* Prose pages (privacy, support) */

main.prose {
  padding: 24px 0 64px;
}

main.prose h1 {
  font-size: 34px;
  margin: 24px 0 8px;
}

main.prose .updated {
  color: var(--text-secondary);
  font-size: 15px;
  margin: 0 0 32px;
}

main.prose h2 {
  font-size: 22px;
  margin: 40px 0 12px;
}

main.prose p,
main.prose li {
  color: var(--text);
}

main.prose ul {
  padding-left: 24px;
}

/* Footer */

footer.site {
  border-top: 1px solid var(--border);
  padding: 32px 0 48px;
  margin-top: 48px;
}

footer.site .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: center;
  color: var(--text-secondary);
  font-size: 15px;
}

footer.site nav {
  display: flex;
  gap: 24px;
}

footer.site a {
  color: var(--text-secondary);
}

footer.site .copyright {
  margin-left: auto;
}
