/* CertiReplica product website
   Layout: a deep teal opening band and footer, light long-scroll sections in a 1140px container: the same skeleton
   and class vocabulary as the other CERTICONS product sites. The colours are the product's own (the teal of the web
   app and of Setup on warm paper neutrals), and the shapes are the product's: calm, squared, a record and its copy. */
:root {
  --bg: #f4f2ec; --surface: #ffffff; --surface-2: #ebe8df; --ink: #1b2229; --ink-2: #3d4751; --muted: #5a636d; --line: #d9d5ca; --line-strong: #b5b0a2;
  --brand: #0f5b6b; --brand-strong: #0a4553; --brand-soft: #dcedf0; --glow: #5cbace; --glow-soft: #a9dfea;
  --ok: #1b6a43; --ok-soft: #e1f1e7; --amber: #8f4405; --amber-soft: #faecd7; --crit: #a3221b; --crit-soft: #fae4e1; --info: #285a87; --info-soft: #e3edf6;
  --deep: #072a33; --deep-2: #0b3f4b; --deep-line: rgba(169, 223, 234, .16); --on-deep: #e9f3f5; --on-deep-muted: #a9c6cc;
  --display: "Inter", "Segoe UI", system-ui, sans-serif; --body: "Inter", "Segoe UI", system-ui, sans-serif; --mono: "IBM Plex Mono", "Cascadia Mono", Consolas, "Courier New", monospace;
  --radius: 10px; --radius-s: 6px; --shadow: 0 1px 2px rgba(27, 34, 41, .06), 0 12px 28px -18px rgba(7, 42, 51, .35);
  --container: 1140px; --gutter: clamp(16px, 4vw, 32px);
  color-scheme: light;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--body); font-size: 17px; line-height: 1.6; color: var(--ink); background: var(--bg); overflow-x: hidden; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--display); line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(2.05rem, 4.8vw, 3.4rem); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(1.65rem, 3.2vw, 2.4rem); font-weight: 800; letter-spacing: -.02em; }
