/* The public site — the home page and every page a signed-out visitor sees (log in, sign up,
   password reset, confirmation). One fixed look from the Pretech Software Solutions logos; it does
   not follow the app's themes or dark mode. Theme/PublicSiteTheme.cs carries the same values for
   the MudBlazor parts of these pages.

   Colours, as in the logo files:
     navy    #101B2D  the hexagon
     signal  #1F8FFF  the closing bracket
     slate   #5B6472  "Software Solutions"
     mist    #8A93A3  the same line on the reversed logo
   plus deep signal #0B6BD3, the one addition: white on the logo's own blue is 3.3:1, too faint for
   a button label, and this is 5.2:1. On navy the bright blue carries navy text instead (5.2:1).

   Type: Archivo, one family at two widths — headings set wide (font-stretch), text at normal width. */

:root {
    --pt-navy: #101B2D;
    --pt-signal: #1F8FFF;
    --pt-deep: #0B6BD3;
    --pt-deep-hover: #0958B0;
    --pt-slate: #5B6472;
    --pt-mist: #8A93A3;
    --pt-cloud: #F3F5F8;
    --pt-line: #E1E5EB;
    --pt-input: #C9D0DA;
    --pt-error: #B42318;
    --pt-font: "Archivo", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    --pt-wide: 112%;
}

/* ---------- Site frame ---------- */

.pt-site {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: #fff;
    color: var(--pt-navy);
    font-family: var(--pt-font);
    font-size: 1rem;
    line-height: 1.6;
}

.pt-site *:focus-visible {
    outline: 3px solid var(--pt-signal);
    outline-offset: 2px;
}

.pt-wrap {
    width: 100%;
    max-width: 1160px;
    margin: 0 auto;
    padding: 0 24px;
}

.pt-main {
    flex: 1;
}

/* Ordinary public pages (Terms, Privacy) get a padded column on white. A sign-in page's card brings
   its own cloud ground and padding, so its column steps aside and the cloud runs full height. */
.pt-page {
    max-width: 1160px;
    margin: 0 auto;
    padding: 56px 24px 80px;
    box-sizing: border-box;
}

.pt-page:has(.auth-page) {
    max-width: none;
    padding: 0;
}

.pt-main-page:has(.auth-page) {
    background: var(--pt-cloud);
}

.pt-skip {
    position: absolute;
    left: 16px;
    top: -48px;
    z-index: 20;
    padding: 10px 16px;
    border-radius: 8px;
    background: var(--pt-navy);
    color: #fff;
    font-weight: 600;
    text-decoration: none;
}

.pt-skip:focus {
    top: 12px;
}

html {
    scroll-behavior: smooth;
}

#top, #services, #process, #contact {
    scroll-margin-top: 72px;
}

/* ---------- Header ---------- */

.pt-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: #fff;
    border-bottom: 1px solid var(--pt-line);
}

.pt-header-inner {
    display: flex;
    align-items: center;
    gap: 32px;
    height: 72px;
}

.pt-brand {
    display: flex;
    flex-shrink: 0;
}

/* The lockup's artboard has generous padding round the mark, so it is set larger than it looks. */
.pt-brand img {
    display: block;
    width: auto;
    height: 56px;
    margin-left: -10px;
}

.pt-nav {
    display: flex;
    gap: 28px;
    margin-left: auto;
}

.pt-nav a,
.pt-header-login {
    color: var(--pt-slate);
    font-size: .9375rem;
    font-weight: 500;
    text-decoration: none;
}

.pt-nav a:hover,
.pt-header-login:hover {
    color: var(--pt-navy);
}

.pt-header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-shrink: 0;
}

.pt-header-login {
    color: var(--pt-navy);
}

/* ---------- Buttons ---------- */

.pt-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 22px;
    border: 1.5px solid transparent;
    border-radius: 8px;
    font-family: var(--pt-font);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.2;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background-color .15s ease, border-color .15s ease;
}

.pt-btn-small {
    padding: 9px 16px;
    font-size: .9375rem;
}

