/* Shared finishing details across all page families. */
:root {
  --surface-shadow: 0 2px 5px #24392e04, 0 16px 36px -22px #24392e30;
  --panel-shadow: 0 8px 24px -12px #24392e25, 0 24px 64px -24px #24392e35;
  --ease-out: cubic-bezier(.2,.7,.3,1);
}
::selection { background: #e8c3a5; color: #1d3028; }
h2, h3, .intro { text-wrap: pretty; }
.section-heading h2 { text-wrap: balance; }
.price, .calculator-result output, .calculator-row input { font-variant-numeric: tabular-nums; }

/* A quiet, translucent header and consistent navigation feedback. */
.site-header { background: #fffefaF5; border-bottom-color: #263b3014; box-shadow: 0 5px 24px #162c2206; }
@supports (backdrop-filter: blur(16px)) {
  .site-header { background: #fffefaEB; backdrop-filter: blur(16px); }
}
.desktop-links a { position: relative; display: inline-flex; align-items: center; min-height: 44px; }
.desktop-links a.is-active, .desktop-links a[aria-current="page"] { text-decoration: none; }
.desktop-links a::after { content: ''; position: absolute; bottom: 5px; left: 0; right: 0; height: 2px; border-radius: 2px; background: #b54314; transform: scaleX(0); transform-origin: left; transition: transform .2s var(--ease-out); }
.desktop-links a:is(.is-active,[aria-current="page"])::after { transform: scaleX(1); }
.language-picker summary { padding-inline: 10px; border-radius: 8px; border: 1px solid transparent; }
.language-picker[open] summary { background: #eef2e8; border-color: #d8e0d1; }
.language-picker nav { width: 204px; padding: 8px; border-radius: 14px; border-color: #dce2d6; box-shadow: var(--panel-shadow); }
.language-picker nav a { display: flex; align-items: center; justify-content: space-between; min-height: 44px; gap: 16px; border-radius: 8px; }
.language-picker nav a[aria-current="page"]::after { content: '✓'; font-size: 14px; }
.menu-toggle { border-radius: 9px; }
.menu-toggle span { transition: transform .2s var(--ease-out); }
.mobile-menu { position: absolute; top: 100%; inset-inline: 0; max-height: calc(100dvh - 100px); padding: 12px 24px 22px; box-shadow: 0 24px 32px -28px #172c2260; }
.mobile-menu a { padding: 13px 16px; border-bottom-color: #e7ebe1; border-radius: 8px; font-size: 15px; }
.mobile-menu a[aria-current="page"] { background: #edf2e6; color: #304b35; box-shadow: inset 3px 0 #b54314; }

/* Small, consistent controls, with an inset edge and deliberate motion. */
.button { border-radius: 9px; box-shadow: inset 0 1px 0 #ffffff2b, 0 3px 7px #1b30280c; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s var(--ease-out); }
.button > span[aria-hidden="true"] { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 26px; width: 26px; height: 26px; border-radius: 50%; background: #1b302810; font-size: 18px; transition: transform .2s var(--ease-out); }
.button-dark > span[aria-hidden="true"], .button-outline > span[aria-hidden="true"] { background: #ffffff12; }
.button:active { transform: translateY(0); box-shadow: inset 0 1px 3px #172c2224; }
.text-link { transition: color .2s, border-color .2s; }
.text-link > span[aria-hidden] { transition: transform .2s var(--ease-out); }
:is(a,button,summary,input,textarea,[tabindex]):focus-visible { outline: 2px solid #a64218; outline-offset: 4px; box-shadow: 0 0 0 4px #fff; }

/* Material depth belongs to surfaces; only actionable elements move. */
.story-card, .price-card, .home-next-card, .connection-grid article, .about-principle-grid article { box-shadow: var(--surface-shadow); }
.story-card:hover { transform: none; box-shadow: var(--surface-shadow); }
.price-featured { background: linear-gradient(150deg,#fffaf3,#fff 55%); border-color: #ddc4ae; border-top-color: #dc783d; box-shadow: 0 4px 8px #493a2105, 0 22px 45px -22px #493a2135; }
.price-card li::before { width: 17px; height: 17px; border-radius: 50%; background: #edf2e5; color: #3e5c3b; text-align: center; font-size: 11px; line-height: 17px; top: 3px; }
.integration-category .integration-options article { border-color: #e0e5da; box-shadow: 0 4px 16px #20352905; }
.integration-categories a { transition: background .2s, border-color .2s, box-shadow .2s; }
.home-provider-names span { background: #ffffff05; }
.equipment-included { background: linear-gradient(110deg,#edf2e6,#f5f7f0); }
.about-hero { background: radial-gradient(ellipse at 95% 0,#395145,#23382f 65%); }
.integrations-hero { background: radial-gradient(ellipse at 100% 0,#3a5141,#253c32 70%); }
.api-hero { padding-top: 96px; background: radial-gradient(ellipse at 95% 0,#324b3f,#202c29 70%); }
.api-channel-grid article { border-radius: 18px; background: linear-gradient(145deg,#ffffff09,#ffffff03); box-shadow: inset 0 1px 0 #ffffff08; }

/* Selected views and expandable content remain clear without relying on colour. */
.gallery-toolbar { border-radius: 14px 14px 0 0; }
.gallery-main { border-radius: 0 0 12px 12px; box-shadow: var(--surface-shadow); }
.gallery-categories button, .gallery-variants button { border-radius: 8px; transition: background .2s, border-color .2s, color .2s; }
.gallery-thumb { border-radius: 9px; transition: border-color .2s, box-shadow .2s; }
.gallery-thumb > .thumb-image { border-radius: 5px; }
.gallery-thumb[aria-pressed="true"] { box-shadow: 0 3px 10px #a14a1912; }
.gallery-controls button { width: 44px; height: 44px; background: #fff; transition: background .2s, border-color .2s; }
.employee-choice { transition: background .2s, border-color .2s, box-shadow .2s; }
.home-compact .employee-choice[aria-pressed="true"] { box-shadow: inset 0 1px 0 #ffffff17, 0 4px 12px #22382c15; }
.function-group summary, .business-faq summary, .coverage-item summary, .api-details summary { transition: background .2s, color .2s; }
.function-group[open] { border-top-color: #85967c; }
.function-group[open] summary strong, .business-faq details[open] summary { color: #34553c; }
.details-symbol, .business-faq summary > span, .coverage-item summary > span, .api-details summary > span { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 30px; border: 1px solid #cfd9c4; border-radius: 50%; color: #375133; }
.details-symbol::before, .details-symbol::after { left: 6px; top: 14px; }
.coverage-item { overflow: clip; box-shadow: 0 2px 6px #263c2504; transition: border-color .2s; }
.coverage-item summary { align-items: center; }
.coverage-item[open] { border-color: #99ad86; }
.coverage-item[open] summary { background: #f5f8ef; }
.coverage-item summary > span { font-size: 22px; transition: transform .2s var(--ease-out); }
.coverage-item[open] summary > span { transform: rotate(45deg); }
.coverage-item summary:focus-visible { outline-offset: -5px; }
.api-page-nav { gap: 10px; }
.api-page-nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 9px 16px; border: 1px solid #dce2d5; border-radius: 30px; text-decoration: none; background: #fafbf7; transition: background .2s, border-color .2s; }

/* Matching form surfaces and clearer keyboard focus. */
.contact-dialog { border-radius: 18px; box-shadow: var(--panel-shadow), 0 30px 90px #11251945; }
.contact-dialog::backdrop { background: #12251ee0; }
.contact-close { border-radius: 50%; }
.contact-field input, .contact-field textarea { border-radius: 8px; transition: border-color .2s, box-shadow .2s; }
.contact-field input:focus-visible, .contact-field textarea:focus-visible, .calculator-row input:focus-visible { outline: 2px solid #486840; outline-offset: 2px; border-color: #486840; box-shadow: 0 0 0 5px #48684012; }
.site-footer { background: #1d2c26; }
.site-footer nav > a { width: fit-content; max-width: 100%; text-decoration-thickness: 1px; text-underline-offset: 5px; }
.site-footer nav > a[aria-current="page"] { color: #ffac7d; text-decoration-line: underline; }

@media (hover: hover) and (pointer: fine) {
  .desktop-links a:hover::after { transform: scaleX(1); }
  .language-picker summary:hover, .mobile-menu a:hover { background: #f0f3e9; }
  .button:hover { box-shadow: inset 0 1px 0 #ffffff2b, 0 7px 16px #172c2217; }
  .button:hover > span[aria-hidden="true"], .text-link:hover > span[aria-hidden] { transform: translate(2px,-2px); }
  .integration-categories a:hover { border-color: #acbc9b; box-shadow: var(--surface-shadow); }
  .employee-choice:not([aria-pressed="true"]):hover { background: #e8eedf; border-color: #afbd9e; }
  .gallery-thumb:not([aria-pressed="true"]):hover { border-color: #839575; }
  .function-group summary:hover, .business-faq summary:hover { color: #42613b; }
  .coverage-item summary:hover, .api-page-nav a:hover { background: #edf3e4; }
  .site-footer nav > a:hover { text-decoration-line: underline; }
}
@media (max-width: 760px) {
  .language-picker summary { padding-inline: 7px; }
  .api-hero { padding-top: 48px; }
  .mobile-menu { padding-inline: 12px; }
  .button { min-height: 48px; }
}
@media (max-width: 560px) {
  .contact-dialog { border-radius: 0; }
}
/* Clear action hierarchy and comfortably sized targets on every page. */
.button { min-height: 56px; padding: 14px 24px; gap: 18px; font-size: 15px; border-color: #ad4b2340; }
.button-small { min-height: 46px; padding: 10px 18px; font-size: 13px; }
.button-dark { border-color: #142d24; }
.button-light { border-color: #899b83; background: #ffffff40; }
.button-outline { border-color: #bdcfc1; }
.gallery-categories button, .gallery-variants button, .api-page-nav a { min-height: 48px; padding: 12px 17px; font-size: 14px; font-weight: 600; cursor: pointer; }
.gallery-categories button, .gallery-variants button { border-color: #aab8a1; }
.gallery-controls button { width: 48px; height: 48px; flex: 0 0 48px; border-color: #899b83; }
.gallery-expand { min-height: 44px; padding: 10px 14px; border: 1px solid #b9cdb87a; border-radius: 8px; font-size: 13px; background: #ffffff0a; }
.lightbox-toolbar button, .lightbox-controls button { min-height: 44px; min-width: 44px; }
.agent-submit { min-height: 48px; padding: 12px 18px; font-size: 14px; }
.agent-suggestions button { min-height: 48px; border-color: #adc5b775; }
.agent-real-preview summary { padding: 12px 16px; border: 1px solid #b9cdb870; border-radius: 9px; background: #ffffff08; }
.home-compact .employee-choice { min-height: 58px; border-color: #a2b193; }
.menu-toggle { min-width: 44px; min-height: 44px; border-color: #a4b29c; }
.menu-toggle[aria-expanded="true"] { background: #e6eddf; border-color: #37573f; box-shadow: inset 0 0 0 1px #37573f; }
.language-picker[open] summary { border-color: #37573f; background: #e6eddf; }
.language-picker nav a[aria-current="page"] { background: #29493d; color: #fff; font-weight: 700; }
.desktop-links a:is(.is-active,[aria-current="page"]) { color: #923611; }
.desktop-links a:is(.is-active,[aria-current="page"])::after { height: 3px; }
.mobile-menu a:is(.is-active,[aria-current]) { background: #e6eddf; color: #244535; box-shadow: inset 4px 0 #b54314; font-weight: 700; }

/* Selected choices have a stable filled surface and a check, not just a hover tint. */
.gallery-categories button[aria-pressed="true"], .gallery-variants button[aria-pressed="true"], .api-page-nav a[aria-current="location"] { background: #29493d; color: #fff; border-color: #29493d; box-shadow: inset 0 0 0 1px #29493d, 0 3px 8px #203a2818; }
.gallery-categories button::before, .gallery-variants button::before, .api-page-nav a::before, .agent-suggestions button::after { content: ''; display: inline-block; flex: 0 0 6px; width: 6px; height: 10px; border: solid currentColor; border-width: 0 2px 2px 0; transform: rotate(45deg); opacity: 0; }
.gallery-variants button, .api-page-nav a { display: inline-flex; align-items: center; justify-content: center; gap: 12px; }
.gallery-categories button[aria-pressed="true"]::before, .gallery-variants button[aria-pressed="true"]::before, .api-page-nav a[aria-current="location"]::before, .agent-suggestions button[aria-pressed="true"]::after { opacity: 1; }
.gallery-thumb { border: 2px solid #d0dac8; padding: 5px; }
.gallery-thumb[aria-pressed="true"] { border-color: #a3421b; background: #fff0e6; box-shadow: 0 0 0 2px #a3421b24; }
.gallery-thumb[aria-pressed="true"] > span:last-child { color: #833410; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 5px; }
.home-compact .employee-choice[aria-pressed="true"] { border-color: #29493d; box-shadow: inset 0 0 0 1px #29493d, 0 3px 8px #203a2818; }
.employee-choice[aria-pressed="true"] .employee-choice-arrow { display: grid; place-items: center; width: 25px; height: 25px; flex: 0 0 25px; border-radius: 50%; background: #e0edce; font-size: 0; }
.employee-choice[aria-pressed="true"] .employee-choice-arrow::after { content: ''; width: 6px; height: 10px; border: solid #29493d; border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.employee-phone-nav button[aria-pressed="true"] { color: #963910; border-top: 3px solid #a74218; background: #ffeadb; font-weight: 700; }
.agent-suggestions button::after { margin-left: auto; }
.agent-suggestions button[aria-pressed="true"] { background: #ffe5d4; color: #243d31; border-color: #ffad83; box-shadow: inset 0 0 0 1px #ffad83; }
.agent-suggestions button[aria-pressed="true"] > span { color: #934318; }
.integration-categories a[aria-current="location"] { background: #29493d; color: #fff; border-color: #29493d; box-shadow: inset 0 0 0 1px #d5e6c15c; }
.integration-categories a[aria-current="location"] > span { color: #e1edda; }

/* Open panels and keyboard focus stay obvious on both mouse and touch screens. */
.function-group[open] summary, .business-faq details[open] summary, .coverage-item[open] summary { background: #e6eddf; color: #244535; }
.function-group[open] .details-symbol, .business-faq details[open] summary > span, .coverage-item[open] summary > span { background: #29493d; color: #fff; border-color: #29493d; }
.function-group[open] .details-symbol::before, .function-group[open] .details-symbol::after { background: #fff; }
.agent-real-preview[open] summary { background: #38574a; border-color: #d6bc9e; }
:is(a,button,summary,input,textarea,[tabindex]):focus-visible { outline-width: 3px; }
:is(.gallery-thumb,.agent-suggestions button,.agent-submit,.gallery-expand):focus-visible { outline-offset: -5px; }
.agent-suggestions button:focus-visible, .agent-submit:focus-visible, .gallery-expand:focus-visible { outline-color: #fff; box-shadow: 0 0 0 2px #ac5426; }
.agent-suggestions button[aria-pressed="true"]:focus-visible, .agent-submit:focus-visible { outline-color: #783510; }
:is(button,summary,.api-page-nav a,.integration-categories a,.api-domain-links a) { -webkit-tap-highlight-color: #ff9b6640; }
button:disabled { opacity: .55; cursor: not-allowed; transform: none; }
@media (hover: hover) and (pointer: fine) {
  .button:not(:disabled):hover { background: #ff9e6a; border-color: #a64620; box-shadow: 0 7px 18px #172c222b, inset 0 1px 0 #ffffff45; transform: translateY(-2px); }
  .button-dark:not(:disabled):hover { background: #365b47; border-color: #a9c697; color: #fff; }
  .button-light:not(:disabled):hover { background: #e5eddb; border-color: #3d613f; color: #20372b; }
  .button-outline:not(:disabled):hover { background: #ffffff25; border-color: #fff; color: #fff; }
  .pricing-hero .button-outline:hover { background: #d7e4c9; border-color: #3d613f; color: #20372b; }
  .home-connections .button-light:hover, .connection-grid article:last-child .button-light:hover { background: #46634e; color: #fff; border-color: #c7d8b8; }
  .gallery-categories button:not([aria-pressed="true"]):hover, .gallery-variants button:not([aria-pressed="true"]):hover, .api-page-nav a:not([aria-current]):hover { background: #e5eddb; border-color: #3d613f; box-shadow: 0 2px 6px #203a2818; }
  .gallery-thumb:not([aria-pressed="true"]):hover { border-color: #476943; background: #edf3e6; box-shadow: 0 3px 10px #203a2820; }
  .gallery-controls button:hover { background: #29493d; color: #fff; border-color: #29493d; }
  .gallery-expand:hover, .lightbox-toolbar button:hover, .lightbox-controls button:hover { background: #496354; color: #fff; border-color: #c8dab8; }
  .home-compact .employee-choice:not([aria-pressed="true"]):hover { background: #e0ead5; border-color: #3d613f; box-shadow: inset 0 0 0 1px #3d613f; }
  .employee-phone-nav button:not([aria-pressed="true"]):hover { color: #29493d; background: #e8efdf; }
  .agent-submit:hover { background: #ffc09a; box-shadow: 0 4px 16px #07171250; border-color: #ffe2ce; }
  .agent-suggestions button:not([aria-pressed="true"]):hover { background: #46634f; border-color: #f3b088; }
  .agent-real-preview summary:hover { background: #38574a; border-color: #ffad83; color: #fff; }
  .function-group summary:hover, .business-faq summary:hover, .coverage-item summary:hover { background: #e6eddf; color: #244535; }
  .integration-categories a:not([aria-current]):hover, .api-domain-links a:hover { background: #e0ead5; border-color: #476943; box-shadow: 0 4px 12px #203a2818; }
  .menu-toggle:hover, .language-picker summary:hover { background: #e6eddf; border-color: #476943; }
  .story-card:hover { border-color: #859978; box-shadow: 0 8px 24px #203a2824; }
  .story-card-2:hover { border-color: #d5b48d; }
  .text-link:hover { text-decoration: underline; text-underline-offset: 5px; }
}
.button:not(:disabled):active, .agent-submit:active { transform: translateY(1px); box-shadow: inset 0 2px 5px #172c2240; }
@media (max-width: 760px) {
  .button { min-height: 52px; padding-inline: 20px; }
  .gallery-categories button { flex: 1 1 auto; justify-content: center; }
  .gallery-expand { gap: 8px; }
  .gallery-toolbar { gap: 10px; padding-inline: 12px; }
  .agent-submit { white-space: normal; }
}
@media (max-width: 380px) {
  .nav { gap: 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; }
  .button:not(:disabled):is(:hover,:active), .agent-submit:active, .button:hover > span[aria-hidden="true"], .text-link:hover > span[aria-hidden] { transform: none; }
}
