/* LayerLab 3D public website */

/* Demo notice strip */
.notice-strip { background: var(--warm); border-bottom: 1px solid var(--line); font-size: 0.8125rem; color: var(--ink-2); }
.notice-strip .wrap { display: flex; justify-content: center; align-items: center; gap: 6px 14px; flex-wrap: wrap; min-height: 36px; padding-block: 7px; text-align: center; line-height: 1.35; }
.notice-strip a { color: var(--blue-ink); text-decoration: underline; text-underline-offset: 3px; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, 0.9); -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.site-header.is-scrolled, .site-header.menu-open { border-bottom-color: var(--line); }
.site-header__bar { display: flex; align-items: center; gap: 28px; min-height: 68px; }
.nav { display: flex; gap: 2px; margin-inline-start: 8px; }
.nav a { padding: 8px 12px; border-radius: var(--r); color: var(--ink-2); font-weight: 450; font-size: 0.9375rem; transition: color 0.15s, background-color 0.15s; }
.nav a:hover, .nav a[aria-current="page"] { color: var(--ink); background: var(--warm); }
.header-actions { margin-inline-start: auto; display: flex; align-items: center; gap: 8px; }
.menu-btn { display: none; width: 44px; padding: 0; }
.mobile-menu { display: none; padding: 8px var(--gutter) 28px; background: #fff; }
.mobile-menu a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; border-bottom: 1px solid var(--line); font: 500 1.125rem var(--font-display); letter-spacing: -0.02em; }
.mobile-menu a:last-child { border-bottom: 0; }
.site-header.menu-open .mobile-menu { display: block; }
@media (max-width: 960px) {
  .nav, .header-actions .portal-link { display: none; }
  .menu-btn { display: inline-flex; }
  .site-header__bar { gap: 12px; }
}
@media (max-width: 420px) { .header-actions .btn--accent { padding: 0 12px; font-size: 0.875rem; } }

/* Sections */
.section { padding-block: clamp(64px, 9vw, 120px); }
.section--warm { background: var(--warm); }
.section--tight { padding-block: clamp(40px, 6vw, 72px); }
.section__head { display: grid; gap: 14px; margin-bottom: clamp(32px, 5vw, 56px); max-width: 62ch; }
.section__head h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.035em; }
.section__head p { color: var(--ink-2); font-size: 1.0625rem; max-width: 56ch; }
.lead { font-size: clamp(1.0625rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--ink-2); max-width: 54ch; }

/* Hero */
.hero { padding-block: clamp(28px, 4vw, 56px) clamp(32px, 5vw, 64px); }
.hero__title { font-size: clamp(2.5rem, 6.4vw, 5.3rem); line-height: 0.97; letter-spacing: -0.045em; font-weight: 600; max-width: 17ch; }
.hero__sub { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 24px 48px; margin-top: clamp(20px, 2.6vw, 32px); }