.pt-btn-primary {
    background: var(--pt-deep);
    color: #fff;
}

.pt-btn-primary:hover {
    background: var(--pt-deep-hover);
}

/* The logo's own blue, on navy only, with navy text — the pairing that reads. */
.pt-btn-signal {
    background: var(--pt-signal);
    color: var(--pt-navy);
}

.pt-btn-signal:hover {
    background: #4AA5FF;
}

.pt-btn-ghost {
    border-color: rgba(255, 255, 255, .42);
    color: #fff;
}

.pt-btn-ghost:hover {
    border-color: #fff;
    background: rgba(255, 255, 255, .06);
}

/* ---------- Hero ---------- */

.pt-hero {
    position: relative;
    overflow: hidden;
    background: var(--pt-navy);
    color: #fff;
}

.pt-hero-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
    align-items: center;
    gap: 40px;
    min-height: 560px;
    padding-top: 88px;
    padding-bottom: 96px;
}

.pt-hero-title {
    max-width: 13em;
    margin: 0;
    font-size: clamp(2.5rem, 5.2vw, 4.1rem);
    font-stretch: var(--pt-wide);
    font-weight: 600;
    line-height: 1.05;
    letter-spacing: -0.02em;
}

.pt-hero-lead {
    max-width: 34em;
    margin: 24px 0 0;
    color: rgba(255, 255, 255, .78);
    font-size: 1.1875rem;
    line-height: 1.6;
}

.pt-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-top: 36px;
}

/* The mark, enlarged and cropped by the hero's right edge. The same classes draw it small on the
   sign-in card's navy panel. */
/* Anchored at its column's left edge and wider than the column, so it only ever spills right — off
   the hero's edge, which crops it — and never back behind the headline. */
.pt-hero-mark {
    justify-self: start;
    width: min(700px, 54vw);
    height: auto;
    margin: -48px 0;
    overflow: visible;
}

.pt-hero-hex {
    fill: rgba(255, 255, 255, .035);
    stroke: rgba(255, 255, 255, .14);
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
}

.pt-hero-open,
.pt-hero-close {
    fill: none;
    stroke-width: 20;
    stroke-linecap: square;
    transform-box: fill-box;
}

.pt-hero-open {
    stroke: #fff;
}

.pt-hero-close {
    stroke: var(--pt-signal);
}

/* The page's one moment of motion: the brackets open apart as the page arrives. */
.pt-hero .pt-hero-open {
    animation: pt-open .9s cubic-bezier(.2, .7, .2, 1) .1s both;
}

.pt-hero .pt-hero-close {
    animation: pt-close .9s cubic-bezier(.2, .7, .2, 1) .1s both;
}

@keyframes pt-open {
    from { transform: translateX(16px); opacity: 0; }
}

