/* Dev Point Solutions — landing.
   Carbon v11, g100 theme. A solid content panel carries every word (so text
   never sits on the photo), the render fills the remaining column. Spacing is
   on the Carbon scale, type uses Carbon tokens, radii are 0. */

/* ---------- IBM Plex Sans, self-hosted (latin + latin-ext for ș ț ă î â) ---------- */
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-300-normal.a52805a61f88.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 300; font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-ext-300-normal.691d5bfb0c16.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-400-normal.0ceb759015a6.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 400; font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-ext-400-normal.0e2c71ca88ef.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-600-normal.e78568807d10.woff2") format('woff2');
    unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'IBM Plex Sans'; font-style: normal; font-weight: 600; font-display: swap;
    src: url("fonts/ibm-plex-sans-latin-ext-600-normal.4267dfb25bc2.woff2") format('woff2');
    unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ---------- tokens (Carbon g100) ---------- */
:root {
    color-scheme: dark;

    --cds-background: #161616;
    --cds-layer-01: #262626;
    --cds-layer-hover-01: #333333;
    --cds-field-02: #393939;
    --cds-border-subtle-01: #393939;
    --cds-border-strong-01: #6f6f6f;
    --cds-text-primary: #f4f4f4;
    --cds-text-secondary: #c6c6c6;
    --cds-text-helper: #a8a8a8;
    --cds-text-placeholder: rgba(244, 244, 244, .4);
    --cds-text-error: #ff8389;
    --cds-text-on-color: #ffffff;
    --cds-link-primary: #78a9ff;
    --cds-link-primary-hover: #a6c8ff;
    --cds-focus: #ffffff;
    --cds-focus-inset: #161616;
    --cds-support-error: #fa4d56;
    --cds-support-success: #42be65;
    --cds-overlay: rgba(0, 0, 0, .65);
    --cds-button-primary: #0f62fe;
    --cds-button-primary-hover: #0050e6;
    --cds-button-primary-active: #002d9c;
    --cds-button-secondary: #6f6f6f;
    --cds-button-secondary-hover: #5e5e5e;
    --cds-button-secondary-active: #393939;
    --cds-button-tertiary: #ffffff;
    --cds-button-tertiary-hover: #f4f4f4;
    --cds-background-hover: rgba(141, 141, 141, .16);

    --brand-mark: #bdff8b;            /* the logo's own lime; used for nothing else */

    --ease-entrance: cubic-bezier(0, 0, 0.3, 1);       /* entrance, expressive */
    --ease-standard: cubic-bezier(0.2, 0, 0.38, 0.9);  /* standard, productive */
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
    margin: 0;
    background: var(--cds-background);
    color: var(--cds-text-primary);
    font-family: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
    font-size: 1rem;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ---------- page grid ----------
   phone/tablet: head · photo band · hero · facts, in one scrolling column
   lg (66rem+):  a 7/16 panel on the left, the render filling the other 9   */
.page {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "head" "photo" "hero" "facts";
    grid-template-rows: auto auto 1fr auto;   /* spare height goes to the main row only */
    min-height: 100svh;
}

.head  { grid-area: head; }
.photo { grid-area: photo; }
.hero  { grid-area: hero; }
.facts { grid-area: facts; }

.head, .hero, .facts {
    padding-left: calc(env(safe-area-inset-left, 0px) + 1rem);
    padding-right: calc(env(safe-area-inset-right, 0px) + 1rem);
}

@media (min-width: 42rem) {
    .head, .hero, .facts { padding-left: 2rem; padding-right: 2rem; }
}

@media (min-width: 66rem) {
    .page {
        grid-template-columns: minmax(0, 7fr) minmax(0, 9fr);
        grid-template-rows: auto 1fr auto;
        grid-template-areas: "head photo" "hero photo" "facts photo";
    }
    .head, .hero, .facts { padding-left: 3rem; padding-right: 3rem; }
}

/* ---------- header ---------- */
.head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    min-height: 4rem;
    padding-top: calc(env(safe-area-inset-top, 0px) + .5rem);
    padding-bottom: .5rem;
}
@media (min-width: 66rem) {
    .head { padding-top: 2rem; }
}