.stage { position: relative; margin-top: clamp(28px, 3.6vw, 44px); aspect-ratio: 2.15 / 1; min-height: 300px; border-radius: var(--r); overflow: hidden; background-color: var(--warm-2); }
@media (max-width: 720px) { .stage { aspect-ratio: 4 / 4.2; } }
.stage__media { position: absolute; inset: 0; }
.stage__media img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 45%; }
.stage__lines { position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.16) 0 1px, transparent 1px 7px); }
.stage__nozzle { position: absolute; left: 0; right: 0; top: 0; height: 2px; background: var(--blue); box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.4); opacity: 0; pointer-events: none; }
.js .stage__media { clip-path: inset(100% 0 0 0); }
.js .stage__lines { opacity: 1; }
.js .stage.is-printing .stage__media { animation: print-in 2.4s steps(32, end) forwards; }
.js .stage.is-printing .stage__nozzle { animation: nozzle 2.4s steps(32, end) forwards; }
.js .stage.is-printing .stage__lines { animation: lines-out 1.6s 2.2s ease forwards; }
.js .stage.is-done .stage__media { clip-path: none; animation: none; }
@keyframes print-in { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes nozzle { from { top: calc(100% - 2px); opacity: 1; } 97% { opacity: 1; } to { top: 0; opacity: 0; } }
@keyframes lines-out { to { opacity: 0; } }

.job { position: absolute; left: clamp(12px, 2vw, 24px); bottom: clamp(12px, 2vw, 24px); width: min(310px, calc(100% - 24px)); padding: 14px 16px 12px; background: rgba(255, 255, 255, 0.96); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 8px; font-size: 0.875rem; }
.js .job { opacity: 0; transform: translateY(10px); }
.js .stage.is-printing .job { animation: job-in 0.7s 2.1s var(--ease) forwards; }
.js .stage.is-done .job { animation: none; opacity: 1; transform: none; }
@keyframes job-in { to { opacity: 1; transform: none; } }
.job__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.job__ref { font: 500 0.8125rem var(--font-mono); color: var(--ink-3); }
.job__name { font-weight: 600; letter-spacing: -0.01em; }
.job__row--sm { font-size: 0.8125rem; color: var(--ink-2); }
.job__row--sm b { font-family: var(--font-mono); font-weight: 500; color: var(--ink); }
.job__note { font-size: 0.75rem; color: var(--ink-3); }
.stage__ruler { position: absolute; right: 0; top: 0; bottom: 0; width: 22px; background: repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.85) 0 1px, transparent 1px 12px); -webkit-mask: linear-gradient(90deg, transparent, #000 40%); mask: linear-gradient(90deg, transparent, #000 40%); opacity: 0.55; pointer-events: none; }

.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin: clamp(28px, 4vw, 44px) 0 0; border-top: 1px solid var(--line-2); }
@media (min-width: 860px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts > div { padding: 20px 20px 4px 0; display: grid; gap: 2px; }
.facts dt { font-size: 0.875rem; color: var(--ink-3); order: 2; }
.facts dd { margin: 0; font: 600 clamp(1.25rem, 2vw, 1.625rem)/1.2 var(--font-display); letter-spacing: -0.03em; order: 1; }

/* Capabilities */
.caps { display: grid; gap: 40px; }
@media (min-width: 960px) { .caps { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 72px; align-items: start; } }
.caps__list { list-style: none; border-top: 1px solid var(--line-2); }
.cap { display: grid; grid-template-columns: 1fr auto; gap: 6px 24px; padding: 24px 4px; border-bottom: 1px solid var(--line); color: inherit; transition: background-color 0.2s, padding 0.35s var(--ease); }
.cap:hover, .cap:focus-visible, .cap.is-active { padding-inline: 14px; background: var(--warm); }
.cap__name { font: 600 clamp(1.375rem, 2.2vw, 1.75rem)/1.15 var(--font-display); letter-spacing: -0.03em; }
.cap__text { grid-column: 1; color: var(--ink-2); font-size: 0.9375rem; max-width: 54ch; }
.cap__meta { grid-column: 2; grid-row: 1; align-self: center; font: 500 0.8125rem var(--font-mono); color: var(--blue-ink); text-align: right; }
@media (max-width: 560px) { .cap { grid-template-columns: 1fr; } .cap__meta { grid-column: 1; grid-row: auto; text-align: left; margin-top: 4px; } }
.caps__preview { display: none; position: sticky; top: 100px; aspect-ratio: 4 / 4.6; border-radius: var(--r); overflow: hidden; }
@media (min-width: 960px) { .caps__preview { display: block; } }
.caps__preview img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity 0.4s var(--ease); }
.caps__preview img.is-active { opacity: 1; }

