:root {
  --ink: #152029;
  --muted: #5a6874;
  --paper: #f7f9fb;
  --paper-2: #eef2f6;
  --sheet: #ffffff;
  --line: #e5e9ee;
  --rule: #cfd6de;
  --teal: #164863;
  --teal-mid: #1f6f8a;
  --teal-deep: #0c3346;
  --copper: #7a5230;
  --ok: #067647;
  --shadow: 0 12px 40px rgba(12, 51, 70, 0.1);
  --shadow-sm: 0 4px 16px rgba(12, 51, 70, 0.06);
  --radius: 16px;
  --radius-sm: 12px;
  --font-display: "Sora", "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
  --max: 1180px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-spring: cubic-bezier(0.34, 1.2, 0.64, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
body.nav-open {
  overflow: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--teal); }
button { font-family: inherit; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: var(--teal-deep);
  color: #fff;
  padding: 0.6rem 1rem;
  z-index: 100;
}
.skip:focus { top: 1rem; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--teal-mid);
  outline-offset: 3px;
}
.btn:focus-visible,
.nav-toggle:focus-visible,
.calc-user-btn:focus-visible {
  outline-offset: 2px;
}
.btn-primary:focus-visible,
.btn-on-dark:focus-visible,
.calc-user-btn.is-active:focus-visible {
  outline-color: #fff;
  box-shadow: 0 0 0 3px var(--teal-deep);
}

.wrap {
  width: min(var(--max), calc(100% - 2.5rem));
  margin-inline: auto;
}

/* ——— Header ——— */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  /* Glass lives on ::before so backdrop-filter does not trap position:fixed nav */
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-bottom: 1px solid transparent;
  box-shadow: none;
  transition: background 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), border-color 0.25s var(--ease-out);
}
.site-header.is-scrolled::before {
  background: rgba(255, 255, 255, 0.94);
  border-bottom-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  z-index: 2;
  height: 2px;
  width: var(--scroll-progress, 0%);
  background: linear-gradient(90deg, var(--teal-mid), var(--teal));
  pointer-events: none;
  transition: width 0.08s linear;
}
.header-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 72px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  text-decoration: none;
  color: var(--teal-deep);
  flex-shrink: 0;
  transition: transform 0.25s var(--ease-out);
}
.brand:hover { transform: translateY(-1px); }
.brand img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(12, 51, 70, 0.18);
  background: var(--teal-deep);
  transition: transform 0.35s var(--ease-spring);
}
.brand:hover img { transform: rotate(-4deg) scale(1.04); }
.brand-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}
.brand-name {
  font-weight: 700;
  letter-spacing: 0.1em;
  font-size: 0.95rem;
}
.brand-tag {
  font-size: 0.68rem;
  color: var(--muted);
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.nav {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  flex-wrap: nowrap;
}
.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  white-space: nowrap;
  transition: color 0.2s var(--ease-out), background 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.nav > a:not(.btn) {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  z-index: 0;
}
.nav > a:not(.btn)::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: rgba(22, 72, 99, 0.07);
  transform: scale(0.86);
  opacity: 0;
  transition: transform 0.28s var(--ease-spring), opacity 0.22s var(--ease-out);
}
.nav > a:not(.btn)::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0.28rem;
  width: 0.9rem;
  height: 2px;
  border-radius: 2px;
  background: var(--teal);
  transform: translateX(-50%) scaleX(0);
  transition: transform 0.28s var(--ease-out);
}
.nav > a:not(.btn):hover {
  color: var(--teal);
  background: transparent;
}
.nav > a:not(.btn):hover::before,
.nav > a:not(.btn)[aria-current="page"]::before {
  opacity: 1;
  transform: scale(1);
}
.nav > a:not(.btn):hover::after,
.nav > a:not(.btn)[aria-current="page"]::after {
  transform: translateX(-50%) scaleX(1);
}
.nav a[aria-current="page"],
.nav a.is-active {
  color: var(--teal);
  background: transparent;
  font-weight: 600;
}
.nav > a:not(.btn).is-active::before,
.nav > a:not(.btn).is-active::after {
  opacity: 1;
  transform: scale(1);
}
.nav > a:not(.btn).is-active::after {
  transform: translateX(-50%) scaleX(1);
}
.nav-toggle {
  display: none;
  position: relative;
  z-index: 100;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--sheet);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.2s var(--ease-out), border-color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.nav-toggle:hover {
  border-color: var(--teal);
  background: var(--paper-2);
}
.nav-toggle span,
.nav-toggle span::before,
.nav-toggle span::after {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
  position: relative;
  margin: 0 auto;
  transition: transform 0.3s var(--ease-out), opacity 0.2s ease, top 0.3s var(--ease-out), background 0.2s ease;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle[aria-expanded="true"] {
  border-color: var(--teal);
  background: var(--paper-2);
}
.nav-toggle[aria-expanded="true"] span {
  background: transparent;
}
.nav-toggle[aria-expanded="true"] span::before {
  top: 0;
  transform: rotate(45deg);
  background: var(--teal-deep);
}
.nav-toggle[aria-expanded="true"] span::after {
  top: 0;
  transform: rotate(-45deg);
  background: var(--teal-deep);
}

.nav-backdrop {
  position: fixed;
  inset: 0;
  z-index: 85;
  background: rgba(12, 51, 70, 0.42);
  backdrop-filter: blur(6px) saturate(1.05);
  -webkit-backdrop-filter: blur(6px) saturate(1.05);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s var(--ease-out), visibility 0.35s var(--ease-out);
}
.nav-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  text-decoration: none;
  border-radius: 12px;
  padding: 0.75rem 1.25rem;
  font-weight: 600;
  font-size: 0.92rem;
  border: 1px solid transparent;
  transition: background 0.2s var(--ease-out), box-shadow 0.2s var(--ease-out), border-color 0.2s var(--ease-out), color 0.2s var(--ease-out), transform 0.2s var(--ease-out);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary {
  position: relative;
  overflow: hidden;
  background: linear-gradient(180deg, var(--teal-mid) 0%, var(--teal) 100%);
  color: #fff;
  box-shadow: 0 8px 22px rgba(22, 72, 99, 0.22);
  isolation: isolate;
}
.btn-primary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, 0.22) 50%, transparent 65%);
  transform: translateX(-120%);
  transition: transform 0.55s var(--ease-out);
  pointer-events: none;
  z-index: 0;
}
.btn-primary:hover {
  background: linear-gradient(180deg, var(--teal) 0%, var(--teal-deep) 100%);
  color: #fff;
  box-shadow: 0 12px 28px rgba(12, 51, 70, 0.28);
}
.btn-primary:hover::after {
  transform: translateX(120%);
}
.btn-primary > * { position: relative; z-index: 1; }
.btn-ghost {
  background: var(--sheet);
  color: var(--ink);
  border-color: var(--line);
  box-shadow: var(--shadow-sm);
}
.btn-ghost:hover {
  border-color: var(--teal);
  color: var(--teal);
  box-shadow: var(--shadow);
}
.btn-ghost.on-dark {
  background: transparent;
  color: #e8f0f4;
  border-color: rgba(255,255,255,0.28);
  box-shadow: none;
}
.btn-ghost.on-dark:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
}
.btn-on-dark {
  background: #fff;
  color: var(--teal-deep);
}
.btn-on-dark:hover {
  background: #fff;
  color: var(--teal-deep);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.header-cta {
  padding: 0.55rem 1rem;
  font-size: 0.88rem;
  white-space: nowrap;
  flex-shrink: 0;
  animation: cta-glow 3.5s var(--ease-out) 1.2s 2;
}
@keyframes cta-glow {
  0%, 100% { box-shadow: 0 8px 22px rgba(22, 72, 99, 0.22); }
  50% { box-shadow: 0 8px 28px rgba(31, 111, 138, 0.45); }
}
main > section:not(.hero):not(.band) {
  position: relative;
}
main > section:not(.hero):not(.band)::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(ellipse 50% 40% at 100% 0%, rgba(31, 111, 138, 0.045), transparent 60%);
  opacity: 0;
  transition: opacity 0.6s var(--ease-out);
}
main > section:not(.hero):not(.band).is-inview::before {
  opacity: 1;
}
.nav .btn-primary { display: none; }
.nav .btn { border-radius: 12px; }

