/* Additions on top of site.css (extracted from the approved mockup). */

/* Contact form: new fields */
.contact-card input[type="text"], .contact-card input[type="email"] { appearance: none; display: block; width: 100%; color: #edf6fa; background: #0c1723; font-size: 1rem; line-height: 1.45; border-radius: .55rem; border: 1px solid #536777; padding: .72rem .88rem; }
.contact-card input::placeholder { color: #94a6b6; }
.contact-card select:focus-visible, .contact-card textarea:focus-visible, .contact-card input:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-color: transparent; }
.field-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.field-pair > div { min-width: 0; }
.optional { color: #94a6b6; font-weight: 400; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { min-height: 0; margin-top: 1rem; }
.form-error { margin-top: 1rem; padding: .7rem .9rem; border-radius: .55rem; border: 1px solid #ff9d8f; background: #3a1a1a; color: #ffd3cc; font-size: .9rem; }
.form-note a, .contact-card a:not(.button) { color: #9fe7f2; text-underline-offset: .2em; }
.contact-card button[disabled] { opacity: .7; cursor: progress; }
@media (max-width: 560px) { .field-pair { grid-template-columns: 1fr; } }


/* Active nav item */
#navigation a[aria-current="page"] { color: white; }


/* Back to top */
.to-top { position: fixed; z-index: 30; right: max(1rem, env(safe-area-inset-right)); bottom: max(1rem, env(safe-area-inset-bottom)); width: 3rem; height: 3rem; display: grid; place-items: center; padding: 0; border-radius: 50%; border: 1px solid #3b5166; background: #0b1625f2; color: #84eafa; box-shadow: 0 .6rem 1.6rem #00000040; cursor: pointer; opacity: 0; transform: translateY(.6rem); transition: opacity .25s, transform .25s, background .2s, border-color .2s, color .2s; }
.to-top.is-visible { opacity: 1; transform: none; }
.to-top { position: fixed; overflow: hidden; --p: 0; }
.to-top .tt-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; }
.to-top .tt-track { stroke: #84eafa26; stroke-width: 2; }
.to-top .tt-bar { stroke: #84eafa; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset .12s linear, stroke .2s; }
.to-top .tt-arrows { position: relative; width: 1.3rem; height: 1.3rem; display: block; }
.to-top .tt-arrows svg { position: absolute; inset: 0; width: 100%; height: 100%; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .3s cubic-bezier(.2,.8,.2,1), opacity .3s; }
.to-top .tt-arrows svg + svg { transform: translateY(160%); opacity: 0; }
.to-top.is-end { box-shadow: 0 0 0 0 #84eafa66, 0 .6rem 1.6rem #00000040; animation: tt-pulse 2.4s ease-out 1; }
.to-top.is-launch .tt-arrows svg:first-child { transform: translateY(-220%); opacity: 0; }
.to-top.is-launch .tt-arrows svg + svg { transform: none; opacity: 1; transition-delay: .2s; }
@keyframes tt-pulse { 0% { box-shadow: 0 0 0 0 #84eafa80, 0 .6rem 1.6rem #00000040; } 100% { box-shadow: 0 0 0 .9rem #84eafa00, 0 .6rem 1.6rem #00000040; } }
.to-top:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@media (min-width: 781px) { .to-top { right: 1.75rem; bottom: 1.75rem; } }

/* Hover and pointer feedback (fine pointers only; touch devices keep the plain state) */
@media (hover: hover) and (pointer: fine) {
  .to-top:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink); transform: translateY(-2px); }
  .to-top:hover .tt-bar { stroke: var(--ink); }
  .to-top:hover .tt-arrows svg:first-child { transform: translateY(-160%); opacity: 0; }
  .to-top:hover .tt-arrows svg + svg { transform: none; opacity: 1; }
  #navigation a:not(.header-action) { position: relative; }
  #navigation a:not(.header-action)::after { content: ""; position: absolute; left: 0; right: 0; bottom: .1rem; height: 2px; background: var(--cyan); transform: scaleX(0); transform-origin: left; transition: transform .25s ease; }
  #navigation a:not(.header-action):hover::after, #navigation a[aria-current="page"]::after { transform: scaleX(1); }
  .brand { transition: opacity .2s; }
  .brand:hover { opacity: .82; }
  .button { transition: background .2s, color .2s, transform .2s, box-shadow .2s; }
  .button:hover { transform: translateY(-1px); box-shadow: 0 .5rem 1.2rem -.4rem #39ddf266; }
  .button:active { transform: translateY(1px); box-shadow: none; }
  .demo-link .play-disc { transition: border-color .2s, color .2s, background .2s; }
  .demo-link:hover .play-disc { background: #39ddf21f; }
  .text-link { transition: color .2s, text-decoration-thickness .2s; }
  .text-link::after { content: " \2192" / ""; display: inline-block; transition: transform .2s; }
  .text-link:hover::after { transform: translateX(.25rem); }
  .cap-panel { transition: border-color .25s, box-shadow .25s; }
  .cap-panel:hover { border-color: #aebfd0; box-shadow: 0 1.4rem 3rem -1.6rem #344b6a55; }
  .app-window { transition: box-shadow .25s, border-color .25s; }
  .app-window:hover { border-color: #8fa6bc; box-shadow: 0 1.6rem 4.2rem -1rem #344b6a66, 0 2px 6px #2338550a; }
  .approach-list summary { transition: color .2s; }
  .approach-list summary:hover { color: #2347b5; }
  .mini-table tbody tr, .entries li, .record-rows > div { transition: background .15s; }
  .mini-table tbody tr:hover { background: #f3f7fb; }
  .contact-email, .location { transition: color .2s; }
  .contact-card select:hover, .contact-card textarea:hover, .contact-card input:hover { border-color: #7f97ab; }
  .tags li { transition: background .2s; }
  .tags li:hover { background: #dbe6f0; }
  .post-card-media > img { transition: transform .5s ease; }
  .post-card:hover .post-card-media > img { transform: scale(1.04); }
}
@media (prefers-reduced-motion: reduce) {
  .to-top .tt-bar, .to-top .tt-arrows svg { transition: none !important; }
  .to-top.is-end { animation: none; }
  .to-top, .button, .text-link::after, .post-card-media > img, #navigation a::after { transition: none !important; }
  .post-card:hover .post-card-media > img, .button:hover { transform: none !important; }
}

/* Trusted-by strip (home) */
.trust { background: #fff; border-bottom: 1px solid #dce3e8; padding-block: 1.6rem; }
.trust-inner { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.5rem; }
.trust-title { font-size: .79rem; font-weight: 640; text-transform: uppercase; letter-spacing: .116em; color: #526477; }
.trust-logos { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2.6rem; list-style: none; padding: 0; margin: 0; flex: 1; }
.trust-logos img { height: 2.1rem; width: auto; max-width: 11rem; object-fit: contain; filter: grayscale(1) opacity(.7); transition: filter .2s; }
.trust-logos a { display: inline-flex; padding-block: .35rem; }
.client-wordmark { font-weight: 640; letter-spacing: -.03em; font-size: 1.3rem; color: #3a4d62; }
@media (hover: hover) and (pointer: fine) { .trust-logos a:hover img { filter: none; } }
@media (max-width: 620px) { .trust-logos { gap: .8rem 1.8rem; } .trust-logos img { height: 1.8rem; } }

/* Site footer (same structure as straybit.io: brand, link columns, contact, bottom bar) */
.site-footer { background: #05090f; border-top: 1px solid #1d2a38; color: #c4d1dd; }
.footer-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr 1.15fr; gap: 2.5rem clamp(1.5rem, 4vw, 4rem); padding-block: clamp(3rem, 6vw, 5rem) clamp(2.2rem, 4vw, 3.4rem); }
.footer-brand .brand img { width: 10.5rem; }
.footer-brand p { margin-top: 1.2rem; max-width: 18rem; color: #9fb0c0; line-height: 1.55; }
.social { display: flex; gap: .7rem; list-style: none; padding: 0; margin: 1.4rem 0 0; }
.social a { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; border: 1px solid #2b3b4c; background: #0a121c; color: #c4d1dd; transition: background .2s, border-color .2s, color .2s; }
.social svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.footer-col h2 { font: 500 .74rem/1 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .16em; text-transform: uppercase; color: #6f8296; margin-bottom: 1.3rem; }
.footer-col ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .15rem; }
.footer-col a { display: inline-block; padding-block: .45rem; color: #c4d1dd; text-decoration: none; font-size: 1rem; }
.footer-contact a { font-size: 1.05rem; color: #eaf2f8; }
.footer-col address { margin-top: 1rem; font-style: normal; color: #7d90a3; font-size: .9rem; line-height: 1.65; }
.footer-bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 2rem; padding-block: 1.6rem 2rem; border-top: 1px solid #1d2a38; font-size: .86rem; color: #8397aa; }
.footer-bar ul { display: flex; flex-wrap: wrap; gap: .2rem 1.4rem; list-style: none; padding: 0; margin: 0; }
.footer-bar a { color: #8397aa; text-decoration: none; padding-block: .3rem; display: inline-block; }
.site-footer :focus-visible { outline-color: var(--cyan); }
@media (hover: hover) and (pointer: fine) {
  .footer-col a:hover, .footer-bar a:hover { color: #fff; }
  .footer-col a:not(.brand) { transition: color .2s, transform .2s; }
  .footer-col li a:hover { transform: translateX(3px); }
  .social a:hover { background: var(--cyan); border-color: var(--cyan); color: var(--ink); }
}
@media (max-width: 1030px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; gap: 2rem; } .footer-bar { flex-direction: column; } }
@media (prefers-reduced-motion: reduce) { .footer-col li a:hover { transform: none; } }
.trust-logos img.logo-tall { height: 3.2rem; }
@media (max-width: 620px) { .trust-logos img.logo-tall { height: 2.7rem; } }
.trust-logos img.logo-wide { height: 3.3rem; }
.trust-logos li > img { max-width: 12rem; }
@media (max-width: 620px) { .trust-logos img.logo-wide { height: 2.8rem; } }

/* Home: solutions teaser (mirrors the card rules in blog.css) */
.solutions-band { background: #fff; padding-block: clamp(2.5rem, 5vw, 4.5rem); border-top: 1px solid #dce3e8; }
.solutions-band h2 { font-size: clamp(2rem, 3.8vw, 3.4rem); line-height: 1.05; letter-spacing: -.055em; font-weight: 520; margin-top: .4rem; }
.solutions-band .sol-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 24rem), 1fr)); gap: 1.2rem; list-style: none; padding: 0; margin: 1.8rem 0 0; }
.solutions-band .sol-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.5rem; border: 1px solid #d7e0e8; border-radius: 1.2rem; background: #f6f8fa; }
.solutions-band .sol-card h3 { font-size: 1.3rem; letter-spacing: -.03em; font-weight: 580; }
.solutions-band .sol-card > p { color: #43556a; line-height: 1.55; font-size: .97rem; }
.solutions-band .sol-card .text-link { margin-top: auto; padding-top: .4rem; }
@media (hover: hover) and (pointer: fine) { .solutions-band .sol-card { transition: border-color .2s, box-shadow .2s; } .solutions-band .sol-card:hover { border-color: #aebfd0; box-shadow: 0 1rem 2.4rem -1.2rem #344b6a55; } }

/* Language switch: globe icon and code in a pill */
#navigation .lang-switch { display: inline-flex; align-items: center; gap: .4rem; padding: .34rem .75rem .34rem .6rem; border: 1px solid #ffffff3a; border-radius: 99px; font-size: .78rem; font-weight: 650; letter-spacing: .07em; color: #dbe6ef; background: #ffffff0d; transition: border-color .2s, background-color .2s, color .2s; }
#navigation .lang-switch svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; transition: transform .6s var(--ease-out, ease); }
#navigation .lang-switch:hover, #navigation .lang-switch:focus-visible { border-color: var(--cyan); background: #39ddf214; color: #fff; }
#navigation .lang-switch:hover svg { transform: rotate(180deg); }
#navigation .lang-switch::after { display: none; }
.enhanced #navigation .lang-switch { display: inline-flex; width: auto; margin-top: .35rem; }

/* Cookie and analytics consent (opt-in) */
.consent { position: fixed; z-index: 90; left: max(1rem, env(safe-area-inset-left)); bottom: max(1rem, env(safe-area-inset-bottom)); width: min(30rem, calc(100vw - 2rem)); padding: 1.15rem 1.25rem 1.2rem; border: 1px solid #ffffff2e; border-radius: 1.2rem; background: #0b1624f7; color: #dbe6ef; box-shadow: 0 1.6rem 3.6rem -1rem #000c; font-size: .9rem; line-height: 1.55; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.consent-title { margin: 0 0 .35rem; font-size: 1.05rem; font-weight: 620; letter-spacing: -.02em; color: #fff; }
.consent-text { margin: 0; }
.consent a { color: #8fe9f8; text-underline-offset: .2em; }
.consent-details { display: grid; gap: .6rem; margin-top: .85rem; }
.consent-row { display: grid; gap: .15rem; padding: .7rem .8rem; border: 1px solid #ffffff1c; border-radius: .8rem; background: #ffffff0a; font-size: .84rem; }
.consent-row strong { color: #fff; font-weight: 600; }
.consent-row span { color: #b6c5d3; }
.consent-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.consent button { font: inherit; font-size: .86rem; font-weight: 600; padding: .6rem 1.15rem; border-radius: 99px; cursor: pointer; border: 1px solid #ffffff44; background: transparent; color: #fff; }
.consent .consent-ok, .consent .consent-no { background: #fff; color: #0b1220; border-color: #fff; }
.consent .consent-no { background: transparent; color: #fff; border-color: #ffffff77; }
.consent .consent-more { border-color: transparent; text-decoration: underline; text-underline-offset: .2em; color: #b6c5d3; padding-inline: .5rem; margin-left: auto; }
.consent button:hover { border-color: var(--cyan); }
.consent .consent-ok:hover { background: var(--cyan); }
.consent button:focus-visible, .consent a:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }
@media (max-width: 560px) { .consent { left: .75rem; right: .75rem; bottom: .75rem; width: auto; } .consent-actions button { flex: 1 1 auto; } .consent .consent-more { margin-left: 0; flex-basis: 100%; } }
@media (prefers-reduced-motion: no-preference) { .consent { animation: consent-in .45s var(--ease-out, ease) both; } }
@keyframes consent-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.footer-bar .consent-link { font: inherit; color: #8397aa; background: none; border: 0; padding: .3rem 0; cursor: pointer; text-decoration: none; }
.footer-bar .consent-link:hover { color: #fff; }
.consent-details[hidden] { display: none; }

/* Trusted by, phone layout: title above, logos drifting in one inline row (marquee.js adds the loop) */
.trust-logos li.is-clone { display: none; }
@media (max-width: 620px) {
  .trust { padding-block: 1.6rem; }
  .trust-inner { flex-direction: column; flex-wrap: nowrap; align-items: stretch; gap: 1rem; text-align: center; min-width: 0; }
  .trust-inner > * { min-width: 0; max-width: 100%; }
  .trust-title { text-align: center; }
  .trust-inner .text-link { justify-self: center; align-self: center; }
  .trust-marquee { overflow: hidden; width: calc(100% + var(--gutter) * 2); max-width: none !important; margin-inline: calc(var(--gutter) * -1); -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
  .trust-logos.is-moving { flex-wrap: nowrap; width: max-content; gap: 0; animation: trust-drift 26s linear infinite; }
  .trust-logos.is-moving li { flex: none; display: flex; align-items: center; padding-inline: 1.4rem; }
  .trust-logos.is-moving li.is-clone { display: flex; }
  .trust-logos.is-moving a { display: inline-flex; padding-block: .35rem; }
  .trust-logos.is-moving img, .trust-logos.is-moving img.logo-tall, .trust-logos.is-moving img.logo-wide { height: 2.6rem; width: auto; max-width: none; }
  .trust-marquee:active .trust-logos.is-moving, .trust-marquee:focus-within .trust-logos.is-moving { animation-play-state: paused; }
  /* No script or no motion: wrap the logos in a tidy centred row instead */
  .trust-logos:not(.is-moving) { justify-content: center; gap: 1rem 1.6rem; }
}
@keyframes trust-drift { to { transform: translateX(-50%); } }

/* Phones, mainly for German: long compound words must wrap instead of clipping */
@media (max-width: 620px) {
  .pipeline { grid-template-columns: 1fr; gap: .4rem; }
  .lane { display: grid; grid-template-columns: 30% minmax(0, 1fr); align-items: center; gap: .5rem; padding: .4rem .55rem; }
  .lane > p { margin: 0; }
  .lane > div { min-height: 0; padding: .45rem .6rem; }
  .lane strong, .lane small, .entries strong, .entries small, .record-rows strong, .mini-table td, .stage-strip span, .sync-path span { overflow-wrap: anywhere; hyphens: auto; }
}

/* Product cards: "See demo" button next to the contact link */
.product-cta { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.4rem; margin-top: 1.1rem; }
.product-cta .text-link { margin: 0; }
.demo-btn { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.7rem; padding: .55rem 1.1rem .55rem .9rem; border-radius: 99px; background: var(--ink); color: #fff; font-size: .92rem; font-weight: 600; text-decoration: none; transition: background .2s, transform .2s; }
.demo-btn svg { width: 1.05rem; height: 1.05rem; fill: var(--cyan); }
.demo-btn:focus-visible { outline: 3px solid var(--cyan); outline-offset: 3px; }
@media (hover: hover) and (pointer: fine) { .demo-btn:hover { background: #1d3358; transform: translateY(-1px); } }

/* Mobile: the language switch lives in the header bar next to the menu button, always visible (no tap into the menu) */
.lang-mini { display: none; }
@media (max-width: 780px) {
  .enhanced .lang-mini { display: inline-flex; align-items: center; justify-content: center; margin-left: auto; margin-right: .55rem; min-width: 2.75rem; height: 2.75rem; padding: 0 .75rem; border: 1px solid #526171; border-radius: 99px; color: #fff; font-size: .82rem; font-weight: 650; letter-spacing: .06em; text-decoration: none; }
  .enhanced .lang-mini:hover, .enhanced .lang-mini:focus-visible { border-color: var(--cyan); background: #39ddf214; }
  .enhanced #navigation .lang-switch { display: none; }
}

/* FAQ, trust notes and the contact-section trust line */
.faq { display: grid; gap: .6rem; margin-top: 1.2rem; }
.faq details { border: 1px solid #d5dde6; border-radius: .9rem; background: #fff; }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1rem 1.15rem; font-weight: 620; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; font-size: 1.3rem; line-height: 1; color: #526477; transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: .9rem; }
.faq-a { padding: 0 1.15rem 1.1rem; color: #43556a; line-height: 1.6; }
.faq-a a { color: #1d3a9c; }
.trust-note { display: flex; align-items: flex-start; gap: .6rem; margin-top: 1rem; max-width: 52rem; font-size: .9rem; color: #43556a; }
.trust-note svg { flex: none; width: 1.25rem; height: 1.25rem; fill: none; stroke: #1a8fd8; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; margin-top: .1rem; }
.trust-note a { color: #1d3a9c; font-weight: 600; }
.trust-mini { margin-top: .5rem; }
.trust-mini a { color: inherit; text-decoration: underline; }

/* Home page: security band */
.security-band { background: #0a1220; color: #dbe6ef; padding-block: clamp(3.2rem, 7vw, 6rem); }
.security-head { max-width: 40rem; }
.security-head h2 { color: #fff; margin: .4rem 0 1rem; font-size: clamp(2rem, 4.2vw, 3.1rem); line-height: 1.05; }
.security-head p:last-child { color: #b6c4d3; font-size: 1.05rem; line-height: 1.6; }
.security-points { list-style: none; margin: 2.2rem 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr)); gap: 1rem; }
.security-points li { display: flex; gap: .85rem; padding: 1.1rem 1.15rem; border: 1px solid #ffffff1f; border-radius: 1rem; background: #ffffff08; }
.security-points svg { flex: none; width: 1.5rem; height: 1.5rem; fill: none; stroke: var(--cyan); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; margin-top: .15rem; }
.security-points h3 { font-size: 1.02rem; color: #fff; margin: 0 0 .25rem; }
.security-points p { margin: 0; font-size: .9rem; line-height: 1.5; color: #b6c4d3; }
.security-cta { margin-top: 1.8rem; }
