/* Inner pages: match the ToxicAgents parchment / burgundy / forest-green visual system. */
.inner-page { background: var(--paper); min-height: 60vh; overflow: hidden; }
.paper-texture { background-color: var(--paper); background-image: radial-gradient(ellipse at 20% 10%, rgba(255,255,255,.3), transparent 48%), repeating-linear-gradient(112deg, rgba(105,70,32,.025) 0 1px, transparent 1px 5px); }
.nav-links a[aria-current="page"] { color: var(--red); position: relative; }
.nav-links a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -7px; height: 1px; background: var(--red); }
.inner-page h1, .inner-page h2, .inner-page h3 { font-family: var(--serif); }
.page-hero { max-width: 1440px; margin: auto; padding: clamp(52px, 6vw, 88px) clamp(24px, 7vw, 100px); }
.page-hero-split { display: grid; grid-template-columns: minmax(0, 1.03fr) minmax(0, .97fr); align-items: center; gap: clamp(28px, 5vw, 76px); min-height: 410px; }
.page-hero-copy { max-width: 680px; position: relative; z-index: 1; }
.page-kicker { color: var(--red); letter-spacing: 2.4px; font: 700 10px/1.4 var(--sans); margin: 0 0 12px; }
.page-kicker.gold { color: #d6b477; }
.page-title { max-width: 860px; margin: 0 auto 17px; color: var(--ink); font-size: clamp(38px, 5.1vw, 66px); font-weight: 600; line-height: 1.04; letter-spacing: -1.4px; }
.page-title em { color: var(--red); font-style: normal; }
.page-hero-copy .page-title { margin-left: 0; }
.page-lede { max-width: 690px; margin: 0 auto; color: #33291e; font-size: clamp(14px, 1.25vw, 17px); line-height: 1.7; }
.page-hero-copy .page-lede { margin-left: 0; }
.page-hero-centered { text-align: center; padding-top: clamp(46px, 5vw, 70px); padding-bottom: clamp(34px, 4vw, 56px); }
.page-hero-centered .page-title { max-width: 900px; }
.page-hero-centered .page-lede { max-width: 720px; }
.page-hero-art { position: relative; min-height: 280px; display: flex; align-items: center; justify-content: center; }
.page-hero-art::before { content: ""; position: absolute; width: 72%; aspect-ratio: 1; border-radius: 50%; background: rgba(188,145,78,.18); filter: blur(1px); }
.page-hero-art img { position: relative; display: block; width: 100%; max-height: 390px; object-fit: contain; mix-blend-mode: multiply; border-radius: 2px; }
.page-hero-art-wide img { object-fit: cover; object-position: center; mix-blend-mode: multiply; }
.page-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; margin-top: 25px; }
.text-link { color: var(--red); font-size: 13px; font-weight: 700; }
.text-link span { padding-left: 4px; }
.page-section { padding: clamp(42px, 5.5vw, 72px) 0; }
.page-container { width: min(1160px, calc(100% - 48px)); margin: 0 auto; }
.section-intro { max-width: 700px; margin: 0 auto 32px; text-align: center; }
.section-intro h2, .page-heading { margin: 0 0 12px; color: var(--ink); font-size: clamp(28px, 3.4vw, 42px); font-weight: 600; line-height: 1.12; letter-spacing: -.55px; }
.section-intro p:not(.page-kicker), .page-section p { line-height: 1.65; }
.section-intro p:not(.page-kicker) { margin-bottom: 0; color: #594b39; }
.capability-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.capability-card { padding: 24px; border: 1px solid rgba(143,94,47,.35); border-radius: 7px; background: rgba(255,247,229,.33); box-shadow: 0 8px 22px rgba(79,48,19,.035); }
.capability-symbol { display: inline-block; color: var(--red); font: 38px/1 var(--serif); margin-bottom: 13px; }
.capability-card h3 { margin: 0 0 9px; font-size: 21px; font-weight: 600; }
.capability-card p { margin: 0 0 15px; color: #574733; font-size: 13px; }
.capability-card a { color: var(--red); font-size: 12px; font-weight: 700; }
.page-dark-band { color: #f3dfb9; background: #041d17; background-image: radial-gradient(ellipse at 50% 20%, #0e3026, #031b16 74%); padding: clamp(44px, 5vw, 70px) 0; }
.dark-band-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr); gap: clamp(35px, 7vw, 100px); align-items: center; }
.page-dark-band .page-heading { color: #f1d3a0; max-width: 650px; }
.page-dark-band p { color: #e5d2ad; }
.page-dark-band .dark-band-grid > div:first-child > p:not(.page-kicker) { max-width: 650px; }
.dark-band-list { border-left: 1px solid rgba(214,180,119,.3); padding-left: 26px; }
.dark-band-list p { margin: 0; padding: 13px 0; border-bottom: 1px solid rgba(214,180,119,.18); font: 500 15px var(--serif); }
.dark-band-list p:last-child { border: 0; }
.dark-band-list span { color: #d6b477; display: inline-block; width: 34px; font: 700 10px var(--sans); }
.page-bottom-cta { padding: 46px 24px 52px; text-align: center; }
.page-bottom-cta .page-heading { margin-bottom: 9px; }
.page-bottom-cta > p:not(.page-kicker) { margin: 0 auto; color: #574733; max-width: 620px; }
.page-bottom-cta > .button { margin-top: 22px; }
.centered-actions { justify-content: center; }
/* Workflow page */
.page-process-dark { background: #041d17; background-image: radial-gradient(ellipse at center, #0a2b22 0%, #031b16 72%); color: #f3dfb9; }
.process-detail-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.process-detail { min-width: 0; padding: 0 8px; }
.process-detail-image { width: 112px; height: 112px; overflow: hidden; border-radius: 50%; border: 1px solid #be9657; margin: 0 auto 19px; background: #e8d0a3; }
.process-detail-image img { display: block; width: 100%; height: 100%; object-fit: cover; }
.process-number { margin: 0 0 8px !important; color: #d7b578; font: 700 10px var(--sans); letter-spacing: 2px; text-align: center; }
.process-detail h2 { margin: 0 0 10px; text-align: center; color: #f4dfb9; font-size: 21px; line-height: 1.15; }
.process-detail > p:not(.process-number) { color: #e1ceb0; font-size: 12px; line-height: 1.6; }
.process-detail ul { list-style: none; padding: 12px 0 0; margin: 12px 0 0; border-top: 1px solid rgba(216,180,119,.25); }
.process-detail li { font-size: 11px; color: #e1ceb0; padding: 5px 0 5px 16px; position: relative; }
.process-detail li::before { content: "—"; position: absolute; left: 0; color: #d7b578; }
.two-column-story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(28px, 5vw, 64px); align-items: center; }
.story-image { min-height: 280px; }
.story-image img { width: 100%; height: 100%; max-height: 390px; object-fit: cover; mix-blend-mode: multiply; }
.two-column-story .page-heading { margin-bottom: 16px; }
.two-column-story p { color: #574733; }
.callout-note { margin: 20px 0; padding: 17px 20px; border-left: 3px solid var(--red); background: rgba(255,247,229,.45); }
.callout-note strong { font-family: var(--serif); }
.callout-note p { margin: 6px 0 0; font-size: 13px; }
/* Use cases */
.usecase-detail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.usecase-detail-card { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 22px; align-items: center; padding: 24px; border: 1px solid rgba(143,94,47,.34); border-radius: 8px; background: rgba(255,247,229,.3); }
.usecase-detail-art { width: 130px; height: 130px; overflow: hidden; border-radius: 50%; background: #e7d0a3; border: 1px solid #bc8f4c; }
.usecase-detail-art img { display: block; width: 100%; height: 100%; object-fit: cover; }
.usecase-detail-card .page-kicker { margin-bottom: 7px; font-size: 9px; }
.usecase-detail-card h2 { margin: 0 0 8px; font-size: 23px; line-height: 1.15; }
.usecase-detail-card p { margin: 0 0 10px; color: #574733; font-size: 12px; }
.example-question { padding: 11px 13px; background: rgba(139,91,46,.09); border-left: 2px solid #ae7841; color: #4e3d2b; font: italic 13px/1.45 var(--serif); }
.example-question strong { display: block; margin-bottom: 4px; color: var(--red); font: 700 9px var(--sans); letter-spacing: 1px; text-transform: uppercase; }
.tag-row { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px !important; margin-bottom: 0 !important; }
.tag-row span { border: 1px solid rgba(127,32,23,.2); border-radius: 100px; padding: 4px 8px; color: #7d2017; font-size: 9px; line-height: 1.2; }
/* Pricing */
.pricing-disclaimer { margin: 17px auto 0; max-width: 740px; color: #7d2017; font-size: 11px; font-style: italic; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.pricing-card { position: relative; display: flex; flex-direction: column; padding: 29px 27px; border: 1px solid rgba(143,94,47,.38); border-radius: 8px; background: rgba(255,247,229,.42); }
.pricing-card h2 { font-size: 29px; margin: 0 0 7px; }
.plan-label { color: var(--red) !important; letter-spacing: 2px; font: 700 9px var(--sans); margin: 0 0 9px !important; }
.plan-description { min-height: 62px; margin: 0 0 16px; color: #574733; font-size: 12px; }
.plan-price { margin: 0 0 18px; display: flex; align-items: baseline; gap: 7px; }
.plan-price strong { font: 600 43px/1 var(--serif); }
.plan-price span { color: #6b5a43; font-size: 11px; }
.custom-price strong { font-size: 34px; }
.plan-button { width: 100%; }
.plan-divider { border-top: 1px solid rgba(143,94,47,.25); margin: 24px 0 17px; }
.included-title { margin: 0 0 10px !important; font-weight: 700; font-size: 12px; }
.plan-list { margin: 0; padding: 0; list-style: none; }
.plan-list li { padding: 8px 0 8px 21px; border-bottom: 1px solid rgba(143,94,47,.11); position: relative; font-size: 12px; color: #574733; }
.plan-list li:last-child { border-bottom: 0; }
.plan-list li::before { content: "✓"; color: var(--red); position: absolute; left: 0; font-weight: 700; }
.pricing-featured { color: #f3dfb9; background: #061f19; border-color: #7f6037; box-shadow: 0 12px 32px rgba(37,24,8,.13); }
.pricing-featured h2, .pricing-featured .plan-price strong, .pricing-featured .included-title { color: #f3dfb9; }
.pricing-featured .plan-label { color: #d6b477 !important; }
.pricing-featured .plan-description, .pricing-featured .plan-price span, .pricing-featured .plan-list li { color: #e0ceb0; }
.pricing-featured .plan-divider, .pricing-featured .plan-list li { border-color: rgba(214,180,119,.2); }
.pricing-featured .plan-list li::before { color: #d6b477; }
.plan-ribbon { position: absolute; top: 0; right: 20px; padding: 7px 9px; color: #44150d; background: #e4c48c; font: 700 8px var(--sans); letter-spacing: 1px; }
.pricing-footnote { margin: 20px 0 0; text-align: center; color: #6b5a43; font-size: 10px; }
/* Docs */
.docs-hero { padding-bottom: 36px; }
.docs-section { padding-top: 24px; }
.docs-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: clamp(28px, 5vw, 68px); align-items: start; }
.docs-sidebar { position: sticky; top: 18px; padding: 18px; border: 1px solid rgba(143,94,47,.32); border-radius: 7px; background: rgba(255,247,229,.38); }
.docs-sidebar-title { margin: 0 0 10px !important; font: 700 9px var(--sans) !important; letter-spacing: 1.7px; color: var(--red); }
.docs-sidebar > a { display: block; padding: 9px 0; border-top: 1px solid rgba(143,94,47,.16); font-size: 12px; color: #513c28; }
.docs-sidebar > a:hover, .contact-quick-links a:hover { color: var(--red); }
.docs-help { margin-top: 20px; padding-top: 17px; border-top: 1px solid rgba(143,94,47,.24); }
.docs-help strong { font: 600 16px var(--serif); }
.docs-help p { margin: 6px 0; font-size: 11px; color: #6b5a43; }
.docs-help a { color: var(--red); font-size: 11px; font-weight: 700; }
.docs-content { min-width: 0; }
.docs-topic { scroll-margin-top: 24px; padding: 0 0 32px; margin: 0 0 32px; border-bottom: 1px solid rgba(143,94,47,.3); }
.docs-topic:last-child { border-bottom: 0; margin-bottom: 0; }
.docs-topic .page-kicker { margin-bottom: 8px; font-size: 9px; }
.docs-topic h2 { margin: 0 0 12px; font-size: 29px; }
.docs-topic > p:not(.page-kicker) { color: #574733; font-size: 13px; }
.numbered-list { padding-left: 21px; }
.numbered-list li { padding: 7px 0 7px 5px; color: #574733; font-size: 13px; line-height: 1.6; }
.docs-definition-list { border-top: 1px solid rgba(143,94,47,.25); }
.docs-definition-list > div { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; padding: 13px 0; border-bottom: 1px solid rgba(143,94,47,.2); }
.docs-definition-list strong { color: var(--red); font: 600 15px var(--serif); }
.docs-definition-list p { margin: 0; color: #574733; font-size: 12px; }
.code-window { border: 1px solid #6b4a28; border-radius: 7px; overflow: hidden; background: #091d18; color: #f3dfb9; }
.code-window-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; background: #102e25; border-bottom: 1px solid rgba(214,180,119,.22); font-size: 10px; color: #ddc79f; }
.copy-button { border: 1px solid #b58b54; background: transparent; border-radius: 4px; padding: 6px 9px; color: #f3dfb9; font: 600 10px var(--sans); cursor: pointer; }
.copy-button:hover { background: rgba(214,180,119,.13); }
.code-window pre { padding: 20px; margin: 0; overflow-x: auto; font: 12px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; }
.practice-list { padding-left: 20px; }
.practice-list li { padding: 6px 0 6px 4px; color: #574733; font-size: 13px; line-height: 1.55; }
.faq-item { padding: 13px 0; border-top: 1px solid rgba(143,94,47,.25); }
.faq-item summary { cursor: pointer; font: 600 17px var(--serif); }
.faq-item p { margin: 9px 0 0; color: #574733; font-size: 12px; }
/* Contact */
.contact-hero { padding-bottom: 34px; }
.contact-layout { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: clamp(30px, 6vw, 84px); align-items: start; }
.contact-copy .page-heading { margin-bottom: 14px; }
.contact-copy > p:not(.page-kicker) { color: #574733; font-size: 13px; }
.contact-info-card { display: flex; gap: 14px; padding: 17px 0; border-bottom: 1px solid rgba(143,94,47,.22); }
.contact-symbol { display: grid; place-items: center; flex: 0 0 38px; height: 38px; border: 1px solid #b98a53; border-radius: 50%; color: var(--red); font: 21px var(--serif); }
.contact-info-card strong { font: 600 17px var(--serif); }
.contact-info-card p { margin: 4px 0 0; color: #6b5a43; font-size: 11px; }
.contact-side-note { margin-top: 25px; padding: 19px; border: 1px solid rgba(143,94,47,.3); background: rgba(255,247,229,.35); border-radius: 7px; }
.contact-side-note strong { font: 600 18px var(--serif); }
.contact-side-note p { color: #6b5a43; font-size: 12px; margin: 7px 0 12px; }
.contact-quick-links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-quick-links a { color: var(--red); font-weight: 700; font-size: 11px; }
.contact-form { padding: clamp(22px, 3vw, 34px); border: 1px solid rgba(143,94,47,.38); border-radius: 8px; background: rgba(255,247,229,.45); box-shadow: 0 12px 30px rgba(79,48,19,.04); }
.contact-form h2 { margin: 0 0 22px; font-size: 28px; }
.contact-form label { display: block; margin-bottom: 15px; font-size: 11px; font-weight: 700; color: #4b3928; }
.form-two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.contact-form input:not([type="checkbox"]), .contact-form select, .contact-form textarea { display: block; width: 100%; margin-top: 7px; padding: 12px 13px; border: 1px solid rgba(143,94,47,.42); border-radius: 5px; background: #fff5df; color: #20170f; font: 400 12px var(--sans); outline: none; }
.contact-form textarea { resize: vertical; min-height: 130px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { border-color: #8b2a1d; box-shadow: 0 0 0 3px rgba(139,42,29,.1); }
.consent-check { display: flex !important; align-items: flex-start; gap: 9px; font-weight: 400 !important; line-height: 1.5; }
.consent-check input { margin-top: 2px; accent-color: var(--red); }
.form-note { margin: 12px 0 0; color: #77664e; font-size: 10px; line-height: 1.5 !important; }
.form-status { margin: 10px 0 0; color: var(--red); font-size: 12px; font-weight: 700; }
/* Common page-responsive rules */
@media (max-width: 900px) {
  .page-hero-split { gap: 28px; }
  .page-title { font-size: clamp(35px, 5vw, 48px); }
  .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .process-detail-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 35px; }
  .usecase-detail-grid { grid-template-columns: 1fr; }
  .pricing-grid { gap: 12px; }
  .pricing-card { padding: 24px 18px; }
  .plan-price strong { font-size: 37px; }
  .contact-layout { gap: 28px; }
  .docs-layout { grid-template-columns: 190px minmax(0, 1fr); gap: 28px; }
}
@media (min-width: 651px) and (max-width: 760px) {
  .site-header .nav-links { display: none; }
  .site-header .menu-toggle { display: flex; flex-direction: column; gap: 5px; padding: 9px; cursor: pointer; }
  .site-header .menu-toggle span { width: 22px; height: 2px; background: var(--red); }
  .site-header .nav-links.open { display: flex; position: absolute; left: 18px; right: 18px; top: calc(100% - 1px); flex-direction: column; align-items: stretch; padding: 10px 18px; gap: 0; background: var(--paper-light); border: 1px solid rgba(143,94,47,.35); box-shadow: 0 12px 20px rgba(20,12,4,.12); }
  .site-header .nav-links.open a { padding: 11px 2px; border-top: 1px solid rgba(143,94,47,.16); }
}
@media (max-width: 650px) {
  .page-hero { padding: 40px 20px 34px; }
  .page-hero-split { grid-template-columns: 1fr; gap: 16px; }
  .page-hero-art { min-height: 180px; max-height: 260px; }
  .page-hero-art img { max-height: 260px; }
  .page-title { font-size: clamp(36px, 10vw, 48px); letter-spacing: -.8px; }
  .page-lede { font-size: 14px; }
  .page-actions { gap: 14px; }
  .page-container { width: min(100% - 36px, 520px); }
  .page-section { padding: 36px 0; }
  .capability-grid { grid-template-columns: 1fr; gap: 12px; }
  .capability-card { padding: 20px; }
  .dark-band-grid { grid-template-columns: 1fr; gap: 25px; }
  .dark-band-list { padding-left: 16px; }
  .process-detail-grid { grid-template-columns: 1fr 1fr; gap: 28px 12px; }
  .process-detail { padding: 0; }
  .process-detail-image { width: 86px; height: 86px; }
  .process-detail h2 { font-size: 18px; }
  .process-detail > p:not(.process-number), .process-detail li { font-size: 11px; }
  .two-column-story { grid-template-columns: 1fr; }
  .story-image { min-height: 180px; }
  .usecase-detail-card { grid-template-columns: 78px minmax(0, 1fr); gap: 15px; padding: 16px; }
  .usecase-detail-art { width: 78px; height: 78px; align-self: start; }
  .usecase-detail-card h2 { font-size: 20px; }
  .usecase-detail-card p { font-size: 11px; }
  .example-question { font-size: 12px; }
  .pricing-grid { grid-template-columns: 1fr; gap: 15px; max-width: 430px; margin: 0 auto; }
  .pricing-card { padding: 26px; }
  .plan-description { min-height: auto; }
  .docs-layout { grid-template-columns: 1fr; }
  .docs-sidebar { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
  .docs-sidebar-title, .docs-help { grid-column: 1 / -1; }
  .docs-sidebar > a { font-size: 11px; }
  .docs-definition-list > div { grid-template-columns: 1fr; gap: 4px; }
  .docs-topic h2 { font-size: 26px; }
  .form-two-col { grid-template-columns: 1fr; gap: 0; }
  .contact-layout { grid-template-columns: 1fr; }
  .contact-form { padding: 22px 18px; }
}