/* ——— Hero ——— */
.hero {
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(ellipse 55% 45% at 90% 10%, rgba(31, 111, 138, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 40% at 0% 90%, rgba(22, 72, 99, 0.06), transparent 50%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 100%);
}
.hero::before {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  top: -120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(31, 111, 138, 0.1), transparent 68%);
  animation: float-orb 12s ease-in-out infinite;
  pointer-events: none;
}
.hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.4;
  mix-blend-mode: soft-light;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.55'/%3E%3C/svg%3E");
  background-size: 180px 180px;
}
@keyframes float-orb {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-24px, 18px, 0); }
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1.12fr;
  gap: 3rem;
  align-items: center;
  position: relative;
  z-index: 1;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--teal);
  background: rgba(22, 72, 99, 0.06);
  border: 1px solid rgba(22, 72, 99, 0.12);
  border-radius: 999px;
  padding: 0.35rem 0.75rem;
  margin-bottom: 1.15rem;
}
.eyebrow::before {
  content: "";
  width: 0.45rem;
  height: 0.45rem;
  border-radius: 50%;
  background: var(--teal-mid);
  box-shadow: 0 0 0 0 rgba(31, 111, 138, 0.45);
  animation: pulse-dot 2.4s var(--ease-out) infinite;
}
@keyframes pulse-dot {
  0%, 100% { box-shadow: 0 0 0 0 rgba(31, 111, 138, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(31, 111, 138, 0); }
}
h1, h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.04em;
}
h3 { font-family: var(--font-sans); font-weight: 600; letter-spacing: -0.015em; }
h1 {
  font-size: clamp(2.55rem, 5.2vw, 3.9rem);
  line-height: 1.02;
  margin: 0 0 1.1rem;
  color: var(--teal-deep);
}
.hero h1 {
  background: linear-gradient(135deg, var(--teal-deep) 0%, var(--teal) 62%, var(--teal-mid) 100%);
  -webkit-background-clip: text;
  background-clip: text;
}
@supports ((-webkit-background-clip: text) or (background-clip: text)) {
  .hero h1 { color: transparent; }
}
.lede {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.35rem;
  line-height: 1.6;
}
.hero .lede + .lede { margin-top: -0.55rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2rem; }
.hero-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  color: var(--muted);
  font-size: 0.86rem;
  max-width: 38rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.hero-meta > div {
  padding: 1rem 1.1rem 1.05rem;
  border-right: 1px solid var(--line);
}
.hero-meta > div:last-child { border-right: 0; }
.hero-meta strong {
  display: block;
  color: var(--teal-deep);
  font-family: var(--font-display);
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.2rem;
}

