/* (c) 2026 SnartHost - Internet Services - CNPJ 24.151.343/0001-15 - All rights reserved.
   Author: Antonio Santos - E-mail: suporte@softpax.com.br - URL: https://softpax.com.br
   Public shell of a tenant site: landing page, member portal, enrollment.
   Tenant colors arrive as `--ps-*` custom properties declared inline by
   `resources/views/public_site.py`; this sheet only consumes them. */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
body {
    margin: 0;
    background: var(--ps-canvas);
    color: var(--ps-text);
    font-family: var(--ps-font-body);
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--ps-brand-ink); }
h1, h2, h3 { font-family: var(--ps-font-title); font-weight: 600; line-height: 1.2; color: var(--ps-text); margin: 0 0 12px; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.1rem); }
h2 { font-size: clamp(1.5rem, 3.2vw, 2.1rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 14px; }
:focus-visible { outline: 3px solid var(--ps-ring); outline-offset: 2px; border-radius: 6px; }

/* -- Structure ---------------------------------------------------------- */
.ps-wrap { max-width: 1400px; width: 100%; margin: 0 auto; padding: 0 clamp(20px, 4vw, 60px); box-sizing: border-box; }
.ps-section { padding: 56px 0; }
.ps-section + .ps-section { border-top: 1px solid var(--ps-line); }
.ps-section-head { max-width: 640px; margin-bottom: 28px; }
.ps-section-head p { color: var(--ps-muted); font-size: 1.05rem; margin: 0; }
.ps-eyebrow { display: inline-block; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ps-brand-ink); margin-bottom: 10px; font-family: inherit; }

/* -- Header ---------------------------------------------------------- */
.ps-header { position: sticky; top: 0; z-index: 40; background: color-mix(in srgb, var(--ps-surface) 92%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--ps-line); }
.ps-header .ps-wrap { display: flex; align-items: center; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.ps-brand { display: flex; align-items: center; gap: 10px; font-family: var(--ps-font-title); font-size: 1.15rem; font-weight: 600; color: var(--ps-text); text-decoration: none; margin-right: auto; }
.ps-brand img { max-height: 40px; width: auto; object-fit: contain; background: transparent !important; }
span.ps-brand-mark, .ps-brand-mark { width: 34px; height: 34px; border-radius: 10px; background: var(--ps-brand); color: var(--ps-on-brand); display: grid; place-items: center; font-size: 1rem; font-family: inherit; }
img.ps-brand-mark, .ps-brand img { background: transparent !important; border: none; }
.ps-nav { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ps-nav a { color: var(--ps-text-sub); text-decoration: none; font-size: 0.95rem; padding: 8px 10px; border-radius: 8px; }
.ps-nav a:hover { background: var(--ps-brand-wash); color: var(--ps-brand-ink); }
.ps-lang-select {
    background: var(--ps-surface);
    border: 1px solid var(--ps-line-strong);
    color: var(--ps-text-sub);
    padding: 6px 10px;
    border-radius: 8px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    transition: border-color 0.15s, background 0.15s;
    height: 38px;
}
.ps-lang-select:hover {
    border-color: var(--ps-brand);
    background: var(--ps-brand-wash);
    color: var(--ps-brand-ink);
}

/* -- Buttons ------------------------------------------------------------- */
.ps-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 22px; border-radius: 10px; border: 1px solid transparent; font-size: 1rem; font-weight: 600; font-family: inherit; text-decoration: none; cursor: pointer; transition: background 0.15s, box-shadow 0.15s, transform 0.05s; }
.ps-btn:active { transform: translateY(1px); }
.ps-btn-primary { background: var(--ps-brand); color: var(--ps-on-brand); box-shadow: 0 6px 16px var(--ps-brand-glow); }
.ps-btn-primary:hover { background: var(--ps-brand-dark); }
.ps-btn-outline { background: var(--ps-surface); color: var(--ps-text); border-color: var(--ps-line-strong); }
.ps-btn-outline:hover { border-color: var(--ps-brand); color: var(--ps-brand-ink); background: var(--ps-brand-wash); }
.ps-btn-call { background: var(--ps-call); color: var(--ps-on-call); font-weight: 700; }
.ps-btn-call strong { font-weight: 800; letter-spacing: 0.02em; }
.ps-btn-call:hover { background: var(--ps-call-dark); }
/* Topbar emergency phone treated as normal text with tenant configurable font color */
.ps-nav-phone, .ps-nav .ps-btn-call {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-height: auto !important;
    padding: 8px 10px !important;
    color: var(--ps-phone-color, var(--ps-call, #1e8e3e)) !important;
    font-size: 0.95rem;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 8px;
    transition: background 0.15s, opacity 0.15s;
}
.ps-nav-phone strong, .ps-nav .ps-btn-call strong {
    font-weight: 800;
    color: inherit !important;
}
.ps-nav-phone:hover, .ps-nav .ps-btn-call:hover {
    background: var(--ps-brand-wash) !important;
    opacity: 0.85;
}
/* Button of the call strip. On a light background it is the brand button; on a
   colored band it INVERTS, because brand-on-brand disappears. */
.ps-btn-contrast { background: var(--ps-brand); color: var(--ps-on-brand); }
.ps-bg-brand .ps-btn-contrast, .ps-bg-dark .ps-btn-contrast { background: var(--ps-surface); color: var(--ps-text); }
.ps-btn-contrast:hover { filter: brightness(1.08); }
.ps-btn-block { width: 100%; }
.ps-btn-sm { min-height: 38px; padding: 8px 14px; font-size: 0.9rem; }
/* The single sign-in door of the public topbar: treated as normal text link */
.ps-nav-login, .ps-nav .ps-nav-login {
    color: var(--ps-text-sub) !important;
    font-size: 0.95rem;
    font-weight: 600;
    padding: 8px 10px !important;
    border-radius: 8px;
    text-decoration: none;
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    min-height: auto !important;
    display: inline-flex;
    align-items: center;
    transition: background 0.15s, color 0.15s;
}
.ps-nav-login:hover, .ps-nav .ps-nav-login:hover {
    background: var(--ps-brand-wash) !important;
    color: var(--ps-brand-ink) !important;
}

/* -- Hero --------------------------------------------------------------- */
.ps-hero { padding: 64px 0 56px; background: linear-gradient(180deg, var(--ps-brand-wash), var(--ps-canvas)); }
.ps-hero-grid { display: grid; gap: 40px; align-items: center; grid-template-columns: 1fr; }
.ps-hero p.ps-lead { font-size: 1.2rem; color: var(--ps-text-sub); max-width: 34em; }
.ps-hero-figure { display: flex; align-items: center; justify-content: center; max-height: 440px; overflow: visible; }
.ps-hero-figure img { border-radius: 18px; filter: drop-shadow(0 16px 36px rgba(15, 27, 43, 0.12)); max-height: 420px; max-width: 100%; width: auto; height: auto; object-fit: contain; background: transparent !important; display: block; margin: 0 auto; }
/* Hero banner side: the figure is the second grid cell; "left" moves it before the text on wide screens only. */
.ps-hero-image-left .ps-hero-grid .ps-hero-figure { order: 0; }
.ps-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin-top: 30px; padding: 0; list-style: none; }
.ps-trust li { display: flex; align-items: center; gap: 8px; color: var(--ps-text-sub); font-size: 0.95rem; }
.ps-trust li::before { content: "✓"; color: var(--ps-brand-ink); font-weight: 700; }

/* -- Cards and plans --------------------------------------------------- */
.ps-card { background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 16px; padding: 26px; }
.ps-grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 270px), 1fr)); }
.ps-plan { display: flex; flex-direction: column; background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 16px; padding: 26px; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.ps-plan:hover { border-color: var(--ps-brand); box-shadow: 0 14px 34px rgba(15, 27, 43, 0.09); transform: translateY(-2px); }
.ps-plan h3 { margin-bottom: 4px; }
.ps-plan-price { display: flex; align-items: baseline; gap: 6px; margin: 10px 0 4px; }
.ps-plan-price strong { font-family: var(--ps-font-title); font-size: 2.3rem; font-weight: 600; color: var(--ps-text); letter-spacing: -0.02em; }
.ps-plan-price span { color: var(--ps-muted); font-size: 0.95rem; }
.ps-plan-meta { color: var(--ps-muted); font-size: 0.9rem; margin: 0 0 16px; }
.ps-plan ul { list-style: none; margin: 0 0 22px; padding: 0; display: grid; gap: 8px; }
.ps-plan ul li { display: flex; gap: 9px; font-size: 0.95rem; color: var(--ps-text-sub); }
.ps-plan ul li::before { content: "✓"; color: var(--ps-brand-ink); font-weight: 700; flex: none; }
.ps-plan-actions { margin-top: auto; display: grid; gap: 8px; }
/* The featured plan: the brand border and the badge come from the record, not
   from a fixed position on the page - the operator picks which one stands out. */
.ps-plan-featured { position: relative; border-color: var(--ps-brand); border-width: 2px; box-shadow: 0 14px 34px rgba(15, 27, 43, 0.10); }
.ps-plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--ps-brand); color: var(--ps-on-brand); font-size: 0.7rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; padding: 5px 14px; border-radius: 999px; white-space: nowrap; }

