/*
  marketing.css — shared design system for all FretWork marketing pages
  Fonts loaded per-page via Google Fonts link tag:
  DM Serif Display (400, 400i) + Inter (400, 500)
*/

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

:root {
  --paper:  #f0ebe0;
  --dark:   #151210;
  --ink:    #201c18;
  --maple:  #b5783a;
  --muted:  #91877c;
  --ivory:  #f7f3ec;
  --border: #ddd5c8;
}

html { scroll-behavior: smooth; }
body {
  background: var(--paper);
  color: var(--ink);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ── Typography helpers ── */
.serif        { font-family: 'DM Serif Display', Georgia, serif; font-weight: 400; }
.serif-italic { font-family: 'DM Serif Display', Georgia, serif; font-style: italic; font-weight: 400; }

/* ── Nav ── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--paper);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 5vw; height: 60px;
}
.nav-wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 1rem;
  letter-spacing: -0.01em; color: var(--ink);
}
.nav-wordmark em { font-style: normal; color: var(--maple); }
.nav-links { display: flex; align-items: center; gap: 2rem; }
.nav-link { font-size: 0.875rem; color: var(--muted); transition: color 0.15s; }
.nav-link:hover { color: var(--ink); }
.nav-cta {
  font-size: 0.875rem; font-weight: 500;
  background: var(--ink); color: var(--ivory);
  padding: 0.45rem 1.1rem; border-radius: 2px;
  transition: background 0.15s;
}
.nav-cta:hover { background: #2e2822; }

/* ── Page hero (light) ── */
.page-hero {
  padding: 5rem 5vw 4.5rem;
  border-bottom: 1px solid var(--border);
}
.breadcrumb {
  font-size: 0.78rem; color: var(--muted);
  margin-bottom: 1.5rem;
}
.breadcrumb a { color: var(--muted); transition: color 0.15s; }
.breadcrumb a:hover { color: var(--maple); }
.breadcrumb span { margin: 0 0.35rem; }
.page-h1 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.75rem);
  line-height: 1.1; color: var(--ink);
  margin-bottom: 1.25rem; max-width: 800px;
}
.page-lede {
  font-size: clamp(1rem, 1.5vw, 1.15rem);
  color: var(--muted); line-height: 1.7;
  max-width: 600px; margin-bottom: 2.25rem;
}
.hero-actions { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.btn-primary {
  font-size: 0.9rem; font-weight: 500;
  background: var(--maple); color: var(--ivory);
  padding: 0.7rem 1.5rem; border-radius: 2px;
  transition: background 0.15s; white-space: nowrap;
  display: inline-block;
}
.btn-primary:hover { background: #9e6932; }
.btn-outline {
  font-size: 0.875rem; color: var(--muted);
  border-bottom: 1px solid var(--border);
  padding-bottom: 1px;
  transition: color 0.15s, border-color 0.15s;
}
.btn-outline:hover { color: var(--ink); border-color: var(--muted); }

/* ── Content sections ── */
.section { padding: 5rem 5vw; }
.section + .section { border-top: 1px solid var(--border); }
.section-dark {
  background: var(--dark); padding: 5rem 5vw;
}
.section-narrow { max-width: 720px; margin: 0 auto; }
.section-wide   { max-width: 1160px; margin: 0 auto; }

.section-h2 {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15; color: var(--ink);
  margin-bottom: 0.85rem;
}
.section-h2-light {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: clamp(1.6rem, 3vw, 2.5rem);
  line-height: 1.15; color: var(--ivory);
  margin-bottom: 0.85rem;
}
.section-sub {
  font-size: 1rem; color: var(--muted);
  max-width: 560px; line-height: 1.7;
  margin-bottom: 2.5rem;
}
.section-sub-light {
  font-size: 1rem; color: rgba(247,243,236,0.55);
  max-width: 560px; line-height: 1.7;
  margin-bottom: 2.5rem;
}

/* ── Feature list (prose, no cards) ── */
.feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 0; }
.feature-item {
  padding: 1.75rem 2rem 1.75rem 0;
  border-top: 1px solid var(--border);
}
.feature-item:nth-child(even) { padding-left: 2rem; border-left: 1px solid var(--border); }
.feature-name {
  font-size: 1rem; font-weight: 500; color: var(--ink);
  margin-bottom: 0.4rem;
}
.feature-desc {
  font-size: 0.875rem; color: var(--muted); line-height: 1.65;
}

/* ── Pricing table ── */
.pricing-row {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  margin-top: 2.5rem;
}
.plan-col { padding: 1.75rem 1.5rem 1.75rem 0; border-right: 1px solid var(--border); }
.plan-col:first-child { padding-left: 0; }
.plan-col:last-child  { border-right: none; }
.plan-col-name { font-size: 0.8rem; color: var(--muted); margin-bottom: 0.75rem; }
.plan-col-price {
  font-family: 'DM Serif Display', Georgia, serif;
  font-size: 2.25rem; color: var(--ink);
  line-height: 1; margin-bottom: 0.25rem;
}
.plan-col-price sup { font-family: 'Inter', sans-serif; font-size: 1rem; vertical-align: super; }
.plan-col-price sub { font-family: 'Inter', sans-serif; font-size: 0.8rem; color: var(--muted); }
.plan-col-limit { font-size: 0.8rem; color: var(--muted); line-height: 1.5; margin-bottom: 1.25rem; }
.plan-col-link {
  font-size: 0.85rem; color: var(--maple);
  border-bottom: 1px solid rgba(181,120,58,0.3);
  padding-bottom: 1px; transition: border-color 0.15s;
}
.plan-col-link:hover { border-color: var(--maple); }
.pricing-note { font-size: 0.8rem; color: var(--muted); margin-top: 1.5rem; }

/* ── Comparison table ── */
.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
  margin-top: 2rem;
}
.compare-table th {
  font-weight: 500; font-size: 0.8rem;
  padding: 0.85rem 1rem;
  border-bottom: 2px solid var(--border);
  text-align: left; color: var(--muted);
}
.compare-table th.col-fw { color: var(--maple); }
.compare-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  color: var(--muted); vertical-align: top;
  line-height: 1.5;
}
.compare-table tr th:first-child,
.compare-table tr td:first-child {
  padding-left: 0; color: var(--ink); font-weight: 500;
}
.compare-table td.col-fw { color: var(--ink); }
.check { color: var(--maple); font-weight: 600; }
.cross { opacity: 0.5; }

