/* ==========================================================================
   SmartBench Software — site styles
   Visual language: engineering drawing sheet. Brand navy + royal blue from
   the SB mark, the mark's 45° section hatch as a recurring motif, and
   Onshape "selection orange" as a sparing highlight.
   ========================================================================== */

:root {
  --navy: #00207a;          /* the "B" in the mark */
  --navy-deep: #0a1640;
  --ink: #0d1530;
  --blue: #3b4baa;          /* the "S" in the mark */
  --blue-soft: #e8eaf7;
  --paper: #f7f6f1;         /* drafting paper */
  --paper-2: #efede5;
  --white: #ffffff;
  --muted: #545b73;
  --line: rgba(0, 32, 122, 0.14);
  --line-strong: rgba(0, 32, 122, 0.3);
  --select: #f28c28;        /* Onshape selection orange */
  --select-soft: #fdebd8;

  --font-sans: "Archivo", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  --radius: 10px;
  --radius-lg: 16px;
  --shadow: 0 1px 2px rgba(10, 22, 64, 0.06), 0 8px 24px -12px rgba(10, 22, 64, 0.18);
  --shadow-lg: 0 2px 4px rgba(10, 22, 64, 0.06), 0 24px 48px -20px rgba(10, 22, 64, 0.35);

  --container: 1200px;
  --gutter: clamp(16px, 4vw, 32px);
  --section: clamp(64px, 9vw, 120px);

  --hatch: repeating-linear-gradient(-45deg, currentColor 0 1.5px, transparent 1.5px 7px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--navy); }
:focus-visible { outline: 2px solid var(--select); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--select-soft); color: var(--ink); }

h1, h2, h3, h4 { font-family: var(--font-sans); color: var(--navy-deep); line-height: 1.1; margin: 0 0 0.5em; letter-spacing: -0.02em; text-wrap: balance; }
h1 { font-size: clamp(2.5rem, 6vw, 4.5rem); font-weight: 800; letter-spacing: -0.035em; font-stretch: 112%; }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); font-weight: 750; font-stretch: 108%; }
h3 { font-size: 1.35rem; font-weight: 700; }
p { margin: 0 0 1em; text-wrap: pretty; }