/* -- FAQ and testimonials (builder blocks) ----------------------- */
.ps-faq details { background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 12px; padding: 4px 20px; margin-bottom: 10px; }
.ps-faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.ps-faq summary::-webkit-details-marker { display: none; }
.ps-faq summary::after { content: "+"; color: var(--ps-brand-ink); font-size: 1.3rem; line-height: 1; }
.ps-faq details[open] summary::after { content: "−"; }
.ps-faq details p { color: var(--ps-text-sub); margin: 0 0 14px; }
.ps-quote { margin: 0; }
.ps-quote p { font-size: 1.05rem; color: var(--ps-text-sub); }
.ps-quote strong { color: var(--ps-brand-ink); }

/* -- Contact channels ---------------------------------------------- */
.ps-channel { display: flex; flex-direction: column; gap: 6px; background: var(--ps-surface); border: 1px solid var(--ps-line); border-left: 4px solid var(--ps-brand); border-radius: 14px; padding: 22px; }
.ps-channel strong { font-size: 1.05rem; }
.ps-channel span { color: var(--ps-muted); font-size: 0.93rem; }
.ps-channel a.ps-channel-value { font-size: 1.15rem; font-weight: 700; color: var(--ps-brand-ink); text-decoration: none; word-break: break-word; }
.ps-channel a.ps-channel-value:hover { text-decoration: underline; }