/* ── CTA band ── */
.cta-band {
  background: var(--dark);
  padding: 6rem 5vw;
  text-align: center;
}
.cta-band-h { font-family: 'DM Serif Display', Georgia, serif;
  font-style: italic;
  font-size: clamp(1.75rem, 4vw, 3rem);
  color: var(--ivory); margin-bottom: 1rem; line-height: 1.15;
}
.cta-band-sub {
  font-size: 1rem; color: rgba(247,243,236,0.5);
  max-width: 460px; margin: 0 auto 2.25rem; line-height: 1.65;
}
.btn-light {
  font-size: 0.9rem; font-weight: 500;
  background: var(--ivory); color: var(--ink);
  padding: 0.7rem 1.6rem; border-radius: 2px;
  transition: background 0.15s; display: inline-block;
}
.btn-light:hover { background: #fffaf3; }
.cta-note { font-size: 0.78rem; color: rgba(247,243,236,0.3); margin-top: 1rem; }

/* ── Footer ── */
footer {
  background: var(--paper);
  border-top: 1px solid var(--border);
  padding: 2.5rem 5vw;
}
.footer-inner { display: flex; flex-direction: column; gap: 1.25rem; }
.footer-wordmark {
  font-family: 'Inter', sans-serif;
  font-weight: 500; font-size: 1rem;
  color: var(--ink); letter-spacing: -0.01em;
}
.footer-wordmark em { font-style: normal; color: var(--maple); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.2rem 1.5rem; }
.footer-link { font-size: 0.82rem; color: var(--muted); transition: color 0.15s; }
.footer-link:hover { color: var(--ink); }
.footer-copy { font-size: 0.75rem; color: rgba(145,135,124,0.55); }

/* ── Responsive ── */
@media (max-width: 768px) {
  .nav-links { display: none; }
  .feature-list { grid-template-columns: 1fr; }
  .feature-item:nth-child(even) { padding-left: 0; border-left: none; }
  .pricing-row { grid-template-columns: 1fr 1fr; }
  .plan-col { border-right: none; border-bottom: 1px solid var(--border); padding: 1.25rem 0; }
  .plan-col:last-child { border-bottom: none; }
  .compare-table { font-size: 0.78rem; }
  .compare-table th, .compare-table td { padding: 0.6rem 0.5rem; }
}
@media (max-width: 480px) {
  .pricing-row { grid-template-columns: 1fr; }
  .compare-table { display: block; overflow-x: auto; }
}
