/* =========================================================================
   BDP SmartFlow Projects — Marketing site design system
   -------------------------------------------------------------------------
   Sibling of the SmartFlow APS site (dynamicspro.ca/sf). The two products
   share one publisher brand, so this file reuses the APS class vocabulary
   VERBATIM: markup written against either site works against both. Where a
   name exists there, it means the same thing here. New names appear only
   where SmartFlow Projects needs something APS genuinely lacks; every one of
   those is grouped under "SMARTFLOW PROJECTS EXTENSIONS" below and says why.

   Brand rules (do not relax without an owner decision):
     - ONE accent: blue-600 #2563eb. NO gradients, anywhere.
     - Green / orange carry ONE meaning only: within capacity / overloaded.
       They are never decorative, and never the only carrier of that meaning —
       every capacity signal also ships a text label.
     - Committed LIGHT theme. There is deliberately no dark-mode toggle;
       `.band--dark` is a compositional device, not a theme.
     - Inter for UI, JetBrains Mono for every numeral and every data string
       (tabular-nums). Both have a full system fallback stack so a blocked
       font CDN degrades instead of breaking.

   -------------------------------------------------------------------------
   CLASS VOCABULARY — what the HTML builders may assume exists
   -------------------------------------------------------------------------
   LAYOUT      .container .band .band--tight .band--surface .band--dark
   TYPE        .display .h1 .h2 .h3 .lede .eyebrow (.accent) .mono .muted
               .caption .section-head (.num)
   NAV/CHROME  .site-header .nav .brand (.sub) .nav-links .nav-actions
               .skip-link .site-footer .footer-grid .footer-brand
               .footer-bottom
   HERO        .hero .hero-stack .hero-copy .hero-cta .hero-meta (.sep)
               .hero-frame .float-card (--edge-top|--edge-bot) (.k)
   BUTTONS     .btn + --primary --secondary --ghost --lg --on-dark
               --on-dark-ghost
   CHIPS       .chip + --accent --ok --warn ; .dot .dot--pulse
   GRIDS       .grid .grid-2 .grid-3 .grid-4
   CARDS       .card .card--lift (.kicker .learn) .icon-badge .view-tile
               (.vt-icon)
   MEDIA       .frame .frame-bar (.tl .addr) .figure (+figcaption) .film
   CONTENT     .cap-list .cap-item (.tick) .pipeline .pl-step (.n .t)
               .pl-arrows .proof-strip .proof .problem-grid .collision
               .showcase .showcase-copy .sibling
   HONESTY     .honesty-cards .honesty-card (.hc-icon) .callout
               .callout--note .callout--limit
   PRICING     .pricing-grid .tier .tier--promoted (.badge .tname .price
               .cadence .oneliner .feat .fi .yes .soon .is-excluded
               .cta-wrap .foot) .rate-row (.rr .seat) .mech-strip (.m .d .x)
               .reqbox (.rq-title)
   FAQ         .faq details/summary (.plus) .faq-body
   SFP EXTRAS  .meter (.meter__track .meter__fill .meter__label)
               .meter--ok .meter--over
               .table-wrap .cmp-table (.cmp-yes .cmp-no .cmp-partial)
               .link-badge .link-legend
   MOTION      .reveal (+ .in, applied by main.js)
   HELPERS     .center .mx-auto .mt-3 .mt-4 .mt-6 .mt-8 .mt-12 .mb-6 .mb-8
               .maxw-head .maxw-60 .stack-gap
   ========================================================================= */