/* -- Form --------------------------------------------------------- */
.ps-form { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ps-field { display: flex; flex-direction: column; gap: 6px; }
.ps-field-wide { grid-column: 1 / -1; }
.ps-field input:not([type="radio"]):not([type="checkbox"]), .ps-field select, .ps-field textarea { width: 100%; font: inherit; font-size: 1rem; color: var(--ps-text); background: var(--ps-surface); border: 1px solid var(--ps-line-strong); border-radius: 10px; padding: 12px 14px; min-height: 48px; }
.ps-field input[type="radio"], .ps-field input[type="checkbox"] { width: 20px; height: 20px; min-width: 20px; min-height: 20px; padding: 0; margin: 0; flex-shrink: 0; cursor: pointer; accent-color: var(--ps-brand); }
.ps-field textarea { min-height: 110px; resize: vertical; }
.ps-field input:focus, .ps-field select:focus, .ps-field textarea:focus { outline: none; border-color: var(--ps-brand); box-shadow: 0 0 0 4px var(--ps-ring); }
.ps-field-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.ps-note { color: var(--ps-muted); font-size: 0.85rem; margin: 0; }
.ps-alert { border-radius: 12px; padding: 14px 16px; margin-bottom: 18px; font-size: 0.98rem; border: 1px solid; }
.ps-alert-ok { background: var(--ps-ok-wash); border-color: var(--ps-ok-line); color: var(--ps-ok-ink); }
.ps-alert-warn { background: var(--ps-warn-wash); border-color: var(--ps-warn-line); color: var(--ps-warn-ink); }

/* -- Footer and floating button ------------------------------------------- */
.ps-footer { background: var(--ps-footer); color: color-mix(in srgb, var(--ps-on-footer) 76%, transparent); padding: 46px 0 30px; margin-top: 8px; }
.ps-footer h3, .ps-footer strong { color: var(--ps-on-footer); }
.ps-footer a { color: color-mix(in srgb, var(--ps-on-footer) 88%, transparent); text-decoration: none; }
.ps-footer a:hover { text-decoration: underline; }

/* Custom Header and Footer background themes */
.ps-header.ps-bg-default { --ps-section-bg: color-mix(in srgb, var(--ps-surface) 92%, transparent); --ps-on-section: var(--ps-text); }
.ps-header.ps-bg-alt { --ps-section-bg: var(--ps-surface); --ps-on-section: var(--ps-text); }
.ps-header.ps-bg-wash { --ps-section-bg: var(--ps-brand-wash); --ps-on-section: var(--ps-brand-ink); }
.ps-header.ps-bg-brand { --ps-section-bg: var(--ps-brand); --ps-on-section: var(--ps-on-brand); }
.ps-header.ps-bg-dark { --ps-section-bg: var(--ps-footer); --ps-on-section: var(--ps-on-footer); }
.ps-header[class*="ps-bg-"] { background: var(--ps-section-bg) !important; color: var(--ps-on-section) !important; }
.ps-header[class*="ps-bg-"] a { color: var(--ps-on-section) !important; }
.ps-header[class*="ps-bg-"] span.ps-brand-mark { background: var(--ps-on-section) !important; color: var(--ps-section-bg) !important; }
.ps-header[class*="ps-bg-"] select.ps-lang-select { background: rgba(255,255,255,0.15) !important; border-color: rgba(255,255,255,0.2) !important; color: var(--ps-on-section) !important; }

.ps-footer.ps-bg-default { --ps-section-bg: var(--ps-surface); --ps-on-section: var(--ps-text); }
.ps-footer.ps-bg-alt { --ps-section-bg: var(--ps-surface-alt); --ps-on-section: var(--ps-text-sub); }
.ps-footer.ps-bg-wash { --ps-section-bg: var(--ps-brand-wash); --ps-on-section: var(--ps-brand-ink); }
.ps-footer.ps-bg-brand { --ps-section-bg: var(--ps-brand); --ps-on-section: var(--ps-on-brand); }
.ps-footer.ps-bg-dark { --ps-section-bg: var(--ps-footer); --ps-on-section: var(--ps-on-footer); }
.ps-footer[class*="ps-bg-"] { background: var(--ps-section-bg) !important; color: color-mix(in srgb, var(--ps-on-section) 76%, transparent) !important; }
.ps-footer[class*="ps-bg-"] h3, .ps-footer[class*="ps-bg-"] strong { color: var(--ps-on-section) !important; }
.ps-footer[class*="ps-bg-"] a { color: color-mix(in srgb, var(--ps-on-section) 88%, transparent) !important; }

.ps-footer-grid { display: grid; gap: 26px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); }
.ps-footer-legal { margin-top: 30px; padding-top: 18px; border-top: 1px solid color-mix(in srgb, var(--ps-on-footer) 16%, transparent); font-size: 0.85rem; display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: space-between; }
.ps-float { position: fixed; right: 20px; bottom: 78px; z-index: 99990; display: flex; flex-direction: row; gap: 8px; align-items: center; }
.ps-float a { display: flex; align-items: center; gap: 7px; padding: 7px 14px; border-radius: 999px; font-size: 12px; font-weight: 600; text-decoration: none; box-shadow: 0 4px 14px rgba(15, 27, 43, 0.16); transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease; }
.ps-float a:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(15, 27, 43, 0.24); }
.ps-float-icon { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.ps-float-icon svg { width: 16px; height: 16px; display: block; }
.ps-float a.ps-float-whatsapp, .ps-float a:not(.ps-float-phone):not(.ps-float-plantao) { background: var(--ps-float-whatsapp); color: var(--ps-on-float-whatsapp); }
.ps-float a.ps-float-whatsapp:hover, .ps-float a:not(.ps-float-phone):not(.ps-float-plantao):hover { background: var(--ps-float-whatsapp-hover); color: var(--ps-on-float-whatsapp); }
.ps-float a.ps-float-phone, .ps-float a.ps-float-plantao { background: var(--ps-float-plantao); color: var(--ps-on-float-plantao); }
.ps-float a.ps-float-phone:hover, .ps-float a.ps-float-plantao:hover { background: var(--ps-float-plantao-hover); color: var(--ps-on-float-plantao); }

/* -- Member portal ------------------------------------------------ */
.ps-portal-head { background: var(--ps-footer); color: var(--ps-on-footer); padding: 34px 0; }
.ps-portal-head h1 { color: var(--ps-on-footer); font-size: clamp(1.6rem, 4vw, 2.2rem); margin-bottom: 4px; }
.ps-portal-head p { color: color-mix(in srgb, var(--ps-on-footer) 78%, transparent); margin: 0; }
.ps-portal-head a { color: var(--ps-on-footer); }
.ps-due { font-family: var(--ps-font-title); font-size: 2.4rem; font-weight: 600; margin: 0; }
.ps-table-wrap { overflow-x: auto; }
.ps-table { width: 100%; border-collapse: collapse; font-size: 0.95rem; min-width: 480px; }
.ps-table th { text-align: left; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ps-muted); padding: 10px 12px; border-bottom: 1px solid var(--ps-line); }
.ps-table td { padding: 12px; border-bottom: 1px solid var(--ps-line); color: var(--ps-text-sub); }
.ps-table tr:last-child td { border-bottom: 0; }
.ps-tag { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 700; border: 1px solid; }
.ps-tag-ok { background: var(--ps-ok-wash); border-color: var(--ps-ok-line); color: var(--ps-ok-ink); }
.ps-tag-due { background: var(--ps-warn-wash); border-color: var(--ps-warn-line); color: var(--ps-warn-ink); }
.ps-tag-neutral { background: var(--ps-brand-wash); border-color: var(--ps-line); color: var(--ps-text-sub); }
.ps-stack { display: grid; gap: 20px; }

/* -- Section background and alignment (chosen block by block) ---------------
   The background arrives as a LOCAL VARIABLE and not as a direct color rule:
   what changes along with it is the ink, and a dark band with dark text is a
   section nobody reads. Declaring both in one place makes it impossible to
   change one and forget the other. */
.ps-section, .ps-hero, .ps-divider { --ps-section-bg: transparent; --ps-on-section: var(--ps-text); background: var(--ps-section-bg); color: var(--ps-on-section); }
.ps-bg-alt { --ps-section-bg: var(--ps-surface); }
.ps-bg-wash { --ps-section-bg: var(--ps-brand-wash); }
.ps-bg-brand { --ps-section-bg: var(--ps-brand); --ps-on-section: var(--ps-on-brand); }
.ps-bg-dark { --ps-section-bg: var(--ps-footer); --ps-on-section: var(--ps-on-footer); }
.ps-bg-brand h1, .ps-bg-brand h2, .ps-bg-brand h3, .ps-bg-brand strong,
.ps-bg-dark h1, .ps-bg-dark h2, .ps-bg-dark h3, .ps-bg-dark strong { color: var(--ps-on-section); }
.ps-bg-brand .ps-section-head p, .ps-bg-brand .ps-lead, .ps-bg-brand .ps-eyebrow,
.ps-bg-dark .ps-section-head p, .ps-bg-dark .ps-lead, .ps-bg-dark .ps-eyebrow { color: color-mix(in srgb, var(--ps-on-section) 82%, transparent); }
.ps-bg-brand .ps-trust li, .ps-bg-dark .ps-trust li { color: color-mix(in srgb, var(--ps-on-section) 88%, transparent); }
.ps-bg-brand .ps-trust li::before, .ps-bg-dark .ps-trust li::before { color: var(--ps-on-section); }
/* Card over a colored band: a veil of the ink itself, not white. White over the
   brand is a stain that fights the band. */
.ps-bg-brand .ps-card, .ps-bg-brand .ps-feature, .ps-bg-brand .ps-stat, .ps-bg-brand .ps-step,
.ps-bg-dark .ps-card, .ps-bg-dark .ps-feature, .ps-bg-dark .ps-stat, .ps-bg-dark .ps-step { background: color-mix(in srgb, var(--ps-on-section) 10%, transparent); border-color: color-mix(in srgb, var(--ps-on-section) 24%, transparent); color: var(--ps-on-section); }
.ps-bg-brand .ps-card p, .ps-bg-dark .ps-card p, .ps-bg-brand .ps-feature p, .ps-bg-dark .ps-feature p { color: color-mix(in srgb, var(--ps-on-section) 84%, transparent); }

.ps-al-center .ps-section-head { margin-left: auto; margin-right: auto; text-align: center; }
.ps-al-center .ps-cta { text-align: center; }
.ps-hero.ps-al-center .ps-hero-grid > div:first-child { text-align: center; }
.ps-hero.ps-al-center .ps-hero-actions, .ps-hero.ps-al-center .ps-trust { justify-content: center; }
.ps-hero.ps-al-center .ps-lead { margin-left: auto; margin-right: auto; }

