/* SEAMLESSCONTEXT — authority content site
   Design system: editorial ink + warm gold. Decide/Learn surface.
   Typography: Fraunces (display serif) + Inter (body sans). */

:root {
  --font-display: "Fraunces", Georgia, "Times New Roman", serif;
  --font-body: "Inter", -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;

  --ink: #191b1f;
  --ink-soft: #34383f;
  --muted: #666b73;
  --paper: #ffffff;
  --paper-warm: #f7f5f0;
  --paper-accent: #f3ecdd;
  --line: #e5e1d8;
  --line-soft: #edeae3;

  --accent: #a97a1f;
  --accent-deep: #7a5512;
  --accent-ink: #8a6214;
  --accent-soft: #f4ead3;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(20, 20, 24, .05);
  --shadow-md: 0 8px 30px rgba(20, 20, 24, .08);
  --maxw: 1060px;
  --maxw-text: 720px;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--paper);
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }

::selection { background: var(--accent-soft); color: var(--ink); }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255,255,255,.92);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--line);
}
.nav-row {
  max-width: var(--maxw); margin: 0 auto; padding: 14px 24px;
  display: flex; align-items: center; gap: 24px; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: .01em; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 26px; height: 26px; border-radius: 8px; background: radial-gradient(circle at 30% 30%, var(--accent), var(--accent-deep)); display: inline-block; }
.brand-name { font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.nav-links { display: flex; gap: 22px; align-items: center; font-size: 14.5px; }
.nav-links a { color: var(--ink-soft); font-weight: 500; }
.nav-links a:hover { color: var(--accent-deep); text-decoration: none; }
.nav-cta {
  border: 1px solid var(--accent); color: var(--accent-deep) !important;
  padding: 8px 14px; border-radius: 999px; font-weight: 600; font-size: 14px;
}
.nav-cta:hover { background: var(--accent); color: #fff !important; text-decoration: none; }

/* ---------- hero / index ---------- */
.hero {
  background: var(--paper-warm);
  border-bottom: 1px solid var(--line);
}
.hero-inner { max-width: var(--maxw); margin: 0 auto; padding: 72px 24px 60px; }
.eyebrow {
  display: inline-block; font-size: 13px; font-weight: 600; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent-deep); margin-bottom: 18px;
}
.hero h1 {
  font-family: var(--font-display); font-weight: 600; font-size: clamp(38px, 5.4vw, 62px);
  line-height: 1.05; letter-spacing: -0.02em; margin: 0 0 20px; max-width: 16ch;
}
.hero .lede { font-size: 20px; color: var(--ink-soft); max-width: 60ch; margin: 0 0 30px; line-height: 1.55; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.btn-primary {
  background: var(--ink); color: #fff; padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid var(--ink);
}
.btn-primary:hover { background: var(--accent-deep); border-color: var(--accent-deep); color:#fff; text-decoration:none; }
.btn-secondary {
  background: transparent; color: var(--ink); padding: 13px 22px; border-radius: 999px;
  font-weight: 600; font-size: 15px; border: 1px solid var(--line);
}
.btn-secondary:hover { border-color: var(--ink); text-decoration:none; }

/* ---------- section rhythm ---------- */
.section { padding: 66px 0; }
.section-alt { background: var(--paper-warm); }
.section-inner { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section-head { max-width: 780px; margin-bottom: 40px; }
.section-head h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.15; letter-spacing: -0.01em; margin: 0 0 14px; }
.section-head p { color: var(--muted); font-size: 17px; margin: 0; }
.rule { height: 3px; width: 44px; background: var(--accent); border-radius: 2px; margin: 0 0 18px; }

/* cluster hub */
.cluster-grid { display: grid; gap: 28px; }
.cluster-block { padding: 26px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.cluster-block h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0 0 6px; }
.cluster-block .cluster-desc { color: var(--muted); font-size: 14.5px; margin: 0 0 16px; }
.cluster-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.cluster-list a { font-weight: 500; color: var(--ink-soft); line-height: 1.5; }
.cluster-list a:hover { color: var(--accent-deep); }
.cluster-list .tag {
  font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  color: var(--muted); margin-right: 8px;
}

/* stat / principle tiles */
.tile-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 18px; }
.tile { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); }
.tile .tile-num { font-family: var(--font-display); font-size: 34px; font-weight: 600; color: var(--accent-deep); line-height: 1; margin-bottom: 10px; }
.tile h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; }
.tile p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.55; }

