/* ==========================================================================
   Internet Heads public site (homepage + contact)
   Everything is scoped under .site so it can sit on top of the global app.css
   (which the client portal depends on) without changing it.
   Custom properties use the --s- prefix.
   ========================================================================== */

.site {
    --s-brand-blue: #0c82c6;      /* logo blue: decoration only */
    --s-brand-green: #8dc63f;     /* logo green: decoration/status backgrounds only */
    --s-action: #006da5;          /* white text on this = 5.6:1 */
    --s-action-hover: #005a89;
    --s-ink: #0f2c46;             /* headings */
    --s-text: #3f5368;            /* body text = 7.9:1 on white */
    --s-muted: #536779;           /* secondary text = 5.9:1 on white, 5.5:1 on pale */
    --s-surface: #ffffff;
    --s-pale: #f1f8fc;
    --s-pale-2: #e7f2fa;
    --s-border: #dce7ef;
    --s-navy: #062c45;
    --s-navy-2: #0b3a5a;
    --s-on-navy: #dbe9f3;
    --s-green-bg: #e6f4d4;
    --s-green-ink: #2e5410;       /* 8.2:1 on --s-green-bg */
    --s-blue-bg: #e3f1fa;
    --s-blue-ink: #005788;
    --s-done-bg: #e8edf2;
    --s-done-ink: #1f3a52;
    --s-danger-bg: #fdecec;
    --s-danger-ink: #9b1c1c;
    --s-radius: 14px;
    --s-radius-sm: 8px;
    --s-radius-btn: 8px;
    --s-shadow: 0 1px 2px rgba(15, 44, 70, .06), 0 8px 24px rgba(15, 44, 70, .07);
    --s-shadow-lg: 0 2px 6px rgba(15, 44, 70, .08), 0 24px 48px rgba(15, 44, 70, .16);
    --s-container: 1200px;
    --s-gutter: clamp(20px, 4vw, 32px);
    --s-section-y: clamp(56px, 8vw, 104px);
    --s-font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --s-focus: 0 0 0 3px #ffffff, 0 0 0 5px var(--s-action);

    font-family: var(--s-font);
    font-size: 1.0625rem;  /* 17px */
    line-height: 1.6;
    color: var(--s-text);
    background: var(--s-surface);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: clip;
}

/* ---------- Resets on top of the global stylesheet ---------- */
.site h1, .site h2, .site h3, .site h4, .site h5, .site h6 {
    font-family: var(--s-font);
    font-weight: 700;
    color: var(--s-ink);
    letter-spacing: -0.02em;
    line-height: 1.15;
}
.site p { margin: 0; }
.site img { max-width: 100%; height: auto; display: block; }
.site picture { display: contents; }
.site a { color: inherit; text-decoration: none; }
.site ul { list-style: none; }
.site main { flex: 1; outline: none; }
.site .s-icon { flex: none; display: inline-block; vertical-align: middle; }