.brand {
    display: block;
    color: var(--brand-mark);
    line-height: 0;
}
.brand svg {
    display: block;
    height: 2rem;
    width: auto;
    fill: currentColor;
}
@media (min-width: 66rem) {
    .brand svg { height: 2.5rem; }
}

/* ---------- photo ---------- */
.photo {
    min-height: 12rem;
    height: 36svh;
    max-height: 24rem;
    background-color: #a9b9bf; /* the render's own mist, while it loads */
    background-image: url("bg-2560.71797c8d27f7.webp");
    background-image: image-set(
        url("bg-2560.7aa84a70d961.avif") type('image/avif'),
        url("bg-2560.71797c8d27f7.webp") type('image/webp')
    );
    background-size: cover;
    background-position: 40% 45%;
}
@media (min-width: 66rem) {
    /* stretches over all three rows, so it always runs the full page height */
    .photo {
        height: auto;
        max-height: none;
        background-position: 30% 50%;
    }
}

/* ---------- hero ---------- */
.hero {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 3rem;
    padding-bottom: 2rem;
}
@media (min-width: 66rem) {
    .hero { padding-top: 2rem; }
}

/* display-01 (light), fluid across breakpoints */
.hero h1 {
    margin: 0 0 1.5rem;
    font-size: 2.625rem;
    font-weight: 300;
    line-height: 1.199;
    letter-spacing: 0;
}
@media (min-width: 66rem) { .hero h1 { font-size: 3.375rem; line-height: 1.18; } }
@media (min-width: 82rem) { .hero h1 { font-size: 3.75rem;  line-height: 1.17; } }
@media (min-width: 99rem) { .hero h1 { font-size: 4.75rem;  line-height: 1.13; } }

/* body-long-02 */
.lead {
    margin: 0 0 2rem;
    max-width: 32rem;
    color: var(--cds-text-secondary);
    font-size: 1rem;
    line-height: 1.5;
}

.actions {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* ---------- facts ---------- */
.facts {
    padding-top: 1.5rem;
    padding-bottom: calc(env(safe-area-inset-bottom, 0px) + 1.5rem);
}
@media (min-width: 66rem) {
    .facts { padding-bottom: 2rem; }
}

.facts dl {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr));
    gap: 1.5rem 2rem;
    margin: 0;
    padding-top: 1.5rem;
    border-top: 1px solid var(--cds-border-subtle-01);
}

/* label-01 */
.facts dt {
    margin-bottom: .25rem;
    color: var(--cds-text-helper);
    font-size: .75rem;
    line-height: 1.33333;
    letter-spacing: .32px;
}
/* body-compact-01 */
.facts dd {
    margin: 0;
    font-size: .875rem;
    line-height: 1.28572;
    letter-spacing: .16px;
    overflow-wrap: anywhere;
}

/* legal-01 */
.legal {
    margin: 1.5rem 0 0;
    color: var(--cds-text-helper);
    font-size: .75rem;
    line-height: 1.33333;
    letter-spacing: .32px;
}

/* ---------- links ---------- */
a {
    color: var(--cds-link-primary);
    text-decoration: none;
    transition: color 70ms var(--ease-standard);
}
a:hover { color: var(--cds-link-primary-hover); text-decoration: underline; }

/* ---------- buttons (Carbon: lg 48px, left-aligned label, icon at right) ---------- */
.btn {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    min-height: 3rem;
    margin: 0;
    padding: calc(.875rem - 3px) 63px calc(.875rem - 3px) 15px;
    border: 1px solid transparent;
    border-radius: 0;
    font: inherit;
    font-size: .875rem;
    font-weight: 400;
    line-height: 1.28572;
    letter-spacing: .16px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: background-color 70ms var(--ease-standard),
                border-color 70ms var(--ease-standard),
                color 70ms var(--ease-standard),
                box-shadow 70ms var(--ease-standard);
}
.btn:hover { text-decoration: none; }
.btn:disabled { cursor: not-allowed; opacity: .5; }

.btn__icon {
    position: absolute;
    right: 1rem;
    width: 1rem;
    height: 1rem;
    fill: currentColor;
}

.btn--primary { background: var(--cds-button-primary); color: var(--cds-text-on-color); }
.btn--primary:hover { background: var(--cds-button-primary-hover); color: var(--cds-text-on-color); }
.btn--primary:active { background: var(--cds-button-primary-active); }