/* Material explorer */
.mx { display: grid; gap: 24px; }
@media (min-width: 900px) { .mx { grid-template-columns: 250px minmax(0, 1fr); gap: 48px; align-items: start; } }
.mx__tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; padding: 4px; margin: -4px; scrollbar-width: none; }
.mx__tabs::-webkit-scrollbar { display: none; }
@media (min-width: 900px) { .mx__tabs { flex-direction: column; overflow: visible; } }
.mx__ind { position: absolute; left: 0; top: 0; background: #fff; border: 1px solid var(--line-2); border-radius: var(--r); transition: transform 0.5s var(--spring), width 0.5s var(--spring), height 0.5s var(--spring); pointer-events: none; }
.mx__tab { position: relative; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 12px 14px; min-height: 48px; border: 0; background: transparent; border-radius: var(--r); text-align: left; white-space: nowrap; font-weight: 500; color: var(--ink-2); transition: color 0.2s; }
.mx__tab small { font: 400 0.75rem var(--font-mono); color: var(--ink-3); }
.mx__tab:hover { color: var(--ink); }
.mx__tab[aria-selected="true"] { color: var(--ink); }
.mx__panel { background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(22px, 3.4vw, 40px); display: grid; gap: 28px; min-height: 420px; }
.mx__top { display: grid; gap: 10px; }
.mx__top h3 { font-size: clamp(1.625rem, 3vw, 2.25rem); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.mx__top p { color: var(--ink-2); max-width: 58ch; }
.mx__cols { display: grid; gap: 28px 48px; }
@media (min-width: 760px) { .mx__cols { grid-template-columns: 1.15fr 1fr; } }
.props { display: grid; gap: 14px; }
.prop { display: grid; grid-template-columns: 112px 1fr; gap: 12px; align-items: center; font-size: 0.875rem; }
.prop span:first-child { color: var(--ink-2); }
.seg { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.seg i { height: 8px; border-radius: 2px; background: var(--warm-2); transition: background-color 0.25s; }
.seg i.on { background: var(--blue); }
.facts-list { display: grid; gap: 0; margin: 0; font-size: 0.9375rem; }
.facts-list > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts-list dt { color: var(--ink-3); }
.facts-list dd { margin: 0; font-weight: 500; text-align: right; }
.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch { width: 22px; height: 22px; border-radius: 50%; border: 1px solid rgba(29, 30, 34, 0.18); display: inline-block; }
.goodfor { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.goodfor li { padding: 4px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.8125rem; color: var(--ink-2); }

/* Projects */
.work-grid { display: grid; gap: 32px 24px; }
@media (min-width: 720px) { .work-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); } .work { grid-column: span 3; } .work--wide { grid-column: span 4; } .work--narrow { grid-column: span 2; } }
@media (min-width: 1000px) { .work { grid-column: span 2; } .work--wide { grid-column: span 4; } .work--narrow { grid-column: span 2; } }
.work__img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r); overflow: hidden; margin-bottom: 16px; }
.work--wide .work__img { aspect-ratio: 16 / 9; }
@media (min-width: 720px) and (max-width: 999px) { .work--wide .work__img { aspect-ratio: 4 / 3; } }
.work__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.work:hover .work__img img { transform: scale(1.03); }
.work h3 { font-size: 1.25rem; letter-spacing: -0.025em; margin-bottom: 4px; }
.work p { color: var(--ink-2); font-size: 0.9375rem; }
.work__spec { margin-top: 8px; font: 400 0.8125rem var(--font-mono); color: var(--ink-3); }

