/* Scoped refinements of the approved THP Signal design. Existing palette and compositions are retained. */
:root{--thp-ease-out:cubic-bezier(.23,1,.32,1);--thp-feedback:140ms;--thp-text-secondary:#566c7e;--thp-text-note:#657789}
html{scrollbar-gutter:stable}
body:has(dialog[open]){overflow:hidden}
body ::selection{background:#7ce7c7;color:#112538}
body input{caret-color:#176d70}
body :is(#thp-problem,#thp-measures,#thp-evidence,#thp-features,#thp-compare,#thp-pilot,#thp-faq) .thp-lead{color:var(--thp-text-secondary)}
body :is(#thp-problem,#thp-measures,#thp-evidence) .thp-card p{font-size:15px;line-height:1.7;color:var(--thp-text-secondary)}
body #thp-measures .measure-business p{font-size:14px}
body :is(#thp-cycle,#thp-process) .step-card p{font-size:14px;line-height:1.7}
body :is(#thp-cycle,#thp-process) .step-card h3{min-height:2.6em}
body #thp-cycle .cycle-note,body #thp-process .process-bitrix p{font-size:14px;line-height:1.7}
body #thp-features .feature-desc p{font-size:14px;line-height:1.7;color:var(--thp-text-secondary)}
body #thp-evidence small{font-size:12px;color:var(--thp-text-secondary)}
body #thp-compare table{font-size:14px;line-height:1.65}
body #thp-compare td:nth-child(2){color:var(--thp-text-secondary)}
body #thp-compare thead th{font-size:12px;color:var(--thp-text-secondary)}
body #thp-compare thead th:last-child{color:#fff}
body #thp-pilot .pilot-card>p{font-size:15px;line-height:1.75}
body #thp-pilot li{font-size:14px;line-height:1.7}
body #thp-pilot .demo-top>p{font-size:15px;line-height:1.7;color:var(--thp-text-secondary)}
body #thp-pilot .inline-demo-form label{font-size:13px;color:var(--thp-text-secondary)}
body #thp-pilot .inline-demo-form input::placeholder{color:var(--thp-text-secondary)}
body #thp-pilot .inline-demo-note{font-size:12px;color:var(--thp-text-note)}
body #thp-faq summary{font-size:15px;line-height:1.55}
body #thp-faq details>p{font-size:15px;line-height:1.75;color:var(--thp-text-secondary)}
body #thp-footer .footer-copy{font-size:13px}
body #thp-footer .footer-contacts{font-size:14px;align-items:center}
body #thp-footer .footer-contacts a{display:inline-flex;align-items:center;min-height:44px;overflow-wrap:anywhere}
body #thp-footer .footer-bottom{font-size:12px;line-height:1.75;color:#819dad}
body #thp-hero .hero-copy h1{font-size:clamp(44px,4.4vw,60px);letter-spacing:-.04em;line-height:1.04}
body #thp-hero .hero-links{font-size:13px;gap:20px;align-items:center}
body #thp-hero .hero-links a{display:flex;align-items:center;min-height:44px}
body #thp-hero .hero-contact{display:inline-flex;align-items:center;justify-content:center;min-height:44px;font-size:12px}
body #thp-hero .hero-menu{min-width:44px;min-height:44px}
body #thp-features .feature-enlarge{min-width:44px;min-height:44px;font-size:12px;justify-content:center;flex-shrink:0}
body #thp-features .feature-lightbox-close,body #thp-preview-modal .modal-close{min-width:44px;min-height:44px;display:grid;place-items:center;padding:0;line-height:1}
body #thp-features .feature-topline{padding:10px 16px;font-size:12px;gap:12px}
body #thp-features .feature-caption{font-size:13px;line-height:1.5;color:var(--thp-text-secondary)}
body #thp-features .feature-screen-name{min-width:0}
body #thp-preview-modal p{color:var(--thp-text-secondary)}
body #thp-preview-modal label{font-size:13px;color:var(--thp-text-secondary)}
body #thp-preview-modal input{font-size:16px;min-height:48px}
body #thp-preview-modal input::placeholder{color:var(--thp-text-secondary)}
body #thp-preview-modal .modal-notice{font-size:12px;color:var(--thp-text-note)}
body :is(#thp-hero,#thp-pilot) .thp-btn{transition:transform var(--thp-feedback) var(--thp-ease-out),background-color var(--thp-feedback) ease;transform:none}
body :is(#thp-hero,#thp-pilot) .thp-btn:hover{transform:none;background-color:inherit}
body :is(#thp-hero,#thp-pilot) .thp-primary:hover{background-color:#7ce7c7}
body #thp-hero .hero-contact,body #thp-hero .hero-menu,body #thp-features .feature-enlarge,body #thp-features .feature-item>button,body #thp-faq summary,body #thp-preview-modal .modal-submit{transition:background-color var(--thp-feedback) ease,color var(--thp-feedback) ease,transform var(--thp-feedback) var(--thp-ease-out)}
body :is(#thp-hero,#thp-pilot,#thp-features,#thp-faq,#thp-footer,#thp-preview-modal) :focus-visible{outline:3px solid #127b93;outline-offset:4px}
body #thp-pilot .inline-demo-form input:focus-visible{outline:3px solid #127b93;outline-offset:3px;box-shadow:none}
body #thp-faq summary span{transition:transform 160ms var(--thp-ease-out)}
@media(hover:hover) and (pointer:fine){
 body :is(#thp-hero,#thp-pilot) .thp-primary:hover{background-color:#a1f1d9;transform:translateY(-2px)}
 body #thp-hero .thp-secondary:hover{background-color:#ffffff08;transform:translateY(-2px)}
 body #thp-hero .hero-contact:hover{background-color:#a1f1d9}
 body #thp-features .feature-enlarge:hover{background-color:#e2eaf0}
 body #thp-features .feature-item:not(.is-active)>button:hover{background-color:#e9f0f6}
 body #thp-faq summary:hover{background-color:#f3f7fb}
}
html[data-thp-input="pointer"] body :is(.thp-btn,.hero-contact,.hero-menu,.feature-enlarge,.modal-submit):active{transform:scale(.98)}
html[data-thp-input="keyboard"] body :is(.thp-btn,.hero-contact,.hero-menu,.feature-enlarge,.modal-submit,summary span){transition:none}
@media(max-width:1000px){
 body #thp-hero .hero-links{display:none;position:absolute;top:87px;left:0;right:0;background:#0c2135;padding:20px 28px;z-index:15;flex-direction:column;align-items:stretch;font-size:15px;gap:2px;border-bottom:1px solid #2b485e}
 body #thp-hero .hero-links.open{display:flex}
 body #thp-hero .hero-links a{min-height:44px}
 body #thp-hero .hero-menu{display:block;background:transparent;border:0;color:#d8ecec;font-size:23px;padding:4px}
 body #thp-hero .hero-actions{margin-left:auto}
 body #thp-hero .hero-copy h1{font-size:48px}
}
@media(min-width:701px) and (max-width:900px){
 body #thp-hero .hero-grid{grid-template-columns:1fr;gap:40px;padding:56px 0 64px}
 body #thp-hero .hero-copy h1{max-width:650px}
 body #thp-hero .desktop-br{display:none}
 body #thp-hero .hero-copy em{display:block}
 body #thp-hero .hero-copy>.thp-lead{max-width:620px;font-size:16px}
 body #thp-hero .hero-visual{width:100%;max-width:600px;margin-inline:auto}
 body #thp-pilot .pilot-grid{gap:20px}
 body #thp-pilot .pilot-card,body #thp-pilot .demo-card{padding:28px}
 body #thp-pilot .demo-top h2{font-size:26px}
 body #thp-pilot h2{font-size:30px}
}
@media(max-width:700px){
 body #thp-hero .hero-nav{gap:10px}
 body #thp-hero .hero-links{top:73px;padding:18px 20px}
 body #thp-hero .hero-copy h1{font-size:clamp(34px,10.3vw,44px);line-height:1.07}
 body #thp-hero .hero-copy>.thp-lead{font-size:15px;line-height:1.75}
 body #thp-hero .hero-contact{font-size:11px;padding-inline:10px}
 body #thp-hero .thp-btn{font-size:12px;gap:8px}
 body #thp-hero .thp-btn span{font-size:16px}
 body #thp-features .feature-image-wrap{aspect-ratio:1;min-height:0}
 body #thp-features .feature-image-button{height:100%;min-height:0}
 body #thp-features .feature-image{height:100%;width:100%;object-fit:contain}
 body #thp-features .feature-topline{padding:8px 12px}
 body #thp-features .feature-topline .feature-enlarge span{display:none}
 body #thp-features .feature-bottom{align-items:flex-start;gap:10px}
 body :is(#thp-cycle,#thp-process) .step-card h3{min-height:0}
 body #thp-compare table{font-size:14px}
 body #thp-compare .compare-scroll{overflow-x:auto;overscroll-behavior-x:contain}
}
@media(max-width:380px){
 body #thp-hero .hero-nav{gap:6px}
 body #thp-hero .hero-brand{width:96px;flex-basis:96px}
 body #thp-hero .hero-brand img{width:96px}
 body #thp-hero .thp-actions{flex-direction:column}
 body #thp-hero .thp-btn{font-size:13px;flex:auto}
 body #thp-hero .hero-tag{font-size:10px;padding-inline:8px}
 body #thp-measures .measure-chips{grid-template-columns:repeat(2,minmax(0,1fr))}
 body #thp-pilot .pilot-card,body #thp-pilot .demo-card{padding:25px 20px}
}
@media(prefers-reduced-motion:reduce){
 html{scroll-behavior:auto}
 body :is(#thp-hero,#thp-pilot) .thp-btn:hover,html[data-thp-input="pointer"] body :is(.thp-btn,.hero-contact,.hero-menu,.feature-enlarge,.modal-submit):active{transform:none}
 body #thp-faq summary span{transition:none}
}
/* Intermediate screens need the same reading measure as small screens, without squeezing copy. */
@media(min-width:701px) and (max-width:900px){
 body :is(#thp-problem,#thp-measures,#thp-cycle,#thp-evidence,#thp-features,#thp-compare,#thp-process) .thp-section-head{grid-template-columns:1fr;gap:22px;margin-bottom:36px}
 body :is(#thp-problem,#thp-measures,#thp-cycle,#thp-evidence,#thp-features,#thp-compare,#thp-process) .thp-section-head .thp-lead{max-width:620px}
 body #thp-pilot .pilot-grid{grid-template-columns:1fr}
 body #thp-pilot .pilot-card,body #thp-pilot .demo-card{padding:36px}
 body #thp-pilot .pilot-badges{gap:12px}
}
@media(max-width:600px){
 body #thp-measures .measure-grid{grid-template-columns:1fr}
 body #thp-measures .thp-card h3{min-height:0}
 body #thp-problem .problem-bridge{grid-template-columns:minmax(0,1fr) 25px minmax(0,1fr)}
}
@media(max-width:380px){
 body #thp-hero .hero-brand{width:92px;flex-basis:92px}
 body #thp-hero .hero-brand img{width:92px}
 body #thp-measures .measure-chips span{overflow-wrap:anywhere}
}
html[data-thp-input="keyboard"] body #thp-features .feature-item,
html[data-thp-input="keyboard"] body #thp-features .feature-item>button{transition:none}
/* Approved Komandex updates: supplied branding and imagery, readable comparison, discussion instead of pilot. */
body #thp-hero .hero-brand{width:190px;flex-basis:190px}
body #thp-hero .hero-brand img{width:190px;height:70px}
body #thp-footer .footer-brand img{width:190px;height:70px}
body #thp-preview-modal .modal-brand{display:block;width:190px;height:auto;margin-bottom:18px}
body #thp-hero .hero-grid{padding-block:52px}
body #thp-hero .hero-visual{max-width:480px;margin-inline:auto 0}
body #thp-problem .problem-bridge b{font-size:20px;line-height:1.3}
body #thp-problem .problem-bridge small{font-size:14px;line-height:1.65;color:#b3ccd8;margin-top:9px}
@media(min-width:701px) and (max-width:900px){
 body #thp-hero .hero-visual{margin-inline:auto}
}
@media(max-width:700px){
 body #thp-hero .hero-brand{width:140px;flex-basis:140px}
 body #thp-hero .hero-brand img{width:140px;height:52px}
 body #thp-hero .hero-visual{margin-inline:auto}
 body #thp-hero .hero-grid{padding-block:44px 48px}
 body #thp-problem .problem-bridge b{font-size:18px}
 body #thp-problem .problem-bridge small{font-size:14px;line-height:1.6}
}
@media(max-width:380px){
 body #thp-hero .hero-brand{width:92px;flex-basis:92px}
 body #thp-hero .hero-brand img{width:92px;height:36px}
}
/* Approved image-only customer demonstration beside the existing form. */
body #thp-pilot .discussion-card{min-width:0;width:100%;margin:0;align-self:stretch;display:flex;align-items:center;justify-content:center;padding:16px;background:#fff;border:1px solid #e5edf3;border-radius:16px}
body #thp-pilot .discussion-card img{display:block;width:100%;height:auto;border-radius:16px}
@media(min-width:701px) and (max-width:900px){body #thp-pilot .discussion-card{max-width:480px;margin-inline:auto}}
/* Approved November 10 accents: dark teal on light surfaces and mint on navy. */
body .heading-accent{color:#127b93}
body :is(#thp-cycle,#thp-process) .heading-accent,
body #thp-measures .measure-business .heading-accent{color:#7ce7c7}
body #thp-measures .thp-icon{width:64px;height:64px;flex:0 0 64px;margin-bottom:22px;border-radius:14px;background:#eaf5f5;color:#127b93}
body #thp-measures .thp-icon svg{display:block;width:36px;height:36px;overflow:visible}
body #thp-measures .business-heading{display:flex;align-items:center;gap:18px;min-width:0}
body #thp-measures .measure-business .thp-icon{width:56px;height:56px;flex-basis:56px;margin:0;background:#1d3c50;color:#7ce7c7}
body #thp-measures .measure-business h3{margin:0;font-size:22px;line-height:1.25;letter-spacing:-.025em}
@media(max-width:700px){
 body #thp-problem .thp-card h3{padding-right:20px}
 body #thp-measures .thp-icon{width:56px;height:56px;flex-basis:56px;margin-bottom:20px}
 body #thp-measures .thp-icon svg{width:32px;height:32px}
 body #thp-measures .business-heading{gap:14px}
 body #thp-measures .measure-business .thp-icon{width:48px;height:48px;flex-basis:48px;margin:0}
 body #thp-measures .measure-business h3{font-size:20px}
}

/* Local application entry. */
body #thp-hero .hero-actions{display:flex;align-items:center;gap:10px;flex-shrink:0}
body #thp-hero .hero-contact{background:transparent;border:1px solid #385269;color:#e2ebf2}
body #thp-hero .hero-login{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:11px 24px;border:1px solid transparent;border-radius:6px;background:#7ce7c7;color:#103b38;font-size:12px;font-weight:700;white-space:nowrap;transition:background-color var(--thp-feedback) ease,transform var(--thp-feedback) var(--thp-ease-out)}
@media(hover:hover) and (pointer:fine){
 body #thp-hero .hero-login:hover{background:#a1f1d9;transform:translateY(-2px)}
 body #thp-hero .hero-contact:hover{background:#ffffff08}
}
@media(max-width:1150px){
 body #thp-hero .hero-nav{gap:10px}
 body #thp-hero .hero-actions{margin-left:auto}
 body #thp-hero .hero-links{display:none;position:absolute;top:87px;left:0;right:0;background:#0c2135;padding:20px 28px;z-index:15;flex-direction:column;align-items:stretch;font-size:15px;gap:2px;border-bottom:1px solid #2b485e}
 body #thp-hero .hero-links.open{display:flex}
 body #thp-hero .hero-menu{display:block;background:transparent;border:0;color:#d8ecec;font-size:23px;padding:4px}
}
@media(max-width:700px){
 body #thp-hero .hero-links{top:73px;padding:18px 20px}
 body #thp-hero .hero-contact{display:none}
 body #thp-hero .hero-login{padding:9px 16px;font-size:11px}
}
@media(max-width:380px){
 body #thp-hero .hero-login{padding-inline:12px}
}
