/* DemoFlows blog: static pages under /blog, same look as the landing page: white page, Geist,
   forest and mint as accents and soft centered glows.
   mint #4FF8D2 · forest #013D2A · ivory #F8F2E8 · near black #111317 */
/* Geist (SIL Open Font License 1.1), self-hosted so the app, the shared player and embeds never
   call a third-party font host. Latin subset, variable weight. */
@font-face {
  font-family: "Geist";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/fonts/geist-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
:root {
  --ivory: #f8f2e8;
  --forest: #013d2a;
  --mint: #4ff8d2;
  --ink: #111317;
  --ink-2: rgba(17, 19, 23, 0.62);
  --ink-3: rgba(17, 19, 23, 0.5);
  --line: rgba(17, 19, 23, 0.07);
  --card: #fff;
  --shadow: 0 1px 2px rgba(17, 19, 23, 0.04), 0 12px 32px -16px rgba(1, 61, 42, 0.18);
  --glow: radial-gradient(50% 55% at 50% 40%, rgba(79, 248, 210, 0.26), rgba(1, 61, 42, 0.05) 55%, transparent 75%);
  --sans: Geist, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: #fff; color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; overflow-x: clip; }
a { color: var(--forest); }
img { max-width: 100%; height: auto; }

/* Header / footer */
.site-header { position: sticky; top: 0; z-index: 40; border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, 0.8); -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px); }
.header-inner, .footer-inner { max-width: 1152px; margin: 0 auto; padding: 18px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand img { display: block; height: 30px; width: auto; }
.site-nav { display: flex; align-items: center; gap: 22px; font-size: 14px; }
.site-nav a { color: var(--ink-2); text-decoration: none; transition: color 0.15s; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--ink); }
.site-nav .nav-cta { background: var(--forest); color: #fff; padding: 9px 16px; border-radius: 999px; font-weight: 500; box-shadow: 0 8px 20px -8px rgba(1, 61, 42, 0.6); transition: background 0.15s; }
.site-nav .nav-cta:hover { color: #fff; background: #02523a; }
.site-footer { border-top: 1px solid var(--line); margin-top: 72px; }
.footer-inner { font-size: 14px; color: var(--ink-3); flex-wrap: wrap; padding-top: 28px; padding-bottom: 28px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--ink-3); text-decoration: none; }
.footer-links a:hover { color: var(--ink); }
@media (max-width: 560px) { .site-nav .hide-sm { display: none; } }

/* Shared bits */
.eyebrow { display: inline-flex; width: fit-content; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; border: 1px solid rgba(1, 61, 42, 0.1); background: #fff; font-size: 12px; font-weight: 500; color: var(--forest); }
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }

/* Blog index */
.page { position: relative; isolation: isolate; max-width: 1152px; margin: 0 auto; padding: 72px 24px 0; }
.page::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: 100vw; height: 560px; transform: translateX(-50%); background: var(--glow); pointer-events: none; }
.blog-hero { max-width: 760px; margin: 0 auto; text-align: center; }
.blog-hero h1 { font-size: clamp(40px, 6vw, 64px); line-height: 1.04; font-weight: 600; letter-spacing: -0.035em; margin: 20px 0 16px; }
.blog-hero h1 span { background: linear-gradient(to right, #013d2a, #0a8a66); -webkit-background-clip: text; background-clip: text; color: transparent; }
.blog-hero p { font-size: 18px; color: var(--ink-2); margin: 0; }
.article-list { margin-top: 48px; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.article-card { display: flex; flex-direction: column; background: var(--card); border-radius: 24px; overflow: hidden; text-decoration: none; color: inherit; box-shadow: 0 0 0 1px var(--line), var(--shadow); transition: transform 0.2s, box-shadow 0.2s; }
.article-card:hover { transform: translateY(-2px); box-shadow: 0 0 0 1px var(--line), 0 1px 2px rgba(17, 19, 23, 0.04), 0 20px 44px -18px rgba(1, 61, 42, 0.28); }
.article-card img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 1px solid var(--line); }
.article-card .card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; }
.article-card h2 { font-size: 21px; line-height: 1.25; font-weight: 600; letter-spacing: -0.015em; margin: 12px 0 10px; }
.article-card p { margin: 0 0 18px; color: var(--ink-2); font-size: 15px; }
.card-meta { margin-top: auto; display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--ink-3); }
.read-link { color: var(--forest); font-weight: 600; }