/* -- Sections assembled in the builder ----------------------------------------- */
.ps-prose { max-width: 68ch; }
.ps-feature { background: var(--ps-surface); border: 1px solid var(--ps-line); border-left: 3px solid var(--ps-brand); border-radius: 14px; padding: 22px; }
.ps-feature strong { display: block; font-family: var(--ps-font-title); font-size: 1.08rem; margin-bottom: 6px; }
.ps-feature p { color: var(--ps-text-sub); margin: 0; font-size: 0.96rem; }

/* The numbering comes from the COUNTER, not from the text: deleting step 2 must
   not leave "1, 3, 4" on the customer's page. */
.ps-steps { counter-reset: ps-step; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.ps-step { counter-increment: ps-step; position: relative; background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 14px; padding: 22px 22px 22px 66px; }
.ps-step::before { content: counter(ps-step); position: absolute; left: 20px; top: 20px; width: 32px; height: 32px; border-radius: 999px; background: var(--ps-brand); color: var(--ps-on-brand); display: grid; place-items: center; font-family: var(--ps-font-title); font-weight: 600; }
.ps-step strong { display: block; margin-bottom: 5px; }
.ps-step p { color: var(--ps-text-sub); margin: 0; font-size: 0.95rem; }

.ps-stats { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.ps-stat { text-align: center; padding: 20px 14px; border-radius: 14px; background: var(--ps-surface); border: 1px solid var(--ps-line); }
.ps-stat strong { display: block; font-family: var(--ps-font-title); font-size: clamp(1.9rem, 4vw, 2.6rem); line-height: 1.1; color: var(--ps-brand-ink); letter-spacing: -0.02em; }
.ps-stat span { color: var(--ps-muted); font-size: 0.92rem; }
.ps-bg-brand .ps-stat strong, .ps-bg-dark .ps-stat strong { color: var(--ps-on-section); }
.ps-bg-brand .ps-stat span, .ps-bg-dark .ps-stat span { color: color-mix(in srgb, var(--ps-on-section) 80%, transparent); }

.ps-media { display: grid; gap: 32px; align-items: center; grid-template-columns: 1fr; }
.ps-media-text p { color: var(--ps-text-sub); }
.ps-media-figure img { border-radius: 18px; box-shadow: 0 16px 40px rgba(15, 27, 43, 0.14); width: 100%; }

.ps-gallery { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); }
.ps-shot { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--ps-line); background: var(--ps-surface); }
.ps-shot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.ps-shot figcaption { padding: 10px 14px; font-size: 0.9rem; color: var(--ps-muted); }

.ps-cta { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ps-cta h2 { margin-bottom: 4px; }
.ps-cta p { margin: 0; color: color-mix(in srgb, var(--ps-on-section) 78%, transparent); }
.ps-al-center .ps-cta { flex-direction: column; justify-content: center; }

.ps-divider { padding: 26px 0; }
.ps-divider hr { border: 0; border-top: 1px solid var(--ps-line); margin: 0; }

/* -- Newer blocks: logos, video and team ------------------------------- */
.ps-feature-icon { display: block; font-size: 1.7rem; line-height: 1; margin-bottom: 10px; }
.ps-logos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 26px 44px; align-items: center; justify-content: center; }
.ps-logo img { max-height: 52px; width: auto; filter: grayscale(1); opacity: 0.72; transition: filter 0.2s, opacity 0.2s; }
.ps-logo img:hover { filter: none; opacity: 1; }
.ps-video-frame { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; box-shadow: 0 18px 48px rgba(15, 27, 43, 0.18); }
.ps-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.ps-video-player { width: 100%; border-radius: 16px; background: #000; box-shadow: 0 18px 48px rgba(15, 27, 43, 0.18); }
.ps-person { background: var(--ps-surface); border: 1px solid var(--ps-line); border-radius: 16px; padding: 26px 18px; display: flex; flex-direction: column; align-items: center; gap: 3px; text-align: center; }
.ps-person-photo { width: 88px; height: 88px; border-radius: 999px; object-fit: cover; margin-bottom: 10px; border: 3px solid var(--ps-brand-wash); }
.ps-person-initial { display: grid; place-items: center; background: var(--ps-brand); color: var(--ps-on-brand); font-family: var(--ps-font-title); font-size: 2rem; }
.ps-person strong { font-family: var(--ps-font-title); font-size: 1.05rem; }
.ps-person span { color: var(--ps-muted); font-size: 0.9rem; }
.ps-bg-brand .ps-person, .ps-bg-dark .ps-person { background: color-mix(in srgb, var(--ps-on-section) 10%, transparent); border-color: color-mix(in srgb, var(--ps-on-section) 24%, transparent); color: var(--ps-on-section); }
.ps-bg-brand .ps-person span, .ps-bg-dark .ps-person span { color: color-mix(in srgb, var(--ps-on-section) 78%, transparent); }
.ps-cta-actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* -- Per-section breathing room (chosen in the builder) ------------------------ */
.ps-section.ps-pad-compact { padding: 32px 0 !important; }
.ps-section.ps-pad-spacious { padding: 110px 0 !important; }

/* -- Soft section entrance (applied by JS, absent without it) ----------- */
@media (prefers-reduced-motion: no-preference) {
    .ps-reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.55s ease, transform 0.55s ease; }
    .ps-reveal.ps-reveal-in { opacity: 1; transform: none; }
}

@media (min-width: 860px) {
    .ps-hero-grid { grid-template-columns: 1.1fr 0.9fr; }
    .ps-hero-image-left .ps-hero-grid { grid-template-columns: 0.9fr 1.1fr; }
    .ps-hero-image-left .ps-hero-grid .ps-hero-figure { order: -1; }
    .ps-media { grid-template-columns: 1fr 1fr; }
    .ps-section { padding: 72px 0; }
}
@media (min-width: 1280px) {
    .ps-section { padding: 88px 0; }
    .ps-section-head { max-width: 780px; }
    .ps-hero-grid { grid-template-columns: 1fr 1fr; gap: clamp(40px, 5vw, 80px); }
    .ps-wrap { padding: 0 clamp(32px, 5vw, 80px); }
}
@media (min-width: 1600px) {
    .ps-wrap { max-width: 1560px; }
    .ps-section { padding: 100px 0; }
}
@media (max-width: 560px) {
    .ps-header .ps-wrap { min-height: 60px; padding-top: 10px; padding-bottom: 10px; }
    .ps-nav .ps-nav-hide-sm { display: none; }
    .ps-float { right: 16px; left: auto; bottom: 74px; gap: 6px; justify-content: flex-end; }
    .ps-float a span:not(.ps-float-icon) { display: none; }
    .ps-float a { padding: 9px; border-radius: 50%; width: 36px; height: 36px; justify-content: center; }
    #sp-advisor-card-dock { bottom: 16px !important; left: 16px !important; }
    #sp-advisor-chat-window { bottom: 74px !important; left: 16px !important; }
}

/* -- Layout utilities ------------------------------------------------------
   The standalone screens (portal, enrollment, member card, 404) were written
   with the names of the grid utility only the panel layout loads. Defining them
   here is what gives those pages a shape outside /app - with no CDN and without
   rewriting the markup of every one of them. */