:root {
  /* --- Canvas & surfaces --- */
  --sf-bg:            #f9fafb;   /* page background */
  --sf-surface:       #f4f6f9;   /* tinted section bands */
  --sf-tile:          #ffffff;   /* cards, tiles */
  --sf-inset:         #f1f5f9;   /* fields, code, insets */

  /* --- Ink --- */
  --sf-ink:           #0f172a;   /* headlines */
  --sf-ink-2:         #334155;   /* body */
  --sf-ink-3:         #475569;   /* secondary */
  --sf-ink-4:         #94a3b8;   /* captions, disabled */

  /* --- Lines --- */
  --sf-rule:          #e2e8f0;   /* hairlines */
  --sf-rule-strong:   #cbd5e1;   /* separators, focus */

  /* --- The one accent --- */
  --sf-accent:        #2563eb;   /* blue-600 — CTA, active nav, links, live dot */
  --sf-accent-hover:  #1d4ed8;   /* blue-700 */
  --sf-accent-press:  #1e40af;   /* blue-800 */
  --sf-accent-quiet:  #eff6ff;   /* blue-50 tint */
  --sf-accent-100:    #dbeafe;   /* blue-100 — meter tracks, table zebra accent */
  --sf-accent-ink:    #ffffff;

  /* --- Semantic (product-truth only: within-capacity / overloaded) ---
     Never decorative. Never the sole carrier of meaning — pair with text. */
  --sf-ok:            #16a34a;   /* green-600 */
  --sf-ok-quiet:      #f0fdf4;
  --sf-ok-tint:       #bbf7d0;   /* fill for a within-capacity meter */
  --sf-warn:          #ea580c;   /* orange-600 */
  --sf-warn-quiet:    #fff7ed;
  --sf-warn-tint:     #fed7aa;   /* fill for an overloaded meter */

  /* --- Dark band --- */
  --sf-dark:          #0f172a;   /* final CTA + honesty band */
  --sf-dark-2:        #1e293b;
  --sf-dark-rule:     #334155;
  --sf-dark-ink:      #e2e8f0;
  --sf-dark-ink-2:    #94a3b8;

  /* --- Type --- */
  --sf-sans: "Inter", ui-sans-serif, system-ui, -apple-system, "Segoe UI",
             "Helvetica Neue", Arial, sans-serif;
  --sf-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", "SF Mono",
             Menlo, Consolas, monospace;

  /* --- Scale (locked; matches the APS site so the two read as one family) --- */
  --sf-display: clamp(40px, 6vw, 60px);
  --sf-h1: clamp(32px, 4.4vw, 42px);
  --sf-h2: clamp(26px, 3.2vw, 33px);
  --sf-h3: 22px;
  --sf-body-lg: 18px;
  --sf-body: 16px;
  --sf-caption: 14px;
  --sf-eyebrow: 12px;

  /* --- Spacing (only these) --- */
  --s1: 4px;  --s2: 8px;  --s3: 12px; --s4: 16px; --s6: 24px;
  --s8: 32px; --s12: 48px; --s16: 64px; --s24: 96px; --s32: 128px;

  /* --- Radii --- */
  --r-chip: 8px; --r-card: 12px; --r-frame: 16px; --r-pill: 9999px;

  /* --- Shadow (two only) --- */
  --shadow-rest: 0 1px 3px rgb(15 23 42 / .08), 0 0 0 1px var(--sf-rule);
  --shadow-hover: 0 8px 24px -8px rgb(15 23 42 / .12), 0 0 0 1px var(--sf-rule);

  /* --- Motion --- */
  --ease: cubic-bezier(.16, 1, .3, 1);
  --dur-1: 120ms; --dur-2: 200ms; --dur-3: 320ms;

  --maxw: 1120px;
}

/* ---------------------------------------------------------------- reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font-family: var(--sf-sans);
  font-size: var(--sf-body);
  line-height: 1.6;
  color: var(--sf-ink-2);
  background: var(--sf-bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-feature-settings: "cv11", "ss01";
}
h1, h2, h3, h4 { color: var(--sf-ink); font-weight: 700; letter-spacing: -0.02em; margin: 0; line-height: 1.12; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
/* height:auto is NOT optional. Without it, an <img width="1280" height="720">
   keeps 720px as its used height while max-width/width shrinks the width — the
   picture is stretched vertically and the aspect ratio is destroyed. The
   width/height attributes must stay (they reserve the right box and prevent
   layout shift); this rule is what turns them into a RATIO instead of a size. */
img { max-width: 100%; height: auto; display: block; }
svg { display: block; }
strong { color: var(--sf-ink); font-weight: 600; }
::selection { background: var(--sf-accent-quiet); color: var(--sf-accent-press); }

/* One visible focus treatment for EVERY interactive element, not just .btn.
   Keyboard users land on links, summaries and details rows too. */