.btn--secondary { background: var(--cds-button-secondary); color: var(--cds-text-on-color); }
.btn--secondary:hover { background: var(--cds-button-secondary-hover); }
.btn--secondary:active { background: var(--cds-button-secondary-active); }

.btn--tertiary {
    background: transparent;
    border-color: var(--cds-button-tertiary);
    color: var(--cds-button-tertiary);
}
.btn--tertiary:hover {
    background: var(--cds-button-tertiary-hover);
    color: var(--cds-background);
}

.btn--ghost {
    min-height: 2.5rem;
    padding: 0 15px;
    background: transparent;
    color: var(--cds-text-primary);
}
.btn--ghost:hover { background: var(--cds-layer-hover-01); color: var(--cds-text-primary); }

/* Carbon focus: 2px focus ring with a 1px inset so it reads on any fill */
.btn:focus-visible {
    outline: none;
    border-color: var(--cds-focus);
    box-shadow: inset 0 0 0 1px var(--cds-focus), inset 0 0 0 2px var(--cds-focus-inset);
}
.btn--tertiary:focus-visible { background: var(--cds-button-tertiary); color: var(--cds-background); }
a:not(.btn):focus-visible, .brand:focus-visible {
    outline: 2px solid var(--cds-focus);
    outline-offset: 2px;
}

/* ---------- modal ---------- */
.modal {
    width: min(calc(100vw - 2rem), 32rem);
    max-width: none;
    max-height: calc(100svh - 2rem);
    margin: auto;
    padding: 0;                 /* all padding lives on .modal__box: see the backdrop-click note in index.html */
    border: 0;
    border-radius: 0;
    background: var(--cds-layer-01);
    color: var(--cds-text-primary);
    box-shadow: 0 2px 6px rgba(0, 0, 0, .2);
    overflow: auto;
}
.modal[open] { animation: modal-in 240ms var(--ease-entrance); }
.modal::backdrop { background: var(--cds-overlay); }

@keyframes modal-in {
    from { opacity: 0; transform: translateY(1.5rem); }
    to   { opacity: 1; transform: none; }
}

.modal__box { display: flex; flex-direction: column; margin: 0; }

.modal__header {
    position: relative;
    padding: 1rem 3rem .5rem 1rem;
}
/* label-01 */
.modal__label {
    margin: 0 0 .25rem;
    color: var(--cds-text-secondary);
    font-size: .75rem;
    line-height: 1.33333;
    letter-spacing: .32px;
}
/* productive-heading-03 */
.modal__heading {
    margin: 0;
    font-size: 1.25rem;
    font-weight: 400;
    line-height: 1.4;
}

.modal__close {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 3rem;
    height: 3rem;
    padding: 0;
    border: 2px solid transparent;
    border-radius: 0;
    background: transparent;
    cursor: pointer;
    transition: background-color 70ms var(--ease-standard);
}
.modal__close svg { width: 1.25rem; height: 1.25rem; fill: var(--cds-text-primary); }
.modal__close:hover { background: var(--cds-layer-hover-01); }
.modal__close:focus-visible { outline: none; border-color: var(--cds-focus); }

.modal__content {
    padding: .5rem 1rem 0;
    margin-bottom: 3rem;
}

.modal__footer {
    display: flex;
    margin-top: auto;
}
.modal__footer .btn {
    flex: 1 1 50%;
    min-height: 4rem;
    align-items: flex-start;
    padding-top: 1rem;
}

/* ---------- form ---------- */
.form-item { margin-bottom: 1.5rem; }

/* label-01 */
.label {
    display: block;
    margin-bottom: .5rem;
    color: var(--cds-text-secondary);
    font-size: .75rem;
    line-height: 1.33333;
    letter-spacing: .32px;
}
.label__opt { color: var(--cds-text-helper); }

