/*
 * StandardFlow marketing pages (static HTML under public/).
 * Mirrors the brand tokens in src/index.css (2026-10 refresh). Brand mint is
 * a marketing colour only; inside the product green means PASS.
 */
:root {
  --ink: #111113;
  --text: #18181b;
  --muted: #52525b;
  --subtle: #71717a;
  --line: #e4e4e7;
  --line-soft: #f0f2f1;
  --brand: #12c784;          /* fills, never text (2.2:1 on white) */
  --brand-hover: #0fb576;
  --brand-ink: #087a52;      /* green text at body size (5.4:1) */
  --brand-tint: #e3f7ed;
  --brand-wash: #f3f7f5;
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body {
  margin: 0;
  background: #ffffff;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

.wrap { max-width: 1104px; margin: 0 auto; padding-left: clamp(16px, 5vw, 32px); padding-right: clamp(16px, 5vw, 32px); }
.narrow { max-width: 760px; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 10; background: #fff; color: var(--text); padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; text-decoration: none; box-shadow: 0 4px 16px rgba(0,0,0,0.12); }
.skip:focus { left: 12px; }

/* ---- Nav ---- */
.site-header { background: rgba(255,255,255,0.85); border-bottom: 1px solid rgba(228,228,231,0.7); }
.nav { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); min-height: 44px; }
.brand img { width: 32px; height: 32px; }
.brand-name { font-size: 20px; font-weight: 800; letter-spacing: -0.035em; }
.beta { font-size: 10px; font-weight: 500; color: var(--subtle); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 1px 8px; line-height: 1.5; }
.nav-links { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; font-size: 14px; font-weight: 500; }
.nav-links a, .nav-auth .link { text-decoration: none; color: var(--muted); padding: 12px 0; transition: color 150ms; }
.nav-links a:hover, .nav-auth .link:hover { color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-auth { display: flex; align-items: center; gap: 16px; font-size: 14px; font-weight: 500; }
.btn-brand, .btn-outline { white-space: nowrap; }
/* Phone menu: a <details> disclosure, so it works without script. Shown
   where the links leave the bar; the panel drops below the header. */
.site-header { position: relative; z-index: 20; }
.nav-menu { display: none; }
.nav-menu summary {
  list-style: none; cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 999px; color: var(--text);
}
.nav-menu summary::-webkit-details-marker { display: none; }
.nav-menu summary:hover { background: var(--line-soft); }
.nav-menu summary:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.nav-menu .icon-close, .nav-menu[open] .icon-open { display: none; }
.nav-menu[open] .icon-close { display: block; }
.nav-menu-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column;
  padding: 8px clamp(16px, 5vw, 32px) 16px;
  background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 12px 24px rgba(0,0,0,0.06);
}
.nav-menu-panel a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 8px;
  text-decoration: none; color: var(--text); font-size: 16px; font-weight: 500;
}
.nav-menu-panel a:hover { background: var(--brand-wash); color: var(--ink); }
.nav-menu-panel a[aria-current="page"] { color: var(--ink); font-weight: 700; }
.nav-menu-panel a[href="/auth"] { margin-top: 4px; border-top: 1px solid var(--line-soft); border-radius: 0 0 8px 8px; }
/* On the narrowest phones Get Started leaves the bar for the menu. */
.nav-menu-panel .menu-cta { display: none; margin-top: 8px; justify-content: center; border-radius: 999px; font-weight: 700; color: var(--ink); }
.nav-menu-panel .menu-cta:hover { background: var(--brand-hover); }
@media (max-width: 359px) {
  .nav-auth .btn-brand { display: none; }
  .nav-menu-panel .menu-cta { display: flex; }
}
@media (max-width: 760px) {
  .nav-links { display: none; }
  .nav-menu { display: block; }
}
@media (max-width: 639px) {
  .nav { flex-wrap: nowrap; gap: 8px; }
  .beta, .nav-auth .link { display: none; }
  .brand-name { font-size: 18px; }
}

/* ---- Buttons: fully rounded pills ---- */
.btn-brand, .btn-outline {
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 999px; min-height: 40px; padding: 0 20px; font-size: 14px; font-weight: 700;
  transition: background-color 150ms, border-color 150ms, color 150ms;
}
/* Text on mint is near-black (8.6:1), never white */
.btn-brand { background: var(--brand); color: var(--ink); }
.btn-brand:hover { background: var(--brand-hover); }
.btn-outline { background: #fff; color: var(--text); border: 1px solid #d4d4d8; font-weight: 600; }
.btn-outline:hover { border-color: #a1a1aa; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 16px; }
.shadow-brand { box-shadow: 0 1px 2px rgba(5,110,72,0.18), 0 10px 28px rgba(18,199,132,0.28); }

/* ---- Hero band ---- */
.hero-band { position: relative; overflow: hidden; isolation: isolate; background: var(--brand-wash); }
.hero-band::before, .hero-band::after {
  content: ''; position: absolute; z-index: -1; pointer-events: none; background: var(--brand-tint);
}
.hero-band::before { right: -180px; top: -60px; width: 460px; height: 460px; border-radius: 120px; transform: rotate(12deg); opacity: 0.8; }
.hero-band::after { left: -220px; bottom: -220px; width: 380px; height: 380px; border-radius: 100px; transform: rotate(-12deg); opacity: 0.5; }
.hero-band > * { position: relative; }
.hero-band .site-header { background: transparent; border-bottom-color: transparent; }
.hero { padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(64px, 8vw, 104px); text-align: center; }
.pill { margin: 0 auto; display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 500; color: var(--muted); border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; line-height: 1.4; }
.pill-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.hero h1 { margin: 28px auto 0; max-width: 900px; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.04; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.hero p.lede { margin: 24px auto 0; max-width: 660px; font-size: clamp(17px, 1.5vw, 20px); color: var(--muted); }
.tagline { margin: 28px 0 0; font-size: 11px; font-weight: 600; letter-spacing: 0.28em; text-transform: uppercase; color: var(--subtle); text-wrap: balance; }

/* ---- Section type ---- */
.section { padding-top: clamp(64px, 8vw, 104px); padding-bottom: clamp(64px, 8vw, 104px); }
.eyebrow { margin: 0 0 14px; font-size: 11px; font-weight: 700; letter-spacing: 0.28em; text-transform: uppercase; color: var(--brand-ink); }
.h2 { margin: 0; font-size: clamp(28px, 3.2vw, 40px); line-height: 1.12; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }

/* ---- Long-form pages (policies, solutions, standards, use cases) ---- */
.page { background: linear-gradient(180deg, var(--brand-wash) 0, #ffffff 360px); }
.prose { max-width: 760px; padding-top: clamp(40px, 6vw, 72px); padding-bottom: clamp(56px, 8vw, 96px); }
.prose h1 { margin: 0 0 16px; font-size: clamp(34px, 5vw, 52px); line-height: 1.06; font-weight: 800; letter-spacing: -0.035em; color: var(--ink); text-wrap: balance; }
.prose h2 { margin: 44px 0 0; font-size: clamp(20px, 2.2vw, 24px); line-height: 1.25; font-weight: 800; letter-spacing: -0.025em; color: var(--ink); }
.prose h3 { margin: 28px 0 0; font-size: 17px; font-weight: 700; color: var(--ink); }
.prose p, .prose li { color: #3f3f46; }
.prose p { margin: 14px 0 0; }
.prose .meta { margin: 0 0 8px; font-size: 14px; color: var(--subtle); }
.prose ul, .prose ol { margin: 14px 0 0; padding-left: 22px; }
.prose li { margin: 8px 0; }
.prose ul li::marker { color: var(--brand); }
.prose strong { color: var(--text); }
.prose a { color: var(--brand-ink); font-weight: 600; text-decoration: underline; text-decoration-color: rgba(8,122,82,0.35); text-underline-offset: 3px; }
.prose a:hover { text-decoration-color: var(--brand-ink); }
.prose > footer, .prose > article > footer { margin-top: 56px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 14px; color: var(--subtle); }
.prose code { font-family: 'IBM Plex Mono', ui-monospace, Menlo, monospace; font-size: 0.9em; }
.prose .lede { margin-top: 0; font-size: clamp(17px, 1.5vw, 19px); color: var(--muted); }

/* ---- Blog ---- */
.prose .eyebrow a { color: inherit; font-weight: inherit; text-decoration: none; }
.post-list { list-style: none; margin: 40px 0 0; padding: 0; border-top: 1px solid var(--line); }
.post-list > li { margin: 0; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-list > li::marker { content: none; }
.post-meta { margin: 0; font-size: 13px; color: var(--subtle); }
.prose .post-list h2 { margin: 6px 0 0; }
.prose .post-list h2 a { color: var(--ink); font-weight: 800; text-decoration: none; }
.prose .post-list h2 a:hover { text-decoration: underline; text-decoration-color: var(--line); }
.prose .post-list p.post-meta { margin: 0; }
.post-cta { margin-top: 48px; padding: 24px 28px; border-radius: 20px; background: var(--brand-wash); border: 1px solid #e6ece9; }
.prose .post-cta h2 { margin-top: 0; }
.post-cta .actions { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 12px; }
.prose .post-cta .btn-brand, .prose .post-cta .btn-outline { text-decoration: none; }
.prose .post-cta .btn-brand { color: var(--ink); }
.prose .post-cta .btn-outline { color: var(--text); }
.prose .lede + .meta { margin-top: 14px; }
.prose figure { margin: 32px 0 0; }
.prose figure img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--line); box-shadow: 0 12px 32px rgba(17,17,19,0.06); }
.prose figcaption { margin-top: 10px; font-size: 13px; line-height: 1.5; color: var(--subtle); }
.prose blockquote { margin: 20px 0 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--brand); color: var(--muted); }
.prose blockquote p { margin: 0; }

/* ---- Footer ---- */
.site-footer { background: #ffffff; border-top: 1px solid var(--line); color: var(--subtle); }
.foot { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px 24px; padding-top: 48px; padding-bottom: 32px; }
.foot-brand { display: flex; align-items: center; gap: 10px; }
.foot-brand img { width: 24px; height: 24px; }
.foot-name { font-size: 17px; font-weight: 800; color: var(--ink); letter-spacing: -0.035em; }
.foot-tag { margin-top: 4px; font-size: 12px; color: var(--subtle); }
.foot-social { display: flex; gap: 16px; margin-top: 20px; }
.foot-social a { display: inline-flex; color: var(--muted); transition: color 150ms; }
.foot-social a:hover { color: var(--ink); }
.foot-social svg { width: 16px; height: 16px; fill: currentColor; }
.foot-col { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; font-size: 13px; }
.foot-head { font-size: 10px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--subtle); }
.foot-col a { text-decoration: none; color: var(--muted); transition: color 150ms; }
.foot-col a:hover { color: var(--ink); }
.foot-base { padding-bottom: 32px; }
.foot-copy { border-top: 1px solid var(--line); padding-top: 20px; font-size: 12px; color: var(--subtle); }
@media (max-width: 760px) {
  .foot { grid-template-columns: 1fr 1fr; }
  .foot-lead { grid-column: 1 / -1; }
}

/* ---- Blog visual previews ---- */
.post-thumb {
  display: block;
  margin: 0 0 18px;
  color: inherit;
  text-decoration: none;
}
.post-thumb img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: #fff;
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(17,17,19,0.06);
}
.article-hero { margin-top: 26px; }
@media (max-width: 639px) {
  .post-list > li { padding: 24px 0; }
  .post-thumb { margin-bottom: 16px; }
  .post-thumb img,
  .prose .article-hero img { border-radius: 14px; }
  .prose .article-hero { margin-top: 22px; }
}

/* ---- Case study visual sizing ---- */
.prose .article-hero img {
  width: 100%;
  height: auto;
  max-height: 360px;
  object-fit: contain;
  background: #fff;
}
.prose .evidence-shot {
  max-width: 680px;
  margin-left: auto;
  margin-right: auto;
}
.prose .evidence-shot img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
@media (max-width: 639px) {
  .prose .article-hero img { max-height: 210px; }
  .prose .evidence-shot { max-width: 100%; }
}

/* ---- Inline case-study visuals: no external image dependency ---- */
.post-thumb {
  max-width: 520px;
}
.case-study-inline-svg {
  display: block;
  width: 100%;
  height: auto;
}
.inline-visual svg {
  border-radius: 16px;
  border: 1px solid var(--line);
  box-shadow: 0 12px 32px rgba(17,17,19,0.06);
  background: #fff;
}
.prose .article-hero {
  margin-top: 24px;
}
.prose .article-hero .hero-inline {
  max-height: 380px;
}
.prose .metrics-figure {
  margin-top: 30px;
}
.prose .evidence-shot {
  max-width: 680px;
}
@media (max-width: 639px) {
  .post-thumb { max-width: 100%; margin-bottom: 14px; }
  .prose .article-hero .hero-inline { max-height: none; }
  .inline-visual svg { border-radius: 12px; }
}

/* ---- Square in-article figure (e.g. an animated scorecard) ---- */
.prose .square-figure { max-width: 440px; margin-left: auto; margin-right: auto; }
/* Tall in-article screenshot (e.g. a phone capture of one finding) */
.prose .screen-figure { max-width: 360px; margin-left: auto; margin-right: auto; }
@media (max-width: 639px) {
  .prose .square-figure { max-width: 100%; }
}
/* Desktop: body figures sit at the right with the text wrapping beside them */
@media (min-width: 900px) {
  .prose .figure-right { float: right; clear: right; margin: 6px 0 16px 32px; }
  .prose .square-figure.figure-right { width: 300px; }
  .prose .screen-figure.figure-right { width: 250px; }
  .prose .figure-right ~ h2, .prose .figure-right ~ h3, .prose .figure-right ~ aside { clear: right; }
}