.skip-link { position: absolute; left: 12px; top: -100px; z-index: 100; background: var(--navy); color: #fff; padding: 10px 16px; border-radius: 8px; }
.skip-link:focus { top: 12px; color: #fff; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.narrow { max-width: 760px; }

/* ---------- Mono labels (title-block / callout voice) ---------- */
.label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex; align-items: center; gap: 10px;
}
.label::before { content: ""; width: 22px; height: 10px; color: var(--blue); background: var(--hatch); border: 1px solid currentColor; border-radius: 2px; }
.label.plain::before { display: none; }
.lede { font-size: clamp(1.1rem, 1.6vw, 1.3rem); color: var(--muted); max-width: 62ch; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--navy); --fg: #fff; --bd: var(--navy);
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 22px; border-radius: 999px;
  background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd);
  font: 600 0.98rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, color .15s ease;
  white-space: nowrap;
}
.btn:hover { --bg: var(--blue); --bd: var(--blue); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn .arrow { transition: transform .15s ease; }
.btn:hover .arrow { transform: translateX(3px); }
.btn-ghost { --bg: transparent; --fg: var(--navy); --bd: var(--line-strong); }
.btn-ghost:hover { --bg: var(--white); --bd: var(--navy); color: var(--navy); }
.btn-light { --bg: #fff; --fg: var(--navy); --bd: #fff; }
.btn-light:hover { --bg: var(--select); --bd: var(--select); color: var(--navy-deep); }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--paper) 86%, transparent);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--navy-deep); }
.brand img { width: 34px; height: auto; }
.brand-name { font-weight: 800; font-size: 1.12rem; letter-spacing: -0.02em; font-stretch: 110%; line-height: 1; }
.brand-name span { display: block; font-family: var(--font-mono); font-size: 0.62rem; font-weight: 500; letter-spacing: 0.2em; color: var(--blue); margin-top: 4px; text-transform: uppercase; font-stretch: normal; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > a, .nav-drop > button {
  font: 500 0.96rem/1 var(--font-sans); color: var(--ink); text-decoration: none;
  padding: 10px 14px; border-radius: 999px; background: none; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px;
}
.nav > a:hover, .nav-drop > button:hover, .nav-drop:focus-within > button { background: var(--blue-soft); color: var(--navy); }
.nav > a[aria-current="page"], .nav-drop > button[data-current] { color: var(--navy); box-shadow: inset 0 -2px 0 var(--select); border-radius: 0; }
.nav > a.btn { margin-left: 10px; padding: 11px 18px; background: var(--bg); color: var(--fg); border: 1.5px solid var(--bd); font-weight: 600; }
.nav > a.btn:hover { --bg: var(--blue); --bd: var(--blue); color: #fff; }
.nav .btn[aria-current="page"] { box-shadow: none; border-radius: 999px; }

.nav-drop { position: relative; }
.nav-drop svg { width: 10px; height: 10px; transition: transform .2s ease; }
.nav-drop.open svg { transform: rotate(180deg); }
.drop-panel {
  position: absolute; top: calc(100% + 10px); left: 50%; transform: translateX(-50%) translateY(-4px);
  width: 360px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: 8px; opacity: 0; visibility: hidden; transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.nav-drop.open .drop-panel { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.drop-panel a { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; padding: 10px; border-radius: 10px; text-decoration: none; color: var(--ink); }
.drop-panel a:hover { background: var(--paper); }
.drop-panel .ico { width: 40px; height: 40px; border-radius: 8px; background: var(--blue-soft); display: grid; place-items: center; font: 700 0.8rem var(--font-mono); color: var(--navy); }
.drop-panel strong { display: block; font-size: 0.95rem; color: var(--navy-deep); }
.drop-panel small { display: block; color: var(--muted); font-size: 0.82rem; line-height: 1.35; }
.drop-panel .all { display: block; text-align: center; font: 500 0.78rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--blue); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; margin-top: 6px; padding-top: 12px; }

.menu-toggle { display: none; background: none; border: 1px solid var(--line-strong); border-radius: 10px; width: 44px; height: 44px; cursor: pointer; color: var(--navy); }
.menu-toggle svg { width: 22px; height: 22px; margin: auto; }

@media (max-width: 900px) {
  .menu-toggle { display: grid; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--paper); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 20px;
    max-height: calc(100dvh - 72px); overflow: auto;
    transform: translateY(-8px); opacity: 0; visibility: hidden; transition: opacity .2s ease, transform .2s ease, visibility .2s;
  }
  body.menu-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav > a, .nav-drop > button { width: 100%; justify-content: space-between; padding: 16px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; }
  .nav > a:hover, .nav-drop > button:hover { background: none; }
  .nav > a[aria-current="page"] { box-shadow: none; color: var(--blue); }
  .drop-panel { position: static; transform: none !important; width: auto; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; background: transparent; }
  .nav-drop.open .drop-panel { display: block; }
  .nav > a.btn { margin: 18px 0 0; justify-content: center; border-radius: 999px; padding: 16px; }
}

/* ---------- Grid-paper surfaces ---------- */
.grid-paper {
  background-color: var(--paper);
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    linear-gradient(rgba(0,32,122,.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,32,122,.05) 1px, transparent 1px);
  background-size: 96px 96px, 96px 96px, 24px 24px, 24px 24px;
  background-position: -1px -1px;
}

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero::after { /* fade grid toward the bottom */
  content: ""; position: absolute; inset: auto 0 0 0; height: 40%;
  background: linear-gradient(to bottom, transparent, var(--paper)); pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; padding-block: clamp(56px, 8vw, 104px) clamp(64px, 8vw, 112px); }
.hero h1 { margin: 18px 0 22px; }
.hero h1 em { font-style: normal; color: var(--blue); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0.06em; height: 0.16em; color: var(--select); background: var(--hatch); opacity: .9; }
.hero .lede { margin-bottom: 32px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 36px; padding-top: 22px; border-top: 1px dashed var(--line-strong); font: 500 0.8rem var(--font-mono); color: var(--muted); letter-spacing: .04em; }
.hero-meta b { color: var(--navy); font-weight: 600; }
@media (max-width: 900px) { .hero-inner { grid-template-columns: 1fr; } }

/* "Viewport" — a CAD-window frame for product demos */
.viewport { position: relative; background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); overflow: hidden; }
.viewport-bar { display: flex; align-items: center; gap: 8px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: linear-gradient(#fbfbfd, #f2f3f8); }
.viewport-bar i { width: 10px; height: 10px; border-radius: 50%; background: #d9dbe6; }
.viewport-tabs { display: flex; gap: 2px; margin-left: 10px; overflow: hidden; }
.viewport-tabs span { font: 500 0.72rem var(--font-mono); color: var(--muted); padding: 5px 10px; border-radius: 6px 6px 0 0; white-space: nowrap; }
.viewport-tabs span.on { background: var(--white); color: var(--navy); box-shadow: inset 0 2px 0 var(--select); }
.viewport img { width: 100%; }
.viewport-caption { display: flex; justify-content: space-between; gap: 12px; padding: 10px 14px; border-top: 1px solid var(--line); font: 500 0.72rem var(--font-mono); color: var(--muted); letter-spacing: .04em; }
.viewport-caption b { color: var(--navy); font-weight: 600; }

.hero-figure { position: relative; padding: 28px 0 0 28px; }
.hero-figure .dim { position: absolute; font: 500 0.7rem var(--font-mono); color: var(--blue); letter-spacing: .06em; }
.hero-figure .dim-top { top: 0; left: 28px; right: 0; height: 16px; border-left: 1px solid var(--blue); border-right: 1px solid var(--blue); }
.hero-figure .dim-top::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--blue); }
.hero-figure .dim-top span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); background: var(--paper); padding: 0 8px; white-space: nowrap; }
.hero-figure .dim-left { left: 0; top: 28px; bottom: 0; width: 16px; border-top: 1px solid var(--blue); border-bottom: 1px solid var(--blue); }
.hero-figure .dim-left::before { content: ""; position: absolute; top: 0; bottom: 0; left: 50%; border-left: 1px solid var(--blue); }
.hero-figure .dim-left span { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); background: var(--paper); padding: 0 8px; white-space: nowrap; }
.hero-figure .callout { position: absolute; right: -10px; bottom: 54px; background: var(--navy-deep); color: #fff; font: 500 0.74rem/1.3 var(--font-mono); padding: 10px 12px; border-radius: 8px; box-shadow: var(--shadow); max-width: 200px; }
.hero-figure .callout b { color: var(--select); font-weight: 600; display: block; }
@media (max-width: 600px) { .hero-figure { padding: 22px 0 0 0; } .hero-figure .dim-left { display: none; } .hero-figure .dim-top { left: 0; } .hero-figure .callout { display: none; } }

/* ---------- Page header (inner pages) ---------- */
.page-head { border-bottom: 1px solid var(--line); position: relative; overflow: hidden; }
.page-head .container { position: relative; padding-top: clamp(48px, 7vw, 88px); padding-bottom: clamp(48px, 6vw, 72px); }
.page-head h1 { font-size: clamp(2.3rem, 5vw, 3.8rem); margin: 16px 0 16px; max-width: 18ch; }
.page-head .lede { margin: 0; }
.page-head-split { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center; }
@media (max-width: 860px) { .page-head-split { grid-template-columns: 1fr; } }
.crumbs { font: 500 0.75rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--blue); }