.input {
    display: block;
    width: 100%;
    min-height: 2.5rem;
    margin: 0;
    padding: 0 1rem;
    border: 0;
    border-bottom: 1px solid var(--cds-border-strong-01);
    border-radius: 0;
    background: var(--cds-field-02);
    color: var(--cds-text-primary);
    font: inherit;
    font-size: .875rem;
    line-height: 1.28572;
    letter-spacing: .16px;
    outline: 2px solid transparent;
    outline-offset: -2px;
    transition: outline-color 70ms var(--ease-standard);
}
textarea.input {
    padding: .75rem 1rem;
    min-height: 6.5rem;
    resize: vertical;
    line-height: 1.42857;
}
/* Carbon password input: 40px toggle inside the field, at the right */
.input-wrap { position: relative; }
.input--password { padding-right: 2.5rem; }
.input__toggle {
    position: absolute;
    top: 0;
    right: 0;
    display: grid;
    place-items: center;
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
}
.input__toggle[hidden] { display: none; }
.input__toggle svg { width: 1rem; height: 1rem; fill: var(--cds-text-secondary); }
.input__toggle:hover svg { fill: var(--cds-text-primary); }
.input__toggle:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: -2px; }
.input__toggle .icon-hide, .input__toggle.is-shown .icon-show { display: none; }
.input__toggle.is-shown .icon-hide { display: block; }

.input::placeholder { color: var(--cds-text-placeholder); }
.input:focus { outline-color: var(--cds-focus); }
.input[aria-invalid="true"] { outline-color: var(--cds-support-error); }

/* helper-text-01, error colour */
.field-error, .form-note {
    margin: 0;
    color: var(--cds-text-error);
    font-size: .75rem;
    line-height: 1.33333;
    letter-spacing: .32px;
}
.field-error:not(:empty) { margin-top: .25rem; }
.form-note:empty { display: none; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

/* contact form: sent state swaps the fields for a notice */
.when-done { display: none; }
.is-done .when-open { display: none; }
.is-done .when-done { display: revert; }
.is-done .notice.when-done { display: flex; }

.notice {
    gap: 1rem;
    padding: .9375rem 1rem;
    border-left: 3px solid var(--cds-support-success);
    background: var(--cds-field-02);
    font-size: .875rem;
    line-height: 1.42857;
    letter-spacing: .16px;
}
.notice--error { display: flex; margin-bottom: 1.5rem; border-left-color: var(--cds-support-error); }
.notice.notice--error svg { fill: var(--cds-support-error); }
.notice svg { flex: none; width: 1.25rem; height: 1.25rem; fill: var(--cds-support-success); }
.notice b { font-weight: 600; }

/* ---------- login page ---------- */
.login form, .login .notice { max-width: 22rem; }

/* productive-heading-05 */
.login .login__title {
    margin: 0 0 2rem;
    font-size: 2rem;
    font-weight: 400;
    line-height: 1.25;
}

/* Carbon checkbox: 16px box, body-compact-01 label */
.checkbox {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-bottom: 1.5rem;
    font-size: .875rem;
    line-height: 1.28572;
    letter-spacing: .16px;
    cursor: pointer;
}
.checkbox input {
    appearance: none;
    -webkit-appearance: none;
    flex: none;
    width: 1rem;
    height: 1rem;
    margin: 0;
    border: 1px solid var(--cds-text-primary);
    border-radius: 2px;
    background: transparent;
    cursor: pointer;
}
.checkbox input:checked {
    border-color: var(--cds-text-primary);
    background: var(--cds-text-primary) no-repeat center / .75rem
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M6.5 11.3 3 7.8l.9-.9 2.6 2.6 5.6-5.6.9.9z' fill='%23161616'/%3E%3C/svg%3E");
}
.checkbox input:focus-visible { outline: 2px solid var(--cds-focus); outline-offset: 1px; }

.login__submit { width: 100%; }

/* body-compact-01 */
.login__help {
    margin: 1.5rem 0 0;
    font-size: .875rem;
    line-height: 1.28572;
    letter-spacing: .16px;
}

/* ---------- entrance: the panel's blocks rise once, staggered ---------- */
@keyframes rise {
    from { opacity: 0; transform: translateY(1rem); }
    to   { opacity: 1; transform: none; }
}
.head, .hero > *, .facts {
    animation: rise 400ms var(--ease-entrance) backwards;
}
.hero h1   { animation-delay: 70ms; }
.lead      { animation-delay: 110ms; }
.actions   { animation-delay: 150ms; }
.facts     { animation-delay: 240ms; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-delay: 0ms !important;
        transition-duration: 0.01ms !important;
    }
}