/* Process */
.process { display: grid; gap: 40px; }
@media (min-width: 960px) { .process { grid-template-columns: minmax(0, 4.4fr) minmax(0, 7fr); gap: 80px; } .process__intro { position: sticky; top: 112px; align-self: start; } }
.process__intro { display: grid; gap: 16px; }
.process__intro h2 { font-size: clamp(2rem, 4.4vw, 3.25rem); letter-spacing: -0.035em; }
.process__intro p { color: var(--ink-2); max-width: 44ch; }
.steps-v { position: relative; list-style: none; padding-left: 52px; }
.steps-v::before { content: ""; position: absolute; left: 13px; top: 12px; bottom: 56px; width: 2px; background: var(--line); }
.steps-v::after { content: ""; position: absolute; left: 13px; top: 12px; width: 2px; height: calc((100% - 68px) * var(--p, 0)); background: var(--blue); }
.steps-v li { position: relative; padding-bottom: 52px; }
.steps-v li:last-child { padding-bottom: 0; }
.step__dot { position: absolute; left: -52px; top: -1px; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line-2); background: #fff; display: grid; place-items: center; font: 500 0.75rem var(--font-mono); color: var(--ink-3); transition: background-color 0.3s, border-color 0.3s, color 0.3s; z-index: 1; }
.steps-v li.is-done .step__dot { background: var(--blue); border-color: var(--blue); color: #fff; }
.steps-v h3 { font-size: 1.5rem; letter-spacing: -0.03em; margin-bottom: 8px; }
.steps-v p { color: var(--ink-2); max-width: 52ch; }
.steps-v .step__meta { margin-top: 10px; font: 400 0.8125rem var(--font-mono); color: var(--ink-3); }

/* Testimonials */
.quotes { display: grid; gap: 40px 48px; }
@media (min-width: 900px) { .quotes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { margin: 0; padding-top: 20px; border-top: 2px solid var(--ink); display: grid; gap: 20px; align-content: space-between; }
.quote blockquote { margin: 0; font: 500 clamp(1.1875rem, 1.7vw, 1.4375rem)/1.35 var(--font-display); letter-spacing: -0.02em; text-wrap: pretty; }
.quote figcaption { font-size: 0.875rem; color: var(--ink-2); line-height: 1.45; }
.quote figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.fine { font-size: 0.8125rem; color: var(--ink-3); margin-top: 28px; }

/* Call to action */
.cta { display: grid; gap: 28px; align-items: end; }
@media (min-width: 900px) { .cta { grid-template-columns: minmax(0, 1fr) auto; gap: 64px; } }
.cta h2 { font-size: clamp(2.1rem, 5vw, 4rem); letter-spacing: -0.04em; max-width: 16ch; }
.cta p { color: var(--ink-2); margin-top: 16px; max-width: 52ch; }

/* Contact strip and details */
.contact-strip { display: grid; gap: 28px; }
@media (min-width: 760px) { .contact-strip { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.contact-strip h3 { font: 600 0.9375rem var(--font-body); letter-spacing: 0; margin-bottom: 6px; }
.contact-strip p, .contact-strip a { color: var(--ink-2); font-size: 0.9375rem; line-height: 1.55; }
.contact-strip a:hover { color: var(--blue-ink); }

/* Footer */
.site-footer { border-top: 1px solid var(--line); background: var(--warm); padding-block: clamp(48px, 6vw, 80px) 28px; }
.footer-grid { display: grid; gap: 40px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 56px; } }
.footer-grid h2 { font: 600 0.9375rem var(--font-body); letter-spacing: 0; margin-bottom: 12px; }
.footer-grid ul { list-style: none; display: grid; gap: 8px; }
.footer-grid li a { color: var(--ink-2); font-size: 0.9375rem; }
.footer-grid li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }
.footer-about p { margin-top: 14px; color: var(--ink-2); font-size: 0.9375rem; max-width: 40ch; }
.footer-demo { margin-top: 44px; padding: 16px 18px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; font-size: 0.875rem; color: var(--ink-2); }
.footer-demo strong { color: var(--ink); }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 28px; font-size: 0.8125rem; color: var(--ink-3); }
.footer-base a { text-decoration: underline; text-underline-offset: 3px; }

/* Page intro for inner pages */
.page-hero { padding-block: clamp(40px, 6vw, 88px) clamp(32px, 4vw, 56px); border-bottom: 1px solid var(--line); }
.page-hero h1 { font-size: clamp(2.4rem, 6vw, 4.75rem); letter-spacing: -0.045em; line-height: 1; max-width: 18ch; }
.page-hero .lead { margin-top: 22px; }

/* Services */
.svc { display: grid; gap: 28px; padding-block: clamp(40px, 6vw, 80px); border-bottom: 1px solid var(--line); scroll-margin-top: 80px; }
.svc:last-of-type { border-bottom: 0; }
@media (min-width: 960px) { .svc { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 72px; align-items: start; } .svc--flip .svc__media { order: 2; } }
.svc__media { position: relative; aspect-ratio: 4 / 3.2; border-radius: var(--r); overflow: hidden; }
.svc__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (min-width: 960px) { .svc__media { position: sticky; top: 100px; } }
.svc__body { display: grid; gap: 20px; }
.svc__body h2 { font-size: clamp(1.9rem, 3.6vw, 2.75rem); letter-spacing: -0.035em; }
.svc__body > p { color: var(--ink-2); max-width: 58ch; }
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.spec-table th, .spec-table td { text-align: left; padding: 11px 12px 11px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.spec-table th { width: 38%; font-weight: 500; color: var(--ink-3); }
.ticks { list-style: none; display: grid; gap: 8px; color: var(--ink-2); font-size: 0.9375rem; }
.ticks li { position: relative; padding-left: 24px; }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 0.5em; width: 10px; height: 6px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg) translateY(-2px); }