/* Article */
.article-page { position: relative; isolation: isolate; max-width: 760px; margin: 0 auto; padding: 48px 24px 0; }
.article-page::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 0; width: 100vw; height: 520px; transform: translateX(-50%); background: var(--glow); pointer-events: none; }
.breadcrumbs { font-size: 13px; color: var(--ink-3); margin-bottom: 22px; }
.breadcrumbs a { color: var(--ink-3); text-decoration: none; }
.breadcrumbs a:hover { color: var(--ink); }
.article-hero h1 { font-size: clamp(34px, 5.4vw, 52px); line-height: 1.06; font-weight: 600; letter-spacing: -0.03em; margin: 18px 0 14px; }
.article-dek { font-size: 20px; line-height: 1.5; color: var(--ink-2); margin: 0; }
.byline { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 20px; font-size: 14px; color: var(--ink-3); }
.hero-figure { margin: 32px 0 0; }
.hero-figure img, .article-body figure img { display: block; width: 100%; border-radius: 18px; box-shadow: 0 0 0 1px var(--line), var(--shadow); background: #fff; }
.toc { margin: 36px 0 8px; padding: 20px 24px; background: #f6fbf9; border-radius: 18px; box-shadow: 0 0 0 1px var(--line); }
.toc p { margin: 0 0 8px; font-weight: 600; font-size: 14px; }
/* Headings carry their own numbers ("1. Decide…"), so the list adds none. */
.toc ol { margin: 0; padding-left: 0; list-style: none; font-size: 15px; line-height: 1.8; }
.toc a { color: var(--ink-2); text-decoration: none; }
.toc a:hover { color: var(--forest); text-decoration: underline; }
.article-body { font-size: 18px; line-height: 1.75; }
.article-body h2 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -0.025em; margin: 52px 0 12px; scroll-margin-top: 88px; }
.article-body h3 { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; margin: 28px 0 6px; scroll-margin-top: 88px; }
.article-body p, .article-body ul, .article-body ol { margin: 0 0 18px; }
.article-body li { margin-bottom: 6px; }
.article-body li::marker { color: var(--forest); }
.article-body strong { color: var(--ink); }
.article-body code { font-size: 0.88em; background: rgba(1, 61, 42, 0.07); padding: 2px 6px; border-radius: 6px; }
.article-body figure { margin: 28px 0; }
.article-body figcaption { margin-top: 10px; font-size: 14px; color: var(--ink-3); text-align: center; }
.example { margin: 18px 0 22px; padding: 16px 20px; border-radius: 14px; background: #fff; box-shadow: 0 0 0 1px var(--line); font-size: 16px; }
.example .bad, .example .good { display: block; }
.example .bad { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(17, 19, 23, 0.3); }
.example .good { color: var(--ink); font-weight: 500; margin-top: 4px; }
.example .good::before { content: "✓ "; color: var(--forest); font-weight: 700; }
.table-wrap { overflow-x: auto; margin: 22px 0 26px; border-radius: 14px; box-shadow: 0 0 0 1px var(--line); background: #fff; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 15px; line-height: 1.5; min-width: 520px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.table-wrap th { background: rgba(1, 61, 42, 0.05); font-weight: 600; }
.table-wrap tr:last-child td { border-bottom: 0; }
.checklist { list-style: none; padding-left: 0; }
.checklist li { padding-left: 30px; position: relative; }
.checklist li::before { content: ""; position: absolute; left: 0; top: 6px; width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--forest); }
.article-note { margin: 28px 0; padding: 18px 22px; border-left: 4px solid var(--mint); background: rgba(79, 248, 210, 0.14); border-radius: 0 14px 14px 0; font-size: 16px; }
.article-note p:last-child { margin-bottom: 0; }
.faq h3 { margin-top: 22px; }
.article-cta { margin: 52px 0 0; padding: 40px 32px; border-radius: 24px; text-align: center; color: #fff; background: radial-gradient(55% 75% at 50% 0%, rgba(79, 248, 210, 0.35), transparent 70%), var(--forest); }
.article-cta h2 { color: #fff; margin: 0 0 8px; font-size: 30px; }
.article-cta p { color: rgba(255, 255, 255, 0.72); margin: 0 auto 22px; max-width: 520px; font-size: 17px; }
.article-cta a { display: inline-block; background: var(--mint); color: var(--forest); font-weight: 600; text-decoration: none; padding: 12px 22px; border-radius: 999px; font-size: 15px; transition: filter 0.15s; }
.article-cta a:hover { filter: brightness(0.95); }
.related { max-width: 760px; margin: 56px auto 0; padding: 0 24px; }
.related h2 { font-size: 26px; font-weight: 600; letter-spacing: -0.025em; margin: 0 0 16px; }
.related .article-list { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.related .article-card h2 { font-size: 20px; margin: 10px 0 8px; }
@media (max-width: 560px) {
  .article-body { font-size: 17px; }
  .article-body h2 { font-size: 26px; }
  .article-cta { padding: 24px; }
}
