/* ════════════════════════════════════════════════════════════════
   Clag AI — shared stylesheet for the light marketing pages
   (pricing, product, how-it-works, capabilities)
   ════════════════════════════════════════════════════════════════ */

/* Self-hosted variable Manrope (latin) — same font as Google Fonts, one
   24KB file covering every weight, served from our own origin. */
@font-face {
  font-family: 'Manrope';
  font-style: normal;
  font-weight: 200 800;
  font-display: swap;
  src: url('/static/fonts/manrope-latin-var.woff2') format('woff2');
}

:root {
  --bg: #ffffff;
  --bg-alt: #f6f7f9;
  --ink: #0f1311;
  --ink-soft: #525b57;
  --ink-faint: #8a938e;
  --pine: #2e7d5b;
  --pine-bright: #34a06a;
  --border: #e4e7ea;
  --border-soft: #eef0f2;
  --font: 'Manrope', ui-sans-serif, system-ui, sans-serif;
  --r: 18px;
  --r-pill: 32px;
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }

/* ── nav ── */
nav {
  position: sticky; top: 0; z-index: 50;
  height: 64px; display: flex; align-items: center;
  padding: 0 32px;
  background: rgba(255,255,255,0.82);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center;
  width: 100%; max-width: 1140px; margin: 0 auto;
}
.logo { justify-self: start; font-size: 16px; font-weight: 600; letter-spacing: 0.01em; text-decoration: none; color: var(--ink); }
.nav-links { justify-self: center; display: flex; gap: 32px; list-style: none; }
.nav-links a { font-size: 14px; color: var(--ink-soft); text-decoration: none; transition: color 0.15s; }
.nav-links a:hover, .nav-links a.active { color: var(--ink); }
.nav-actions { justify-self: end; display: flex; align-items: center; gap: 10px; }
.nav-back { font-size: 14px; color: var(--ink-soft); text-decoration: none; }
.nav-back:hover { color: var(--ink); }
.nav-cta {
  padding: 8px 18px; border-radius: var(--r-pill);
  background: var(--pine); color: #fff; border: none;
  font-family: var(--font); font-size: 14px; font-weight: 500;
  text-decoration: none; display: inline-block;
  opacity: 1; cursor: pointer; transition: opacity 0.15s;
}
.nav-cta:hover { opacity: 0.85; }

.wrap { max-width: 1140px; margin: 0 auto; padding: 0 32px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 32px; }

/* ── page header ── */
header.page { text-align: center; padding: 88px 32px 56px; }
.eyebrow {
  font-size: 12px; font-weight: 500; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--pine); margin-bottom: 16px;
}
header.page h1 {
  font-size: clamp(38px, 5.5vw, 60px); font-weight: 600;
  letter-spacing: -0.02em; line-height: 1.05; color: var(--ink);
}
header.page p {
  max-width: 600px; margin: 20px auto 0;
  font-size: 18px; color: var(--ink-soft);
}
.note-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 26px; padding: 7px 16px; border-radius: 999px;
  background: rgba(52,160,106,0.1); border: 1px solid rgba(46,125,91,0.25);
  font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--pine);
}

/* ── generic prose ── */
.section-pad { padding: 24px 0 8px; }
.prose { max-width: 760px; }
.prose .kicker {
  font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--pine); margin-bottom: 14px;
}
.prose h2 {
  font-size: clamp(26px, 3.4vw, 36px); font-weight: 600;
  letter-spacing: -0.01em; color: var(--ink); margin-bottom: 18px;
}
.prose p { font-size: 17px; color: var(--ink-soft); margin-bottom: 16px; line-height: 1.7; }
.prose p strong { color: var(--ink); font-weight: 600; }

/* alternating split rows: text + supporting panel */
.split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center;
  padding: 56px 0; border-top: 1px solid var(--border-soft);
}
.split:first-of-type { border-top: none; }
.split .aside {
  background: var(--bg-alt); border: 1px solid var(--border);
  border-radius: var(--r); padding: 32px; min-height: 200px;
  display: flex; flex-direction: column; justify-content: center; gap: 14px;
}
.split .aside .stat { font-size: 40px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.split .aside .stat-label { font-size: 14px; color: var(--ink-soft); }
.split .aside .row { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink-soft); }

/* ── card grid ── */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding: 8px 0 24px; }
.card {
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); padding: 30px 28px;
  transition: transform 0.28s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.card:hover {
  transform: translateY(-6px);
  border-color: rgba(46,125,91,0.45);
  box-shadow: 0 24px 56px rgba(16,24,20,0.13), 0 0 0 1px rgba(46,125,91,0.22);
}
.card .ic {
  width: 40px; height: 40px; border-radius: 10px;
  background: rgba(52,160,106,0.1); color: var(--pine);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.card h3 { font-size: 18px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.card p { font-size: 14px; color: var(--ink-soft); line-height: 1.6; }

/* ── numbered steps ── */
.steps { display: flex; flex-direction: column; gap: 0; padding: 16px 0; }
.step {
  display: grid; grid-template-columns: 64px 1fr; gap: 28px; align-items: start;
  padding: 36px 0; border-top: 1px solid var(--border);
}
.step:last-child { border-bottom: 1px solid var(--border); }
.step .num {
  font-size: 40px; font-weight: 300; line-height: 1; color: var(--pine);
  letter-spacing: -0.02em;
}
.step h3 { font-size: 22px; font-weight: 600; color: var(--ink); margin-bottom: 10px; letter-spacing: -0.01em; }
.step p { font-size: 16px; color: var(--ink-soft); line-height: 1.65; max-width: 640px; }

/* ── closing CTA ── */
.cta {
  margin: 72px 0 0; padding: 64px 32px; text-align: center;
  background: var(--bg-alt); border-top: 1px solid var(--border);
}
.cta h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 600; letter-spacing: -0.01em; }
.cta p { color: var(--ink-soft); margin: 14px auto 28px; max-width: 460px; }
.cta .btn-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; border-radius: var(--r-pill);
  background: var(--pine); color: #fff; border: none;
  font-family: var(--font); font-size: 15px; font-weight: 600;
  cursor: not-allowed; opacity: 0.92;
}
.cta .soon { display: block; margin-top: 14px; font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-faint); }

