/* ==========================================================================
   Local AI pages. Loaded per page, after site.css, and built only from its tokens,
   so both themes follow automatically. Every class here starts with la- except the
   face names on the isometric drawings.
   ========================================================================== */

/* ---------- Landing hero ---------- */
.la-hero { overflow: hidden; isolation: isolate; }
.la-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 72px 72px; mask-image: linear-gradient(115deg, transparent 15%, #000 75%); opacity: .55; }
.la-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 28px; font-family: var(--mono); font-size: .76rem; letter-spacing: .03em; color: var(--ink-2); }
.la-meta li { display: inline-flex; align-items: center; gap: 8px; }
.la-meta li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }

/* ---------- Designed for ---------- */
.la-strip { border-block: 1px solid var(--line); background: var(--surface); }
.la-strip-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 40px; padding-block: 22px; }
.la-strip-label { margin: 0; font-family: var(--mono); font-size: .75rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.la-strip ul { display: flex; flex-wrap: wrap; gap: 10px 28px; }
.la-strip li { display: inline-flex; align-items: center; gap: 8px; font-weight: 550; font-size: .95rem; color: var(--ink-2); }
.la-strip .icon { width: 16px; height: 16px; color: var(--signal); stroke-width: 2.4; }

/* ---------- Text beside media ---------- */
.la-split-section .band-media img { aspect-ratio: 4 / 3; height: auto; object-fit: cover; }
.la-split-text { margin-top: 18px; color: var(--ink-2); }
p.la-split-text + p.la-split-text { margin-top: 14px; }
.la-split-ticks { margin: 24px 0 0; }
.ticks strong { color: var(--ink); font-weight: 600; }
.la-split-section .callout { margin-top: 0; }
.la-split-section .actions { margin-top: 28px; }
.la-label { margin: 0 0 8px; font-family: var(--mono); font-size: .73rem; font-weight: 500; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }

/* Footnote marker */
a[href="#n1"] { padding-inline: 2px; font-size: .85em; }

/* Headline figures */
.la-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: clamp(40px, 5vw, 64px); border-top: 1px solid var(--line-2); }
.la-stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: 24px 20px 4px 0; }
.la-stats > div + div { padding-left: 24px; border-left: 1px solid var(--line); }
.la-stats dd { font-size: clamp(2.1rem, 3.8vw, 3.2rem); font-weight: 600; font-stretch: 106%; letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.la-stats dt { color: var(--ink-2); font-size: .95rem; line-height: 1.4; }
.la-split-section .table-note { margin-top: 20px; }
@media (max-width: 860px) {
  .la-stats { grid-template-columns: 1fr 1fr; }
  .la-stats > div:nth-child(3) { padding-left: 0; border-left: 0; }
  .la-stats > div:nth-child(n+3) { border-top: 1px solid var(--line); margin-top: 18px; }
}

/* Figures beside text */
.la-figures { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.la-figures > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 10px; padding: clamp(22px, 2.6vw, 32px); background: var(--surface); }
.la-figures dd { font-size: clamp(2rem, 3.4vw, 3rem); font-weight: 600; font-stretch: 106%; letter-spacing: -.03em; line-height: 1; }
.la-figures dt { color: var(--ink-2); font-size: .94rem; line-height: 1.35; }

/* Cost bars */
.la-bars { margin-top: 26px; padding: 20px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.band-media .la-bars { margin-top: 0; }
.la-bar { display: grid; grid-template-columns: minmax(0, 170px) minmax(0, 1fr) 62px; align-items: center; gap: 14px; margin-top: 12px; font-size: .92rem; color: var(--ink-2); }
.la-bar b { display: block; height: 12px; border-radius: 6px; background: var(--bg-2); overflow: hidden; }
.la-bar i { display: block; height: 100%; width: var(--w); border-radius: 6px; background: var(--muted); }
.la-bar em { font-style: normal; font-weight: 600; color: var(--ink); text-align: right; font-variant-numeric: tabular-nums; }
.la-bar.is-local i { background: var(--signal); }
.la-bar.is-local em { color: var(--link); }
.la-w-10 { --w: 10%; } .la-w-20 { --w: 20%; } .la-w-30 { --w: 30%; } .la-w-40 { --w: 40%; } .la-w-50 { --w: 50%; }
.la-w-60 { --w: 60%; } .la-w-70 { --w: 70%; } .la-w-80 { --w: 80%; } .la-w-90 { --w: 90%; } .la-w-100 { --w: 100%; }
@media (prefers-reduced-motion: no-preference) {
  .has-reveal .la-bars:not(.is-live) i { width: 0; }
  .la-bar i { transition: width 1.5s var(--ease) .25s; }
  .la-bar.is-local i { transition-delay: .8s; }
}
@media (max-width: 520px) {
  .la-bar { grid-template-columns: minmax(0, 1fr) 56px; }
  .la-bar span { grid-column: 1 / -1; }
}

/* ---------- Panels and animated graphics ---------- */
.la-panel { margin: 0; padding: clamp(14px, 2vw, 24px); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); }
.la-demo-svg { width: 100%; height: auto; overflow: visible; }
.la-demo-label { fill: var(--ink); font-family: var(--font); font-size: 15px; font-weight: 600; }
.la-demo-small { fill: var(--muted); font-family: var(--font); font-size: 13px; }
.la-demo-small.is-accent { fill: var(--link); font-weight: 550; }
.la-demo-on-a { fill: var(--on-accent); font-family: var(--font); font-size: 16px; font-weight: 600; text-anchor: middle; }
.la-demo-mono { fill: var(--on-accent); font-family: var(--mono); font-size: 13px; font-weight: 500; text-anchor: middle; }
.la-chart-grid path { fill: none; stroke: var(--line); stroke-width: 1; }
.la-line-cloud, .la-line-local { fill: none; stroke-linecap: round; }
.la-line-cloud { stroke: var(--muted); stroke-width: 2.5; stroke-dasharray: 6 6; }
.la-line-local { stroke: var(--signal); stroke-width: 3.5; }
.la-be { fill: var(--accent); }
.la-phase-node circle { fill: var(--accent); }
@media (prefers-reduced-motion: no-preference) {
  .is-live .la-wire-0 { animation: g-wire 3.2s linear infinite; }
  .is-live .la-wire-1 { animation: g-wire 3.2s linear infinite .8s; }
  .is-live .la-wire-2 { animation: g-wire 3.2s linear infinite 1.6s; }
  .is-live .la-wire-3 { animation: g-wire 3.2s linear infinite 2.4s; }
  .is-live .la-wire-long { animation: la-wire-long 7s linear infinite; }
  .is-live .la-pulse-0 { animation: la-phase 7s linear infinite; }
  .is-live .la-pulse-1 { animation: la-phase 7s linear infinite 1.1s; }
  .is-live .la-pulse-2 { animation: la-phase 7s linear infinite 1.8s; }
  .is-live .la-pulse-3 { animation: la-phase 7s linear infinite 2.9s; }
  .is-live .la-pulse-4 { animation: la-phase 7s linear infinite 4.4s; }
}
@keyframes la-wire-long { 0% { stroke-dashoffset: 10; opacity: 1; } 100% { stroke-dashoffset: -100; opacity: 1; } }
@keyframes la-phase { 0%, 12%, 100% { opacity: 1; } 4% { opacity: .55; } }
.la-wire-long { stroke-dasharray: 8 200; stroke-dashoffset: 8; }

/* FAQ hero */
.la-qa { display: grid; gap: 10px; }
.la-qa .bubble { margin: 0; padding: 11px 14px; font-size: .95rem; line-height: 1.4; max-width: 86%; }
.la-qa .la-a { justify-self: end; }
@media (prefers-reduced-motion: no-preference) {
  .is-live.la-qa .bubble { animation: la-fade 12s var(--ease) infinite; }
  .is-live.la-qa .la-a { animation-delay: .9s; }
  .is-live.la-qa .la-q2 { animation-delay: 2.4s; }
  .is-live.la-qa .la-a2 { animation-delay: 3.3s; }
}
@keyframes la-fade { 0% { opacity: 0; transform: translateY(8px); } 5%, 92% { opacity: 1; transform: none; } 100% { opacity: 0; } }

/* Glossary hero */
.la-terms { display: flex; flex-wrap: wrap; gap: 10px; align-content: center; min-height: 240px; }
.la-term { padding: 9px 16px; border: 1px solid var(--line-2); border-radius: 99px; background: var(--surface-2); font-family: var(--mono); font-size: .88rem; color: var(--ink-2); }
@media (prefers-reduced-motion: no-preference) {
  .is-live .la-term { animation: la-term 9s linear infinite; }
  .is-live .la-t1 { animation-delay: 1.5s; }
  .is-live .la-t2 { animation-delay: 3s; }
  .is-live .la-t3 { animation-delay: 4.5s; }
  .is-live .la-t4 { animation-delay: 6s; }
  .is-live .la-t5 { animation-delay: 7.5s; }
}
@keyframes la-term { 0%, 16%, 100% { background: var(--surface-2); color: var(--ink-2); border-color: var(--line-2); } 4%, 12% { background: var(--signal-soft); color: var(--ink); border-color: var(--signal); } }

/* ---------- Isometric drawings ---------- */
.la-iso { display: block; width: 100%; overflow: visible; }
.la-iso .f-t { fill: var(--surface); stroke: var(--line-2); stroke-width: .7; stroke-linejoin: round; }
.la-iso .f-l { fill: var(--surface-2); stroke: var(--line-2); stroke-width: .7; stroke-linejoin: round; }
.la-iso .f-r { fill: var(--bg-2); stroke: var(--line-2); stroke-width: .7; stroke-linejoin: round; }
.la-iso .la-slot { stroke: var(--line-2); stroke-width: .9; }
.la-iso .la-led { fill: var(--signal); }
.la-iso .is-hub .f-t { fill: var(--accent); stroke: var(--accent); }
.la-iso .is-hub .f-l, .la-iso .is-hub .f-r { fill: var(--signal-soft); }
.la-iso .is-stream .f-t { fill: var(--signal); stroke: none; opacity: .6; }
.la-iso .is-tray .f-t { fill: var(--bg-2); }
.la-iso .is-fan .f-t { fill: var(--signal-soft); }
.la-iso text { fill: var(--muted); font-family: var(--mono); font-size: 10.5px; font-weight: 500; letter-spacing: .03em; transition: fill .3s; }
@media (prefers-reduced-motion: no-preference) {
  .la-iso .la-led.is-blink { animation: pulse 2.4s ease-in-out infinite; }
  .la-iso .la-gpu .f-t { animation: la-gpu 8s linear infinite; }
  .la-iso .la-gpu-1 .f-t { animation-delay: 1s; }
  .la-iso .la-gpu-2 .f-t { animation-delay: 2s; }
  .la-iso .la-gpu-3 .f-t { animation-delay: 3s; }
  .la-iso .la-gpu-4 .f-t { animation-delay: 4s; }
  .la-iso .la-gpu-5 .f-t { animation-delay: 5s; }
  .la-iso .la-gpu-6 .f-t { animation-delay: 6s; }
  .la-iso .la-gpu-7 .f-t { animation-delay: 7s; }
}
@keyframes la-gpu { 0%, 14%, 100% { fill: var(--surface); } 6% { fill: var(--signal-soft); } }
.la-art { padding: clamp(16px, 3vw, 36px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }

/* ---------- Rollout timeline ---------- */
.la-gantt { padding: clamp(18px, 2.4vw, 28px); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow); }
.la-g-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); align-items: center; gap: 18px; min-height: 46px; }
.la-g-head { min-height: 0; margin-bottom: 10px; }
.la-g-axis { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--muted); }
.la-g-label { display: flex; align-items: center; gap: 12px; font-size: .95rem; font-weight: 600; white-space: nowrap; }
.la-g-label b { width: 22px; font-family: var(--mono); font-size: .72rem; font-weight: 500; color: var(--link); }
.is-poc .la-g-label { color: var(--ink-2); font-weight: 500; }
.la-g-track { position: relative; display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); align-items: center; height: 46px; background-image: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / 6)); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.la-g-track i { display: flex; align-items: center; height: 28px; padding-inline: 10px; overflow: hidden; border-radius: 7px; background: var(--accent); color: var(--on-accent); transform-origin: left center; }
.la-g-track em { font-family: var(--mono); font-size: .72rem; font-style: normal; font-weight: 500; white-space: nowrap; }
.is-poc .la-g-track i { background: repeating-linear-gradient(135deg, var(--signal-soft) 0 6px, transparent 6px 12px); border: 1px dashed var(--signal); color: var(--ink); }
.is-ops .la-g-track i { border-radius: 7px 0 0 7px; }
.la-from-0 { grid-column-start: 1; } .la-from-2 { grid-column-start: 3; } .la-from-3 { grid-column-start: 4; }
.la-from-8 { grid-column-start: 9; } .la-from-10 { grid-column-start: 11; }
.la-to-2 { grid-column-end: 3; } .la-to-3 { grid-column-end: 4; } .la-to-5 { grid-column-end: 6; }
.la-to-9 { grid-column-end: 10; } .la-to-10 { grid-column-end: 11; } .la-to-12 { grid-column-end: 13; }
.la-g-ms { position: absolute; top: -2px; bottom: -2px; width: 0; border-left: 1.5px dashed var(--muted); }
.la-g-ms::before { content: ""; position: absolute; left: -6px; top: -5px; width: 9px; height: 9px; background: var(--ink); transform: rotate(45deg); }
.la-g-ms span { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-family: var(--mono); font-size: .72rem; font-weight: 500; white-space: nowrap; color: var(--ink); }
.la-g-ms.is-live::before { background: var(--ok); }
.la-g-ms.is-live span { color: var(--ok); }
.la-at-3 { left: 25%; }
.la-at-10 { left: 83.333%; }
@media (prefers-reduced-motion: no-preference) {
  .has-reveal .la-gantt .la-g-track i { transform: scaleX(0); transition: transform 1s var(--ease); }
  .has-reveal .la-gantt.is-in .la-g-track i { transform: none; }
  .has-reveal .la-gantt .la-g-ms { opacity: 0; transition: opacity .6s 1.4s; }
  .has-reveal .la-gantt.is-in .la-g-ms { opacity: 1; }
  .la-d1 .la-g-track i { transition-delay: .22s !important; }
  .la-d2 .la-g-track i { transition-delay: .44s !important; }
  .la-d3 .la-g-track i { transition-delay: .66s !important; }
  .la-d4 .la-g-track i { transition-delay: .88s !important; }
  .la-d5 .la-g-track i { transition-delay: 1.1s !important; }
}
@media (max-width: 960px) {
  .la-g-row { grid-template-columns: 124px minmax(0, 1fr); gap: 10px; }
  .la-g-label { gap: 6px; font-size: .84rem; white-space: normal; line-height: 1.15; }
  .la-g-label b { width: 18px; flex: none; }
  .la-g-track em { display: none; }
}
@media (max-width: 620px) {
  .la-g-ms span { display: none; }
  .la-g-axis span:nth-child(even) { visibility: hidden; }
}

