/* bastioncommerce.com: dark gallery look (docs/redesign-plan.md). The logo's six facet greys on the brand black;
   no accent colour, the Shopify admin screenshots carry the colour. One family, Jost (SIL OFL, self-hosted). */

@font-face {
  font-family: "Jost";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("/assets/fonts/jost-latin-wght-normal.woff2") format("woff2-variations"), url("/assets/fonts/jost-latin-wght-normal.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
/* Arial tuned to Jost's width and vertical metrics, so the swap doesn't move the hero. */
@font-face {
  font-family: "Jost Fallback";
  src: local("Arial"), local("ArialMT"), local("Helvetica");
  size-adjust: 94.7%;
  ascent-override: 113%;
  descent-override: 39.6%;
  line-gap-override: 0%;
}

:root {
  --ink: #050505;
  --surface: #101010;
  --raised: #171717;
  --seam: #2e2e2e;
  --field: #6b6b6b;
  --slate: #8f8f8f;
  --ash: #bdbdbd;
  --chalk: #e3e3e3;
  --white: #ffffff;
  --pass: #4ade80;
  --warn: #facc15;
  --fail: #f87171;
  --font: "Jost", "Jost Fallback", "Century Gothic", system-ui, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: 16px;
  --max: 1232px;
  --sec: 72px;
  /* the floating glass of the capsule nav, the section switcher and the menu sheet: stronger blur, a translucent dark
     surface, a hairline. Nav text is chalk, so it keeps 5:1 even over a white screenshot (alpha .68 on #fff = #585858). */
  --glass: rgba(10, 10, 10, .68);
  --glass-solid: rgba(16, 16, 16, .96);
  --glass-line: rgba(255, 255, 255, .09);
  --glass-blur: saturate(180%) blur(24px);
  --lift: 0 18px 40px -24px rgba(0, 0, 0, .95);
  color-scheme: dark;
}
@media (min-width: 640px) { :root { --gutter: 24px; } }
@media (min-width: 768px) { :root { --sec: 96px; } }
@media (min-width: 1280px) { :root { --sec: 128px; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; background: var(--ink); }
/* the home page adds the section switcher under the nav, so anchors land below both */
html.home { scroll-padding-top: 140px; }
body {
  margin: 0;
  font: 400 16px/1.65 var(--font);
  letter-spacing: .005em;
  background: var(--ink);
  color: var(--chalk);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
@media (min-width: 768px) { body { font-size: 17px; } }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; color: var(--white); font-weight: 400; }
ul, ol { margin: 0; padding: 0; }
button, input, select, textarea { font: inherit; color: inherit; letter-spacing: inherit; }
:focus-visible { outline: 2px solid var(--white); outline-offset: 3px; }
::selection { background: var(--white); color: var(--ink); }
.wrap { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
main { overflow-x: clip; }
.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; }

.skip {
  position: fixed; left: 16px; top: 16px; z-index: 100; padding: 10px 16px; border-radius: 999px;
  background: var(--white); color: var(--ink); font-weight: 500; text-decoration: none; transform: translateY(-160%);
}
.skip:focus-visible { transform: none; }

/* ---------- type roles ---------- */
.label { font-size: 12px; font-weight: 500; line-height: 1.4; text-transform: uppercase; letter-spacing: .18em; color: var(--slate); margin: 0 0 16px; }
.display-xl, .display-l, .display-m { font-weight: 400; text-transform: uppercase; color: var(--white); text-wrap: balance; }
.display-xl { font-size: clamp(36px, 9.6vw, 72px); font-weight: 380; letter-spacing: .04em; line-height: 1.02; }
.display-l { font-size: clamp(32px, 3.4vw, 48px); letter-spacing: .04em; line-height: 1.05; }
.display-m { font-size: clamp(28px, 2.8vw, 40px); letter-spacing: .035em; line-height: 1.08; }
.lead { font-size: clamp(18px, 1.45vw, 21px); line-height: 1.55; color: var(--ash); max-width: 62ch; margin-top: 20px; }
.small { font-size: 14px; line-height: 1.5; color: var(--ash); }
.fine { font-size: 13px; line-height: 1.5; color: var(--slate); }
.fine a, .small a, .lead a { color: var(--white); text-decoration-color: var(--field); text-underline-offset: 3px; }
.fine a:hover, .small a:hover, .lead a:hover { text-decoration-color: var(--white); }

/* ---------- wordmark ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; text-decoration: none; color: var(--white); flex: none; }
.brand .mark { width: 24px; height: 24px; overflow: visible; }
.wordmark { font-size: 15px; font-weight: 500; line-height: 1; letter-spacing: .24em; text-transform: uppercase; white-space: nowrap; margin-right: -.24em; }
.wordmark span { font-weight: 400; color: var(--slate); }

/* ---------- buttons: pills only ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 20px;
  border-radius: 999px; border: 1px solid transparent; font-size: 14px; font-weight: 500; line-height: 1; letter-spacing: .01em;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, transform .08s;
  touch-action: manipulation;
}
.btn:active { transform: scale(.98); }
/* a white pill with a faint top-to-bottom shade, so the white light sweep can be seen crossing it */
.btn.primary { position: relative; isolation: isolate; overflow: hidden; background: linear-gradient(180deg, #ffffff 0%, #e4e4e4 100%); color: var(--ink); }
.btn.primary:hover { background: linear-gradient(180deg, #f4f4f4 0%, #d6d6d6 100%); box-shadow: 0 0 0 1px rgba(255, 255, 255, .18), 0 10px 32px -10px rgba(255, 255, 255, .45); }
/* the light sweep: a bright band with faint grey edges (so it reads on a white pill), behind the label (z-index -1 inside
   the button's own stacking context), moved with transform only. Hover runs it once; .shine (the hero button) idles. */
.btn.primary::after {
  content: ""; position: absolute; z-index: -1; top: 0; bottom: 0; left: -10%; width: 120%; pointer-events: none;
  background: linear-gradient(105deg, transparent 28%, rgba(0, 0, 0, .1) 40%, #ffffff 48%, #ffffff 52%, rgba(0, 0, 0, .1) 60%, transparent 72%);
  transform: translateX(-100%);
}
@media (prefers-reduced-motion: no-preference) {
  .btn.primary:hover::after { transform: translateX(100%); transition: transform .8s var(--ease); }
  .btn.primary.shine::after { animation: shine 4.2s ease-in-out 1.6s infinite; }
}
@keyframes shine { 0% { transform: translateX(-100%); } 34%, 100% { transform: translateX(100%); } }
.btn.ghost { background: transparent; color: var(--white); border-color: var(--field); }
.btn.ghost:hover { border-color: var(--white); }
.btn.lg { min-height: 48px; padding: 0 24px; font-size: 15px; }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: default; transform: none; }
@media (pointer: coarse) { .btn { min-height: 44px; } .btn.lg { min-height: 48px; } }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- capsule nav ---------- */
.top { position: fixed; top: 8px; left: 0; right: 0; z-index: 50; pointer-events: none; }
@media (min-width: 768px) { .top { top: 12px; } }
.capsule {
  pointer-events: auto; width: min(960px, 100% - 32px); height: 56px; margin-inline: auto;
  display: flex; align-items: center; gap: 16px; padding: 0 8px 0 18px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 40px -14px rgba(0, 0, 0, .9);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) { .capsule, .switcher, .sheet { background: var(--glass-solid); } }
@media (min-width: 768px) { .capsule { width: min(960px, 100% - 48px); } }
.nav-links { display: none; list-style: none; gap: 24px; margin-inline: auto; }
@media (min-width: 1280px) { .nav-links { gap: 28px; } }
.nav-links a, .sheet a.row, .nav-pricing { color: var(--chalk); text-decoration: none; font-size: 14px; transition: color .15s; }
.nav-links a:hover, .sheet a.row:hover, .nav-pricing:hover { color: var(--white); }
.nav-links a[aria-current="page"], .nav-pricing[aria-current="page"] { color: var(--white); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--field); }
.nav-pricing { display: none; align-items: center; min-height: 44px; padding: 0 10px; }
.nav-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.nav-actions .btn { min-height: 38px; padding: 0 16px; }
@media (pointer: coarse) { .nav-actions .btn { min-height: 44px; } }
.nav-actions .nav-check { display: none; }
.nav-actions a[aria-current="page"] { border-color: var(--white); }
.menu-btn {
  width: 44px; height: 44px; display: grid; place-items: center; border: 0; border-radius: 999px; background: transparent;
  color: var(--white); cursor: pointer;
}
.menu-btn:hover { background: rgba(255, 255, 255, .06); }
.menu-btn svg { width: 20px; height: 20px; }
.menu-btn .l1, .menu-btn .l2 { transition: transform .15s var(--ease); transform-origin: 12px 12px; }
.menu-btn[aria-expanded="true"] .l1 { transform: translateY(4px) rotate(45deg); }
.menu-btn[aria-expanded="true"] .l2 { transform: translateY(-4px) rotate(-45deg); }
.sheet {
  pointer-events: auto; width: min(960px, 100% - 32px); margin: 8px auto 0; padding: 8px; border-radius: 20px;
  background: rgba(16, 16, 16, .9); border: 1px solid var(--glass-line); box-shadow: 0 10px 40px -14px rgba(0, 0, 0, .9);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
}
.sheet[hidden] { display: none; }
.sheet ul { list-style: none; }
.sheet li + li { border-top: 1px solid var(--seam); }
.sheet a.row { display: flex; align-items: center; min-height: 48px; padding: 0 12px; font-size: 16px; }
.sheet .btn { width: 100%; margin-top: 8px; min-height: 48px; }
@media (prefers-reduced-motion: no-preference) { .sheet:not([hidden]) { animation: sheet-in .16s var(--ease); } }
@keyframes sheet-in { from { opacity: 0; transform: translateY(-4px); } }
.cta-short { display: none; }
@media (max-width: 479px) {
  .capsule { gap: 8px; padding: 0 6px 0 14px; }
  .brand { gap: 8px; }
  .brand .mark { width: 22px; height: 22px; }
  .capsule .wordmark { font-size: 14px; letter-spacing: .18em; margin-right: -.18em; }
  .nav-actions { gap: 4px; }
  .nav-actions .btn { padding: 0 14px; font-size: 13px; }
  .cta-long { display: none; }
  .cta-short { display: inline; }
}
@media (max-width: 359px) { .nav-actions .nav-cta { display: none; } }
@media (min-width: 640px) and (max-width: 1023px) { .nav-pricing { display: inline-flex; } }
@media (min-width: 768px) { .nav-actions .nav-check { display: inline-flex; } .sheet { width: min(960px, 100% - 48px); } }
@media (min-width: 1024px) {
  .nav-links { display: flex; }
  .menu-btn, .sheet { display: none !important; }
  .capsule { gap: 24px; }
}

/* ---------- section switcher (home): Fix / Grow / Protect / Plans, a bar per part that fills while it is read ---------- */
.switcher {
  position: fixed; z-index: 49; top: 70px; left: 50%; width: min(960px, 100% - 32px); height: 44px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 4px; padding: 0 6px; border-radius: 999px;
  background: var(--glass); border: 1px solid var(--glass-line);
  -webkit-backdrop-filter: var(--glass-blur); backdrop-filter: var(--glass-blur);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05), 0 10px 40px -14px rgba(0, 0, 0, .9);
  opacity: 0; visibility: hidden; transform: translate(-50%, -10px);
  transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .35s;
}
.switcher.on { opacity: 1; visibility: visible; transform: translate(-50%, 0); transition-delay: 0s; }
html:not(.js) .switcher, .menu-open .switcher { display: none; }
.switcher a {
  display: flex; flex-direction: column; justify-content: center; gap: 6px; min-width: 0; padding: 0 8px; border-radius: 999px;
  color: var(--chalk); text-decoration: none; font-size: 13px; line-height: 1;
}
.switcher a:hover, .switcher a[aria-current="true"] { color: var(--white); }
.switcher a:focus-visible { outline-offset: -2px; }
.sw-label { text-align: center; white-space: nowrap; }
.sw-bar { display: block; height: 2px; border-radius: 2px; background: rgba(255, 255, 255, .16); overflow: hidden; }
.sw-bar i { display: block; height: 100%; background: var(--white); transform: scaleX(0); transform-origin: 0 50%; will-change: transform; }
@media (min-width: 768px) {
  .switcher { top: 76px; height: 48px; padding: 0 12px; gap: 12px; width: min(960px, 100% - 48px); }
  .switcher a { flex-direction: row; align-items: center; gap: 14px; padding: 0 12px; font-size: 14px; }
  .sw-label { text-align: left; }
  .sw-bar { flex: 1; }
}

/* ---------- sections ---------- */
.sec { padding-top: var(--sec); }
.sec-head { margin-bottom: 48px; max-width: 820px; }

/* ---------- screenshot frames ---------- */
.shot { position: relative; margin: 0; border: 1px solid var(--seam); border-radius: 14px; overflow: hidden; background: var(--surface); }
.shot img { width: 100%; }
.shot::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); pointer-events: none; }
.shot-title { font-size: 15px; font-weight: 500; color: var(--chalk); margin: 0 0 12px; }
.shot-title + .small { margin: -6px 0 12px; }

/* ---------- hero ---------- */
.hero { padding: 120px 0 0; }
.hero-copy { width: min(var(--max), 100% - var(--gutter) * 2); margin-inline: auto; }
.hero h1 .ln { display: inline-block; }
.hero .lead { margin-top: 24px; max-width: 34em; }
.hero .actions { margin-top: 32px; }
.hero-note { margin-top: 20px; max-width: 34em; }
.hero-shot { margin: 48px 0 0 var(--gutter); }
@media (prefers-reduced-motion: no-preference) {
  .js .hero-shot { animation: float-in 1.1s var(--ease) .15s both; }
  .js .hero-shot .shot { animation: drift 9s ease-in-out 1.4s infinite; }
}
@keyframes float-in { from { opacity: 0; transform: translateY(36px) scale(.985); } }
@keyframes drift { 50% { transform: translateY(-8px); } }
.hero-shot .shot { width: 150%; border-radius: 14px 0 0 14px; border-right: 0; }
@media (min-width: 640px) { .hero-shot .shot { width: 118%; } }
@media (max-width: 639px) { .hero .actions .btn { flex: 1 1 100%; } }
@media (min-width: 768px) { .hero { padding-top: 152px; } .hero-shot { margin-left: max(var(--gutter), (100% - var(--max)) / 2); } }
@media (min-width: 1100px) {
  .hero-grid {
    display: grid; align-items: start;
    grid-template-columns: max(var(--gutter), (100% - var(--max)) / 2) minmax(0, clamp(484px, 44vw, 640px)) 56px minmax(0, 1fr);
  }
  .hero-copy { grid-column: 2; width: auto; margin: 0; padding-top: 24px; }
  .hero-shot { grid-column: 4; margin: 0; }
  .hero-shot .shot { width: calc(100% + 160px); }
  .display-xl { font-size: clamp(56px, 5vw, 72px); }
}

/* ---------- works with ---------- */
.works { margin-top: var(--sec); }
.works-row { display: grid; gap: 16px; padding: 28px 0; border-block: 1px solid var(--seam); }
.works-row .label { margin: 0; }
.works-row ul { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 16px 24px; }
.works-row li { display: flex; align-items: center; gap: 10px; color: var(--ash); font-size: 15px; line-height: 1.3; }
.works-row li svg { width: 20px; height: 20px; flex: none; fill: currentColor; }
@media (min-width: 1024px) {
  .works-row { grid-template-columns: 160px 1fr; align-items: center; }
  .works-row ul { grid-template-columns: repeat(4, auto); justify-content: start; gap: 0; }
  .works-row li { padding: 0 32px; border-left: 1px solid var(--seam); }
  .works-row li:first-child { padding-left: 0; border-left: 0; }
}

/* ---------- what Bastion fixes ---------- */
.ico { width: 20px; height: 20px; fill: none; stroke: var(--white); stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.trio { list-style: none; display: grid; border: 1px solid var(--seam); border-radius: 14px; background: var(--surface); }
.trio li { padding: 28px 24px; }
.trio li + li { border-top: 1px solid var(--seam); }
.trio h3 { font-size: 21px; font-weight: 500; line-height: 1.3; margin: 20px 0 8px; }
.trio p { color: var(--ash); }
@media (min-width: 768px) {
  .trio { grid-template-columns: repeat(3, 1fr); }
  .trio li { padding: 32px; }
  .trio li + li { border-top: 0; border-left: 1px solid var(--seam); }
}
.chips { list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-top: 16px; }
.chips li { display: grid; gap: 14px; align-content: start; padding: 16px; border: 1px solid var(--seam); border-radius: 10px; background: var(--surface); font-size: 14px; line-height: 1.4; color: var(--chalk); }
/* .chips.links: each chip is a link to its part of the page (the card is the <a>) */
.chips.links li { display: block; padding: 0; border: 0; background: none; }
.chips.links a {
  display: grid; gap: 14px; align-content: start; height: 100%; min-height: 96px; padding: 18px 16px;
  border: 1px solid var(--seam); border-radius: 12px; background: var(--surface);
  color: var(--white); text-decoration: none; font-weight: 500;
  transition: transform .25s var(--ease), border-color .2s, background-color .2s, box-shadow .25s;
}
.chips.links a:hover { transform: translateY(-3px); border-color: var(--field); background: var(--raised); box-shadow: var(--lift); }
.chips.links .ico { width: 22px; height: 22px; }
.caps { padding-top: 56px; }
@media (min-width: 768px) { .caps { padding-top: 72px; } }
@media (min-width: 640px) { .chips { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .chips { grid-template-columns: repeat(6, 1fr); } }

/* ---------- media panels (Doctor, Appeal) ---------- */
.panel { position: relative; overflow: hidden; border: 1px solid var(--seam); border-radius: 20px; background: var(--surface); }
.panel-copy { position: relative; z-index: 1; padding: 32px 24px 0; }
.panel-copy .lead { font-size: 18px; }
.panel-copy .honest { margin-top: 20px; max-width: 46ch; }
.panel-shot { width: 150%; margin: 40px 0 -48px 24px; border-radius: 14px 0 0 0; }
@media (min-width: 640px) { .panel-copy { padding: 48px 40px 0; } .panel-shot { width: 120%; margin-left: 40px; } }
@media (min-width: 1024px) {
  .panel { min-height: 640px; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .panel-copy { padding: 56px; max-width: 520px; }
  /* the screenshot bleeds a little off one side and the bottom; its buttons and score stay in view */
  .panel-shot { position: absolute; margin: 0; left: 43%; bottom: -40px; width: 59%; border-radius: 14px 0 0 0; }
  .panel.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .panel.flip .panel-copy { grid-column: 2; }
  .panel.flip .panel-shot { left: auto; right: 41%; width: 61%; border-radius: 0 14px 0 0; }
}
.facts { list-style: none; display: grid; margin-top: 24px; }
.facts li { padding: 20px 0; border-top: 1px solid var(--seam); color: var(--ash); }
.facts b { display: block; color: var(--white); font-weight: 500; margin-bottom: 4px; }
@media (min-width: 768px) {
  .facts { grid-template-columns: repeat(3, 1fr); margin-top: 32px; border-top: 1px solid var(--seam); }
  .facts li { border-top: 0; padding: 24px 32px; }
  .facts li:first-child { padding-left: 0; }
  .facts li + li { border-left: 1px solid var(--seam); }
}

/* ---------- AI fields ---------- */
.ai-grid { display: grid; gap: 40px; }
/* below 1024 the tall product screen is cut to its top (state, score, problems, first Google fields) so the page stays short */
@media (max-width: 1023px) { .ai-grid .shot img { aspect-ratio: 1596 / 1240; object-fit: cover; object-position: 50% 0; } }
.ai-rows { list-style: none; align-self: start; }
.ai-rows li { padding: 24px 0; border-top: 1px solid var(--seam); }
.ai-rows li:last-child { border-bottom: 1px solid var(--seam); }
.ai-rows h3 { font-size: 21px; font-weight: 500; line-height: 1.3; margin-bottom: 8px; }
.ai-rows p { color: var(--ash); }
@media (min-width: 1024px) {
  .ai-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 64px; }
  .ai-rows { position: sticky; top: 112px; }
  .ai-rows li:first-child { padding-top: 0; border-top: 0; }
}

/* ---------- inside Bastion Feed ---------- */
.tour { display: grid; gap: 40px; }
.tour-pair { display: grid; gap: 40px; }
.tour-wide { display: grid; gap: 16px; }
.tour-wide .small { max-width: 40ch; }
@media (min-width: 768px) {
  /* columns sized by each screenshot's aspect ratio, so both frames come out the same height */
  .tour-pair { grid-template-columns: 1.459fr 1.145fr; grid-template-rows: auto auto; gap: 0 24px; }
  .tour-pair > div { display: grid; grid-row: span 2; grid-template-rows: subgrid; align-items: end; }
}
@media (min-width: 1024px) {
  .tour { gap: 56px; }
  .tour-wide { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: start; }
  .tour-wide .shot-title { margin-top: 4px; }
}

/* ---------- how it works ---------- */
.steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
.steps li { padding: 24px 0 28px; border-top: 1px solid var(--seam); }
.steps .n { display: block; font-size: 14px; font-weight: 500; color: var(--slate); font-variant-numeric: tabular-nums; margin-bottom: 20px; }
.steps h3 { font-size: 21px; font-weight: 500; line-height: 1.3; margin-bottom: 8px; }
.steps p { color: var(--ash); }
.steps a { color: var(--white); text-underline-offset: 3px; text-decoration-color: var(--field); }
.steps a:hover { text-decoration-color: var(--white); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(2, 1fr); gap: 0 24px; } }
@media (min-width: 1024px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 0 32px; } }

/* ---------- comparison ---------- */
.compare-grid { display: grid; gap: 24px; }
.table-wrap { border: 1px solid var(--seam); border-radius: 14px; overflow: hidden; background: var(--surface); }
.compare { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.45; }
.compare th, .compare td { text-align: left; vertical-align: top; padding: 12px; border-top: 1px solid var(--seam); }
.compare thead th { border-top: 0; font-weight: 500; font-size: 14px; color: var(--ash); }
.compare thead th.us { color: var(--white); }
.compare tbody th { font-weight: 400; color: var(--chalk); }
.compare td { color: var(--ash); font-variant-numeric: tabular-nums; }
.compare td.us { color: var(--white); }
.compare td small { display: block; color: var(--slate); font-size: 13px; }
@media (min-width: 640px) { .compare { font-size: 15px; } .compare th, .compare td { padding: 16px 20px; } }
@media (min-width: 1024px) { .compare-grid { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 32px; align-items: start; } }

/* ---------- plans ---------- */
.plans-head { display: grid; gap: 24px; margin-bottom: 40px; }
.plans-head .sec-head { margin-bottom: 0; }
.billing { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--raised); border: 1px solid var(--seam); justify-self: start; }
.billing button {
  min-height: 40px; padding: 0 18px; border: 0; border-radius: 999px; background: transparent; color: var(--ash);
  font-size: 14px; font-weight: 500; cursor: pointer; transition: background-color .15s, color .15s; white-space: nowrap;
}
@media (pointer: coarse) { .billing button { min-height: 44px; } }
.billing button:hover { color: var(--white); }
.billing button[aria-pressed="true"] { background: var(--white); color: var(--ink); }
html:not(.js) .billing { display: none; }
@media (max-width: 639px) { .billing { display: flex; justify-self: stretch; } .billing button { flex: 1; padding: 0 10px; } }
@media (min-width: 1024px) { .plans-head { grid-template-columns: 1fr auto; align-items: end; } }
.plan-grid { list-style: none; display: grid; gap: 16px; }
@media (min-width: 640px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .plan-grid { grid-template-columns: repeat(3, 1fr); gap: 24px; } }
.plan { display: flex; flex-direction: column; padding: 28px 24px; border: 1px solid var(--seam); border-radius: 14px; background: var(--surface); }
.plan.lead-plan { border-color: var(--white); }
.plan-name { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan h3 { font-size: 21px; font-weight: 500; line-height: 1.3; }
.tag { font-size: 12px; font-weight: 500; line-height: 1; padding: 6px 8px; border-radius: 6px; border: 1px solid var(--seam); color: var(--chalk); white-space: nowrap; }
.lead-plan .tag { background: var(--white); border-color: var(--white); color: var(--ink); }
.pitch { color: var(--ash); margin-top: 4px; }
.price { margin-top: 24px; min-height: 92px; }
.price .amount { font-size: 40px; line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; letter-spacing: .01em; }
.price .per { margin-left: 6px; color: var(--ash); font-size: 15px; }
.price .bill { display: block; margin-top: 8px; font-size: 14px; color: var(--slate); font-variant-numeric: tabular-nums; }
.price .contact { font-size: 32px; line-height: 1.25; color: var(--white); }
.js .plans:not([data-billing="monthly"]) [data-monthly], .js .plans[data-billing="monthly"] [data-yearly] { display: none; }
html:not(.js) .price + .price { margin-top: 8px; min-height: 0; }
@media (prefers-reduced-motion: no-preference) { .js .price { animation: fade .15s ease-out; } }
@keyframes fade { from { opacity: 0; } }
.plan-facts { list-style: none; margin-top: 20px; padding: 16px 0; border-block: 1px solid var(--seam); display: grid; gap: 6px; font-size: 15px; color: var(--chalk); font-variant-numeric: tabular-nums; }
.plan-plus { margin-top: 20px; font-size: 14px; color: var(--slate); }
.plan-list { list-style: none; margin-top: 10px; display: grid; gap: 8px; font-size: 15px; line-height: 1.45; color: var(--ash); }
.plan-list li { position: relative; padding-left: 22px; }
.plan-list li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 10px; height: 6px; border-left: 1.5px solid var(--chalk); border-bottom: 1.5px solid var(--chalk); transform: rotate(-45deg); }
.plan-note { margin-top: auto; padding-top: 20px; font-size: 14px; color: var(--slate); }
.plan-note a { color: var(--white); text-underline-offset: 3px; text-decoration-color: var(--field); }
.plan-note a:hover { text-decoration-color: var(--white); }
.plan-extras { list-style: none; display: grid; gap: 16px; margin-top: 40px; }
.plan-extras li { padding-top: 16px; border-top: 1px solid var(--seam); font-size: 15px; color: var(--ash); }
.plan-extras b { display: block; color: var(--white); font-weight: 500; margin-bottom: 4px; }
@media (min-width: 640px) { .plan-extras { grid-template-columns: repeat(2, 1fr); gap: 24px; } }
@media (min-width: 1024px) { .plan-extras { grid-template-columns: repeat(4, 1fr); } }
.plans-foot { display: grid; gap: 24px; margin-top: 40px; align-items: center; }
.plans-foot .fine { max-width: 72ch; }
@media (min-width: 1024px) { .plans-foot { grid-template-columns: 1fr auto; } }

/* ---------- questions ---------- */
.faq-grid { display: grid; gap: 32px; }
.faq-side .small { margin-top: 20px; }
@media (min-width: 1024px) {
  .faq-grid { grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 32px; }
  .faq-side { position: sticky; top: 112px; align-self: start; }
}
.faq-list { border-bottom: 1px solid var(--seam); }
.faq-list details { border-top: 1px solid var(--seam); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 16px 0;
  font-size: 19px; font-weight: 500; line-height: 1.35; color: var(--white); cursor: pointer; list-style: none;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary svg { width: 20px; height: 20px; flex: none; fill: none; stroke: var(--ash); stroke-width: 1.5; stroke-linecap: round; }
.faq-list summary .v { transition: opacity .15s; }
.faq-list details[open] summary .v { opacity: 0; }
.faq-list summary:hover svg { stroke: var(--white); }
.faq-list .answer { padding: 0 48px 24px 0; color: var(--ash); max-width: 68ch; }
.faq-list .answer a { color: var(--white); text-underline-offset: 3px; text-decoration-color: var(--field); }
.faq-list .answer a:hover { text-decoration-color: var(--white); }

/* ---------- early access band ---------- */
.ea-band { padding: 56px 16px; border: 1px solid var(--seam); border-radius: 20px; background: var(--surface); text-align: center; }
.ea-band > .brand-mark { width: 48px; height: 48px; margin: 0 auto 32px; }
.ea-band .lead { margin-inline: auto; }
.ea-band .perks { list-style: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 32px; margin-top: 20px; color: var(--chalk); font-size: 15px; }
.ea-band .alt { margin-top: 24px; }
@media (min-width: 640px) { .ea-band { padding: 72px 40px; } }
@media (min-width: 1024px) { .ea-band { padding: 96px 56px; } }

#early-access-form {
  max-width: 680px; margin: 40px auto 0; padding: 24px; text-align: left; display: grid; gap: 16px;
  border: 1px solid var(--seam); border-radius: 14px; background: var(--ink);
}
@media (min-width: 640px) { #early-access-form { grid-template-columns: repeat(6, 1fr); padding: 32px; gap: 20px 16px; } }
.field { display: grid; gap: 8px; align-content: start; grid-column: 1 / -1; }
@media (min-width: 640px) { .field.half { grid-column: span 3; } .field.third { grid-column: span 2; } }
.field > label { font-size: 14px; font-weight: 500; color: var(--chalk); }
.field .req, .field .opt { font-weight: 400; color: var(--slate); }
.field input, .field select, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--field);
  background: var(--raised); color: var(--white); font-size: 16px; transition: border-color .15s;
}
.field textarea { min-height: 96px; resize: vertical; line-height: 1.5; }
.field select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23bdbdbd' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 18px; }
.field select option { background: var(--raised); color: var(--white); }
.field input::placeholder, .field textarea::placeholder { color: var(--slate); }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--ash); }
.field input:focus-visible, .field select:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--white); outline-offset: 1px; border-color: var(--white); }
.field [aria-invalid="true"] { border-color: var(--fail); }
.field-err { font-size: 14px; color: var(--fail); }
.field-err[hidden] { display: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
#early-access-form .btn { grid-column: 1 / -1; width: 100%; }
#early-access-form .form-status, #early-access-form .fine { grid-column: 1 / -1; }
#early-access-form.sent .field, #early-access-form.sent .btn { display: none; }
.form-status { font-size: 14px; color: var(--ash); min-height: 1.5em; }
.form-status:empty { min-height: 0; }
.form-status.ok { color: var(--white); font-size: 18px; }
.form-status.err { color: var(--fail); }

/* ---------- footer (Vercel look): logo and one line, four quiet columns, a hairline, the fine print ---------- */
.site-footer { margin-top: var(--sec); border-top: 1px solid var(--seam); padding: 48px 0 32px; font-size: 14px; color: var(--slate); background: var(--ink); }
.footer-grid { display: grid; gap: 32px 24px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.footer-brand { grid-column: 1 / -1; }
.footer-brand .brand { min-height: 32px; }
.footer-brand p { margin-top: 12px; max-width: 36ch; color: var(--slate); line-height: 1.55; }
.footer-brand .footer-mail { margin-top: 8px; }
.footer-mail a { display: inline-flex; align-items: center; min-height: 32px; color: var(--chalk); text-decoration: none; transition: color .15s; }
.footer-mail a:hover { color: var(--white); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--field); }
@media (pointer: coarse) { .footer-mail a { min-height: 44px; } }
.foot-title { font-size: 14px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--chalk); margin-bottom: 10px; }
.site-footer ul { list-style: none; display: grid; gap: 0; }
.site-footer ul a, .footer-contact > a {
  display: inline-flex; align-items: center; min-height: 30px; color: var(--slate); text-decoration: none; transition: color .15s;
  overflow-wrap: anywhere;
}
@media (pointer: coarse) { .site-footer ul a, .footer-contact > a { min-height: 44px; } }
.site-footer ul a:hover, .footer-contact > a:hover { color: var(--white); }
.footer-fine { display: grid; gap: 6px; margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--seam); color: var(--slate); font-size: 13px; line-height: 1.5; }
.footer-fine p { max-width: 96ch; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .site-footer { padding-top: 56px; }
  .footer-grid { grid-template-columns: minmax(0, 2fr) repeat(4, minmax(0, 1fr)); gap: 32px; }
  .footer-brand { grid-column: auto; }
  .footer-fine { grid-template-columns: auto minmax(0, 1fr); gap: 32px; }
  .footer-fine p + p { justify-self: end; text-align: right; }
}