@keyframes pt-close {
    from { transform: translateX(-16px); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .pt-hero .pt-hero-open,
    .pt-hero .pt-hero-close {
        animation: none;
    }

    html {
        scroll-behavior: auto;
    }
}

/* ---------- Sections ---------- */

.pt-section {
    padding: 96px 0;
}

.pt-section-cloud {
    background: var(--pt-cloud);
}

.pt-section-head {
    max-width: 640px;
    margin-bottom: 48px;
}

.pt-h2 {
    margin: 0;
    font-size: clamp(1.9rem, 3.2vw, 2.6rem);
    font-stretch: var(--pt-wide);
    font-weight: 600;
    line-height: 1.12;
    letter-spacing: -0.015em;
}

.pt-h3 {
    margin: 0 0 8px;
    font-size: 1.25rem;
    font-stretch: 106%;
    font-weight: 600;
    line-height: 1.3;
}

.pt-section-lead {
    margin: 14px 0 0;
    color: var(--pt-slate);
    font-size: 1.125rem;
    line-height: 1.6;
}

/* What we build: a list with hairlines, not a grid of cards. Each title carries the logo's closing
   bracket as its marker. */
.pt-services {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 64px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.pt-service {
    padding: 28px 0 32px;
    border-top: 1px solid var(--pt-line);
}

.pt-service .pt-h3::before {
    content: "";
    display: inline-block;
    width: 8px;
    height: 8px;
    margin: 0 14px 2px 2px;
    border-top: 2.5px solid var(--pt-deep);
    border-right: 2.5px solid var(--pt-deep);
    transform: rotate(45deg);
}

.pt-service p,
.pt-step p {
    max-width: 36em;
    margin: 0;
    color: var(--pt-slate);
    font-size: 1.0625rem;
}

/* How we work: a real sequence, so it is numbered. */
.pt-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 40px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: pt-step;
}

.pt-step {
    padding-top: 24px;
    border-top: 2px solid var(--pt-navy);
    counter-increment: pt-step;
}

.pt-step::before {
    content: counter(pt-step);
    display: block;
    margin-bottom: 18px;
    color: var(--pt-deep);
    font-size: 2.5rem;
    font-stretch: 125%;
    font-weight: 600;
    line-height: 1;
}

/* ---------- Contact ---------- */

.pt-contact {
    display: grid;
    grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
    gap: 64px;
    align-items: start;
}

.pt-contact-direct {
    margin: 28px 0 0;
    color: var(--pt-slate);
}

.pt-contact-direct a {
    color: var(--pt-deep);
    font-weight: 600;
}

.pt-contact-panel {
    padding: 32px;
    border-radius: 12px;
    background: var(--pt-cloud);
}

.pt-form {
    display: grid;
    gap: 18px;
}

.pt-field label {
    display: block;
    margin-bottom: 6px;
    font-size: .9375rem;
    font-weight: 600;
}

.pt-optional {
    color: var(--pt-slate);
    font-weight: 400;
}

.pt-field input,
.pt-field textarea {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 12px 14px;
    border: 1px solid var(--pt-input);
    border-radius: 8px;
    background: #fff;
    color: var(--pt-navy);
    font: inherit;
    /* 16px stops iOS zooming into the field. */
    font-size: 1rem;
    line-height: 1.5;
}

.pt-field textarea {
    min-height: 140px;
    resize: vertical;
}

.pt-field input:focus,
.pt-field textarea:focus {
    border-color: var(--pt-deep);
    outline: none;
    box-shadow: 0 0 0 3px rgba(31, 143, 255, .28);
}

.pt-field .invalid {
    border-color: var(--pt-error);
}

.pt-form .validation-message {
    margin-top: 6px;
    color: var(--pt-error);
    font-size: .875rem;
}

.pt-form .pt-btn {
    justify-self: start;
    margin-top: 6px;
}

/* For bots only — off-screen rather than display:none, which some bots know to skip. */
.pt-trap {
    position: absolute;
    left: -10000px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

.pt-sent .pt-h3 {
    font-size: 1.5rem;
}

.pt-sent p {
    margin: 0;
    color: var(--pt-slate);
}

.pt-sent strong {
    color: var(--pt-navy);
}

/* ---------- Footer ---------- */

.pt-footer {
    padding: 56px 0 28px;
    background: var(--pt-navy);
    color: var(--pt-mist);
}

.pt-footer-inner {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) repeat(2, minmax(0, .8fr));
    gap: 40px;
}

.pt-footer-brand img {
    display: block;
    width: auto;
    height: 68px;
    /* The lockup's artboard has padding round the mark; this lines the mark up with the text. */
    margin-left: -10px;
}

.pt-footer-brand p {
    margin: 12px 0 0;
    font-size: .9375rem;
}

.pt-footer-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pt-footer-links a {
    color: #D5DAE2;
    font-size: .9375rem;
    text-decoration: none;
}

.pt-footer-links a:hover {
    color: #fff;
}

.pt-footer-base {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 44px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .09);
    font-size: .875rem;
}

.pt-footer-legal {
    display: flex;
    gap: 20px;
}

.pt-footer-legal a {
    color: var(--pt-mist);
    text-decoration: none;
}

.pt-footer-legal a:hover {
    color: #fff;
}