/* ── footer ── */
footer { padding: 36px 32px; border-top: 1px solid var(--border); }
.footer-inner { max-width: 1140px; margin: 0 auto; display: flex; justify-content: space-between; align-items: center; }
.footer-inner a { font-size: 14px; font-weight: 600; text-decoration: none; color: var(--ink); }
.footer-inner .links { display: flex; gap: 24px; }
.footer-inner .links a { font-weight: 400; color: var(--ink-soft); }
.footer-inner .copy { font-size: 13px; color: var(--ink-faint); }

/* ════ pricing-specific ════ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; padding-bottom: 24px; }
.plan {
  position: relative;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r); padding: 36px 30px;
  display: flex; flex-direction: column;
  transition: transform 0.28s cubic-bezier(0.22,0.61,0.36,1), box-shadow 0.28s ease, border-color 0.28s ease;
}
.plan:hover {
  transform: translateY(-8px);
  border-color: rgba(46,125,91,0.45);
  box-shadow: 0 26px 60px rgba(16,24,20,0.14), 0 0 0 1px rgba(46,125,91,0.25);
  z-index: 2;
}
.plan.featured { border-color: rgba(46,125,91,0.42); box-shadow: 0 10px 34px rgba(16,24,20,0.1); }
.tier-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.tier { font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--pine); }
.badge { font-size: 11px; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--pine); color: #fff; letter-spacing: 0.04em; }
.plan h2 { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 6px; }
.plan .desc { font-size: 14px; color: var(--ink-soft); min-height: 42px; }
.price { margin: 22px 0 4px; }
.amount { font-size: 46px; font-weight: 600; letter-spacing: -0.02em; }
.period { font-size: 15px; color: var(--ink-faint); }
.price-sub { font-size: 13px; color: var(--ink-faint); margin-bottom: 24px; }
.btn {
  display: block; width: 100%; text-align: center;
  padding: 13px 22px; border-radius: var(--r-pill);
  font-family: var(--font); font-size: 14px; font-weight: 600;
  border: 1px solid var(--border); background: var(--bg-alt); color: var(--ink-soft);
  cursor: not-allowed; opacity: 0.9; margin-bottom: 26px;
}
.btn.primary { background: var(--pine); color: #fff; border-color: transparent; }
.feat { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: auto; }
.feat li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; color: var(--ink-soft); }
.feat li svg { flex-shrink: 0; margin-top: 3px; }
.feat-group { font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint); margin: 6px 0 2px; }

.compare { padding: 80px 0 40px; }
.compare h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; letter-spacing: -0.01em; text-align: center; }
.compare .lead { text-align: center; color: var(--ink-soft); margin: 12px auto 44px; max-width: 480px; }
table { width: 100%; border-collapse: collapse; }
thead th {
  position: sticky; top: 64px; background: var(--bg);
  text-align: left; padding: 16px 18px; font-size: 14px; font-weight: 600;
  border-bottom: 1px solid var(--border);
}
thead th.col { text-align: center; width: 18%; }
thead th.col.featured { color: var(--pine); }
tbody .group-row td {
  padding: 26px 18px 10px; font-size: 12px; font-weight: 600;
  letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-faint);
}
tbody td { padding: 14px 18px; font-size: 14px; border-bottom: 1px solid var(--border-soft); color: var(--ink-soft); }
tbody td.feature { color: var(--ink); width: 46%; }
tbody td.val { text-align: center; }
tbody td.val svg { vertical-align: middle; }
.dash { color: var(--ink-faint); }

.faq { padding: 64px 0 24px; }
.faq h2 { font-size: clamp(26px, 3.4vw, 36px); font-weight: 600; text-align: center; letter-spacing: -0.01em; margin-bottom: 40px; }
.faq-grid { max-width: 820px; margin: 0 auto; display: grid; gap: 0; }
details.qa { border-bottom: 1px solid var(--border); padding: 22px 4px; }
details.qa summary {
  list-style: none; cursor: pointer; font-size: 17px; font-weight: 600; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
details.qa summary::-webkit-details-marker { display: none; }
details.qa summary::after { content: '+'; font-size: 22px; font-weight: 400; color: var(--ink-faint); }
details.qa[open] summary::after { content: '−'; }
details.qa p { margin-top: 14px; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

/* ── responsive ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-inner { grid-template-columns: auto 1fr; }
  .nav-actions { grid-column: 2; }
  .plans, .cards { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .step { grid-template-columns: 44px 1fr; gap: 18px; }
  .compare { overflow-x: auto; }
  table { min-width: 640px; }
  .footer-inner { flex-direction: column; gap: 16px; text-align: center; }
}
