/* Marketing site styles (internal/cms/render). Plain CSS, no build step —
   this page is server-rendered and has no bundler. Self-contained: no
   dependency on the frontend build. Design: the approved landing-page
   artboard (Bricolage Grotesque display, Geist body, ink #071E28 on a cool
   off-white, pill buttons). */

:root {
  --accent: #025577;
  --accent-tint: #dfeef4;
  --ink: #071e28;
  --ink-2: #0c2a37;
  --ink-line: #17394a;
  --text: #454b55;
  --muted: #5b616b;
  --muted-2: #6b717b;
  --bg: #f3f6f7;
  --card: #ffffff;
  --line: #dce5e9;
  --line-2: #d2dde2;
  --display: "Bricolage Grotesque", "Geist", sans-serif;
  --sans: "Geist", "Helvetica Neue", system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, monospace;
  --wrap: 1248px; /* 1200px of content + 24px padding either side: the artifact's containers are content-box */
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
/* The page grows to fill the screen, so a short page keeps the footer at the bottom. */
main { flex: 1 0 auto; }
img { max-width: 100%; }
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--accent); }
h1, h2, h3 { margin: 0; color: var(--ink); }
p { margin: 0; }
h1, h2 { font-family: var(--display); font-weight: 700; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: rgba(243, 246, 247, 0.86);
  backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header-row { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; height: 68px; display: flex;
  align-items: center; justify-content: space-between; gap: 24px; }
.site-logo { display: flex; align-items: center; min-height: 44px; }
.site-logo img { display: block; height: 26px; width: auto; }
.nav-list { list-style: none; display: flex; align-items: center; gap: 8px; margin: 0; padding: 0; flex-wrap: wrap; }
.site-header .nav-list { flex-wrap: nowrap; }
.nav-item { position: relative; }
.nav-item > a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; font-size: 15px; font-weight: 500; }
/* The last header link is the call to action ("Start free"). */
.site-header .site-nav > .nav-list > .nav-item:last-child > a { padding: 0 18px; border-radius: 999px; background: var(--ink);
  color: #fff; font-weight: 600; }
.site-header .site-nav > .nav-list > .nav-item:last-child > a:hover { background: var(--accent); color: #fff; }
.nav-item.has-children:hover > ul,
.nav-item.has-children:focus-within > ul { display: block; }
.nav-item .nav-list { display: none; position: absolute; top: 100%; left: 0; background: #fff; border: 1px solid var(--line);
  border-radius: 12px; padding: 8px; flex-direction: column; align-items: stretch; gap: 2px; min-width: 10rem;
  box-shadow: 0 8px 24px rgba(11, 13, 18, 0.1); z-index: 10; }

/* Buttons */
/* The artifact's buttons are <a> tags with the default content-box sizing: min-height 52px plus a 1px
   border on the outlined ones makes 54px, and the filled ones stretch to match in a row. */
.btn { box-sizing: content-box; display: inline-flex; align-items: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border-radius: 999px; font-size: 16px; font-weight: 600; border: 0; transition: background 0.15s, border-color 0.15s; }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--ink); color: #fff; }
.btn-secondary { background: #fff; color: var(--ink); border: 1px solid #c3d1d7; }
.btn-secondary:hover { border-color: var(--accent); color: var(--ink); }
.btn-light { background: #fff; color: var(--ink); }
.btn-light:hover { background: var(--accent-tint); color: var(--ink); }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* Blocks */
.eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 40rem; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; }

/* Hero */
.hero { max-width: var(--wrap); margin: 0 auto; padding: 88px 24px 72px; }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 460px), 1fr)); gap: 64px; align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 28px; }
.hero-badge { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px 6px 8px;
  border: 1px solid var(--line-2); border-radius: 999px; background: #fff; font-size: 13px; font-weight: 500; color: #3a3f47; }
.hero-badge .dot { width: 8px; height: 8px; border-radius: 999px; background: var(--accent); }
.hero h1 { font-size: clamp(2.6rem, 5.4vw, 4.4rem); line-height: 1.02; letter-spacing: -0.035em; }
.hero h1 .accent { color: var(--accent); }
.hero-subheading { max-width: 34rem; font-size: 19px; line-height: 1.55; color: var(--text); }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-image img { display: block; width: 100%; height: auto; border-radius: 20px; border: 1px solid var(--line);
  box-shadow: 0 1px 0 rgba(11, 13, 18, 0.04), 0 24px 48px -24px rgba(11, 13, 18, 0.22); }

/* Built-in product preview (hero visual "app") */
.app-preview { display: flex; flex-direction: column; gap: 16px; }
.app-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  box-shadow: 0 1px 0 rgba(11, 13, 18, 0.04), 0 24px 48px -24px rgba(11, 13, 18, 0.22); }
.app-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; border-bottom: 1px solid #e9eff1; }
.app-card-title { font-weight: 600; font-size: 15px; }
.app-search { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 10px; background: var(--bg);
  font-size: 13px; color: var(--muted); min-width: 160px; box-sizing: content-box; }
