@import url('/assets/tokens.css');
/* Porchlight layouts using the approved Pete palette and type. */
* { box-sizing: border-box; }
html { color: #182820; background: var(--background); font-family: var(--font-sans); scroll-behavior: smooth; }
body { margin: 0; padding-bottom: 88px; background: var(--background) url('/assets/textures/cotton-paper.svg') repeat; font-size: 18px; line-height: 1.6; }
body:has(dialog[open]) { overflow: hidden; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-underline-offset: 4px; overflow-wrap: anywhere; }
button, a { touch-action: manipulation; }
button, summary { cursor: pointer; }
h1, h2, h3 { margin: 0 0 1rem; font-family: var(--font-heading); font-weight: 500; line-height: 1.15; letter-spacing: 0; text-wrap: balance; color: var(--primary); }
h1 { font-size: clamp(36px, 5vw, 60px); }
h2 { font-size: clamp(30px, 4vw, 40px); }
h3 { font-size: 26px; }
p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }
[hidden] { display: none !important; }
.wrap { width: min(100% - 40px, 1120px); margin-inline: auto; }
.section { padding-block: 72px; }
.eyebrow { color: var(--primary); font-weight: 500; margin-bottom: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .35em; min-height: 48px; color: var(--primary); font: 600 clamp(20px, 3vw, 26px)/1.1 var(--font-heading); letter-spacing: -0.02em; text-decoration: none; }
.brand-mark { display: block; flex: 0 0 auto; width: 1.1875em; height: 1.1875em; transform: translateY(.15em); }
.site-header { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px 24px; min-height: 96px; padding-block: 16px; }
.home-page .site-header { min-height: 80px; padding-block: 8px; }
.header-call { min-height: 48px; align-content: center; font-size: 18px; }
.button { position: relative; display: inline-flex; justify-content: center; align-items: center; min-height: 40px; padding: 9px 16px; border: 1px solid transparent; border-radius: 7px; gap: 10px; font-size: 16px; font-weight: 500; line-height: 1.25; text-decoration: none; text-align: center; }
/* Keep at least 48px click areas around the compact visible controls. */
.button::before, .text-link::before { content: ""; position: absolute; inset: -5px -1px; }
.button-primary { background: var(--primary); color: white; }
.button-primary:hover { background: #073c24; }
.header-cta { min-height: 36px; padding: 8px 12px; gap: 8px; font-size: 14px; }
.header-cta::before { inset-block: -7px; }
.button-outline { border-color: #66786d; background: transparent; color: var(--primary); }
.button-outline:hover { background: #ecf0e9; }
button:disabled, [aria-disabled='true'] { opacity: .65; cursor: wait; }
.full-width { width: 100%; }
.hero { width: min(100% - 40px, 880px); margin-inline: auto; padding: 48px 0 64px; text-align: center; }
.home-page { --home-section-space: 112px; }
.home-page h2 { font-size: clamp(28px, 2.5vw, 36px); line-height: 1.2; }
.home-page .section, .home-page .closing-band { padding-block: var(--home-section-space); }
.home-page .faq-section { padding-bottom: var(--home-section-space); }
.home-page .site-footer { padding-block: 64px; }
.home-page .hero { display: grid; width: 100%; padding: 0; text-align: left; background: var(--primary); }
.hero-photo { display: block; min-width: 0; order: 2; }
.hero-photo img { display: block; width: 100%; height: 100%; aspect-ratio: 1; object-fit: cover; object-position: top; }
.hero-content { padding: 48px 24px; align-self: center; }
.home-page .hero h1 { color: var(--background); font-size: clamp(36px, 4.7vw, 64px); line-height: 1.08; max-width: 560px; text-wrap: initial; }
.hero-line { display: block; }
.home-page .hero .button { background: var(--background); color: var(--primary); }
.home-page .hero .button:hover { background: #e8edde; }
.home-page .hero .button:focus-visible { outline-color: var(--background); }
.hero-description { max-width: 480px; margin: 24px 0 28px; font-size: 18px; color: #fefcf8; }
.hero-quiz { max-width: 544px; }
.hero-quiz h2 { font-family: var(--font-sans); font-size: 22px; line-height: 1.4; }
.entry-answers, .quiz-answers { display: grid; gap: 12px; }
.entry-answers { max-width: 544px; margin: 24px auto; }
.answer { width: 100%; min-height: 48px; padding: 8px 16px; border: 1px solid #8b9a90; border-radius: 7px; color: #182820; background: #fdfcf9; text-align: left; font: 500 18px/1.45 var(--font-sans); transition: background-color 160ms, border-color 160ms; }
.answer:hover { background: #f0f2ec; border-color: var(--primary); }
.answer[aria-pressed='true'] { border-color: var(--primary); background: #eaf0e9; }
.answer[aria-pressed='true']::after { content: '✓'; float: right; margin-left: 8px; color: var(--primary); }
.hero-note { color: #fefcf8; margin-top: 20px; }
.home-intro { display: grid; gap: 56px; }
.home-intro h2 { max-width: 600px; margin-bottom: 28px; font-size: clamp(34px, 3.4vw, 48px); line-height: 1.15; text-wrap: initial; }
.home-intro > div > p { color: #425b4e; max-width: 54ch; }
.service-facts { display: grid; gap: 32px; margin: 0; }
.practice-reasons h3 { font: 500 18px/1.5 var(--font-sans); margin-bottom: 32px; }
.service-facts > div + div { border-top: 1px solid #d3dbd0; padding-top: 32px; }
.service-facts dt { color: var(--primary); font: 500 clamp(24px, 2vw, 28px)/1.25 var(--font-heading); }
.service-facts dd { color: #425b4e; margin: 12px 0 0; }
.home-page .benefits-overview { padding-top: 0; }
.benefit-grid { display: grid; gap: 64px; }
.benefit-card { display: flex; flex-direction: column; align-items: start; min-width: 0; width: 100%; max-width: 560px; margin-inline: auto; }
.benefit-art { display: block; width: 200px; max-width: 100%; height: 150px; object-fit: contain; margin-bottom: 40px; }
.benefit-card h2 { font-size: clamp(26px, 2.2vw, 28px); margin-bottom: 24px; }
.benefit-card ul { margin: 0 0 32px; padding-left: 22px; flex: 1; }
.benefit-card li + li { margin-top: 16px; }
.benefit-card .text-link { border: 0; padding: 0; gap: 12px; background: transparent; color: var(--primary); font-weight: 500; text-decoration: underline; text-underline-offset: 4px; text-align: left; }
.benefit-card .text-link:hover { text-decoration-thickness: 2px; }
.process-section { background: #f0f2eb; border-block: 1px solid #d3dbd0; }
.section-heading .eyebrow { margin-bottom: 12px; }
.section-heading h2 { margin-bottom: 0; }
.steps { display: grid; gap: 56px; list-style: none; padding: 0; margin: 48px 0 0; }
.steps > li { display: grid; min-width: 0; }
.step-copy { padding-bottom: 28px; }
.step-number { display: block; color: var(--primary); font: 500 32px/1.2 var(--font-heading); margin-bottom: 28px; }
.steps h3 { font-size: clamp(26px, 2.2vw, 30px); line-height: 1.25; margin: 0 0 24px; max-width: 360px; }
.step-copy p { color: #425b4e; max-width: 360px; }
.step-visual { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; min-width: 0; padding: 20px; }
.questions-visual { background: #e7ece1; }
.conversation-visual { background: #e9ede5; }
.support-visual { background: #ede8df; }
.call-preview { display: flex; align-items: center; gap: 20px; width: 100%; max-width: 396px; padding: 32px; border: 1px solid #d2d9cd; border-radius: 14px; background: #fffefa; box-shadow: 0 12px 32px #243e2e0a; }
.call-icon { display: grid; place-items: center; flex: 0 0 48px; width: 48px; height: 48px; border: 1px solid #cbd7c3; border-radius: 50%; color: var(--primary); background: #f1f4ec; }
.call-icon svg { width: 24px; height: 24px; }
.call-title { margin: 0 0 8px; color: var(--primary); font: 500 24px/1.3 var(--font-sans); }
.call-note { color: #425b4e; font-size: 18px; line-height: 1.4; }
.process-screen.support-screen { position: relative; max-width: 400px; margin-top: 32px; padding: 32px; border-color: #d9d3c8; border-radius: 0 8px 8px 8px; box-shadow: 0 12px 32px #4b3d2510; }
.folder-label { position: absolute; top: -33px; left: -1px; display: flex; align-items: center; width: 148px; height: 33px; padding: 0 20px; border: 1px solid #d9d3c8; border-bottom: 0; border-radius: 8px 8px 0 0; background: var(--background); color: var(--primary); font-size: 18px; }
.process-screen { width: 100%; max-width: 352px; padding: 24px; border: 1px solid #ccd4c7; border-radius: 10px; background: var(--background); }
.quiz-screen { position: relative; max-width: 280px; padding: 40px 20px 24px; border: 2px solid #82917d; border-radius: 28px; box-shadow: 0 14px 36px #243e2e10, 0 0 0 5px #f2f4ed; }
.quiz-screen::before { content: ""; position: absolute; width: 36px; height: 4px; top: 14px; left: calc(50% - 18px); border-radius: 8px; background: #b0baaa; }
.process-screen .screen-title { margin: 0 0 24px; color: var(--primary); font: 500 24px/1.3 var(--font-sans); }
.screen-choice { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid #d3dbd0; font-size: 18px; line-height: 1.4; }
.screen-choice > span:last-child { flex: 0 0 16px; width: 16px; height: 16px; border: 1.5px solid #95a28d; border-radius: 50%; font-size: 0; }
.screen-services { display: grid; gap: 0; list-style: none; margin: 0 0 24px; padding: 0; }
.screen-services li { display: flex; align-items: baseline; gap: 12px; padding-block: 16px; border-top: 1px solid #e0e3da; }
.screen-services span { color: var(--primary); }
.screen-note { margin-top: 24px; color: #425b4e; font-size: 18px; }
small { font-size: 18px; }
.costs-panel { display: grid; gap: 28px; padding: 28px; border: 1px solid #aab7ac; border-radius: 12px; }
.costs-panel .eyebrow { margin-bottom: 12px; }
.costs-panel h2 { margin-bottom: 0; }
.costs-panel p:not(.eyebrow) { color: #425b4e; max-width: 400px; }
.faq-section { display: grid; gap: 28px; padding-bottom: 64px; }
.faq-list { border-top: 1px solid #aab7ac; min-width: 0; }
details { border-bottom: 1px solid #aab7ac; }
summary { min-height: 64px; padding-block: 18px; font-size: 18px; font-weight: 500; }
.faq-list summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after { content: "+"; flex-shrink: 0; color: var(--primary); font-size: 26px; font-weight: 400; line-height: 1; }
.faq-list details[open] summary::after { content: "−"; }
.faq-list details p { padding: 0 36px 20px 0; color: #425b4e; }
.closing-band { background: #edf0e8; padding: 64px 0; text-align: center; }
.closing-band h2 { max-width: 660px; margin-inline: auto; }
.home-page .closing-band { background: #f0f2eb; border-top: 1px solid #d3dbd0; }
.home-page .closing-band > .wrap > p { color: #425b4e; }
.home-page .closing-band [data-start-quiz] { margin-top: 8px; }
.home-page .closing-band .contact-mobile { grid-template-columns: 1fr 1fr; gap: 12px; max-width: 460px; }
.home-page .closing-band .text-link { justify-content: center; }
.site-footer { display: grid; gap: 24px; padding-block: 40px; border-top: 1px solid #aab7ac; color: #425b4e; overflow-wrap: anywhere; }
.site-footer p { max-width: 850px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 28px; align-items: center; }
.footer-links a, .footer-links button { display: inline-flex; align-items: center; min-height: 48px; }
.footer-links button { border: 0; padding: 0; background: transparent; color: inherit; font-size: 16px; text-decoration: underline; }
.policy-page, .thank-you-page { max-width: 800px; padding-block: 48px 72px; }
.policy-page h2 { font-size: 28px; margin-top: 32px; }
.small-text { font-size: 18px; color: #425b4e; }
.text-link { position: relative; display: inline-flex; align-items: center; min-height: 40px; font-size: 16px; }
.thank-you-mark { color: var(--primary); font-size: 32px; }
.notice { padding: 16px; border: 1px solid #829486; border-radius: 8px; background: #f2f3ee; }
.error-notice, .field-error { color: #a12624; }
.error-notice { border-color: #a12624; background: #fffafa; }
.contact-error { margin-block: 16px; }
.measurement-banner { position: fixed; z-index: 30; bottom: 88px; right: 12px; width: min(360px, calc(100% - 24px)); padding: 14px; border: 1px solid #8b9a90; border-radius: 10px; background: #fefcf8; box-shadow: 0 4px 24px #18282014; }
.measurement-banner p { margin-bottom: 12px; line-height: 1.4; }
.measurement-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-width: 208px; }
.measurement-actions .button { min-height: 36px; padding: 8px 12px; font-size: 14px; }
.measurement-actions .button::before { inset-block: -7px; }
.skip-link { position: fixed; top: -120px; left: 16px; z-index: 50; padding: 16px; background: white; }
.skip-link:focus { top: 16px; }
:focus-visible { outline: 3px solid var(--primary); outline-offset: 4px; }
@media(min-width: 768px) {
  body { padding-bottom: 0; }
  .hero { padding-top: 64px; }
  .home-page { --home-section-space: 160px; }
  .home-page .hero { grid-template-columns: 1fr 1fr; }
  .hero-photo { order: 0; }
  .hero-photo img { aspect-ratio: 1; }
  .hero-content { padding: 40px clamp(32px, 5vw, 80px); }
  .steps { gap: 0; }
  .steps > li { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: stretch; }
  .step-copy { align-self: center; padding: 40px 48px 40px 0; }
  .step-visual { min-height: 480px; padding: 40px; }
  .section { padding-block: 80px; }
  .costs-panel { grid-template-columns: 1fr 1fr; align-items: center; gap: 48px; padding: 48px; }
  .faq-section { grid-template-columns: 1fr 1.5fr; gap: 64px; padding-bottom: 80px; }
  .home-page .site-footer { grid-template-columns: 1fr 2fr; gap: 16px 48px; padding-block: 80px; }
  .home-page .site-footer .brand { align-self: start; }
  .home-page .site-footer > p, .home-page .site-footer .footer-links { grid-column: 2; }
  .measurement-banner { bottom: 16px; }
}
@media(min-width: 1024px) {
  .home-intro { grid-template-columns: 1.4fr 1fr; align-items: start; gap: 96px; }
  .benefit-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media(max-width: 480px) { .call-preview { flex-direction: column; padding: 28px 20px; border-radius: 14px; text-align: center; } .site-header { justify-content: center; column-gap: 16px; text-align: center; } .site-header .brand { font-size: 26px; } .hero { padding-top: 24px; } .home-page .closing-band .contact-mobile { grid-template-columns: 1fr; gap: 0; margin-top: 16px; } }
@media(prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { animation: none !important; transition: none !important; } }
