/* ==========================================================================
   Find My Words — Landing Page & Privacy Policy
   Static site styles. Design tokens mirror the app's visual identity.
   ========================================================================== */

/* ---------- Design Tokens ---------- */

:root {
  --bg: #F7F5F0;
  --fg: #2B2624;
  --primary: #3E4A3D;
  --primary-hover: #4A5849;
  --card: #FFFFFF;
  --border: #D2CDC4;
  --muted: #6B6661;
  --success: #6B8F71;
  --radius-card: 12px;
  --radius-button: 16px;
  --space-section: 48px;
  --space-element: 16px;
  --max-width: 720px;
}

/* ---------- Reset ---------- */

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

/* ---------- Base ---------- */

html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: 'Lexend', sans-serif;
  font-weight: 400;
  line-height: 1.6;
  color: var(--fg);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 2px;
}

a:hover {
  color: var(--primary-hover);
}

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

h1, h2, h3 {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  line-height: 1.2;
  color: var(--fg);
}

h1 {
  font-size: 2rem;
  letter-spacing: -0.01em;
}

h2 {
  font-size: 1.44rem;
  margin-bottom: var(--space-element);
}

h3 {
  font-size: 1.11rem;
  margin-bottom: 8px;
}

p {
  margin-bottom: 1rem;
}

strong {
  font-weight: 700;
}

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

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: var(--space-section) 0;
}

.section + .section {
  border-top: 1px solid var(--border);
}

/* ---------- Site Header ---------- */

.site-header {
  padding: 20px 0;
}

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

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--fg);
}

.site-header__brand:hover {
  color: var(--fg);
}

.site-header__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
}

.site-header__name {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 1.11rem;
}

.site-header__nav a {
  font-size: 0.88rem;
  font-weight: 500;
}

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

.hero {
  padding: var(--space-section) 0 calc(var(--space-section) + 16px);
  text-align: center;
}

.hero__icon {
  width: 112px;
  height: 112px;
  border-radius: 24px;
  margin: 0 auto 24px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.hero h1 {
  margin-bottom: 12px;
}

.hero__tagline {
  font-size: 1.11rem;
  font-weight: 400;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 32px;
  line-height: 1.5;
}

.hero__badges {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--muted);
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-button);
}

/* ---------- Steps Grid ---------- */

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: var(--space-element);
  margin-bottom: 32px;
}

.step-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 24px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  font-size: 0.88rem;
  margin-bottom: 12px;
  flex-shrink: 0;
}

.step-card h3 {
  margin-bottom: 6px;
}

.step-card p {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 0;
  line-height: 1.5;
}

/* ---------- Feature Summary ---------- */

.feature-summary {
  color: var(--fg);
  line-height: 1.7;
}

.feature-summary p {
  margin-bottom: 1rem;
}

.feature-summary p:last-child {
  margin-bottom: 0;
}

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

.pricing-items {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

.pricing-item {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 16px 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.pricing-item__label {
  font-weight: 500;
}

.pricing-item__price {
  font-family: 'DM Sans', sans-serif;
  font-weight: 700;
  color: var(--primary);
}

.pricing-item__price--free {
  color: var(--success);
}

.pricing-note {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.94rem;
}

/* ---------- Prose (Privacy Policy) ---------- */

.prose {
  max-width: var(--max-width);
}

.prose h1 {
  margin-bottom: 8px;
}

.prose .prose__date {
  color: var(--muted);
  font-size: 0.94rem;
  margin-bottom: 32px;
}

.prose h2 {
  margin-top: 32px;
  margin-bottom: 12px;
  font-size: 1.22rem;
}

.prose p {
  margin-bottom: 1rem;
}

.prose ul {
  margin-bottom: 1rem;
  padding-left: 24px;
  list-style-type: disc;
}

.prose li {
  margin-bottom: 8px;
  line-height: 1.6;
}

.prose a {
  word-break: break-word;
}

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

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

.site-footer__links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
  margin-bottom: 20px;
  font-size: 0.94rem;
}

.site-footer__disclaimer {
  font-size: 0.83rem;
  color: var(--muted);
  line-height: 1.6;
  margin-bottom: 12px;
  max-width: 560px;
}

.site-footer__copyright {
  font-size: 0.83rem;
  color: var(--muted);
}

/* ---------- Responsive: Tablet+ ---------- */

@media (min-width: 768px) {
  :root {
    --space-section: 64px;
  }

  h1 {
    font-size: 2.44rem;
  }

  .hero__icon {
    width: 128px;
    height: 128px;
    border-radius: 28px;
  }

  .steps-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 1fr;
  }
}

/* ---------- Responsive: Desktop ---------- */

@media (min-width: 1024px) {
  :root {
    --max-width: 800px;
  }
}