/* ---------- Sections ---------- */
.section { padding: var(--section) 0; }
.section-tight { padding: calc(var(--section) * 0.6) 0; }
.section-white { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 48px; flex-wrap: wrap; }
.section-head h2 { margin: 14px 0 0; max-width: 20ch; }
.section-head p { max-width: 46ch; color: var(--muted); margin: 0; }

/* ---------- Service cards ---------- */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: svc; }
@media (max-width: 960px) { .services { grid-template-columns: 1fr; } }
.svc {
  position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 28px; display: flex; flex-direction: column; gap: 14px; counter-increment: svc;
  transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.svc:hover { border-color: var(--line-strong); box-shadow: var(--shadow); transform: translateY(-2px); }
.svc-num { font: 500 0.78rem var(--font-mono); color: var(--blue); letter-spacing: .1em; display: flex; justify-content: space-between; }
.svc-num::before { content: "0" counter(svc); }
.svc-media { height: 180px; border-radius: var(--radius); background: var(--paper); border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; }
.svc-media img { max-height: 100%; width: auto; }
.svc-media.cover img { width: 100%; height: 100%; object-fit: cover; }
.svc-media.pad img { max-height: 120px; }
.svc h3 { margin: 6px 0 0; }
.svc p { color: var(--muted); margin: 0; }

/* ---------- Services: pinned scroll sequence (home page) ----------
   Without JS, on small screens, or with reduced motion this stays the normal 3-card grid.
   site.js adds .pinned and drives data-state / --fill from scroll position. */
.svc-steps { display: none; }
.svc-scroll.pinned { padding: 0; height: calc((100vh - 72px) * 3.2); }
.svc-scroll.pinned .svc-sticky { position: sticky; top: 72px; height: calc(100vh - 72px); display: flex; align-items: center; overflow: hidden; }
.svc-scroll.pinned .svc-stage { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 96px); align-items: center; }
.svc-scroll.pinned .section-head { display: block; margin: 0; }
.svc-scroll.pinned .section-head .btn { margin-top: 32px; }
.svc-scroll.pinned .svc-steps { display: grid; list-style: none; padding: 0; margin: 36px 0 0; }
.svc-step button {
  display: grid; grid-template-columns: 1fr; align-items: center; width: 100%; padding: 16px 0 0;
  background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; text-align: left;
  font: 600 1.05rem/1.3 var(--font-sans); color: var(--muted); transition: color .3s ease;
}
.svc-step .bar { grid-column: 1 / -1; position: relative; height: 2px; margin-top: 16px; background: transparent; overflow: hidden; }
.svc-step .bar::after { content: ""; position: absolute; inset: 0; background: var(--select); transform-origin: left; transform: scaleX(var(--fill, 0)); }
.svc-step.is-active button, .svc-step button:hover { color: var(--navy-deep); }
.svc-scroll.pinned .services { display: block; position: relative; height: min(600px, calc(100vh - 72px - 96px)); }
.svc-scroll.pinned .svc {
  position: absolute; inset: 0; box-shadow: var(--shadow-lg); padding: 32px;
  opacity: 0; transform: translateY(56px) scale(0.96); pointer-events: none;
  transition: opacity .45s ease, transform .6s cubic-bezier(.2, .7, .2, 1);
}
.svc-scroll.pinned .svc[data-state="active"] { opacity: 1; transform: none; pointer-events: auto; }
.svc-scroll.pinned .svc[data-state="past"] { opacity: 0; transform: translateY(-56px) scale(0.96); }
.svc-scroll.pinned .svc[data-state="active"]:hover { transform: none; }  /* inactive cards ignore the pointer */
.svc-scroll.pinned .svc-media { height: auto; flex: 1 1 auto; min-height: 0; }
.svc-scroll.pinned .svc-media.pad img { max-height: 70%; }
.svc-scroll.pinned .svc h3 { font-size: 1.6rem; font-weight: 750; font-stretch: 108%; }
.svc-scroll.pinned .svc-num { font-size: 0.85rem; }
.svc-scroll.pinned .svc-num::before { content: "0" counter(svc) " / 03"; }

