/* Marketing release: preserve the established identity and clarify the buying path.
   Load after style.css. This file intentionally leaves the standalone TRACE app alone. */
:root {
  --marketing-border: #cbdfee;
  --marketing-muted: #486580;
  --marketing-soft: #f3f8fd;
}

body { background: #fff; }
main, .page, .page > *, .wrap, .cards > *, .actions > * { min-width: 0; }
.wrap { width: 100%; }
img { max-width: 100%; }
button, a, input, select, textarea, summary { touch-action: manipulation; }
select:focus-visible, [tabindex="0"]:focus-visible {
  outline: 3px solid #0878b8;
  outline-offset: 4px;
}
.button { min-height: 46px; line-height: 1.4; text-align: center; white-space: normal; }
.link { line-height: 1.5; }
.page h1, .page h2, .page h3 { overflow-wrap: normal; text-wrap: balance; }
.page p, .page li, .page td, dialog p { overflow-wrap: break-word; }

/* One line, one baseline and one consistent target for every navigation item. */
body > header { height: 88px; gap: 18px; }
header #nav { display: flex; align-items: center; gap: 5px; font-size: 14px; }
header #nav > a { display: inline-flex; align-items: center; justify-content: center; height: 46px; min-height: 46px; padding: 0 11px; border-radius: 6px; line-height: 1; font-weight: 700; white-space: nowrap; transition: color .15s ease, background-color .15s ease; }
header #nav > a:not(.button):hover { color: #075b9f; background: #f2f7fb; }
header #nav > a[aria-current="page"] { color: #075b9f; background: #edf6fd; }
header #nav > a[aria-current="page"]::after { height: 2px; left: 11px; right: 11px; bottom: 3px; border-radius: 2px; }
header .header-cta { font-size: 13px; padding: 11px 15px; flex: 0 0 auto; }
header #menu { display: none; }
header #nav .nav-mobile-cta { display: none; }

/* Keep the existing illustrations; reserved dimensions prevent layout movement. */
.hero-visual { margin-right: 0; margin-left: 0; }
.hero-visual > picture { display: block; width: 100%; min-width: 0; }
.hero-visual .hero-art { display: block; width: 100%; height: auto; aspect-ratio: 3 / 2; }
.page-art > picture { display: block; width: 100%; height: 100%; }
.page-art > picture > img { width: 100%; height: 100%; object-fit: contain; }
.about-feature > picture { display: block; min-width: 0; }
.about-feature > picture > img { max-width: none; }
.art-caption { font-size: 11px; letter-spacing: .09em; right: 16px; }
.hero-copy > p:not(.eyebrow):not(.micro) { max-width: 540px; }
.hero-copy .hero-lead { font-size: clamp(18px, 1.6vw, 22px) !important; line-height: 1.55; }
.hero-copy .micro { max-width: 480px; font-size: 14px; color: #b8cde0; line-height: 1.55; }
.hero-copy .button, .page-hero-copy .button { font-size: 14px; }
.page-hero-copy > p:not(.eyebrow) { font-size: 16px; }
.page-hero .eyebrow, .hero-copy p.eyebrow { font-size: 11px; letter-spacing: .12em; }

/* Material evidence, qualifications, and consent never depend on microtype. */
.fine, .form-help, .case-context, .privacy-note, .contact-alternatives,
.card p, .card ul, .faq p, .faq summary, .pricing-note p,
.starter-scope p, .starter-scope li, .principles p, .first-conversation p,
.tool-layout label, .tool-layout label small, .tool-result > p,
.result-details > div, .next-step p, .tool-tabs .tool-teaser,
.trace-hero .trace-availability, .trace-pilot-card p.trace-small,
.trace-file-limit, .trace-file-grid label, .trace-file-grid input,
.trace-table-help, .trace-result-note, .trace-status, .trace-notice,
.trace-metrics small, .trace-metrics span, .trace-faq p, .trace-faq summary,
.trace-ongoing p, .trace-price small, .trace-scope-grid span,
.trace-pricing-link p:not(.eyebrow), .trace-contact-line,
.proof-privacy p, .article-card-body > p:not(.tag), dialog label, dialog p {
  font-size: 14px !important;
  line-height: 1.6;
}
.trace-hero .trace-availability { color: #c4d9eb !important; }
.trace-metrics small { display: block; color: #47647d; }
.trace-file-grid input::file-selector-button { min-height: 44px; }
.trace-scope-grid > div:last-child strong { font-size: 21px; }
.pricing-cards .price small { font-size: 14px; line-height: 1.5; }
.tag { font-size: 11px !important; line-height: 1.5; }
.trace-table { font-size: 14px; }
.trace-table th, .trace-table td { font-size: 14px; line-height: 1.5; }
.trace-table-scroll { max-width: 100%; min-width: 0; }
.trace-text-actions .link, .trace-import .link, .trace-contact-line a { min-height: 44px; }
.trace-text-actions { flex-wrap: wrap; }
.trace-metrics > div { min-width: 0; }
.trace-scope-grid strong { overflow-wrap: anywhere; }
.proof-grid > .card { width: 100%; min-width: 0; }
.proof-grid .card > label, .proof-grid .card > div { max-width: 100%; }
.proof-metrics { width: 100%; font-size: 14px; gap: 14px; }
.proof-metrics > * { min-width: 0; }
.proof-bar span { column-gap: 16px; }
.proof-bar b { font-size: 14px; }

/* Three clear entry points: every card describes a business problem and an output. */
.offer-routing, .service-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-top: 28px; }
.offer-routing > *, .service-grid > * { min-width: 0; }
.offer-routing .card { position: relative; padding: 28px; border-top: 3px solid #0c78bd; }
.offer-routing h3 { font-size: 25px; margin: 8px 0 16px; }
.offer-routing .tag { margin: 0 0 7px; }
.offer-routing .button, .offer-routing .link { font-size: 14px; margin-top: auto; }
.offer-routing ul { padding-left: 0; width: 100%; }
.offer-routing .route-number { display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 8px; background: #e8f5ff; color: #086ab0; font-weight: 800; }

/* An inspectable example, with the sample label and review boundary always visible. */
.proof-preview { display: block; }
.proof-preview > * { min-width: 0; }
.proof-preview .card, .proof-preview figure { margin: 0; padding: 28px; border: 1px solid var(--marketing-border); border-radius: 12px; background: #fff; }
.proof-preview figure { box-shadow: 0 12px 30px #0b36500d; }
.proof-preview figcaption { margin-bottom: 20px; color: #075b98; font-size: 14px; font-weight: 700; line-height: 1.5; }
.proof-preview h3 { font-size: 26px; }
.evidence-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; width: 100%; margin: 22px 0; align-items: start; }
.evidence-grid > * { min-width: 0; border: 1px solid #cbdfee; border-radius: 8px; background: #f4f9fe; padding: 16px; }
.evidence-grid span, .evidence-grid dt { display: block; color: #486580; font-size: 14px; line-height: 1.5; }
.evidence-grid strong, .evidence-grid dd { display: block; color: #075b9f; font-size: clamp(21px, 2.1vw, 30px); line-height: 1.25; font-weight: 800; margin: 8px 0 0; letter-spacing: -.02em; }
.evidence-grid small { display: block; font-size: 14px; color: #486580; line-height: 1.5; margin-top: 6px; }
.evidence-note { background: #edf6ff; color: #214e72; border-left: 3px solid #0876b7; border-radius: 0 8px 8px 0; padding: 17px 19px; font-size: 14px; line-height: 1.65; margin: 18px 0 0; }
.evidence-note p { margin: 0; color: inherit; }
.evidence-note strong { color: #123f66; }
.evidence-note + .actions { margin-top: 20px; }
.evidence-values { margin: 22px 0; width: 100%; }
.evidence-values > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 16px; padding: 14px 0; border-bottom: 1px solid #d3e5f1; }
.evidence-values > div:last-child { border-bottom: 0; }
.evidence-values dt { font-size: 14px; line-height: 1.5; }
.evidence-values dd { font-size: 27px; margin: 0; font-variant-numeric: tabular-nums; }
.evidence-explanation { padding: 28px !important; background: #fff !important; border: 0 !important; }
.evidence-explanation p { font-size: 16px; line-height: 1.7; }
.evidence-explanation .eyebrow { font-size: 11px; }
.evidence-type, .guide-card-meta { display: block; font-size: 14px; line-height: 1.5; color: #486580; }
.trace-price-summary { padding: 14px 17px; border: 1px solid #3f7395; border-radius: 8px; background: #103553; color: #e2f0fb !important; font-size: 15px !important; }
.trace-price-summary strong { color: #b6f448; }
.sample-label { display: inline-block; padding: 6px 10px; border: 1px solid #c9ddea; border-radius: 5px; background: #eef7fd; color: #24567a; font-size: 12px; font-weight: 700; line-height: 1.4; letter-spacing: .03em; }

/* The comparison is a data table: scroll inside its labeled region, never the page. */
.offer-comparison-wrap { max-width: 100%; margin: 30px 0 16px; overflow-x: auto; border: 1px solid var(--marketing-border); border-radius: 12px; background: #fff; scrollbar-color: #84b7d5 #edf6fc; }
.offer-comparison { width: 100%; border-collapse: collapse; text-align: left; font-size: 14px; line-height: 1.6; }
.offer-comparison caption { text-align: left; padding: 20px 22px; color: #123f66; font-weight: 700; background: #fff; }
.offer-comparison th, .offer-comparison td { padding: 19px 22px; vertical-align: top; border-bottom: 1px solid #dbe8f1; }
.offer-comparison thead th { color: #fff; background: #0b3458; font-size: 14px; font-weight: 600; }
.offer-comparison tbody th { color: #123f66; font-weight: 700; min-width: 160px; }
.offer-comparison tbody tr:nth-child(even) { background: #f5f9fd; }
.offer-comparison tbody tr:last-child > * { border-bottom: 0; }
.offer-comparison td { color: #486580; min-width: 170px; }
.offer-comparison td strong { color: #075b9f; }
.offer-comparison a { color: #075b9f; text-decoration: underline; text-underline-offset: 4px; }
.offer-comparison .button { min-width: 150px; font-size: 14px; text-decoration: none; }
.comparison-help, .table-scroll-hint { font-size: 14px; color: #486580; line-height: 1.6; margin: 0 0 25px; }

/* Delivery and service detail uses the same cards, rules, and quiet blue accents. */
.delivery-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; padding: 0; margin: 30px 0; list-style: none; }
.delivery-steps > * { min-width: 0; padding: 22px 0 0; border-top: 2px solid #b9d9ef; }
.delivery-steps > article > b { display: block; color: #0874b7; font: 800 25px/1.2 Manrope, sans-serif; margin-bottom: 15px; }
.delivery-steps h3 { font-size: 21px; margin-bottom: 12px; }
.delivery-steps p { font-size: 14px; line-height: 1.65; margin-bottom: 0; }
.service-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.service-grid .card { padding: 28px; }
.service-grid h2, .service-grid h3 { font-size: 25px; }
.service-sample { margin: 26px auto; border: 1px solid #c8dfed; border-radius: 10px; padding: 25px; background: #f5faff; min-width: 0; }
.service-sample h3 { color: #123f66; font-size: 22px; }
.service-sample p, .service-sample li, .service-sample dt, .service-sample dd { font-size: 14px; line-height: 1.65; }
.service-sample table { width: 100%; border-collapse: collapse; font-size: 14px; }
.service-sample th, .service-sample td { padding: 12px 10px; text-align: left; border-bottom: 1px solid #d4e4ef; }
.service-sample pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.credential-list { display: grid; gap: 12px; padding: 0; list-style: none; margin: 24px 0; }
.credential-list li { border-left: 3px solid #a9d851; padding: 4px 0 4px 15px; font-size: 14px; line-height: 1.6; }
.credential-list strong { display: block; color: #163f66; }

/* Full guides remain readable and linkable instead of becoming dense modal text. */
.guide-reading { max-width: 820px; margin-inline: auto; }
.guide-reading p, .guide-reading li { font-size: 16px; line-height: 1.8; color: #405e79; }
.guide-reading h2 { font-size: clamp(25px, 3vw, 33px); margin: 40px 0 18px; }
.guide-reading h3 { font-size: 23px; margin: 28px 0 14px; }
.guide-reading a { color: #0665aa; text-decoration: underline; text-underline-offset: 4px; }
.guide-reading .button { text-decoration: none; }
.guide-reading ul, .guide-reading ol { padding-left: 24px; }
.guide-reading li { margin: 9px 0; }
.guide-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 14px; color: #486580; margin: 22px 0; }
.guide-sections { display: block; margin: 26px 0 35px; padding: 0; }
.guide-sections a { font-size: inherit; line-height: inherit; }
.guide-section { margin: 32px 0; }
.guide-intro { font-size: 19px !important; padding-top: 34px; }
.guide-table-wrap { max-width: 100%; overflow-x: auto; border: 1px solid #cbdfee; border-radius: 8px; margin: 24px 0; }
.sample-table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: 1.6; }
.sample-table caption { padding: 16px 18px; text-align: left; background: #edf6fc; color: #204e70; font-weight: 700; }
.sample-table th, .sample-table td { padding: 14px 18px; border-bottom: 1px solid #d6e5ef; text-align: left; }
.sample-table tr:last-child > * { border-bottom: 0; }
.sample-table th { color: #214f71; font-weight: 600; }
.guide-takeaway { padding: 24px; border-left: 4px solid #90be3f; background: #f3f8eb; border-radius: 0 9px 9px 0; }
.guide-takeaway > p:last-child { margin-bottom: 0; }
.guide-related { margin: 28px 0 48px; padding-top: 22px; border-top: 1px solid #cbdfee; }
.article-card h2 { font-size: 24px; line-height: 1.25; margin: 12px 0; }
.guide-reading blockquote { border-left: 3px solid #81bd32; padding: 4px 0 4px 22px; margin: 28px 0; }

/* A dependable inquiry state is readable in both the dialog and the public route. */
dialog { padding: 36px; max-width: 720px; }
dialog input, dialog select, dialog textarea { font-size: 16px; min-height: 46px; }
dialog .actions .button, dialog .actions .link { font-size: 14px; }
dialog .close { min-width: 44px; min-height: 44px; }
.form-help { color: #486580; margin: 8px 0 18px; }
.form-honeypot { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.form-optional { font-weight: 400; color: #61778b; }
.form-help a, .contact-alternatives a { color: #075e9d; text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.contact-alternatives { border-top: 1px solid #cbdfee; margin-top: 24px; padding-top: 18px; }
.contact-alternatives .link { font-size: 14px; min-height: 44px; }
.privacy-list { padding-left: 22px; margin: 20px 0; }
.privacy-list li { margin: 12px 0; font-size: 14px; line-height: 1.7; }
#form-status:not(:empty) { border-left: 3px solid #168658; background: #ecf7ee; padding: 14px 16px; color: #214e3b; border-radius: 0 6px 6px 0; }
#form-status[data-state="error"] { border-left-color: #b43d32; background: #fff2ee; color: #773328; }
.inquiry-error { color: #9d3028; font-size: 14px; line-height: 1.5; }
.inquiry-receipt { border: 1px solid #b7d6c1; border-radius: 10px; padding: 22px; background: #f1f9f1; }
footer { font-size: 12px; line-height: 1.5; flex-wrap: wrap; padding-block: 22px; }
footer .link, footer a { font-size: 14px; min-height: 44px; display: inline-flex; align-items: center; }

@media (max-width: 1279px) {
  body > header { height: 78px; padding: 0 24px; gap: 14px; }
  header #menu { display: block; min-width: 46px; min-height: 46px; margin-left: auto; border: 1px solid #b9d4e6; border-radius: 6px; background: #fff; color: #125d91; font-size: 25px; }
  header .header-cta { display: none; }
  header #nav { display: none; position: absolute; left: 0; right: 0; top: 78px; align-items: stretch; flex-direction: column; gap: 3px; padding: 18px 24px 24px; background: #fff; color: #123f66; border-bottom: 1px solid #cbdfee; box-shadow: 0 14px 24px #092d5420; max-height: calc(100dvh - 78px); overflow-y: auto; }
  header #nav.open { display: flex; }
  header #nav > a { justify-content: flex-start; padding: 11px 12px; border-radius: 5px; min-height: 46px; font-size: 15px; line-height: 1.4; }
  header #nav a[aria-current="page"] { background: #edf6fd; }
  header #nav a[aria-current="page"]::after { left: 0; top: 8px; bottom: 8px; width: 3px; height: auto; }
  header #nav .nav-mobile-cta { display: inline-flex; margin-top: 10px; justify-content: center; }
}

@media (max-width: 900px) {
  .offer-routing { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .offer-routing .card { padding: 26px; }
  .offer-routing .card > p { max-width: 65ch; }
  .proof-preview .evidence-grid { grid-template-columns: 1fr; gap: 22px; }
  .delivery-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .evidence-grid { gap: 10px; }
}

@media (max-width: 760px) {
  .wrap { padding-left: 22px; padding-right: 22px; }
  .hero, .page-hero, .value-section, .footer-cta { padding-left: 22px; padding-right: 22px; }
  .hero-visual { margin: 0; min-height: 0; max-height: none; padding-top: 12px; overflow: hidden; }
  .hero-visual .hero-art { width: 100%; max-height: none; }
  .art-caption { bottom: 4px; right: 8px; font-size: 10px; }
  .hero-copy .actions { align-items: stretch; }
  .hero-copy .actions .button { flex: 1 1 190px; }
  .hero-copy .micro { font-size: 14px; margin-top: 20px; }
  .page-art { margin: 0; }
  .page-hero h1, .pricing-hero h1 { white-space: normal; font-size: clamp(34px, 9vw, 44px); }
  .page-hero-copy > p:not(.eyebrow) { font-size: 16px; }
  .trace-hero .actions .button { font-size: 14px; }
  .trace-hero .trace-lead { font-size: 18px !important; }
  .trace-evidence-visual figcaption { flex-wrap: wrap; }
  .trace-visual-title > strong { overflow-wrap: break-word; }
  .trace-sample-label { font-size: 11px; line-height: 1.5; }
  .trace-controls { align-items: flex-end; }
  .trace-controls label { min-width: 0; }
  .trace-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trace-metrics strong { font-size: clamp(24px, 6.5vw, 30px); }
  .trace-scope-grid { grid-template-columns: 1fr 1fr; }
  .proof-bar span { column-gap: 12px; font-size: 14px; }
  .proof-metrics { grid-template-columns: 1fr; }
  .proof-metrics > * { border-top: 1px solid #d0e2ef; padding-top: 10px; }
  .service-grid, .about-grid { grid-template-columns: 1fr; }
  .service-grid .card, .service-sample, .proof-preview .card, .proof-preview figure { padding: 23px; }
  .service-sample { margin-inline: 0; }
  .evidence-grid { grid-template-columns: 1fr; }
  .evidence-grid > * { padding: 16px; }
  .evidence-grid strong, .evidence-grid dd { font-size: 26px; }
  .offer-comparison-wrap { margin-top: 24px; border-radius: 8px; }
  .offer-comparison th, .offer-comparison td { padding: 15px 17px; }
  .offer-comparison caption { padding: 17px; }
  .offer-comparison { min-width: 700px; }
  .research-controls { display: grid; gap: 20px; }
  .research-controls .search { max-width: none; }
  .research-controls .filters { display: flex; flex-wrap: wrap; }
  .research-controls .filters button { font-size: 14px; min-height: 44px; }
  .guide-reading p, .guide-reading li { font-size: 16px; }
  .guide-sections { padding: 0; }
  dialog { padding: 32px 22px 24px; width: calc(100% - 24px); max-height: calc(100dvh - 24px); }
  dialog h2 { font-size: 29px; padding-right: 17px; }
  dialog .form-row { grid-template-columns: 1fr; gap: 0; }
  dialog .actions { align-items: stretch; gap: 12px; }
  dialog .actions .button { width: 100%; }
  .contact-alternatives { overflow-wrap: anywhere; }
}

@media (max-width: 390px) {
  body > header { padding-inline: 18px; }
  .brand-name { font-size: 21px; }
  .wrap, .hero, .page-hero, .value-section, .footer-cta { padding-left: 18px; padding-right: 18px; }
  .hero h1 { font-size: 43px; }
  .delivery-steps { grid-template-columns: 1fr; gap: 20px; }
  .trace-scope-grid { grid-template-columns: 1fr; }
  .trace-visual-title { flex-wrap: wrap; }
  .trace-visual-title > strong { font-size: 21px; }
  .trace-evidence-visual { padding: 18px; }
  .proof-note { padding: 22px; }
  .trace-offer .card { padding: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

@media print {
  header, .footer-cta, footer, .actions, .button, #menu { display: none !important; }
  .guide-reading, .wrap { max-width: none; }
  .offer-comparison-wrap { overflow: visible; border: 0; }
  .offer-comparison { min-width: 0; }
  .evidence-note, .service-sample, .card { break-inside: avoid; box-shadow: none; }
}

/* Standalone forms use the same readable controls as the inquiry dialog. */
[hidden] { display:none !important; }
.form-honeypot { position:absolute !important; left:-10000px; width:1px; height:1px; overflow:hidden; }
.standalone-contact, .standalone-privacy { padding-top:58px; padding-bottom:70px; max-width:880px; }
.standalone-contact-inner { padding:34px; border:1px solid #cbdfee; border-radius:12px; background:#fff; box-shadow:0 14px 45px #092d540a; }
.standalone-contact h1, .standalone-privacy h1 { color:#123b64; font-size:clamp(30px,5vw,42px); line-height:1.2; margin-bottom:20px; }
.standalone-contact p, .standalone-privacy p { font-size:16px; line-height:1.7; }
.standalone-contact label { display:block; margin:18px 0 7px; color:#173e60; font-size:15px; font-weight:600; }
.standalone-contact input, .standalone-contact textarea { width:100%; padding:12px 13px; border:1px solid #aec9dc; border-radius:6px; background:#fff; color:#173e60; font:16px/1.5 inherit; font-family:inherit; font-size:16px; margin-top:8px; }
.standalone-contact textarea { min-height:150px; resize:vertical; }
.standalone-contact .form-row { display:grid; grid-template-columns:1fr 1fr; gap:18px; }
.standalone-contact .actions { display:flex; flex-wrap:wrap; gap:16px; margin-top:24px; align-items:center; }
.standalone-contact .fine, #challenge-counter { font-size:14px; line-height:1.6; color:#486580; }
.standalone-privacy h3 { margin-top:30px; font-size:23px; }
.standalone-privacy .privacy-list { padding-left:0; }
@media(max-width:600px){.standalone-contact,.standalone-privacy{padding-top:30px}.standalone-contact-inner{padding:23px 18px}.standalone-contact .form-row{grid-template-columns:1fr;gap:0}}
.standalone-contact p, .standalone-privacy p, .standalone-privacy li { color:#405e79 !important; }
.standalone-contact .eyebrow, .standalone-privacy .eyebrow { color:#086b9d !important; }
.standalone-contact #form-status[data-state="success"] { color:#214e3b !important; }
.standalone-contact #form-status[data-state="error"] { color:#773328 !important; }

.scope-hint { margin: 3px 0 6px; color:#365872; line-height:1.5; }