.flex { display: flex; } .grid { display: grid; }
.flex-wrap { flex-wrap: wrap; } .flex-1 { flex: 1 1 0%; }
.items-center { align-items: center; } .items-start { align-items: flex-start; }
.justify-between { justify-content: space-between; } .justify-end { justify-content: flex-end; }
.text-right { text-align: right; } .text-center { text-align: center; }
.w-full { width: 100%; }
.font-mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; }
.gap-2 { gap: 8px; } .gap-3 { gap: 12px; } .gap-4 { gap: 16px; } .gap-6 { gap: 24px; }
.grid-cols-1 { grid-template-columns: 1fr; }
.mt-2 { margin-top: 8px; } .mt-4 { margin-top: 16px; } .mt-6 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-4 { margin-bottom: 16px; } .mb-6 { margin-bottom: 24px; }
.pt-2 { padding-top: 8px; } .pt-4 { padding-top: 16px; } .p-6 { padding: 24px; }
.space-y-4 > * + * { margin-top: 16px; } .space-y-6 > * + * { margin-top: 24px; }
@media (min-width: 768px) {
    .md\\:grid-cols-2 { grid-template-columns: repeat(2, 1fr); }
    .md\\:grid-cols-3 { grid-template-columns: repeat(3, 1fr); }
    .md\\:col-span-2 { grid-column: span 2; }
}

/* -- Hero variations ------------------------------------------------------ */
.ps-hero-video-wrap { position: relative; overflow: hidden; }
.ps-hero-video-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; pointer-events: none; }
.ps-hero-video-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.5); z-index: 2; }
.ps-hero-video-content { position: relative; z-index: 3; text-align: center; max-width: 800px; margin: 0 auto; }
.ps-hero-has-video.ps-hero-video-wrap { padding: 90px 0; }
.ps-hero-has-video .ps-lead, .ps-hero-has-video h1 { color: #ffffff !important; }
.ps-hero-has-video .ps-hero-actions { justify-content: center; }
.ps-hero-has-video .ps-trust { justify-content: center; color: rgba(255,255,255,0.85); }
.ps-hero-has-video .ps-trust li::before { color: #ffffff; }

/* Hero carousel: the images cross-fade by opacity; without JavaScript the first
   one stays, and the dark veil keeps the text readable over any photo. */
.ps-hero-slides { position: absolute; inset: 0; z-index: 1; }
.ps-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; }
.ps-slide.ps-slide-on { opacity: 1; }
.ps-slide-dots { display: flex; gap: 9px; justify-content: center; margin-top: 24px; }
.ps-slide-dot { width: 11px; height: 11px; border-radius: 999px; border: 0; padding: 0; background: rgba(255, 255, 255, 0.45); cursor: pointer; transition: background 0.2s, transform 0.2s; }
.ps-slide-dot:hover { transform: scale(1.25); }
.ps-slide-dot-on { background: #ffffff; }

.ps-hero-split-layout .ps-hero-split-actions-card { background: var(--ps-surface); border: 1px solid var(--ps-line-strong); padding: 30px; border-radius: 18px; box-shadow: 0 16px 40px rgba(15, 27, 43, 0.1); display: flex; flex-direction: column; align-items: stretch; justify-content: center; }

.ps-hero-compact-banner { padding: 24px 0; background: var(--ps-brand); color: var(--ps-on-brand); }
.ps-hero-banner-flex { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.ps-hero-banner-text { flex: 1 1 300px; }
.ps-hero-banner-action { flex: 0 0 auto; }

/* -- Portal tabs ---------------------------------------------------------- */
.ps-tabs { display: flex; border-bottom: 2px solid var(--ps-line); margin-bottom: 28px; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.ps-tabs::-webkit-scrollbar { display: none; }
.ps-tab { padding: 12px 18px; font-size: 0.95rem; font-weight: 600; color: var(--ps-text-sub); text-decoration: none; border-bottom: 3px solid transparent; transition: color 0.15s, border-bottom-color 0.15s; white-space: nowrap; cursor: pointer; }
.ps-tab:hover { color: var(--ps-brand-ink); }
.ps-tab.active { color: var(--ps-brand-ink); border-bottom-color: var(--ps-brand); }
.ps-tab-panel { display: none; }
.ps-tab-panel.active { display: block; }

/* -- Service units (branches) ----------------------------------- */
.ps-branches-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 24px; margin-top: 20px; }
.ps-branch-card { background: var(--ps-surface); border: 1px solid var(--ps-line-strong); border-radius: 16px; padding: 24px; box-shadow: 0 4px 16px rgba(15, 27, 43, 0.04); display: flex; flex-direction: column; justify-content: space-between; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s; }
.ps-branch-card:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(15, 27, 43, 0.08); border-color: var(--ps-brand); }
.ps-branch-card-header { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 12px; }
.ps-branch-tags-top { display: flex; gap: 6px; margin-bottom: 6px; }
.ps-branch-badge-hq { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; background: var(--ps-brand-wash); color: var(--ps-brand-ink); border: 1px solid var(--ps-ring); }
.ps-branch-badge-sub { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; font-size: 0.72rem; font-weight: 600; background: var(--ps-canvas); color: var(--ps-muted); border: 1px solid var(--ps-line); }
.ps-branch-title { font-size: 1.15rem; font-weight: 700; color: var(--ps-text); margin: 0 0 4px; font-family: var(--ps-font-title); }
.ps-branch-address { margin: 10px 0 16px; padding: 12px; background: var(--ps-canvas); border-radius: 10px; border: 1px solid var(--ps-line); font-size: 0.88rem; line-height: 1.5; color: var(--ps-text-sub); }
.ps-branch-loc { margin: 0 0 4px; color: var(--ps-text); }
.ps-branch-street { margin: 0 0 4px; }
.ps-branch-hours { margin: 0; font-size: 0.8rem; font-weight: 600; color: var(--ps-call-dark); }
.ps-branch-services { margin-bottom: 20px; }
.ps-branch-services-title { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ps-muted); margin-bottom: 8px; }
.ps-branch-tags-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.ps-service-tag { display: inline-flex; align-items: center; gap: 4px; padding: 4px 9px; border-radius: 6px; font-size: 0.76rem; font-weight: 600; background: var(--ps-canvas); color: var(--ps-text); border: 1px solid var(--ps-line); }
.ps-branch-footer { display: flex; gap: 10px; flex-wrap: wrap; pt: 12px; border-top: 1px solid var(--ps-line); align-items: center; }
.ps-btn-branch-phone { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 8px; font-size: 0.82rem; font-weight: 700; background: var(--ps-call); color: var(--ps-on-call); text-decoration: none; transition: opacity 0.15s; flex: 1 1 auto; }
.ps-btn-branch-phone:hover { opacity: 0.9; }
.ps-btn-branch-map { display: inline-flex; align-items: center; justify-content: center; padding: 8px 14px; border-radius: 8px; font-size: 0.82rem; font-weight: 600; background: var(--ps-surface); color: var(--ps-text); border: 1px solid var(--ps-line-strong); text-decoration: none; transition: background 0.15s; }
.ps-btn-branch-map:hover { background: var(--ps-canvas); border-color: var(--ps-brand); }

/* -- Contact modal dialog ------------------ */
.ps-modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 100;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: rgba(15, 23, 42, 0.68);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    opacity: 0;
    transition: opacity 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.ps-modal-overlay.ps-modal-open,
.ps-modal-overlay:target {
    display: flex !important;
    opacity: 1;
}
.ps-modal-window {
    position: relative;
    width: 100%;
    max-width: 640px;
    background: var(--ps-surface);
    border: 1px solid var(--ps-line-strong);
    border-radius: 24px;
    box-shadow: 0 25px 60px -12px rgba(15, 27, 43, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.08);
    overflow: hidden;
    transform: scale(0.94) translateY(14px);
    transition: transform 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.26s cubic-bezier(0.16, 1, 0.3, 1);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}
.ps-modal-overlay.ps-modal-open .ps-modal-window,
.ps-modal-overlay:target .ps-modal-window {
    transform: scale(1) translateY(0);
}
.ps-modal-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid var(--ps-line);
    background: var(--ps-surface);
    color: var(--ps-text-sub);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: background 0.15s, color 0.15s, transform 0.15s;
}
.ps-modal-close:hover {
    background: var(--ps-brand-wash);
    color: var(--ps-brand-ink);
    transform: scale(1.08);
}
.ps-modal-body {
    padding: 36px clamp(20px, 5vw, 40px) 32px;
    overflow-y: auto;
}
.ps-modal-head {
    margin-bottom: 24px;
    padding-right: 36px;
}
.ps-modal-head .ps-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px;
    border-radius: 999px;
    background: var(--ps-brand-wash);
    color: var(--ps-brand-ink);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 12px;
}
.ps-pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--ps-brand);
    display: inline-block;
    box-shadow: 0 0 0 2px var(--ps-brand-wash);
}
.ps-modal-head h2 {
    font-size: clamp(1.45rem, 3vw, 1.85rem);
    margin: 0 0 8px;
    color: var(--ps-text);
}
.ps-modal-head p {
    color: var(--ps-text-sub);
    font-size: 0.96rem;
    margin: 0;
    line-height: 1.5;
}