/* ---------- Product rows ---------- */
.product-row { display: grid; grid-template-columns: 1fr 1.1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: 56px 0; border-top: 1px solid var(--line); }
.product-row:first-of-type { border-top: 0; padding-top: 0; }
.product-row.flip > :first-child { order: 2; }
@media (max-width: 900px) { .product-row, .product-row.flip { grid-template-columns: 1fr; } .product-row.flip > :first-child { order: 0; } }
.product-row h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800; font-stretch: 110%; margin: 14px 0 14px; }
.product-row p { color: var(--muted); }
.product-row .tags { margin: 18px 0 26px; }
.product-wordmark { height: 40px; width: auto; margin: 14px 0 18px; }
.media-frame { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow); overflow: hidden; }
.media-frame.pad { padding: clamp(20px, 3vw, 36px); }

.tags { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; }
.tags li { font: 500 0.78rem var(--font-mono); color: var(--navy); background: var(--blue-soft); padding: 6px 10px; border-radius: 6px; }

/* ---------- Product cards (grid) ---------- */
.product-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
@media (max-width: 860px) { .product-cards { grid-template-columns: 1fr; } }
.pcard { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease; }
.pcard:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); border-color: var(--line-strong); color: var(--ink); }
.pcard-media { aspect-ratio: 16 / 8; background: var(--paper); border-bottom: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; padding: 24px; }
.pcard-media img { width: 100%; height: 100%; object-fit: contain; }
.pcard-media.cover { padding: 0; }
.pcard-media.cover img { width: 100%; height: 100%; object-fit: cover; object-position: top left; max-height: none; }
.pcard-body { padding: 26px 28px 28px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.pcard-body h3 { margin: 0; font-size: 1.6rem; font-weight: 800; font-stretch: 108%; }
.pcard-body p { color: var(--muted); margin: 0; flex: 1; }
.pcard-link { font: 600 0.92rem var(--font-sans); color: var(--blue); display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; }
.pcard:hover .pcard-link { color: var(--navy); }
.pcard-kicker { font: 500 0.72rem var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- Feature grid / lists ---------- */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.feature { background: var(--white); padding: 28px 26px; }
.feature-icon { width: 42px; height: 42px; border-radius: 10px; background: var(--blue-soft); color: var(--navy); display: grid; place-items: center; margin-bottom: 18px; }
.feature-icon svg { width: 22px; height: 22px; }
.feature h3 { font-size: 1.1rem; margin: 0 0 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 0.96rem; }

.checklist { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.checklist li { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; }
.checklist li::before { content: ""; width: 20px; height: 20px; margin-top: 3px; border-radius: 6px; background: var(--navy) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 10.5l3.2 3L15 7'/%3E%3C/svg%3E") center / 16px no-repeat; }
.checklist.two { grid-template-columns: repeat(2, 1fr); column-gap: 32px; }
@media (max-width: 700px) { .checklist.two { grid-template-columns: 1fr; } }

/* ---------- Comparison ---------- */
.compare { display: grid; grid-template-columns: 1fr 1fr; border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--line); }
@media (max-width: 700px) { .compare { grid-template-columns: 1fr; } }
.compare > div { padding: 32px; }
.compare .them { background: var(--paper-2); }
.compare .us { background: var(--navy-deep); color: #e7eafc; position: relative; }
.compare .us::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 6px; color: var(--select); background: var(--hatch); }
.compare h3 { font-size: 1.15rem; margin-bottom: 20px; }
.compare .us h3 { color: #fff; }
.compare ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.compare li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; }
.compare .them li { color: var(--muted); }
.compare .them li::before { content: "–"; font: 600 1rem var(--font-mono); color: #9aa0b4; }
.compare .us li::before { content: "✓"; font: 700 1rem var(--font-mono); color: var(--select); }

/* ---------- Logos ---------- */
.logo-wall { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
@media (max-width: 760px) { .logo-wall { grid-template-columns: repeat(2, 1fr); } }
.logo-tile { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); height: 120px; display: grid; place-items: center; padding: 24px; }
.logo-tile img { max-height: 54px; width: auto; }
.logo-tile.any { border-style: dashed; border-color: var(--line-strong); background: transparent; font: 500 0.8rem/1.4 var(--font-mono); color: var(--blue); text-align: center; letter-spacing: .04em; }

/* ---------- Pricing ---------- */
.price-card { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: 36px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.price-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 8px; color: var(--blue); background: var(--hatch); }
.price { font-size: 4rem; font-weight: 800; color: var(--navy-deep); line-height: 1; letter-spacing: -0.04em; font-stretch: 112%; }
.price small { font-size: 1rem; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.price-note { font: 500 0.8rem var(--font-mono); color: var(--blue); letter-spacing: .06em; text-transform: uppercase; margin: 14px 0 26px; }

.tool-list { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.tool-list li { background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 9px 13px; font-size: 0.93rem; font-weight: 500; color: var(--navy-deep); }

/* ---------- fs.place listings ---------- */
.listings { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
@media (max-width: 1000px) { .listings { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .listings { grid-template-columns: 1fr; } }
.listing { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); display: flex; flex-direction: column; transition: transform .2s ease, box-shadow .2s ease; }
.listing:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: var(--ink); }
.listing-media { aspect-ratio: 4 / 3; background: var(--paper); overflow: hidden; border-bottom: 1px solid var(--line); }
.listing-media img { width: 100%; height: 100%; object-fit: cover; }
.listing-body { padding: 16px 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.listing-body strong { font-size: 1rem; color: var(--navy-deep); }
.price-pill { font: 600 0.8rem var(--font-mono); padding: 5px 10px; border-radius: 999px; background: var(--navy); color: #fff; white-space: nowrap; }
.price-pill.free { background: var(--select); color: var(--navy-deep); }

/* ---------- Prose ---------- */
.prose { font-size: 1.08rem; line-height: 1.75; color: #1f2742; }
.prose > * { max-width: 72ch; }
.prose h2 { font-size: clamp(1.6rem, 2.6vw, 2rem); margin: 2.2em 0 0.6em; }
.prose h3 { font-size: 1.3rem; margin: 1.9em 0 0.5em; }
.prose h4 { font-size: 1.1rem; margin: 1.6em 0 0.4em; }
.prose h2:first-child, .prose h3:first-child { margin-top: 0; }
.prose ul, .prose ol { padding-left: 1.4em; margin: 0 0 1.2em; }
.prose li { margin: 0.35em 0; }
.prose li p { margin: 0; }
.prose li::marker { color: var(--blue); }
.prose figure { margin: 2em 0; max-width: 100%; }
.prose figure img, .prose figure video { border-radius: var(--radius); border: 1px solid var(--line); background: var(--white); margin: 0 auto; }
.prose figcaption { margin-top: 10px; font: 500 0.8rem var(--font-mono); color: var(--muted); text-align: center; letter-spacing: .02em; }
.prose code { font-family: var(--font-mono); font-size: 0.88em; background: var(--blue-soft); color: var(--navy-deep); padding: 0.15em 0.4em; border-radius: 5px; }
.prose pre { max-width: 100%; background: var(--navy-deep); color: #e4e8ff; padding: 20px 22px; border-radius: var(--radius); overflow-x: auto; font-size: 0.88rem; line-height: 1.6; margin: 1.5em 0; border-left: 4px solid var(--select); }
.prose pre code { background: none; color: inherit; padding: 0; font-size: inherit; white-space: pre; }
.prose blockquote { margin: 1.5em 0; padding: 4px 0 4px 20px; border-left: 3px solid var(--blue); color: var(--navy-deep); font-style: italic; }
.prose .table-wrap { max-width: 100%; overflow-x: auto; margin: 1.6em 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); }
.prose table { border-collapse: collapse; width: 100%; font-size: 0.93rem; line-height: 1.5; }
.prose th, .prose td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.prose table:not(:has(thead)) tr:first-child td { font-weight: 600; color: var(--navy-deep); background: var(--paper); }
.prose thead th { background: var(--paper); color: var(--navy-deep); }
.prose td p, .prose th p { margin: 0; }
.prose tr:last-child td { border-bottom: 0; }
.prose a { word-break: break-word; }

/* ---------- Blog ---------- */
.blog-tools { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 36px; }
.search { position: relative; flex: 1 1 320px; max-width: 420px; }
.search svg { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: var(--muted); }
.search input { width: 100%; padding: 13px 16px 13px 42px; font: 1rem var(--font-sans); border: 1px solid var(--line-strong); border-radius: 999px; background: var(--white); color: var(--ink); }
.search input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-soft); }
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { font: 500 0.8rem var(--font-mono); padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: transparent; color: var(--navy); cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.post-count { font: 500 0.78rem var(--font-mono); color: var(--muted); letter-spacing: .06em; }

.post-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 1000px) { .post-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .post-grid { grid-template-columns: 1fr; } }
.post-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; text-decoration: none; color: var(--ink); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.post-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); color: var(--ink); }
.post-card-media { aspect-ratio: 16 / 9; background: var(--paper-2); overflow: hidden; border-bottom: 1px solid var(--line); position: relative; }
.post-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.post-card:hover .post-card-media img { transform: scale(1.03); }
.post-card-media.placeholder { color: var(--blue); display: grid; place-items: center; background-color: var(--blue-soft); }
.post-card-media.placeholder::before { content: ""; position: absolute; inset: 0; background: var(--hatch); opacity: .18; }
.post-card-media.placeholder span { position: relative; font: 700 1.05rem/1.25 var(--font-sans); color: var(--navy-deep); padding: 0 28px; text-align: center; font-stretch: 108%; background: var(--blue-soft); }
.post-card-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.post-meta { font: 500 0.74rem var(--font-mono); color: var(--muted); letter-spacing: .05em; text-transform: uppercase; display: flex; gap: 10px; flex-wrap: wrap; }
.post-meta .dot::before { content: "·"; }
.post-card h3 { font-size: 1.2rem; margin: 0; line-height: 1.25; }
.post-card p { color: var(--muted); font-size: 0.95rem; margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.post-card.featured { grid-column: span 3; flex-direction: row; }
.post-card.featured .post-card-media { flex: 1.2; aspect-ratio: auto; min-height: 340px; border-bottom: 0; border-right: 1px solid var(--line); }
.post-card.featured .post-card-body { flex: 1; padding: 36px; justify-content: center; }
.post-card.featured h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); font-weight: 800; }
.post-card.featured p { -webkit-line-clamp: 4; font-size: 1.02rem; }
@media (max-width: 1000px) { .post-card.featured { grid-column: span 2; } }
@media (max-width: 760px) { .post-card.featured { grid-column: span 1; flex-direction: column; } .post-card.featured .post-card-media { min-height: 0; aspect-ratio: 16/9; border-right: 0; border-bottom: 1px solid var(--line); } .post-card.featured .post-card-body { padding: 22px; } }
.empty { padding: 48px; text-align: center; border: 1px dashed var(--line-strong); border-radius: var(--radius-lg); color: var(--muted); }

.article-head { padding: clamp(40px, 6vw, 80px) 0 32px; }
.article-head h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); margin: 18px 0 22px; max-width: 22ch; }
.byline { display: flex; align-items: center; gap: 12px; font-size: 0.95rem; color: var(--muted); }
.byline img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 2px solid var(--white); box-shadow: 0 0 0 1px var(--line-strong); }
.byline strong { color: var(--navy-deep); display: block; font-weight: 600; }
.article-cover { margin: 0 0 48px; }
.article-cover img { width: 100%; max-height: 520px; object-fit: contain; background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 64px; padding-bottom: var(--section); }
@media (max-width: 1000px) { .article-layout { grid-template-columns: 1fr; } }
.article-aside { position: sticky; top: 96px; align-self: start; display: grid; gap: 18px; }
@media (max-width: 1000px) { .article-aside { position: static; } }
.aside-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; }
.aside-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.aside-card p { font-size: 0.93rem; color: var(--muted); }
.aside-card.dark { background: var(--navy-deep); color: #d9ddf5; border-color: var(--navy-deep); }
.aside-card.dark h4 { color: #fff; }
.aside-card.dark p { color: #b8bfe4; }
.share { display: flex; gap: 8px; }
.share a, .share button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--navy); background: var(--white); cursor: pointer; }
.share a:hover, .share button:hover { background: var(--blue-soft); }
.share svg { width: 17px; height: 17px; }
.post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 56px; padding-top: 32px; border-top: 1px solid var(--line); }
.post-nav a { display: block; padding: 18px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: var(--navy-deep); font-weight: 600; line-height: 1.35; }
.post-nav a:hover { border-color: var(--blue); }
.post-nav span { display: block; font: 500 0.72rem var(--font-mono); color: var(--muted); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 6px; font-weight: 500; }
.post-nav .next { text-align: right; grid-column: 2; }
@media (max-width: 600px) { .post-nav { grid-template-columns: 1fr; } .post-nav .next { grid-column: 1; text-align: left; } }