/* ---------- channels (after thenewblack.ai's brand-manager section): label, huge title, channel row, one line and a
   pill on the right, then the real screens two per row in large rounded frames ---------- */
.chan-title { font-size: clamp(36px, 7.4vw, 88px); line-height: 1; letter-spacing: .03em; max-width: 14ch; }
@media (min-width: 1100px) { .chan-title { max-width: none; } }
.chan-logos { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 28px; }
.chan-logos li {
  display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 0 14px; border-radius: 999px;
  border: 1px solid var(--seam); background: var(--surface); color: var(--chalk); font-size: 14px; font-weight: 500;
}
.chan-logos li svg { width: 16px; height: 16px; fill: currentColor; }
.chan-logos li.more { border: 0; background: none; padding: 0 6px; color: var(--ash); font-weight: 400; }
.chan-row { display: grid; gap: 24px; margin-top: 24px; }
.chan-row .lead { margin-top: 0; max-width: 46ch; }
.chan-row .btn { justify-self: start; }
@media (min-width: 900px) { .chan-row { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 48px; } }

.gallery { display: grid; gap: 32px; margin-top: 56px; }
@media (min-width: 768px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 72px; } }
.g-card .shot-title { margin-bottom: 14px; }
/* large rounded frame: hairline, a soft light from the top edge (the "inner glow"), the screen inset with a concentric
   radius (24 - 10 = 14). Both screens share one aspect ratio so the row lines up; object-fit crops the taller one. */