/* -- Form interno do Modal ------------------------------------------- */
.ps-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-bottom: 18px;
}
@media (max-width: 580px) {
    .ps-form-grid { grid-template-columns: 1fr; }
    .ps-modal-body { padding: 26px 20px 24px; }
}
.ps-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.ps-field-full {
    grid-column: 1 / -1;
}
.ps-field label {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--ps-text);
    letter-spacing: 0.01em;
}
.ps-input, .ps-field input, .ps-field select, .ps-field textarea {
    width: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border: 1px solid var(--ps-line-strong);
    background: color-mix(in srgb, var(--ps-surface) 96%, var(--ps-canvas));
    color: var(--ps-text);
    font-size: 0.95rem;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
    outline: none;
    box-sizing: border-box;
}
.ps-input:focus, .ps-field input:focus, .ps-field select:focus, .ps-field textarea:focus {
    border-color: var(--ps-brand);
    background: var(--ps-surface);
    box-shadow: 0 0 0 3px var(--ps-ring);
}
.ps-field textarea {
    resize: vertical;
    min-height: 85px;
}
.ps-modal-footer {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 20px;
}
.ps-modal-footer .ps-btn {
    width: 100%;
    font-size: 1.05rem;
    font-weight: 700;
    padding: 14px 24px;
    border-radius: 12px;
}
.ps-modal-security {
    font-size: 0.8rem;
    color: var(--ps-muted);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin: 0;
}

/* -- Alerts --------------------------------------------------------------- */
.ps-alert {
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 0.92rem;
    font-weight: 500;
    margin-bottom: 18px;
    display: flex;
    align-items: center;
    gap: 10px;
    line-height: 1.4;
}
.ps-alert-ok {
    background: var(--ps-ok-wash);
    color: var(--ps-ok-ink);
    border: 1px solid var(--ps-ok-line);
}
.ps-alert-warn {
    background: var(--ps-warn-wash);
    color: var(--ps-warn-ink);
    border: 1px solid var(--ps-warn-line);
}

/* -- Call card / in-page banner ------------------------------------- */
.ps-contact-section {
    padding: 60px 0;
}
.ps-contact-banner {
    background: linear-gradient(135deg, var(--ps-surface) 0%, color-mix(in srgb, var(--ps-brand-wash) 50%, var(--ps-surface)) 100%);
    border: 1px solid var(--ps-line-strong);
    border-radius: 22px;
    padding: 40px clamp(24px, 5vw, 48px);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 26px;
    box-shadow: 0 10px 30px rgba(15, 27, 43, 0.05);
}
.ps-contact-banner-content {
    max-width: 580px;
}
.ps-contact-banner-content h2 {
    margin: 0 0 8px;
    font-size: clamp(1.5rem, 3.5vw, 2.2rem);
}
.ps-contact-banner-content p {
    margin: 0;
    color: var(--ps-text-sub);
    font-size: 1.05rem;
}
.ps-contact-banner-btn {
    font-size: 1.05rem;
    padding: 14px 28px;
    border-radius: 12px;
    white-space: nowrap;
}

/* Member portal - invoice row doors (Pix, slip, collector, agreement, already paid). */
.ps-invoice-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.ps-invoice-actions .ps-btn { min-height: 28px; padding: 4px 10px; font-size: 0.8rem; border-radius: 6px; }
.ps-invoice-actions .is-negotiate { border-color: var(--ps-brand); color: var(--ps-brand-ink); }
.ps-invoice-actions .is-muted { color: var(--ps-text-sub); }
.ps-invoice-actions form { margin: 0; }

/* -- Master node content pages: the landing structure of authored copy --------
   A CMS landing page and a blog article of softpax.com.br are marketing, not
   documentation (Rule 166). These components give an authored body a hero, a
   proof strip, problem/solution cards, benefit cards, a statement, a closing
   call to action, a readable article column and an index of articles. They are
   scoped to `body.ps-lp`, which only the master node's content shell sets, and
   they carry the platform's own palette (the same tokens the home page
   declares) instead of the tenant tokens - a funeral home's site never renders
   them. */
