/* Stream. — marketing & legal site
   Design tokens mirrored from the app (rss-sub-fe/src/style.css) so the
   landing site and the product share one visual language. */

:root {
  --bg: #f2f1ed;
  --surface: #fbfaf7;
  --surface-2: #eceae4;
  --surface-3: #e1ddd4;
  --border: #dad7d0;
  --border-strong: #c4c0b7;
  --title: #1f1e1b;
  --body: #4a4844;
  --muted: #8e8b83;
  --accent: #8a6a2e;
  --accent-soft: #e9dec1;
  --accent-deep: #6f5524;
  --ok: #2e6b3f;
  --ok-soft: #d8e5d3;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: Georgia, 'Iowan Old Style', 'Times New Roman', serif;

  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 12px;
  --radius-pill: 999px;

  --maxw: 1120px;

  color-scheme: light;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--body);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
  color: var(--title);
  margin: 0 0 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.15;
}

p { margin: 0 0 16px; }

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

::selection { background: var(--accent-soft); color: var(--title); }

.wrap {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 32px;
}

.serif { font-family: var(--font-serif); }

.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 700;
}
.eyebrow.accent { color: var(--accent); }

/* ===== Brand wordmark ===== */
.brand {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: 22px;
  color: var(--title);
  text-decoration: none;
  display: inline-flex;
  align-items: baseline;
}
.brand:hover { text-decoration: none; }
.brand .dot { color: var(--accent); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-md);
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--title);
  transition: background 0.15s, border-color 0.15s, transform 0.05s;
}
.btn:hover { text-decoration: none; background: var(--surface-2); border-color: var(--muted); }
.btn:active { transform: translateY(1px); }
.btn.primary {
  background: var(--title);
  color: var(--surface);
  border-color: var(--title);
}
.btn.primary:hover { background: #2c2a26; border-color: #2c2a26; }
.btn.lg { padding: 14px 26px; font-size: 15px; }

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(242, 241, 237, 0.85);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--border);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.nav-links a {
  color: var(--body);
  font-size: 14px;
  font-weight: 500;
}
.nav-links a:hover { color: var(--title); text-decoration: none; }
.nav-right { display: flex; align-items: center; gap: 14px; }

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  font-size: 22px;
  line-height: 1;
  color: var(--title);
  cursor: pointer;
  padding: 6px;
}

/* ===== Hero ===== */
.hero {
  padding: 88px 0 72px;
  text-align: center;
}
.hero h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 700;
  font-size: clamp(40px, 6vw, 68px);
  letter-spacing: -0.02em;
  margin: 18px auto 20px;
  max-width: 14ch;
}
.hero .lede {
  font-size: clamp(16px, 2.2vw, 20px);
  color: var(--body);
  max-width: 56ch;
  margin: 0 auto 32px;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: 13px; color: var(--muted); }

/* ===== Sections ===== */
section { padding: 64px 0; }
.section-head { text-align: center; max-width: 60ch; margin: 0 auto 44px; }
.section-head h2 {
  font-size: clamp(26px, 3.6vw, 38px);
  font-family: var(--font-serif);
  font-style: italic;
  margin: 12px 0 14px;
}
.section-head p { font-size: 16px; color: var(--body); }

/* ===== Feature grid ===== */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px 24px;
}
.feature .ico {
  width: 40px; height: 40px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: var(--radius-md);
  background: var(--accent-soft);
  color: var(--accent-deep);
  font-size: 20px;
  margin-bottom: 16px;
}
.feature h3 { font-size: 17px; margin-bottom: 8px; }
.feature p { font-size: 14px; margin: 0; color: var(--body); }

/* ===== Pricing ===== */
.plans {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 24px;
  justify-content: center;
  align-items: stretch;
}
.plan {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex;
  flex-direction: column;
}
.plan.featured {
  border-color: var(--accent);
  box-shadow: 0 1px 0 var(--accent), 0 18px 40px -28px rgba(138, 106, 46, 0.5);
}
.plan-name { font-size: 14px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--accent); }
.plan-price { margin: 16px 0 4px; display: flex; align-items: baseline; gap: 6px; }
.plan-price .amount { font-family: var(--font-serif); font-size: 46px; font-weight: 700; color: var(--title); }
.plan-price .per { font-size: 14px; color: var(--muted); }
.plan-sub { font-size: 13px; color: var(--muted); margin: 0 0 22px; }
.plan ul { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.plan li { display: grid; grid-template-columns: 20px 1fr; gap: 10px; font-size: 14px; color: var(--body); }
.plan li .tick { color: var(--ok); font-weight: 700; }
.plan .btn { margin-top: auto; width: 100%; }
.billing-note { text-align: center; font-size: 13px; color: var(--muted); margin-top: 28px; max-width: 60ch; margin-left: auto; margin-right: auto; }

/* ===== Generic prose / legal pages ===== */
.page-hero {
  padding: 64px 0 28px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(32px, 5vw, 48px);
  margin: 12px 0 10px;
}
.page-hero .updated { font-size: 13px; color: var(--muted); }

.prose { padding: 40px 0 64px; max-width: 760px; }
.prose h2 { font-size: 22px; margin: 36px 0 12px; }
.prose h3 { font-size: 17px; margin: 24px 0 8px; }
.prose p, .prose li { font-size: 15.5px; color: var(--body); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 16px; }
.prose li { margin-bottom: 8px; }
.prose a { font-weight: 500; }
.prose strong { color: var(--title); }
.prose .lead { font-size: 17px; color: var(--title); }
.prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }

.callout {
  background: var(--accent-soft);
  border: 1px solid #e0d3ac;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 14.5px;
  color: var(--accent-deep);
  margin: 0 0 24px;
}
.callout strong { color: var(--accent-deep); }

.toc {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin: 0 0 32px;
}
.toc .eyebrow { display: block; margin-bottom: 10px; }
.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 32px; }
.toc li { font-size: 14px; margin-bottom: 6px; }

/* ===== Footer ===== */
.site-footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding: 56px 0 40px;
  margin-top: 24px;
}
.footer-top {
  display: flex;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}
.footer-brand { max-width: 320px; }
.footer-brand .brand { font-size: 24px; }
.footer-brand p { font-size: 13.5px; color: var(--muted); margin: 12px 0 0; }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col h4 {
  font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--muted); font-weight: 700; margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--body); font-size: 14px; }
.footer-col a:hover { color: var(--title); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 13px;
  color: var(--muted);
}
.footer-bottom .mor { max-width: 60ch; }

/* ===== Responsive ===== */
@media (max-width: 860px) {
  .features { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 20px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 68px; left: 0; right: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    padding: 8px 20px 16px;
  }
  .nav-links.open { display: flex; }
  .nav-links li { width: 100%; }
  .nav-links a { display: block; padding: 12px 0; width: 100%; border-bottom: 1px solid var(--border); }
  .nav-toggle { display: inline-flex; }
  .features { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; }
  .toc ol { columns: 1; }
  section { padding: 48px 0; }
  .hero { padding: 56px 0 48px; }
}
