:root {
  --doua-page-space: clamp(2.5rem, 1.65rem + 4vw, 5rem);
  --doua-section-space: clamp(1.75rem, 1rem + 3vw, 3.75rem);
  --doua-reading: 62ch;
  --doua-title: clamp(2rem, 1.5rem + 2.6vw, 4rem);
}

/* Public entry pages share a centered axis and a readable introduction. */
.doua-codex-v4 .hero > .container > h1,
.doua-codex-v4 .chapter-copy h2,
.doua-codex-v4 :is(.product-prices,.studio,.local-faq,.closing) h2,
.pricing-page .pricing-main .pricing-heading h1,
.download-main .download-hero h1,
.about-page .about-hero h1,
.blog .blog-index-head h1,
.contact-copy h1,
.policy-intro h1 {
  font-size:var(--doua-title);
  line-height:1.07;
  text-wrap:balance;
}
.doua-codex-v4 .hero > .container > h1 { font-size:clamp(2.7rem,1.8rem + 4.3vw,5.6rem); }
.doua-codex-v4 .hero { padding-block-start:clamp(2rem,1.1rem + 3vw,4rem); }
.doua-codex-v4 .hero .hero-intro { max-inline-size:var(--doua-reading); }
.doua-codex-v4 .hero .stage-captures { margin-block-start:var(--doua-section-space); }
.doua-codex-v4 :is(.studio,.chapter,.local-faq,.closing) { padding-block:var(--doua-page-space); }
.doua-codex-v4 .chapter-copy h2 { margin-block-end:.8rem; }
.doua-codex-v4 .chapter-copy > p:not(.eyebrow):not(.chapter-status) { max-inline-size:var(--doua-reading); }
.doua-codex-v4 .studio-workflows { margin-block-start:var(--doua-section-space); }
.doua-codex-v4 .local-faq details { max-inline-size:48rem; margin-inline:auto; }
.pricing-page .pricing-main .pricing-heading { margin-block-end:var(--doua-section-space); }
.pricing-page .pricing-main .pricing-heading > p:last-child { max-inline-size:var(--doua-reading); }
.download-main .download-hero { padding-block:var(--doua-page-space) var(--doua-section-space); }
.download-main .download-product { gap:var(--doua-section-space); padding-block:var(--doua-section-space); }
.download-main .download-product:nth-child(2) { grid-template-columns:minmax(0,.82fr) minmax(0,1.18fr); }
.download-main .download-product:nth-child(2) :is(.download-copy,.download-visual) { grid-column:auto; grid-row:auto; }
.download-main .download-copy h2 { font-size:clamp(1.75rem,1.3rem + 1.8vw,3rem); }
.download-main .download-products { padding-block-end:var(--doua-page-space); }
.about-page :is(.about-hero,.about-story,.about-products,.about-close),
.blog .blog-index-head { padding-block:var(--doua-page-space); }
.blog .blog-article-head { padding-block:var(--doua-section-space); }
.blog .blog-article-head h1 { font-size:clamp(2rem,1.4rem + 2.6vw,3.8rem); }

.contact-layout.container { grid-template-columns:minmax(0,1fr); gap:var(--doua-section-space); padding-block:var(--doua-page-space); max-inline-size:48rem; }
.contact-layout .contact-copy { text-align:center; }
.contact-layout .contact-copy :is(h1,p) { max-inline-size:var(--doua-reading); margin-inline:auto; }
.contact-layout .contact-copy .contact-fallback { margin-block-start:.8rem; }
.contact-layout .contact-panel { background:#fff; }
.policy-main .policy-intro { margin-inline:auto; text-align:center; }
.policy-main .policy-intro p { max-inline-size:var(--doua-reading); margin-inline:auto; }

/* Working surfaces keep their headings aligned with their controls. */
#customer :is(.account-page-heading,.account-overview-heading) {
  gap:.8rem 1rem;
  margin-block-end:clamp(1.15rem, 2.3vw, 1.8rem);
}
#customer :is(.account-page-heading,.account-overview-heading) h1,
.site-admin .operator-header h1 {
  font-size:clamp(1.75rem,1.45rem + 1.2vw,2.6rem);
  line-height:1.1;
  letter-spacing:-.04em;
}
#customer .account-page-heading h1 + p,
.site-admin .operator-header h1 + p { max-inline-size:var(--doua-reading); margin-block-start:.42rem; }
.site-admin .operator-heading { gap:.6rem 1rem; }
.site-admin .operator-heading h2 { font-size:clamp(1.1rem,1rem + .35vw,1.4rem); }
.site-admin .operator-header { margin-block-end:clamp(1.1rem, 2vw, 1.6rem); }

@media (max-width: 46rem) {
  .download-main .download-products .download-product { grid-template-columns:minmax(0,1fr); }
  .download-main .download-visual { min-block-size:0; }
}

#auth .account-heading h1,
body:has(#start-setup) .shell .copy h1 { font-size:clamp(2rem,1.5rem + 2.2vw,3.35rem); line-height:1.08; text-wrap:balance; }
body:has(#start-setup) .shell { padding-block:var(--doua-page-space); gap:var(--doua-section-space); }
body:has(#start-setup) .shell .card { box-shadow:none; }
@media (max-width:780px) {
  body:has(#start-setup) .shell .card { margin-block-start:var(--doua-section-space); }
}
@media (max-width: 46rem) {
  .doua-codex-v4 .hero .stage-captures { grid-template-columns:minmax(0,1fr); min-block-size:0; }
  .doua-codex-v4 .hero .stage-capture-mobile { display:none; }
  .doua-codex-v4 .hero .stage-capture-code { min-block-size:0; }
}

/* Product and platform are useful context, with the headline carrying the visual emphasis. */
.doua-codex-v4 .hero > .container > .eyebrow {
  text-transform:none;
  letter-spacing:0;
  font-size:.9rem;
  color:var(--jade);
}
.doua-codex-v4 .hero > .container > h1 > span { color:inherit; }