.sheet {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: calc(var(--radius) + 2px);
  box-shadow: var(--shadow);
  position: relative;
}
.sheet.hero-sheet {
  padding: 1rem 1rem 0.85rem;
  transition: transform 0.5s var(--ease-out), box-shadow 0.5s var(--ease-out);
  animation: sheet-float 8s ease-in-out infinite;
}
.sheet.hero-sheet:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(12, 51, 70, 0.14);
  animation-play-state: paused;
}
@keyframes sheet-float {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(0, -8px, 0); }
}
.crop {
  position: absolute;
  width: 12px;
  height: 12px;
  border: 1px solid var(--rule);
}
.crop-tl { top: 8px; left: 8px; border-right: 0; border-bottom: 0; }
.crop-tr { top: 8px; right: 8px; border-left: 0; border-bottom: 0; }
.crop-bl { bottom: 8px; left: 8px; border-right: 0; border-top: 0; }
.crop-br { bottom: 8px; right: 8px; border-left: 0; border-top: 0; }

.sheet-bar {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--ink);
  margin-bottom: 0.75rem;
}
.sheet-bar span:last-child {
  font-weight: 500;
  color: var(--muted);
  font-size: 0.78rem;
}
.drawing {
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 22px 22px;
  background-position: -1px -1px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.6rem 0.4rem 0.2rem;
}
.drawing svg { width: 100%; height: auto; }
.sheet-foot {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.chip {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.55rem 0.7rem;
  font-size: 0.78rem;
}
.chip b { display: block; font-size: 0.72rem; letter-spacing: 0.08em; text-transform: uppercase; color: var(--teal); font-family: var(--font-mono); font-weight: 500; }

.video-sheet {
  padding: 1.1rem 1.1rem 1rem;
}
.hero-sheet.video-sheet {
  max-width: none;
}
.video-embed {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px),
    var(--teal-deep);
  background-size: 22px 22px, 22px 22px, auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.video-embed iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}
.video-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin: 0.85rem 0 0;
}
.video-pause {
  flex-shrink: 0;
  min-height: 40px;
  padding: 0.45rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
  color: var(--teal-deep);
  font-weight: 600;
  font-size: 0.86rem;
  cursor: pointer;
}
.video-pause:hover {
  border-color: var(--teal);
  color: var(--teal);
}
.video-caption {
  margin: 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: none;
}
.video-transcript {
  margin: 0.65rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
  max-width: 40rem;
}
.video-transcript summary {
  cursor: pointer;
  color: var(--teal-deep);
  font-weight: 600;
}
.video-transcript p {
  margin: 0.55rem 0 0;
}

/* ——— Sections ——— */
section { padding: 5rem 0; }
section[id] { scroll-margin-top: 5.5rem; }
.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
  margin: 0 0 0.75rem;
}
.section-kicker::before {
  content: "";
  width: 1.35rem;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--copper), rgba(122, 82, 48, 0.2));
}
h2 {
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  margin: 0 0 0.75rem;
  color: var(--teal-deep);
  line-height: 1.12;
}
.section-lead {
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 2.4rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.pipeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: none;
}
.step {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem 1.4rem;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
@media (min-width: 981px) {
  .step:not(:nth-child(3n))::before {
    content: "";
    position: absolute;
    top: 1.85rem;
    right: calc(-0.55rem - 2px);
    width: calc(1.1rem + 4px);
    height: 2px;
    background: linear-gradient(90deg, rgba(22, 72, 99, 0.28), rgba(22, 72, 99, 0.08));
    z-index: 2;
    pointer-events: none;
  }
}
.step::after {
  content: "";
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  top: 0;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: linear-gradient(90deg, var(--teal-mid), var(--teal));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s var(--ease-out);
}
.step:hover {
  box-shadow: var(--shadow);
  border-color: rgba(22, 72, 99, 0.28);
  transform: translateY(-4px);
}
.step:hover::after {
  transform: scaleX(1);
}
.step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-width: 2.4rem;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: rgba(122, 82, 48, 0.08);
  border: 1px solid rgba(122, 82, 48, 0.14);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  color: var(--copper);
  letter-spacing: 0.12em;
  font-weight: 500;
}
.step h3 {
  font-size: 1.12rem;
  margin: 0.45rem 0 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  letter-spacing: 0;
  color: var(--teal-deep);
}
.step p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.5;
  flex: 1;
}

.related-guides {
  margin-top: 2.4rem;
  padding-top: 1.6rem;
  border-top: 1px solid var(--line);
}
.related-guides-label {
  margin: 0 0 0.85rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.related-guides ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
  max-width: 56rem;
}
.related-guides li {
  margin: 0;
}
.related-guides a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  color: var(--teal-deep);
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.4;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--sheet);
  box-shadow: var(--shadow-sm);
  transition: border-color 0.25s var(--ease-out), box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out), color 0.2s;
}
.related-guides a::after {
  content: "";
  flex-shrink: 0;
  width: 0.4rem;
  height: 0.4rem;
  border-right: 2px solid var(--rule);
  border-bottom: 2px solid var(--rule);
  transform: rotate(-45deg);
  transition: transform 0.25s var(--ease-out), border-color 0.25s;
}
.related-guides a:hover {
  color: var(--teal);
  border-color: rgba(22, 72, 99, 0.25);
  box-shadow: var(--shadow);
  transform: translateY(-2px);
  text-decoration: none;
}
.related-guides a:hover::after {
  border-color: var(--teal);
  transform: rotate(-45deg) translate(2px, 2px);
}