/* ---------- article page ---------- */
.article-page { max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 80px; }
.breadcrumb { font-size: 13px; color: var(--muted); margin: 0 0 26px; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--accent-deep); }
.breadcrumb .sep { margin: 0 7px; color: var(--line); }
.article-head { max-width: var(--maxw-text); }
.article-head .kicker {
  font-size: 13px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent-deep); margin: 0 0 14px;
}
.article-head h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(32px, 4.4vw, 50px); line-height: 1.1; letter-spacing: -0.02em; margin: 0 0 18px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 14px; color: var(--muted); font-size: 14px; align-items: center; }
.article-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--line); display: inline-block; }

.article-prose { max-width: var(--maxw-text); margin: 34px 0 0; }
.article-prose p { margin: 0 0 22px; font-size: 17.5px; color: var(--ink-soft); }
.article-prose h2 { font-family: var(--font-display); font-weight: 600; font-size: 27px; line-height: 1.2; letter-spacing: -0.01em; margin: 46px 0 16px; }
.article-prose h3 { font-weight: 600; font-size: 19px; margin: 32px 0 12px; }
.article-prose ul, .article-prose ol { margin: 0 0 22px; padding-left: 24px; color: var(--ink-soft); }
.article-prose li { margin-bottom: 9px; }
.article-prose a { font-weight: 500; }
.article-prose strong { color: var(--ink); }
.article-prose blockquote {
  margin: 26px 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--accent);
  font-family: var(--font-display); font-size: 20px; font-style: italic; color: var(--ink); line-height: 1.5;
}
.article-prose blockquote p { margin: 0; font-size: 20px; }
.article-prose table { width: 100%; border-collapse: collapse; margin: 26px 0; font-size: 15px; }
.article-prose th { text-align: left; font-weight: 600; padding: 10px 12px; border-bottom: 2px solid var(--ink); color: var(--ink); }
.article-prose td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink-soft); }
.article-prose code { background: var(--paper-warm); border: 1px solid var(--line); border-radius: 4px; padding: 1px 5px; font-size: .9em; }
.article-prose pre { background: var(--paper-warm); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px; overflow-x: auto; font-size: 14px; line-height: 1.6; }

/* pro callout */
.callout {
  background: var(--paper-accent); border: 1px solid var(--accent-soft); border-radius: var(--radius);
  padding: 22px 24px; margin: 30px 0;
}
.callout .callout-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-deep); margin: 0 0 8px; }
.callout p { margin: 0; font-size: 16.5px; color: var(--ink-soft); }
.callout p + p { margin-top: 10px; }
.callout a { font-weight: 600; }

/* related + CTA + series */
.series {
  max-width: var(--maxw-text); margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line);
  background: var(--paper-warm); border-radius: var(--radius); padding: 26px 28px;
}
.series h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0 0 16px; }
.cluster-block h3 a { color: var(--ink); }
.cluster-block h3 a:hover { color: var(--accent-deep); text-decoration: none; }
.cluster-pillar {
  display: inline-block; font-size: 13.5px; font-weight: 600; color: var(--accent-deep); margin-bottom: 16px;
}
.cluster-pillar:hover { color: var(--accent); }
.related {
  max-width: var(--maxw-text); margin-top: 54px; padding-top: 26px; border-top: 1px solid var(--line);
}
.related h3 { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0 0 16px; }
.related-list { display: grid; gap: 12px; list-style: none; padding: 0; margin: 0; }
.related-list a { color: var(--ink-soft); font-weight: 500; line-height: 1.5; }
.related-list a:hover { color: var(--accent-deep); }

