/* Letter Weave marketing site — Garden palette, "Soft Weave" treatment.
   Mirrors LetterWeave/DesignSystem/LWTheme.swift (garden). If the in-app
   palette shifts, sync these :root variables to match. */

:root {
  --page: #F5EFE3;
  --surface: #F8F1E6;
  --paper: #FFF9EF;
  --surface-muted: #EBE3D2;
  --ink: #2A2520;
  --ink-soft: #5C5147;
  --ink-mute: #8C8175;
  --ink-faint: #B8AE9E;
  --border: #D8CBB3;
  --shadow: rgba(184, 163, 126, 0.35);
  --shadow-strong: rgba(184, 163, 126, 0.55);
  --primary: #C26B3C;
  --primary-deep: #8B4823;
  --primary-soft: #F0D4BC;
  --on-primary: #FFF9EF;
  --accent: #7A8B5C;
  --accent-deep: #4E5F38;
  --accent-soft: #D5DDC4;
  --mustard: #C9A23F;
  --plum: #7F4A6B;
  --radius-card: 18px;
  --radius-pill: 9999px;
  --serif: Georgia, "Times New Roman", "Iowan Old Style", serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background-color: var(--page);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Helvetica Neue", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

a { color: var(--primary-deep); text-decoration: none; }
a:hover { text-decoration: underline; }
img { display: block; max-width: 100%; }

/* Layout */
.container { max-width: 920px; margin: 0 auto; padding: 0 24px; }

.site-header { padding: 22px 0 12px; }
.site-header .container { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand img { width: 44px; height: 44px; border-radius: 11px; }
.brand-name { font-weight: 800; font-size: 22px; letter-spacing: -0.5px; }
.nav { margin-left: auto; display: flex; gap: 22px; flex-wrap: wrap; }
.nav a { color: var(--ink-soft); font-weight: 700; font-size: 14px; }
.nav a.active { color: var(--ink); }

.site-footer { margin-top: 64px; padding: 32px 0 64px; color: var(--ink-mute); font-size: 13px; }
.site-footer .container { display: flex; gap: 24px; flex-wrap: wrap; align-items: baseline; justify-content: space-between; }
.site-footer a { color: var(--ink-soft); font-weight: 700; margin-right: 18px; }

/* Card surface */
.card {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 28px;
  position: relative;
  margin: 20px 0;
  box-shadow: 0 4px 12px var(--shadow);
}
.card.tinted-primary { background: var(--primary-soft); }
.card.tinted-cream   { background: var(--surface); }
.card.tinted-accent  { background: var(--accent-soft); }

/* Headlines */
h1, h2, h3 { margin-top: 0; color: var(--ink); letter-spacing: -0.4px; }
h1, h2 { font-family: var(--serif); font-weight: 700; }
h3 { font-weight: 800; }
h1 { font-size: clamp(34px, 5.5vw, 50px); line-height: 1.1; margin-bottom: 12px; }
h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 14px; }
h3 { font-size: 18px; margin-bottom: 8px; }

p { line-height: 1.55; color: var(--ink-soft); }
.lede { font-size: 17px; color: var(--ink-soft); max-width: 60ch; }

.eyebrow {
  display: inline-block;
  background: var(--accent);
  color: var(--on-primary);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  margin-bottom: 14px;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 26px;
  background: var(--primary);
  color: var(--on-primary);
  border: none;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  box-shadow: 0 4px 10px var(--shadow-strong);
  transition: transform 80ms ease-out, box-shadow 80ms ease-out;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: 0 6px 14px var(--shadow-strong); }
.btn:active { transform: translateY(1px); box-shadow: 0 2px 6px var(--shadow-strong); }
.btn.secondary { background: var(--paper); color: var(--ink); border: 1px solid var(--border); box-shadow: 0 3px 8px var(--shadow); }

/* Apple "Download on the App Store" badge */
.appstore-badge { display: inline-block; border: none; outline: none; line-height: 0; }
.appstore-badge img { height: 56px; width: auto; display: block; border: none; box-shadow: none; }

/* Hero */
.hero { padding: 24px 0 8px; }
.hero .container { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: center; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.hero-art { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.hero-art > img { width: 220px; height: 220px; border-radius: 48px; box-shadow: 0 10px 26px var(--shadow-strong); }

@media (max-width: 720px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-art img { width: 170px; height: 170px; }
}

/* Feature grid */
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 28px 0; }
.feature {
  background: var(--paper);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 20px;
  box-shadow: 0 3px 8px var(--shadow);
}
.feature h3 { display: flex; align-items: center; gap: 10px; }
.feature .icon {
  width: 32px; height: 32px;
  display: inline-grid; place-items: center;
  background: var(--accent-soft);
  border: 1px solid var(--border);
  border-radius: 9px;
  font-size: 18px;
}

/* Pricing */
.tier-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; margin-top: 20px; }
@media (max-width: 720px) { .tier-grid { grid-template-columns: 1fr; } }
.tier { background: var(--paper); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px; box-shadow: 0 4px 12px var(--shadow); }
.tier.featured { background: var(--accent-soft); }
.tier-name { font-weight: 800; font-size: 22px; }
.tier-price { font-size: 36px; font-weight: 900; margin: 12px 0 4px; }
.tier-price small { font-size: 14px; font-weight: 700; color: var(--ink-soft); }
.tier ul { list-style: none; padding: 0; margin: 16px 0 0; }
.tier li { padding: 8px 0; border-top: 1px dashed var(--border); color: var(--ink-soft); }
.tier li:first-child { border-top: 0; }
.tier li::before { content: "\2713  "; color: var(--accent-deep); font-weight: 800; }

/* Long-form prose */
.prose h2 { margin-top: 32px; }
.prose h3 { margin-top: 22px; }
.prose ul { padding-left: 22px; }
.prose li { margin: 4px 0; color: var(--ink-soft); line-height: 1.55; }
.prose .meta { color: var(--ink-mute); font-size: 13px; font-weight: 700; letter-spacing: 0.4px; text-transform: uppercase; }

/* CTA strip */
.cta-strip {
  margin-top: 48px;
  padding: 36px;
  background: var(--primary-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  text-align: center;
  box-shadow: 0 4px 12px var(--shadow);
}
.cta-strip p { color: var(--ink); font-size: 16px; }
