:root {
    --ps-bg: #f2f7fc;
    --ps-surface: #ffffff;
    --ps-surface-soft: #f7fbff;
    --ps-line: #d8e4ef;
    --ps-text: #10253f;
    --ps-muted: #5a708c;
    --ps-primary: rgb(15 23 42 / var(--tw-bg-opacity, 1));
    --ps-primary-strong: rgb(15 23 42 / var(--tw-bg-opacity, 1));
    --ps-shadow: 0 12px 36px rgba(16, 37, 63, 0.08);
}

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

html,
body {
    margin: 0;
    padding: 0;
}

body.public-site {
    min-height: 100vh;
    color: var(--ps-text);
    background:
        radial-gradient(circle at 8% -8%, rgba(70, 151, 255, 0.16), transparent 26%),
        radial-gradient(circle at 98% 0%, rgba(31, 182, 120, 0.14), transparent 24%),
        linear-gradient(180deg, #f8fbff 0%, #f2f7fc 46%, #f7fafd 100%);
    font-family: "Manrope", "Segoe UI", Arial, sans-serif;
}

.ps-topbar,
.ps-main,
.ps-footer,
.ps-flash {
    width: min(1280px, calc(100% - 40px));
    margin-inline: auto;
}

.ps-topbar {
    margin-top: 18px;
    margin-bottom: 18px;
    border: 1px solid var(--ps-line);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    box-shadow: var(--ps-shadow);
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 16px;
    padding: 12px 16px;
}

.ps-brand {
    display: inline-flex;
    align-items: center;
}

.ps-brand img {
    height: 48px;
    width: auto;
}

.ps-nav {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-wrap: wrap;
}

.ps-nav a {
    text-decoration: none;
    color: #2f4f72;
    border: 1px solid transparent;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    padding: 8px 12px;
    transition: 0.2s ease;
}

.ps-nav a:hover {
    border-color: #c9d8e9;
    background: #f6faff;
}

.ps-nav a.is-active {
    color: #ffffff;
    border-color: var(--ps-primary);
    background: var(--ps-primary);
}

.ps-topbar-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.ps-locale {
    height: 40px;
    min-width: 70px;
    border-radius: 6px;
    border: 1px solid #cad9e9;
    background: #ffffff;
    color: #27476a;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    padding: 0 10px;
}

.ps-btn {
    height: 40px;
    padding: 0 14px;
    border-radius: 6px;
    border: 1px solid transparent;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    font-size: 13px;
    font-weight: 800;
    line-height: 1;
    white-space: nowrap;
    cursor: pointer;
    transition: 0.2s ease;
}

.ps-btn-primary {
    border-color: var(--ps-primary);
    background: var(--ps-primary);
    color: #ffffff;
}

.ps-btn-primary:hover {
    background: var(--ps-primary-strong);
    border-color: var(--ps-primary-strong);
}

.ps-btn-soft {
    border-color: #c8d8eb;
    background: #ffffff;
    color: #1f4065;
}

.ps-btn-soft:hover {
    background: #f5f9ff;
}

.ps-flash {
    border-radius: 14px;
    margin-bottom: 14px;
    padding: 12px 14px;
    font-size: 14px;
}

.ps-flash-success {
    border: 1px solid #a7f3d0;
    background: #ecfdf5;
    color: #065f46;
}

.ps-flash-error {
    border: 1px solid #fecaca;
    background: #fff1f2;
    color: #9f1239;
}

.ps-main {
    display: grid;
    gap: 16px;
    margin-bottom: 24px;
}

.ps-hero {
    border: 1px solid #d4e2f1;
    border-radius: 6px;
    background:
        linear-gradient(112deg, rgba(0, 0, 0, 0.36), rgba(248, 252, 255, 0.26)),
        url('/images/home.jpg');
    background-size: cover;
    background-position: center;
    box-shadow: var(--ps-shadow);
    padding: 46px;
    display: grid;
    gap: 28px;
    min-height: 350px;
}

.ps-hero-small {
    padding: 34px 42px;
}

.ps-overline {
    margin: 0;
    font-size: 12px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #5f7894;
    font-weight: 800;
}

.ps-hero h1 {
    margin: 10px 0 0;
    font-family: "Manrope", "Manrope", sans-serif;
    font-size: clamp(24px, 5vw, 38px);
    line-height: 1.08;
    color: #fff;
    letter-spacing: -0.02em;
    max-width: 900px;
    margin-bottom: 1.2em;
}

.ps-hero p {
    margin: 14px 0 0;
    color: #fff;
    font-size: clamp(16px, 2.2vw, 22px);
    line-height: 1.45;
    max-width: 900px;
    margin-bottom: 1.8em;
    margin-top: 1.8em;
}

.ps-hero-actions {
    margin-top: 24px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.ps-hero-kpis {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ps-hero-kpis article {
    border: 1px solid #d1e1f1;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.88);
    padding: 13px 14px;
}

.ps-hero-kpis p {
    margin: 0;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #5c7592;
    font-weight: 700;
}

.ps-hero-kpis strong {
    margin-top: 6px;
    display: block;
    font-family: "Manrope", "Manrope", sans-serif;
    font-size: clamp(26px, 2.7vw, 34px);
    line-height: 1.1;
}

.ps-image-grid {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ps-image-card {
    border: 1px solid #d5e2ef;
    border-radius: 6px;
    overflow: hidden;
    background: #ffffff;
    box-shadow: var(--ps-shadow);
}

.ps-image-card img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.ps-image-card div {
    padding: 15px;
}

.ps-image-card h3 {
    margin: 0;
    font-size: 22px;
    font-family: "Manrope", "Manrope", sans-serif;
}

.ps-image-card p {
    margin: 8px 0 0;
    color: var(--ps-muted);
    line-height: 1.5;
}

.ps-section {
    border: 1px solid #d6e2ef;
    border-radius: 6px;
    background: var(--ps-surface);
    box-shadow: var(--ps-shadow);
    padding: 28px;
}

.ps-section-dark {
    background: linear-gradient(160deg, #0f2845 0%, #15375e 100%);
    border-color: #224f79;
    color: #eff6ff;
}

.ps-section-dark .ps-overline {
    color: #b7d2ee;
}

.ps-section-dark .ps-section-head h2,
.ps-section-dark .ps-section-head p {
    color: #eff6ff;
}

.ps-section-head h2 {
    margin: 10px 0 0;
    font-family: "Manrope", "Manrope", sans-serif;
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.1;
}

.ps-section-head p {
    margin: 10px 0 0;
    color: var(--ps-muted);
    font-size: 17px;
    line-height: 1.55;
    max-width: 900px;
}

.ps-feature-grid {
    margin-top: 16px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ps-feature-grid article {
    border: 1px solid #d8e3ef;
    border-radius: 6px;
    background: #f9fcff;
    padding: 16px;
}

.ps-feature-grid h3 {
    margin: 0;
    font-size: 20px;
    font-family: "Manrope", "Manrope", sans-serif;
}

.ps-feature-grid p {
    margin: 9px 0 0;
    color: var(--ps-muted);
    line-height: 1.55;
}

.ps-feature-head {
    display: flex;
    align-items: center;
    gap: 10px;
}

.ps-feature-icon {
    width: 34px;
    height: 34px;
    border-radius: 10px;
    border: 1px solid #d3e2ef;
    background: #ffffff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--ps-primary);
    flex-shrink: 0;
}

.ps-feature-icon svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.ps-pill-grid {
    margin-top: 16px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.ps-pill-grid span {
    border-radius: 999px;
    border: 1px solid rgba(215, 232, 250, 0.45);
    background: rgba(255, 255, 255, 0.12);
    padding: 8px 14px;
    font-size: 13px;
    font-weight: 700;
}

.ps-cta-strip {
    border: 1px solid #d5e2ef;
    border-radius: 6px;
    background: linear-gradient(120deg, #0f172a, #1e293b);
    color: #ffffff;
    box-shadow: var(--ps-shadow);
    padding: 26px 28px;
    display: flex;
    justify-content: space-between;
    gap: 20px;
    align-items: center;
    flex-wrap: wrap;
}

.ps-cta-strip h2 {
    margin: 10px 0 0;
    font-size: clamp(27px, 4vw, 38px);
    font-family: "Manrope", "Manrope", sans-serif;
}

.ps-cta-strip p {
    margin: 10px 0 0;
    color: rgba(255, 255, 255, 0.92);
    max-width: 720px;
    line-height: 1.5;
}

.ps-cta-strip .ps-btn-soft {
    background: #ffffff;
}

.ps-pricing-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ps-plan {
    border: 1px solid #d4e2ef;
    border-radius: 6px;
    background: #f9fcff;
    padding: 18px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    position: relative;
    height: 100%;
}

.ps-plan.is-featured {
    border-color: #7ed5cb;
    box-shadow: 0 0 0 2px rgba(15, 118, 110, 0.16);
    background: #f1fbf9;
}

.ps-badge {
    position: absolute;
    right: 14px;
    top: 14px;
    border-radius: 999px;
    border: 1px solid var(--ps-primary);
    background: #e8f7f5;
    color: var(--ps-primary);
    font-size: 11px;
    font-weight: 800;
    padding: 5px 10px;
}

.ps-plan-code {
    margin: 0;
    font-size: 11px;
    color: #6c819a;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-weight: 800;
}

.ps-plan h3 {
    margin: 0;
    font-size: 30px;
    line-height: 1.05;
    font-family: "Manrope", "Manrope", sans-serif;
}

.ps-plan-tagline {
    margin: 0;
    color: #3f6188;
    font-size: 14px;
}

.ps-plan-price {
    margin: 0;
    font-size: 38px;
    line-height: 1;
    font-weight: 900;
    color: #0b315f;
}

.ps-plan-price span {
    margin-left: 6px;
    font-size: 13px;
    color: #597694;
}

.ps-plan-trial {
    margin: 0;
    font-size: 13px;
    color: #4b6788;
}

.ps-plan-description {
    color: #2a4a6d;
    line-height: 1.55;
    font-size: 14px;
}

.ps-checklist {
    margin: 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 7px;
}

.ps-checklist li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    color: #1f446c;
    font-size: 14px;
    line-height: 1.45;
}

.ps-checklist li::before {
    content: "✓";
    font-size: 12px;
    font-weight: 800;
    color: var(--ps-primary);
    margin-top: 2px;
}

.ps-plan-empty {
    grid-column: 1 / -1;
}

.ps-plan .ps-btn {
    margin-top: auto;
    align-self: stretch;
}

.ps-table-wrap {
    margin-top: 16px;
    overflow-x: auto;
    border-radius: 6px;
    border: 1px solid #d4e2ef;
}

.ps-table {
    width: 100%;
    min-width: 820px;
    border-collapse: collapse;
}

.ps-table th,
.ps-table td {
    border-bottom: 1px solid #d9e5f0;
    padding: 11px 12px;
    text-align: left;
    font-size: 14px;
}

.ps-table th {
    background: #f6fafe;
    color: #486785;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.ps-faq-grid {
    margin-top: 16px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ps-faq-grid article {
    border: 1px solid #d7e3ee;
    border-radius: 6px;
    background: #fbfdff;
    padding: 15px;
}

.ps-faq-grid h3 {
    margin: 0;
    font-size: 18px;
}

.ps-faq-grid p {
    margin: 8px 0 0;
    color: #516c88;
    line-height: 1.55;
}

.ps-legal {
    display: grid;
    gap: 14px;
}

.ps-legal article {
    border: 1px solid #d8e4ef;
    border-radius: 6px;
    background: #fbfdff;
    padding: 16px;
}

.ps-legal h2 {
    margin: 0;
    font-size: 23px;
    font-family: "Manrope", "Manrope", sans-serif;
}

.ps-legal p {
    margin: 8px 0 0;
    color: #496584;
    line-height: 1.58;
}

.ps-contact-layout {
    display: grid;
    gap: 14px;
    grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.65fr);
}

.ps-contact-form {
    margin-top: 14px;
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ps-contact-form label {
    display: grid;
    gap: 6px;
}

.ps-contact-form span {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #587290;
    font-weight: 800;
}

.ps-contact-form input,
.ps-contact-form textarea {
    width: 100%;
    border: 1px solid #cfddeb;
    border-radius: 12px;
    background: #ffffff;
    padding: 10px 12px;
    font-size: 15px;
    color: #173759;
}

.ps-contact-form input:focus,
.ps-contact-form textarea:focus,
.ps-locale:focus {
    outline: 2px solid transparent;
    border-color: #6ebbb2;
    box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.2);
}

.ps-col-span-2 {
    grid-column: span 2 / span 2;
}

.ps-consent {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 14px;
    color: #456585;
}

.ps-consent input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
}

.ps-side-stack {
    display: grid;
    gap: 14px;
}

.ps-info-list {
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 10px;
}

.ps-info-list li {
    display: grid;
    gap: 3px;
}

.ps-info-list strong {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #66809c;
}

.ps-info-list a,
.ps-info-list span {
    color: #1b3e64;
    text-decoration: none;
}

.ps-footer {
    border: 1px solid #d4e1ee;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: var(--ps-shadow);
    padding: 24px 24px 16px;
    margin-bottom: 24px;
}

.ps-footer-grid {
    display: grid;
    gap: 14px;
    grid-template-columns: 1.3fr repeat(3, minmax(0, 1fr));
}

.ps-footer-logo {
    height: 38px;
    width: auto;
}

.ps-footer p {
    color: #5b7291;
}

.ps-footer h4 {
    margin: 0;
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #57718f;
}

.ps-footer ul {
    margin: 8px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 6px;
}

.ps-footer a {
    color: #1d446d;
    text-decoration: none;
    font-size: 14px;
}

.ps-footer a:hover {
    text-decoration: underline;
}

.ps-copyright {
    margin: 16px 0 0;
    padding-top: 12px;
    border-top: 1px solid #d7e4f1;
    color: #6a8098;
    font-size: 13px;
}

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

    .ps-image-grid,
    .ps-feature-grid,
    .ps-pricing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ps-footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 860px) {
    .ps-topbar,
    .ps-main,
    .ps-footer,
    .ps-flash {
        width: calc(100% - 18px);
    }

    .ps-topbar {
        grid-template-columns: 1fr;
        gap: 10px;
        padding: 12px;
    }

    .ps-topbar-actions {
        justify-content: space-between;
    }

    .ps-main {
        gap: 12px;
    }

    .ps-hero,
    .ps-hero-small {
        padding: 22px;
    }

    .ps-hero h1 {
        font-size: clamp(29px, 9vw, 44px);
    }

    .ps-hero p {
        font-size: 17px;
    }

    .ps-hero-kpis,
    .ps-image-grid,
    .ps-feature-grid,
    .ps-pricing-grid,
    .ps-faq-grid,
    .ps-contact-layout,
    .ps-footer-grid {
        grid-template-columns: 1fr;
    }

    .ps-contact-form {
        grid-template-columns: 1fr;
    }

    .ps-col-span-2 {
        grid-column: auto;
    }
}
