/* FlowGet website. Plain CSS, no build step.
   Look: warm light page, black pill navigation, lime accent, large tight headings. */
@font-face {
  font-family: "Outfit";
  src: url("/fonts/outfit.woff2") format("woff2");
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: light;
  --bg: #F8F9FA;
  --bg-soft: #EBEEF1;
  --card: #ffffff;
  --card-hover: #F4F6F8;
  --line: rgba(24, 24, 27, 0.09);
  --line-strong: rgba(24, 24, 27, 0.18);
  --text: #18181B;
  --muted: #5C5C66;
  --faint: #8A8A94;
  --ink: #0F0F12;
  --ink-2: #16161A;
  --lime: #B2D959;
  --amber-brand: #FED24F;
  --green-brand: #7EC151;
  --lime-soft: #EEF4D6;
  --tint: #EEF5D3;
  --lime-ink: #4B7E31;
  /* Legacy names used by inner pages */
  --purple: #B58A2C;
  --teal: #4B7E31;
  --sky: #4B7E31;
  --green: #4F9A2E;
  --amber: #B58A2C;
  --grad: #B2D959;
  --on-brand: #15200a;
  --radius: 0;
  --shadow: 0 30px 80px rgba(17, 17, 17, 0.22);
  --max: 1176px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
main > .wrap:last-child { padding-bottom: 72px; }
html { scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.6 "Outfit", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
::selection { background: #FED24F; color: #15200a; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; }
h1, h2, h3 { line-height: 1.08; margin: 0; letter-spacing: -0.03em; word-spacing: .08em; }
p { margin: 0; }
.wrap { width: min(var(--max), 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--card); padding: 8px 14px; border-radius: 0; z-index: 100; }
.skip:focus { left: 12px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 0; }

/* Highlighter-style emphasis (used where the old gradient text was) */
.grad-text { background: linear-gradient(transparent 62%, rgba(254, 210, 79, .75) 62%); color: inherit; }

/* ---------- header: floating black pill ---------- */
.nav { position: sticky; top: 0; z-index: 60; padding: 14px 16px 0; pointer-events: none; }
.nav-in {
  pointer-events: auto; position: relative;
  display: flex; align-items: center; gap: 10px; width: fit-content; max-width: 100%; margin-inline: auto;
  background: var(--ink); color: #fff; border-radius: 16px; padding: 8px 10px 8px 8px;
  min-height: 58px;
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(255, 255, 255, 0.08);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  font-size: 16.5px;
  letter-spacing: .06em;
  text-transform: uppercase;
  text-decoration: none;
  color: #fff;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 4px 14px 4px 5px;
  border-radius: 12px;
  transition: all .2s ease;
}
.brand:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.28);
}
.brand-logo-wrap {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35), 0 0 0 1px #FFFFFF;
  flex-shrink: 0;
}
.brand-logo-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  object-fit: cover;
  display: block;
}
.nav-links { display: flex; align-items: center; gap: 4px; margin: 0 10px 0 16px; }
.nav-links a { text-decoration: none; color: #b9b9b3; font-size: 15px; padding: 10px 14px; border-radius: 9px; font-weight: 500; transition: color .15s, background .15s; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: #fff; background: rgba(255, 255, 255, .1); }

/* user profile avatar & dropdown in header */
.nav-links [hidden], .nav-user-wrap[hidden], .nav-user-menu[hidden] { display: none !important; }
.nav-user-wrap { position: relative; display: inline-flex; align-items: center; margin-left: 4px; }
.nav-user-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  background: transparent;
  border: 0;
  color: #fff;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: background .15s ease, color .15s ease;
}
.nav-user-btn:hover, .nav-user-wrap.open .nav-user-btn {
  background: rgba(255, 255, 255, 0.12);
  color: var(--lime);
}
.nav-user-icon {
  width: 28px;
  height: 28px;
  display: block;
}

.nav-user-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  width: 230px;
  background: #141417;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.5);
  padding: 8px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}