.site :focus-visible {
    outline: 3px solid var(--s-action);
    outline-offset: 3px;
    border-radius: 4px;
}
.site .s-products :focus-visible,
.site .s-footer :focus-visible { outline-color: #7fc6f0; }

/* FocusOnNavigate (Routes.razor) moves focus to the h1 after navigation; don't draw a ring for that. */
.site h1:focus, .site main:focus { outline: none; }

/* Blazor error bar (inside .site so these rules stay scoped) */
.site .s-error-ui {
    display: none;
    position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 1000;
    max-width: 640px; margin-inline: auto;
    padding: 14px 52px 14px 18px;
    background: #fff7e0; color: #4a3600; border: 1px solid #f0d58a; border-radius: 10px;
    box-shadow: var(--s-shadow-lg); font-size: .9375rem;
}
.site .s-error-ui .reload { color: var(--s-action); font-weight: 600; text-decoration: underline; margin-left: 6px; }
.site .s-error-ui .dismiss {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 32px; height: 32px; border: 0; background: transparent; color: inherit;
    font-size: 1.375rem; line-height: 1; cursor: pointer; border-radius: 6px;
}

.site .s-sr-only {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.site .s-container {
    width: 100%;
    max-width: calc(var(--s-container) + 2 * var(--s-gutter));
    margin-inline: auto;
    padding-inline: var(--s-gutter);
}

/* ---------- Skip link ---------- */
.site .s-skip {
    position: absolute; left: 16px; top: -100px; z-index: 100;
    background: var(--s-action); color: #fff; font-weight: 600;
    padding: 12px 18px; border-radius: var(--s-radius-btn);
}
.site .s-skip:focus { top: 12px; }

/* ---------- Type helpers ---------- */
.site .s-eyebrow {
    font-size: .8125rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
    color: var(--s-muted); margin-bottom: 14px;
}
.site .s-eyebrow--on-dark { color: #a9cbe2; }
.site .s-h1, .site .s-hero__title {
    font-size: clamp(2.25rem, 1.4rem + 3.6vw, 3.75rem);
    font-weight: 800; letter-spacing: -0.035em; line-height: 1.05;
}
.site .s-h2 {
    font-size: clamp(1.75rem, 1.25rem + 2.1vw, 2.75rem);
    font-weight: 800; letter-spacing: -0.03em; line-height: 1.1;
}
.site .s-textlink {
    display: inline-flex; align-items: center; gap: 6px;
    color: var(--s-action); font-weight: 600;
    text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px;
}
.site .s-textlink:hover { color: var(--s-action-hover); text-decoration-thickness: 2px; }

/* ---------- Buttons ---------- */
.site .s-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    min-height: 48px; padding: 12px 24px;
    font: 600 1rem/1.2 var(--s-font);
    border-radius: var(--s-radius-btn); border: 2px solid transparent;
    cursor: pointer; text-align: center;
    transition: background-color .15s ease, color .15s ease, border-color .15s ease, transform .15s ease;
}
.site .s-btn--primary { background: var(--s-action); color: #fff; }
.site .s-btn--primary:hover { background: var(--s-action-hover); }
.site .s-btn--primary .s-icon { transition: transform .15s ease; }
.site .s-btn--primary:hover .s-icon { transform: translateX(3px); }
.site .s-btn--outline { background: #fff; color: var(--s-action); border-color: var(--s-action); }
.site .s-btn--outline:hover { background: var(--s-pale); }
.site .s-btn--sm { min-height: 42px; padding: 8px 18px; font-size: .9375rem; }
.site .s-btn--lg { min-height: 56px; padding: 14px 32px; font-size: 1.0625rem; }
.site .s-btn:disabled { opacity: .55; cursor: not-allowed; }

/* ---------- Pills ---------- */
.site .s-pill {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px;
    font-size: .8125rem; font-weight: 600; line-height: 1.4; white-space: nowrap;
}
.site .s-pill__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.site .s-pill--live { background: var(--s-green-bg); color: var(--s-green-ink); }
.site .s-pill--live .s-pill__dot { background: #4f8a1c; }
.site .s-pill--dev { background: var(--s-blue-bg); color: var(--s-blue-ink); }
.site .s-pill--completed { background: var(--s-done-bg); color: var(--s-done-ink); }

/* ---------- Cards ---------- */
.site .s-card {
    background: var(--s-surface);
    border: 1px solid var(--s-border);
    border-radius: var(--s-radius);
    box-shadow: var(--s-shadow);
}

/* ==========================================================================
   Header
   ========================================================================== */
.site .s-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(255, 255, 255, .94);
    backdrop-filter: saturate(1.4) blur(10px);
    border-bottom: 1px solid var(--s-border);
}
.site .s-header__inner {
    display: flex; align-items: center; gap: 24px;
    min-height: 76px;
}
.site .s-header__brand { flex: none; display: block; }
.site .s-header__brand img { width: 158px; height: auto; }
.site .s-header__panel {
    flex: 1; display: flex; align-items: center; justify-content: space-between; gap: 24px;
}
.site .s-nav { display: flex; gap: 4px; margin-inline: auto; }
.site .s-nav__link {
    display: block; padding: 10px 14px; border-radius: 6px;
    font-size: .9375rem; font-weight: 500; color: var(--s-ink);
}
.site .s-nav__link:hover { background: var(--s-pale); color: var(--s-action); }
.site .s-header__actions { display: flex; align-items: center; gap: 18px; }
.site .s-header__login {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: .875rem; font-weight: 500; color: var(--s-muted); padding: 8px 4px;
}
.site .s-header__login:hover { color: var(--s-action); text-decoration: underline; text-underline-offset: 3px; }
.site .s-header__toggle {
    display: none; margin-left: auto;
    align-items: center; gap: 8px;
    min-height: 44px; padding: 8px 14px;
    font: 600 .9375rem/1 var(--s-font); color: var(--s-ink);
    background: #fff; border: 1px solid var(--s-border); border-radius: var(--s-radius-btn);
    cursor: pointer;
}
.site .s-header__toggle:hover { border-color: var(--s-action); color: var(--s-action); }

@media (max-width: 960px) {
    .site .s-header__inner { min-height: 68px; flex-wrap: wrap; gap: 0 16px; }
    .site .s-header__brand img { width: 136px; }
    .site .s-header__toggle { display: inline-flex; }
    .site .s-header__panel {
        display: none;
        flex-basis: 100%;
        flex-direction: column; align-items: stretch; gap: 8px;
        padding: 8px 0 20px;
        border-top: 1px solid var(--s-border);
    }
    .site .s-header__panel.is-open { display: flex; }
    .site .s-nav { flex-direction: column; margin: 0; gap: 0; }
    .site .s-nav__link { padding: 14px 4px; font-size: 1.0625rem; border-bottom: 1px solid var(--s-border); border-radius: 0; }
    .site .s-header__actions { flex-direction: column-reverse; align-items: stretch; gap: 8px; padding-top: 8px; }
    .site .s-header__actions .s-btn { min-height: 48px; }
    .site .s-header__login { justify-content: center; padding: 10px; }
}

/* ==========================================================================
   Hero
   ========================================================================== */
.site .s-hero {
    position: relative; isolation: isolate;
    background: linear-gradient(180deg, #f5fafd 0%, var(--s-pale) 100%);
    padding-block: clamp(48px, 7vw, 96px) clamp(56px, 7vw, 104px);
    overflow: hidden;
}
.site .s-hero__deco {
    position: absolute; inset: 0; z-index: -1; pointer-events: none;
    background:
        radial-gradient(circle at 82% 30%, rgba(12, 130, 198, .10) 0, rgba(12, 130, 198, 0) 38%),
        radial-gradient(circle at 96% 88%, rgba(141, 198, 63, .16) 0, rgba(141, 198, 63, 0) 26%);
}
.site .s-hero__deco::after {
    /* dashed orbit behind the browser frames (right half only, never behind text) */
    content: ""; position: absolute;
    width: 640px; height: 640px; right: -120px; top: 40px;
    border: 2px dashed rgba(141, 198, 63, .45); border-radius: 50%;
}
.site .s-hero__inner {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 5vw, 64px); align-items: center;
}
.site .s-hero__copy { position: relative; z-index: 2; max-width: 540px; }
.site .s-hero__title { margin-bottom: 22px; }
.site .s-hero__lead { font-size: clamp(1.0625rem, 1rem + .3vw, 1.1875rem); max-width: 34em; margin-bottom: 32px; }
.site .s-hero__ctas { display: flex; flex-wrap: wrap; gap: 14px; }

.site .s-hero__visual {
    position: relative;
    aspect-ratio: 640 / 520;
    min-width: 0;
}
.site .s-hero__frame { position: absolute; }
.site .s-hero__frame--back { top: 0; right: 0; width: 86%; z-index: 1; }
.site .s-hero__frame--front { bottom: 0; left: 0; width: 70%; z-index: 2; }

.site .s-hero__tile {
    position: absolute; right: 0; bottom: 10%; z-index: 3;
    min-width: 190px;
    background: #fff; border: 1px solid var(--s-border); border-radius: 12px;
    box-shadow: var(--s-shadow-lg);
    padding: 16px 18px;
    font-size: .875rem;
}
.site .s-hero__tile-title { font-weight: 700; color: var(--s-ink); margin-bottom: 10px; }
.site .s-hero__tile-title span { font-weight: 500; color: var(--s-muted); }
.site .s-hero__tile ul { display: grid; gap: 8px; }
.site .s-hero__tile li { display: flex; align-items: center; gap: 10px; color: var(--s-ink); font-weight: 500; }
.site .s-hero__tick {
    flex: none; display: inline-grid; place-items: center;
    width: 22px; height: 22px; border-radius: 50%;
    background: var(--s-green-bg); color: var(--s-green-ink);
}

/* Browser frame */
.site .s-frame {
    background: #fff;
    border: 1px solid #cfdde8;
    border-radius: 12px;
    box-shadow: var(--s-shadow-lg);
    overflow: hidden;
}
.site .s-frame__bar {
    display: flex; align-items: center; gap: 12px;
    height: 30px; padding: 0 12px;
    background: #eef3f7; border-bottom: 1px solid #dbe5ec;
}
.site .s-frame__dots { display: flex; gap: 6px; }
.site .s-frame__dots i { width: 9px; height: 9px; border-radius: 50%; background: #c5d2dc; }
.site .s-frame__dots i:nth-child(1) { background: #f0a29a; }
.site .s-frame__dots i:nth-child(2) { background: #f2cf7d; }
.site .s-frame__dots i:nth-child(3) { background: #a8d77c; }
.site .s-frame__address {
    flex: 1; max-width: 220px; margin-inline: auto;
    height: 18px; border-radius: 9px; background: #fff;
    font-size: 11px; line-height: 18px; text-align: center; color: #5b6f80;
    overflow: hidden; white-space: nowrap; text-overflow: ellipsis;
}
.site .s-frame__view { aspect-ratio: 1348 / 926; background: #e9eef2; }
.site .s-frame__view img { width: 100%; height: 100%; object-fit: cover; }

@media (max-width: 1100px) {
    .site .s-hero__frame--back { width: 90%; }
    .site .s-hero__frame--front { width: 66%; }
    .site .s-hero__tile { bottom: 4%; }
}
@media (max-width: 860px) {
    .site .s-hero__inner { grid-template-columns: 1fr; }
    .site .s-hero__copy { max-width: 640px; }
    .site .s-hero__visual { max-width: 640px; width: 100%; margin-inline: auto; aspect-ratio: 640 / 500; }
    .site .s-hero__deco::after { width: 460px; height: 460px; right: -160px; top: auto; bottom: -80px; }
}
@media (max-width: 520px) {
    .site .s-hero__visual { aspect-ratio: auto; display: grid; gap: 0; }
    .site .s-hero__frame { position: relative; }
    .site .s-hero__frame--back { width: 92%; margin-left: auto; }
    .site .s-hero__frame--front { width: 78%; margin-top: -22%; }
    .site .s-hero__tile { position: relative; right: auto; bottom: auto; margin: 16px 0 0 auto; min-width: 0; width: fit-content; }
    .site .s-frame__bar { height: 22px; padding: 0 8px; }
    .site .s-frame__dots i { width: 7px; height: 7px; }
    .site .s-frame__address { display: none; }
    .site .s-hero__ctas .s-btn { flex: 1 1 100%; }
}

/* ==========================================================================
   Capability strip
   ========================================================================== */
.site .s-capabilities { background: #fff; border-block: 1px solid var(--s-border); }
.site .s-capabilities__list {
    display: flex; flex-wrap: wrap; justify-content: space-around; align-items: center;
    padding-block: 22px; gap: 10px 0;
}
.site .s-capabilities__list li {
    flex: 1 1 0; text-align: center; padding-inline: 16px;
    font-weight: 600; color: var(--s-ink); font-size: 1rem;
}
.site .s-capabilities__list li + li { border-left: 1px solid var(--s-border); }
@media (max-width: 640px) {
    .site .s-capabilities__list { display: grid; grid-template-columns: 1fr 1fr; padding-block: 18px; gap: 0; }
    .site .s-capabilities__list li { padding: 10px 8px; font-size: .9375rem; }
    .site .s-capabilities__list li + li { border-left: 0; }
    .site .s-capabilities__list li:nth-child(even) { border-left: 1px solid var(--s-border); }
    .site .s-capabilities__list li:nth-child(n+3) { border-top: 1px solid var(--s-border); }
}

/* ==========================================================================
   Sections
   ========================================================================== */
.site .s-section { padding-block: var(--s-section-y); }
.site .s-section__head { margin-bottom: clamp(28px, 4vw, 48px); max-width: 820px; }

/* ---------- Work ---------- */
.site .s-work { background: var(--s-pale); }
.site .s-work__grid {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(20px, 2.5vw, 28px);
}
.site .s-project { display: flex; flex-direction: column; overflow: hidden; }
.site .s-project__media {
    position: relative; margin: 10px 10px 0;
    aspect-ratio: 16 / 10; overflow: hidden;
    border-radius: 9px; background: var(--s-pale-2);
    border: 1px solid #e3ecf2;
}
.site .s-project__img { width: 100%; height: 100%; object-fit: cover; }
.site .s-project__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.site .s-project__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.site .s-project__title { font-size: 1.25rem; font-weight: 700; padding-top: 2px; }
.site .s-project__scope { color: var(--s-muted); font-size: .9375rem; font-weight: 500; }
.site .s-project__desc { margin-top: 4px; font-size: 1rem; }
.site .s-project__link { margin-top: auto; padding-top: 10px; }

/* Featured (Three Twelve): full row, image beside text on desktop */
.site .s-project--featured { grid-column: 1 / -1; flex-direction: row; }
.site .s-project--featured .s-project__media { flex: 0 0 58%; margin: 12px 0 12px 12px; aspect-ratio: 1001 / 690; }
.site .s-project--featured .s-project__body { justify-content: center; padding: 32px clamp(24px, 3.5vw, 48px); gap: 10px; }
.site .s-project--featured .s-project__head { flex-direction: column-reverse; gap: 14px; }
.site .s-project--featured .s-project__title { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 800; }
.site .s-project--featured .s-project__desc { font-size: 1.0625rem; }

/* Placeholder for missing screenshots */
.site .s-placeholder {
    position: absolute; inset: 0;
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 20px; text-align: center;
    color: var(--s-muted); font-size: .9375rem; font-weight: 500;
    background:
        repeating-linear-gradient(135deg, rgba(12, 130, 198, .05) 0 12px, transparent 12px 24px),
        var(--s-pale);
    border: 2px dashed #c3d6e4; border-radius: 9px;
}
.site .s-placeholder .s-icon { color: #7d97ab; }

/* Secondary work note */
.site .s-worknote {
    margin-top: clamp(20px, 2.5vw, 28px);
    display: grid; grid-template-columns: auto auto 1fr; align-items: center; gap: 8px 24px;
    padding: 18px 24px;
}
.site .s-worknote__icon {
    display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px;
    background: var(--s-pale-2); color: var(--s-action);
}
.site .s-worknote__title { font-size: 1.0625rem; font-weight: 700; }
.site .s-worknote__scope { font-size: .9375rem; color: var(--s-muted); }
.site .s-worknote__desc { font-size: .9375rem; padding-left: 24px; border-left: 1px solid var(--s-border); }

@media (max-width: 960px) {
    .site .s-project--featured { flex-direction: column; }
    .site .s-project--featured .s-project__media { flex: none; margin: 10px 10px 0; }
    .site .s-project--featured .s-project__body { padding: 22px 22px 26px; }
    .site .s-project--featured .s-project__head { flex-direction: row; align-items: flex-start; }
}
@media (max-width: 767px) {
    .site .s-work__grid { grid-template-columns: 1fr; }
    .site .s-worknote { grid-template-columns: auto 1fr; }
    .site .s-worknote__desc { grid-column: 1 / -1; padding-left: 0; border-left: 0; }
}
@media (max-width: 420px) {
    .site .s-project__head { flex-direction: column; gap: 8px; }
    .site .s-project--featured .s-project__head { flex-direction: column; }
    .site .s-project__body { padding: 18px 18px 22px; }
}

/* ---------- Services ---------- */
.site .s-services { background: #fff; }
.site .s-services__list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.site .s-service { display: flex; gap: 18px; padding: 8px 32px; }
.site .s-service:first-child { padding-left: 0; }
.site .s-service:last-child { padding-right: 0; }
.site .s-service + .s-service { border-left: 1px solid var(--s-border); }
.site .s-service__icon {
    flex: none; display: grid; place-items: center;
    width: 52px; height: 52px; border-radius: 12px;
    background: var(--s-pale-2); color: var(--s-action);
}
.site .s-service__title { font-size: 1.1875rem; margin-bottom: 6px; }
.site .s-service p { font-size: 1rem; }
@media (max-width: 1023px) {
    .site .s-services__list { grid-template-columns: 1fr; gap: 0; }
    .site .s-service, .site .s-service:first-child, .site .s-service:last-child { padding: 24px 0; }
    .site .s-service + .s-service { border-left: 0; border-top: 1px solid var(--s-border); }
    .site .s-service:first-child { padding-top: 0; }
    .site .s-service:last-child { padding-bottom: 0; }
}

/* ---------- Products (navy) ---------- */
.site .s-products {
    background:
        radial-gradient(circle at 12% 0%, rgba(12, 130, 198, .22) 0, rgba(12, 130, 198, 0) 40%),
        var(--s-navy);
    color: var(--s-on-navy);
}
.site .s-products .s-h2 { color: #fff; }
.site .s-products__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(20px, 2.5vw, 28px); }
/* An odd number of products: the first one spans the row instead of leaving a gap at the end. */
.site .s-products__grid > .s-product:first-child:nth-last-child(odd) { grid-column: 1 / -1; }
.site .s-product {
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px; padding: 24px; align-items: center;
    border-color: transparent;
    color: var(--s-text);
}
.site .s-product__media { aspect-ratio: 1348 / 926; border-radius: 10px; overflow: hidden; background: #0e1b2b; }
.site .s-product__img { width: 100%; height: 100%; object-fit: cover; }
.site .s-product__body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.site .s-product__name { font-size: 1.75rem; font-weight: 800; }
.site .s-product__tagline { font-weight: 600; color: var(--s-ink); font-size: 1rem; }
.site .s-product__desc { font-size: .9375rem; color: var(--s-muted); margin-top: 2px; }
.site .s-product__pills { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 4px; }
.site .s-product .s-textlink { margin-top: 6px; }

/* CartSync conceptual diagram (decorative, not a logo) */
.site .s-product__diagram {
    position: relative; aspect-ratio: 1348 / 926; border-radius: 10px;
    background:
        radial-gradient(circle at 50% 50%, rgba(12, 130, 198, .10) 0, rgba(12, 130, 198, 0) 60%),
        var(--s-pale);
    border: 1px solid #e0ebf3;
}
.site .s-product__diagram::before {
    content: ""; position: absolute; inset: 22% 20%;
    border: 2px dashed #9cc4df; border-radius: 50%;
}
.site .s-node {
    position: absolute; display: grid; place-items: center;
    width: 46px; height: 46px; border-radius: 12px;
    background: #fff; color: var(--s-action);
    box-shadow: 0 4px 12px rgba(15, 44, 70, .12);
    transform: translate(-50%, -50%);
}
.site .s-node--a { left: 22%; top: 30%; }
.site .s-node--b { left: 78%; top: 30%; }
.site .s-node--c { left: 50%; top: 82%; }
.site .s-node--hub {
    left: 50%; top: 46%; width: 20px; height: 20px; border-radius: 50%;
    background: var(--s-brand-green); box-shadow: 0 0 0 8px rgba(141, 198, 63, .25);
}

@media (max-width: 1100px) {
    .site .s-products__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .site .s-product { grid-template-columns: 1fr; padding: 18px; }
}

/* ---------- About ---------- */
.site .s-about { background: #fff; }
.site .s-about__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 6vw, 80px); align-items: start; }
.site .s-about .s-h2 { margin-bottom: 20px; }
.site .s-about__text { font-size: 1.0625rem; max-width: 36em; }
.site .s-about__text + .s-about__text { margin-top: 14px; }
.site .s-about__principles { display: grid; gap: 14px; padding-top: 8px; }
.site .s-about__principles li {
    padding: 18px 20px 18px 22px;
    background: var(--s-pale); border-radius: 12px;
    border-left: 4px solid var(--s-brand-green);
}
.site .s-about__ptitle { font-size: 1.0625rem; margin-bottom: 4px; }
.site .s-about__principles p { font-size: .9375rem; }
@media (max-width: 860px) {
    .site .s-about__inner { grid-template-columns: 1fr; }
}

/* ---------- Final CTA ---------- */
.site .s-cta {
    background: linear-gradient(180deg, var(--s-pale) 0%, #e9f3fa 100%);
    border-top: 1px solid var(--s-border);
}
.site .s-cta__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 28px; }
.site .s-cta__title { max-width: 18em; font-size: clamp(1.625rem, 1.2rem + 1.8vw, 2.5rem); }

/* ==========================================================================
   Footer
   ========================================================================== */
.site .s-footer { background: #fff; border-top: 1px solid var(--s-border); padding-block: 32px; }
.site .s-footer__inner {
    display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 20px 40px;
}
.site .s-footer__brand img { width: 140px; height: auto; }
.site .s-footer__links { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.site .s-footer__links a {
    display: inline-block; padding: 8px 10px; border-radius: 6px;
    font-size: .9375rem; font-weight: 500; color: var(--s-ink);
}
.site .s-footer__links a:hover { color: var(--s-action); text-decoration: underline; text-underline-offset: 3px; }
.site .s-footer__copy { font-size: .875rem; color: var(--s-muted); }
@media (max-width: 860px) {
    .site .s-footer__inner { grid-template-columns: 1fr; }
    .site .s-footer__links { margin-left: -10px; }
}

/* ==========================================================================
   Contact page
   ========================================================================== */
.site .s-contact { background: linear-gradient(180deg, #f5fafd 0%, var(--s-pale) 100%); }
.site .s-contact__inner {
    display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: clamp(32px, 6vw, 80px); align-items: start;
}
.site .s-contact .s-h1 { margin-bottom: 20px; }
.site .s-contact__lead { font-size: 1.125rem; margin-bottom: 32px; max-width: 30em; }
.site .s-contact__tips-title { font-size: 1.0625rem; margin-bottom: 12px; }
.site .s-contact__tips { display: grid; gap: 10px; margin-bottom: 32px; }
.site .s-contact__tips li { display: flex; gap: 12px; align-items: flex-start; }
.site .s-contact__tips .s-hero__tick { margin-top: 3px; }
.site .s-contact__existing { font-size: .9375rem; color: var(--s-muted); }
.site .s-contact__card { padding: clamp(22px, 3.5vw, 40px); }

.site .s-notice {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; margin-bottom: 24px;
    background: #fff7e0; color: #5c4300;
    border: 1px solid #f0d58a; border-radius: 10px;
    font-size: .9375rem;
}
.site .s-notice .s-icon { margin-top: 2px; }
.site .s-notice strong { color: #4a3600; }

.site .s-form { display: grid; gap: 20px; }
.site .s-field { display: grid; gap: 6px; }
.site .s-field label { font-weight: 600; color: var(--s-ink); font-size: .9375rem; }
.site .s-req { color: #b42318; }
.site .s-optional { font-weight: 400; color: var(--s-muted); }
.site .s-field input,
.site .s-field select,
.site .s-field textarea {
    width: 100%;
    font: 400 1rem/1.5 var(--s-font);
    color: var(--s-ink);
    background: #fff;
    border: 1px solid #a9bccb;
    border-radius: var(--s-radius-sm);
    padding: 11px 14px;
    min-height: 48px;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.site .s-field textarea { resize: vertical; min-height: 140px; }
.site .s-field select {
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%230f2c46' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    background-repeat: no-repeat; background-position: right 12px center; padding-right: 40px;
}
.site .s-field input:hover, .site .s-field select:hover, .site .s-field textarea:hover { border-color: #7f97aa; }
.site .s-field input:focus-visible,
.site .s-field select:focus-visible,
.site .s-field textarea:focus-visible {
    outline: none; border-color: var(--s-action); box-shadow: 0 0 0 3px rgba(0, 109, 165, .28);
}
.site .s-field .invalid { border-color: #b42318; }
.site .s-field .invalid:focus-visible { box-shadow: 0 0 0 3px rgba(180, 35, 24, .22); }
.site .s-field__hint { font-size: .875rem; color: var(--s-muted); }
.site .s-field__error { font-size: .875rem; font-weight: 500; color: #b42318; }
.site .s-form__required { font-size: .875rem; color: var(--s-muted); }
.site .s-form .s-btn { justify-self: start; min-width: 180px; }
.site .s-form .validation-message { color: #b42318; } /* Blazor's default class, kept readable */

.site .s-hp {
    position: absolute !important; left: -10000px; top: auto;
    width: 1px; height: 1px; overflow: hidden;
}

.site .s-form__status:empty { display: none; }
.site .s-form__status {
    display: flex; gap: 12px; align-items: flex-start;
    margin-top: 20px; padding: 14px 16px; border-radius: 10px;
    font-weight: 500;
}
.site .s-form__status .s-icon { margin-top: 2px; }
.site .s-form__status.is-sent { background: var(--s-green-bg); color: var(--s-green-ink); }
.site .s-form__status.is-failed { background: var(--s-danger-bg); color: var(--s-danger-ink); }

@media (max-width: 860px) {
    .site .s-contact__inner { grid-template-columns: 1fr; }
    .site .s-form .s-btn { justify-self: stretch; }
}

/* ==========================================================================
   Motion
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    .site *, .site *::before, .site *::after {
        transition-duration: .01ms !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
    }
}
.site [id] { scroll-margin-top: 88px; }
@media (prefers-reduced-motion: reduce) {
    /* the global app.css sets smooth scrolling on html/body */
    html:has(.site), html:has(.site) body { scroll-behavior: auto; }
}

/* ---------- Start a project (two-step prospect form) ---------- */
.site .s-steps { display: grid; gap: 10px; margin: 0 0 32px; padding: 0; list-style: none; }
.site .s-steps li { display: flex; align-items: center; gap: 12px; color: var(--s-muted); font-weight: 500; }
.site .s-steps li span {
    width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; flex-shrink: 0;
    border: 2px solid var(--s-border); background: #fff; font-size: .8125rem; font-weight: 700; color: var(--s-muted);
}
.site .s-steps li.is-current { color: var(--s-ink); font-weight: 600; }
.site .s-steps li.is-current span { border-color: var(--s-action); color: var(--s-action); }
.site .s-steps li.is-done span { border-color: var(--s-green-ink); background: var(--s-green-bg); color: var(--s-green-ink); }

.site .s-start__title { font-size: 1.25rem; color: var(--s-ink); }
.site .s-start__pair { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.site .s-start__pair--wide { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.site .s-start__group { border: 0; margin: 0; padding: 0; display: grid; gap: 10px; min-width: 0; }
.site .s-start__group legend { font-weight: 600; color: var(--s-ink); font-size: .9375rem; margin-bottom: 10px; padding: 0; }
.site .s-start__check { min-height: 65px; }
.site .s-start__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.site .s-start__back { background: none; border: 0; padding: 0; font: inherit; cursor: pointer; }

/* Project-type cards: a radio group styled as cards. */
.site .s-choices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.site .s-choice {
    position: relative; display: grid; grid-template-columns: auto 1fr; column-gap: 12px; row-gap: 2px; align-items: start;
    padding: 14px 16px; border: 1.5px solid var(--s-border); border-radius: var(--s-radius-sm); background: #fff; cursor: pointer;
    transition: border-color .15s, background-color .15s;
}
.site .s-choice:hover { border-color: #7f97aa; }
.site .s-choice .s-icon { grid-row: span 2; color: var(--s-action); margin-top: 1px; }
.site .s-choice__label { font-weight: 600; color: var(--s-ink); line-height: 1.3; }
.site .s-choice__hint { font-size: .8125rem; color: var(--s-muted); line-height: 1.4; }
.site .s-choice.is-on { border-color: var(--s-action); background: var(--s-blue-bg); }
.site .s-choice input, .site .s-pill input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.site .s-choice:has(input:focus-visible), .site .s-pill:has(input:focus-visible) { box-shadow: var(--s-focus); }

.site .s-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.site .s-pill {
    position: relative; padding: 8px 14px; border: 1.5px solid var(--s-border); border-radius: 999px; background: #fff;
    font-size: .9375rem; color: var(--s-text); cursor: pointer; transition: border-color .15s, background-color .15s;
}
.site .s-pill:hover { border-color: #7f97aa; }
.site .s-pill.is-on { border-color: var(--s-action); background: var(--s-blue-bg); color: var(--s-blue-ink); font-weight: 600; }

.site .s-start__done { display: grid; gap: 16px; justify-items: start; }
.site .s-start__done-icon {
    width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
    background: var(--s-green-bg); color: var(--s-green-ink);
}

@media (max-width: 640px) {
    .site .s-start__pair, .site .s-start__pair--wide, .site .s-choices { grid-template-columns: 1fr; }
}