:focus-visible { outline: 3px solid var(--sf-accent); outline-offset: 2px; border-radius: 4px; }
.band--dark :focus-visible { outline-color: #93c5fd; }

/* ---------------------------------------------------------------- layout */
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 var(--s6); }
.band { padding: var(--s24) 0; }
.band--tight { padding: var(--s16) 0; }
.band--surface { background: var(--sf-surface); }
.band--dark { background: var(--sf-dark); color: var(--sf-dark-ink); }
.band--dark h1, .band--dark h2, .band--dark h3, .band--dark h4 { color: #fff; }

/* ---------------------------------------------------------------- type utils */
.eyebrow {
  font-family: var(--sf-mono);
  font-size: var(--sf-eyebrow);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--sf-ink-3);
}
.eyebrow .accent { color: var(--sf-accent); }
.band--dark .eyebrow { color: var(--sf-dark-ink-2); }
.band--dark .eyebrow .accent { color: #60a5fa; }

.display { font-size: var(--sf-display); line-height: 1.04; letter-spacing: -0.03em; }
.h1 { font-size: var(--sf-h1); }
.h2 { font-size: var(--sf-h2); }
.h3 { font-size: var(--sf-h3); letter-spacing: -0.015em; }
.lede { font-size: var(--sf-body-lg); line-height: 1.6; color: var(--sf-ink-3); max-width: 62ch; }
.band--dark .lede { color: var(--sf-dark-ink-2); }
.mono { font-family: var(--sf-mono); font-variant-numeric: tabular-nums; }
.muted { color: var(--sf-ink-3); }

/* Section head with an extending rule */
.section-head {
  display: flex; align-items: baseline; gap: var(--s4);
  font-family: var(--sf-mono);
  font-size: var(--sf-eyebrow);
  text-transform: uppercase;
  letter-spacing: 0.10em;
  color: var(--sf-ink-3);
  margin-bottom: var(--s6);
}
.section-head::after { content: ""; flex: 1; height: 0; border-top: 1px solid var(--sf-rule); transform: translateY(-2px); }
.section-head .num { color: var(--sf-accent); }
.band--dark .section-head { color: var(--sf-dark-ink-2); }
.band--dark .section-head::after { border-color: var(--sf-dark-rule); }
.band--dark .section-head .num { color: #60a5fa; }

/* ---------------------------------------------------------------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2);
  height: 44px; padding: 0 var(--s6);
  font-family: var(--sf-sans); font-size: var(--sf-caption); font-weight: 600;
  letter-spacing: -0.01em; line-height: 1;
  border-radius: var(--r-pill);
  border: 1px solid transparent;
  background: transparent; color: var(--sf-ink);
  cursor: pointer;
  transition: background var(--dur-1) var(--ease), color var(--dur-1) var(--ease),
              border-color var(--dur-1) var(--ease), transform var(--dur-1) var(--ease);
}
.btn:focus-visible { outline: 3px solid var(--sf-accent); outline-offset: 2px; }
.btn--primary { background: var(--sf-accent); color: var(--sf-accent-ink); border-color: var(--sf-accent); }
.btn--primary:hover { background: var(--sf-accent-hover); border-color: var(--sf-accent-hover); }
.btn--primary:active { background: var(--sf-accent-press); transform: translateY(1px); }
.btn--secondary { background: var(--sf-tile); color: var(--sf-ink); border-color: var(--sf-rule-strong); }
.btn--secondary:hover { background: var(--sf-surface); }
.btn--ghost { color: var(--sf-ink-2); }
.btn--ghost:hover { color: var(--sf-ink); background: var(--sf-surface); }
.btn--lg { height: 50px; padding: 0 var(--s8); font-size: var(--sf-body); }
.btn--on-dark { background: #fff; color: var(--sf-dark); border-color: #fff; }
.btn--on-dark:hover { background: #e2e8f0; border-color: #e2e8f0; }
.btn--on-dark-ghost { color: #fff; border-color: var(--sf-dark-rule); }
.btn--on-dark-ghost:hover { background: var(--sf-dark-2); }

/* ---------------------------------------------------------------- chips / pills */
.chip {
  display: inline-flex; align-items: center; gap: var(--s2);
  height: 26px; padding: 0 12px;
  font-family: var(--sf-mono); font-size: var(--sf-eyebrow); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--sf-ink-3); background: var(--sf-tile);
  border: 1px solid var(--sf-rule); border-radius: var(--r-pill);
}
.chip .dot { width: 7px; height: 7px; border-radius: var(--r-pill); background: currentColor; flex: none; }
.chip--accent { color: var(--sf-accent); background: var(--sf-accent-quiet); border-color: transparent; }
/* --ok / --warn are capacity meaning only. The chip's own text must say which. */
.chip--ok { color: var(--sf-ok); background: var(--sf-ok-quiet); border-color: transparent; }
.chip--warn { color: var(--sf-warn); background: var(--sf-warn-quiet); border-color: transparent; }
.dot--pulse { position: relative; }
.dot--pulse::after {
  content: ""; position: absolute; inset: -3px; border-radius: 50%;
  border: 1px solid currentColor; opacity: .5;
  animation: pulse 1.8s var(--ease) infinite;
}
@keyframes pulse { 0% { transform: scale(.6); opacity: .6; } 70%,100% { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .dot--pulse::after { animation: none; } }

/* ---------------------------------------------------------------- header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgb(249 250 251 / .82);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--sf-rule);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 64px; gap: var(--s6); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--sf-ink); letter-spacing: -0.02em; }
.brand img { height: 26px; width: auto; }
.brand .sub { font-family: var(--sf-mono); font-size: 10px; font-weight: 500; color: var(--sf-ink-3); text-transform: uppercase; letter-spacing: 0.08em; }
.nav-links { display: flex; align-items: center; gap: var(--s6); }
.nav-links a { font-size: var(--sf-caption); font-weight: 500; color: var(--sf-ink-3); transition: color var(--dur-1) var(--ease); }
.nav-links a:hover { color: var(--sf-ink); }
/* Current page is marked with aria-current="page" — the styling follows the
   semantics rather than a parallel .is-active class that a screen reader
   cannot see. */
.nav-links a[aria-current="page"] { color: var(--sf-accent); font-weight: 600; }
.nav-actions { display: flex; align-items: center; gap: var(--s3); }
@media (max-width: 860px) { .nav-links { display: none; } }

/* ---------------------------------------------------------------- hero */
.hero { padding: var(--s24) 0 var(--s16); }
/* Copy, then the board FULL WIDTH beneath it. A Gantt capture rendered into
   half a column is unreadable, and "you can see the whole plan" is the claim
   the image has to carry. Stacked, it gets the full content width. */
.hero-stack { display: grid; gap: var(--s16); }
.hero-copy { max-width: 1000px; }
@media (max-width: 960px) { .hero-stack { gap: var(--s12); } }
.hero h1 { margin: var(--s4) 0; }
.hero .lede { margin-bottom: var(--s8); }
.hero-cta { display: flex; align-items: center; gap: var(--s3); flex-wrap: wrap; }
.hero-meta { margin-top: var(--s6); font-family: var(--sf-mono); font-size: var(--sf-caption); color: var(--sf-ink-3); display: flex; align-items: center; gap: var(--s2); flex-wrap: wrap; }
.hero-meta .sep { color: var(--sf-ink-4); }

/* Screenshot frame */
.frame {
  border-radius: var(--r-frame);
  background: var(--sf-tile);
  box-shadow: var(--shadow-hover);
  border: 1px solid var(--sf-rule);
}
/* NO overflow:hidden here — it clips .float-card back inside the frame box, so
   every attempt to straddle the edge is silently cropped. Round the two
   children instead. */
.frame-bar {
  display: flex; align-items: center; gap: 6px; padding: 10px 14px;
  background: var(--sf-inset); border-bottom: 1px solid var(--sf-rule);
  border-radius: 15px 15px 0 0;   /* --r-frame minus the 1px border */
}
.frame-bar .tl { width: 10px; height: 10px; border-radius: 50%; background: var(--sf-rule-strong); }
.frame-bar .addr { margin-left: 10px; font-family: var(--sf-mono); font-size: 11px; color: var(--sf-ink-4); }
.frame img { width: 100%; height: auto; display: block; border-radius: 0 0 15px 15px; }
.hero-frame { position: relative; }

/* Floating proof cards over the hero frame */
.float-card {
  position: absolute; background: var(--sf-tile);
  border-radius: var(--r-card); box-shadow: var(--shadow-hover);
  padding: var(--s3) var(--s4); font-size: var(--sf-caption);
  display: flex; align-items: center; gap: var(--s3);
}
.float-card .k { font-family: var(--sf-mono); font-weight: 500; color: var(--sf-ink); }
/* Straddle the frame's OUTER edges so nothing lands on a number or a control. */
.float-card--edge-top { top: -20px; right: -18px; }
.float-card--edge-bot { bottom: -20px; left: -22px; }
/* Below 1081px the container has no slack outside the frame to straddle into. */
@media (max-width: 1080px) { .float-card { display: none; } }

/* ---------------------------------------------------------------- sibling strip */
.sibling { text-align: center; padding: var(--s12) 0; border-bottom: 1px solid var(--sf-rule); }
.sibling p { font-size: var(--sf-caption); color: var(--sf-ink-3); letter-spacing: 0.01em; }
.sibling b { color: var(--sf-ink); }

/* ---------------------------------------------------------------- grids */
.grid { display: grid; gap: var(--s4); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- cards */
.card {
  background: var(--sf-tile); border-radius: var(--r-card);
  box-shadow: var(--shadow-rest); padding: var(--s8);
  transition: box-shadow var(--dur-2) var(--ease), transform var(--dur-2) var(--ease);
}
.card--lift:hover { box-shadow: var(--shadow-hover); transform: translateY(-2px); }
@media (prefers-reduced-motion: reduce) { .card--lift:hover { transform: none; } }
.card .kicker { font-family: var(--sf-mono); font-size: var(--sf-eyebrow); text-transform: uppercase; letter-spacing: 0.08em; color: var(--sf-accent); margin-bottom: var(--s3); }
.card h3 { margin-bottom: var(--s3); }
.card p { color: var(--sf-ink-3); font-size: var(--sf-body); }
.card .learn { display: inline-flex; align-items: center; gap: 6px; margin-top: var(--s4); font-size: var(--sf-caption); font-weight: 600; color: var(--sf-accent); }
.card .learn:hover { color: var(--sf-accent-hover); }

.icon-badge {
  width: 40px; height: 40px; border-radius: var(--r-chip);
  background: var(--sf-accent-quiet); color: var(--sf-accent);
  display: grid; place-items: center; margin-bottom: var(--s4);
}
.icon-badge svg { width: 20px; height: 20px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ---------------------------------------------------------------- problem diagram */
.problem-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: var(--s16); align-items: center; }
@media (max-width: 860px) { .problem-grid { grid-template-columns: 1fr; gap: var(--s8); } }
.collision { background: var(--sf-tile); border-radius: var(--r-card); box-shadow: var(--shadow-rest); padding: var(--s8); }

/* ---------------------------------------------------------------- proof strip */
.proof-strip { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s8); }
.proof {
  display: inline-flex; align-items: center; gap: var(--s2);
  font-family: var(--sf-mono); font-size: var(--sf-caption);
  padding: 8px 14px; border-radius: var(--r-pill);
  background: var(--sf-tile); border: 1px solid var(--sf-rule); color: var(--sf-ink-2);
}
.proof .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--sf-accent); }