/* ---------- Sign-in pages (log in, sign up, password reset, …) ---------- */

.auth-page {
    display: flex;
    justify-content: center;
    padding: 56px 16px 80px;
    background: var(--pt-cloud);
    font-family: var(--pt-font);
}

.auth-card {
    display: grid;
    grid-template-columns: 360px minmax(0, 1fr);
    width: 100%;
    max-width: 920px;
    overflow: hidden;
    border: 1px solid var(--pt-line);
    border-radius: 14px;
    background: #fff;
}

.auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 48px;
    padding: 44px 40px 48px;
    background: var(--pt-navy);
    color: #fff;
}

.auth-aside-mark {
    width: 132px;
    height: auto;
    margin-left: -10px;
}

.auth-aside-line {
    margin: 0;
    font-size: 1.5rem;
    font-stretch: var(--pt-wide);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.auth-main {
    width: 100%;
    max-width: 520px;
    box-sizing: border-box;
    padding: 48px 56px 44px;
}

/* The badge stands in for the navy panel where there is no room for one. */
.auth-logo {
    display: none;
    margin-bottom: 20px;
}

.auth-logo img {
    width: 48px;
    height: 48px;
}

.auth-title {
    margin: 0 0 6px;
    color: var(--pt-navy);
    font-size: 1.75rem;
    font-stretch: var(--pt-wide);
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.01em;
}

.auth-subtitle {
    margin: 0;
    color: var(--pt-slate);
    font-size: 1rem;
    line-height: 1.5;
}

.auth-body {
    margin-top: 28px;
}

.auth-links {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-top: 24px;
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0 16px;
    color: var(--pt-slate);
    font-size: .875rem;
}

.auth-divider::before,
.auth-divider::after {
    content: "";
    flex: 1;
    border-top: 1px solid var(--pt-line);
}

.auth-external-form {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.auth-status-icon {
    display: flex;
    margin-bottom: 8px;
}

/* ---------- Narrow screens ---------- */

@media (max-width: 960px) {
    .pt-nav {
        display: none;
    }

    .pt-header-actions {
        margin-left: auto;
    }

    .pt-hero-inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        min-height: 0;
        padding-top: 48px;
        padding-bottom: 64px;
    }

    /* Above the headline, small and whole, rather than cropped behind the text. */
    .pt-hero-mark {
        order: -1;
        justify-self: start;
        width: 84px;
        margin: 0 0 0 -6px;
    }

    .pt-hero-hex {
        fill: rgba(255, 255, 255, .06);
        stroke: rgba(255, 255, 255, .2);
    }

    .pt-services,
    .pt-steps,
    .pt-contact,
    .pt-footer-inner {
        grid-template-columns: minmax(0, 1fr);
    }

    .pt-steps,
    .pt-contact {
        gap: 40px;
    }

    .pt-section {
        padding: 72px 0;
    }

    .auth-card {
        grid-template-columns: minmax(0, 1fr);
        max-width: 480px;
    }

    .auth-aside {
        display: none;
    }

    .auth-logo {
        display: flex;
    }

    .auth-main {
        max-width: none;
    }
}

@media (max-width: 600px) {
    .pt-wrap {
        padding: 0 18px;
    }

    .pt-page {
        padding: 36px 18px 56px;
    }

    .pt-header-inner {
        gap: 16px;
        height: 64px;
    }

    .pt-brand img {
        height: 46px;
        margin-left: -8px;
    }

    .pt-header-actions {
        gap: 14px;
    }

    #top, #services, #process, #contact {
        scroll-margin-top: 64px;
    }

    .pt-hero-lead {
        font-size: 1.0625rem;
    }

    .pt-hero-actions .pt-btn {
        flex: 1 1 100%;
    }

    .pt-section {
        padding: 56px 0;
    }

    .pt-contact-panel {
        padding: 22px 18px;
    }

    .pt-form .pt-btn {
        justify-self: stretch;
    }

    .auth-page {
        padding: 24px 12px 48px;
    }

    .auth-main {
        padding: 32px 22px 28px;
    }
}