.band {
  background:
    radial-gradient(ellipse 55% 50% at 15% 20%, rgba(31, 111, 138, 0.35), transparent 55%),
    radial-gradient(ellipse 45% 40% at 90% 80%, rgba(12, 51, 70, 0.55), transparent 50%),
    var(--teal-deep);
  color: #e7eef2;
  position: relative;
  overflow: hidden;
}
.band::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 40%, #000 15%, transparent 78%);
}
.band > .wrap { position: relative; z-index: 1; }
.band h2, .band .section-kicker { color: #f4efe6; }
.band .section-kicker { color: #e0b07a; }
.band .section-kicker::before {
  background: linear-gradient(90deg, #e0b07a, rgba(224, 176, 122, 0.15));
}
.band .section-lead { color: rgba(231, 238, 242, 0.78); }

.feature-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.1rem;
}
.feature-card {
  background: color-mix(in srgb, #0a2a3a 70%, #164863);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  padding: 1.5rem 1.4rem 1.55rem;
  box-shadow: var(--shadow-sm);
}
.feature-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  color: #fff;
}
.feature-card p { margin: 0 0 0.9rem; color: rgba(231, 238, 242, 0.78); font-size: 0.95rem; }
.feature-card ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}
.feature-card li::before {
  content: "＋ ";
  color: #d4a574;
  font-family: var(--font-mono);
}

.viz-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 1.5rem;
  align-items: stretch;
}
.example-grid {
  display: grid;
  gap: 1rem;
  margin-top: 0.4rem;
}
.example-shot {
  margin: 0;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.35s var(--ease-out), border-color 0.35s var(--ease-out), transform 0.35s var(--ease-out);
}
.example-shot:hover {
  box-shadow: var(--shadow);
  border-color: rgba(22, 72, 99, 0.22);
  transform: translateY(-3px);
}
.example-shot picture,
.example-shot img {
  display: block;
  width: 100%;
  height: auto;
  transition: transform 0.55s var(--ease-out);
}
.example-shot:hover img {
  transform: scale(1.03);
}
.example-shot figcaption {
  padding: 0.75rem 1rem 0.95rem;
  color: var(--muted);
  font-size: 0.88rem;
}
.app-shot img {
  margin-top: -9.3%;
}
.viz-notes {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.9rem;
  margin-top: 1rem;
}
.cutlist-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.cutlist-wrap:focus-visible {
  outline: 3px solid var(--teal-mid);
  outline-offset: 2px;
}
.table-note {
  margin: 0.7rem 0 0;
  color: var(--muted);
  font-size: 0.82rem;
}
.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;
}
.panel {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow-sm);
}
.panel h3 {
  margin: 0 0 0.4rem;
  font-size: 1.2rem;
  font-family: var(--font-sans);
  letter-spacing: 0;
}
.panel p { margin: 0 0 1rem; color: var(--muted); font-size: 0.95rem; }
.view-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}
.view-tabs span {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0.28rem 0.55rem;
  color: var(--teal);
}
.nest-board {
  background: var(--paper-2);
  border: 1px dashed var(--rule);
  border-radius: var(--radius-sm);
  padding: 0.7rem;
  display: grid;
  grid-template-columns: 1.4fr 0.7fr 0.9fr;
  grid-template-rows: 1.2fr 0.8fr;
  gap: 0.45rem;
  min-height: 210px;
}
.panel-piece {
  background: color-mix(in srgb, var(--teal) 18%, #fff);
  border: 1px solid var(--teal-mid);
  border-radius: 6px;
  display: flex;
  align-items: flex-end;
  padding: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  color: var(--teal-deep);
}
.panel-piece:nth-child(2) { background: color-mix(in srgb, var(--copper) 16%, #fff); border-color: var(--copper); }
.panel-piece:nth-child(4) { grid-column: span 2; }

.mfg-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 1.5rem;
  align-items: start;
}
.mfg-grid > * { min-width: 0; }
.cutlist-wrap { max-width: 100%; }
table.cutlist {
  width: 100%;
  min-width: 32rem;
  border-collapse: collapse;
  font-size: 0.82rem;
}
.cutlist th,
.cutlist td {
  text-align: left;
  padding: 0.55rem 0.45rem;
  border-bottom: 1px solid var(--line);
  white-space: nowrap;
}
.cutlist th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
}
.ok-dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok);
  margin-right: 0.35rem;
}
.panel ul {
  margin: 0.15rem 0 0;
  padding-left: 1.1rem;
  color: var(--muted);
}
.panel li + li { margin-top: 0.4rem; }
.panel + .panel { margin-top: 1rem; }

.persona-grid,
.use-grid,
.output-grid,
.trust-grid {
  display: grid;
  gap: 0.9rem;
}
.persona-grid { grid-template-columns: repeat(2, 1fr); }
.use-grid { grid-template-columns: 1.2fr 1fr; }
.output-grid { grid-template-columns: repeat(4, 1fr); }
.trust-grid { grid-template-columns: repeat(3, 1fr); }