/* Phase cards */
.la-steps { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.la-steps li { display: flex; flex-direction: column; align-items: flex-start; padding: 22px 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.la-step-n { display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: 16px; border-radius: 10px; background: var(--accent); color: var(--on-accent); font-family: var(--mono); font-size: .78rem; font-weight: 500; }
.la-steps h3 { margin-bottom: 8px; font-size: 1.14rem; }
.la-steps p { margin-bottom: 16px; color: var(--ink-2); font-size: .92rem; line-height: 1.45; }
.la-step-t { margin-top: auto; padding: 3px 10px; border-radius: 99px; background: var(--signal-soft); font-size: .77rem; font-weight: 500; }
@media (max-width: 1100px) { .la-steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .la-steps { grid-template-columns: minmax(0, 1fr); } }

/* ---------- The six-layer stack ---------- */
.la-stack-grid { display: grid; grid-template-columns: minmax(280px, .8fr) minmax(0, 1.2fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.la-stack-art { position: sticky; top: 104px; }
.la-stack-art svg { max-height: 560px; }
.la-slab { transition: transform .6s var(--ease); pointer-events: none; }
.la-hits rect { fill: transparent; pointer-events: all; }
.la-slab .f-t { transition: fill .4s, stroke .4s; }
.la-slab.is-on { transform: translate(-6px, -9px); }
.la-slab.is-on .is-slab .f-t { fill: var(--signal-soft); stroke: var(--signal); }
.la-slab.is-on .la-det .f-t { fill: var(--accent); stroke: var(--accent); opacity: 1; }
.la-slab.is-on text { fill: var(--link); }
.la-stack-list { display: grid; gap: 10px; }
.la-layer { display: grid; grid-template-columns: 146px minmax(0, 1fr); gap: 20px; padding: 20px 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.has-reveal .la-layer[data-reveal] { transition: opacity .6s var(--ease), transform .4s var(--ease), border-color .3s, background-color .3s; }
.la-layer.is-on { border-color: var(--signal); box-shadow: var(--shadow); }
.has-reveal .la-layer.is-on.is-in { transform: translateX(6px); }
.la-layer-id { display: flex; align-items: center; gap: 12px; height: fit-content; font-family: var(--mono); font-size: .8rem; color: var(--ink-2); }
.la-layer-id span { display: grid; place-items: center; flex: none; width: 34px; height: 34px; border-radius: 10px; background: var(--signal-soft); color: var(--accent); font-size: .74rem; }
.la-layer.is-on .la-layer-id span { background: var(--accent); color: var(--on-accent); }
.la-layer-body h3 { margin-bottom: 6px; font-size: 1.14rem; }
.la-layer-body p { color: var(--ink-2); font-size: .95rem; line-height: 1.5; }
@media (max-width: 1100px) {
  .la-stack-grid { grid-template-columns: minmax(0, 1fr); }
  .la-stack-art { position: static; max-width: 420px; margin-inline: auto; width: 100%; }
}
@media (max-width: 620px) { .la-layer { grid-template-columns: minmax(0, 1fr); gap: 12px; padding: 18px; } }

/* ---------- Gateway routing ---------- */
.la-routing-svg { width: 100%; height: auto; overflow: visible; color: var(--muted); }
.la-node rect { fill: var(--surface-2); stroke: var(--line-2); }
.la-node text { fill: var(--ink); font-family: var(--font); font-size: 14px; font-weight: 600; text-anchor: middle; }
.la-node .la-sub { fill: var(--muted); font-family: var(--mono); font-size: 11px; font-weight: 400; }
.la-node.is-strong rect { fill: var(--accent); stroke: none; }
.la-node.is-strong text, .la-node.is-strong .la-sub { fill: var(--on-accent); }
.la-node.is-local rect { fill: var(--signal-soft); stroke: var(--signal); }
.la-node.is-cloud rect { stroke-dasharray: 4 4; }
.la-flow { fill: none; stroke: currentColor; stroke-width: 1.5; }
.la-flow.is-main { stroke: var(--signal); stroke-width: 2.5; stroke-dasharray: 6 6; }
.la-flow.is-side { stroke-dasharray: 3 6; opacity: .7; }
.la-packets circle { fill: var(--signal); }
.la-packets .is-cloud { fill: var(--muted); }
@media (prefers-reduced-motion: no-preference) { .is-live .la-flow.is-main { animation: la-flow 1.2s linear infinite; } }
@media (prefers-reduced-motion: reduce) { .la-packets { display: none; } }
@keyframes la-flow { to { stroke-dashoffset: -12; } }

/* ---------- Tiers and plans ---------- */
.la-tiers-section.is-joined { padding-top: 0; }
.la-tiers { display: grid; gap: 14px; }
.la-tiers-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.la-tiers-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.la-tier { display: flex; flex-direction: column; padding: clamp(20px, 2.2vw, 28px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.la-tier.is-featured { border-color: var(--accent); box-shadow: var(--shadow); }
.la-tier.is-mini { border-style: dashed; border-color: var(--line-2); background: transparent; }
.la-tier-art { height: 118px; margin-bottom: 18px; }
.la-tier-art svg { height: 100%; }
.la-tier h3 { margin-bottom: 10px; font-size: 1.32rem; }
.la-tier-spec { padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); font-size: .93rem; line-height: 1.45; }
.la-tier .ticks { gap: 8px; margin: 0; font-size: .93rem; line-height: 1.4; }
.la-tier .ticks .icon { width: 17px; height: 17px; margin-top: 2px; }
@media (max-width: 1100px) { .la-tiers-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) { .la-tiers-3 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) { .la-tiers-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Glossary ---------- */
.la-glossary { columns: 2; column-gap: 56px; }
.la-glossary > div { break-inside: avoid; padding: 18px 0; border-top: 1px solid var(--line-2); }
.la-glossary dt { margin-bottom: 6px; font-size: 1.05rem; font-weight: 600; line-height: 1.3; }
.la-glossary dd { color: var(--ink-2); font-size: .97rem; line-height: 1.5; }
@media (max-width: 760px) { .la-glossary { columns: 1; } }

/* ---------- Small print after a block ---------- */
.la-note { position: relative; margin-top: calc(var(--section) * -1 + 8px); padding-bottom: var(--section); }
.la-note p { max-width: 90ch; color: var(--muted); font-size: .88rem; }
.la-note .actions { margin-top: 0; }
.la-note.is-small { margin-top: 0; padding-block: 20px; border-top: 1px solid var(--line); }
.la-note.is-small p { margin: 0; font-size: .8rem; line-height: 1.5; }

/* ---------- Contact ---------- */
.la-details { padding-block: clamp(40px, 5vw, 64px); }
.la-details-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .la-details-grid { grid-template-columns: minmax(0, 1fr); } }
.la-term-box { margin: 0; background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.la-term-bar { display: flex; align-items: center; gap: 6px; padding: 11px 14px; border-bottom: 1px solid var(--line); }
.la-term-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.la-term-bar span { margin-left: 8px; font-family: var(--mono); font-size: .72rem; color: var(--muted); }
.la-term-body { margin: 0; padding: 16px 18px 18px; overflow-x: auto; font-family: var(--mono); font-size: .82rem; line-height: 1.7; }
.la-term-body span { display: block; min-height: 1.7em; white-space: pre; }
.la-t-cmd { color: var(--ink); font-weight: 500; }
.la-t-dim { color: var(--muted); }
.la-t-kv { color: var(--ink-2); }
.la-t-ok { color: var(--ok); }
.la-term-body .is-at::after { content: ""; display: inline-block; width: 7px; height: 14px; margin-left: 2px; background: var(--signal); vertical-align: -2px; }

/* ---------- 3D rack in the hero ---------- */
.la-rack { position: relative; overflow: hidden; background: var(--bg); }
.la-rack-visual { display: none; }
.la-rack .page-hero-grid { position: relative; }
.la-rack-photo { transition: opacity .8s var(--ease); }
@media (min-width: 1041px) {
  .la-hero .page-hero-grid { min-height: 600px; }
  .la-hero .lead { max-width: 44ch; }
  .la-rack.is-loading .la-rack-visual, .la-rack.is-3d .la-rack-visual { display: block; position: absolute; inset: 0 -2% 0 41%; opacity: 0; transition: opacity 1.2s ease; mask-image: linear-gradient(90deg, transparent, #000 16%); }
  .la-rack.is-3d .la-rack-visual { opacity: 1; }
  .la-rack.is-3d .la-rack-photo { opacity: 0; }
  .la-rack-visual canvas { display: block; width: 100%; height: 100%; }
}

/* ---------- Platform band ---------- */
.la-platform-photo img { aspect-ratio: 4 / 3; object-fit: cover; }

/* ---------- Savings calculator ---------- */
.la-calc-section { padding-top: 0; }
.la-calc { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); background: var(--surface); border: 1px solid var(--line-2); border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; }
.la-calc-inputs { display: flex; flex-direction: column; gap: 28px; padding: clamp(20px, 3vw, 36px); border-right: 1px solid var(--line); }
.la-calc-results { display: flex; flex-direction: column; gap: 24px; padding: clamp(20px, 3vw, 36px); background: var(--surface-2); }
.la-range label { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; color: var(--ink-2); font-size: .94rem; }
.la-range output { flex: none; color: var(--ink); font-size: 1.35rem; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.la-range-scale { display: flex; justify-content: space-between; margin-top: 6px; font-family: var(--mono); font-size: .7rem; color: var(--muted); }
.la-calc input[type="range"] { -webkit-appearance: none; appearance: none; display: block; width: 100%; height: 28px; margin: 0; background: transparent; cursor: pointer; --p: 50%; }
.la-calc input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--accent) var(--p), var(--line-2) var(--p)); }
.la-calc input[type="range"]::-moz-range-track { height: 4px; border-radius: 4px; background: var(--line-2); }
.la-calc input[type="range"]::-moz-range-progress { height: 4px; border-radius: 4px; background: var(--accent); }
.la-calc input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -9px; border-radius: 50%; background: var(--surface); border: 5px solid var(--accent); box-shadow: var(--shadow); }
.la-calc input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 5px solid var(--accent); }
.la-seg-row { display: flex; flex-wrap: wrap; gap: 20px; }
.la-seg { margin: 0; padding: 0; border: 0; }
.la-seg legend { margin-bottom: 8px; padding: 0; font-family: var(--mono); font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.la-seg label { position: relative; display: inline-block; }
.la-seg input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.la-seg span { display: inline-block; margin-right: -1px; padding: 8px 14px; border: 1px solid var(--line-2); font-size: .9rem; color: var(--ink-2); transition: background-color .18s, color .18s; }
.la-seg label:first-of-type span { border-radius: 8px 0 0 8px; }
.la-seg label:last-of-type span { border-radius: 0 8px 8px 0; }
.la-seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.la-seg input:focus-visible + span { outline: 2px solid var(--signal); outline-offset: 2px; }
.la-assume { padding-top: 16px; border-top: 1px solid var(--line); }
.la-assume summary { font-family: var(--mono); font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); cursor: pointer; }
.la-assume-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 16px 0 12px; }
.la-assume-grid label { display: flex; flex-direction: column; gap: 6px; color: var(--muted); font-size: .86rem; }
.la-assume-grid input[type="number"] { width: 100%; min-height: 42px; padding: 8px 10px; font: inherit; font-size: .96rem; color: var(--ink); background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--radius-sm); }
.la-assume-grid .is-check { grid-column: 1 / -1; flex-direction: row; align-items: center; gap: 10px; color: var(--ink-2); }
.la-assume-grid .is-check input { width: 17px; height: 17px; accent-color: var(--accent); }
.la-big { margin: 0 0 10px; color: var(--ink); font-size: clamp(2.8rem, 5.4vw, 4.6rem); font-weight: 600; font-stretch: 106%; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.la-big.is-neg { color: var(--warn); }
.la-sub-line { margin: 0; color: var(--ink-2); }
.la-sub-line span { color: var(--ink); font-weight: 600; }
.la-res-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.la-res-grid > div { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; background: var(--surface); }
.la-res-grid span { color: var(--muted); font-size: .82rem; line-height: 1.3; }
.la-res-grid strong { font-size: 1.3rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.la-config { margin: 0 0 4px; font-weight: 550; line-height: 1.4; }
.la-chart { margin: 0; }
#r-chart { width: 100%; height: auto; overflow: visible; }
#r-chart .grid { stroke: var(--line); stroke-width: 1; }
#r-chart .l-cloud { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 5 5; }
#r-chart .l-local { fill: none; stroke: var(--signal); stroke-width: 2.5; }
#r-chart .a-local { fill: url(#la-gl); }
#r-chart text { fill: var(--muted); font-family: var(--mono); font-size: 11px; paint-order: stroke; stroke: var(--surface-2); stroke-width: 3px; stroke-linejoin: round; }
#r-chart .be { fill: var(--accent); }
#r-chart .be-label { fill: var(--ink); }
.la-stop-a { stop-color: var(--signal); stop-opacity: .2; }
.la-stop-b { stop-color: var(--signal); stop-opacity: 0; }
.la-chart figcaption { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 10px; color: var(--muted); font-size: .8rem; }
.la-chart figcaption span { display: inline-flex; align-items: center; gap: 8px; }
.la-lg { display: inline-block; width: 16px; height: 2px; }
.la-lg.is-cloud { background: var(--muted); }
.la-lg.is-local { height: 3px; background: var(--signal); }
.la-warn { margin: 0; padding: 14px 16px; border: 1px solid var(--warn); border-radius: var(--radius-sm); color: var(--warn); font-size: .92rem; line-height: 1.45; }
.la-warn[hidden] { display: none; }
.la-calc-section #calc-note { margin-top: 18px; max-width: 90ch; }
@media (max-width: 960px) {
  .la-calc { grid-template-columns: minmax(0, 1fr); }
  .la-calc-inputs { border-right: 0; border-bottom: 1px solid var(--line); }
}
@media (max-width: 520px) { .la-res-grid, .la-assume-grid { grid-template-columns: minmax(0, 1fr); } }

/* ---------- Use-case graphics ---------- */
.la-q-text { font-family: var(--font); font-size: 11.5px; letter-spacing: 0; }
.la-ring { fill: none; stroke: var(--signal); stroke-width: 1.2; transform-box: fill-box; transform-origin: center; }
.la-ring-1 { stroke-dasharray: 3 7; }
.la-ring-2 { stroke-dasharray: 22 10; opacity: .5; }
.la-keyhole { fill: var(--on-accent); }
.la-on-a-line { fill: var(--on-accent); opacity: .7; }
@media (prefers-reduced-motion: no-preference) {
  .is-live .la-ring-1 { animation: la-spin 18s linear infinite; }
  .is-live .la-ring-2 { animation: la-spin 12s linear infinite reverse; }
  .is-live .la-blocked { animation: pulse 2.2s ease-in-out infinite; }
  .is-live .la-caret { animation: pulse 1s steps(2) infinite; }
  .la-type { transform-box: fill-box; transform-origin: left; }
  .is-live .la-type { animation: la-type 6s var(--ease) infinite; }
  .is-live .la-type-1 { animation-delay: .5s; }
  .is-live .la-type-2 { animation-delay: 1s; }
  .is-live .la-type-3 { animation-delay: 1.5s; }
  .is-live .la-type-4 { animation-delay: 2s; }
  .is-live .la-hit { animation: la-hit 5s linear infinite; }
  .is-live .la-hit-1 { animation-delay: .25s; }
  .is-live .la-hit-2 { animation-delay: .5s; }
  .is-live .la-bub { animation: la-fade 7s var(--ease) infinite; }
  .is-live .la-bub-1 { animation-delay: 1.2s; }
  .is-live .la-bub-2 { animation-delay: 2.6s; }
  .is-live .la-dot { animation: pulse 1s ease-in-out infinite; }
  .is-live .la-dot-1 { animation-delay: .15s; }
  .is-live .la-dot-2 { animation-delay: .3s; }
}
@keyframes la-spin { to { transform: rotate(360deg); } }
@keyframes la-type { 0% { transform: scaleX(0); } 12%, 85% { transform: scaleX(1); } 100% { transform: scaleX(0); } }
@keyframes la-hit { 0%, 6% { opacity: .2; } 14%, 100% { opacity: 1; } }