.app-row { display: grid; grid-template-columns: 1.5fr 1.2fr 0.9fr; gap: 12px; padding: 14px 20px; border-bottom: 1px solid #edf2f4; align-items: center; }
.app-row.last { border-bottom: none; }
.mono-tag { font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.app-name { font-size: 14px; font-weight: 500; }
.app-loc { font-size: 13px; color: var(--text); }
.pill { justify-self: start; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill span { width: 6px; height: 6px; border-radius: 999px; }
.pill-brand { background: var(--accent-tint); color: #023f59; } .pill-brand span { background: var(--accent); }
.pill-amber { background: #fdf1d6; color: #7a5200; } .pill-amber span { background: #d99a0b; }
.pill-green { background: #ddf3e5; color: #13663a; } .pill-green span { background: #1f9d55; }
.pill-grey { background: #e7edf0; color: #3a3f47; } .pill-grey span { background: var(--muted-2); }
.app-extras { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 16px; }
.label-tile { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--ink); color: #fff; border-radius: 16px; }
.label-tag { font-family: var(--mono); font-size: 12px; color: #b8bdc6; }
.label-title { font-size: 14px; font-weight: 600; }
.scan-toast { display: flex; align-items: flex-start; gap: 12px; padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 999px; background: var(--accent-tint); color: #023f59;
  display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; }
.scan-text { font-size: 13px; line-height: 1.45; color: var(--text); }
.mono-strong { font-family: var(--mono); color: var(--ink); font-weight: 600; }
.scan-when { font-size: 12px; color: var(--muted-2); margin-top: 2px; }

/* Stats */
.stats-strip { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.stats-strip-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); }
.stat-item { padding: 32px 24px; display: flex; flex-direction: column; gap: 6px; border-left: 1px solid var(--line-2); }
.stat-item:first-child { padding-left: 0; border-left: none; }
.stat-value { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -0.03em; }
.stat-label { font-size: 15px; color: var(--text); }

/* Features */
.feature-grid { max-width: var(--wrap); margin: 0 auto; padding: 112px 24px 56px; display: flex; flex-direction: column; gap: 48px; }
.feature-grid-items { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 20px; }
.feature-card { display: flex; flex-direction: column; gap: 20px; padding: 28px; background: #fff; border: 1px solid var(--line); border-radius: 20px; }
.feature-card.dark { background: var(--ink); border: 0; color: #fff; }
.feature-visual { height: 168px; border-radius: 14px; background: var(--bg); padding: 20px; display: flex; flex-direction: column; justify-content: center; }
.feature-card.dark .feature-visual { background: var(--ink-2); border: 1px solid var(--ink-line); }
.feature-copy { display: flex; flex-direction: column; gap: 8px; }
.feature-copy h3 { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; color: inherit; }
.feature-copy p { font-size: 15px; line-height: 1.55; color: var(--text); }
.feature-card.dark .feature-copy p { color: #b8bdc6; }
.feature-icon { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px;
  background: var(--accent-tint); color: var(--accent); align-self: flex-start; }
.icon { width: 1.5rem; height: 1.5rem; }
/* Each illustration has its own padding in the design. */
.visual-scan-log, .visual-assignee { padding: 18px 20px; }
.visual-activity { padding: 20px 22px; }
.vis-stack { display: flex; flex-direction: column; gap: 12px; }
.vis-stack-loose { gap: 14px; }
.vis-stack-tight { gap: 10px; }
.vis-line { display: flex; align-items: center; gap: 12px; }
.vis-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; }
.vis-ico-brand { background: var(--accent); } .vis-ico-dim { background: var(--ink-line); }
.vis-grow { flex-grow: 1; }
.vis-title { font-size: 14px; font-weight: 600; }
.vis-sub { font-size: 12px; color: #a9c4cf; }
.vis-time { font-family: var(--mono); font-size: 12px; color: #a9c4cf; }
.flow-row { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text); }
.flow-chip { padding: 6px 10px; border-radius: 8px; background: #fff; border: 1px solid var(--line); font-size: 13px; }
.flow-chip-dark { background: var(--ink); border: 0; color: #fff; font-weight: 600; }
.act-row { display: flex; gap: 12px; align-items: baseline; font-size: 13px; }
.act-dot { width: 8px; height: 8px; flex: none; border-radius: 999px; background: #9aa0a9; }
.act-dot-brand { background: var(--accent); }
.act-strong { font-weight: 600; color: var(--ink); }
.act-time { margin-left: auto; font-family: var(--mono); font-size: 12px; color: var(--muted-2); }
.assignee-head { display: flex; align-items: center; gap: 10px; }
.assignee-name { font-size: 14px; font-weight: 600; }
.assignee-count { margin-left: auto; font-size: 12px; color: var(--muted); }
.assignee-chips { display: flex; flex-wrap: wrap; gap: 8px; }

/* Audience */
.audience { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 112px; }
.audience-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.audience-label { font-size: 15px; color: var(--text); margin-right: 8px; }
.chip { padding: 10px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 15px; font-weight: 500; }

/* Pricing plans */
.pricing-plans { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; display: flex; flex-direction: column; gap: 40px; }
.pricing-plans-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.pricing-plans-note { font-size: 15px; color: var(--text); }
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; align-items: stretch; }
.plan-card { display: flex; flex-direction: column; gap: 20px; padding: 28px; background: #fff; border: 1px solid var(--line);
  border-radius: 20px; min-width: 0; }
.plan-card.highlight { border: 2px solid var(--accent); }
.plan-card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 26px; }
.plan-card h3 { font-size: 20px; font-weight: 600; }
.plan-badge { padding: 4px 10px; border-radius: 999px; background: var(--accent-tint); color: #023f59; font-size: 12px; font-weight: 600; }
.plan-tagline { margin-top: -12px; font-size: 14px; line-height: 1.45; min-height: 2.9em; /* two lines, so every card's price and button line up */ color: var(--muted); }
.plan-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; }
.plan-amount { font-family: var(--display); font-weight: 700; font-size: 44px; line-height: 1; letter-spacing: -0.02em; }
.plan-unit { font-size: 14px; color: var(--muted); }
.plan-seats { display: inline-flex; align-self: flex-start; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--bg); font-size: 13px; font-weight: 500; }
.plan-seats .icon { width: 14px; height: 14px; }
.plan-cta { box-sizing: border-box; justify-content: center; width: 100%; min-height: 44px; font-size: 14px; padding: 0 18px; }
.plan-features { list-style: none; margin: 0; padding: 20px 0 0; border-top: 1px solid #edf2f4; display: flex; flex-direction: column; gap: 10px; }
.plan-features li { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.45; color: var(--text); }
.plan-check { flex: none; margin-top: 1px; width: 18px; height: 18px; border-radius: 999px; background: var(--accent-tint); color: #023f59;
  display: flex; align-items: center; justify-content: center; }
.plan-check .icon { width: 12px; height: 12px; }

/* Pricing teaser */
.pricing-teaser { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.pricing-teaser-inner { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 32px;
  align-items: center; padding: 56px; border-radius: 28px; background: var(--accent); color: #fff; }
.pricing-teaser-copy { display: flex; flex-direction: column; gap: 12px; }
.pricing-teaser h2 { color: #fff; font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; }
.pricing-teaser p { font-size: 18px; color: var(--accent-tint); }
.pricing-teaser-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }

/* FAQ */
.faq-accordion { max-width: var(--wrap); margin: 0 auto; padding: 112px 24px; }
.faq-layout { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 48px; }
.faq-item { border-top: 1px solid var(--line-2); padding: 24px 0; }
.faq-item:last-child { border-bottom: 1px solid var(--line-2); }
.faq-item summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; min-height: 44px;
  font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] .faq-plus { display: none; }
.faq-icon { flex: none; }
.faq-item p { margin: 8px 0 0; font-size: 16px; line-height: 1.6; color: var(--text); }

/* CTA banner: full-bleed ink section running into the footer */
.cta-banner { background: var(--ink); color: #fff; }
.cta-banner-inner { max-width: var(--wrap); margin: 0 auto; padding: 112px 24px; display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 20px; }
.cta-banner h2 { max-width: 46rem; color: #fff; font-size: clamp(2.2rem, 4.6vw, 3.8rem); line-height: 1.04; letter-spacing: -0.035em; }
.cta-banner p { font-size: 18px; color: #b8bdc6; }
.cta-banner .btn { margin-top: 12px; padding: 0 26px; }

/* Testimonials / logo cloud / rich text */
.testimonials, .logo-cloud { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px; }
.testimonials-items { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.testimonial { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 28px; }
.testimonial blockquote { margin: 0 0 1rem; font-size: 1.0625rem; color: var(--ink); }
.testimonial figcaption { display: flex; align-items: center; gap: 0.6rem; color: var(--muted); font-size: 0.9rem; }
.testimonial-avatar { width: 2.25rem; height: 2.25rem; border-radius: 50%; object-fit: cover; }
.testimonial-name { font-weight: 600; color: var(--ink); }
.logo-cloud-heading { text-align: center; color: var(--muted); font-size: 0.9rem; text-transform: uppercase; letter-spacing: 0.06em; }
.logo-cloud-items { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem; margin-top: 1.5rem; }
.logo-cloud-item { height: 2rem; width: auto; opacity: 0.7; filter: grayscale(1); }
.rich-text { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px; }
.prose { max-width: 42rem; margin: 0 auto; color: var(--text); line-height: 1.65; }
.prose h1, .prose h2, .prose h3 { margin: 1.4em 0 0.5em; }
.prose :first-child { margin-top: 0; }
.prose a { color: var(--accent); text-decoration: underline; }
.prose img { border-radius: 12px; }

/* Footer */
.site-footer { background: var(--ink); color: #9aa0a9; border-top: 1px solid var(--ink-line); }
.site-footer-row { max-width: var(--wrap); margin: 0 auto; padding: 32px 24px; display: flex; flex-wrap: wrap;
  align-items: center; justify-content: space-between; gap: 16px; font-size: 14px; }
.site-footer .site-logo img { height: 24px; }
.site-footer .nav-list { column-gap: 24px; row-gap: 0; gap: 0 24px; }
.site-footer .nav-item > a { padding: 0; color: #c9d7dd; font-weight: 400; font-size: 14px; }
.site-footer .nav-item > a:hover { color: #fff; }
.site-footer .nav-item .nav-list { position: static; display: flex; border: none; box-shadow: none; background: none; padding: 0 0 0 1rem; }
.social-links { list-style: none; display: flex; gap: 16px; padding: 0; margin: 0; }
.social-links a { color: #c9d7dd; }
.footer-copy { width: 100%; padding-top: 16px; border-top: 1px solid var(--ink-line); }

/* Below phone width the design's own header overflows (its "Start free" is clipped), so the one
   deliberate difference from the design: drop the secondary "Log in" link and keep the logo whole. */
@media (max-width: 480px) {
  .site-logo img { flex: none; }
  .site-header .nav-item:nth-child(2):not(:last-child) { display: none; }
  .nav-item > a { white-space: nowrap; }
}

/* Contact form (the /contact page, not a CMS block) */
.contact-form { padding: 72px 24px 96px; }
.contact-wrap { max-width: 640px; margin: 0 auto; }
.contact-wrap h1 { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.05; letter-spacing: -0.03em; }
.contact-intro { margin: 16px 0 32px; font-size: 18px; line-height: 1.55; color: var(--text); }
.contact-fields { display: flex; flex-direction: column; gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-weight: 600; font-size: 15px; color: var(--ink); }
.field .optional { font-weight: 400; color: var(--text); }
.field input, .field textarea { font: inherit; padding: 12px 14px; border: 1px solid #c3d1d7; border-radius: 12px; background: #fff; color: var(--ink); }
.field textarea { resize: vertical; min-height: 140px; }
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); }
.field.has-error input, .field.has-error textarea { border-color: #c0392b; }
.field-error, .form-error { color: #a93226; font-size: 14px; }
.contact-fields .btn { align-self: flex-start; border: 0; cursor: pointer; }
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.contact-sent { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 40px 0; }
.contact-sent p { font-size: 18px; color: var(--text); }

/* Cost calculator: the result card under the four-question form. */
.calc-result { margin: 36px 0 12px; padding: 28px; border-radius: 16px; background: var(--ink); color: #fff; }
.calc-label { margin: 0; font-size: 15px; opacity: .8; }
.calc-total { margin: 4px 0 16px; font-size: clamp(2.2rem, 6vw, 3.4rem); font-weight: 700; letter-spacing: -0.03em; line-height: 1.05; }
.calc-total span { font-size: 1.1rem; font-weight: 500; opacity: .8; letter-spacing: 0; }
.calc-breakdown { margin: 0 0 16px; padding-left: 20px; }
.calc-note { margin: 0; font-size: 14px; opacity: .8; }
.calc-lead-title { margin: 32px 0 0; font-size: 1.5rem; letter-spacing: -0.02em; }

/* Error pages (404, 500): the app's error layout inside the site chrome. */
.err { padding: 72px 24px; }
.err-grid { max-width: 1080px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 48px; align-items: center; }
.err-copy { display: flex; flex-direction: column; gap: 22px; align-items: flex-start; }
.err-eyebrow { font-family: var(--mono); font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.err h1 { font-size: clamp(2.4rem, 4.6vw, 3.6rem); line-height: 1.04; letter-spacing: -0.02em; }
.err-body { max-width: 32rem; font-size: 18px; line-height: 1.55; color: var(--text); }
.err-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.err-ref { font-size: 13px; color: var(--muted); }
.err-ref code { font-family: var(--mono); padding: 3px 8px; border-radius: 6px; background: #fff; border: 1px solid var(--line); color: var(--ink); }
.err-art { position: relative; display: flex; align-items: center; justify-content: center; min-height: 380px; }
.err-ghost { position: absolute; font-family: var(--display); font-weight: 700; font-size: 220px; line-height: 1; letter-spacing: -0.04em; color: #e3eaed; user-select: none; }
.err-art svg { position: relative; max-width: 100%; height: auto; }
@media (max-width: 640px) { .err { padding: 40px 24px; } .err-art { min-height: 260px; } .err-ghost { font-size: 150px; } .err-art svg { width: 220px; } }


/* Blog (index, article) */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ptag { display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px; background: #e3f1f7; color: #03587a; font-size: 12px; font-weight: 600; }
.ptag-dark { background: var(--ink); color: #fff; }
.post-tags { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin: 0; }
.post-meta { font-size: 13px; color: var(--muted); }
.post-more { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; color: var(--accent); }

.blog-index { max-width: var(--wrap); margin: 0 auto; padding: 72px 24px 96px; }
.blog-title { font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1.04; letter-spacing: -0.035em; }
.blog-intro { max-width: 36rem; font-size: 17px; line-height: 1.55; color: var(--text); margin: 0; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 36px; }
.blog-filter a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 14px; font-weight: 500; color: var(--text); }
.blog-filter a[aria-current="page"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.blog-empty { margin-top: 40px; color: var(--muted); }
.post-featured { margin-top: 40px; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 24px; overflow: hidden; }
.post-featured-body { padding: 36px; display: flex; flex-direction: column; gap: 16px; justify-content: center; }
.post-featured-body .post-tags { justify-content: flex-start; }
.post-featured h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; }
.post-excerpt { margin: 0; color: var(--text); line-height: 1.55; }
.post-cover img, .post-cover-img { display: block; width: 100%; height: 100%; object-fit: cover; }
.post-list { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 20px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.post-card { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; min-width: 0; }
.post-card .post-cover img { aspect-ratio: 16 / 9; height: auto; }
.post-card-body { padding: 22px 24px 24px; display: flex; flex-direction: column; gap: 12px; flex-grow: 1; }
.post-card h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: -0.01em; font-family: var(--sans); }
.post-card .post-excerpt { font-size: 15px; }

.post-head { max-width: var(--wrap); box-sizing: border-box; margin: 0 auto; padding: 48px 24px 32px; }
.post-head .wrap { max-width: 860px; margin: 0; display: flex; flex-direction: column; gap: 20px; }
.post-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.post-crumbs a { color: var(--muted); font-weight: 500; }
.post-draft { margin: 0; padding: 10px 14px; border-radius: 10px; background: var(--accent-tint); color: #023f59; font-size: 14px; }
.post-head .post-tags { justify-content: flex-start; }
.post-head .post-title { font-size: clamp(2rem, 4vw, 3rem); line-height: 1.04; letter-spacing: -0.035em; margin: 0; }
.post-standfirst { margin: 0; font-size: 18px; line-height: 1.55; color: var(--text); }
.post-byline { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.post-author { display: flex; align-items: center; gap: 12px; }
.post-author > span:last-child { display: flex; flex-direction: column; gap: 2px; }
.post-author .avatar { width: 40px; height: 40px; background: var(--accent); color: #fff; font-size: 14px; font-weight: 600; }
.post-share { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.post-share a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; font-weight: 500; }
.post-cover-wrap { max-width: var(--wrap); box-sizing: border-box; margin: 0 auto; padding: 0 24px 48px; }
.post-cover-img { height: auto; aspect-ratio: 1200 / 630; border-radius: 24px; border: 1px solid var(--line); }
.post-layout { max-width: var(--wrap); margin: 0 auto; padding: 0 24px 24px; box-sizing: border-box; display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; align-items: start; }
.post-main { min-width: 0; }
.post-side { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.post-toc { padding: 4px 0 0; }
.post-toc ol { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; }
.post-toc a { display: block; padding: 8px 12px; border-left: 2px solid var(--line); font-size: 14px; line-height: 1.4; font-weight: 500; color: var(--text); }
.post-toc a:hover { border-left-color: var(--accent); color: var(--accent); }
.post-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px; border-radius: 18px; background: var(--ink); color: #fff; }
.post-cta p { margin: 0; font-size: 14px; line-height: 1.5; color: #a9c4cf; }
.post-cta .post-cta-title { font-size: 17px; font-weight: 600; line-height: 1.35; color: #fff; }
@media (max-width: 960px) { .post-layout { grid-template-columns: minmax(0, 1fr); gap: 24px; } .post-side { position: static; order: -1; } }

/* An article's text sits in the main column; its other blocks keep their own look. */
.post-main .rich-text, .post-main .callout { max-width: none; padding: 8px 0; }
.is-post .prose { max-width: none; margin: 0; font-size: 16.5px; line-height: 1.7; color: #2b3138; }
.is-post .prose h2 { font-size: 24px; letter-spacing: -0.02em; line-height: 1.25; margin: 1.6em 0 0.6em; scroll-margin-top: 90px; }
.is-post .prose h3 { font-size: 19px; font-family: var(--display); margin: 1.4em 0 0.5em; }
.is-post .prose p, .is-post .prose ul, .is-post .prose ol { margin: 0 0 1.1em; }
.is-post .prose ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.is-post .prose ul li { position: relative; padding-left: 30px; }
.is-post .prose ul li::before { content: ""; position: absolute; left: 0; top: 0.4em; width: 20px; height: 20px; border-radius: 999px; background: var(--accent-tint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23023f59' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L20 7'/%3E%3C/svg%3E") center / 12px no-repeat; }
.is-post .prose ul li p { margin: 0; }
.is-post .prose ol { padding-left: 1.4em; }
.is-post .prose blockquote { margin: 1.4em 0; padding: 0; border: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.25rem, 2vw, 1.6rem); line-height: 1.25; letter-spacing: -0.02em; color: var(--accent); }
.is-post .prose blockquote p { margin: 0; font-size: inherit; line-height: inherit; }
.is-post .prose strong { color: var(--ink); }
.table-wrap { overflow-x: auto; margin: 1.4em 0; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.table-wrap table { width: 100%; min-width: 560px; border-collapse: collapse; }
.table-wrap th, .table-wrap td { padding: 12px 14px; text-align: left; font-size: 14px; border-bottom: 1px solid #edf2f4; color: var(--text); vertical-align: top; }
.table-wrap thead th { font-size: 13px; font-weight: 600; color: var(--ink); background: var(--bg); border-bottom-color: var(--line); }
.table-wrap tbody th { font-weight: 600; color: var(--ink); }
.table-wrap tr:last-child th, .table-wrap tr:last-child td { border-bottom: 0; }
.callout { padding: 8px 0; }
.callout-box { display: flex; gap: 14px; padding: 20px 22px; border-radius: 16px; background: var(--accent-tint); color: #023f59; }
.callout-box svg { flex-shrink: 0; margin-top: 2px; }
.callout-box p { margin: 0; font-size: 15px; line-height: 1.6; }
.is-post .cta-banner { margin-top: 24px; }
.post-related { max-width: var(--wrap); margin: 0 auto; padding: 56px 24px 96px; border-top: 1px solid var(--line); }
.post-related-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.post-related-head h2 { font-size: clamp(1.8rem, 3vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; }