.ticket, .use-card, .output, .trust {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.35rem 1.3rem;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
.ticket:hover, .use-card:hover, .output:hover, .trust:hover {
  box-shadow: var(--shadow);
  border-color: rgba(22, 72, 99, 0.22);
  transform: translateY(-3px);
}
.ticket .code {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--copper);
}
.ticket h3, .use-card h3, .output h3, .trust h3 {
  font-family: var(--font-sans);
  letter-spacing: 0;
  font-size: 1.12rem;
  margin: 0.4rem 0 0.45rem;
}
.ticket p, .use-card p, .output p, .trust p {
  margin: 0;
  color: var(--muted);
  font-size: 0.92rem;
}
.ticket ul {
  margin: 0.8rem 0 0;
  padding: 0;
  list-style: none;
  color: var(--ink);
  font-size: 0.88rem;
}
.ticket li + li { margin-top: 0.3rem; }

.use-card.wide { grid-row: span 2; }
.use-note {
  margin-top: 0.8rem;
  font-size: 0.8rem;
  color: var(--muted);
  font-family: var(--font-mono);
}

.templates {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.templates span {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0.4rem 0.75rem;
  font-size: 0.82rem;
  color: var(--ink);
}

.scope {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.scope article {
  border-radius: var(--radius);
  padding: 1.4rem 1.35rem;
}
.scope .in {
  background: var(--sheet);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.scope h3 {
  font-family: var(--font-sans);
  letter-spacing: 0;
  font-size: 1.1rem;
  margin: 0 0 0.7rem;
}
.scope ul { margin: 0; padding-left: 1.1rem; color: var(--muted); }
.scope li + li { margin-top: 0.35rem; }

/* ——— Pricing ——— */
.pricing-hero {
  padding: 2.5rem 0 1.5rem;
}
.pricing-home {
  padding: 4rem 0;
}
.pricing-trial-band {
  padding: 0 0 3rem;
}
.trial-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  background: var(--teal-deep);
  color: #e7eef2;
  border-radius: var(--radius);
  padding: 2rem 2.2rem;
  box-shadow: var(--shadow);
}
.trial-banner h2 {
  color: #fff;
  margin: 0 0 0.5rem;
  font-size: clamp(1.8rem, 3vw, 2.4rem);
}
.trial-banner p {
  margin: 0;
  color: rgba(231, 238, 242, 0.82);
  max-width: 38rem;
}
.trial-banner .section-kicker {
  color: #e0b07a;
}
.trial-banner .section-kicker::before,
.cta-box .section-kicker::before {
  background: linear-gradient(90deg, #e0b07a, rgba(224, 176, 122, 0.15));
}
.pricing-plans,
.pricing-calculator-section {
  padding: 3rem 0;
}
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  margin-top: 1.5rem;
}
.price-card {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem 1.7rem;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.28s var(--ease-out), border-color 0.28s var(--ease-out), transform 0.28s var(--ease-out);
}
.price-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
}
.price-card-featured {
  border-color: var(--teal);
  box-shadow: var(--shadow);
}
.price-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--teal);
  margin: 0 0 0.4rem;
}
.price-badge {
  display: inline-block;
  background: var(--teal);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
  margin: 0 0 1rem;
  width: fit-content;
}
.price-badge-muted {
  background: var(--paper-2);
  color: var(--ink);
  border: 1px solid var(--line);
}
.price-amount {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  color: var(--teal-deep);
  margin: 0 0 0.2rem;
  line-height: 1.1;
}
.price-currency {
  font-size: 0.65em;
  vertical-align: super;
}
.price-plus {
  font-size: 0.45em;
  font-family: var(--font-sans);
  font-weight: 600;
  color: var(--muted);
}
.price-amount-text {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}
.price-period {
  font-size: 0.92rem;
  color: var(--muted);
  margin: 0 0 0.8rem;
}
.price-detail {
  font-size: 0.95rem;
  color: var(--muted);
  margin: 0 0 1rem;
}
.price-regular {
  font-size: 0.88rem;
  color: var(--muted);
  margin: 0 0 1.2rem;
  padding-top: 0.8rem;
  border-top: 1px solid var(--line);
}
.price-features {
  margin: 0 0 1.4rem;
  padding-left: 1.1rem;
  color: var(--muted);
  font-size: 0.92rem;
  flex-grow: 1;
}
.price-features li + li {
  margin-top: 0.35rem;
}
.price-card .btn {
  margin-top: auto;
  width: fit-content;
}
.pricing-more {
  margin: 1.4rem 0 0;
  font-size: 0.95rem;
}
.calc-panel {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.6rem 1.5rem;
  margin-top: 1.2rem;
  max-width: 32rem;
  box-shadow: var(--shadow-sm);
}
.calc-controls label,
.calc-controls .calc-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  margin: 0 0 0.6rem;
}
.calc-user-picker {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1.4rem;
}
.calc-user-btn {
  flex: 1;
  min-width: 3rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  color: var(--ink);
  transition: background 0.15s ease, border-color 0.15s ease;
}
.calc-user-btn:hover {
  border-color: var(--teal);
}
.calc-user-btn.is-active {
  background: var(--teal);
  border-color: var(--teal);
  color: #fff;
}
.calc-result .btn {
  margin-top: 1rem;
}
.calc-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.95rem;
  color: var(--muted);
}
.calc-row strong {
  color: var(--ink);
  font-size: 1.05rem;
}
.calc-row-total {
  border-bottom: 0;
  padding-top: 0.75rem;
  font-weight: 600;
}
.calc-row-total span,
.calc-row-total strong {
  color: var(--teal-deep);
  font-size: 1.15rem;
}
.calc-note {
  margin: 0.8rem 0 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.calc-enterprise-msg {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}

.cta {
  text-align: center;
  padding: 5rem 0 5.5rem;
}
.cta-box {
  background: var(--teal-deep);
  color: #e7eef2;
  border-radius: var(--radius);
  padding: 3.25rem 1.75rem;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.cta-box::after { display: none; }
.cta-box h2 { color: #fff; max-width: 18ch; margin-inline: auto; }
.cta-box .section-kicker { color: #e0b07a; }
.cta-box p { color: rgba(231,238,242,0.78); max-width: 36rem; margin: 0 auto 1.5rem; }
.cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 0.75rem; position: relative; z-index: 1; }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2.6rem 0 2.8rem;
  font-size: 0.88rem;
  color: var(--muted);
  background: var(--sheet);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.6rem;
}
.footer-brand img { width: min(220px, 70%); height: auto; margin-bottom: 0.7rem; }
.footer-product-title {
  margin: 0 0 0.35rem;
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.35;
}
.footer-brand > p {
  margin: 0 0 0.55rem;
  max-width: 34ch;
}
.footer-entity-attrib {
  margin: 0.75rem 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.footer-corporate {
  border-top: 1px solid var(--line);
  padding: 1.25rem 0 1.1rem;
  margin-bottom: 0.25rem;
}
.footer-corporate > p {
  margin: 0 0 0.7rem;
  max-width: 72ch;
  line-height: 1.55;
}
.footer-corporate > p:last-of-type {
  margin-bottom: 1rem;
}
.footer-entity-labels {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.85rem 1.25rem;
  margin: 0;
}
.footer-entity-labels > div {
  min-width: 0;
}
.footer-entity-labels dt {
  margin: 0 0 0.2rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.footer-entity-labels dd {
  margin: 0;
  color: var(--ink);
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.35;
}
.footer-entity-labels dd span {
  display: block;
  margin-top: 0.2rem;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 500;
}
.footer-corporate-meta {
  margin: 1rem 0 0 !important;
  max-width: 72ch;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.5;
}
.site-footer .footer-heading,
.site-footer h4 {
  margin: 0 0 0.55rem;
  font-family: var(--font-sans);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink);
  font-weight: 700;
}
.site-footer a {
  color: var(--ink);
  text-decoration: none;
  background-image: linear-gradient(currentColor, currentColor);
  background-position: 0 100%;
  background-repeat: no-repeat;
  background-size: 0 1px;
  transition: color 0.2s var(--ease-out), background-size 0.28s var(--ease-out);
}
.site-footer a:hover {
  color: var(--teal);
  background-size: 100% 1px;
}
.site-footer ul { margin: 0; padding: 0; list-style: none; }
.site-footer li + li { margin-top: 0.45rem; }
.legal {
  border-top: 1px solid var(--line);
  padding-top: 1rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.8rem;
}
.legal a { text-decoration: underline; text-underline-offset: 3px; }

/* ——— Legal document ——— */
.legal-page {
  padding: 2.4rem 0 5rem;
}
.legal-hero {
  margin-bottom: 2rem;
}
.legal-hero h1 {
  font-size: clamp(2.1rem, 3.6vw, 3.1rem);
  margin-bottom: 0.65rem;
}
.legal-hero .lede {
  max-width: none;
  margin-bottom: 0;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.legal-dates {
  display: flex;
  flex-wrap: wrap;
  gap: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin-bottom: 1rem;
}
.legal-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 1.5rem 2rem;
  align-items: start;
}
.legal-toc {
  position: sticky;
  top: 88px;
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.05rem 1rem 1.15rem;
  box-shadow: var(--shadow-sm);
}
.legal-toc p {
  margin: 0 0 0.55rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--copper);
}
.legal-toc ol {
  margin: 0;
  padding: 0;
  list-style: none;
}
.legal-toc a {
  display: block;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.86rem;
  line-height: 1.35;
  padding: 0.48rem 0.2rem;
  border-top: 1px solid var(--line);
}
.legal-toc li:first-child a { border-top: 0; padding-top: 0.2rem; }
.legal-toc a:hover { color: var(--teal); }

.guide-byline {
  margin: 0.55rem 0 0;
  font-size: 0.92rem;
  color: var(--muted, #5a6b75);
}
.guide-byline a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }

.doc {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 2.2rem 2.6rem;
  box-shadow: var(--shadow-sm);
}
.doc h2 {
  font-size: 1.38rem;
  line-height: 1.25;
  margin: 2.4rem 0 0.9rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line);
  scroll-margin-top: 5.5rem;
}
.doc h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}
.doc h3 {
  font-family: var(--font-sans);
  letter-spacing: 0;
  font-size: 1.02rem;
  line-height: 1.35;
  margin: 1.25rem 0 0.4rem;
}
.doc p {
  margin: 0 0 0.9rem;
  color: var(--ink);
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.doc ul,
.doc ol {
  margin: 0 0 1.05rem;
  padding-left: 1.2rem;
}
.doc li { line-height: 1.55; text-align: justify; text-justify: inter-word; hyphens: auto; }
.doc li + li { margin-top: 0.45rem; }
.doc .note {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 0.95rem 1.05rem;
  font-size: 0.92rem;
  max-width: none;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.fact-list {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  margin: 0.35rem 0 0.4rem;
}
.fact {
  display: grid;
  grid-template-columns: 11.5rem minmax(0, 1fr);
  gap: 0.35rem 1.25rem;
  align-items: start;
  padding: 0.95rem 1.15rem;
  border-top: 1px solid var(--line);
}
.fact:first-child { border-top: 0; }
.fact-k {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  line-height: 1.45;
  padding-top: 0.18rem;
}
.doc p.fact-v,
.fact-v {
  margin: 0;
  min-width: 0;
  max-width: none;
  line-height: 1.5;
  overflow-wrap: break-word;
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
.legal-table-wrap {
  overflow-x: auto;
  margin: 0 0 1.15rem;
  border: 1px solid var(--line);
  border-radius: 12px;
}
.legal-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  margin: 0;
}
.legal-table th,
.legal-table td {
  text-align: left;
  vertical-align: top;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid var(--line);
}
.legal-table tr:last-child th,
.legal-table tr:last-child td { border-bottom: 0; }
.legal-table th {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 500;
  background: var(--paper);
  white-space: nowrap;
}
.legal-table td {
  min-width: 8.5rem;
  text-align: justify;
  hyphens: auto;
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  list-style: none;
  margin: 0 0 1.4rem;
  padding: 0;
  font-size: 0.86rem;
  color: var(--muted);
}
.crumbs li { display: inline-flex; align-items: center; gap: 0.5rem; }
.crumbs li:not(:last-child)::after {
  content: "→";
  color: var(--rule);
}
.crumbs a { color: var(--teal); text-decoration: none; }
.crumbs [aria-current="page"] { color: var(--ink); }

.faq-list {
  display: grid;
  gap: 0.9rem;
}
.faq-item {
  background: var(--sheet);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.25rem 1.3rem 1.3rem;
  box-shadow: var(--shadow-sm), inset 3px 0 0 transparent;
  transition: box-shadow 0.25s var(--ease-out), transform 0.25s var(--ease-out);
}
.faq-item:hover {
  box-shadow: var(--shadow), inset 3px 0 0 var(--teal-mid);
  transform: translateX(3px);
}
.faq-item h3 {
  font-family: var(--font-sans);
  letter-spacing: 0;
  font-size: 1.05rem;
  margin: 0 0 0.45rem;
}
.faq-item p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.error-page {
  padding: 4.5rem 0 5.5rem;
  text-align: center;
}
.error-page h1 { margin-bottom: 0.7rem; }
.error-page .lede {
  max-width: 36rem;
  margin-inline: auto;
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.9rem;
}

.office-map-block {
  margin: 2.2rem 0 0.5rem;
}
.office-map-block h2 {
  margin-bottom: 0.35rem;
}
.office-map {
  margin: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--sheet);
  box-shadow: var(--shadow-sm);
}
.office-map iframe {
  display: block;
  width: 100%;
  max-width: 100%;
  height: 420px;
  border: 0;
}
.office-map figcaption {
  padding: 0.75rem 1rem 1rem;
  font-size: 0.9rem;
  color: var(--muted, #5a6b75);
}
.download-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin: 1rem 0 1.4rem;
}

.reveal,
[data-animate] {
  opacity: 0;
  transform: translateY(28px);
  filter: blur(4px);
  transition:
    opacity 0.7s var(--ease-out),
    transform 0.7s var(--ease-out),
    filter 0.7s var(--ease-out);
}
.reveal.is-visible,
[data-animate].is-visible {
  opacity: 1;
  transform: none;
  filter: none;
}
.delay-1 { transition-delay: 0.06s; }
.delay-2 { transition-delay: 0.14s; }
.delay-3 { transition-delay: 0.22s; }
.delay-4 { transition-delay: 0.3s; }

.hero .reveal.is-visible .eyebrow {
  animation: hero-rise 0.7s var(--ease-out) both;
}
.hero .reveal.is-visible h1 {
  animation: hero-rise 0.75s var(--ease-out) 0.06s both;
}
.hero .reveal.is-visible .lede {
  animation: hero-rise 0.75s var(--ease-out) 0.12s both;
}
.hero .reveal.is-visible .hero-actions {
  animation: hero-rise 0.75s var(--ease-out) 0.2s both;
}
.hero .reveal.is-visible .hero-meta {
  animation: hero-rise 0.75s var(--ease-out) 0.28s both;
}
@keyframes hero-rise {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 1240px) {
  .nav-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .header-inner > .header-cta { display: none; }
  .nav {
    display: flex;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: auto;
    width: min(360px, 90vw);
    height: 100vh;
    height: 100dvh;
    z-index: 95;
    background:
      linear-gradient(180deg, rgba(238, 242, 246, 0.95) 0%, #ffffff 28%),
      var(--sheet);
    border-left: 1px solid var(--line);
    box-shadow: -20px 0 60px rgba(12, 51, 70, 0.18);
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    padding: 5.25rem 1.25rem 1.75rem;
    gap: 0.2rem;
    transform: translate3d(104%, 0, 0);
    visibility: hidden;
    pointer-events: none;
    transition: transform 0.42s var(--ease-out), visibility 0.42s;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .nav::before {
    content: "Menu";
    display: block;
    margin: 0 0.35rem 0.85rem;
    font-family: var(--font-mono);
    font-size: 0.72rem;
    font-weight: 500;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--muted);
  }
  .nav.is-open {
    transform: translate3d(0, 0, 0);
    visibility: visible;
    pointer-events: auto;
  }
  .nav > a:not(.btn) {
    width: 100%;
    padding: 0.95rem 1.05rem;
    border-radius: 14px;
    font-size: 1.08rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  .nav > a:not(.btn)::before {
    display: none;
  }
  .nav > a:not(.btn)::after {
    content: "";
    position: static;
    left: auto;
    bottom: auto;
    width: 0.45rem;
    height: 0.45rem;
    border-right: 2px solid var(--rule);
    border-bottom: 2px solid var(--rule);
    border-radius: 0;
    background: transparent;
    transform: rotate(-45deg) translateX(0);
    opacity: 0.55;
    transition: transform 0.25s var(--ease-out), opacity 0.25s var(--ease-out), border-color 0.25s;
  }
  .nav > a:not(.btn):hover,
  .nav a[aria-current="page"],
  .nav a.is-active {
    background: rgba(22, 72, 99, 0.07);
    color: var(--teal-deep);
  }
  .nav > a:not(.btn):hover::after,
  .nav a[aria-current="page"]::after,
  .nav a.is-active::after {
    opacity: 1;
    border-color: var(--teal);
    transform: rotate(-45deg) translateX(3px);
  }
  .nav .btn {
    width: 100%;
    margin-top: 0.2rem;
  }
  .nav .btn-ghost {
    margin-top: 1rem;
  }
  .nav .btn-primary { display: inline-flex; }
  .nav.is-open > a {
    animation: nav-link-in 0.45s var(--ease-out) both;
  }
  .nav.is-open > a:nth-child(1) { animation-delay: 0.05s; }
  .nav.is-open > a:nth-child(2) { animation-delay: 0.09s; }
  .nav.is-open > a:nth-child(3) { animation-delay: 0.13s; }
  .nav.is-open > a:nth-child(4) { animation-delay: 0.17s; }
  .nav.is-open > a:nth-child(5) { animation-delay: 0.21s; }
  .nav.is-open > a:nth-child(6) { animation-delay: 0.25s; }
  .nav.is-open > a:nth-child(7) { animation-delay: 0.29s; }
  .nav.is-open > a:nth-child(8) { animation-delay: 0.34s; }
  .nav.is-open > a:nth-child(9) { animation-delay: 0.38s; }
}
@keyframes nav-link-in {
  from { opacity: 0; transform: translate3d(18px, 0, 0); }
  to { opacity: 1; transform: none; }
}

@media (max-width: 980px) {
  .hero-grid,
  .pipeline,
  .feature-split,
  .viz-grid,
  .example-grid,
  .viz-notes,
  .mfg-grid,
  .persona-grid,
  .use-grid,
  .output-grid,
  .trust-grid,
  .scope,
  .footer-grid,
  .footer-entity-labels,
  .legal-layout {
    grid-template-columns: 1fr;
  }
  .fact {
    grid-template-columns: 1fr;
    gap: 0.28rem;
    padding: 0.85rem 1rem;
  }
  .contact-grid {
    grid-template-columns: 1fr;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
  }
  .doc { padding: 1.35rem 1.15rem 1.6rem; }
  .pipeline { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .pipeline { grid-template-columns: 1fr; }
  .related-guides ul { grid-template-columns: 1fr; }
  .sheet-foot { grid-template-columns: 1fr; }
  .hero-meta {
    grid-template-columns: 1fr;
  }
  .hero-meta > div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }
  .hero-meta > div:last-child { border-bottom: 0; }
  h1 { font-size: 2.1rem; }
  section { padding: 3.5rem 0; }
  .hero { padding: 2.8rem 0 3.2rem; }
}

::selection {
  background: rgba(31, 111, 138, 0.22);
  color: var(--teal-deep);
}

.back-top {
  position: fixed;
  right: 1.15rem;
  bottom: 1.15rem;
  z-index: 80;
  width: 46px;
  height: 46px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: var(--teal-deep);
  box-shadow: var(--shadow);
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: opacity 0.28s var(--ease-out), transform 0.28s var(--ease-out), visibility 0.28s, border-color 0.2s, background 0.2s;
}
.back-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
}
body.nav-open .back-top {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}
.back-top:hover {
  border-color: var(--teal);
  background: #fff;
}
@media (prefers-reduced-motion: no-preference) {
  body:not(.is-ready) .hero-grid {
    opacity: 0;
    transform: translateY(14px);
  }
  body.is-ready .hero-grid {
    opacity: 1;
    transform: none;
    transition: opacity 0.55s var(--ease-out), transform 0.55s var(--ease-out);
  }
}
.back-top svg {
  display: block;
  margin: 0 auto;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal,
  [data-animate],
  .nav.is-open > a,
  .hero .reveal.is-visible .eyebrow,
  .hero .reveal.is-visible h1,
  .hero .reveal.is-visible .lede,
  .hero .reveal.is-visible .hero-actions,
  .hero .reveal.is-visible .hero-meta {
    animation: none !important;
    transition: none !important;
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
  .hero::before,
  .eyebrow::before,
  .sheet.hero-sheet,
  .header-cta {
    animation: none !important;
  }
  .btn:hover,
  .btn-primary:hover::after,
  .step:hover,
  .step:hover::after,
  .ticket:hover,
  .use-card:hover,
  .output:hover,
  .trust:hover,
  .example-shot:hover,
  .example-shot:hover img,
  .sheet.hero-sheet:hover,
  .related-guides a:hover,
  .related-guides a:hover::after,
  .faq-item:hover,
  .brand:hover,
  .brand:hover img {
    transform: none;
  }
  .back-top {
    transition: none;
  }
  .nav {
    transition: none;
  }
  .site-header::after {
    transition: none;
  }
}