.frame {
  position: relative; margin: 0; padding: 8px; border-radius: 20px; border: 1px solid var(--seam);
  background: radial-gradient(120% 70% at 50% -12%, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 62%), var(--surface);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), inset 0 0 40px rgba(255, 255, 255, .02);
  transition: transform .35s var(--ease), border-color .2s, box-shadow .35s;
}
.frame img { width: 100%; height: auto; aspect-ratio: 1596 / 1094; object-fit: cover; object-position: 50% 0; border-radius: 12px; }
.frame.bottom img { object-position: 50% 100%; }
@media (min-width: 640px) { .frame { padding: 10px; border-radius: 24px; } .frame img { border-radius: 14px; } }
.frame:hover, .shot.lift:hover { transform: translateY(-4px); border-color: var(--field); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .07), var(--lift); }
.shot.lift { transition: transform .35s var(--ease), border-color .2s, box-shadow .35s; }
.gallery-note { margin-top: 20px; }
/* Ask Bastion: a full row under the two screens, shown whole; from 1024 its note sits left of the screen */
.g-card.wide .frame img { aspect-ratio: 1596 / 1316; }
@media (min-width: 768px) { .g-card.wide { grid-column: 1 / -1; } }
@media (min-width: 1024px) {
  .g-card.wide { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: 24px; align-items: start; }
  .g-card.wide .shot-title { margin-top: 4px; }
  .g-card.wide .small { max-width: 34ch; }
}