/* ---------------------------------------------------------------- showcase */
.showcase { display: grid; gap: var(--s8); }
.showcase-copy { max-width: 760px; }

/* ---------------------------------------------------------------- product film */
.film { margin: 0; }
.film video {
  display: block; width: 100%; height: auto;   /* height:auto — see the note on img */
  aspect-ratio: 16 / 9;                        /* holds the box before metadata loads */
  background: #000;
  border-radius: var(--r-frame);
  border: 1px solid var(--sf-dark-rule);
  box-shadow: 0 24px 60px -24px rgb(0 0 0 / .55);
}

/* ---------------------------------------------------------------- capability list */
.cap-list { display: grid; gap: var(--s3); margin-top: var(--s6); }
.cap-item { display: grid; grid-template-columns: 28px 1fr; gap: var(--s3); align-items: start; }
.cap-item .tick { width: 22px; height: 22px; border-radius: 50%; background: var(--sf-accent-quiet); color: var(--sf-accent); display: grid; place-items: center; margin-top: 2px; }
.cap-item .tick svg { width: 13px; height: 13px; stroke: currentColor; stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.cap-item b { color: var(--sf-ink); }
.cap-item span { color: var(--sf-ink-3); }

/* ---------------------------------------------------------------- view tiles */
.view-tile { background: var(--sf-tile); border-radius: var(--r-card); box-shadow: var(--shadow-rest); padding: var(--s6); display: flex; flex-direction: column; gap: var(--s2); }
.view-tile .vt-icon { color: var(--sf-accent); }
.view-tile .vt-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.view-tile h4 { font-size: var(--sf-body-lg); }
.view-tile p { font-size: var(--sf-caption); color: var(--sf-ink-3); }

/* ---------------------------------------------------------------- pipeline */
.pipeline { display: flex; align-items: stretch; gap: 0; flex-wrap: wrap; margin-top: var(--s8); }
.pl-step {
  flex: 1 1 140px; min-width: 130px; background: var(--sf-tile); border: 1px solid var(--sf-rule);
  border-radius: var(--r-card); padding: var(--s4); position: relative; text-align: center;
}
.pl-step .n { font-family: var(--sf-mono); font-size: 11px; color: var(--sf-accent); }
.pl-step .t { font-size: var(--sf-caption); font-weight: 600; color: var(--sf-ink); margin-top: 4px; }
.pl-arrows { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.pl-arrows .a { color: var(--sf-ink-4); }

/* ---------------------------------------------------------------- honesty band */
.honesty-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s4); margin-top: var(--s12); }
@media (max-width: 780px) { .honesty-cards { grid-template-columns: 1fr; } }
.honesty-card { background: var(--sf-dark-2); border: 1px solid var(--sf-dark-rule); border-radius: var(--r-card); padding: var(--s6); }
.honesty-card .hc-icon { color: #60a5fa; margin-bottom: var(--s3); }
.honesty-card .hc-icon svg { width: 22px; height: 22px; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.honesty-card h4 { color: #fff; font-size: var(--sf-body-lg); margin-bottom: var(--s2); }
.honesty-card p { color: var(--sf-dark-ink-2); font-size: var(--sf-caption); }

/* ---------------------------------------------------------------- pricing */
.pricing-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--s6); max-width: 840px; margin: 0 auto; }
@media (max-width: 720px) { .pricing-grid { grid-template-columns: 1fr; } }
.tier { background: var(--sf-tile); border-radius: var(--r-frame); box-shadow: var(--shadow-rest); padding: var(--s8); display: flex; flex-direction: column; position: relative; }
.tier--promoted { box-shadow: var(--shadow-hover); border: 2px solid var(--sf-accent); }
.tier .badge { position: absolute; top: -12px; left: var(--s8); background: var(--sf-accent); color: #fff; font-family: var(--sf-mono); font-size: 10px; text-transform: uppercase; letter-spacing: 0.08em; padding: 4px 10px; border-radius: var(--r-pill); }
.tier .tname { font-size: var(--sf-h3); }
.tier .price { font-family: var(--sf-mono); font-variant-numeric: tabular-nums; font-size: 44px; font-weight: 600; color: var(--sf-ink); letter-spacing: -0.02em; line-height: 1; margin-top: var(--s4); }
.tier .cadence { font-family: var(--sf-mono); font-size: var(--sf-caption); color: var(--sf-ink-3); margin-top: var(--s2); }
.tier .oneliner { color: var(--sf-ink-3); margin-top: var(--s4); min-height: 48px; }
.tier .feat { list-style: none; padding: 0; margin: var(--s6) 0; display: grid; gap: var(--s3); border-top: 1px solid var(--sf-rule); padding-top: var(--s6); }
.tier .feat li { display: grid; grid-template-columns: 22px 1fr; gap: var(--s2); align-items: start; font-size: var(--sf-caption); color: var(--sf-ink-2); }
.tier .feat .fi { width: 18px; height: 18px; margin-top: 2px; }
.tier .feat .fi svg { width: 18px; height: 18px; stroke-width: 2.2; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.tier .feat .yes { color: var(--sf-ok); }
.tier .feat .soon { color: var(--sf-ink-4); }
/* Greys a row this SEAT does not include — a tier differentiator, never a
   "coming soon". The icon shape must differ too, not just the colour. */
.tier .feat li.is-excluded { color: var(--sf-ink-4); }
.tier .cta-wrap { margin-top: auto; }
.tier .cta-wrap .btn { width: 100%; }
.tier .foot { font-size: 13px; color: var(--sf-ink-4); margin-top: var(--s3); text-align: center; }

/* Rate row (dashed inset) */
.rate-row { border: 1px dashed var(--sf-rule-strong); border-radius: var(--r-card); padding: var(--s6); display: grid; grid-template-columns: 1fr 1fr; gap: var(--s6); margin-top: var(--s8); background: var(--sf-surface); }
@media (max-width: 620px) { .rate-row { grid-template-columns: 1fr; } }
.rate-row .rr .seat { font-family: var(--sf-mono); font-size: var(--sf-caption); color: var(--sf-accent); }
.rate-row .rr b { display: block; color: var(--sf-ink); margin: 4px 0; }
.rate-row .rr span { font-size: var(--sf-caption); color: var(--sf-ink-3); }

/* Trial mechanics strip */
.mech-strip { display: flex; flex-wrap: wrap; gap: 0; border: 1px solid var(--sf-rule); border-radius: var(--r-card); overflow: hidden; margin-top: var(--s8); background: var(--sf-tile); }
.mech-strip .m { flex: 1 1 180px; padding: var(--s4) var(--s6); border-right: 1px solid var(--sf-rule); }
.mech-strip .m:last-child { border-right: 0; }
.mech-strip .m .d { font-family: var(--sf-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--sf-accent); }
.mech-strip .m .x { font-size: var(--sf-caption); color: var(--sf-ink-2); margin-top: 4px; }

/* Requirements box */
.reqbox { background: var(--sf-accent-quiet); border-radius: var(--r-card); padding: var(--s8); margin-top: var(--s8); }
.reqbox .rq-title { display: flex; align-items: center; gap: var(--s2); font-weight: 700; color: var(--sf-ink); }
.reqbox .rq-title svg { width: 20px; height: 20px; stroke: var(--sf-accent); stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.reqbox p { color: var(--sf-ink-3); font-size: var(--sf-caption); margin-top: var(--s3); }

/* ---------------------------------------------------------------- FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--sf-tile); border: 1px solid var(--sf-rule); border-radius: var(--r-card); margin-bottom: var(--s3); box-shadow: var(--shadow-rest); }
.faq summary { list-style: none; cursor: pointer; padding: var(--s6); font-weight: 600; color: var(--sf-ink); display: flex; align-items: center; justify-content: space-between; gap: var(--s4); font-size: var(--sf-body-lg); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .plus { flex: none; width: 22px; height: 22px; position: relative; transition: transform var(--dur-2) var(--ease); }
.faq summary .plus::before, .faq summary .plus::after { content: ""; position: absolute; background: var(--sf-accent); border-radius: 2px; }
.faq summary .plus::before { top: 10px; left: 3px; right: 3px; height: 2px; }
.faq summary .plus::after { left: 10px; top: 3px; bottom: 3px; width: 2px; transition: opacity var(--dur-2) var(--ease); }
.faq details[open] summary .plus::after { opacity: 0; }
.faq .faq-body { padding: 0 var(--s6) var(--s6); color: var(--sf-ink-3); font-size: var(--sf-body); line-height: 1.65; }
.faq .faq-body a { color: var(--sf-accent); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

/* ---------------------------------------------------------------- final CTA */
.final-cta { text-align: center; }
.final-cta h2 { max-width: 20ch; margin: 0 auto var(--s6); }
.final-cta .hero-cta { justify-content: center; }
.final-cta .hero-meta { justify-content: center; }

/* ---------------------------------------------------------------- footer */
.site-footer { background: var(--sf-dark); color: var(--sf-dark-ink-2); padding: var(--s16) 0 var(--s8); }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: var(--s8); }
@media (max-width: 780px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: var(--s8); } }
.footer-grid h5 { color: #fff; font-family: var(--sf-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; margin: 0 0 var(--s4); font-weight: 500; }
.footer-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--s3); }
.footer-grid a { font-size: var(--sf-caption); color: var(--sf-dark-ink-2); }
.footer-grid a:hover { color: #fff; }
.footer-brand .brand { color: #fff; margin-bottom: var(--s4); }
.footer-brand p { font-size: var(--sf-caption); color: var(--sf-dark-ink-2); max-width: 34ch; }
.footer-bottom { border-top: 1px solid var(--sf-dark-rule); margin-top: var(--s12); padding-top: var(--s6); display: flex; justify-content: space-between; flex-wrap: wrap; gap: var(--s3); font-size: 13px; color: var(--sf-dark-ink-2); }
.footer-bottom .mono { font-family: var(--sf-mono); }

/* =========================================================================
   SMARTFLOW PROJECTS EXTENSIONS
   Names that do not exist on the APS site. Each is here because this product
   has an argument to make that APS does not.
   ========================================================================= */

/* --- .figure -------------------------------------------------------------
   APS captioned its screenshots ad hoc, which put one caption under the wrong
   grid child. This product ships five screenshot slots, all of which need a
   caption that SCOPES the claim ("this is a sandbox with sample data"), so the
   caption is bound to the image in the markup instead. */
.figure { margin: 0; display: grid; gap: var(--s3); }
.figure > .frame { margin: 0; }
.figure figcaption { font-size: var(--sf-caption); color: var(--sf-ink-4); max-width: 72ch; }
.figure figcaption b { color: var(--sf-ink-3); font-weight: 600; }

/* --- .meter --------------------------------------------------------------
   A single resource's committed load against their own capacity. This is the
   product's central idea, so it gets a real component rather than a coloured
   div. RULES, non-negotiable:
     1. .meter__label is REQUIRED and must state the condition in words.
        Colour is a second channel, never the only one.
     2. Only two states exist: --ok (within capacity) and --over (overloaded).
        Do not add a third for decoration.
     3. Use role="img" + aria-label on .meter when the fill encodes a value, so
        the bar is not invisible to assistive tech. */
.meter { display: grid; gap: 6px; }
.meter__track {
  position: relative; height: 10px; border-radius: var(--r-pill);
  background: var(--sf-inset); border: 1px solid var(--sf-rule); overflow: hidden;
}
.meter__fill { height: 100%; width: 0; background: var(--sf-accent-100); border-radius: var(--r-pill); }
.meter__label {
  font-family: var(--sf-mono); font-size: var(--sf-eyebrow);
  font-variant-numeric: tabular-nums; letter-spacing: 0.04em;
  color: var(--sf-ink-3); display: flex; align-items: center; gap: var(--s2);
}
.meter__label .k { color: var(--sf-ink); font-weight: 500; }
.meter--ok .meter__fill { background: var(--sf-ok-tint); box-shadow: inset 0 0 0 1px var(--sf-ok); }
.meter--ok .meter__label { color: var(--sf-ok); }
.meter--over .meter__fill { background: var(--sf-warn-tint); box-shadow: inset 0 0 0 1px var(--sf-warn); }
.meter--over .meter__label { color: var(--sf-warn); }
/* Overloaded also reads as a hatch, so the two states differ without colour. */
.meter--over .meter__fill {
  background-image: repeating-linear-gradient(
    45deg, transparent 0 4px, rgb(234 88 12 / .35) 4px 8px);
}

/* --- .cmp-table ----------------------------------------------------------
   The competitive frame is this product's sharpest, best-evidenced argument
   and it is a matrix, not prose. APS had no table styling at all.
   .cmp-yes / .cmp-no / .cmp-partial carry a GLYPH as well as a colour, and the
   cell must also carry visually-hidden text for screen readers. */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--r-card); }
.cmp-table {
  width: 100%; min-width: 640px; border-collapse: collapse;
  background: var(--sf-tile); font-size: var(--sf-caption);
  box-shadow: var(--shadow-rest); border-radius: var(--r-card); overflow: hidden;
}
.cmp-table caption { caption-side: top; text-align: left; padding-bottom: var(--s3); font-size: var(--sf-caption); color: var(--sf-ink-4); }
.cmp-table th, .cmp-table td { padding: var(--s3) var(--s4); text-align: left; border-bottom: 1px solid var(--sf-rule); vertical-align: top; }
.cmp-table thead th {
  font-family: var(--sf-mono); font-size: var(--sf-eyebrow); font-weight: 500;
  text-transform: uppercase; letter-spacing: 0.06em; color: var(--sf-ink-3);
  background: var(--sf-inset); white-space: nowrap;
}
.cmp-table thead th:first-child { width: 34%; }
.cmp-table tbody th { font-weight: 600; color: var(--sf-ink); }
.cmp-table tbody tr:last-child th, .cmp-table tbody tr:last-child td { border-bottom: 0; }
.cmp-table tbody tr:hover { background: var(--sf-bg); }
/* The column that is us. Tinted, not shouted. */
.cmp-table .is-ours { background: var(--sf-accent-quiet); }
.cmp-table thead .is-ours { background: var(--sf-accent-100); color: var(--sf-accent-press); }
.cmp-yes, .cmp-no, .cmp-partial { font-family: var(--sf-mono); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
.cmp-yes { color: var(--sf-ok); }
.cmp-no { color: var(--sf-ink-4); }
.cmp-partial { color: var(--sf-ink-3); }

/* --- .link-badge ---------------------------------------------------------
   FS / SS / FF / SF and signed lag. A verified, code-level differentiator, so
   the four link types appear as data, in mono, not as prose. */
.link-legend { display: flex; flex-wrap: wrap; gap: var(--s2); margin-top: var(--s4); }
.link-badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--sf-mono); font-size: var(--sf-eyebrow); font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--r-chip);
  background: var(--sf-accent-quiet); color: var(--sf-accent-press);
  border: 1px solid var(--sf-accent-100);
}
.link-badge .lag { color: var(--sf-ink-3); font-variant-numeric: tabular-nums; }

