:root {
  --ink: #132b37;
  --ink-soft: #38505b;
  --muted: #64767d;
  --line: #d5e0df;
  --paper: #fcfefd;
  --wash: #eef5f3;
  --teal: #147c78;
  --teal-deep: #0b575c;
  --teal-soft: #d9edeb;
  --review: #d88934;
  --max-width: 1160px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { background: var(--paper); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; line-height: 1.58; margin: 0; }
a { color: inherit; }
section[id], h2[id] { scroll-margin-top: 82px; }
:focus-visible { outline: 3px solid var(--review); outline-offset: 4px; }
.page-width { margin: 0 auto; max-width: var(--max-width); padding-left: 34px; padding-right: 34px; }

.site-header { background: rgba(252, 254, 253, .95); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 10; }
.header-inner { align-items: center; display: flex; gap: 28px; justify-content: space-between; min-height: 62px; }
.wordmark { color: var(--ink); font-size: 14px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.wordmark span { color: var(--teal); }
.product-nav { align-items: center; display: flex; gap: 22px; }
.product-nav a { color: var(--muted); font-size: 12px; text-decoration: none; }
.product-nav a:hover { color: var(--teal); }
.product-nav .nav-cta { background: var(--ink); color: #fff; font-weight: 700; padding: 8px 12px; }

.intro { display: grid; gap: 46px 64px; grid-template-columns: minmax(0, 1.08fr) minmax(300px, .72fr); padding: 70px 0 40px; }
.hero-copy { align-self: center; }
.kicker, .section-number, .step-type, dt, .meta-label { color: var(--teal); font-size: 11px; font-weight: 750; letter-spacing: .11em; text-transform: uppercase; }
.kicker { margin: 0 0 15px; }
h1, h2, .step-name { font-family: Georgia, "Times New Roman", serif; }
h1 { font-size: clamp(2.75rem, 5vw, 4.4rem); font-weight: 400; letter-spacing: -.055em; line-height: 1.01; margin: 0 0 20px; max-width: 690px; }
h2 { font-size: clamp(2rem, 3.5vw, 3.25rem); font-weight: 400; letter-spacing: -.045em; line-height: 1.06; margin: 0; max-width: 760px; }
.lead { color: var(--ink-soft); font-size: 17px; margin: 0; max-width: 680px; }
.hero-actions, .trial-actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 26px; }
.primary-link, .secondary-link { align-items: center; display: inline-flex; font-size: 13px; font-weight: 700; text-decoration: none; }
.primary-link { background: var(--teal); color: #fff; padding: 12px 15px; }
.primary-link:hover { background: var(--teal-deep); }
.primary-link span { margin-left: 8px; }
.secondary-link { border-bottom: 1px solid var(--teal); color: var(--teal-deep); padding: 11px 0; }
.trace-card { align-self: center; background: var(--ink); box-shadow: 10px 10px 0 var(--teal-soft); color: #fff; padding: 0 24px 20px; }
.trace-card-head { border-bottom: 1px solid rgba(255,255,255,.2); color: #b7d9d4; display: flex; font-size: 11px; font-weight: 700; justify-content: space-between; letter-spacing: .1em; padding: 14px 0; text-transform: uppercase; }
.trace-list { counter-reset: trace; list-style: none; margin: 0; padding: 0; }
.trace-list li { align-items: center; border-bottom: 1px solid rgba(255,255,255,.15); display: grid; gap: 13px; grid-template-columns: 29px 1fr; min-height: 62px; }
.trace-list li > span { color: #8ed7cd; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; }
.trace-list strong, .trace-list small { display: block; }
.trace-list strong { font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 400; }
.trace-list small { color: #c2d1d1; font-size: 11px; }
.trace-card > p { color: #c2d1d1; font-size: 12px; margin: 16px 0 0; }
.trace-card--process .trace-list li { min-height: 53px; }
.trace-card--process .trace-list strong { font-size: 15px; }
.trace-card--process .trace-list small { font-size: 11px; }
.trace-card--process > p { font-size: 11px; margin-top: 13px; }
.briefing-meta { border-top: 1px solid var(--line); display: grid; gap: 20px; grid-column: 1 / -1; grid-template-columns: repeat(3, 1fr); margin-top: 2px; padding-top: 16px; }
.briefing-meta .meta-label { display: block; margin-bottom: 4px; }
.briefing-meta > div > span:last-child { color: var(--ink-soft); font-size: 13px; }

.summary, .section-block, .process { border-bottom: 1px solid var(--line); padding: 70px 0; }
.summary { background: var(--wash); box-shadow: 0 0 0 100vmax var(--wash); clip-path: inset(0 -100vmax); }
.section-heading { align-items: baseline; display: grid; gap: 28px; grid-template-columns: 110px 1fr; }
.summary-content, .section-copy, .section-intro, .steps, .control-list, .example-grid, .process-line { margin-left: 138px; max-width: 820px; }
.summary-content { color: var(--ink-soft); font-size: 16px; margin-top: 28px; }
.summary-content > p { margin: 0 0 17px; }
.rulesets { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); list-style: none; margin: 28px 0; padding: 0; }
.rulesets li { background: #fff; border: 1px solid #d7e3e0; border-top: 3px solid var(--teal); min-height: 145px; padding: 18px; }
.rulesets strong { color: var(--ink); display: block; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 400; margin-bottom: 8px; }
.rulesets span { color: var(--muted); display: block; font-size: 13px; }
.summary-close { color: var(--teal-deep); font-size: 14px; }
.summary-evidence { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 32px; }
.uses { align-items: start; border-bottom: 1px solid var(--line); display: grid; gap: 36px; grid-template-columns: .85fr 1.15fr; padding: 56px 0; }
.uses h2 { max-width: 430px; }
.use-list { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.use-list li { background: #fff; border-left: 3px solid var(--review); padding: 16px 18px; }
.use-list strong { display: block; font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 400; margin-bottom: 5px; }
.use-list span { color: var(--muted); display: block; font-size: 13px; }
.section-copy { color: var(--ink-soft); font-size: 15px; margin-top: 25px; }
.section-copy p { margin: 0 0 16px; }
.section-copy p:last-child { margin-bottom: 0; }
.section-copy ul { padding-left: 20px; }
.section-copy li { margin: 0 0 10px; }
.process-line { align-items: center; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.process-line span, .process-line strong { border: 1px solid #cae4df; color: var(--teal-deep); font-size: 12px; font-weight: 650; padding: 9px 10px; }
.process-line span { background: #f5fbfa; }
.process-line strong { background: var(--teal); border-color: var(--teal); color: #fff; }
.process-line i { color: var(--muted); font-style: normal; }

.control-list { border-top: 1px solid var(--line); margin-top: 28px; }
.control-list p { border-bottom: 1px solid var(--line); color: var(--ink-soft); display: grid; font-size: 14px; gap: 22px; grid-template-columns: 165px 1fr; margin: 0; padding: 17px 0; }
.control-list strong { color: var(--ink); font-family: Georgia, "Times New Roman", serif; font-size: 18px; font-weight: 400; }
.example-grid { display: grid; gap: 34px; grid-template-columns: minmax(0, 1fr) 270px; margin-top: 27px; }
.example-copy { color: var(--ink-soft); font-size: 15px; }
.example-copy p { margin: 0 0 16px; }
blockquote { background: #f4f8f7; border-left: 3px solid var(--review); color: var(--ink); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; margin: 20px 0; padding: 14px 16px; }
.placeholder { align-items: center; background: linear-gradient(135deg, transparent 0 49%, #eef4f2 49% 51%, transparent 51% 100%); border: 1px dashed #a8c8c2; color: var(--teal-deep); display: flex; flex-direction: column; justify-content: center; min-height: 210px; padding: 20px; text-align: center; }
.placeholder span { font-size: 13px; font-weight: 700; }
.placeholder small { color: var(--muted); font-size: 12px; margin-top: 8px; }

.screen-gallery { margin-top: 24px; max-width: 820px; }
.screen-gallery--two { display: grid; gap: 18px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.product-shot { background: #fff; border: 1px solid var(--line); box-shadow: 0 8px 24px rgba(19, 43, 55, .08); margin: 0; overflow: hidden; }
.product-shot img { background: #fff; cursor: zoom-in; display: block; height: auto; width: 100%; }
.product-shot figcaption { border-top: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.5; padding: 13px 15px 15px; }
.product-shot figcaption strong { color: var(--ink); }
.product-shot--warning { border-bottom: 3px solid var(--review); }
.product-shot--summary img { aspect-ratio: 7 / 5.4; object-fit: cover; object-position: top; }
.screen-label { color: var(--teal); display: block; font-size: 9px; font-weight: 750; letter-spacing: .11em; margin-bottom: 4px; text-transform: uppercase; }
.example-grid .product-shot { align-self: start; }

.section-intro { color: var(--muted); font-size: 14px; margin-bottom: 8px; margin-top: 21px; }
.section-intro--image-note { color: var(--teal-deep); font-size: 12px; font-style: italic; margin-top: 12px; }
.steps { border-top: 1px solid var(--line); margin-top: 30px; }
.step { border-bottom: 1px solid var(--line); }
.step summary { align-items: center; cursor: pointer; display: grid; gap: 16px; grid-template-columns: 45px 1fr auto 24px; list-style: none; padding: 21px 4px; }
.step summary::-webkit-details-marker { display: none; }
.step summary::after { color: var(--teal); content: "+"; font-size: 22px; grid-column: 4; }
.step[open] summary::after { content: "−"; }
.step-number { align-items: center; border: 1px solid var(--teal); color: var(--teal); display: flex; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11px; font-weight: 700; height: 32px; justify-content: center; width: 37px; }
.step-name { font-size: 19px; line-height: 1.12; }
.step-type { color: var(--muted); font-size: 10px; font-weight: 600; }
.step-body { border-left: 2px solid var(--review); margin: 0 40px 24px 18px; padding: 7px 0 12px 25px; }
.step-body p { color: var(--ink-soft); font-size: 14px; margin: 0; }
.detail-block { border-bottom: 1px solid var(--line); margin: 0 0 14px; padding: 0 0 14px; }
.detail-block dt { margin-bottom: 5px; }
dl { margin: 0; }
dl > div { border-top: 1px solid var(--line); padding: 10px 0; }
dl > div:last-child { border-bottom: 1px solid var(--line); }
dt { font-size: 10px; margin-bottom: 3px; }
dd { color: var(--ink); font-size: 13px; margin: 0; }
.step-body dl dt { font-size: 0; }
.step-body dl dt::after { content: "Output files"; font-size: 10px; }
.step-body dl::after { color: var(--muted); content: "Output files can be edited where manual review is required."; display: block; font-size: 11px; font-style: italic; margin-top: 9px; }

.caveats { background: #fffaf2; box-shadow: 0 0 0 100vmax #fffaf2; clip-path: inset(0 -100vmax); }
.trial { align-items: start; background: var(--ink); color: #fff; display: grid; gap: 46px; grid-template-columns: .9fr 1.1fr; margin: 70px 0; padding: 42px; }
.trial .kicker { color: #9bd7ce; }
.trial h2 { max-width: 470px; }
.trial-copy { color: #c4d2d1; font-size: 15px; }
.trial-copy p { margin: 0; max-width: 530px; }
.trial .primary-link { background: #fff; color: var(--ink); }
.trial .primary-link:hover { background: var(--teal-soft); }
.trial .secondary-link { border-color: #9bd7ce; color: #9bd7ce; }
.further-reading { border-top: 1px solid rgba(255,255,255,.2); margin-top: 28px; padding-top: 16px; }
.resources-label { color: #9bd7ce; font-size: 11px; font-weight: 750; letter-spacing: .11em; margin-bottom: 10px !important; text-transform: uppercase; }
.resource-links { display: grid; gap: 8px; }
.resource-link { align-items: center; border-bottom: 1px solid rgba(255,255,255,.16); color: #fff; display: grid; gap: 12px; grid-template-columns: 1fr auto; padding: 11px 0; text-decoration: none; }
.resource-link:hover strong { color: #9bd7ce; }
.resource-link strong, .resource-link small { display: block; }
.resource-link strong { font-family: Georgia, "Times New Roman", serif; font-size: 16px; font-weight: 400; }
.resource-link small { color: #c4d2d1; font-size: 11px; line-height: 1.4; margin-top: 2px; }
.resource-link b { color: #9bd7ce; font-size: 16px; font-weight: 400; }
.site-footer { background: #0e2029; color: #afc1c1; font-size: 12px; padding: 24px 0 30px; }
.footer-inner { display: flex; gap: 18px; justify-content: space-between; }
.footer-inner strong { color: #fff; }
.footer-inner a { color: #9bd7ce; text-decoration: none; }

.image-viewer { align-items: center; background: rgba(7, 24, 31, .97); border: 0; height: 100vh; inset: 0; justify-content: center; margin: 0; max-height: none; max-width: none; overflow: hidden; padding: 24px 72px; position: fixed; width: 100vw; }
.image-viewer[open] { display: flex; }
.image-viewer::backdrop { background: rgba(7, 24, 31, .84); }
.image-viewer img { box-shadow: 0 18px 56px rgba(0, 0, 0, .38); display: block; max-height: calc(100vh - 48px); max-width: calc(100vw - 48px); object-fit: contain; }
.image-viewer-actions { align-items: center; display: flex; gap: 10px; position: fixed; right: 22px; top: 18px; z-index: 1; }
.image-viewer-actions button { align-items: center; background: #fff; border: 0; color: var(--ink); cursor: pointer; display: flex; font-weight: 700; justify-content: center; }
.image-viewer-close { border-radius: 50%; font-size: 27px; height: 42px; line-height: 1; padding: 0 0 4px; width: 42px; }
.image-viewer-actions button:hover { background: var(--teal-soft); }

@media (max-width: 850px) {
  .intro { gap: 36px; grid-template-columns: 1fr; }
  .trace-card { max-width: 510px; }
  .section-heading { gap: 16px; grid-template-columns: 1fr; }
  .summary-content, .section-copy, .section-intro, .steps, .control-list, .example-grid, .process-line { margin-left: 0; }
  .uses { grid-template-columns: 1fr; }
  .trial { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
  .page-width { padding-left: 20px; padding-right: 20px; }
  .header-inner { min-height: 56px; }
  .product-nav { gap: 14px; }
  .product-nav a:not(.nav-cta):nth-child(n+3) { display: none; }
  .intro { padding: 49px 0 34px; }
  h1 { font-size: clamp(2.5rem, 12.5vw, 3.65rem); }
  .lead { font-size: 16px; }
  .briefing-meta, .rulesets { grid-template-columns: 1fr; }
  .summary-evidence, .screen-gallery--two { grid-template-columns: 1fr; }
  .summary, .section-block, .process, .uses { padding: 52px 0; }
  .rulesets li { min-height: 0; }
  .control-list p { display: block; }
  .control-list strong { display: block; margin-bottom: 5px; }
  .example-grid { grid-template-columns: 1fr; }
  .step summary { gap: 11px; grid-template-columns: 42px 1fr 18px; }
  .step-type { grid-column: 2; grid-row: 2; }
  .step summary::after { grid-column: 3; grid-row: 1; }
  .step-body { margin-left: 9px; margin-right: 9px; padding-left: 16px; }
  .trial { margin: 52px 0; padding: 29px 24px; }
  .footer-inner { display: block; }
  .footer-inner span, .footer-inner a { display: block; margin: 6px 0; }
  .image-viewer { padding: 16px; }
  .image-viewer img { max-height: calc(100vh - 32px); max-width: calc(100vw - 32px); }
  .image-viewer-actions { right: 12px; top: 10px; }
}

@media (max-width: 480px) {
  .product-nav a:not(.nav-cta) { display: none; }
}

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