.product-cta {
  max-width: var(--maxw-text); margin-top: 40px; background: var(--ink); color: #fff;
  border-radius: var(--radius); padding: 32px; text-align: center;
}
.product-cta h3 { font-family: var(--font-display); font-weight: 600; font-size: 24px; margin: 0 0 10px; }
.product-cta p { color: #d7d5d0; font-size: 15.5px; margin: 0 0 20px; }
.product-cta .btn { background: var(--accent); color: #fff; padding: 12px 22px; border-radius: 999px; font-weight: 600; font-size: 15px; }
.product-cta .btn:hover { background: #fff; color: var(--ink); text-decoration: none; }

/* footer */
.site-footer { border-top: 1px solid var(--line); background: var(--paper-warm); }
.footer-inner { max-width: var(--maxw); margin: 0 auto; padding: 52px 24px 40px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-brand .brand-name { font-size: 24px; }
.footer-brand p { color: var(--muted); font-size: 14.5px; margin: 14px 0 0; max-width: 34ch; }
.footer-col h4 { font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink); margin: 0 0 14px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-col ul a { color: var(--muted); font-size: 14.5px; }
.footer-col ul a:hover { color: var(--accent-deep); }
.footer-bottom { max-width: var(--maxw); margin: 0 auto; padding: 22px 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13.5px; display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }

/* ---------- responsive ---------- */
@media (max-width: 820px) {
  .nav-links { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-inner { padding: 52px 20px 44px; }
  .section { padding: 48px 0; }
  .article-page { padding: 28px 20px 60px; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .article-prose { font-size: 16.5px; }
  .hero-actions .btn { width: 100%; text-align: center; }
}

/* reduced motion */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; animation: none !important; }
}

/* ---------- product / pricing page ---------- */
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px; align-items: stretch; max-width: 960px; margin: 0 auto 18px;
}
.price-card {
  display: flex; flex-direction: column; padding: 28px 26px;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
}
.price-card.featured {
  border: 1.5px solid var(--accent); box-shadow: var(--shadow-md); position: relative;
}
.price-card.featured::before {
  content: "Most popular"; position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  letter-spacing: .06em; text-transform: uppercase; padding: 4px 12px; border-radius: 999px;
}
.price-name { font-family: var(--font-display); font-weight: 600; font-size: 21px; margin: 0 0 4px; }
.price-amount { font-family: var(--font-display); font-size: 44px; font-weight: 600; line-height: 1; color: var(--ink); }
.price-period { color: var(--muted); font-size: 13.5px; margin: 6px 0 20px; }
.price-features { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 10px; }
.price-features li { color: var(--ink-soft); font-size: 14.5px; padding-left: 24px; position: relative; line-height: 1.5; }
.price-features li::before {
  content: ""; position: absolute; left: 2px; top: 7px; width: 8px; height: 8px;
  border-radius: 50%; background: var(--accent);
}
.price-card .btn-primary, .price-card .btn-secondary {
  margin-top: auto; text-align: center; display: block;
}
.price-note { max-width: 640px; margin: 0 auto; text-align: center; color: var(--muted); font-size: 13.5px; }

.faq-list { max-width: 720px; margin: 0 auto; }
.faq-list details {
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper);
  padding: 18px 22px; margin-bottom: 12px;
}
.faq-list summary {
  cursor: pointer; font-weight: 600; font-size: 16px; color: var(--ink);
  list-style-position: outside;
}
.faq-list summary:hover { color: var(--accent-deep); }
.faq-list details[open] summary { margin-bottom: 10px; }
.faq-list p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.65; }

/* mid-article contextual CTA (lighter than the bottom product-cta) */
.mid-cta {
  display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap;
  background: var(--paper-accent); border: 1px solid var(--accent-soft); border-radius: var(--radius);
  padding: 20px 24px; margin: 34px 0;
}
.mid-cta h3 { font-family: var(--font-display); font-weight: 600; font-size: 20px; margin: 0 0 4px; color: var(--ink); }
.mid-cta p { margin: 0; color: var(--ink-soft); font-size: 15px; line-height: 1.55; max-width: 46ch; }
.mid-cta .btn {
  background: var(--ink); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-weight: 600; font-size: 14px; white-space: nowrap;
}
.mid-cta .btn:hover { background: var(--accent-deep); color: #fff; text-decoration: none; }