.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: #fff; }
.data-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 0.9375rem; }
.data-table th, .data-table td { text-align: left; padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.data-table thead th { font-size: 0.8125rem; font-weight: 500; color: var(--ink-3); background: var(--warm); border-bottom-color: var(--line-2); white-space: nowrap; }
.data-table tbody tr:last-child td { border-bottom: 0; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.data-table .mono { font-size: 0.875rem; }

.price-grid { display: grid; gap: 28px; }
@media (min-width: 960px) { .price-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: start; } }
.price-grid h3 { font-size: 1.5rem; margin-bottom: 14px; }

/* Layer explainer */
.layer-lab { display: grid; gap: 28px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(20px, 3vw, 36px); }
@media (min-width: 900px) { .layer-lab { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; } }
.layer-lab__view { background: var(--warm); border-radius: var(--r); padding: 12px; }
.layer-lab__view svg { width: 100%; height: auto; }
.layer-lab h3 { font-size: 1.5rem; margin-bottom: 10px; }
.layer-lab p { color: var(--ink-2); }
.range { width: 100%; accent-color: var(--blue); height: 32px; margin: 8px 0 0; }
.range-labels { display: flex; justify-content: space-between; font: 400 0.75rem var(--font-mono); color: var(--ink-3); }
.readout { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); }
.readout div { display: grid; gap: 2px; }
.readout dt { font-size: 0.8125rem; color: var(--ink-3); order: 2; }
.readout dd { margin: 0; font: 600 1.25rem var(--font-display); letter-spacing: -0.02em; order: 1; }

/* FAQ */
.faq { border-top: 1px solid var(--line-2); max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; min-height: 56px; cursor: pointer; font: 500 1.125rem/1.35 var(--font-display); letter-spacing: -0.015em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 10px; height: 10px; border-right: 2px solid var(--ink-2); border-bottom: 2px solid var(--ink-2); transform: rotate(45deg) translateY(-2px); transition: transform 0.3s var(--ease); flex: none; }
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq details p { padding: 0 0 22px; color: var(--ink-2); max-width: 62ch; }

/* Contact page */
.contact-layout { display: grid; gap: 48px; padding-block: clamp(40px, 6vw, 80px); }
@media (min-width: 960px) { .contact-layout { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 80px; align-items: start; } }
.contact-form { display: grid; gap: 20px; }
.contact-form h2, .contact-aside h2 { font-size: 1.75rem; margin-bottom: 4px; }
.contact-aside { display: grid; gap: 28px; }
.info-list { list-style: none; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.info-list li { display: grid; grid-template-columns: 24px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.info-list svg { width: 20px; height: 20px; color: var(--blue-ink); margin-top: 2px; }
.info-list strong { display: block; font-weight: 600; }
.info-list span, .info-list a { color: var(--ink-2); font-size: 0.9375rem; }
.info-list a:hover { color: var(--blue-ink); }
.success-panel { display: grid; gap: 14px; padding: 28px; border: 1px solid #b9dbc9; background: var(--ok-tint); border-radius: var(--r-lg); }
.success-panel h2 { font-size: 1.5rem; }

/* Legal */
.legal { display: grid; gap: 40px; padding-block: clamp(40px, 6vw, 80px); }
@media (min-width: 960px) { .legal { grid-template-columns: 240px minmax(0, 1fr); gap: 80px; align-items: start; } .legal__toc { position: sticky; top: 100px; } }
.legal__toc { display: grid; gap: 2px; align-content: start; }
.legal__toc h2 { font: 600 0.9375rem var(--font-body); letter-spacing: 0; margin-bottom: 10px; }
.legal__toc a { padding: 6px 0; color: var(--ink-2); font-size: 0.9375rem; }
.legal__toc a:hover { color: var(--blue-ink); }
.legal__body { max-width: 72ch; display: grid; gap: 40px; }
.legal__body section { scroll-margin-top: 96px; }
.legal__body h2 { font-size: 1.5rem; letter-spacing: -0.025em; margin-bottom: 12px; }
.legal__body p, .legal__body li { color: var(--ink-2); line-height: 1.7; }
.legal__body p + p, .legal__body p + ul, .legal__body ul + p { margin-top: 12px; }
.legal__body ul { padding-left: 20px; }
.legal__body li + li { margin-top: 6px; }
.legal__body code { font-family: var(--font-mono); font-size: 0.875em; background: var(--warm); padding: 1px 5px; border-radius: 3px; }

/* Grid children may shrink below their content so wide tables scroll inside their own wrapper */
.price-grid > *, .svc > *, .layer-lab > *, .contact-layout > *, .legal > *, .caps > *, .process > *, .cta > * { min-width: 0; }