/* ---------- Bands ---------- */
.band { position: relative; background: var(--navy-deep); color: #d9ddf5; overflow: hidden; }
.band::before { content: ""; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px; pointer-events: none; }
.band::after { content: ""; position: absolute; right: -40px; top: -40px; width: 300px; height: 300px; color: rgba(255,255,255,.08); background: var(--hatch); border-radius: 50%; pointer-events: none; }
.band .container { position: relative; z-index: 1; }
.band h2 { color: #fff; }
.band .label { color: #a9b3ff; }
.band .label::before { color: #a9b3ff; }
.band p { color: #b8bfe4; }
.cta-inner { display: grid; grid-template-columns: 1.3fr auto; gap: 40px; align-items: center; padding-block: clamp(56px, 7vw, 88px); }
.cta-inner h2 { margin: 14px 0 12px; max-width: 22ch; }
.cta-inner p { margin: 0; max-width: 52ch; font-size: 1.1rem; }
@media (max-width: 800px) { .cta-inner { grid-template-columns: 1fr; } }

.newsletter { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding-block: 48px; }
@media (max-width: 860px) { .newsletter { grid-template-columns: 1fr; } }
.newsletter h2 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); margin: 12px 0 8px; }
.newsletter p { margin: 0; }
.subscribe { display: flex; gap: 10px; flex-wrap: wrap; }
.subscribe input { flex: 1 1 240px; min-width: 0; padding: 15px 20px; font: 1rem var(--font-sans); border-radius: 999px; border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.06); color: #fff; }
.subscribe input::placeholder { color: #9aa3d6; }
.subscribe input:focus { outline: none; border-color: var(--select); background: rgba(255,255,255,.1); }
.form-msg { flex-basis: 100%; font: 500 0.82rem var(--font-mono); color: var(--select); min-height: 1.2em; margin: 4px 0 0 6px; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } }
.portrait { position: relative; max-width: 420px; }
.portrait img { border-radius: var(--radius-lg); border: 1px solid var(--line); aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.portrait::before { content: ""; position: absolute; inset: 18px -18px -18px 18px; color: var(--blue); background: var(--hatch); opacity: .25; border-radius: var(--radius-lg); z-index: -1; }
.portrait figcaption { position: absolute; left: 16px; bottom: 16px; background: var(--white); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; font: 500 0.76rem/1.35 var(--font-mono); color: var(--muted); }
.portrait figcaption b { color: var(--navy-deep); display: block; font-family: var(--font-sans); font-size: 0.92rem; }

/* ---------- Detail rows (services page) ---------- */
.detail { display: grid; grid-template-columns: 120px 1fr 1fr; gap: 40px; padding: 56px 0; border-top: 1px solid var(--line); align-items: start; }
.detail:first-child { border-top: 0; padding-top: 0; }
.detail-num { font: 600 3.4rem/1 var(--font-mono); color: transparent; -webkit-text-stroke: 1.2px var(--blue); }
.detail h2 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin-top: 0; }
.detail p { color: var(--muted); }
.detail .media-frame img { width: 100%; }
@media (max-width: 900px) { .detail { grid-template-columns: 1fr; gap: 20px; } .detail-num { font-size: 2.4rem; } }

/* ---------- Contact ---------- */
.contact-card { background: var(--white); border: 1px solid var(--line-strong); border-radius: var(--radius-lg); padding: clamp(28px, 4vw, 44px); box-shadow: var(--shadow-lg); }
.contact-email { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; color: var(--navy-deep); text-decoration: none; word-break: break-all; border-bottom: 2px solid var(--select); }
.contact-email:hover { color: var(--blue); }
.contact-list { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 0; }
.contact-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.contact-list span { font: 500 0.75rem var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 0; counter-reset: step; display: grid; gap: 22px; }
.steps li { counter-increment: step; display: grid; grid-template-columns: 44px 1fr; gap: 16px; }
.steps li::before { content: counter(step); width: 44px; height: 44px; border-radius: 50%; border: 1.5px solid var(--blue); color: var(--blue); display: grid; place-items: center; font: 600 1rem var(--font-mono); }
.steps strong { display: block; color: var(--navy-deep); margin: 8px 0 2px; }
.steps p { margin: 0; color: var(--muted); }

/* ---------- Legal ---------- */
.legal h2 { padding-top: 24px; border-top: 1px solid var(--line); }
.legal h2:first-child { border-top: 0; padding-top: 0; }
.caps { font-size: 0.95rem; letter-spacing: 0.01em; background: var(--paper-2); border-left: 3px solid var(--blue); padding: 14px 18px; border-radius: 0 8px 8px 0; }

/* ---------- Footer: drawing title block ---------- */
.site-footer { background: var(--white); border-top: 1px solid var(--line); padding: 64px 0 28px; font-size: 0.95rem; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { font: 500 0.75rem var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer-grid a { color: var(--ink); text-decoration: none; }
.footer-grid a:hover { color: var(--blue); text-decoration: underline; }
.footer-about p { color: var(--muted); max-width: 36ch; margin: 16px 0 20px; }
.socials { display: flex; gap: 8px; }
.socials a { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line-strong); display: grid; place-items: center; color: var(--navy); }
.socials a:hover { background: var(--blue-soft); color: var(--navy); }
.socials svg { width: 18px; height: 18px; }
.partner { display: flex; align-items: center; gap: 12px; margin-top: 22px; font-size: 0.85rem; color: var(--muted); }
.partner img { width: 86px; height: auto; }

.title-block { margin-top: 56px; display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; border: 1.5px solid var(--navy); font: 500 0.72rem var(--font-mono); color: var(--navy); }
.title-block > div { padding: 10px 14px; border-left: 1px solid var(--navy); display: flex; flex-direction: column; gap: 3px; }
.title-block > div:first-child { border-left: 0; }
.title-block span { color: var(--muted); letter-spacing: .1em; text-transform: uppercase; font-size: 0.62rem; }
.title-block a { color: var(--navy); }
.title-block b { font-weight: 500; font-variant-numeric: tabular-nums; }
.title-block b.zoomed { color: var(--select); font-weight: 600; }
@media (max-width: 760px) { .title-block { grid-template-columns: 1fr 1fr; } .title-block > div { border-left: 0; border-top: 1px solid var(--navy); } .title-block > div:nth-child(-n+2) { border-top: 0; } .title-block > div:nth-child(even) { border-left: 1px solid var(--navy); } .title-block > div:last-child { grid-column: span 2; border-left: 0; } }

/* ---------- Utilities ---------- */
.hero-inner > *, .page-head-split > *, .split > *, .product-row > *, .detail > *, .article-layout > *, .cta-inner > *, .newsletter > * { min-width: 0; }
.center { text-align: center; }
.mt-0 { margin-top: 0; } .mb-0 { margin-bottom: 0; }
.stack > * + * { margin-top: 18px; }
.muted { color: var(--muted); }
.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; }

/* Reveal-on-scroll (progressive: content is visible without JS) */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }
