/* OwnTongue public site — shared styles (P0-4, PR 4).
   Palette matches the app: #f5f6f8 bg, #1a1a1a text, #2563eb accent. */
* { box-sizing: border-box; margin: 0; padding: 0; }
:root {
  --bg: #f5f6f8; --ink: #1a1a1a; --muted: #555; --faint: #888;
  --accent: #2563eb; --accent-dark: #1d4ed8; --card: #fff;
  --radius: 10px; --shadow: 0 1px 3px rgba(0,0,0,0.06);
}
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg); color: var(--ink); line-height: 1.55;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

/* Header */
.site-header {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1040px; margin: 0 auto; padding: 1.1rem 1.25rem;
}
.site-header .brand { font-weight: 700; font-size: 1.15rem; color: var(--ink); }
.site-header nav { display: flex; gap: 1.1rem; align-items: center; }
.site-header nav a { color: var(--muted); font-size: 0.95rem; }
.site-header nav a.cta {
  background: var(--accent); color: #fff; padding: 0.45rem 1rem;
  border-radius: 7px; font-weight: 600;
}
.site-header nav a.cta:hover { background: var(--accent-dark); text-decoration: none; }

/* Hero */
.hero { max-width: 880px; margin: 2.5rem auto 0; padding: 0 1.25rem; text-align: center; }
.hero h1 { font-size: 2.4rem; line-height: 1.2; letter-spacing: -0.02em; }
.hero .sub { color: var(--muted); font-size: 1.18rem; margin: 1rem auto 1.6rem; max-width: 620px; }
.hero .cta-row { display: flex; gap: 0.8rem; justify-content: center; flex-wrap: wrap; }
.btn { display: inline-block; padding: 0.7rem 1.4rem; border-radius: 8px; font-weight: 600; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); text-decoration: none; }
.btn-ghost { border: 1px solid #d4d7dd; color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--accent); text-decoration: none; }
.hero .fineprint { color: var(--faint); font-size: 0.85rem; margin-top: 0.8rem; }

/* Sections */
.section { max-width: 1040px; margin: 3rem auto 0; padding: 0 1.25rem; }
.section > h2 { font-size: 1.5rem; margin-bottom: 0.4rem; }
.section > .lead { color: var(--muted); margin-bottom: 1.4rem; max-width: 640px; }
.cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.card { background: var(--card); border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); }
.card h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.card p { color: var(--muted); font-size: 0.93rem; }

/* How it works steps */
.steps { counter-reset: step; }
.steps .card { position: relative; padding-top: 1.4rem; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -0.8rem; left: 1.1rem;
  background: var(--accent); color: #fff; font-weight: 700;
  width: 1.7rem; height: 1.7rem; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.9rem;
}

/* Media slots (screenshots / video placeholders) */
.media-slot {
  background: #e8eaef; border: 1px dashed #c3c8d2; border-radius: var(--radius);
  display: flex; align-items: center; justify-content: center;
  color: var(--faint); font-size: 0.9rem; min-height: 240px; text-align: center; padding: 1rem;
}
.media-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }

/* Pricing */
.tiers { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); align-items: stretch; }
.tier { background: var(--card); border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.tier.featured { border: 2px solid var(--accent); }
.tier h3 { font-size: 1.1rem; }
.tier .price { font-size: 1.9rem; font-weight: 700; margin: 0.4rem 0; }
.tier .price span { font-size: 0.9rem; font-weight: 400; color: var(--faint); }
.tier .blurb { color: var(--muted); font-size: 0.92rem; flex: 1; }
.tier .btn { margin-top: 1rem; text-align: center; }

/* Legal + prose pages */
.legal, .prose { max-width: 760px; margin: 2rem auto; padding: 0 1.25rem; }
.legal h1, .prose h1 { font-size: 1.8rem; margin-bottom: 0.3rem; }
.legal .effective { color: var(--faint); font-size: 0.88rem; margin-bottom: 1.5rem; }
.legal h2, .prose h2 { font-size: 1.15rem; margin: 1.6rem 0 0.5rem; }
.legal p, .legal li, .prose p, .prose li { color: #333; font-size: 0.95rem; margin-bottom: 0.6rem; }
.legal ol, .legal ul, .prose ol, .prose ul { padding-left: 1.4rem; }

/* Footer */
.site-footer { margin-top: 4rem; background: #fff; border-top: 1px solid #e8eaef; }
.footer-inner { max-width: 1040px; margin: 0 auto; padding: 1.6rem 1.25rem; }
.footer-brand { font-weight: 700; margin-bottom: 0.6rem; }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.9rem; margin-bottom: 0.6rem; }
.footer-links a { color: var(--muted); font-size: 0.88rem; }
.footer-contact { font-size: 0.88rem; margin-bottom: 0.4rem; }
.footer-copy { color: var(--faint); font-size: 0.82rem; }

@media (max-width: 560px) {
  .hero h1 { font-size: 1.7rem; }
  .site-header nav { gap: 0.7rem; }
}