.ps-lp { --lp-navy: #001e2f; --lp-navy-2: #00344f; --lp-blue: #005f89; --lp-sky: #41befd; --lp-sky-soft: #c9e6ff; --lp-amber: #983d00; --lp-amber-dark: #722c00; --lp-ink: #131b2e; --lp-muted: #40484e; --lp-wash: #f2f3ff; --lp-wash-2: #eaedff; --lp-line: #e2e7ff; --lp-white: #ffffff; background: var(--lp-white); color: var(--lp-ink); }
.ps-lp .ps-wrap { max-width: 1440px; }
.ps-lp-main { padding-top: 80px; }
.ps-lp-hero { background: radial-gradient(1200px 520px at 85% -10%, rgba(65, 190, 253, 0.28), transparent 60%), radial-gradient(700px 400px at 0% 110%, rgba(0, 95, 137, 0.55), transparent 60%), var(--lp-navy); color: var(--lp-white); padding: 72px 0 52px; }
.ps-lp-hero-inner { display: flex; flex-direction: column; gap: 18px; }
.ps-lp-hero h1 { color: var(--lp-white); font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.1; margin: 0; max-width: 840px; }
.ps-lp-eyebrow { order: -1; display: inline-flex; align-items: center; gap: 10px; margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lp-sky); }
.ps-lp-eyebrow::before { content: ""; width: 28px; height: 2px; background: var(--lp-sky); border-radius: 2px; }
.ps-lp-lead { margin: 0; max-width: 760px; font-size: clamp(1.08rem, 1.6vw, 1.32rem); line-height: 1.6; color: rgba(255, 255, 255, 0.86); }
.ps-lp-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 10px 0 0; }
.ps-lp .ps-btn-primary, .ps-lp-actions .ps-btn-primary { background: var(--lp-amber); color: var(--lp-white); box-shadow: 0 8px 22px rgba(152, 61, 0, 0.32); }
.ps-lp .ps-btn-primary:hover, .ps-lp-actions .ps-btn-primary:hover { background: var(--lp-amber-dark); }
.ps-lp-hero .ps-btn-outline, .ps-lp-cta .ps-btn-outline, .ps-lp-callout .ps-btn-outline, .ps-lp-section.is-navy .ps-btn-outline { background: rgba(255, 255, 255, 0.08); color: var(--lp-white); border-color: rgba(255, 255, 255, 0.4); }
.ps-lp-hero .ps-btn-outline:hover, .ps-lp-cta .ps-btn-outline:hover, .ps-lp-callout .ps-btn-outline:hover, .ps-lp-section.is-navy .ps-btn-outline:hover { background: rgba(255, 255, 255, 0.16); border-color: var(--lp-white); color: var(--lp-white); }
.ps-lp-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 0; font-size: 0.92rem; color: rgba(255, 255, 255, 0.72); }
.ps-lp-meta time, .ps-lp-meta span { display: inline-flex; align-items: center; gap: 6px; }
.ps-lp-proof { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin-top: 40px; padding-top: 28px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.ps-lp-fact strong { display: block; font-family: var(--ps-font-title); font-size: 1.12rem; line-height: 1.25; color: var(--lp-white); margin-bottom: 4px; }
.ps-lp-fact span { display: block; font-size: 0.88rem; line-height: 1.45; color: rgba(255, 255, 255, 0.7); }
.ps-lp-section { padding: 64px 0; }
.ps-lp-section + .ps-lp-section { border-top: 1px solid var(--lp-line); }
.ps-lp-section.is-wash { background: var(--lp-wash); }
.ps-lp-section.is-navy { background: var(--lp-navy); color: var(--lp-white); }
.ps-lp-section.is-navy h2, .ps-lp-section.is-navy h3, .ps-lp-section.is-navy strong { color: var(--lp-white); }
.ps-lp-section.is-navy .ps-lp-sub, .ps-lp-section.is-navy p { color: rgba(255, 255, 255, 0.82); }
.ps-lp-kicker { display: block; margin: 0 0 10px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase; color: var(--lp-blue); }
.ps-lp-section.is-navy .ps-lp-kicker { color: var(--lp-sky); }
.ps-lp-section h2 { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; max-width: 780px; margin: 0 0 12px; }
.ps-lp-sub { max-width: 740px; margin: 0 0 32px; font-size: 1.08rem; line-height: 1.6; color: var(--lp-muted); }
.ps-lp-pains { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ps-lp-pain, .ps-lp-gain { background: var(--lp-white); border: 1px solid var(--lp-line); border-radius: 14px; padding: 22px 24px; }
.ps-lp-pain { border-top: 4px solid var(--lp-amber); }
.ps-lp-gain { border-top: 4px solid var(--lp-blue); }
.ps-lp-tag { display: inline-block; margin-bottom: 10px; padding: 3px 10px; border-radius: 999px; font-size: 0.72rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ps-lp-pain .ps-lp-tag { background: #ffdbcc; color: var(--lp-amber-dark); }
.ps-lp-gain .ps-lp-tag { background: var(--lp-sky-soft); color: var(--lp-blue); }
.ps-lp-pain strong, .ps-lp-gain strong { display: block; font-family: var(--ps-font-title); font-size: 1.1rem; line-height: 1.3; margin-bottom: 6px; }
.ps-lp-pain p, .ps-lp-gain p { margin: 0; color: var(--lp-muted); font-size: 0.97rem; }
.ps-lp .ps-grid { gap: 20px; }
.ps-lp .ps-feature { background: var(--lp-white); border: 1px solid var(--lp-line); border-left: 0; border-top: 3px solid var(--lp-sky); border-radius: 14px; padding: 24px; transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s; }
.ps-lp .ps-feature:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(0, 30, 47, 0.08); border-color: var(--lp-sky); }
.ps-lp .ps-feature strong { font-size: 1.12rem; line-height: 1.3; color: var(--lp-ink); }
.ps-lp .ps-feature p { color: var(--lp-muted); }
.ps-lp .ps-feature em { display: block; margin-top: 10px; font-style: normal; font-size: 0.86rem; font-weight: 700; color: var(--lp-blue); }
.ps-lp .ps-steps { gap: 18px; }
.ps-lp .ps-step { background: var(--lp-white); border-color: var(--lp-line); }
.ps-lp .ps-step::before { background: var(--lp-navy); color: var(--lp-white); }
.ps-lp .ps-step strong { font-family: var(--ps-font-title); font-size: 1.05rem; }
.ps-lp-quote { max-width: 880px; margin: 0; padding: 8px 0 8px 26px; border-left: 4px solid var(--lp-amber); font-family: var(--ps-font-title); font-size: clamp(1.2rem, 2vw, 1.55rem); font-weight: 600; line-height: 1.45; color: var(--lp-ink); }
.ps-lp-quote small { display: block; margin-top: 12px; font-family: var(--ps-font-body); font-size: 0.95rem; font-weight: 400; color: var(--lp-muted); }
.ps-lp-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 44px 48px; border-radius: 22px; background: radial-gradient(700px 300px at 100% 0%, rgba(65, 190, 253, 0.3), transparent 60%), var(--lp-navy); color: var(--lp-white); }
.ps-lp-cta > div { flex: 1 1 420px; }
.ps-lp-cta h2 { color: var(--lp-white); font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin: 0 0 10px; max-width: 620px; }
.ps-lp-cta p { margin: 0; color: rgba(255, 255, 255, 0.82); max-width: 600px; }
.ps-lp-cta .ps-lp-actions { flex: 0 0 auto; margin: 0; }
.ps-lp-faq { display: grid; gap: 0; max-width: 880px; border: 1px solid var(--lp-line); border-radius: 14px; background: var(--lp-white); overflow: hidden; }
.ps-lp-faq h3 { margin: 0; padding: 20px 24px 6px; font-size: 1.08rem; font-weight: 700; border-top: 1px solid var(--lp-line); }
.ps-lp-faq h3:first-child { border-top: 0; }
.ps-lp-faq p { margin: 0; padding: 0 24px 20px; color: var(--lp-muted); line-height: 1.6; }
.ps-lp-related { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.ps-lp-card { display: block; padding: 20px 22px; border: 1px solid var(--lp-line); border-radius: 14px; background: var(--lp-white); color: var(--lp-ink); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.ps-lp-card:hover { border-color: var(--lp-blue); box-shadow: 0 12px 28px rgba(0, 30, 47, 0.08); transform: translateY(-2px); }
.ps-lp-card strong { display: block; font-family: var(--ps-font-title); font-size: 1.05rem; line-height: 1.3; margin-bottom: 6px; color: var(--lp-ink); }
.ps-lp-card span { display: block; font-size: 0.9rem; line-height: 1.5; color: var(--lp-muted); }
.ps-lp-card em { display: block; margin-top: 12px; font-style: normal; font-size: 0.85rem; font-weight: 700; color: var(--lp-blue); }
.ps-lp-article { width: 100%; max-width: none; margin: 0; font-size: 1.1rem; line-height: 1.75; color: var(--lp-ink); }
.ps-lp-article h2 { font-size: clamp(1.45rem, 2.4vw, 1.8rem); font-weight: 800; letter-spacing: -0.015em; margin: 44px 0 14px; max-width: none; }
.ps-lp-article h3 { font-size: 1.2rem; font-weight: 700; margin: 30px 0 8px; }
.ps-lp-article p { margin: 0 0 18px; }
.ps-lp-article ul, .ps-lp-article ol { margin: 0 0 20px; padding-left: 1.35em; }
.ps-lp-article li { margin-bottom: 8px; }
.ps-lp-article li > p { margin-bottom: 6px; }
.ps-lp-article blockquote { margin: 26px 0; padding: 18px 24px; border-left: 4px solid var(--lp-amber); border-radius: 0 12px 12px 0; background: var(--lp-wash); font-family: var(--ps-font-title); font-size: 1.08rem; }
.ps-lp-article blockquote p { margin: 0; }
.ps-lp-article hr { border: 0; border-top: 1px solid var(--lp-line); margin: 36px 0; }
.ps-lp-article .ps-table-wrap { margin: 0 0 22px; border: 1px solid var(--lp-line); border-radius: 12px; }
.ps-lp-article .ps-table { font-size: 0.95rem; }
.ps-lp-article .ps-table th { background: var(--lp-wash); color: var(--lp-muted); }
.ps-lp-article img { border-radius: 12px; margin: 0 0 18px; }
.ps-lp-takeaways { margin: 0 0 32px; padding: 20px 24px; border: 1px solid var(--lp-line); border-left: 4px solid var(--lp-sky); border-radius: 12px; background: var(--lp-wash); }
.ps-lp-takeaways strong { display: block; margin-bottom: 10px; font-size: 0.76rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--lp-blue); }
.ps-lp-takeaways ul { margin: 0; padding-left: 1.2em; }
.ps-lp-takeaways li { margin-bottom: 6px; font-size: 1rem; }
.ps-lp-callout { margin: 44px 0 0; padding: 30px 32px; border-radius: 16px; background: radial-gradient(600px 240px at 100% 0%, rgba(65, 190, 253, 0.28), transparent 60%), var(--lp-navy); color: var(--lp-white); }
.ps-lp-callout strong { display: block; margin-bottom: 8px; font-family: var(--ps-font-title); font-size: 1.3rem; line-height: 1.3; color: var(--lp-white); }
.ps-lp-callout p { margin: 0 0 18px; color: rgba(255, 255, 255, 0.84); font-size: 1rem; }
.ps-lp-callout .ps-lp-actions { margin: 0; }
.ps-lp-posts { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.ps-lp-post { display: flex; flex-direction: column; gap: 10px; padding: 26px; border: 1px solid var(--lp-line); border-radius: 16px; background: var(--lp-white); transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s; }
.ps-lp-post:hover { border-color: var(--lp-blue); box-shadow: 0 14px 30px rgba(0, 30, 47, 0.08); transform: translateY(-2px); }
.ps-lp-post time { font-size: 0.8rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--lp-blue); }
.ps-lp-post h2 { font-size: 1.25rem; font-weight: 800; line-height: 1.3; margin: 0; max-width: none; }
.ps-lp-post h2 a { color: var(--lp-ink); text-decoration: none; }
.ps-lp-post h2 a:hover { color: var(--lp-blue); }
.ps-lp-post p { margin: 0; color: var(--lp-muted); font-size: 0.97rem; line-height: 1.55; flex: 1 1 auto; }
.ps-lp-post .ps-lp-more { font-weight: 700; color: var(--lp-blue); text-decoration: none; font-size: 0.92rem; }
.ps-lp-post .ps-lp-more:hover { text-decoration: underline; }
.ps-lp-section-foot { margin-top: 40px; padding-top: 32px; border-top: 1px solid var(--lp-line); }
@media (max-width: 720px) {
    .ps-lp-main { padding-top: 72px; }
    .ps-lp-hero { padding: 52px 0 40px; }
    .ps-lp-section { padding: 48px 0; }
    .ps-lp-cta { padding: 30px 26px; border-radius: 16px; }
    .ps-lp-article { font-size: 1.02rem; }
    .ps-lp-callout { padding: 24px; }
}

/* Rule 166, second pass: impact imagery and the full width of the container.
   The hero carries a photograph under a navy veil; an article opens with a
   wide figure; the index cards carry a thumbnail. Images are platform stock
   under /img/cms and /img/brand, chosen per address by MasterContentPage. */
.ps-lp-hero { position: relative; overflow: hidden; }
.ps-lp-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center; opacity: 0.42; z-index: 0; }
.ps-lp-hero::after { content: ""; position: absolute; inset: 0; z-index: 0; background: linear-gradient(90deg, rgba(0, 30, 47, 0.96) 0%, rgba(0, 30, 47, 0.82) 45%, rgba(0, 30, 47, 0.35) 100%); }
.ps-lp-hero > .ps-wrap { position: relative; z-index: 1; }
.ps-lp-hero { padding: 96px 0 64px; min-height: 460px; display: flex; align-items: center; }
.ps-lp-hero h1 { max-width: 980px; }
.ps-lp-figure { margin: 0 0 36px; border-radius: 18px; overflow: hidden; box-shadow: 0 22px 50px rgba(0, 30, 47, 0.18); }
.ps-lp-figure img { width: 100%; aspect-ratio: 21 / 8; object-fit: cover; margin: 0; border-radius: 0; }
.ps-lp-article .ps-lp-takeaways { display: grid; grid-template-columns: 180px 1fr; gap: 8px 28px; align-items: start; }
.ps-lp-article .ps-lp-takeaways ul { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 12px 28px; padding-left: 1.1em; }
.ps-lp-article .ps-table-wrap .ps-table { min-width: 100%; }
.ps-lp-post { padding: 0; overflow: hidden; }
.ps-lp-post-thumb { display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--lp-navy); }
.ps-lp-post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.ps-lp-post:hover .ps-lp-post-thumb img { transform: scale(1.04); }
.ps-lp-post-body { display: flex; flex-direction: column; gap: 10px; padding: 22px 24px 24px; flex: 1 1 auto; }
.ps-lp-posts { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); gap: 26px; }
.ps-lp-section-media { display: grid; gap: 36px; align-items: center; grid-template-columns: 1fr; margin-bottom: 36px; }
@media (min-width: 980px) { .ps-lp-section-media { grid-template-columns: 1.1fr 0.9fr; } }
.ps-lp-section-media img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 18px; box-shadow: 0 22px 50px rgba(0, 30, 47, 0.16); }
@media (max-width: 720px) {
    .ps-lp-hero { padding: 64px 0 44px; min-height: 0; }
    .ps-lp-article .ps-lp-takeaways { grid-template-columns: 1fr; }
    .ps-lp-figure img { aspect-ratio: 16 / 9; }
}