h3 { font-size: 1.22rem; font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0 0 1em; }
.lede { font-size: 1.18rem; color: var(--ink-2); max-width: 46rem; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-size: .92em; }
code { font-family: var(--mono); font-size: .88em; background: var(--surface-2); padding: .1em .4em; border-radius: 4px; overflow-wrap: anywhere; }
pre { max-width: 100%; font-family: var(--mono); font-size: .86rem; background: var(--deep); color: var(--on-deep); padding: 16px 18px; border-radius: var(--radius-s); overflow-x: auto; line-height: 1.55; }
pre code { background: none; padding: 0; color: inherit; overflow-wrap: normal; }
/* grid and flex children must never widen the page */
.hero-grid > *, .split > *, .grid > *, .contact-grid > *, .band > *, .footer-grid > *, .stats > *, .steps > *, .plans > *, .obj-grid > *, .engine > *, .replica > * { min-width: 0; }
.container { width: min(var(--container), 100%); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 8vw, 100px); }
.section.tight { padding-block: clamp(40px, 5vw, 64px); }
.section.alt { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section-head { max-width: 48rem; margin-bottom: clamp(28px, 4vw, 48px); }
.section-head.center { margin-inline: auto; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--display); font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 10px; height: 13px; border: 2px solid currentColor; border-radius: 2px; }
.center .eyebrow::before { display: none; }
:focus-visible { outline: 3px solid var(--glow); outline-offset: 3px; border-radius: 4px; }
.section :focus-visible, .section.alt :focus-visible { outline-color: var(--brand); }
.skip { position: absolute; left: -999px; top: 8px; background: var(--brand); color: #fff; padding: 8px 12px; border-radius: 6px; z-index: 100; }
.skip:focus { left: 8px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-family: var(--display); font-weight: 700; font-size: .98rem; padding: 12px 20px; border-radius: 8px; border: 1.5px solid transparent; cursor: pointer; transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease; text-decoration: none; white-space: nowrap; }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 18px -10px rgba(15, 91, 107, .9); }
.btn-primary:hover { background: var(--brand-strong); }
.hero .btn-primary, .page-hero .btn-primary, .band .btn-primary { background: var(--glow); color: #06222a; box-shadow: 0 8px 22px -12px rgba(92, 186, 206, .9); }
.hero .btn-primary:hover, .page-hero .btn-primary:hover, .band .btn-primary:hover { background: var(--glow-soft); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--ink-2); background: var(--surface); }
.btn-light { background: #fff; color: var(--deep); }
.btn-light:hover { background: var(--brand-soft); }
.btn-outline-light { background: transparent; color: var(--on-deep); border-color: rgba(233, 243, 245, .4); }
.btn-outline-light:hover { border-color: var(--on-deep); background: rgba(255, 255, 255, .06); }
.btn-sm { padding: 8px 14px; font-size: .9rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 5px; background: var(--brand-soft); color: var(--brand); letter-spacing: .02em; white-space: nowrap; }
.pill.new { background: var(--amber-soft); color: var(--amber); }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.mapped { background: var(--surface-2); color: var(--ink-2); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.crit { background: var(--crit-soft); color: var(--crit); }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(7, 42, 51, .82); backdrop-filter: saturate(150%) blur(12px); -webkit-backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid var(--deep-line); transition: background .25s ease; }
.site-header.on-light { background: rgba(244, 242, 236, .9); border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; gap: 20px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 500; font-size: 1.15rem; color: var(--on-deep); letter-spacing: -.01em; }
.brand b { font-weight: 800; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 7px; }
.brand small { display: block; font-family: var(--body); font-weight: 500; font-size: .7rem; color: var(--on-deep-muted); letter-spacing: .02em; margin-top: -2px; }
.on-light .brand { color: var(--ink); }
.on-light .brand b { color: var(--brand); }
.on-light .brand small { color: var(--muted); }
.nav-links { display: flex; align-items: center; gap: 2px; margin-left: auto; list-style: none; padding: 0; margin-block: 0; }
.nav-links a { display: block; padding: 8px 10px; border-radius: 6px; color: var(--on-deep-muted); font-weight: 500; font-size: .93rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--on-deep); background: rgba(255, 255, 255, .08); text-decoration: none; }
.on-light .nav-links a { color: var(--ink-2); }
.on-light .nav-links a:hover, .on-light .nav-links a[aria-current="page"] { color: var(--brand); background: var(--brand-soft); }
.nav-links a.nav-portal { display: inline-flex; align-items: center; gap: 6px; }
.nav-links a.nav-portal svg { width: 15px; height: 15px; opacity: .85; }
.nav-cta { margin-left: 6px; }
.nav-links a.btn { color: #06222a; background: var(--glow); }
.nav-links a.btn:hover { background: var(--glow-soft); color: #06222a; }
.on-light .nav-links a.btn { color: #fff; background: var(--brand); }
.on-light .nav-links a.btn:hover { background: var(--brand-strong); color: #fff; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 1.5px solid var(--deep-line); color: var(--on-deep); border-radius: 8px; width: 42px; height: 40px; cursor: pointer; }
.on-light .nav-toggle { color: var(--ink); border-color: var(--line-strong); }
.nav-toggle span { display: block; width: 18px; height: 2px; background: currentColor; margin: 3px auto; transition: transform .2s ease, opacity .2s ease; }
@media (max-width: 1120px) {
  .nav-toggle { display: block; }
  .nav-links { position: absolute; left: 0; right: 0; top: 100%; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px var(--gutter) 16px; background: var(--deep); border-bottom: 1px solid var(--deep-line); display: none; max-height: calc(100vh - 68px); overflow-y: auto; }
  .on-light .nav-links { background: var(--surface); border-bottom-color: var(--line); }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; font-size: 1.05rem; }
  .nav-cta { margin: 8px 0 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }
}

/* Opening band: the panel of Setup, with its receding outlines of a record */
.hero, .page-hero { position: relative; background: linear-gradient(180deg, var(--deep-2) 0%, var(--deep) 100%); color: var(--on-deep); overflow: hidden; isolation: isolate; }
.hero::before, .page-hero::before, .band::after { content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 670 720'%3E%3Crect x='2' y='2' width='420' height='520' rx='46' fill='none' stroke='white' stroke-opacity='0.075' stroke-width='2'/%3E%3Crect x='62' y='50' width='420' height='520' rx='42' fill='none' stroke='white' stroke-opacity='0.064' stroke-width='2'/%3E%3Crect x='122' y='98' width='420' height='520' rx='38' fill='none' stroke='white' stroke-opacity='0.053' stroke-width='2'/%3E%3Crect x='182' y='146' width='420' height='520' rx='34' fill='none' stroke='white' stroke-opacity='0.042' stroke-width='2'/%3E%3Crect x='242' y='194' width='420' height='520' rx='30' fill='none' stroke='white' stroke-opacity='0.031' stroke-width='2'/%3E%3C/svg%3E") no-repeat right -210px top -190px / 670px auto; }
.hero-grid { display: grid; grid-template-columns: .98fr 1.02fr; gap: clamp(32px, 5vw, 64px); align-items: center; padding-block: clamp(52px, 7vw, 100px); }
.hero h1 { color: #fff; margin-bottom: 18px; }
.hero h1 em { font-style: normal; color: var(--glow); }
.hero .lede { color: var(--on-deep-muted); font-size: 1.16rem; margin-bottom: 28px; }
.hero .eyebrow, .page-hero .eyebrow { color: var(--glow); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; padding: 0; list-style: none; color: var(--on-deep-muted); font-size: .92rem; }
.hero-trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust svg { width: 16px; height: 16px; color: var(--glow); flex: none; }
.rise { opacity: 0; transform: translateY(16px); animation: rise .7s cubic-bezier(.2, .7, .2, 1) forwards; }
.rise.d1 { animation-delay: .08s; } .rise.d2 { animation-delay: .18s; } .rise.d3 { animation-delay: .28s; } .rise.d4 { animation-delay: .4s; } .rise.d5 { animation-delay: .55s; }
@keyframes rise { to { opacity: 1; transform: none; } }
@media (max-width: 960px) { .hero-grid { grid-template-columns: 1fr; } }

/* The opening illustration: one record of the source and what becomes of it in three targets */
.replica { display: grid; grid-template-columns: minmax(0, .9fr) 64px minmax(0, 1.1fr); align-items: center; font-size: .86rem; }
.replica-source, .replica-target { background: rgba(255, 255, 255, .05); border: 1px solid rgba(169, 223, 234, .22); border-radius: 12px; padding: 14px 16px; }
.replica-source { border-color: rgba(92, 186, 206, .6); background: rgba(92, 186, 206, .09); box-shadow: 0 24px 60px -30px rgba(0, 0, 0, .7); }
.replica small { display: block; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: var(--on-deep-muted); margin-bottom: 6px; font-weight: 600; }
.replica b { display: block; font-family: var(--mono); font-weight: 500; font-size: .95rem; color: #fff; }
.replica span.what { display: block; color: var(--on-deep-muted); margin-top: 2px; }
.replica dl { margin: 12px 0 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; font-family: var(--mono); font-size: .74rem; color: var(--on-deep-muted); }
.replica dl div { min-width: 0; display: flex; justify-content: space-between; gap: 10px; border-top: 1px dashed rgba(169, 223, 234, .18); padding-top: 4px; }
.replica dt { flex: none; }
.replica dd { margin: 0; min-width: 0; color: var(--on-deep); text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.replica-wires { width: 64px; height: 100%; min-height: 300px; display: block; }
.replica-wires path { vector-effect: non-scaling-stroke; fill: none; stroke: rgba(92, 186, 206, .55); stroke-width: 2; stroke-linecap: round; stroke-dasharray: 5 7; animation: wire 2.4s linear infinite; }
@keyframes wire { to { stroke-dashoffset: -24; } }
.replica-targets { display: grid; gap: 12px; }
.replica-target .state { display: inline-flex; align-items: center; gap: 6px; font-family: var(--display); font-weight: 700; font-size: .72rem; padding: 2px 8px; border-radius: 5px; margin-top: 8px; }
.state.created { background: rgba(98, 197, 149, .16); color: #8fe0b6; }
.state.same { background: rgba(255, 255, 255, .09); color: var(--on-deep); }
.state.held { background: rgba(232, 170, 94, .16); color: #f0c188; }
.replica-target p { margin: 6px 0 0; color: var(--on-deep-muted); font-size: .8rem; line-height: 1.45; }
.replica-caption { margin: 14px 0 0; font-size: .8rem; color: var(--on-deep-muted); text-align: center; }
@media (max-width: 560px) {
  .replica { grid-template-columns: 1fr; }
  .replica-wires { width: 100%; height: 34px; min-height: 0; }
  .replica-wires .wide { display: none; }
}
@media (min-width: 561px) { .replica-wires .narrow { display: none; } }

/* Strip under the opening band */
.targets-wrap { background: var(--deep); color: var(--on-deep-muted); border-top: 1px solid var(--deep-line); padding-block: 24px 28px; }
.targets-label { text-align: center; font-size: .78rem; letter-spacing: .12em; text-transform: uppercase; margin: 0 0 16px; font-family: var(--display); font-weight: 700; }
.targets { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.target { display: inline-flex; align-items: center; gap: 9px; height: 42px; padding: 0 16px 0 7px; border: 1px solid var(--deep-line); border-radius: 8px; background: rgba(255, 255, 255, .03); font-family: var(--display); font-weight: 600; font-size: .88rem; line-height: 1; color: var(--on-deep); white-space: nowrap; }
.target i { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: rgba(255, 255, 255, .07); }
.target svg { width: 18px; height: 18px; display: block; stroke: var(--glow); }
.targets-more { text-align: center; margin: 14px 0 0; font-size: .9rem; }
.targets-more a { color: var(--glow-soft); }

/* Screenshots: figures, tabbed gallery, lightbox */
.shot { margin: 0; min-width: 0; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(27, 34, 41, .05), 0 24px 50px -28px rgba(7, 42, 51, .5); cursor: zoom-in; transition: transform .35s ease, box-shadow .35s ease; }
.shot:hover { transform: translateY(-4px); }
.shot img { display: block; width: 100%; height: auto; }
.shot figcaption { padding: 9px 14px; font-size: .82rem; color: var(--muted); border-top: 1px solid var(--line); background: var(--surface-2); }
.shot.small { max-width: 520px; }
.gallery-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 22px; }
.gallery-tabs button { font: 700 .88rem/1 var(--display); padding: 10px 14px; border-radius: 8px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); cursor: pointer; transition: background .2s ease, color .2s ease, border-color .2s ease; }
.gallery-tabs button:hover { border-color: var(--brand); color: var(--brand); }
.gallery-tabs button[aria-selected="true"] { background: var(--brand); border-color: var(--brand); color: #fff; }
.gallery-stage { position: relative; aspect-ratio: 2040 / 1350; border-radius: 12px; overflow: hidden; border: 1px solid var(--line-strong); background: var(--surface-2); box-shadow: 0 2px 4px rgba(27, 34, 41, .05), 0 40px 80px -36px rgba(7, 42, 51, .55); }
.gallery-item { position: absolute; inset: 0; margin: 0; opacity: 0; transform: scale(.985); transition: opacity .55s ease, transform .55s ease; pointer-events: none; cursor: zoom-in; }
.gallery-item.is-active { opacity: 1; transform: none; pointer-events: auto; }
.gallery-item img { display: block; width: 100%; height: auto; }
.gallery-item figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 36px 20px 14px; color: #fff; font-size: .9rem; line-height: 1.45; background: linear-gradient(to bottom, rgba(7, 42, 51, 0), rgba(7, 42, 51, .9)); }
.gallery-note { text-align: center; color: var(--muted); font-size: .92rem; margin: 18px 0 0; }
@media (max-width: 600px) { .gallery-tabs button { padding: 8px 11px; font-size: .8rem; } .gallery-item figcaption { display: none; } .gallery-stage { border-radius: 8px; } }
.lightbox { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; padding: clamp(12px, 3vw, 40px); background: rgba(4, 26, 32, .94); opacity: 0; transition: opacity .25s ease; }
.lightbox[hidden] { display: none; }
.lightbox.open { opacity: 1; }
.lightbox img { display: block; max-width: min(1700px, 100%); max-height: 100%; width: auto; height: auto; border-radius: 8px; box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8); }
.lightbox-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff; font-size: 26px; line-height: 1; cursor: pointer; display: grid; place-items: center; }
.lightbox-close:hover { background: rgba(255, 255, 255, .18); }
.lightbox figcaption { color: var(--on-deep-muted); font-size: .9rem; text-align: center; margin-top: 12px; max-width: 70ch; }
.lightbox figure { margin: 0; display: grid; justify-items: center; max-height: 100%; min-width: 0; }
.shot-placeholder { aspect-ratio: 2040 / 1350; width: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; background: linear-gradient(160deg, var(--deep-2), var(--deep)); color: var(--on-deep); font-family: var(--display); }
.shot-placeholder span { font-weight: 700; font-size: 1.05rem; }
.shot-placeholder small { color: var(--on-deep-muted); font-family: var(--mono); font-size: .75rem; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: var(--radius-s); padding: 20px 20px 16px; box-shadow: var(--shadow); }
.stat b { display: block; font-family: var(--display); font-size: clamp(2rem, 4vw, 2.7rem); font-weight: 800; color: var(--brand); letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.stat span { color: var(--muted); font-size: .95rem; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .stats { grid-template-columns: 1fr; } }

/* Cards and grids */
.grid { display: grid; gap: 20px; }
.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: 1fr 1fr; } }
@media (min-width: 601px) and (max-width: 900px) { .grid-3 > :last-child:nth-child(odd), .grid-4 > :last-child:nth-child(odd) { grid-column: span 2; } }
@media (max-width: 600px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); min-width: 0; transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; position: relative; }
a.card { color: inherit; display: block; }
a.card:hover { text-decoration: none; }
.card:hover { transform: translateY(-3px); border-color: var(--line-strong); }
.card h3 { margin-top: 14px; }
.card p { color: var(--ink-2); margin-bottom: 0; font-size: .98rem; }
.card p + p { margin-top: .7em; }
.card .more { display: inline-block; margin-top: 12px; font-family: var(--display); font-weight: 700; font-size: .9rem; color: var(--brand); }
.icon { width: 44px; height: 44px; border-radius: 8px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.icon svg { width: 23px; height: 23px; }
.icon.amber { background: var(--amber-soft); color: var(--amber); }
.icon.ok { background: var(--ok-soft); color: var(--ok); }
.icon.info { background: var(--info-soft); color: var(--info); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: block; position: relative; padding-left: 30px; color: var(--ink-2); }
.check-list li > svg { position: absolute; left: 0; top: 3px; width: 20px; height: 20px; color: var(--ok); }
.check-list.plain li > svg { color: var(--muted); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.split.top { align-items: start; }
.split.rev > :first-child { order: 2; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } .split.rev > :first-child { order: 0; } }
.feature-block { padding-block: clamp(36px, 5vw, 64px); border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.feature-block:last-child { border-bottom: 0; }
.feature-block h2 { font-size: clamp(1.5rem, 2.6vw, 2rem); margin-top: 14px; }
.feature-block p { color: var(--ink-2); }
.subnav { position: sticky; top: 68px; z-index: 40; background: rgba(244, 242, 236, .93); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.subnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 6px 0; overflow-x: auto; scrollbar-width: none; }
.subnav ul::-webkit-scrollbar { display: none; }
.subnav a { display: block; padding: 7px 12px; border-radius: 6px; font-size: .88rem; font-weight: 600; color: var(--ink-2); white-space: nowrap; font-family: var(--display); }
.subnav a:hover, .subnav a.active { background: var(--brand-soft); color: var(--brand); text-decoration: none; }

/* Steps */
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px 24px; box-shadow: var(--shadow); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); font-family: var(--display); font-weight: 800; font-size: 2.3rem; color: var(--brand-soft); position: absolute; right: 18px; top: 10px; line-height: 1; }
.step h3 { margin-top: 0; padding-right: 60px; }
.step p { color: var(--ink-2); margin: 0; }
@media (max-width: 900px) { .steps { grid-template-columns: 1fr; } }

/* The eight steps of the engine: a numbered rail, two rows of four */
.engine { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; counter-reset: engine; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.engine li { counter-increment: engine; position: relative; padding: 22px 20px 22px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.engine li:nth-child(4n) { border-right: 0; }
.engine li:nth-last-child(-n+4) { border-bottom: 0; }
.engine li::before { content: counter(engine); display: grid; place-items: center; width: 30px; height: 30px; border-radius: 6px; background: var(--brand); color: #fff; font-family: var(--display); font-weight: 800; font-size: .95rem; margin-bottom: 12px; }
.engine li.writes::before { background: var(--amber); }
.engine h3 { font-size: 1.05rem; margin-bottom: 6px; }
.engine p { margin: 0; color: var(--ink-2); font-size: .93rem; line-height: 1.5; }
.engine-note { margin-top: 14px; color: var(--muted); font-size: .92rem; }
@media (max-width: 900px) {
  .engine { grid-template-columns: 1fr 1fr; }
  .engine li, .engine li:nth-child(4n) { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .engine li:nth-child(2n) { border-right: 0; }
  .engine li:nth-last-child(-n+2) { border-bottom: 0; }
}
@media (max-width: 520px) {
  .engine { grid-template-columns: 1fr; }
  .engine li, .engine li:nth-child(2n), .engine li:nth-child(4n) { border-right: 0; border-bottom: 1px solid var(--line); }
  .engine li:last-child { border-bottom: 0; }
}

/* What a simulation says: a report in the product's own words, as text */
.report { background: var(--deep); color: var(--on-deep); border-radius: var(--radius); padding: clamp(18px, 3vw, 26px); font-family: var(--mono); font-size: .8rem; line-height: 1.6; overflow-x: auto; box-shadow: 0 30px 60px -34px rgba(7, 42, 51, .8); }
.report h3 { font-family: var(--display); color: #fff; font-size: 1rem; margin: 0 0 4px; }
.report .sub { font-family: var(--body); color: var(--on-deep-muted); font-size: .84rem; margin: 0 0 14px; }
.report table { font-size: inherit; min-width: 430px; }
.report th, .report td { padding: 5px 10px 5px 0; border-bottom: 1px dashed rgba(169, 223, 234, .16); background: none; color: inherit; font-family: inherit; letter-spacing: 0; text-transform: none; font-size: inherit; }
.report th { color: var(--on-deep-muted); font-weight: 500; }
.report tr:last-child td { border-bottom: 0; }
.report .rec td { padding-top: 12px; color: #fff; font-weight: 500; border-bottom: 0; }
.report .was { color: #f0b5ae; }
.report .now { color: #9be3bd; }
.report .tag { display: inline-block; font-family: var(--display); font-weight: 700; font-size: .7rem; padding: 1px 7px; border-radius: 4px; margin-right: 8px; }
.report .tag.create { background: rgba(98, 197, 149, .18); color: #9be3bd; }
.report .tag.update { background: rgba(92, 186, 206, .2); color: var(--glow-soft); }
.report .tag.held { background: rgba(232, 170, 94, .18); color: #f0c188; }
.report .tag.same { background: rgba(255, 255, 255, .1); color: var(--on-deep); }
.report .why { color: var(--on-deep-muted); font-family: var(--body); font-size: .84rem; }

/* Highlight band */
.band { background: linear-gradient(135deg, var(--brand) 0%, var(--deep-2) 55%, var(--deep) 100%); color: #fff; border-radius: 14px; padding: clamp(30px, 5vw, 60px); display: grid; grid-template-columns: 1.2fr .8fr; gap: 32px; align-items: center; position: relative; overflow: hidden; }
.band { isolation: isolate; }
.band::after { background-position: right -170px top -150px; background-size: 520px auto; }
.band h2 { color: #fff; }
.band p { color: rgba(255, 255, 255, .85); }
.band .eyebrow { color: var(--glow-soft); }
.band .btn-group { justify-content: flex-end; position: relative; z-index: 1; }
@media (max-width: 900px) { .band { grid-template-columns: 1fr; } .band .btn-group { justify-content: flex-start; } }

/* Tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
table { border-collapse: collapse; width: 100%; font-size: .95rem; }
th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-family: var(--display); font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); }
tbody th { text-transform: none; letter-spacing: 0; font-size: .95rem; color: var(--ink); }
tr:last-child td, tr:last-child th { border-bottom: 0; }
td.yes { color: var(--ok); font-weight: 700; }
.versus { min-width: 760px; }
.versus thead th:nth-child(1) { width: 20%; }
.versus thead th:nth-child(2) { width: 36%; }
.versus thead th:nth-child(3) { background: var(--brand); color: #fff; }
.versus td:nth-child(3) { background: #f3f9fa; }
.versus tbody th { background: var(--surface); font-weight: 700; }
@media (max-width: 700px) {
  /* On a phone each row becomes a block: the question, then the two answers under their names. */
  .versus { min-width: 0; }
  .versus thead { display: none; }
  .versus tr { display: block; border-bottom: 1px solid var(--line); padding: 14px 0 6px; }
  .versus tr:last-child { border-bottom: 0; }
  .versus tbody th, .versus td { display: block; border: 0; padding: 2px 16px 10px; }
  .versus tbody th { font-size: 1.05rem; }
  .versus td::before { display: block; font: 700 .72rem/1.6 var(--display); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
  .versus td:nth-child(2)::before { content: "B1 InterCompany"; }
  .versus td:nth-child(3)::before { content: "CertiReplica"; color: var(--brand); }
  .versus td:nth-child(3) { border-left: 3px solid var(--brand); margin: 0 14px 8px; padding: 8px 12px 10px; border-radius: 4px; }
}

/* Licensing */
.plans { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; position: relative; }
.plan.featured { border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 24px 50px -28px rgba(7, 42, 51, .55); }
.plan .tag { position: absolute; top: -12px; left: 24px; }
.plan h3 { margin: 10px 0 0; font-size: 1.25rem; }
.plan .module { font-family: var(--mono); font-size: .8rem; color: var(--muted); }
.plan p { color: var(--ink-2); font-size: .96rem; margin: 0; }
.plan .check-list li { font-size: .93rem; }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .plans { grid-template-columns: 1fr; } }

/* FAQ */
.faq { display: grid; gap: 10px; max-width: 56rem; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 0 20px; box-shadow: var(--shadow); }
.faq summary { cursor: pointer; list-style: none; padding: 16px 0; font-family: var(--display); font-weight: 700; font-size: 1.02rem; display: flex; align-items: center; gap: 14px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; margin-left: auto; font-size: 1.4rem; font-weight: 400; color: var(--brand); transition: transform .25s ease; flex: none; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details > div { padding: 0 0 18px; color: var(--ink-2); }
.faq details > div p:last-child { margin-bottom: 0; }
.faq-group { margin-top: clamp(32px, 5vw, 56px); }
.faq-group:first-child { margin-top: 0; }

/* Forms */
.form { display: grid; gap: 14px; }
.form .row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .form .row { grid-template-columns: 1fr; } }
label { display: block; font-family: var(--display); font-weight: 600; font-size: .88rem; margin-bottom: 6px; color: var(--ink-2); }
input, select, textarea { width: 100%; font: inherit; font-size: 1rem; padding: 11px 13px; border: 1.5px solid var(--line-strong); border-radius: var(--radius-s); background: var(--surface); color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(15, 91, 107, .16); }
textarea { min-height: 130px; resize: vertical; }
fieldset.checks { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
fieldset.checks legend { font-family: var(--display); font-weight: 600; font-size: .88rem; margin-bottom: 8px; color: var(--ink-2); padding: 0; }
fieldset.checks label { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-weight: 500; font-size: .98rem; color: var(--ink); }
fieldset.checks input { width: 18px; height: 18px; padding: 0; accent-color: var(--brand); }
.form-note { font-size: .85rem; color: var(--muted); margin: 0; }
.form-status { display: none; padding: 12px 14px; border-radius: var(--radius-s); font-weight: 600; }
.form-status.ok { display: block; background: var(--ok-soft); color: var(--ok); }
.form-status.err { display: block; background: var(--crit-soft); color: var(--crit); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.panel { min-width: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(20px, 3vw, 34px); box-shadow: var(--shadow); }
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 32px; align-items: start; }
@media (max-width: 900px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card dt { font-family: var(--display); font-weight: 700; font-size: .8rem; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 16px; }
.contact-card dd { margin: 4px 0 0; }

/* Sub pages */
.page-hero { padding-block: clamp(44px, 6vw, 76px); }
.page-hero .container { position: relative; }
.page-hero h1 { color: #fff; max-width: 22em; }
.page-hero .lede { color: var(--on-deep-muted); }
.page-hero .lede a { color: var(--glow-soft); }
.breadcrumb { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0 0 18px; font-size: .85rem; color: var(--on-deep-muted); }
.breadcrumb a { color: var(--on-deep-muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; opacity: .5; }
.prose { max-width: 48rem; }
.prose h2 { font-size: 1.5rem; margin-top: 2em; }
.prose h3 { margin-top: 1.6em; font-size: 1.1rem; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin-bottom: .4em; color: var(--ink-2); }
.callout { background: var(--brand-soft); border-left: 4px solid var(--brand); border-radius: var(--radius-s); padding: 16px 20px; margin: 0 0 1.6em; color: var(--ink-2); }
.callout.honest { background: var(--amber-soft); border-left-color: var(--amber); }
.callout p:last-child { margin-bottom: 0; }
/* Guides (resources) */
.article-meta { color: var(--on-deep-muted); font-size: .9rem; margin-top: 10px; }
.article { max-width: 50rem; }
.article h2 { scroll-margin-top: 90px; }
.article .table-wrap { margin: 1.2em 0; }
.article .check-list { margin: 1em 0 1.6em; }
.guides .card h3 { font-size: 1.18rem; }

/* Objects */
.obj-area { padding-block: clamp(28px, 4vw, 48px); border-bottom: 1px solid var(--line); scroll-margin-top: 120px; }
.obj-area:last-child { border-bottom: 0; }
.obj-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
@media (max-width: 800px) { .obj-grid { grid-template-columns: 1fr; } }
.obj { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; box-shadow: var(--shadow); scroll-margin-top: 130px; }
.obj header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 8px; }
.obj h3 { margin: 0; font-size: 1.12rem; }
.obj-note { color: var(--ink-2); font-size: .93rem; margin-bottom: 12px; }
.obj dl { margin: 0; display: grid; gap: 6px; font-size: .9rem; }
.obj dl div { display: grid; grid-template-columns: 9.5rem 1fr; gap: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.obj dt { color: var(--muted); font-weight: 600; }
.obj dd { margin: 0; color: var(--ink-2); }
@media (max-width: 480px) { .obj dl div { grid-template-columns: 1fr; gap: 0; } }
.legend { display: flex; flex-wrap: wrap; gap: 10px 26px; list-style: none; padding: 0; margin: 0; color: var(--ink-2); font-size: .95rem; }
.legend li { display: flex; gap: 10px; align-items: baseline; max-width: 30rem; }

/* Footer */
.site-footer { background: var(--deep); color: var(--on-deep-muted); padding-block: clamp(44px, 6vw, 72px) 28px; border-top: 1px solid var(--deep-line); font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.site-footer h4 { color: #fff; font-size: .82rem; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: var(--on-deep-muted); }
.site-footer a:hover { color: #fff; }
.site-footer .brand { color: var(--on-deep); }
.footer-bottom { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--deep-line); display: grid; gap: 8px; font-size: .82rem; }
.footer-bottom p { margin: 0; max-width: 70rem; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }

/* Scroll reveal (only when JS is on) */
.js .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2, .7, .2, 1), transform .7s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .08s; } .js .reveal.d2 { transition-delay: .16s; } .js .reveal.d3 { transition-delay: .24s; } .js .reveal.d4 { transition-delay: .32s; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .rise, .js .reveal { opacity: 1; transform: none; }
  .gallery-item, .lightbox, .shot { transition: none; }
  .replica-wires path { animation: none; }
}
@media print {
  .site-header, .site-footer, .subnav, .btn-group, .nav-toggle { display: none !important; }
  .hero, .page-hero { background: none; color: #000; }
  .hero h1, .page-hero h1 { color: #000; }
  .js .reveal, .rise { opacity: 1 !important; transform: none !important; }
}