/* --- .callout ------------------------------------------------------------
   This product documents what it does NOT do (precedence-only float, day
   granularity, entitlement scope). Those notes need a home that is neither a
   warning nor decoration — a quiet inset that reads as candour. */
.callout {
  border-left: 3px solid var(--sf-rule-strong);
  background: var(--sf-inset);
  border-radius: 0 var(--r-card) var(--r-card) 0;
  padding: var(--s4) var(--s6);
  font-size: var(--sf-caption); color: var(--sf-ink-3);
}
.callout .ct { display: block; font-family: var(--sf-mono); font-size: var(--sf-eyebrow); text-transform: uppercase; letter-spacing: 0.08em; color: var(--sf-ink); margin-bottom: 6px; }
.callout--note { border-left-color: var(--sf-accent); background: var(--sf-accent-quiet); }
.callout--note .ct { color: var(--sf-accent-press); }
.callout--limit { border-left-color: var(--sf-rule-strong); }
.band--dark .callout { background: var(--sf-dark-2); border-left-color: var(--sf-dark-rule); color: var(--sf-dark-ink-2); }
.band--dark .callout .ct { color: #fff; }

/* ---------------------------------------------------------------- scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity var(--dur-3) var(--ease), transform var(--dur-3) var(--ease); }
.reveal.in { opacity: 1; transform: none; }
/* Two guards, deliberately. The media query covers reduced-motion users even if
   JS never runs; main.js also adds .in immediately in that case. Either alone
   is a way for content to end up invisible. */
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }
/* JS off entirely: main.js sets this flag on <html> the moment it runs, so the
   no-JS fallback is the ABSENCE of the flag, which cannot fail silently. */