/* ---------- safe by default ---------- */
.safe { list-style: none; display: grid; gap: 12px; }
.safe li { padding: 24px; border: 1px solid var(--seam); border-radius: 16px; background: var(--surface); }
.safe h3 { font-size: 18px; font-weight: 500; line-height: 1.35; margin: 18px 0 6px; }
.safe p { color: var(--ash); font-size: 15px; }
@media (min-width: 640px) { .safe { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (min-width: 1024px) { .safe { grid-template-columns: repeat(4, 1fr); } }

/* ---------- plan tiles (home): the short version; every feature is on /pricing ---------- */
.tiles { list-style: none; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 12px; padding-top: 11px; }
@media (min-width: 900px) { .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1280px) { .tiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.tile {
  position: relative; display: flex; flex-direction: column; padding: 20px 16px; border: 1px solid var(--seam); border-radius: 16px;
  background: var(--surface); transition: transform .25s var(--ease), border-color .2s, box-shadow .25s;
}
@media (min-width: 640px) { .tile { padding: 24px 20px; } }
.tile:hover { transform: translateY(-4px); border-color: var(--field); box-shadow: var(--lift); }
.tile.top-pick { border-color: var(--white); background: radial-gradient(120% 60% at 50% 0%, rgba(255, 255, 255, .08), rgba(255, 255, 255, 0) 60%), var(--surface); }
.tile h3 { font-size: 18px; font-weight: 500; line-height: 1.3; }
.tile h3 a { color: var(--white); text-decoration: none; }
.tile h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.tile h3 a:focus-visible { outline: none; }
.tile:focus-within { outline: 2px solid var(--white); outline-offset: 3px; }
.tile:has(a:focus:not(:focus-visible)) { outline: none; }
/* the badge sits on the top border, so every tile's name and price line up */
.tile .tag { position: absolute; top: -11px; left: 16px; background: var(--raised); }
@media (min-width: 640px) { .tile .tag { left: 20px; } }
.tile.top-pick .tag { background: var(--white); border-color: var(--white); color: var(--ink); }
.tile-price { margin-top: 14px; display: grid; }
.tile-price .amount { font-size: clamp(28px, 2.4vw, 32px); line-height: 1.1; color: var(--white); font-variant-numeric: tabular-nums; }
.tile-price .per { margin-top: 2px; color: var(--ash); font-size: 14px; }
.tile-price .bill { margin-top: 2px; font-size: 13px; color: var(--slate); font-variant-numeric: tabular-nums; }
.tile-facts { list-style: none; margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--seam); display: grid; gap: 4px; font-size: 14px; color: var(--chalk); font-variant-numeric: tabular-nums; }
/* last line of each paid tile, at the tile's foot so the row lines up */
.tile-trial { margin-top: auto; padding-top: 14px; font-size: 13px; line-height: 1.4; color: var(--slate); }
.js .plans:not([data-billing="monthly"]) .tile [data-monthly], .js .plans[data-billing="monthly"] .tile [data-yearly] { display: none; }
html:not(.js) .tile-price + .tile-price { margin-top: 4px; }
.plans .plans-foot { margin-top: 32px; }
.plans .plans-foot .small { max-width: 62ch; }
.plans .plans-foot .btn { justify-self: start; }

/* ---------- compared (home): one table, Simprosys, linked to the full comparison on /pricing ---------- */
.vs { display: grid; gap: 24px; margin-top: 64px; padding: 24px; border: 1px solid var(--seam); border-radius: 20px; background: var(--surface); }
@media (min-width: 640px) { .vs { padding: 32px; } }
@media (min-width: 1024px) { .vs { grid-template-columns: minmax(0, 4fr) minmax(0, 7fr); gap: 16px 48px; padding: 40px; } .vs > .fine { grid-column: 2; } }
.vs-head h3 { font-size: clamp(22px, 2vw, 28px); font-weight: 400; text-transform: uppercase; letter-spacing: .035em; line-height: 1.15; }
.vs-head .small { margin-top: 10px; }
.vs-more { display: inline-flex; align-items: center; min-height: 44px; margin-top: 8px; color: var(--white); font-size: 15px; font-weight: 500; text-underline-offset: 4px; text-decoration-color: var(--field); }
.vs-more:hover { text-decoration-color: var(--white); }
.vs-table-wrap { border: 1px solid var(--seam); border-radius: 14px; overflow: hidden; }
.vs-table { width: 100%; border-collapse: collapse; font-size: 15px; font-variant-numeric: tabular-nums; }
.vs-table th, .vs-table td { padding: 12px 14px; text-align: left; border-top: 1px solid var(--seam); }
.vs-table thead th { border-top: 0; font-size: 13px; font-weight: 500; color: var(--slate); }
.vs-table tbody th { font-weight: 400; color: var(--chalk); }
.vs-table td { color: var(--ash); }
.vs-table .us { color: var(--white); font-weight: 500; }
@media (min-width: 640px) { .vs-table th, .vs-table td { padding: 14px 20px; } }

/* ---------- accordion (FAQ): real buttons with aria-expanded; a plus that turns into a minus; the answer's height
   eases open (grid rows 0fr -> 1fr). Closed answers are visibility: hidden, so they leave the tab order and the
   accessibility tree. Without JavaScript every answer shows. ---------- */
.acc { border-top: 1px solid var(--seam); }
.acc-item { border-bottom: 1px solid var(--seam); }
.acc h3 { margin: 0; font: inherit; }
.acc-q {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; min-height: 64px; padding: 16px 4px 16px 0;
  border: 0; background: none; color: var(--white); text-align: left; font-size: 18px; font-weight: 500; line-height: 1.35; cursor: pointer;
  transition: color .15s;
}
@media (min-width: 768px) { .acc-q { font-size: 19px; } }
.acc-q:hover { color: var(--chalk); }
.acc-q:focus-visible { outline-offset: 2px; border-radius: 6px; }
.pm { position: relative; flex: none; width: 32px; height: 32px; border-radius: 999px; border: 1px solid var(--seam); transition: border-color .2s, background-color .2s; }
.acc-q:hover .pm { border-color: var(--field); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 1.5px; margin: -.75px 0 0 -6px; border-radius: 2px; background: var(--white); transition: transform .3s var(--ease), opacity .3s; }
.pm::after { transform: rotate(90deg); }
.acc-q[aria-expanded="true"] .pm { background: var(--white); border-color: var(--white); }
.acc-q[aria-expanded="true"] .pm::before { background: var(--ink); }
.acc-q[aria-expanded="true"] .pm::after { transform: rotate(0deg); opacity: 0; }
.acc-a { display: grid; grid-template-rows: 1fr; }
.acc-a > div { overflow: hidden; }
.acc-a p { padding: 0 56px 22px 0; color: var(--ash); max-width: 64ch; }
.acc-a a { color: var(--white); text-underline-offset: 3px; text-decoration-color: var(--field); }
.acc-a a:hover { text-decoration-color: var(--white); }
.js .acc-a { grid-template-rows: 0fr; transition: grid-template-rows .32s var(--ease); }
.js .acc-a > div { visibility: hidden; transition: visibility 0s linear .32s; }
.js .acc-item.open .acc-a { grid-template-rows: 1fr; }
.js .acc-item.open .acc-a > div { visibility: visible; transition-delay: 0s; }
@media (max-width: 639px) { .acc-a p { padding-right: 8px; } }

/* ---------- scroll reveals (home): fade and a small rise, staggered; one IntersectionObserver in site.js ---------- */
@media (prefers-reduced-motion: no-preference) {
  .motion [data-reveal] {
    opacity: 0; transform: translateY(18px);
    transition: opacity .7s var(--ease), transform .7s var(--ease); transition-delay: calc(var(--i, 0) * 70ms);
  }
  .motion [data-reveal].in { opacity: 1; transform: none; }
  /* Safety net: if site.js hasn't started 2.5 s after the page (slow or blocked network), everything shows anyway. */
  .motion:not(.site-on) [data-reveal] { animation: reveal-safety 0s linear 2.5s forwards; }
}
@keyframes reveal-safety { to { opacity: 1; transform: none; } }

/* ---------- opening moment: home hero, once per session (html.intro is set in <head>) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .intro .capsule .mark polygon { transform-box: view-box; transform-origin: 40px 36px; animation: facet .5s var(--ease) both; }
  .intro .capsule .mark polygon:nth-child(2) { animation-delay: 40ms; }
  .intro .capsule .mark polygon:nth-child(3) { animation-delay: 80ms; }
  .intro .capsule .mark polygon:nth-child(4) { animation-delay: 120ms; }
  .intro .capsule .mark polygon:nth-child(5) { animation-delay: 160ms; }
  .intro .capsule .mark polygon:nth-child(6) { animation-delay: 200ms; }
  .intro .hero h1 .ln { animation: rise .6s var(--ease) .12s both; }
  .intro .hero h1 .ln + .ln { animation-delay: .19s; }
  .intro .hero .after { animation: fade .4s ease-out .32s both; }
}
@keyframes facet { from { opacity: 0; transform: scale(.85); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }

/* ---------- free store check ---------- */
.page-top { padding-top: 120px; }
@media (min-width: 768px) { .page-top { padding-top: 152px; } }
.check-layout { display: grid; gap: 48px; }
@media (min-width: 1024px) { .check-layout { grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: 64px; } }
.check-head .lead { max-width: 56ch; }
#check-form { margin-top: 40px; display: grid; gap: 10px; padding: 24px; border: 1px solid var(--seam); border-radius: 14px; background: var(--surface); }
#check-form > label { font-size: 14px; font-weight: 500; color: var(--chalk); }
.check-field { display: grid; gap: 10px; }
.check-field input {
  width: 100%; min-width: 0; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 1px solid var(--field);
  background: var(--raised); color: var(--white); font-size: 16px; transition: border-color .15s;
}
.check-field input::placeholder { color: var(--slate); }
.check-field input:hover { border-color: var(--ash); }
.check-field input:focus-visible { outline: 2px solid var(--white); outline-offset: 2px; border-color: var(--white); }
.check-field .btn { min-height: 52px; padding: 0 24px; font-size: 15px; }
@media (min-width: 640px) { .check-field { grid-template-columns: minmax(0, 1fr) auto; } }
.check-running { display: flex; align-items: center; gap: 16px; margin-top: 24px; color: var(--ash); }
.check-running[hidden], .check-result[hidden] { display: none; }
.check-running img { width: 72px; height: auto; flex: none; }
.check-aside { align-self: start; padding-top: 4px; }
.check-aside ul { list-style: none; display: grid; margin-top: 4px; }
.check-aside li { padding: 14px 0; border-top: 1px solid var(--seam); color: var(--ash); font-size: 15px; }
.check-aside .cant { margin-top: 20px; color: var(--slate); font-size: 14px; }
@media (min-width: 1024px) { .check-aside { position: sticky; top: 112px; padding-top: 0; } }
.check-result { margin-top: 48px; }
.check-result h2 { font-size: clamp(26px, 2.6vw, 36px); text-transform: uppercase; letter-spacing: .035em; line-height: 1.1; margin-bottom: 10px; overflow-wrap: anywhere; }
.check-result h2:focus { outline: none; }
.check-result > .fine { margin-top: 8px; }
.check-note { margin-top: 16px; padding: 16px 18px; border: 1px solid var(--seam); border-left: 2px solid var(--slate); border-radius: 10px; background: var(--surface); color: var(--chalk); }
.check-group { margin-top: 32px; }
.check-group h3 { font-size: 12px; font-weight: 500; line-height: 1.4; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.check-rows { list-style: none; display: grid; gap: 8px; }
.check-row { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 14px; align-items: start; padding: 14px 16px; border: 1px solid var(--seam); border-radius: 10px; background: var(--surface); }
.check-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 999px; border: 1.5px solid var(--slate); color: var(--slate); }
.check-mark svg { width: 15px; height: 15px; }
.check-row.pass .check-mark { color: var(--pass); border-color: var(--pass); }
.check-row.warn .check-mark { color: var(--warn); border-color: var(--warn); }
.check-row.fail .check-mark { color: var(--fail); border-color: var(--fail); }
.check-text { display: grid; gap: 2px; min-width: 0; }
.check-text b { font-weight: 500; color: var(--white); }
.check-text span { color: var(--ash); font-size: 15px; overflow-wrap: anywhere; }
.check-text small { color: var(--slate); font-size: 14px; }
.check-cta { margin-top: 40px; padding: 24px; border: 1px solid var(--seam); border-left: 1px solid var(--white); border-radius: 14px; background: var(--surface); }
.check-cta h3 { font-size: 21px; font-weight: 500; line-height: 1.3; margin-bottom: 8px; }
.check-cta p { color: var(--ash); max-width: 60ch; }
.check-cta .actions { margin-top: 20px; }
.check-result > .actions { margin-top: 32px; }

/* ---------- legal pages ---------- */
.legal-hero { padding: 120px 0 32px; border-bottom: 1px solid var(--seam); }
@media (min-width: 768px) { .legal-hero { padding: 152px 0 40px; } }
.legal-hero h1 { font-size: clamp(28px, 2.8vw, 40px); text-transform: uppercase; letter-spacing: .035em; line-height: 1.08; }
.legal-hero .meta { margin-top: 16px; font-size: 14px; color: var(--slate); }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 32px; }
.legal-tabs a {
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--seam);
  color: var(--ash); font-size: 14px; text-decoration: none; transition: color .15s, border-color .15s;
}
.legal-tabs a:hover { color: var(--white); border-color: var(--field); }
.legal-tabs a[aria-current="page"] { background: var(--white); border-color: var(--white); color: var(--ink); font-weight: 500; }
@media (pointer: coarse) { .legal-tabs a { min-height: 44px; } }
.legal-grid { display: grid; gap: 0; padding-top: 24px; }
.toc { display: none; }
@media (min-width: 1024px) {
  .legal-grid { grid-template-columns: 240px minmax(0, 1fr); gap: 64px; padding-top: 48px; }
  .toc { display: grid; gap: 2px; position: sticky; top: 104px; align-self: start; max-height: calc(100vh - 128px); overflow-y: auto; }
}
.toc .toc-title { font-size: 12px; font-weight: 500; letter-spacing: .18em; text-transform: uppercase; color: var(--slate); margin-bottom: 12px; }
.toc a { display: flex; gap: 10px; padding: 6px 0 6px 14px; border-left: 2px solid var(--seam); color: var(--ash); font-size: 14px; line-height: 1.45; text-decoration: none; transition: color .15s, border-color .15s; }
.toc a span { color: var(--slate); font-variant-numeric: tabular-nums; }
.toc a:hover { color: var(--white); }
.toc a.on { color: var(--white); border-left-color: var(--white); }
.toc a.on span { color: var(--chalk); }
.doc { max-width: 68ch; overflow-wrap: break-word; }
.doc .intro { font-size: 19px; line-height: 1.6; color: var(--chalk); margin: 0 0 8px; }
.doc section { padding-top: 40px; scroll-margin-top: 96px; }
.doc h2 { display: flex; align-items: baseline; gap: 16px; font-size: 24px; font-weight: 500; line-height: 1.3; margin: 0 0 14px; }
.doc h2 .n { font-size: 14px; font-weight: 500; color: var(--slate); font-variant-numeric: tabular-nums; flex: none; }
.doc h3 { font-size: 18px; font-weight: 500; line-height: 1.4; margin: 28px 0 8px; }
.doc p, .doc li { font-size: 16.5px; line-height: 1.75; color: var(--ash); }
.doc p { margin: 0 0 14px; }
.doc ul, .doc ol { padding-left: 22px; margin: 0 0 16px; }
.doc li { margin-bottom: 6px; }
.doc li::marker { color: var(--slate); }
.doc a { color: var(--white); text-decoration-color: var(--field); text-underline-offset: 3px; overflow-wrap: anywhere; }
.doc a:hover { text-decoration-color: var(--white); }
.doc b, .doc strong { color: var(--white); font-weight: 500; }
.doc code { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: .86em; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--seam); background: var(--raised); color: var(--chalk); overflow-wrap: anywhere; }
.doc .box { margin: 20px 0; padding: 18px 20px; border: 1px solid var(--seam); border-left: 2px solid var(--white); border-radius: 10px; background: var(--surface); }
.doc .box p { margin: 0; color: var(--chalk); }
.doc .box p + p { margin-top: 10px; }
.doc table { width: 100%; border-collapse: collapse; margin: 8px 0 20px; font-size: 14px; line-height: 1.55; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--seam); color: var(--ash); }
.doc th { color: var(--white); font-weight: 500; }
@media (max-width: 639px) { .doc table { font-size: 13px; } .doc th, .doc td { padding-right: 8px; } }

/* ---------- 404 ---------- */
.notfound { min-height: calc(100svh - 240px); display: grid; place-items: center; text-align: center; padding: 140px 0 40px; }
.notfound .brand-mark { width: 56px; height: 56px; margin: 0 auto 32px; }
.notfound .label { margin-bottom: 16px; }
.notfound p.small { margin-top: 16px; font-size: 17px; }
.notfound .actions { justify-content: center; margin-top: 32px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .chips.links a:hover, .tile:hover, .frame:hover, .shot.lift:hover { transform: none; }
}
