/* 01 — Page-scoped typography and layout */
.th-page {
    --ink: #101010;
    --muted: #505050;
    --paper: #fff;
    --panel: #f4f4f4;
    --line: #dedede;
    --green: #6eff6e;
    --hover: #0ae448;
    --accent: #17652c;
    --space: clamp(60px, 7vw, 108px);
    --gap: clamp(26px, 5vw, 76px);
    width: 100%;
    background: #fff;
    color: var(--ink);
    font: 400 17px/1.65 Outfit, Arial, sans-serif;
    isolation: isolate;
    overflow: clip;
}
.th-page, .th-page * { box-sizing: border-box; }
/* No pseudo-elements are needed in this design. Suppress inherited icon glyphs. */
.th-page::before, .th-page::after, .th-page *::before, .th-page *::after { content: none !important; }
.th-page :is(h1,h2,h3,p,figure,ul,fieldset) { margin: 0; padding: 0; }
.th-page :is(h1,h2,h3) {
    font-family: Outfit, Arial, sans-serif !important;
    color: var(--ink) !important;
    font-weight: 600;
    letter-spacing: -.035em;
    line-height: 1.12;
    text-transform: none;
    overflow-wrap: anywhere;
}
.th-page h1 { font-size: clamp(40px, 5.3vw, 82px); letter-spacing: -.05em; }
.th-page h2 { font-size: clamp(30px, 3.6vw, 54px); text-wrap: balance; }
.th-page h3 { font-size: clamp(21px, 1.7vw, 27px); line-height: 1.25; letter-spacing: -.02em; }
.th-page p { font: inherit; color: var(--muted) !important; overflow-wrap: anywhere; }
.th-page a { color: inherit; text-decoration: none !important; overflow-wrap: anywhere; }
.th-page :is(input,button,output,textarea) { font: inherit; letter-spacing: normal; }
.th-page :is(a,input,button,summary):focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.th-page [hidden] { display: none !important; }
.th-page .th-section { padding: var(--space) 0; background: var(--paper) !important; color: var(--ink); scroll-margin-top: 100px; }
.th-page .th-dark { --ink:#fff; --muted:#c5c5c5; --paper:#101010; --panel:#191919; --line:#393939; --accent:#6eff6e; }
.th-page .th-soft { --paper:#f4f4f4; --panel:#fff; }
.th-page .th-green { --paper:#6eff6e; --panel:#ffffff55; --muted:#202020; --line:#10101040; --accent:#101010; }
.th-page .th-wrap { width: min(1320px, calc(100% - clamp(32px,7vw,112px))); margin-inline: auto; }
.th-page .th-wrap * { min-width: 0; }
.th-page .th-split { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: var(--gap); align-items: center; }
.th-page .th-top { align-items: start; }
.th-page .th-stack { display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.th-page .th-heading { display: grid; gap: 14px; max-width: 800px; margin-bottom: 34px; }
.th-page .th-stack .th-heading, .th-page .th-split > .th-heading { margin-bottom: 0; }
.th-page .th-kicker { color: var(--accent) !important; font: 600 13px/1.5 Outfit,Arial,sans-serif !important; letter-spacing: .10em; text-transform: uppercase; }
.th-page .th-note { font-size: 13px; line-height: 1.5; }
.th-page .th-icon { width: 24px; height: 24px; display: inline-block; flex: 0 0 24px; color: inherit; vertical-align: middle; }
.th-page .th-iconbox { display: grid; place-items: center; width: 50px; height: 50px; border: 1px solid var(--line); border-radius: 14px; color: var(--accent); transition: transform .28s, background .28s, color .28s; }
.th-page .th-num { font: 600 13px/1.4 Outfit,Arial,sans-serif; color: var(--accent); font-variant-numeric: tabular-nums; }
.th-page .th-topline { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.th-page .th-btn { display: inline-flex; justify-content: center; align-items: center; gap: 10px; padding: 13px 20px; min-height: 52px; max-width: 100%; background: var(--green); border: 1px solid var(--green); border-radius: 10px; color: #101010 !important; font: 600 15px/1.4 Outfit,Arial,sans-serif; cursor: pointer; text-align: center; transition: background .25s, border .25s; }
.th-page .th-btn:hover { background: var(--hover); border-color: var(--hover); }
.th-page .th-btn .th-icon, .th-page .th-link .th-icon { width: 18px; height: 18px; flex: 0 0 18px; transition: transform .25s; }
.th-page .th-btn:hover .th-icon, .th-page .th-link:hover .th-icon { transform: translate(2px,-2px); }
.th-page .th-black { background: #101010; color: #fff !important; border-color: #101010; }
.th-page .th-black:hover { background: #303030; border-color: #303030; }
.th-page .th-outline { background: transparent; border-color: var(--line); color: var(--ink) !important; }
.th-page button:disabled { opacity: .6; cursor: not-allowed; }
/* 02 — Hero, audit entry and illustrative visual */
.th-page .th-hero { padding-top: clamp(122px,10vw,156px); padding-bottom: 30px; }
.th-page .th-hero-grid { display: grid; grid-template-columns: minmax(0,1.13fr) minmax(0,1fr); gap: clamp(28px,4vw,58px); align-items: center; }
.th-page .th-hero h1 span { display: block; color: var(--green); }
.th-page .th-subtitle { font-size: clamp(21px,2vw,29px); letter-spacing: -.02em; line-height: 1.3; }
.th-page .th-lead { font-size: clamp(17px,1.45vw,20px); }
.th-page .th-audit { display: grid; gap: 8px; width: 100%; }
.th-page .th-audit label { font-size: 14px; color: var(--ink); }
.th-page .th-audit-row { display: flex; gap: 8px; align-items: stretch; }
.th-page .th-audit-row input { flex: 1; width: 100%; background: #191919; color: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; min-height: 52px; font-size: 16px; }
.th-page .th-audit-row button { flex: 0 0 auto; }
.th-page .th-visual { display: grid; gap: 15px; }
.th-page .th-photo { position: relative; width: 100%; display: block; aspect-ratio: 4/3; overflow: hidden; border-radius: 20px; background: transparent !important; }
.th-page .th-photo-hero { aspect-ratio: 16/10; }
.th-page .th-photo img { position: absolute; inset: 0; margin: auto; width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 20px !important; background: transparent !important; display: block; transition: transform .5s cubic-bezier(.2,.8,.2,1); }
.th-page .th-photo:hover img { transform: scale(1.025); }
.th-page .th-photo figcaption { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 20px; color: var(--muted); border: 1px dashed var(--line); border-radius: 20px; font-size: 14px; }
.th-page .th-dashboard { background: #191919; border: 1px solid var(--line); padding: clamp(16px,2vw,24px); border-radius: 18px; display: grid; gap: 14px; }
.th-page .th-dashboard .th-topline { font-size: 13px; color: #c5c5c5; }
.th-page .th-tag { font-size: 12px; font-weight: 600; color: var(--accent); }
.th-page .th-dash-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.th-page .th-dash-grid small { display: block; font-size: 12px; color: #c5c5c5; }
.th-page .th-dash-grid strong { display: block; font-size: 17px; line-height: 1.3; font-weight: 500; color: #fff; overflow-wrap: anywhere; }
.th-page .th-chart { display: flex; align-items: end; gap: 5px; height: 62px; border-bottom: 1px solid #393939; }
.th-page .th-chart span { flex: 1; height: var(--bar); background: var(--green); opacity: .8; border-radius: 3px 3px 0 0; transform-origin: bottom; }
.th-page .th-band { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 16px; border-top: 1px solid var(--line); margin-top: 35px; padding-top: 24px; }
.th-page .th-band div { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.th-page .th-band svg { color: var(--green); }
/* 03 — Editorial about and statement */
.th-page .th-feature { display: flex; align-items: flex-start; gap: 16px; border-top: 1px solid var(--line); padding: 18px 0 0; width: 100%; }
.th-page .th-feature > svg { color: var(--accent); width: 26px; height: 26px; flex-basis: 26px; margin-top: 3px; }
.th-page .th-feature h3 { font-size: 21px; margin-bottom: 6px; }
.th-page .th-duo { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 14px; width: 100%; }
.th-page .th-duo article { background: var(--panel); padding: 22px; border-radius: 14px; border: 1px solid var(--line); }
.th-page .th-duo h3 { margin-bottom: 8px; }
/* 04 — Asymmetrical bento service grid */
.th-page .th-bento { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 14px; }
.th-page .th-service { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; padding: clamp(20px,2.7vw,34px); border-radius: 18px; background: #f4f4f4; border: 1px solid #dedede; transition: background .28s,border .28s; }
.th-page .th-service.th-wide { grid-column: span 2; }
.th-page .th-service.th-wide { background: #101010; --ink:#fff; --muted:#c5c5c5; --accent:#6eff6e; --line:#393939; color:#fff; }
.th-page .th-service .th-topline { width: 100%; }
.th-page .th-service:hover { border-color: #0ae448; }
.th-page .th-service:hover .th-iconbox { background: #6eff6e; color: #101010; transform: rotate(-7deg); }
.th-page .th-checks { display: grid; gap: 0; list-style: none; width: 100%; }
.th-page .th-checks li { display: flex; align-items: flex-start; gap: 9px; list-style: none; border-top: 1px solid var(--line); padding: 10px 0; font-size: 15px; line-height: 1.5; }
.th-page .th-checks svg { color: var(--accent); width: 19px; height: 19px; flex-basis: 19px; margin-top: 2px; }
.th-page .th-link { display: inline-flex; align-items: center; gap: 9px; color: var(--accent) !important; font-weight: 600; font-size: 15px; margin-top: auto; padding-top: 8px; }
/* 05 — Live checklist */
.th-page .th-tool { width: 100%; border: 1px solid var(--line); border-radius: 20px; background: #fff; padding: clamp(18px,3vw,32px); display: grid; gap: 15px; }
.th-page .th-score { display: flex; gap: 18px; align-items: center; padding: 18px; background: #101010; color: #fff; border-radius: 14px; }
.th-page .th-score output { color: #6eff6e; font-size: clamp(31px,4vw,48px); font-weight: 600; line-height: 1; font-variant-numeric: tabular-nums; }
.th-page .th-score > div { flex: 1; display: grid; gap: 8px; }
.th-page .th-score strong { font-size: 14px; font-weight: 500; }
.th-page progress { width: 100%; height: 9px; appearance: none; border: 0; border-radius: 6px; background: #393939; overflow: hidden; }
.th-page progress::-webkit-progress-bar { background:#393939; }
.th-page progress::-webkit-progress-value { background:#6eff6e; transition: width .3s; }
.th-page progress::-moz-progress-bar { background:#6eff6e; }
.th-page .th-checklist { display: grid; }
.th-page .th-checklist label { display: grid; grid-template-columns: 20px minmax(0,1fr) auto; align-items: start; gap: 12px; border-top: 1px solid #dedede; padding: 14px 0; cursor: pointer; }
.th-page input[type=checkbox] { width: 19px; height: 19px; margin: 3px 0 0; appearance: auto; accent-color: #17652c; flex-shrink: 0; }
.th-page .th-checklist strong { font-size: 15px; line-height: 1.4; display: block; font-weight: 600; }
.th-page .th-checklist small { display: block; font-size: 13px; color: #505050; line-height: 1.5; margin-top: 4px; }
.th-page .th-checklist b { color: #17652c; font-size: 13px; font-weight: 600; }
/* 06 — Search intent cards */
.th-page .th-intent-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.th-page .th-intent { display: flex; flex-direction: column; gap: 15px; padding: clamp(20px,3vw,34px); background: #191919; border: 1px solid #393939; border-radius: 16px; transition: border .25s; }
.th-page .th-intent:hover { border-color: #6eff6e; }
.th-page .th-intent ul { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; }
.th-page .th-intent li { list-style: none; font-size: 13px; line-height: 1.5; border: 1px solid #393939; padding: 7px 11px; border-radius: 6px; overflow-wrap: anywhere; }
.th-page .th-intent strong { margin-top: auto; font-size: 15px; color: #6eff6e; font-weight: 500; }
/* 07 — Revenue calculator */
.th-page .th-range { display: grid; gap: 10px; padding: 8px 0; }
.th-page .th-range > span { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; font-weight: 500; }
.th-page .th-range output { font-weight: 600; color: #17652c; font-variant-numeric: tabular-nums; }
.th-page input[type=range] { appearance: auto; display: block; width: 100%; height: 25px; padding: 0; margin: 0; accent-color: #17652c; cursor: pointer; }
.th-page .th-calculation { color: #101010; background: #6eff6e; padding: clamp(24px,4vw,48px); border-radius: 22px; display: grid; gap: 20px; align-self: stretch; align-content: center; --accent:#101010; --muted:#202020; }
.th-page .th-revenue { font-size: clamp(34px,4.3vw,65px); font-weight: 600; letter-spacing: -.045em; line-height: 1.12; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.th-page .th-cal-metrics { display: grid; gap: 0; }
.th-page .th-cal-metrics > div { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; padding: 16px 0; border-top: 1px solid #10101040; }
.th-page .th-cal-metrics small { font-size: 15px; }
.th-page .th-cal-metrics output { font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
/* 08 — Four-step motion sequence */
.th-page .th-process { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 24px; }
.th-page .th-step { display: grid; align-content: start; gap: 14px; }
.th-page .th-step-track { display: flex; align-items: center; gap: 12px; }
.th-page .th-step-track > span { font-size: 38px; color: #6eff6e; font-weight: 600; line-height: 1; letter-spacing: -.045em; }
.th-page .th-step-line { height: 2px; flex: 1; background: #6eff6e; transform-origin: left; }
/* 09 — Local coverage */
.th-page .th-local-head { max-width: 860px; margin: 0 auto; text-align: center; }
.th-page .th-local-panel { margin-top: 14px; border: 1px solid var(--line); background: #f4f4f4; border-radius: 16px; padding: 22px; display: grid; gap: 10px; }
/* 10 — Case framework visuals */
.th-page .th-case-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.th-page .th-case { background: #fff; border: 1px solid #dedede; padding: 22px; border-radius: 18px; display: grid; gap: 13px; align-content: start; }
.th-page .th-case-visual { background: #101010; color: #6eff6e; padding: 25px; min-height: 120px; border-radius: 12px; display: flex; justify-content: space-between; align-items: end; gap: 12px; flex-wrap: wrap; }
.th-page .th-case-visual svg { width: 48px; height: 48px; flex: 0 0 48px; transition: transform .35s; }
.th-page .th-case:hover svg { transform: translateY(-4px); }
.th-page .th-case-visual span { font-size: 13px; font-weight: 500; }
.th-page .th-case-foot { border-top: 1px solid var(--line); padding-top: 12px; font-size: 14px; color: #17652c; font-weight: 500; }
.th-page .th-report { display: grid; grid-template-columns: minmax(0,1fr) minmax(0,2fr); gap: 24px; align-items: center; border-top: 1px solid #dedede; margin-top: 32px; padding-top: 25px; }
.th-page .th-report .th-checks { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 20px; }
/* 11 — FAQ with real-element icons */
.th-page .th-faq details { border-top: 1px solid #dedede; }
.th-page .th-faq details:last-child { border-bottom: 1px solid #dedede; }
.th-page .th-faq summary { list-style: none; display: grid; grid-template-columns: 28px minmax(0,1fr) 28px; gap: 12px; align-items: center; padding: 21px 0; cursor: pointer; font-size: 17px; font-weight: 600; line-height: 1.4; }
.th-page .th-faq summary::-webkit-details-marker { display: none; }
.th-page .th-faq summary::marker { content: ''; }
.th-page .th-faq details p { padding: 0 40px 20px; font-size: 16px; }
.th-page .th-plus { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #f4f4f4; position: relative; }
.th-page .th-plus i { width: 12px; height: 2px; background: #101010; position: absolute; border-radius: 2px; transition: transform .2s; }
.th-page .th-plus i:last-child { transform: rotate(90deg); }
.th-page details[open] .th-plus { background: #6eff6e; }
.th-page details[open] .th-plus i:last-child { transform: rotate(0); }
/* 12 — Contact: existing POST contract */
.th-page .th-form { display: grid; gap: 20px; padding: clamp(20px,3vw,36px); background: #191919; border: 1px solid #393939; border-radius: 20px; }
.th-page .th-fields { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.th-page .th-fields label:not(.th-option) { display: grid; gap: 7px; font-size: 14px; font-weight: 500; }
.th-page .th-fields input:not([type=checkbox]) { border: 1px solid #444; border-radius: 8px; width: 100%; color: #fff; background: #101010; padding: 12px 14px; min-height: 48px; font-size: 16px; }
.th-page .th-full { grid-column: 1/-1; }
.th-page .th-form fieldset { border: 0; display: flex; flex-wrap: wrap; gap: 12px 18px; }
.th-page .th-form legend { font-size: 14px; margin-bottom: 10px; }
.th-page .th-option { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #fff; cursor: pointer; }
.th-page .th-option input { margin: 0; }
.th-page .th-form-status { color: #6eff6e; }
/* 13 — One-time motion, never pins the scroll position */
.th-page .th-enter { animation: th-enter .75s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--delay,0ms); }
.th-page .th-enter.th-photo { animation-name: th-photo-in; }
.th-page .th-enter .th-chart span, .th-page .th-enter .th-step-line { animation: th-grow .8s cubic-bezier(.2,.8,.2,1) both; animation-delay: var(--delay,0ms); }
.th-page .th-enter .th-step-line { animation-name: th-line-grow; }
@keyframes th-enter { from { opacity:.2; transform:translateY(20px); } to { opacity:1; transform:none; } }
@keyframes th-photo-in { from { opacity:.25; clip-path:inset(0 0 14% 0 round 20px); } to { opacity:1; clip-path:inset(0 round 20px); } }
@keyframes th-grow { from { transform:scaleY(.1); } to { transform:scaleY(1); } }
@keyframes th-line-grow { from { transform:scaleX(.05); } to { transform:scaleX(1); } }
/* 14 — Responsive and reduced motion */
@media (max-width: 1100px) {
    .th-page .th-audit-row { flex-wrap: wrap; }
    .th-page .th-audit-row input { flex-basis: 100%; }
    .th-page .th-bento { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .th-page .th-service.th-wide { grid-column: auto; }
    .th-page .th-process { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 30px; }
}
@media (max-width: 820px) {
    .th-page .th-split, .th-page .th-hero-grid { grid-template-columns: minmax(0,1fr); }
    .th-page .th-hero-grid { gap: 32px; }
    .th-page .th-hero { padding-top: 116px; }
    .th-page .th-band { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .th-page .th-report { grid-template-columns: minmax(0,1fr); }
    .th-page .th-calculation { align-content: start; }
    .th-page .th-photo { max-width: 700px; }
}
@media (max-width: 540px) {
    .th-page { font-size: 16px; --space: 54px; }
    .th-page .th-bento, .th-page .th-intent-grid, .th-page .th-case-grid, .th-page .th-process, .th-page .th-fields, .th-page .th-duo { grid-template-columns: minmax(0,1fr); }
    .th-page .th-band { gap: 14px; }
    .th-page .th-band div { font-size: 13px; gap: 8px; }
    .th-page .th-band svg { width: 19px; height: 19px; flex-basis: 19px; }
    .th-page .th-audit-row .th-btn { width: 100%; }
    .th-page .th-dash-grid { gap: 10px; }
    .th-page .th-dash-grid strong { font-size: 15px; }
    .th-page .th-checklist label { gap: 9px; }
    .th-page .th-report .th-checks { grid-template-columns: minmax(0,1fr); }
    .th-page .th-faq summary { grid-template-columns: 23px minmax(0,1fr) 28px; gap: 8px; }
    .th-page .th-faq details p { padding-left: 31px; padding-right: 0; }
    .th-page .th-form .th-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
    .th-page *, .th-page .th-enter { animation: none !important; transition: none !important; }
    .th-page .th-photo:hover img, .th-page .th-service:hover .th-iconbox { transform: none; }
}
/* Keep the location phrase grouped on the next headline line. */
.th-page .th-hero h1 { text-wrap: balance; }
.th-page .th-hero h1 span { font-size: .88em; text-wrap: balance; }