html:not(.js) .reveal { opacity: 1; transform: none; }

/* ---------------------------------------------------------------- helpers */
.center { text-align: center; }
.mx-auto { margin-left: auto; margin-right: auto; }
.mt-3 { margin-top: var(--s3); }
.mt-4 { margin-top: var(--s4); }
.mt-6 { margin-top: var(--s6); }
.mt-8 { margin-top: var(--s8); }
.mt-12 { margin-top: var(--s12); }
.mb-6 { margin-bottom: var(--s6); }
.mb-8 { margin-bottom: var(--s8); }
.maxw-head { max-width: 24ch; }
.maxw-60 { max-width: 60ch; }
.stack-gap > * + * { margin-top: var(--s4); }
.caption { font-size: var(--sf-caption); color: var(--sf-ink-4); }
.skip-link { position: absolute; left: -9999px; top: 0; background: var(--sf-accent); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0; z-index: 100; }
.skip-link:focus { left: 0; }
/* Screen-reader-only text. Required wherever a glyph or a colour carries
   meaning (comparison cells, capacity meters) — see the rules on .meter. */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}


/* ---------------------------------------------------------------- film
   The deferred YouTube embed. The poster is a <button> rather than a div so it is
   focusable and operable from the keyboard for free — a play control that only
   responds to a mouse is a control half the page's visitors cannot use. The iframe
   replaces it on click; both occupy the same 16:9 box, so nothing reflows. */
