/* ==========================================================================
   Fugen ERP — marketing site
   An engineering-document aesthetic: ink navy, paper white, one green accent,
   hairline rules, monospace labels, editorial type scale. No gradients,
   no glow, no stock-photo softness.
   ========================================================================== */

:root {
  --ink: #0b1a20;
  --ink-2: #123039;
  --ink-3: #2a4a54;
  --paper: #f7f6f2;
  --paper-2: #efeee8;
  --white: #ffffff;
  --line: #d9d7cf;
  --line-strong: #b9b7ad;
  --muted: #5f6b70;
  --accent: #1e6f5c;
  --accent-dark: #145445;
  --accent-soft: #e4efe9;
  --amber: #b06a15;
  --red: #a3342a;
  --radius: 4px;
  --maxw: 1240px;
  --gutter: clamp(20px, 4vw, 56px);
  --mono: ui-monospace, "SF Mono", "SFMono-Regular", "Cascadia Mono", "Roboto Mono", Menlo, Consolas, monospace;
  --sans: "Inter var", Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 17px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 { margin: 0; font-weight: 600; letter-spacing: -0.021em; line-height: 1.12; }

h1 { font-size: clamp(2.4rem, 5.4vw, 4.1rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.65rem); line-height: 1.16; }
h3 { font-size: clamp(1.2rem, 1.9vw, 1.5rem); line-height: 1.25; }
h4 { font-size: 1.06rem; }

p { margin: 0 0 1.1em; }

::selection { background: var(--accent); color: #fff; }

/* ---------------------------------------------------------------- structure */

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 var(--gutter); }
.wrap-narrow { max-width: 780px; }
.wrap-mid { max-width: 980px; }

section { position: relative; }
.section { padding: clamp(56px, 8vw, 116px) 0; }
.section-tight { padding: clamp(40px, 5vw, 72px) 0; }
.section-dark { background: var(--ink); color: #e8eceb; }
.section-dark h1, .section-dark h2, .section-dark h3 { color: #fff; }
.section-alt { background: var(--paper-2); }
.section-white { background: var(--white); }
.rule { height: 1px; background: var(--line); border: 0; margin: 0; }
.section-dark .rule { background: #1f3b44; }

/* eyebrow / label */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; opacity: .6; }
.section-dark .eyebrow { color: #7fd0b6; }

.lede { font-size: clamp(1.05rem, 1.5vw, 1.24rem); color: var(--muted); max-width: 62ch; }
.section-dark .lede { color: #a9bcc0; }

.grid { display: grid; gap: clamp(20px, 3vw, 34px); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.split-top { align-items: start; }

@media (max-width: 1000px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .split { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .g2, .g3, .g4 { grid-template-columns: 1fr; }
}

/* ------------------------------------------------------------------ buttons */

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 13px 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  font-size: 15px;
  font-weight: 550;
  cursor: pointer;
  transition: background .16s ease, color .16s ease, border-color .16s ease, transform .16s ease;
  white-space: nowrap;
}
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-accent { background: var(--accent); border-color: var(--accent); }
.btn-accent:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { background: var(--ink); color: #fff; border-color: var(--ink); }
/* any dark surface needs the outline button in light ink, or it disappears */
.section-dark .btn-ghost, .hero .btn-ghost, .cta-band .btn-ghost { color: #fff; border-color: #33555e; }
.section-dark .btn-ghost:hover, .hero .btn-ghost:hover, .cta-band .btn-ghost:hover { background: #fff; color: var(--ink); border-color: #fff; }
.hero .link-arrow { color: #7fd0b6; }
.btn-sm { padding: 9px 15px; font-size: 13.5px; }
.btn-lg { padding: 16px 28px; font-size: 16px; }
.btn-block { width: 100%; justify-content: center; }

.link-arrow {
  font-weight: 550;
  font-size: 15px;
  color: var(--accent-dark);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border-bottom: 1px solid transparent;
  transition: gap .16s ease, border-color .16s ease;
}
.link-arrow::after { content: "→"; font-family: var(--mono); }
.link-arrow:hover { gap: 12px; border-color: currentColor; }
.section-dark .link-arrow { color: #7fd0b6; }

/* -------------------------------------------------------------------- header */

.topbar {
  background: var(--ink);
  color: #cfe0dc;
  font-size: 13px;
  border-bottom: 1px solid #1c3941;
}
.topbar .wrap { display: flex; align-items: center; justify-content: center; gap: 12px; min-height: 38px; text-align: center; }
.topbar a { color: #8ad9bf; border-bottom: 1px solid transparent; }
.topbar a:hover { border-color: currentColor; }
.topbar .dot { width: 5px; height: 5px; border-radius: 50%; background: #8ad9bf; flex: none; }

.masthead {
  position: sticky;
  top: 0;
  z-index: 60;
  background: rgba(247, 246, 242, .92);
  backdrop-filter: saturate(140%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.masthead .wrap { display: flex; align-items: center; gap: 28px; min-height: 68px; }

.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 650; letter-spacing: -0.02em; font-size: 17.5px; }
.brand-logo { height: 34px; width: auto; }
/* the wordmark is dark ink, so on the dark footer it sits on a white plate */
.brand-plate {
  background: #fff; border-radius: 7px; padding: 12px 16px;
  display: inline-flex; align-self: flex-start;
}
.brand-plate img { height: 34px; width: auto; }
@media (max-width: 480px) { .brand-logo { height: 28px; } }
.brand-mark {
  width: 30px; height: 30px; border-radius: 5px; flex: none;
  background: var(--ink); color: #fff;
  display: grid; place-items: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700; letter-spacing: -0.03em;
}
.brand-sub { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: block; margin-top: 2px; font-weight: 500; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav > * { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 9px 12px; border-radius: var(--radius);
  font-size: 15px; font-weight: 500; color: var(--ink-3);
  transition: color .14s ease, background .14s ease;
}
.nav-link:hover, .nav-link[aria-expanded="true"] { color: var(--ink); background: rgba(11,26,32,.05); }
.nav-link.is-active { color: var(--accent-dark); }
.nav-link .chev { font-size: 10px; opacity: .55; }
.nav-actions { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.nav-phone {
  font-family: var(--mono); font-size: 13px; letter-spacing: .02em; color: var(--ink-3);
  padding: 6px 2px; border-bottom: 1px solid transparent; white-space: nowrap;
}
.nav-phone:hover { color: var(--accent-dark); border-color: currentColor; }
@media (max-width: 1300px) { .nav-phone { display: none; } }
@media (max-width: 1080px) { .nav-phone { display: block; text-align: center; padding: 10px 0; } }

.mega {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-6px);
  width: min(880px, calc(100vw - 40px));
  background: var(--white); border: 1px solid var(--line); border-radius: 6px;
  padding: 22px; opacity: 0; visibility: hidden; transition: opacity .16s ease, transform .16s ease;
  box-shadow: 0 18px 40px -28px rgba(11,26,32,.35);
}
.mega.right { left: auto; right: 0; transform: translateY(-6px); }
.has-mega:hover .mega, .has-mega:focus-within .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.has-mega:hover .mega.right, .has-mega:focus-within .mega.right { transform: translateY(0); }
.mega-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 26px; }
.mega-item { display: block; padding: 10px 12px; border-radius: var(--radius); transition: background .14s ease; }
.mega-item:hover { background: var(--paper-2); }
.mega-item strong { display: block; font-size: 14.5px; font-weight: 600; }
.mega-item span { display: block; font-size: 12.8px; color: var(--muted); line-height: 1.45; margin-top: 2px; }
.mega-foot { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.mega-note { font-size: 12.8px; color: var(--muted); max-width: 46ch; }

.burger { display: none; margin-left: auto; width: 42px; height: 38px; border: 1px solid var(--line-strong); border-radius: var(--radius); background: transparent; cursor: pointer; }
.burger span, .burger span::before, .burger span::after {
  display: block; position: relative; width: 18px; height: 1.5px; background: var(--ink); margin: 0 auto; content: "";
}
.burger span::before { position: absolute; top: -5px; }
.burger span::after { position: absolute; top: 5px; }

@media (max-width: 1080px) {
  .nav { display: none; }
  .burger { display: block; }
  .masthead.open .nav {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--line); padding: 10px var(--gutter) 20px;
    max-height: calc(100vh - 68px); overflow-y: auto;
  }
  .masthead.open .mega { position: static; width: auto; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 0 0 8px 12px; }
  .masthead.open .mega-grid { grid-template-columns: 1fr; }
  .masthead.open .mega-foot { display: none; }
  .nav-actions { margin: 12px 0 0; }
  .nav-actions .btn { width: 100%; justify-content: center; }
}

/* --------------------------------------------------------------------- hero */

.hero { background: var(--ink); color: #dfe7e6; overflow: hidden; position: relative; }
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(to right, rgba(255,255,255,.028) 1px, transparent 1px);
  background-size: 88px 100%;
}
.hero-inner { position: relative; z-index: 1; padding: clamp(52px, 8vw, 104px) 0 0; }
.hero h1 { color: #fff; max-width: 21ch; }
.hero .lede { color: #a9bcc0; margin-top: 22px; font-size: clamp(1.06rem, 1.5vw, 1.26rem); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 26px; font-size: 13.4px; color: #8fa6ab; font-family: var(--mono); }
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta span::before { content: ""; width: 4px; height: 4px; background: #7fd0b6; border-radius: 50%; }

.hero-shot { margin-top: clamp(38px, 5vw, 62px); }
.hero-strip { border-top: 1px solid #1f3b44; margin-top: clamp(34px, 5vw, 58px); }
.hero-strip .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.hero-strip .cell { padding: 22px 0 26px; border-right: 1px solid #1f3b44; }
.hero-strip .cell:last-child { border-right: 0; }
.hero-strip .cell:not(:first-child) { padding-left: 26px; }
.hero-strip .num { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-weight: 600; color: #fff; letter-spacing: -0.03em; }
.hero-strip .cap { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: #7f989e; margin-top: 4px; }
@media (max-width: 760px) {
  .hero-strip .wrap { grid-template-columns: repeat(2, 1fr); }
  .hero-strip .cell { border-right: 0; padding-left: 0 !important; border-bottom: 1px solid #1f3b44; }
}

/* ------------------------------------------------------------ screen frames */

.frame {
  border: 1px solid var(--line-strong);
  border-radius: 7px;
  background: var(--white);
  overflow: hidden;
}
.frame-dark { border-color: #2b4c55; background: #0e2229; }
.frame-bar {
  display: flex; align-items: center; gap: 7px;
  padding: 9px 12px; border-bottom: 1px solid var(--line);
  background: var(--paper-2);
}
.frame-dark .frame-bar { background: #14282f; border-color: #24424b; }
.frame-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-strong); display: block; }
.frame-dark .frame-bar i { background: #2f5560; }
.frame-bar .url {
  margin-left: 8px; font-family: var(--mono); font-size: 11.5px; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.frame-dark .frame-bar .url { color: #7f989e; }
.frame img { display: block; width: 100%; }
.frame-caption { font-size: 13px; color: var(--muted); margin-top: 10px; font-family: var(--mono); }
.section-dark .frame-caption { color: #8fa6ab; }

/* -------------------------------------------------------------------- cards */

.card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: clamp(20px, 2.4vw, 28px);
  transition: border-color .16s ease, transform .16s ease;
  display: flex; flex-direction: column; gap: 10px;
  height: 100%;
}
a.card:hover { border-color: var(--ink-3); transform: translateY(-2px); }
.card h3 { font-size: 1.14rem; }
.card p { color: var(--muted); font-size: 15px; margin: 0; }
.card-index { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; color: var(--accent); text-transform: uppercase; }
.card-foot { margin-top: auto; padding-top: 14px; }
.card-dark { background: #102630; border-color: #24424b; }
.card-dark p { color: #a9bcc0; }

.icon-tile {
  width: 38px; height: 38px; border-radius: 6px; flex: none;
  border: 1px solid var(--line); background: var(--paper);
  display: grid; place-items: center; color: var(--accent-dark);
}
.icon-tile svg { width: 19px; height: 19px; }

.tick-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.tick-list li { display: flex; gap: 11px; font-size: 15.4px; line-height: 1.55; }
.tick-list li::before {
  content: ""; flex: none; margin-top: 7px; width: 8px; height: 8px; border-radius: 2px;
  background: var(--accent-soft); border: 1px solid var(--accent);
}
.section-dark .tick-list li::before { background: #1c4c42; border-color: #55b399; }

.chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 11px; border: 1px solid var(--line); border-radius: 100px;
  font-size: 12.6px; font-family: var(--mono); letter-spacing: .04em; color: var(--ink-3);
  background: var(--white);
}
.chip-row { display: flex; flex-wrap: wrap; gap: 8px; }
.section-dark .chip { background: #102630; border-color: #24424b; color: #a9bcc0; }

/* --------------------------------------------------------------- step lists */

.steps { counter-reset: step; display: grid; gap: 0; }
.step {
  display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 20px;
  padding: 26px 0; border-top: 1px solid var(--line);
}
.step:last-child { border-bottom: 1px solid var(--line); }
.step-num { counter-increment: step; font-family: var(--mono); font-size: 13px; color: var(--accent); letter-spacing: .1em; }
.step-num::before { content: "0" counter(step); }
.step h3 { margin-bottom: 6px; }
.step p { color: var(--muted); margin: 0; font-size: 15.4px; }
@media (max-width: 620px) { .step { grid-template-columns: 1fr; gap: 6px; } }

/* ------------------------------------------------------------------- tables */

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: 6px; background: var(--white); }
table.data { width: 100%; border-collapse: collapse; font-size: 14.8px; min-width: 620px; }
table.data th, table.data td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
table.data thead th {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase;
  color: var(--muted); font-weight: 500; background: var(--paper-2);
}
table.data tbody tr:last-child td { border-bottom: 0; }
table.data td.yes { color: var(--accent-dark); font-weight: 600; }
table.data td.no { color: var(--line-strong); }

/* ------------------------------------------------------------------ pricing */

.price-toggle {
  display: inline-flex; align-items: center; gap: 4px; padding: 4px;
  border: 1px solid var(--line); border-radius: 100px; background: var(--white);
}
.price-toggle button {
  border: 0; background: transparent; cursor: pointer; padding: 8px 18px; border-radius: 100px;
  font-size: 14px; font-weight: 550; color: var(--muted); font-family: inherit;
}
.price-toggle button.on { background: var(--ink); color: #fff; }
.price-toggle .save { font-family: var(--mono); font-size: 11px; letter-spacing: .08em; color: var(--accent-dark); padding-right: 12px; }

.plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
@media (max-width: 1100px) { .plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .plans { grid-template-columns: 1fr; } }

.plan {
  background: var(--white); border: 1px solid var(--line); border-radius: 7px;
  padding: 26px 24px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--ink); box-shadow: 0 20px 40px -34px rgba(11,26,32,.5); }
.plan-flag {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase;
  color: #fff; background: var(--accent); border-radius: 100px; padding: 4px 10px; align-self: flex-start; margin-bottom: 12px;
}
.plan h3 { font-size: 1.28rem; }
.plan .aud { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-top: 5px; }
.plan .amount { display: flex; align-items: baseline; gap: 7px; margin: 20px 0 4px; }
.plan .amount b { font-size: 2.5rem; font-weight: 600; letter-spacing: -0.04em; }
.plan .amount span { font-size: 13.5px; color: var(--muted); }
.plan .billed { font-size: 13px; color: var(--muted); min-height: 20px; }
.plan .summary { font-size: 14.6px; color: var(--muted); margin: 14px 0 18px; }
.plan .tick-list { margin: 4px 0 22px; }
.plan .tick-list li { font-size: 14.4px; }
.plan .cta { margin-top: auto; }

/* ---------------------------------------------------------------- accordion */

.acc { border-top: 1px solid var(--line); }
.acc details { border-bottom: 1px solid var(--line); }
.acc summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-size: 17px; font-weight: 550; line-height: 1.4;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::after {
  content: "+"; position: absolute; right: 6px; top: 17px;
  font-family: var(--mono); font-size: 22px; font-weight: 400; color: var(--accent); line-height: 1;
}
.acc details[open] summary::after { content: "–"; }
.acc .answer { padding: 0 44px 22px 0; color: var(--muted); font-size: 15.6px; }
.acc .answer p:last-child { margin-bottom: 0; }

/* --------------------------------------------------------------------- blog */

.post-card { display: flex; flex-direction: column; gap: 14px; height: 100%; }
.post-card .thumb { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--paper-2); aspect-ratio: 16 / 9; }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.post-card:hover .thumb img { transform: scale(1.03); }
.post-meta { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); display: flex; gap: 10px; flex-wrap: wrap; }
.post-meta .cat { color: var(--accent-dark); }
.post-card h3 { font-size: 1.18rem; line-height: 1.28; }
.post-card p { font-size: 14.8px; color: var(--muted); margin: 0; }

.post-hero { border-bottom: 1px solid var(--line); }
.prose { font-size: 17.6px; line-height: 1.72; }
.prose > * + * { margin-top: 1.15em; }
.prose h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); margin-top: 2em; padding-top: .2em; }
.prose h3 { font-size: clamp(1.14rem, 1.7vw, 1.32rem); margin-top: 1.7em; }
.prose ul, .prose ol { padding-left: 1.25em; }
.prose li + li { margin-top: .5em; }
.prose a { color: var(--accent-dark); border-bottom: 1px solid rgba(30,111,92,.35); }
.prose a:hover { border-color: var(--accent-dark); }
.prose blockquote {
  margin: 1.6em 0; padding: 4px 0 4px 22px; border-left: 2px solid var(--accent);
  font-family: var(--serif); font-size: 1.15em; color: var(--ink-2);
}
.prose code {
  font-family: var(--mono); font-size: .88em; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px;
}
.prose table { width: 100%; border-collapse: collapse; font-size: 15.4px; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 13px; text-align: left; }
.prose th { background: var(--paper-2); font-family: var(--mono); font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.prose figure { margin: 1.8em 0; }
.prose figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; font-family: var(--mono); }
.prose hr { border: 0; border-top: 1px solid var(--line); margin: 2.4em 0; }

.toc { border: 1px solid var(--line); border-radius: 6px; background: var(--white); padding: 20px 22px; }
.toc h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; font-weight: 500; }
.toc ol { margin: 0; padding-left: 1.1em; font-size: 14.6px; }
.toc li + li { margin-top: 7px; }
.toc a { color: var(--ink-3); }
.toc a:hover { color: var(--accent-dark); }

.takeaways { border: 1px solid var(--accent); border-left-width: 3px; border-radius: 6px; background: var(--accent-soft); padding: 22px 24px; }
.takeaways h4 { font-family: var(--mono); font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-dark); margin-bottom: 12px; }

.sidebar-sticky { position: sticky; top: 92px; display: grid; gap: 18px; }
.post-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: clamp(30px, 5vw, 64px); align-items: start; }
@media (max-width: 1000px) { .post-layout { grid-template-columns: 1fr; } .sidebar-sticky { position: static; } }

/* ------------------------------------------------------------------ generic */

.crumbs { font-family: var(--mono); font-size: 11.8px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: flex; gap: 9px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--accent-dark); }
.crumbs span { opacity: .5; }

.page-head { padding: clamp(38px, 5vw, 72px) 0 clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); background: var(--white); }
.page-head h1 { max-width: 24ch; }
.page-head .lede { margin-top: 18px; }

.cta-band { background: var(--ink); color: #dfe7e6; }
.cta-band h2 { color: #fff; max-width: 26ch; }
.cta-band .lede { color: #a9bcc0; }
.cta-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 34px; align-items: center; padding: clamp(40px, 6vw, 76px) 0; }
.cta-band .link-arrow { color: #7fd0b6; }
@media (max-width: 860px) { .cta-inner { grid-template-columns: 1fr; } }

.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 620px) { .form-grid { grid-template-columns: 1fr; } }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--mono); font-size: 11.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.field input, .field select, .field textarea {
  font-family: inherit; font-size: 15.4px; color: var(--ink);
  padding: 12px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius);
  background: var(--white); width: 100%;
}
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; border-color: var(--accent); }
.field .err { color: var(--red); font-size: 13px; }
.form-note { font-size: 13.4px; color: var(--muted); }

.alert { border: 1px solid var(--accent); background: var(--accent-soft); border-radius: 6px; padding: 16px 18px; font-size: 15.4px; color: var(--accent-dark); }

.pager { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-family: var(--mono); font-size: 13px; }
.pager a, .pager span {
  border: 1px solid var(--line); border-radius: var(--radius); padding: 8px 13px; background: var(--white); color: var(--ink-3);
}
.pager .on { background: var(--ink); color: #fff; border-color: var(--ink); }
.pager svg { width: 14px; height: 14px; }

/* ------------------------------------------------------------------- footer */

.footer { background: var(--ink); color: #93aab0; padding: clamp(48px, 6vw, 78px) 0 34px; font-size: 14.6px; }
.footer a { color: #c2d3d3; }
.footer a:hover { color: #fff; }
.footer h4 { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: #6f8a91; margin-bottom: 14px; font-weight: 500; }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(4, minmax(0, 1fr)); gap: 34px; }
@media (max-width: 1000px) { .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer .brand { color: #fff; }
.footer .brand-mark { background: #fff; color: var(--ink); }
.footer .brand-sub { color: #6f8a91; }
.footer-blurb { margin: 16px 0 18px; max-width: 34ch; color: #93aab0; }
.footer-bottom {
  margin-top: 40px; padding-top: 22px; border-top: 1px solid #1f3b44;
  display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; font-size: 13.4px;
}
.footer-bottom .legal { display: flex; flex-wrap: wrap; gap: 16px; }

/* ------------------------------------------------------------------ helpers */

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: 10px; }
.mt-2 { margin-top: 20px; }
.mt-3 { margin-top: 30px; }
.mt-4 { margin-top: 44px; }
.mb-2 { margin-bottom: 20px; }
.center { text-align: center; }
.center .lede, .center .eyebrow { margin-left: auto; margin-right: auto; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); }
.small { font-size: 13.6px; }
.nowrap { white-space: nowrap; }
.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;
}
.head-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

@media print {
  .masthead, .topbar, .footer, .cta-band, .nav-actions { display: none !important; }
  body { background: #fff; font-size: 12pt; }
}