.nav-user-head {
  padding: 8px 10px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-user-head strong {
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-user-head span {
  color: #8E8E93;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.nav-user-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 4px 0;
}
.nav-user-item {
  display: flex !important;
  align-items: center;
  gap: 10px;
  padding: 9px 12px !important;
  border-radius: 8px !important;
  color: rgba(255, 255, 255, 0.88) !important;
  font-size: 13.5px !important;
  font-weight: 500 !important;
  text-decoration: none;
  background: transparent !important;
  border: 0;
  cursor: pointer;
  transition: all .12s ease;
  width: 100%;
  box-sizing: border-box;
}
.nav-user-item:hover {
  background: rgba(255, 255, 255, 0.09) !important;
  color: #fff !important;
}
.nav-user-item svg {
  flex: none;
  stroke: currentColor;
}
.nav-user-item.nav-user-logout {
  color: #FF6B6B !important;
}
.nav-user-item.nav-user-logout:hover {
  background: rgba(255, 107, 107, 0.12) !important;
  color: #FF8787 !important;
}
.nav .nav-cta { margin-left: 6px; border-radius: 10px; padding: 12px 20px; font-size: 14.5px; }
.menu-btn { display: none; margin-left: auto; background: rgba(255,255,255,.1); border: 0; color: #fff; border-radius: 8px; padding: 9px 16px; font: 600 14px/1 "Outfit", sans-serif; cursor: pointer; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; border-radius: 0; font: 600 16px/1 "Outfit", sans-serif;
  text-decoration: none; border: 1px solid transparent; cursor: pointer; transition: transform .12s, box-shadow .2s, background .2s, border-color .2s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #000; box-shadow: 0 10px 26px rgba(17, 17, 17, .25); transform: translateY(-1px); }
.btn-ghost { background: transparent; border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: #fff; border-color: var(--text); }
.btn-lime { background: var(--grad); color: var(--on-brand); }
.btn-lime:hover { box-shadow: 0 8px 24px rgba(178, 217, 89, .5); transform: translateY(-1px); }
.btn-sm { padding: 10px 18px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.nav .btn-primary { background: var(--grad); color: var(--on-brand); }
.nav .btn-primary:hover { filter: brightness(1.07); box-shadow: none; }

/* ---------- sections ---------- */
section { padding: 88px 0; }
.sec-head { max-width: 760px; margin-bottom: 48px; }
.sec-head.center { text-align: center; margin-inline: auto; }
.eyebrow {
  display: inline-block; background: var(--bg-soft); color: #55554f; border-radius: 0; padding: 8px 14px;
  font-weight: 500; font-size: 12px; line-height: 1; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 18px;
}
.sec-head h2 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 700; }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 18.5px; }
.alt { background: transparent; }

.grid { display: grid; gap: 14px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: var(--bg-soft); border: 0; border-radius: 0; padding: 28px;
  transition: transform .2s, background .2s, box-shadow .2s;
}
.card:hover { transform: translateY(-2px); }
.ico {
  width: 40px; height: 40px; border-radius: 0; display: grid; place-items: center; margin-bottom: 18px;
  background: var(--grad); color: var(--on-brand);
}
.ico.t, .ico.s, .ico.a, .ico.g { background: #fff; color: #111; }
.ico svg { width: 21px; height: 21px; }
.card h3 { font-size: 21px; font-weight: 600; margin-bottom: 10px; letter-spacing: -.02em; }
.card p { color: var(--muted); font-size: 16px; }

/* steps */
.steps { counter-reset: step; }
.step { position: relative; padding-top: 6px; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 0; margin-bottom: 16px;
  background: var(--grad); color: var(--on-brand); font-weight: 700;
}

/* tour (screenshots) */
.shot { margin: 56px auto 0; max-width: 1040px; border-radius: 0; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.shot img { width: 100%; }
.tour { display: grid; gap: 64px; }
.tour-row { display: grid; grid-template-columns: 1fr 1.25fr; gap: 48px; align-items: center; }
.tour-row.flip { grid-template-columns: 1.25fr 1fr; }
.tour-row.flip .tour-text { order: 2; }
.tour-text h3 { font-size: 30px; margin-bottom: 14px; }
.tour-text p { color: var(--muted); }
.tour-text ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.tour-text li { display: flex; gap: 10px; color: var(--muted); font-size: 16px; }
.tour-text li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--grad); }

.fine { color: var(--faint); font-size: 14px; margin-top: 18px; }

/* pricing (inner pages) */
.plans { max-width: 820px; margin-inline: auto; }
.plan { display: flex; flex-direction: column; background: #fff; }
.plan.pro { box-shadow: inset 0 0 0 2px var(--ink); }
.price { font-size: 48px; font-weight: 800; margin: 8px 0 2px; letter-spacing: -.04em; }
.price small { font-size: 16px; color: var(--muted); font-weight: 400; letter-spacing: 0; }
.plan ul { list-style: none; padding: 0; margin: 18px 0 26px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; color: var(--muted); font-size: 16px; }
.plan li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 6px; border-radius: 50%; background: var(--grad); }

/* faq */
.faq { max-width: 800px; margin-inline: auto; display: grid; gap: 0; }
.faq details { background: transparent; border: 0; border-bottom: 1px solid var(--line-strong); border-radius: 0; padding: 0; }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font-weight: 600; font-size: 18px; letter-spacing: -.01em; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--muted); font-size: 26px; font-weight: 300; line-height: 1; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding: 0 0 24px; max-width: 680px; font-size: 16.5px; }
.faq details p a { color: var(--text); text-underline-offset: 3px; }

/* cta band */
.band {
  position: relative; text-align: center; padding: 84px 24px; border-radius: 0; overflow: hidden;
  background: var(--tint);
}
.band h2 { font-size: clamp(32px, 4.6vw, 52px); max-width: 14ch; margin-inline: auto; }
.band p { color: #5a5f45; margin: 16px auto 30px; max-width: 520px; font-size: 18.5px; }
.band .eyebrow { background: rgba(24, 24, 27, .07); color: #5a5f45; }

/* inner pages */
.page-head { padding: 64px 0 24px; }
.page-head h1 { font-size: clamp(36px, 5.4vw, 60px); font-weight: 800; letter-spacing: -.04em; }
.page-head p { color: var(--muted); font-size: 19px; margin-top: 14px; max-width: 680px; }
.prose { max-width: 760px; }
.prose h2 { font-size: 28px; margin: 40px 0 12px; }
.prose p, .prose li { color: var(--muted); }
.prose p + p { margin-top: 14px; }
.prose ul { padding-left: 22px; display: grid; gap: 8px; }
.prose a { color: var(--lime-ink); }
.prose code, .code {
  font: 500 14px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; background: #fff;
  border: 1px solid var(--line); padding: 2px 7px; border-radius: 0; word-break: break-all;
}
.dl-box { display: grid; grid-template-columns: 1.2fr 1fr; gap: 14px; align-items: start; margin-top: 18px; }
.kv { display: grid; gap: 12px; }
.kv div { display: flex; justify-content: space-between; gap: 18px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 15px; }
.kv span:first-child { color: var(--faint); }
.note { border-radius: 0; padding: 16px 18px; background: #FFF6D6; color: #5E4719; font-size: 15px; }
.note ul li { color: #5E4719; }

/* footer */
footer { border-top: 1px solid var(--line-strong); padding: 64px 0 0; color: var(--muted); font-size: 15px; margin-top: 24px; }
.foot-grid { display: grid; grid-template-columns: 1.6fr repeat(3, 1fr); gap: 36px; align-items: start; }
.foot-brand-card {
  background: #111111;
  color: #FFFFFF;
  padding: 22px 24px;
  border-radius: 16px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.08);
  max-width: 350px;
}
.foot-brand-card .brand {
  color: #FFFFFF;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 2px;
}
.foot-brand-card .brand-logo-wrap {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
  flex-shrink: 0;
}
.foot-brand-card .brand-logo-wrap img {
  width: 100%;
  height: 100%;
  border-radius: 10px;
  object-fit: cover;
  display: block;
}
.foot-brand-card .brand span:last-child {
  font-size: 18px;
  letter-spacing: .08em;
  font-weight: 800;
  color: #FFFFFF;
}
.foot-brand-card .foot-about {
  color: #A1A1AA;
  margin-top: 12px;
  line-height: 1.55;
  font-size: 14px;
  max-width: 100%;
}
.foot-grid h4 { margin: 4px 0 16px; font-size: 12px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.foot-grid a { text-decoration: none; }
.foot-grid a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-bar { margin-top: 56px; border-top: 1px solid var(--line-strong); background: #fff; }
.foot-bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 32px; padding-block: 20px; font-size: 14px; color: var(--muted); }
.foot-legal { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 28px; }
.foot-legal a { color: var(--muted); text-decoration: none; transition: color .15s; }
.foot-legal a:hover { color: var(--text); text-decoration: underline; text-underline-offset: 3px; }
.foot-badge { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.foot-badge svg { width: 18px; height: 18px; padding: 2px; background: var(--lime); color: #15200a; fill: none; stroke: currentColor; stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; box-sizing: content-box; width: 14px; height: 14px; }
.foot-ver { color: var(--faint); }
@media (max-width: 700px) { .foot-bar-in { flex-direction: column; align-items: flex-start; } }

/* detailed features page */
.feat-layout { display: grid; grid-template-columns: 220px 1fr; gap: 48px; align-items: start; padding-bottom: 40px; }
.toc { position: sticky; top: 96px; display: grid; gap: 2px; padding: 8px 0; }
.toc a { text-decoration: none; color: var(--muted); font-size: 15px; padding: 8px 14px; border-left: 2px solid var(--line); transition: color .15s, border-color .15s; }
.toc a:hover { color: var(--text); border-left-color: var(--ink); }
.fsec { padding: 0 0 56px; }
.fsec h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 700; }
.fsec-intro { color: var(--muted); margin: 8px 0 22px; }
.fitems { display: grid; gap: 12px; }
.fitem { background: #fff; border-radius: 0; padding: 22px 24px; }
.fitem h3 { font-size: 18px; font-weight: 600; margin-bottom: 6px; letter-spacing: -.01em; }
.fitem p { color: var(--muted); font-size: 16px; }
.fitem a { color: var(--lime-ink); }
.fitem code { font: 500 13px/1.4 ui-monospace, Consolas, monospace; background: var(--bg-soft); padding: 1px 6px; border-radius: 0; }
@media (max-width: 900px) {
  .feat-layout { grid-template-columns: 1fr; gap: 16px; }
  .toc { position: static; display: flex; flex-wrap: wrap; gap: 8px; }
  .toc a { border: 1px solid var(--line-strong); border-radius: 0; padding: 6px 14px; font-size: 14px; }
}

/* ---------- small screens ---------- */
@media (max-width: 900px) {
  .g3 { grid-template-columns: repeat(2, 1fr); }
  .tour-row, .tour-row.flip, .dl-box { grid-template-columns: 1fr; gap: 24px; }
  .tour-row.flip .tour-text { order: 0; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .nav-in { width: 100%; padding-left: 16px; }
  .nav-links {
    display: none; position: absolute; top: calc(100% + 8px); left: 0; right: 0; flex-direction: column; gap: 2px;
    background: var(--ink); border-radius: 0; margin: 0; padding: 10px; box-shadow: 0 18px 40px rgba(17,17,17,.28);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 13px 16px; font-size: 16.5px; }
  .menu-btn { display: block; }
  .nav-cta { display: none; }
  .g3, .g2 { grid-template-columns: 1fr; }
  section { padding: 60px 0; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}

/* ---------- blog ---------- */
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; font-size: 14px; color: var(--faint); padding: 28px 0 0; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.crumbs span[aria-hidden] { opacity: .6; }

/* blog index + cards */
body.blog { background: #fff; }
.blog-hero { position: relative; padding: 70px 0 54px; text-align: center; overflow: hidden; }
.blog-hero::before {
  content: ""; position: absolute; inset: -40px -10% 0; z-index: -1; pointer-events: none;
  background: #FAFBF7;
}
.blog-hero h1 { font-size: clamp(38px, 5.6vw, 62px); font-weight: 700; letter-spacing: -.04em; }
.blog-hero p { color: var(--muted); font-size: 17.5px; max-width: 600px; margin: 16px auto 0; }
.blog-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 26px; }
.blog-tags a { padding: 7px 14px; border: 1px solid #E4E7EA; border-radius: 0; background: #fff; font-size: 13.5px; font-weight: 500; text-decoration: none; color: #3A3A42; transition: border-color .15s, background .15s; }
.blog-tags a:hover { border-color: var(--text); background: #fff; }
.blog-latest { padding: 30px 0 90px; }
.blog-latest h2 { font-size: 28px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 26px; }

.bgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.bcard { display: flex; flex-direction: column; background: #F6F7F8; border: 1px solid #ECEEF0; border-radius: 0; padding: 12px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.bcard:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(24, 24, 27, .09); border-color: #E2E5E8; }
body:not(.blog) .bcard { background: #fff; }
.bcard-img { display: block; aspect-ratio: 3 / 2; border-radius: 0; overflow: hidden; background: var(--grad); }
.bcard-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.bcard:hover .bcard-img img { transform: scale(1.03); }
.bcard-img span { display: grid; place-items: center; height: 100%; padding: 18px; text-align: center; font-weight: 700; font-size: 20px; color: var(--on-brand); }
.bcard-body { display: flex; flex-direction: column; flex: 1; padding: 16px 6px 6px; }
.bcard-meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #55555e; }
.bcard-meta time { color: #2A2A30; font-weight: 500; }
.bcard-meta i { font-style: normal; color: #A1A1AA; font-size: 10px; }
.bcard h3 { font-size: 19px; font-weight: 650; letter-spacing: -.02em; line-height: 1.25; margin: 10px 0 8px; }
.bcard h3 a { text-decoration: none; }
.bcard h3 a:hover { text-decoration: underline; text-underline-offset: 3px; }
.bcard p { color: var(--muted); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.bcard-author { display: flex; align-items: center; gap: 10px; margin-top: auto; padding-top: 16px; font-size: 13.5px; color: var(--muted); }
.bcard-author img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.bcard-author b { color: var(--text); font-weight: 600; }

.post-meta { color: var(--faint); font-size: 14px; display: flex; flex-wrap: wrap; gap: 6px 14px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.tag { font-size: 13px; padding: 4px 12px; border-radius: 0; background: var(--lime-soft); color: var(--lime-ink); text-decoration: none; }
a.tag:hover { background: var(--grad); color: var(--on-brand); }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; gap: 12px; }
.pager .btn[aria-disabled="true"] { opacity: .4; pointer-events: none; }

.article { max-width: 760px; margin-inline: auto; padding: 36px 0 20px; }
.article h1 { font-size: clamp(34px, 5vw, 54px); font-weight: 800; letter-spacing: -.04em; }
.article .lede { font-size: 20px; color: var(--muted); margin-top: 16px; }
.article .post-meta { margin-top: 18px; }
.article-body { margin-top: 36px; font-size: 18px; line-height: 1.75; }
.article-body > * + * { margin-top: 1.1em; }
.article-body h2 { font-size: 30px; font-weight: 700; margin-top: 2em; scroll-margin-top: 100px; }
.article-body h3 { font-size: 22px; font-weight: 600; margin-top: 1.6em; scroll-margin-top: 100px; }
.article-body p, .article-body li { color: color-mix(in srgb, var(--text) 84%, var(--muted)); }
.article-body a { color: var(--lime-ink); text-underline-offset: 3px; }
.article-body ul, .article-body ol { padding-left: 24px; display: grid; gap: 8px; }
.article-body blockquote { margin-inline: 0; padding: 14px 20px; border-left: 4px solid var(--lime); background: #fff; border-radius: 0; color: var(--muted); }
.article-body code { font: 500 15px/1.5 ui-monospace, "Cascadia Mono", Consolas, monospace; background: #fff; border: 1px solid var(--line); padding: 1px 7px; border-radius: 0; }
.article-body pre { background: var(--ink); color: #e9e9e4; border-radius: 0; padding: 18px 20px; overflow-x: auto; }
.article-body pre code { background: none; border: 0; padding: 0; font-size: 14.5px; color: inherit; }
.article-body img { border-radius: 0; border: 1px solid var(--line); }
.article-body table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.article-body th, .article-body td { border-bottom: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.article-body th { color: var(--text); }
.toc-box { background: #fff; border-radius: 0; padding: 20px 24px; margin-top: 30px; }
.toc-box strong { display: block; margin-bottom: 8px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--faint); }
.toc-box ol { margin: 0; padding-left: 20px; display: grid; gap: 5px; font-size: 16px; }
.toc-box a { color: var(--muted); text-decoration: none; }
.toc-box a:hover { color: var(--text); }
.cta-box { margin-top: 48px; padding: 32px; border-radius: 0; background: var(--tint); text-align: center; }
.cta-box h2 { font-size: 28px; }
.cta-box p { color: #5a5f45; margin: 8px auto 20px; max-width: 480px; }
.related { margin-top: 64px; }
.related h2 { font-size: 28px; margin-bottom: 18px; }

/* ---- blog post (Paynexus-style): meta, big title, hero image, author/share column + content ---- */
.post-wrap { max-width: 1000px; padding-top: 128px; }
.post-top { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--text); }
.post-top i { font-style: normal; font-size: 11px; opacity: .8; }
.post-head h1 { font-size: clamp(34px, 5.2vw, 52px); font-weight: 600; letter-spacing: -.035em; line-height: 1.08; margin-top: 12px; word-spacing: .05em; }
.post-hero { margin: 30px 0 0; border-radius: 0; overflow: hidden; background: var(--bg-soft); aspect-ratio: 2 / 1; }
.post-hero img { width: 100%; height: 100%; object-fit: cover; display: block; }
.post-cols { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 56px; margin-top: 44px; align-items: start; }
.post-side { position: sticky; top: 104px; display: grid; gap: 26px; }
.post-author { display: flex; align-items: center; gap: 12px; }
.post-author img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; background: var(--bg-soft); }
.post-author b { display: block; font-size: 16px; font-weight: 600; line-height: 1.2; }
.post-author span { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.post-share b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 12px; }
.share-row { display: flex; align-items: center; gap: 14px; position: relative; }
.share-row a, .share-row button { display: grid; place-items: center; width: 22px; height: 22px; padding: 0; border: 0; background: none; color: var(--text); cursor: pointer; border-radius: 0; }
.share-row a:hover, .share-row button:hover { color: var(--lime-ink); }
.share-row svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.share-row svg .f { fill: currentColor; stroke: none; }
.share-row .copied { font-size: 12px; color: var(--lime-ink); font-weight: 600; margin-left: 2px; }
.post-tags .tags { gap: 6px; }
.post-toc b { display: block; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.post-toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 2px; }
.post-toc a { display: block; text-decoration: none; color: var(--muted); font-size: 14px; line-height: 1.35; padding: 6px 0 6px 12px; border-left: 2px solid var(--line); }
.post-toc a:hover { color: var(--text); border-left-color: var(--ink); }
.post-main { min-width: 0; }
.post-lede { font-size: 17px; line-height: 1.65; color: var(--muted); margin: 0 0 4px; }
.post-main .article-body { margin-top: 18px; font-size: 16px; line-height: 1.7; }
.post-main .article-body h2 { font-size: 26px; font-weight: 600; letter-spacing: -.03em; margin-top: 1.5em; }
.post-main .article-body > h2:first-child { margin-top: 0; }
.post-main .article-body h3 { font-size: 20px; font-weight: 600; }
.post-main .cta-box { margin-top: 44px; }
@media (max-width: 860px) {
  .post-wrap { padding-top: 112px; }
  .post-cols { grid-template-columns: 1fr; gap: 28px; margin-top: 30px; }
  .post-side { position: static; gap: 20px; }
  .post-toc { display: none; }
  .post-hero { border-radius: 0; aspect-ratio: 3 / 2; }
}

@media (max-width: 900px) {
  .bgrid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .bgrid { grid-template-columns: 1fr; }
  .article-body { font-size: 17px; }
}