.film { margin: var(--s6) 0 0; }
.film__frame {
  display: block; width: 100%; padding: 0; border: 0; cursor: pointer;
  position: relative; background: #000; border-radius: 12px; overflow: hidden;
  aspect-ratio: 16 / 9; box-shadow: var(--sf-shadow-2, 0 10px 30px rgba(0,0,0,.18));
}
.film__frame img { display: block; width: 100%; height: 100%; object-fit: cover; }
.film__frame:focus-visible { outline: 3px solid var(--sf-accent); outline-offset: 3px; }
.film__play {
  position: absolute; inset: 0; display: grid; place-items: center;
  background: rgba(0,0,0,.18); transition: background .18s ease;
}
.film__frame:hover .film__play { background: rgba(0,0,0,.30); }
.film__play svg { filter: drop-shadow(0 2px 8px rgba(0,0,0,.45)); transition: transform .18s ease; }
.film__frame:hover .film__play svg { transform: scale(1.06); }
.film > iframe { display: block; width: 100%; aspect-ratio: 16 / 9; height: auto; border: 0; border-radius: 12px; }
.film .caption a { margin-left: .5ch; }
/* A hover-scale that ignores a stated preference is exactly the kind of small
   disregard this site should not ship. */
@media (prefers-reduced-motion: reduce) {
  .film__play, .film__play svg { transition: none; }
  .film__frame:hover .film__play svg { transform: none; }
}

/* ---------------------------------------------------------------- print */
@media print {
  .site-header, .skip-link, .float-card { display: none; }
  .band { padding: var(--s8) 0; }
  .reveal { opacity: 1; transform: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 11px; color: #555; }
}
