/* AcademicWrite public site: shared shell and marketing pages. */
.public-site {
  /* Soft green-and-white palette: deep green actions, calm mint accents and clear reading contrast. */
  --ink: #1c3028;
  --muted: #52655b;
  --brand: #22634b;
  --brand-hover: #194e3a;
  --accent: #dcecdf;
  --paper: #f4f8f4;
  --white: #ffffff;
  --line: #dce6dd;
  --control-border: #78887c;
  --focus: #22634b;
  --container: 1280px;
  --primary: var(--brand);
  --primary-dark: var(--brand-hover);
  --primary-light: #eaf3ec;
  --primary-soft: #f4f8f4;
  --primary-gradient: linear-gradient(135deg, var(--brand) 0%, #2b785b 100%);
  --border-green: #d6e4d8;
  --text: var(--ink);
  --text-secondary: var(--muted);
  --text-muted: var(--muted);
  --surface: var(--paper);
  --header-height: 88px;
  --reading-size: 1.25rem;
  --compact-reading-size: 1.1875rem;
  --label-size: 1.125rem;
  --meta-size: 1rem;
  font-size: var(--compact-reading-size);
}
.public-site .site-header { background: #fff; backdrop-filter: none; border-bottom: 1px solid #e7eee8; }
.public-site .site-header > .container { width: 100%; }
.public-site .header-content { gap: 1.2rem; }
.public-site .logo-icon { border-radius: 50%; width: 42px; height: 42px; font-size: .78rem; background: var(--brand); }
.public-site .logo-text { font-family: Lora, Lato, sans-serif; font-size: 1.22rem; letter-spacing: -.055em; }
.public-site .logo-text span { color: var(--ink); }
.public-site .desktop-nav { gap: .25rem; }
.public-site .desktop-nav a { padding: .6rem .65rem; font-size: 1.0625rem; color: #354d40; }
.public-site .register-link { font-size: 1.0625rem; border-radius: 8px; min-height: 46px; gap: 1rem; background: var(--brand); }
.public-site .auth-link { font-size: 1rem; }
.public-site .mobile-menu a { font-size: 1rem; }
.public-site .copyright, .public-site .footer-legal a { font-size: .875rem; }
.public-site .mobile-overlay { z-index: 110; }
.public-site .mobile-menu { z-index: 120; }
.public-site .main-content { padding-bottom: 0; }
.public-site .footer { background: #142e23; margin-top: 0; padding-top: 4rem; }
.public-site .footer-about-text, .public-site .footer-links a { color: #ceded2; font-size: 1rem; }
.public-site .footer-links a:hover { color: var(--accent); }
.public-site .footer-section h4 { color: #fff; }
.public-site .copyright, .public-site .footer-legal a { color: #b8cec0; }
.public-site .footer-contact { display: inline-block; margin-top: 1.5rem; color: var(--accent); font-size: 1rem; font-weight: 600; }
.public-site .integrity-note { color: #b8cec0; font-size: .875rem; max-width: 780px; margin: 0 0 2rem; }
.public-site a:focus-visible, .public-site button:focus-visible, .public-site summary:focus-visible, .public-site input:focus-visible, .public-site select:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }
.skip-link { position: fixed; left: 1rem; top: -100px; padding: .75rem 1rem; background: white; color: var(--brand); z-index: 1000; }
.skip-link:focus { top: 1rem; }
.marketing { color: var(--ink); font-family: Lato, sans-serif; }
.marketing *, .marketing *::before, .marketing *::after { box-sizing: border-box; }
.marketing h1, .marketing h2, .marketing h3 { font-family: Lora, Lato, sans-serif; color: var(--ink); }
.marketing h1 { font-size: clamp(2.6rem, 4.8vw, 4.65rem); letter-spacing: -.035em; font-weight: 600; line-height: 1.08; }
.marketing h2 { font-size: clamp(2rem, 3vw, 2.85rem); letter-spacing: -.025em; font-weight: 600; line-height: 1.18; }
.marketing h3 { font-size: 1.5rem; letter-spacing: -.02em; line-height: 1.4; font-weight: 700; }
.marketing p { font-size: var(--reading-size); color: var(--muted); line-height: 1.75; }
.marketing .eyebrow { display: block; font-size: var(--meta-size); line-height: 1.6; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: #456953; margin-bottom: 1.2rem; }
.marketing .eyebrow.light { color: var(--accent); }
.marketing .lead { font-size: 1.375rem; line-height: 1.75; margin-top: 1.5rem; max-width: 530px; }
.marketing .highlight { color: #22634b; }
.m-button { display: inline-flex; gap: 1.5rem; justify-content: center; align-items: center; min-height: 52px; padding: .85rem 1.5rem; color: #fff; background: var(--brand); border: 1px solid var(--brand); border-radius: 8px; font: 700 1.125rem Lato, sans-serif; cursor: pointer; text-decoration: none; transition: background .15s, transform .15s; }
.m-button:hover { background: var(--brand-hover); transform: translateY(-1px); }
.m-button.secondary { background: transparent; border-color: var(--control-border); color: #24563f; }
.m-button.secondary:hover { background: #edf5ee; }
.m-button.accent { background: var(--accent); color: #1c3028; border-color: var(--accent); }
.m-button.accent:hover { background: #c9dfcf; }
.m-link { font-size: var(--compact-reading-size); color: #22634b; font-weight: 600; text-underline-offset: 5px; }
.m-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem 1.4rem; margin-top: 2rem; }
.m-section { padding: 5.25rem 0; }
.m-section + .m-section { border-top: 1px solid var(--line); }
.m-section-head { display: flex; align-items: end; justify-content: space-between; gap: 2rem; margin-bottom: 2.3rem; }
.m-section-head h2 { max-width: 640px; }
.m-section-head > p { max-width: 320px; }
.m-hero { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); gap: 4.5rem; padding: 3.5rem 0 3.75rem; align-items: center; }
.m-hero-copy { padding: 1rem 0; }
.m-hero h1 .highlight { display: inline; position: relative; }
.m-hero .lead { max-width: 520px; }
.m-hero-note { display: flex; gap: .6rem; margin-top: 1.25rem; font-size: 1rem!important; }
.m-hero-note span { color: #22634b; }
.m-proof { display: grid; grid-template-columns: repeat(4,1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding: 1.5rem 0; }
.m-proof > div { padding: .2rem 1.6rem; border-right: 1px solid var(--line); }
.m-proof > div:first-child { padding-left: 0; }
.m-proof > div:last-child { border: 0; }
.m-proof strong { display: block; font-size: 1.125rem; font-weight: 600; margin-bottom: .25rem; }
.m-proof > div > span { color: var(--muted); font-size: 1rem; }
.estimate-card { background: var(--paper); padding: 1.9rem; border: 1px solid #d6e4d8; border-radius: 16px; box-shadow: 0 16px 40px -32px #244a3577; position: relative; }
.estimate-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.2rem; }
.estimate-card .estimate-top h2 { font-size: 1.38rem; letter-spacing: -.035em; }
.estimate-card .estimate-kicker { background: #fff; padding: .3rem .65rem; border-radius: 5px; color: #3c6049; font-size: var(--meta-size); white-space: nowrap; }
.estimate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.estimate-field label { display: block; font-size: var(--label-size); color: #354f40; font-weight: 600; margin-bottom: .4rem; }
.estimate-field select, .estimate-field input { width: 100%; min-width: 0; min-height: 54px; padding: .65rem .75rem; border: 1px solid var(--control-border); border-radius: 6px; background: white; color: #243e2f; font: 1.125rem Lato,sans-serif; }
.estimate-field select { padding-right: 1.25rem; }
.estimate-field .errorlist { padding-left: 1rem; font-size: var(--meta-size); color: #a1281c; }
.estimate-card .m-button { width: 100%; }
.estimate-total { display: flex; align-items: end; justify-content: space-between; margin: 1.3rem 0 1rem; padding-top: 1.2rem; border-top: 1px solid #d7e4da; gap: 1rem; }
.estimate-total span { font-size: .9375rem; color: #46634f; }
.estimate-total strong { font: 600 2.25rem Lora, sans-serif; letter-spacing: -.045em; line-height: 1.2; color: #1c3028; }
.estimate-total small { display: block; font-size: var(--meta-size); color: #52655b; margin-top: .35rem; }
.estimate-card .estimate-note { font-size: var(--meta-size); line-height: 1.6; text-align: center; margin-top: .7rem; color: #52655b; }
.estimate-status { min-height: 1.5em; font-size: 1rem!important; margin-top: .65rem; }
.estimate-status:empty { display: none; }
.estimate-update { margin-top: .9rem; background: transparent; border: 0; text-decoration: underline; text-underline-offset: 3px; color: #22634b; font: .9375rem Lato,sans-serif; cursor: pointer; }
.m-services { display: grid; grid-template-columns: repeat(3,1fr); gap: 0 2.4rem; }
.m-service { padding: 1.65rem 0; border-top: 1px solid var(--line); position: relative; }
.m-service .service-number { font-size: var(--meta-size); color: #52655b; display: block; margin-bottom: 1.25rem; }
.m-service h3 { padding-right: 1.6rem; }
.m-service h3 a { color: inherit; text-decoration: none; }
.m-service h3 a::after { content: '↗'; position: absolute; right: 0; font: 400 1.3rem Lato,sans-serif; color: #22634b; }
.m-service h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.m-service p { margin-top: .65rem; font-size: var(--compact-reading-size); max-width: 330px; }
.m-process { background: #193e30; border-radius: 18px; padding: 3.5rem; margin: .5rem 0 0; }
.m-process h2, .m-process h3 { color: white; }
.m-process .m-section-head p { color: #ceded2; }
.m-steps { display: grid; grid-template-columns: repeat(4,1fr); gap: 2rem; margin-top: 2.5rem; }
.m-step { border-top: 1px solid #789a83; padding-top: 1.4rem; }
.m-step .step-number { display: block; color: #dcecdf; font-size: var(--meta-size); margin-bottom: 1.5rem; }
.m-step h3 { font-size: 1.375rem; }
.m-step p { margin-top: .7rem; color: #ceded2; font-size: var(--compact-reading-size); }
.m-split { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: center; }
.m-image { width: 100%; height: 460px; object-fit: cover; border-radius: 14px; background: #eaf1e9; }
.m-check-list { list-style: none; margin: 1.5rem 0 0; padding: 0; }
.m-check-list li { display: flex; gap: .85rem; padding: .8rem 0; border-bottom: 1px solid var(--line); color: #425b4c; font-size: var(--compact-reading-size); line-height: 1.7; }
.m-check-list li::before { content: '✓'; color: #22634b; flex-shrink: 0; }
.m-resource-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.m-resource { background: var(--paper); border: 1px solid #dce6dd; border-radius: 10px; padding: 1.65rem; display: flex; flex-direction: column; align-items: start; }
.m-resource .eyebrow { margin-bottom: 2rem; }
.m-resource h3 { margin-bottom: .75rem; }
.m-resource p { font-size: var(--compact-reading-size); margin-bottom: 1.5rem; }
.m-resource .m-link { margin-top: auto; }
.m-faq-layout { display: grid; grid-template-columns: .85fr 1.15fr; gap: 5rem; }
.m-faq-layout .lead { font-size: var(--reading-size); }
.m-faq details { border-bottom: 1px solid var(--line); }
.m-faq details:first-child { border-top: 1px solid var(--line); }
.m-faq summary { padding: 1.3rem 2.4rem 1.3rem 0; position: relative; list-style: none; cursor: pointer; font-size: 1.25rem; font-weight: 600; line-height: 1.6; }
.m-faq summary::-webkit-details-marker { display: none; }
.m-faq summary::after { content: '+'; position: absolute; right: .3rem; top: 1rem; font-size: 1.4rem; font-weight: 400; }
.m-faq details[open] summary::after { content: '−'; }
.m-faq details p { padding: 0 1rem 1.25rem 0; font-size: var(--compact-reading-size); }
.m-cta { display: flex; align-items: center; justify-content: space-between; gap: 2.5rem; padding: 3.25rem; margin: 0 0 4.5rem; background: #e9f2e7; border-radius: 14px; }
.m-cta h2 { max-width: 650px; font-size: clamp(1.8rem,3vw,2.6rem); }
.m-cta p { margin-top: .75rem; }
.m-cta .m-button { flex-shrink: 0; }
.m-page-head { padding: 4rem 0 3.5rem; max-width: 850px; }
.m-page-head .lead { max-width: 690px; }
.m-breadcrumb { font-size: var(--meta-size); color: #52655b; display: flex; gap: .7rem; flex-wrap: wrap; padding-top: 1.5rem; }
.m-breadcrumb a { color: #22634b; text-underline-offset: 3px; }
.m-prose p + p { margin-top: 1rem; }
.m-values { display: grid; grid-template-columns: repeat(3,1fr); gap: 2.5rem; }
.m-values article { border-top: 1px solid var(--line); padding: 1.5rem 0; }
.m-values p { margin-top: .85rem; }
.m-detail-layout { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(0,.8fr); gap: 5rem; padding: 0 0 5rem; align-items: start; }
.m-detail-layout .m-prose h2 { font-size: 1.6rem; margin: 2.5rem 0 1rem; }
.m-detail-layout .m-prose h2:first-child { margin-top: 0; }
.m-aside { padding: 2rem; background: #f4f8f4; border-radius: 12px; }
.m-aside p { margin: 1rem 0 1.5rem; }
.m-aside .m-button { width: 100%; }
.m-price-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 5rem; align-items: start; padding-bottom: 5rem; }
.m-price-layout .estimate-stage { max-width: 600px; width: 100%; }
.m-price-explain h2 { font-size: 1.55rem; margin: 1.5rem 0 1rem; }
.m-price-explain h2:first-child { margin-top: 0; }
.m-price-explain .m-check-list { margin-top: 0; }
@media (min-width: 1024px) and (max-width: 1199px) { .public-site .desktop-nav { display: none; } .public-site .mobile-menu-button { display: flex; } }
@media (max-width: 1099px) { .m-hero { gap: 2rem; } .m-split, .m-faq-layout, .m-detail-layout, .m-price-layout { gap: 2.5rem; } .m-process { padding: 2.5rem; } }
@media (max-width: 800px) {
  .public-site { --header-height: 74px; }
  .m-hero { grid-template-columns: 1fr; padding-top: 2rem; gap: 2rem; }
  .m-hero h1 { max-width: 640px; font-size: clamp(2.8rem,7.7vw,4.4rem); }
  .m-hero-copy { padding: 0; } .m-hero .lead { max-width: 580px; }
  .estimate-card { max-width: 620px; width: 100%; }
  .m-proof { grid-template-columns: 1fr 1fr; gap: 1rem 0; }
  .m-proof > div:nth-child(odd) { padding-left: 0; } .m-proof > div:nth-child(even) { border: 0; }
  .m-services { grid-template-columns: 1fr 1fr; }
  .m-section { padding: 3.5rem 0; }
  .m-steps { grid-template-columns: 1fr 1fr; }
  .m-split, .m-faq-layout, .m-detail-layout, .m-price-layout { grid-template-columns: 1fr; }
  .m-image { height: 360px; } .m-resource-grid, .m-values { grid-template-columns: 1fr; }
  .m-resource { padding: 1.5rem; } .m-resource .eyebrow { margin-bottom: 1rem; }
  .m-section-head { align-items: start; flex-direction: column; gap: 1rem; }
  .m-section-head > p { max-width: 550px; }
  .m-cta { padding: 2.5rem; align-items: start; flex-direction: column; margin-bottom: 3rem; }
  .m-page-head { padding: 2.5rem 0; } .m-page-head h1 { font-size: 3rem; }
}
@media (max-width: 480px) {
  .public-site { --reading-size: 1.125rem; --compact-reading-size: 1.125rem; }
  .public-site .logo-text { display: inline; font-size: 1rem; } .public-site .logo { gap: .4rem; }
  .public-site .logo-icon { width: 33px; height: 33px; font-size: .63rem; }
  .public-site .header-content { gap: .4rem; } .public-site .auth-section { gap: .35rem; }
  .public-site .auth-link { font-size: .875rem; padding: .45rem .5rem; }
  .public-site .register-link { font-size: .875rem; min-height: 42px; padding: 0 .7rem; gap: .35rem; }
  .public-site .register-link span { display: none; } .public-site .mobile-menu-button { width: 34px; }
  .marketing h1 { font-size: 2.5rem; } .marketing .lead { font-size: 1.25rem; }
  .estimate-card { padding: 1.3rem; } .estimate-grid { gap: .8rem; }
  .estimate-field:nth-child(-n+2) { grid-column: 1 / -1; }
  .estimate-field select, .estimate-field input { font-size: 1.125rem; padding-left: .65rem; }
  .estimate-card .estimate-top h2 { font-size: 1.2rem; } .estimate-top { gap: .5rem; flex-wrap: wrap; }
  .m-services { grid-template-columns: 1fr; } .m-service .service-number { margin-bottom: .6rem; }
  .m-process { padding: 1.65rem; border-radius: 12px; } .m-steps { grid-template-columns: 1fr; gap: 1.25rem; }
  .m-step .step-number { margin-bottom: .6rem; } .m-steps { margin-top: 1.5rem; }
  .m-proof > div { padding-right: .6rem; padding-left: .8rem; } .m-proof strong { font-size: 1.0625rem; }
  .m-proof > div > span { font-size: 1rem; } .m-image { height: 300px; } .m-cta { padding: 1.7rem; }
  .m-actions { gap: 1rem; } .m-actions .m-button { flex-grow: 1; }
}
@media (prefers-reduced-motion: reduce) { .public-site { scroll-behavior: auto; } .public-site * { scroll-behavior: auto!important; } .m-button:hover { transform: none; } }
.public-site .m-process :focus-visible, .public-site .footer :focus-visible { outline-color: var(--accent); }
.public-site .mobile-menu-button { border-color: var(--control-border); }
/* Reading sizes for the supporting public pages that use the original templates. */
.public-site :is(.contact-hero, .services-hero) p { font-size: 1.125rem; }
.public-site :is(.services-page, .faq-answer, .guarantees-body) p { font-size: var(--compact-reading-size); line-height: 1.75; }
.public-site .form-group label { font-size: 1.125rem; }
.public-site .form-group :is(input, select, textarea) { font-size: 1.125rem; }
.public-site .form-group :is(.hint, .error-message) { font-size: 1rem; }
/* Editorial typography and lightweight, two-tone academic icons. */
.public-site { --icon-accent: #b17a37; --icon-surface: #edf5ed; }
.public-site .logo-text { font-family: Lato, sans-serif; letter-spacing: -.03em; }
.marketing h1 { font-family: Lato, sans-serif; font-weight: 800; }
.marketing :is(h2, h3) { font-family: Lora, Georgia, serif; font-weight: 600; }
.marketing :is(.estimate-top h2, .m-price-explain h2) { font-family: Lato, sans-serif; font-weight: 700; }
.m-icon { width: 48px; height: 48px; flex: 0 0 auto; display: block; color: var(--brand); }
.m-icon .icon-accent { stroke: var(--icon-accent); }
.m-icon-badge { display: inline-flex; align-items: center; justify-content: center; width: 70px; height: 70px; flex: 0 0 auto; border-radius: 18px; background: var(--icon-surface); }
.m-proof .m-icon { margin-bottom: .85rem; width: 40px; height: 40px; }
.m-service .m-icon-badge { margin-bottom: 1.3rem; }
.m-service .service-number { display: none; }
.m-services { gap: 1.5rem; }
.m-service { padding: 1.75rem; border: 1px solid var(--line); border-radius: 16px; transition: border-color .15s, background .15s; }
.m-service:hover { border-color: var(--control-border); background: #fbfdfb; }
.m-service :is(h2, h3) { font-size: 1.5rem; line-height: 1.4; padding-right: 0; }
.m-service h2 a { color: inherit; }
.m-service h3 a::after { content: none; }
.m-service p { max-width: none; }
.m-service a:focus-visible { outline-offset: 5px; }
.m-step-top { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.m-step-top .step-number { margin: 0; }
.m-process .m-icon-badge { width: 60px; height: 60px; border-radius: 14px; background: #ffffff12; }
.m-process .m-icon { color: #e5f1e8; --icon-accent: #eac18c; width: 42px; height: 42px; }
.m-resource .m-icon-badge { margin-bottom: 1.4rem; }
.m-resource .eyebrow { margin-bottom: 1rem; font-size: 1rem; }
.m-resource { background: white; padding: 2rem; }
.m-resource h3 { font-size: 1.5rem; }

/* The decorative shapes sit inside the stage and cannot cover its controls. */
.estimate-stage { position: relative; isolation: isolate; padding: 1.4rem; min-width: 0; border-radius: 28px; background: #f0f5ef; overflow: hidden; }
.estimate-stage::before, .estimate-stage::after { content: ''; position: absolute; z-index: -1; pointer-events: none; border-radius: 45px; transform: rotate(-32deg); }
.estimate-stage::before { width: 70%; height: 52%; background: #dcebdc; top: -12%; right: -28%; }
.estimate-stage::after { width: 65%; height: 48%; background: #e3ece0; bottom: -10%; left: -28%; }
.estimate-card { background: white; padding: 1.8rem; border: 1px solid #dee7dd; border-radius: 18px; box-shadow: 0 14px 36px -26px #1c30284d; scroll-margin-top: 110px; }
.estimate-top { gap: .9rem; justify-content: flex-start; margin-bottom: 1.6rem; }
.estimate-top .m-icon-badge { width: 58px; height: 58px; border-radius: 14px; }
.estimate-top .m-icon { width: 38px; height: 38px; }
.estimate-card .estimate-top h2 { font-size: 1.65rem; line-height: 1.25; letter-spacing: -.02em; }
.estimate-card .estimate-kicker { display: block; padding: 0; margin-bottom: .3rem; color: var(--muted); font-size: 1rem; white-space: normal; }
.estimate-field-wide { grid-column: 1 / -1; }
.estimate-grid { gap: 1.1rem; }
.estimate-field label { line-height: 1.4; }
.estimate-field :is(input, select) { border-color: var(--control-border); }
.estimate-total { flex-wrap: wrap; margin-top: 1.5rem; }
.estimate-total strong { font-family: Lato, sans-serif; font-size: 2.6rem; }
.estimate-total span, .estimate-total small, .estimate-update { font-size: 1rem; }
.estimate-card .estimate-note { font-size: 1rem; }
.quantity-stepper[data-enhanced] { display: grid; grid-template-columns: 40px minmax(0, 1fr) 40px; align-items: stretch; border: 1px solid var(--control-border); border-radius: 6px; background: #fff; min-height: 54px; }
.quantity-stepper[data-enhanced] input { text-align: center; padding: .6rem .1rem; border: 0; background: transparent; border-radius: 0; appearance: textfield; min-height: 52px; }
.quantity-stepper[data-enhanced] input::-webkit-inner-spin-button, .quantity-stepper[data-enhanced] input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.quantity-stepper button { min-width: 0; border: 0; background: transparent; color: var(--brand); font: 700 1.6rem Lato, sans-serif; cursor: pointer; border-radius: 5px; }
.quantity-stepper button:hover:not(:disabled) { background: var(--primary-light); }
.quantity-stepper button:disabled { color: #86958a; cursor: default; }
.quantity-stepper button[hidden] { display: none; }
/* Home and pricing share the approved compact, single-panel calculator. */
.marketing .estimate-stage--compact { padding: 0; overflow: visible; border-radius: 16px; background: transparent; }
.marketing .estimate-stage--compact::before, .marketing .estimate-stage--compact::after { content: none; }
.estimate-stage--compact .estimate-card { padding: 1.5rem; border: 1px solid #d6e4d8; border-radius: 16px; background: var(--paper); box-shadow: 0 16px 40px -32px #244a3577; }
.estimate-stage--compact .estimate-top { justify-content: space-between; flex-wrap: wrap; gap: .6rem 1rem; margin-bottom: 1.2rem; }
.estimate-stage--compact .estimate-top h2 { font-size: 1.38rem; }
.estimate-compact-badge { padding: .3rem .65rem; border-radius: 5px; background: white; color: var(--muted); font-size: 1rem; white-space: nowrap; }
.estimate-stage--compact .estimate-grid { gap: .9rem 1rem; }
.estimate-stage--compact .estimate-total { margin: 1.2rem 0 1rem; padding-top: 1rem; }
.m-price-layout .estimate-stage--compact { justify-self: end; }
@media (max-width: 480px) {
  .estimate-stage--compact .estimate-card { padding: 1.2rem; }
  .estimate-stage--compact .estimate-grid { gap: .9rem .75rem; }
}
.m-price-explain > p { margin-bottom: 1.5rem; }
.m-icon-list { list-style: none; padding: 0; margin: 1.5rem 0; }
.m-icon-list li { display: flex; align-items: flex-start; gap: 1rem; border-bottom: 1px solid var(--line); padding: 1.15rem 0; color: var(--muted); font-size: var(--compact-reading-size); line-height: 1.65; }
.m-icon-list .m-icon { width: 40px; height: 40px; }
.m-icon-list strong { display: block; color: var(--ink); margin-bottom: .15rem; }

/* Paper details echo the icon-led lists in the supplied reference. */
.m-detail-grid { display: grid; grid-template-columns: 1fr 1fr 1.15fr; gap: 2.2rem; }
.m-detail-grid > article { min-width: 0; }
.m-detail-grid .m-icon-badge { margin-bottom: 1.4rem; }
.m-detail-grid h3 { margin-bottom: 1.2rem; font-size: 1.55rem; }
.m-feature-list { list-style: none; padding: 0; margin: 0 0 1.3rem; }
.m-feature-list li { display: flex; gap: .65rem; font-size: var(--compact-reading-size); line-height: 1.65; color: var(--muted); margin-bottom: 1rem; }
.m-feature-list li::before { content: '✓'; color: var(--brand); font-weight: 700; flex: 0 0 auto; }
.m-format-card { padding: 2rem; background: var(--paper); border-radius: 20px; border: 1px solid var(--line); }
.m-format-list { list-style: none; padding: 0; margin: 1.5rem 0 0; }
.m-format-list li { display: flex; gap: .9rem; margin-top: 1.4rem; align-items: flex-start; }
.m-format-list .m-icon { width: 34px; height: 34px; }
.m-format-list strong { display: block; font-size: 1.125rem; line-height: 1.5; color: var(--ink); }
.m-format-list span { display: block; margin-top: .25rem; font-size: 1rem; color: var(--muted); line-height: 1.55; }
.m-cta { display: grid; grid-template-columns: 190px minmax(0,1fr) auto; gap: 2rem; padding: 2rem; background: white; border: 1px solid var(--line); box-shadow: 0 12px 38px -30px #22634b40; }
.m-cta-illustration { width: 100%; height: auto; border-radius: 18px; }
.m-cta h2 { font-size: clamp(1.8rem,2.6vw,2.5rem); }
.m-cta .eyebrow { margin-bottom: .75rem; }
@media (max-width: 1100px) {
  .m-detail-grid { grid-template-columns: 1fr 1fr; }
  .m-format-card { grid-column: 1 / -1; }
  .m-format-list { display: grid; grid-template-columns: 1fr 1fr; gap: 1.2rem; }
  .m-format-list li { margin-top: 0; }
  .m-cta { grid-template-columns: 170px minmax(0,1fr); }
  .m-cta .m-button { grid-column: 2; justify-self: start; }
  .m-cta-illustration { grid-row: span 2; }
}
@media (max-width: 800px) {
  .m-services { grid-template-columns: 1fr 1fr; }
  .estimate-stage { max-width: 650px; width: 100%; }
  .m-cta { grid-template-columns: 140px minmax(0,1fr); padding: 1.5rem; }
}
@media (max-width: 600px) {
  .m-detail-grid, .m-format-list { grid-template-columns: 1fr; }
  .m-format-card { grid-column: auto; padding: 1.5rem; }
  .m-services { grid-template-columns: 1fr; }
  .m-cta { grid-template-columns: 1fr; gap: 1.3rem; }
  .m-cta-illustration { grid-row: auto; max-width: 230px; justify-self: center; }
  .m-cta .m-button { grid-column: auto; justify-self: stretch; }
  .m-resource { padding: 1.5rem; }
}
@media (max-width: 480px) {
  .estimate-stage { padding: .65rem; border-radius: 20px; }
  .estimate-card { padding: 1.2rem; }
  .estimate-top { flex-wrap: nowrap; gap: .65rem; }
  .estimate-card .estimate-top h2 { font-size: 1.45rem; }
  .estimate-top .m-icon-badge { width: 44px; height: 48px; }
  .estimate-top .m-icon { width: 32px; height: 32px; }
  .estimate-grid { gap: 1rem .7rem; }
  .estimate-field label { font-size: 1.0625rem; }
  .estimate-total { align-items: flex-start; gap: .7rem; }
  .quantity-stepper[data-enhanced] { grid-template-columns: 32px minmax(0,1fr) 32px; }
  .m-section-head h2 { overflow-wrap: break-word; }
}

/* Regular copy only: add 2px without scaling headings, bold labels or buttons.
   Keep the original size available for inline emphasis inside larger copy. */
.public-site { --copy-increase: 2px; }
.marketing p { --copy-size: var(--reading-size); }
.marketing :is(.m-service p, .m-step p, .m-resource p, .m-faq details p,
  .m-check-list li, .m-icon-list li, .m-feature-list li) { --copy-size: var(--compact-reading-size); }
.marketing .lead { --copy-size: 1.375rem; }
.marketing .m-faq-layout .lead { --copy-size: var(--reading-size); }
.public-site .marketing :is(p, .m-check-list li, .m-icon-list li, .m-feature-list li) {
  font-size: calc(var(--copy-size) + var(--copy-increase));
}
.public-site .marketing :is(p, .m-check-list li, .m-icon-list li, .m-feature-list li) :is(strong, b) {
  font-size: var(--copy-size);
}
.public-site .marketing :is(.m-hero-note, .estimate-note, .estimate-status) { --copy-size: 1rem; }
.public-site .marketing :is(.m-hero-note, .estimate-status) { font-size: calc(1rem + var(--copy-increase))!important; }
.public-site :is(.m-proof > div > span, .estimate-compact-badge, .estimate-kicker,
  .estimate-total span, .estimate-total small, .estimate-update, .estimate-field .errorlist,
  .step-number, .m-breadcrumb, .m-format-list span, .footer-about-text, .footer-links a,
  .form-group .hint, .form-group .error-message) { font-size: calc(1rem + var(--copy-increase)); }
.public-site :is(.estimate-field input, .estimate-field select, .form-group input,
  .form-group select, .form-group textarea) { font-size: calc(1.125rem + var(--copy-increase)); }
.public-site :is(.copyright, .footer-legal a, .integrity-note) { font-size: calc(.875rem + var(--copy-increase)); }

/* Supporting public templates retain their own hierarchy and original copy sizes. */
.public-site :where(.contact-hero p, .services-hero p) { --copy-size: 1.125rem; }
.public-site :is(.faq-hero p, .guarantees-hero p) { --copy-size: 1.1rem; }
.public-site :where(.faq-intro, .guarantees-intro, .terms-intro, .blog-search input) { --copy-size: .95rem; }
.public-site :where(.success-message p, .faq-footer p, .policy-box li, .policy-section p,
  .policy-section li, .terms-section p, .terms-section li, .blog-card .card-excerpt,
  .citation-card p) { --copy-size: .9rem; }
.public-site :where(.global-error, .policy-footer .contact-info .text, .refund-box p,
  .refund-box li, .refund-section .step .content .desc, .refund-footer .contact-info .text,
  .category-tag, .pagination a, .pagination span, .toc a, .toast-message) { --copy-size: .85rem; }
.public-site :where(.cta-box p, .policy-hero .hero-sub, .policy-intro p, .refund-hero .hero-sub,
  .refund-intro p, .terms-hero .hero-sub, .featured-content .excerpt) { --copy-size: 1rem; }
.public-site :where(.refund-highlight p, .terms-footer p, .featured-content .meta) { --copy-size: .8rem; }
.public-site :where(.blog-hero .subtitle, .article-content) { --copy-size: 1.05rem; }
.public-site :where(.article-meta, .related-card p) { --copy-size: .88rem; }
.public-site .article-breadcrumb { --copy-size: .82rem; }
.public-site .blog-card .card-meta { --copy-size: .75rem; }
.public-site .related-card small { --copy-size: .76rem; }
.public-site :is(.contact-hero p, .services-hero p, .services-page p, .faq-answer p,
  .guarantees-body p, .faq-hero p, .guarantees-hero p, .faq-intro, .guarantees-intro,
  .terms-intro, .blog-search input, .success-message p, .faq-footer p, .policy-box li,
  .policy-section p, .policy-section li, .terms-section p, .terms-section li,
  .blog-card .card-excerpt, .citation-card p, .global-error, .policy-footer .contact-info .text,
  .refund-box p, .refund-box li, .refund-section .step .content .desc,
  .refund-footer .contact-info .text, .category-tag, .pagination a, .pagination span,
  .toc a, .toast-message, .cta-box p, .policy-hero .hero-sub, .policy-intro p,
  .refund-hero .hero-sub, .refund-intro p, .terms-hero .hero-sub, .featured-content .excerpt,
  .refund-highlight p, .terms-footer p, .featured-content .meta, .blog-hero .subtitle,
  .article-content, .article-meta, .related-card p, .article-breadcrumb,
  .blog-card .card-meta, .related-card small) { font-size: calc(var(--copy-size) + var(--copy-increase)); }
.public-site :is(.services-page, .faq-answer, .guarantees-body, .policy-intro, .policy-section,
  .policy-box, .refund-box, .terms-intro, .terms-section, .article-content) :is(strong, b) { font-size: var(--copy-size); }
.public-site .terms-intro a { font-size: .95rem; }
.public-site .faq-answer a { font-size: var(--compact-reading-size); }
.public-site :is(.services-page, .faq-answer, .guarantees-body) p { --copy-size: var(--compact-reading-size); }
.public-site .guarantees-footer a { font-size: var(--compact-reading-size); }
.public-site :is(.policy-footer, .refund-footer) .contact-info .text a { font-size: .85rem; }
.public-site .article-content :is(h1, h2, h3, h4, h5, h6) :is(strong, b) { font-size: inherit; }
@media (max-width: 480px) {
  .marketing .lead { --copy-size: 1.25rem; }
}
