/* PAS Brand Kit — aligned with PAS2025_live visual language */

:root {
    --pas-navy: #014164;
    --pas-navy-logo: #05456B;
    --pas-navy-deep: #013050;
    --pas-steel: #517ea2;
    --pas-sky: #bdd9ee;
    --pas-horizon: #68b8d7;
    --pas-cloud: #adc1de;
    --pas-cloud-shadow: #6b7f91;
    --pas-sun: #c56d19;
    --pas-sun-glare: #ff6633;
    --pas-sunlight: #c07033;
    --pas-bg: #F5FBFD;
    --pas-bg-alt: rgba(1, 65, 100, 0.04);
    --pas-text: #1a2e3b;
    /* Navy-tinted secondary (≥4.5:1 on white and typical frost fills) */
    --pas-text-muted: #4a6270;
    /* Navy-tinted secondary for frost/sky chrome (≥4.5:1 on glass over horizon) */
    --pas-text-on-frost: #2a4a5c;
    --pas-white: #ffffff;
    --pas-glass: rgba(255, 255, 255, 0.78);
    --pas-glass-strong: rgba(255, 255, 255, 0.9);
    --pas-green: #2d8a5e;
    --pas-green-ink: #1f6b48;
    --pas-amber: #d4a012;
    --pas-amber-ink: #9a7209;
    --pas-red: #c0392b;
    --radius-sm: 12px;
    --radius-md: 16px;
    --radius-lg: 30px;
    --shadow-card: 4px 4px 2px 2px rgba(0, 0, 0, 0.08);
    --shadow-soft: 0 4px 20px rgba(1, 65, 100, 0.08);
    --nav-width: 240px;
    --header-height: 64px;
    --transition: 0.22s var(--pas-ease-out);
    --pas-ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --pas-duration-fast: 140ms;
    --pas-duration-state: 220ms;
    --pas-duration-overlay: 320ms;
    --pas-duration-flip: 480ms;
    --pas-scroll-size: 10px;
    --pas-scroll-thumb: rgba(1, 65, 100, 0.32);
    --pas-scroll-thumb-hover: rgba(1, 65, 100, 0.55);
    --pas-scroll-thumb-active: #014164;
    --pas-scroll-track: transparent;
    --focus-ring: 0 0 0 3px rgba(1, 65, 100, 0.1);
    /* Type ramp — DESIGN.md roles (Operate: one scale, no second voice) */
    --pas-font-display: 'Montserrat', sans-serif;
    --pas-font-body: 'Poppins', sans-serif;
    --pas-font-mono: ui-monospace, 'Cascadia Code', 'Consolas', 'Monaco', monospace;
    --pas-text-display: clamp(32px, 5vw, 48px);
    --pas-text-headline: clamp(24px, 3vw, 32px);
    --pas-text-title: 20px;
    --pas-text-lead: clamp(16px, 2.5vw, 18px);
    --pas-text-body: 1rem;
    --pas-text-small: 0.875rem;
    --pas-text-label: 0.75rem;
    --pas-lh-tight: 1.25;
    --pas-lh-body: 1.6;
    --pas-lh-lead: 1.7;
    --pas-measure: 65ch;
    --pas-tracking-label: 0.08em;
}

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

html {
    scroll-behavior: smooth;
    scroll-padding-top: calc(var(--header-height) + env(safe-area-inset-top, 0px) + 24px);
}

body {
    margin: 0;
    font-family: var(--pas-font-body);
    font-size: var(--pas-text-body);
    line-height: var(--pas-lh-body);
    color: var(--pas-text);
    background: var(--pas-horizon);
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
    font-family: var(--pas-font-display);
    line-height: var(--pas-lh-tight);
    margin: 0 0 0.5em;
}

code {
    font-family: var(--pas-font-mono);
    font-size: 0.9em;
    background: rgba(1, 65, 100, 0.08);
    padding: 2px 6px;
    border-radius: 4px;
}

/* PAS scroll chrome: native scrollbar tinted to navy. Track stays
   invisible so glass and sky remain uninterrupted. Do not replace with JS.
   Chromium ignores ::-webkit-scrollbar when scrollbar-width/color are set,
   so those properties stay Firefox-only. */
@supports not selector(::-webkit-scrollbar) {
    html,
    .pas-scroll {
        scrollbar-width: thin;
        scrollbar-color: var(--pas-scroll-thumb) var(--pas-scroll-track);
    }
}

html::-webkit-scrollbar,
.pas-scroll::-webkit-scrollbar {
    width: var(--pas-scroll-size);
    height: var(--pas-scroll-size);
}

html::-webkit-scrollbar-track,
.pas-scroll::-webkit-scrollbar-track {
    background: var(--pas-scroll-track);
    margin: 8px 0;
}

html::-webkit-scrollbar-thumb,
.pas-scroll::-webkit-scrollbar-thumb {
    background-color: var(--pas-scroll-thumb);
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

html::-webkit-scrollbar-thumb:hover,
.pas-scroll::-webkit-scrollbar-thumb:hover {
    background-color: var(--pas-scroll-thumb-hover);
}

html::-webkit-scrollbar-thumb:active,
.pas-scroll::-webkit-scrollbar-thumb:active {
    background-color: var(--pas-scroll-thumb-active);
}

html::-webkit-scrollbar-button,
.pas-scroll::-webkit-scrollbar-button,
html::-webkit-scrollbar-button:single-button,
.pas-scroll::-webkit-scrollbar-button:single-button,
html::-webkit-scrollbar-button:start:decrement,
.pas-scroll::-webkit-scrollbar-button:start:decrement,
html::-webkit-scrollbar-button:end:increment,
.pas-scroll::-webkit-scrollbar-button:end:increment {
    display: none;
    width: 0;
    height: 0;
}

html::-webkit-scrollbar-corner,
.pas-scroll::-webkit-scrollbar-corner {
    background: transparent;
}

#clouds-bg {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
    background: linear-gradient(180deg, var(--pas-horizon) 0%, var(--pas-horizon) 38%, var(--pas-sky) 72%, var(--pas-cloud) 100%);
}

#clouds-bg canvas {
    pointer-events: none;
    display: block;
    width: 100% !important;
    height: 100% !important;
}

.site-header,
.layout {
    position: relative;
    z-index: 1;
}

.site-header {
    z-index: 100;
}

a {
    color: var(--pas-navy);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

.skip-link {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 10000;
    padding: 12px 20px;
    background: var(--pas-navy);
    color: var(--pas-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    border-radius: 0 0 var(--radius-sm) 0;
    transform: translateY(-120%);
    transition: transform 0.2s ease;
}

.skip-link:focus {
    transform: translateY(0);
    outline: 2px solid var(--pas-white);
    outline-offset: 2px;
}

:focus-visible {
    outline: 2px solid var(--pas-navy);
    outline-offset: 2px;
}

.btn:focus-visible,
.btn-ai:focus-visible,
.nav-link:focus-visible,
.nav-toggle:focus-visible,
.process-step:focus-visible,
.line-btn:focus-visible,
.areas-btn:focus-visible,
.pillar:focus-visible,
.palette-tab:focus-visible,
.twin-tab:focus-visible,
.copy-tab:focus-visible,
.weight-btn:focus-visible,
.color-swatch:focus-visible,
.flip-card:focus-visible,
.modal-close:focus-visible,
.brand-lockup:focus-visible {
    outline: 2px solid var(--pas-navy);
    outline-offset: 2px;
}

/* Toast */
.toast {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%) translateY(12px);
    background: var(--pas-navy);
    color: var(--pas-white);
    padding: 12px 24px;
    border-radius: var(--radius-lg);
    font-size: var(--pas-text-small);
    font-weight: 500;
    z-index: 1000;
    opacity: 0;
    transition: transform var(--pas-duration-state) var(--pas-ease-out), opacity var(--pas-duration-fast) ease;
    pointer-events: none;
    box-shadow: var(--shadow-soft);
}

.toast.show {
    transform: translateX(-50%) translateY(0);
    opacity: 1;
}

body.has-sticky-checklist .toast {
    bottom: max(80px, calc(64px + env(safe-area-inset-bottom, 0px)));
}

::selection {
    background: rgba(1, 65, 100, 0.22);
    color: var(--pas-navy-deep);
}

input,
textarea,
select {
    caret-color: var(--pas-navy);
}

/* Header */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.62);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.45);
    height: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    padding-top: env(safe-area-inset-top, 0px);
}

.header-inner {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.brand-lockup {
    display: flex;
    align-items: center;
    gap: 12px;
    text-decoration: none;
    color: inherit;
}

.brand-lockup:hover {
    text-decoration: none;
}

.brand-logo {
    height: 36px;
    width: auto;
}

.brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.brand-name {
    font-family: var(--pas-font-display);
    font-weight: 700;
    font-size: 1.125rem;
    color: var(--pas-navy);
}

.brand-sub {
    font-size: var(--pas-text-label);
    color: var(--pas-text-on-frost);
    font-weight: 500;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-ai {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 18px;
    border-radius: var(--radius-lg);
    font-family: var(--pas-font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.btn-ai-label-short {
    display: none;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 11px;
    min-width: 44px;
    min-height: 44px;
}

.nav-toggle span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--pas-navy);
    border-radius: 2px;
    transition: var(--transition);
}

/* Layout */
.layout {
    display: flex;
    max-width: 1400px;
    margin: 0 auto;
    min-height: calc(100vh - var(--header-height));
}

/* Side nav */
.side-nav {
    width: var(--nav-width);
    flex-shrink: 0;
    padding: 32px 8px 32px 20px;
    position: sticky;
    top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
    height: calc(100vh - var(--header-height) - env(safe-area-inset-top, 0px));
    height: calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px));
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    border-right: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.42);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.side-nav::-webkit-scrollbar-thumb {
    background-color: rgba(1, 65, 100, 0.38);
}

.side-nav:hover::-webkit-scrollbar-thumb,
.side-nav:focus-within::-webkit-scrollbar-thumb {
    background-color: var(--pas-scroll-thumb-hover);
}

.nav-label {
    font-family: var(--pas-font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: var(--pas-tracking-label);
    color: var(--pas-text-on-frost);
    margin: 0 0 12px 12px;
}

.nav-label-toc {
    margin-top: 28px;
}

.nav-toc-gate {
    margin: 8px 0 0 12px;
    padding: 0 4px 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--pas-text-on-frost);
    max-width: 18rem;
}

.nav-toc-gate[hidden] {
    display: none;
}

.side-nav.toc-awaiting-job .nav-group.toc-collapsed,
.side-nav .nav-group.toc-collapsed {
    display: none;
}

.nav-jobs {
    margin: 0 0 4px;
}

.nav-jobs-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.nav-job {
    display: block;
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(1, 65, 100, 0.12);
    background: rgba(255, 255, 255, 0.72);
    font-family: var(--pas-font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--pas-navy);
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    min-height: 40px;
}

.nav-job:hover {
    background: var(--pas-white);
    border-color: rgba(1, 65, 100, 0.28);
    text-decoration: none;
}

.nav-job:focus-visible {
    outline: 2px solid var(--pas-navy);
    outline-offset: 2px;
}

.nav-group {
    margin: 0 0 20px;
}

.nav-group:last-of-type {
    margin-bottom: 8px;
}

.nav-group-label {
    font-family: var(--pas-font-display);
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--pas-navy);
    margin: 0 0 6px 12px;
    opacity: 0.72;
}

.side-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.side-nav li {
    margin-bottom: 2px;
}

.nav-link {
    display: block;
    padding: 10px 12px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    color: var(--pas-text-on-frost);
    text-decoration: none;
    transition: var(--transition);
    border-left: 3px solid transparent;
}

.nav-link:hover {
    background: var(--pas-bg-alt);
    color: var(--pas-navy);
    text-decoration: none;
}

.nav-link.active {
    background: rgba(1, 65, 100, 0.08);
    color: var(--pas-navy);
    border-left-color: var(--pas-navy);
    font-weight: 600;
}

.nav-meta {
    margin-top: 24px;
    padding: 12px;
    font-size: 12px;
    color: var(--pas-text-on-frost);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

/* Content */
.content {
    flex: 1;
    min-width: 0;
    padding: 40px 48px 80px;
}

/* Hero */
.hero {
    text-align: center;
    padding: 48px 24px 56px;
    margin-bottom: 48px;
    background: rgba(255, 255, 255, 0.32);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(1, 65, 100, 0.12);
}

.hero h1 {
    font-size: var(--pas-text-display);
    font-weight: 700;
    color: var(--pas-navy);
    margin-bottom: 16px;
    text-wrap: balance;
}

.hero-lead {
    font-size: var(--pas-text-lead);
    color: var(--pas-navy);
    max-width: var(--pas-measure);
    margin: 0 auto 28px;
    line-height: var(--pas-lh-lead);
}

.hero-jobs {
    max-width: 720px;
    margin: 0 auto;
    text-align: left;
}

.hero-jobs-label {
    font-family: var(--pas-font-display);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: var(--pas-tracking-label);
    text-transform: uppercase;
    color: var(--pas-text-on-frost);
    margin: 0 0 12px;
    text-align: center;
}

.hero-jobs-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.hero-jobs-grid .hero-job:last-child {
    grid-column: 1 / -1;
}

.hero-job {
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
    padding: 16px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(1, 65, 100, 0.12);
    background: rgba(255, 255, 255, 0.72);
    color: var(--pas-navy);
    text-decoration: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    min-height: 44px;
}

.hero-job strong {
    font-family: var(--pas-font-display);
    font-size: 0.9375rem;
    font-weight: 600;
}

.hero-job span {
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--pas-text-on-frost);
}

.hero-job:hover {
    border-color: rgba(1, 65, 100, 0.28);
    background: var(--pas-white);
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 65, 100, 0.12);
}

.hero-job:focus-visible {
    outline: 2px solid var(--pas-navy);
    outline-offset: 2px;
}

.hero-job.is-job-active {
    background: var(--pas-navy);
    border-color: var(--pas-navy);
    color: var(--pas-white);
    box-shadow: 0 4px 12px rgba(1, 65, 100, 0.25);
}

.hero-job.is-job-active span {
    color: rgba(255, 255, 255, 0.82);
}

.hero-job.is-job-active:hover {
    background: var(--pas-navy-deep);
    border-color: var(--pas-navy-deep);
    color: var(--pas-white);
}

.hero-chrome-note {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0 0.35em;
    margin: 12px 0 0;
    text-align: center;
    font-size: 0.875rem;
    line-height: 1.5;
    color: var(--pas-text-on-frost);
}

.hero-chrome-link {
    display: inline-flex;
    align-items: center;
    margin: 0;
    padding: 10px 2px;
    min-height: 44px;
    border: 0;
    background: none;
    font: inherit;
    font-weight: 600;
    color: var(--pas-navy);
    text-decoration: underline;
    text-underline-offset: 2px;
    cursor: pointer;
    vertical-align: middle;
}

.hero-chrome-link:hover {
    color: var(--pas-navy-deep);
}

.hero-chrome-link:focus-visible {
    outline: 2px solid var(--pas-navy);
    outline-offset: 2px;
    border-radius: 12px;
}

.proof-line {
    font-size: 0.875rem;
    color: var(--pas-text-on-frost);
    margin: 0 0 24px;
    line-height: 1.5;
}

.job-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 16px;
    margin: 0 0 28px;
    padding: 14px 18px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(1, 65, 100, 0.12);
    background: rgba(255, 255, 255, 0.78);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: var(--shadow-soft);
}

.job-filter-bar[hidden] {
    display: none;
}

.job-filter-copy {
    margin: 0;
    font-size: 0.875rem;
    color: var(--pas-navy);
    line-height: 1.45;
}

.job-filter-meta {
    color: var(--pas-text-on-frost);
    font-weight: 400;
}

.job-filter-bar .btn-sm {
    min-height: 44px;
    padding: 10px 20px;
}

main.content.job-filtered .section.job-collapsed {
    display: none;
}

.nav-group.job-nav-collapsed,
.nav-group .job-nav-collapsed {
    display: none;
}

.side-nav li.job-nav-collapsed {
    display: none;
}

.nav-job.is-job-active {
    background: var(--pas-navy);
    border-color: var(--pas-navy);
    color: var(--pas-white);
    box-shadow: 0 4px 12px rgba(1, 65, 100, 0.2);
}

.nav-job.is-job-active:hover {
    background: var(--pas-navy-deep);
    border-color: var(--pas-navy-deep);
    color: var(--pas-white);
}

.modal-form label[hidden] {
    display: none;
}

/* Sections */
.section {
    margin-bottom: 64px;
    background: var(--pas-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-md);
    padding: 40px 32px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: 0 8px 32px rgba(1, 65, 100, 0.08);
    content-visibility: auto;
    contain-intrinsic-size: auto 720px;
}

.section-alt {
    background: var(--pas-glass-strong);
    margin-left: 0;
    margin-right: 0;
    padding: 40px 32px;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(1, 65, 100, 0.08);
}

.section-sky {
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: none;
    box-shadow: none;
    padding: 0;
}

.section-sky .section-header {
    background: var(--pas-glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: var(--radius-md);
    padding: 32px;
    border: 1px solid rgba(255, 255, 255, 0.5);
    margin-bottom: 24px;
}

.sky-stage {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 380px;
    padding: 48px 16px;
    margin-bottom: 24px;
}

.sky-card {
    width: min(420px, 100%);
    padding: 48px 40px 40px;
    border-radius: 32px;
    background: rgba(255, 255, 255, 0.22);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1.5px solid rgba(1, 65, 100, 0.1);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.sky-card-logo {
    height: 40px;
    width: auto;
    margin-bottom: 28px;
}

.sky-card-title {
    font-family: 'Montserrat', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--pas-navy);
    margin: 0 0 10px;
}

.sky-card-copy {
    font-size: 1rem;
    color: var(--pas-navy);
    line-height: 1.45;
    margin: 0 0 28px;
}

.sky-progress {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 13px;
    color: var(--pas-navy);
}

.sky-progress-track {
    flex: 1;
    height: 8px;
    border-radius: 5px;
    background: linear-gradient(90deg, var(--pas-horizon) 0%, var(--pas-navy) 100%);
    box-shadow: 0 2px 8px rgba(1, 65, 100, 0.1);
    overflow: hidden;
    position: relative;
}

.sky-progress-fill {
    display: none;
}

.section-header {
    margin-bottom: 32px;
}

.section-num {
    display: inline-block;
    font-family: var(--pas-font-display);
    font-size: var(--pas-text-label);
    font-weight: 700;
    color: var(--pas-text-on-frost);
    letter-spacing: var(--pas-tracking-label);
    margin-bottom: 8px;
}

.section-header h2 {
    font-size: var(--pas-text-headline);
    font-weight: 700;
    color: var(--pas-navy);
    margin-bottom: 8px;
    text-wrap: balance;
}

.section-header p {
    color: var(--pas-text-muted);
    margin: 0;
    font-size: var(--pas-text-body);
    max-width: var(--pas-measure);
    line-height: var(--pas-lh-body);
}

/* Cards */
.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.card {
    background: var(--pas-glass-strong);
    border-radius: var(--radius-md);
    padding: 24px;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(1, 65, 100, 0.04);
}

.card-accent {
    border-left: 4px solid var(--pas-navy);
}

.card h3 {
    font-size: 14px;
    font-weight: 600;
    color: var(--pas-text-on-frost);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 12px;
}

.card-highlight {
    font-family: var(--pas-font-display);
    font-size: var(--pas-text-title);
    font-weight: 600;
    color: var(--pas-navy);
    margin: 0 0 12px;
}

.card-note {
    font-size: var(--pas-text-small);
    color: var(--pas-text-muted);
    margin: 0;
    line-height: var(--pas-lh-body);
}

.inline-list {
    list-style: none;
    padding: 0;
    margin: 0 0 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.tag {
    display: inline-block;
    background: rgba(1, 65, 100, 0.08);
    color: var(--pas-navy);
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: 13px;
    font-weight: 500;
}

.tag-with-icon {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 12px 4px 6px;
}

.tag-with-icon img {
    width: 22px;
    height: 22px;
    object-fit: contain;
}

.callout {
    background: rgba(1, 65, 100, 0.05);
    border-left: 3px solid var(--pas-navy);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 15px;
    color: var(--pas-text);
}

.callout-product {
    margin-bottom: 16px;
}

.callout-product h3 {
    font-size: 16px;
    color: var(--pas-navy);
    margin-bottom: 8px;
}

.callout-product p {
    margin: 0 0 10px;
    line-height: 1.7;
}

.callout-tagline {
    font-size: 14px;
    margin-bottom: 0 !important;
    color: var(--pas-text-muted);
}

/* Producto */
.process-block,
.audience-block,
.proof-block,
.app-block {
    margin-bottom: 40px;
}

.process-block h3,
.audience-block h3,
.proof-block h3,
.app-block h3 {
    font-size: 18px;
    color: var(--pas-navy);
    margin-bottom: 8px;
}

.process-subtitle,
.audience-lead,
.app-lead {
    color: var(--pas-text-muted);
    margin: 0 0 20px;
    font-size: 15px;
}

.process-steps {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 16px;
}

.process-step {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 18px;
    min-height: 44px;
    border: 2px solid rgba(1, 65, 100, 0.12);
    border-radius: var(--radius-lg);
    background: var(--pas-white);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    transition: var(--transition);
    flex: 1;
    min-width: 160px;
}

.process-step:hover {
    border-color: var(--pas-steel);
}

.process-step.active {
    background: var(--pas-navy);
    border-color: var(--pas-navy);
    color: var(--pas-white);
}

.step-num {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(1, 65, 100, 0.1);
    font-weight: 700;
    font-size: 13px;
    flex-shrink: 0;
}

.process-step.active .step-num {
    background: rgba(255, 255, 255, 0.2);
    color: var(--pas-white);
}

.step-title {
    font-size: 13px;
    font-weight: 600;
    text-align: left;
}

.process-panel {
    background: var(--pas-navy);
    color: var(--pas-white);
    padding: 24px 28px;
    border-radius: var(--radius-md);
}

.process-panel p {
    margin: 0;
    font-size: 16px;
    line-height: 1.6;
}

.audience-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.audience-card {
    background: var(--pas-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border-top: 3px solid var(--pas-steel);
}

.audience-card h4 {
    font-size: 15px;
    color: var(--pas-navy);
    margin-bottom: 8px;
}

.audience-card-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.audience-card-head img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    flex-shrink: 0;
}

.audience-card-head h4 {
    margin-bottom: 0;
}

.audience-card p {
    margin: 0;
    font-size: 14px;
    color: var(--pas-text-muted);
    line-height: 1.6;
}

.proof-list {
    margin: 0;
    padding-left: 24px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: var(--pas-measure);
}

.proof-list li {
    font-size: 0.9375rem;
    color: var(--pas-text);
    line-height: 1.65;
    padding-left: 8px;
}

.app-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.app-feature {
    background: var(--pas-white);
    padding: 24px;
    border-radius: var(--radius-md);
    text-align: center;
    box-shadow: var(--shadow-card);
}

.app-feature-icon {
    display: block;
    font-size: 28px;
    color: var(--pas-text-on-frost);
    margin-bottom: 12px;
}

.app-feature-icon-img {
    display: block;
    width: 64px;
    height: 64px;
    object-fit: contain;
    margin: 0 auto 12px;
}

.app-feature h4 {
    font-size: 15px;
    color: var(--pas-navy);
    margin-bottom: 8px;
}

.app-feature p {
    margin: 0;
    font-size: 13px;
    color: var(--pas-text-muted);
    line-height: 1.5;
}

.block-heading {
    font-size: 18px;
    color: var(--pas-navy);
    margin: 40px 0 8px;
}

.motion-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
    margin: 24px 0 8px;
}

.motion-card {
    background: var(--pas-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.motion-card h3 {
    font-size: 16px;
    color: var(--pas-navy);
    margin: 10px 0 8px;
}

.motion-card p {
    margin: 0;
    font-size: 14px;
    color: var(--pas-text-muted);
    line-height: 1.6;
}

.line-switch,
.areas-toggle {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 16px 0 20px;
}

.line-btn,
.areas-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    min-height: 44px;
    border: 2px solid rgba(1, 65, 100, 0.12);
    border-radius: var(--radius-lg);
    background: var(--pas-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--pas-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.line-btn img {
    width: 28px;
    height: 28px;
    object-fit: contain;
    flex-shrink: 0;
}

.line-btn:hover,
.areas-btn:hover {
    border-color: var(--pas-steel);
    color: var(--pas-navy);
}

.line-btn.active,
.areas-btn.active {
    background: var(--pas-navy);
    border-color: var(--pas-navy);
    color: var(--pas-white);
}

.line-panel {
    background: var(--pas-white);
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border-left: 4px solid var(--pas-navy);
}

.line-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.line-panel-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.line-panel-icon {
    width: 56px;
    height: 56px;
    object-fit: contain;
    flex-shrink: 0;
}

.line-panel-header h4 {
    font-size: 22px;
    color: var(--pas-navy);
    margin: 0;
}

.line-panel p {
    font-size: 15px;
    color: var(--pas-text);
    line-height: 1.65;
    margin: 0 0 12px;
}

.line-offer {
    color: var(--pas-text-muted) !important;
}

.line-buyers {
    margin: 0 0 16px;
    padding-left: 20px;
    color: var(--pas-text);
}

.line-buyers li {
    margin-bottom: 6px;
    font-size: 15px;
}

.line-rule {
    background: rgba(1, 65, 100, 0.06);
    border-left: 3px solid var(--pas-navy);
    padding: 14px 16px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 15px;
    font-weight: 500;
    color: var(--pas-navy);
    margin-bottom: 12px;
}

.line-not {
    font-size: 14px !important;
    color: var(--pas-text-muted) !important;
    margin-bottom: 0 !important;
}

.areas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 12px;
    margin-bottom: 32px;
}

.area-card {
    background: var(--pas-white);
    padding: 18px 16px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    text-align: left;
}

.area-card h4 {
    font-size: 14px;
    color: var(--pas-navy);
    margin: 0 0 8px;
}

.area-card p {
    margin: 0;
    font-size: 13px;
    color: var(--pas-text-muted);
    line-height: 1.5;
}

.area-card-swap {
    border-top: 3px solid var(--pas-steel);
}

.b2b-block {
    margin-top: 8px;
}

.b2b-block h3 {
    font-size: 18px;
    color: var(--pas-navy);
    margin-bottom: 16px;
}

/* Digital Twin */
.twin-disclaimer {
    background: rgba(1, 65, 100, 0.06);
    border-left: 3px solid var(--pas-navy);
    padding: 16px 20px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 15px;
    margin-bottom: 24px;
    line-height: 1.6;
}

.twin-quote {
    font-size: clamp(16px, 2.2vw, 20px);
    font-style: italic;
}

.twin-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: center;
    margin: -12px 0 24px;
}

.twin-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-bottom: 28px;
}

.twin-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.twin-tab {
    padding: 10px 18px;
    min-height: 44px;
    border: 2px solid rgba(1, 65, 100, 0.12);
    border-radius: var(--radius-lg);
    background: var(--pas-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--pas-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.twin-tab:hover {
    border-color: var(--pas-steel);
    color: var(--pas-navy);
}

.twin-tab.active {
    background: var(--pas-navy);
    border-color: var(--pas-navy);
    color: var(--pas-white);
}

.twin-panel {
    display: none;
}

.twin-panel.active,
.twin-panel:not([hidden]) {
    display: block;
}

.twin-panel[hidden] {
    display: none !important;
}

.twin-panel h3 {
    font-size: 16px;
    color: var(--pas-navy);
    margin: 0 0 8px;
}

.twin-panel p {
    color: var(--pas-text-muted);
    margin: 0 0 20px;
    line-height: 1.7;
}

.twin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 16px;
}

.twin-card {
    background: var(--pas-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    border-top: 3px solid var(--pas-steel);
}

.twin-card h4 {
    font-size: 15px;
    color: var(--pas-navy);
    margin: 0 0 8px;
}

.twin-card p {
    margin: 0;
    font-size: 14px;
    color: var(--pas-text-muted);
    line-height: 1.6;
}

.twin-note {
    margin-top: 20px;
    font-size: 14px;
}

.twin-prompt-preview {
    max-height: 360px;
}

/* Esencia */
.essence-quote {
    font-family: 'Montserrat', sans-serif;
    font-size: clamp(18px, 2.5vw, 22px);
    font-weight: 500;
    font-style: italic;
    color: var(--pas-navy);
    text-align: center;
    margin: 0 0 32px;
    padding: 24px;
    border: none;
    background: var(--pas-bg-alt);
    border-radius: var(--radius-md);
}

.pillars {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    margin-bottom: 24px;
}

.pillar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    min-height: 44px;
    border: 2px solid rgba(1, 65, 100, 0.12);
    border-radius: var(--radius-lg);
    background: var(--pas-white);
    cursor: pointer;
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--pas-text-muted);
    transition: var(--transition);
}

.pillar:hover {
    border-color: var(--pas-steel);
    color: var(--pas-navy);
}

.pillar.active {
    background: var(--pas-navy);
    border-color: var(--pas-navy);
    color: var(--pas-white);
}

.pillar-icon {
    font-size: 14px;
}

.pillar-panel {
    background: var(--pas-steel);
    color: var(--pas-white);
    padding: 28px 32px;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 32px;
    transition: var(--transition);
}

.pillar-panel h3 {
    font-size: 22px;
    margin-bottom: 8px;
}

.pillar-panel p {
    margin: 0;
    opacity: 0.95;
    font-size: 16px;
}

.positioning-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.position-card {
    background: var(--pas-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.position-card h4 {
    font-size: 16px;
    color: var(--pas-green);
    margin-bottom: 12px;
}

.position-card-not h4 {
    color: var(--pas-red);
}

.position-card ul {
    margin: 0;
    padding-left: 20px;
    color: var(--pas-text-muted);
    font-size: 15px;
}

.position-card li {
    margin-bottom: 6px;
}

/* Logo */
.logo-showcase {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.logo-variant {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 32px 24px;
    border-radius: var(--radius-md);
    gap: 16px;
    min-height: 160px;
}

.logo-variant img {
    max-height: 64px;
    max-width: 80%;
    object-fit: contain;
}

.logo-variant span {
    font-size: 13px;
    color: var(--pas-text-muted);
    font-weight: 500;
}

.logo-variant-light {
    background: var(--pas-white);
    border: 1px solid rgba(1, 65, 100, 0.08);
    box-shadow: var(--shadow-card);
}

.logo-variant-dark {
    background: var(--pas-navy);
}

.logo-variant-dark span {
    color: rgba(255, 255, 255, 0.7);
}

.logo-variant-header {
    background: linear-gradient(180deg, var(--pas-sky) 0%, var(--pas-white) 100%);
    border: 1px solid rgba(1, 65, 100, 0.08);
}

.logo-variant-sky {
    background: transparent;
    border: 1.5px dashed rgba(1, 65, 100, 0.28);
    box-shadow: none;
}

.logo-variant-sky span {
    color: var(--pas-navy);
}

.clearspace-demo {
    margin-bottom: 32px;
}

.clearspace-demo h3 {
    font-size: 18px;
    color: var(--pas-navy);
    margin-bottom: 8px;
}

.clearspace-visual {
    display: flex;
    justify-content: center;
    margin: 24px 0;
}

.clearspace-box {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(1, 65, 100, 0.2);
    border-radius: var(--radius-sm);
}

.clearspace-padding {
    position: absolute;
    inset: 0;
    background: rgba(189, 217, 238, 0.35);
    border-radius: var(--radius-sm);
    pointer-events: none;
}

.clearspace-box img {
    position: relative;
    z-index: 1;
    height: 48px;
    width: auto;
    padding: 24px;
}

.slider-label {
    display: block;
    text-align: center;
    font-size: 14px;
    color: var(--pas-text-muted);
    margin-bottom: 8px;
}

input[type="range"] {
    width: 100%;
    max-width: 320px;
    display: block;
    margin: 0 auto;
    accent-color: var(--pas-navy);
}

.rules-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 20px;
}

.rule {
    padding: 24px;
    border-radius: var(--radius-md);
}

.rule h4 {
    font-size: 15px;
    margin-bottom: 12px;
}

.rule ul {
    margin: 0;
    padding-left: 20px;
    font-size: 14px;
}

.rule-do {
    background: rgba(45, 138, 94, 0.08);
    border: 1px solid rgba(45, 138, 94, 0.2);
}

.rule-do h4 { color: var(--pas-green); }

.rule-dont {
    background: rgba(192, 57, 43, 0.06);
    border: 1px solid rgba(192, 57, 43, 0.15);
}

.rule-dont h4 { color: var(--pas-red); }

/* Iconografía de secciones */
.section-icon-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin: 16px 0 8px;
}

.section-icon-grid-two {
    grid-template-columns: repeat(2, minmax(0, 280px));
}

.section-icon-grid figure {
    margin: 0;
    padding: 20px 16px 16px;
    border-radius: var(--radius-md);
    background: var(--pas-white);
    box-shadow: var(--shadow-card);
    text-align: center;
}

.section-icon-grid img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    display: block;
    margin: 0 auto 12px;
}

.section-icon-grid figcaption {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.section-icon-grid strong {
    font-size: 14px;
    color: var(--pas-navy);
}

.section-icon-grid span {
    font-size: 12px;
    color: var(--pas-text-muted);
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
}

.icon-usage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin: 16px 0 32px;
}

.icon-usage figure {
    margin: 0;
    padding: 28px 24px 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.icon-usage img {
    width: 140px;
    height: 140px;
    object-fit: contain;
    display: block;
    margin: 0 auto 16px;
}

.icon-usage figcaption {
    font-size: 13px;
    line-height: 1.5;
    color: var(--pas-text-muted);
    text-align: center;
}

.icon-usage-light {
    background: var(--pas-white);
}

.icon-usage-navy {
    background: var(--pas-navy);
}

.icon-usage-navy figcaption {
    color: rgba(255, 255, 255, 0.78);
}

/* Colors */
.palette-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.palette-tab {
    padding: 10px 20px;
    min-height: 44px;
    border: 2px solid rgba(1, 65, 100, 0.12);
    border-radius: var(--radius-lg);
    background: var(--pas-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--pas-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.palette-tab:hover {
    border-color: var(--pas-steel);
    color: var(--pas-navy);
}

.palette-tab.active {
    background: var(--pas-navy);
    border-color: var(--pas-navy);
    color: var(--pas-white);
}

.palette-panel {
    display: none;
    margin-bottom: 32px;
}

.palette-panel.active,
.palette-panel:not([hidden]) {
    display: block;
}

.palette-panel[hidden] {
    display: none !important;
}

.color-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 16px;
}

.color-swatch {
    border: none;
    border-radius: var(--radius-md);
    overflow: hidden;
    cursor: pointer;
    background: var(--pas-white);
    box-shadow: var(--shadow-card);
    transition: transform var(--transition), box-shadow var(--transition);
    text-align: left;
    padding: 0;
    font-family: inherit;
}

.color-swatch:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(1, 65, 100, 0.15);
}

.color-swatch:active {
    transform: translateY(0);
}

.color-swatch-fill {
    height: 80px;
    width: 100%;
}

.color-swatch-info {
    padding: 12px;
}

.color-swatch-name {
    display: block;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: var(--pas-navy);
    margin-bottom: 2px;
}

.color-swatch-hex {
    display: block;
    font-size: 12px;
    color: var(--pas-text-muted);
    font-family: 'Poppins', monospace;
}

.contrast-demo h3 {
    font-size: 18px;
    color: var(--pas-navy);
    margin-bottom: 16px;
}

.contrast-pairs {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
}

.contrast-pair {
    background: var(--bg, var(--pas-navy));
    color: var(--fg, white);
    padding: 20px;
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 14px;
}

.contrast-pair span:last-child {
    font-family: monospace;
    opacity: 0.8;
    font-size: 12px;
}

/* Typography */
.type-showcase {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 40px;
}

.type-family {
    background: var(--pas-white);
    padding: 28px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.type-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
}

.type-name {
    font-family: var(--pas-font-display);
    font-size: var(--pas-text-title);
    font-weight: 700;
    color: var(--pas-navy);
}

.type-role {
    font-size: var(--pas-text-small);
    color: var(--pas-text-muted);
}

.type-sample {
    margin: 0 0 16px;
    color: var(--pas-text);
    transition: font-weight var(--transition);
    max-width: var(--pas-measure);
}

.type-montserrat {
    font-family: var(--pas-font-display);
    font-size: var(--pas-text-display);
    font-weight: 700;
    line-height: var(--pas-lh-tight);
    color: var(--pas-navy);
    text-wrap: balance;
}

.type-poppins {
    font-family: var(--pas-font-body);
    font-size: var(--pas-text-body);
    font-weight: 400;
    line-height: var(--pas-lh-lead);
}

.type-scale h3 {
    font-size: var(--pas-text-title);
    font-weight: 600;
    color: var(--pas-navy);
    margin-bottom: 16px;
}

.scale-row {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr) auto;
    gap: 16px;
    align-items: baseline;
    padding: 16px 0;
    border-bottom: 1px solid rgba(1, 65, 100, 0.08);
}

.scale-tag {
    font-size: 0.6875rem;
    font-weight: 700;
    font-family: var(--pas-font-display);
    color: var(--pas-text-on-frost);
    letter-spacing: var(--pas-tracking-label);
    text-transform: uppercase;
}

.scale-h1 {
    font-family: var(--pas-font-display);
    font-size: var(--pas-text-display);
    font-weight: 700;
    line-height: var(--pas-lh-tight);
    color: var(--pas-navy);
    text-wrap: balance;
}

.scale-h2 {
    font-family: var(--pas-font-display);
    font-size: var(--pas-text-headline);
    font-weight: 700;
    line-height: var(--pas-lh-tight);
    color: var(--pas-navy);
}

.scale-h3 {
    font-family: var(--pas-font-display);
    font-size: var(--pas-text-title);
    font-weight: 600;
    line-height: var(--pas-lh-tight);
    color: var(--pas-navy);
}

.scale-body {
    font-family: var(--pas-font-body);
    font-size: var(--pas-text-body);
    font-weight: 400;
    line-height: var(--pas-lh-body);
    color: var(--pas-text);
    max-width: var(--pas-measure);
}

.scale-small {
    font-family: var(--pas-font-body);
    font-size: var(--pas-text-small);
    font-weight: 400;
    line-height: var(--pas-lh-body);
    color: var(--pas-text-muted);
}

.scale-label {
    font-family: var(--pas-font-display);
    font-size: var(--pas-text-label);
    font-weight: 600;
    letter-spacing: var(--pas-tracking-label);
    text-transform: uppercase;
    color: var(--pas-navy);
}

.scale-meta {
    font-size: var(--pas-text-label);
    color: var(--pas-text-muted);
    font-family: var(--pas-font-mono);
    white-space: nowrap;
}

.weight-picker {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.weight-btn {
    padding: 10px 16px;
    min-height: 44px;
    border: 1px solid rgba(1, 65, 100, 0.15);
    border-radius: var(--radius-lg);
    background: var(--pas-white);
    font-size: 12px;
    font-weight: 500;
    color: var(--pas-text-muted);
    cursor: pointer;
    transition: var(--transition);
}

.weight-btn:hover {
    border-color: var(--pas-navy);
    color: var(--pas-navy);
}

.weight-btn.active {
    background: var(--pas-navy);
    border-color: var(--pas-navy);
    color: var(--pas-white);
}

/* Voice */
.voice-matrix {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 32px;
    max-width: 560px;
}

.voice-axis {
    display: grid;
    grid-template-columns: 80px 1fr 80px;
    align-items: center;
    gap: 12px;
}

.axis-label {
    font-size: 12px;
    color: var(--pas-text-muted);
    font-weight: 500;
}

.axis-high {
    text-align: right;
}

.axis-track {
    position: relative;
    height: 8px;
    background: rgba(1, 65, 100, 0.1);
    border-radius: 4px;
}

.axis-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 18px;
    height: 18px;
    background: var(--pas-navy);
    border: 3px solid var(--pas-white);
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(1, 65, 100, 0.3);
}

.copy-toggle {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.copy-tab {
    padding: 10px 24px;
    min-height: 44px;
    border: 2px solid rgba(1, 65, 100, 0.12);
    border-radius: var(--radius-lg);
    background: var(--pas-white);
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.copy-tab.active {
    background: var(--pas-navy);
    border-color: var(--pas-navy);
    color: var(--pas-white);
}

.copy-examples {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 32px;
}

.copy-examples.hidden {
    display: none;
}

.copy-card {
    padding: 20px 24px;
    border-radius: var(--radius-md);
    font-size: 15px;
    line-height: 1.6;
}

.copy-card p {
    margin: 0;
}

.copy-good {
    background: rgba(45, 138, 94, 0.08);
    border-left: 3px solid var(--pas-green);
}

.copy-bad {
    background: rgba(192, 57, 43, 0.06);
    border-left: 3px solid var(--pas-red);
}

.voice-principles {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}

.principle {
    background: var(--pas-white);
    padding: 20px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.principle strong {
    font-family: 'Montserrat', sans-serif;
    color: var(--pas-navy);
    font-size: 15px;
}

.principle span {
    font-size: 13px;
    color: var(--pas-text-muted);
}

/* Components */
.playground {
    background: var(--pas-white);
    border-radius: var(--radius-md);
    padding: 24px;
    margin-bottom: 32px;
    box-shadow: var(--shadow-card);
}

.playground-controls {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.playground-controls label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pas-text-muted);
}

.playground-controls select {
    padding: 8px 12px;
    border: 1px solid rgba(1, 65, 100, 0.15);
    border-radius: var(--radius-sm);
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--pas-navy);
    background: var(--pas-white);
    min-width: 180px;
}

.playground-preview {
    display: flex;
    justify-content: center;
    padding: 32px;
    background: var(--pas-bg);
    border-radius: var(--radius-sm);
}

.component-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.component-card {
    background: var(--pas-white);
    padding: 24px;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.component-card-wide {
    grid-column: 1 / -1;
}

.component-card h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    font-weight: 600;
    color: var(--pas-text-on-frost);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 16px;
    line-height: 1.25;
}

.component-demo {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.badges-demo {
    gap: 8px;
}

.scroll-spec {
    display: grid;
    grid-template-columns: minmax(180px, 220px) 1fr;
    gap: 24px;
    align-items: start;
}

.scroll-demo {
    height: 188px;
    overflow-y: auto;
    overflow-x: hidden;
    overscroll-behavior: contain;
    padding: 8px 4px 8px 8px;
    border-radius: var(--radius-sm);
    background: linear-gradient(180deg, rgba(90, 169, 204, 0.55) 0%, var(--pas-horizon) 100%);
    border: 1px solid rgba(255, 255, 255, 0.5);
}

.scroll-demo:focus-visible {
    outline: 2px solid var(--pas-navy);
    outline-offset: 2px;
}

.scroll-demo ul {
    list-style: none;
    margin: 0;
    padding: 6px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: 10px;
}

.scroll-demo .nav-link {
    cursor: default;
}

.scroll-rules {
    margin: 0;
    padding-left: 18px;
    font-size: 13px;
    color: var(--pas-text);
    line-height: 1.7;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 28px;
    border-radius: var(--radius-lg);
    font-family: var(--pas-font-display);
    font-size: 0.9375rem;
    font-weight: 600;
    border: 2px solid transparent;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--pas-navy);
    color: var(--pas-white);
    box-shadow: 0 4px 12px rgba(1, 65, 100, 0.25);
}

.btn-primary:hover {
    background: var(--pas-navy-deep);
    color: var(--pas-white);
    transform: translateY(-1px);
}

.btn.btn-ai {
    border-color: var(--pas-navy);
    background: var(--pas-navy);
    color: var(--pas-white);
    box-shadow: 0 4px 12px rgba(1, 65, 100, 0.25);
}

.btn.btn-ai:hover {
    background: var(--pas-navy-deep);
    border-color: var(--pas-navy-deep);
    color: var(--pas-white);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(1, 65, 100, 0.2);
}

.btn-secondary {
    background: transparent;
    color: var(--pas-navy);
    border-color: var(--pas-navy);
}

.btn-secondary:hover {
    background: rgba(1, 65, 100, 0.06);
    color: var(--pas-navy);
}

.btn-soft {
    background: rgba(1, 65, 100, 0.08);
    color: var(--pas-navy);
}

.btn-soft:hover {
    background: rgba(1, 65, 100, 0.14);
}

.btn-sm {
    padding: 8px 20px;
    font-size: 13px;
}

.btn.is-hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(1, 65, 100, 0.3);
}

.btn.is-disabled,
.btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    font-size: 12px;
    font-weight: 600;
    font-family: 'Montserrat', sans-serif;
}

.badge-navy {
    background: var(--pas-navy);
    color: var(--pas-white);
}

.badge-blue {
    background: var(--pas-sky);
    color: var(--pas-navy);
}

.badge-green {
    background: rgba(45, 138, 94, 0.15);
    color: var(--pas-green-ink);
}

.badge-amber {
    background: rgba(212, 160, 18, 0.15);
    color: var(--pas-amber-ink);
}

/* PAS Card */
.pas-card {
    background: var(--pas-bg);
    border-radius: var(--radius-md);
    padding: 24px;
    border: 1px solid rgba(1, 65, 100, 0.06);
    max-width: 400px;
}

.pas-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.pas-card-time {
    font-size: 13px;
    color: var(--pas-text-muted);
}

.pas-card h4 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    color: var(--pas-navy);
    margin: 0 0 8px;
    line-height: 1.3;
}

.pas-card p {
    font-size: 14px;
    color: var(--pas-text-muted);
    margin: 0 0 16px;
    line-height: 1.6;
}

.pas-callout {
    background: rgba(1, 65, 100, 0.05);
    border-left: 3px solid var(--pas-navy);
    padding: 20px 24px;
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    max-width: 560px;
}

.pas-callout p {
    margin: 0;
    font-family: 'Montserrat', sans-serif;
    font-size: 17px;
    font-weight: 500;
    font-style: italic;
    color: var(--pas-navy);
    line-height: 1.6;
}

/* Flip cards */
.flip-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.flip-card {
    perspective: 800px;
    height: 160px;
    min-height: 160px;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
    font-family: inherit;
    text-align: left;
}

.flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform var(--pas-duration-flip) var(--pas-ease-out);
    transform-style: preserve-3d;
}

.flip-card.flipped .flip-card-inner {
    transform: rotateY(180deg);
}

.flip-card-front,
.flip-card-back {
    position: absolute;
    inset: 0;
    backface-visibility: hidden;
    border-radius: var(--radius-md);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.flip-card-front {
    background: var(--pas-white);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(1, 65, 100, 0.06);
}

.flip-card-front h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: var(--pas-navy);
    margin: 0 0 8px;
    line-height: 1.3;
}

.flip-card-front p {
    font-size: 13px;
    color: var(--pas-text-muted);
    margin: 0;
}

.flip-card-back {
    background: var(--pas-navy);
    color: var(--pas-white);
    transform: rotateY(180deg);
    overflow-y: auto;
    justify-content: flex-start;
}

.flip-card-back p {
    margin: 0;
    font-size: 13px;
    line-height: 1.5;
    opacity: 0.95;
}

/* Checklist */
.checklist-progress {
    margin-bottom: 28px;
}

.progress-bar {
    height: 8px;
    background: rgba(1, 65, 100, 0.1);
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    width: 100%;
    background: linear-gradient(90deg, var(--pas-steel), var(--pas-navy));
    border-radius: 4px;
    transform: scaleX(0);
    transform-origin: left center;
    transition: transform var(--pas-duration-state) var(--pas-ease-out);
}

.progress-text {
    font-size: 13px;
    color: var(--pas-text-on-frost);
    font-weight: 500;
}

.checklist-groups {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin: 0 0 28px;
}

.checklist-group {
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
}

.checklist-group-header {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    margin: 0 0 12px;
}

.checklist-group-title {
    margin: 0;
    font-family: var(--pas-font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pas-navy);
}

.checklist-group-count {
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--pas-text-on-frost);
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.checklist {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.checklist li {
    margin: 0;
}

.checklist label {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 16px 20px;
    background: var(--pas-white);
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow-card);
    border: 1px solid transparent;
    min-height: 44px;
}

.checklist label:hover {
    border-color: rgba(1, 65, 100, 0.12);
}

.checklist input[type="checkbox"] {
    width: 20px;
    height: 20px;
    margin-top: 2px;
    accent-color: var(--pas-navy);
    flex-shrink: 0;
    cursor: pointer;
}

.checklist label.checked {
    background: rgba(45, 138, 94, 0.06);
    border-color: rgba(45, 138, 94, 0.2);
}

.checklist label.checked span {
    text-decoration: line-through;
    color: var(--pas-text-on-frost);
}

.btn-reset {
    font-size: 13px;
    padding: 10px 20px;
}

.checklist-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
}

.confirm-row {
    width: 100%;
    max-width: 420px;
    padding: 14px 16px;
    border-radius: var(--radius-md);
    border: 1px solid rgba(1, 65, 100, 0.15);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.confirm-row p {
    margin: 0 0 12px;
    font-size: 0.875rem;
    line-height: 1.45;
    color: var(--pas-navy);
}

.confirm-row-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.sticky-checklist {
    position: fixed;
    right: max(16px, env(safe-area-inset-right, 0px));
    bottom: max(16px, env(safe-area-inset-bottom, 0px));
    z-index: 90;
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    max-width: min(280px, calc(100vw - 32px));
    padding: 12px 18px;
    border-radius: var(--radius-lg);
    background: var(--pas-navy);
    color: var(--pas-white);
    text-decoration: none;
    font-family: var(--pas-font-display);
    font-size: 0.8125rem;
    font-weight: 600;
    box-shadow: 0 8px 24px rgba(1, 65, 100, 0.28);
    transition: var(--transition);
}

.sticky-checklist[hidden] {
    display: none;
}

.sticky-checklist:hover {
    background: var(--pas-navy-deep);
    color: var(--pas-white);
    text-decoration: none;
    transform: translateY(-1px);
}

.sticky-checklist:focus-visible {
    outline: 2px solid var(--pas-white);
    outline-offset: 3px;
}

.sticky-checklist-count {
    padding: 2px 8px;
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.16);
    font-variant-numeric: tabular-nums;
}

.sticky-checklist-hint {
    flex: 1 1 100%;
    margin: 0;
    font-family: var(--pas-font-body);
    font-size: 0.75rem;
    font-weight: 500;
    line-height: 1.35;
    color: rgba(255, 255, 255, 0.88);
}

.sticky-checklist-hint[hidden] {
    display: none;
}

@media (max-width: 640px) {
    .sticky-checklist {
        left: max(16px, env(safe-area-inset-left, 0px));
        right: max(16px, env(safe-area-inset-right, 0px));
        justify-content: center;
        min-height: 48px;
    }
}

.modal-form select[aria-invalid="true"] {
    border-color: var(--pas-navy);
    box-shadow: 0 0 0 3px rgba(1, 65, 100, 0.14);
}

.ai-channel-hint.is-error {
    color: var(--pas-navy);
    font-weight: 500;
}

/* Footer */
.site-footer {
    text-align: center;
    padding: 48px 24px;
    margin-top: 32px;
    border-top: 1px solid rgba(255, 255, 255, 0.45);
    color: var(--pas-navy);
    font-size: 14px;
    background: rgba(255, 255, 255, 0.28);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-md);
}

.footer-logo {
    height: 32px;
    opacity: 0.5;
    margin-bottom: 12px;
}

.footer-note {
    font-size: 13px;
    margin-top: 8px;
    color: var(--pas-text-on-frost);
}

/* AI Context Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    z-index: 200;
    background: rgba(1, 30, 48, 0.55);
    backdrop-filter: blur(4px);
    display: none;
    align-items: center;
    justify-content: center;
    padding: max(16px, env(safe-area-inset-top, 0px)) max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--pas-duration-overlay) var(--pas-ease-out), visibility var(--pas-duration-overlay) var(--pas-ease-out);
}

.modal-overlay:not([hidden]) {
    display: flex;
}

.modal-overlay.open {
    opacity: 1;
    visibility: visible;
}

.modal {
    background: var(--pas-white);
    border-radius: var(--radius-md);
    width: 100%;
    max-width: 720px;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 24px 64px rgba(1, 65, 100, 0.25);
    transform: translateY(12px) scale(0.985);
    transition: transform var(--pas-duration-overlay) var(--pas-ease-out);
}

.modal-overlay.open .modal {
    transform: translateY(0) scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 0;
    flex-shrink: 0;
}

.modal-header h2 {
    font-size: var(--pas-text-title);
    color: var(--pas-navy);
    margin-bottom: 4px;
}

.modal-subtitle {
    font-size: var(--pas-text-small);
    color: var(--pas-text-muted);
    margin: 0;
    line-height: 1.5;
}

.modal-close {
    background: none;
    border: none;
    font-size: 28px;
    line-height: 1;
    color: var(--pas-text-muted);
    cursor: pointer;
    padding: 10px;
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: color var(--transition);
    border-radius: var(--radius-sm);
}

.modal-close:hover {
    color: var(--pas-navy);
}

.modal-body {
    padding: 20px 24px;
    overflow-y: auto;
    flex: 1;
    min-height: 0;
}

.modal-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-bottom: 20px;
}

.modal-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pas-text-muted);
}

.modal-form select,
.modal-form input,
.modal-form textarea {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    padding: 10px 12px;
    border: 1px solid rgba(1, 65, 100, 0.15);
    border-radius: var(--radius-sm);
    color: var(--pas-text);
    background: var(--pas-white);
    transition: border-color var(--transition);
}

.modal-form select:focus,
.modal-form input:focus,
.modal-form textarea:focus {
    outline: none;
    border-color: var(--pas-navy);
    box-shadow: var(--focus-ring);
}

.modal-form select:focus-visible,
.modal-form input:focus-visible,
.modal-form textarea:focus-visible {
    outline: none;
}

.modal-form textarea {
    resize: vertical;
    min-height: 72px;
}

.payload-fieldset {
    border: 1px solid rgba(1, 65, 100, 0.12);
    border-radius: var(--radius-sm);
    padding: 12px 14px;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.payload-fieldset legend {
    font-size: 13px;
    font-weight: 500;
    color: var(--pas-text-muted);
    padding: 0 6px;
}

.payload-option {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    font-weight: 500;
    color: var(--pas-navy);
    cursor: pointer;
}

.payload-option input {
    accent-color: var(--pas-navy);
}

.ai-channel-hint {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin: -4px 0 0;
    font-size: 0.8125rem;
    line-height: 1.45;
    color: var(--pas-text-muted);
}

.ai-channel-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: var(--radius-lg);
    background: rgba(1, 65, 100, 0.08);
    color: var(--pas-navy);
    font-family: var(--pas-font-display);
    font-size: 0.75rem;
    font-weight: 600;
}

.ai-channel-chip[hidden] {
    display: none;
}

.modal-preview-wrap {
    border: 1px solid rgba(1, 65, 100, 0.1);
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--pas-white);
}

.modal-preview-gate {
    padding: 18px 16px;
    font-size: 0.875rem;
    line-height: 1.55;
    color: var(--pas-text-on-frost);
}

.modal-preview-gate p {
    margin: 0;
    max-width: 42ch;
}

.modal-preview-wrap.is-collapsed {
    border-style: dashed;
    border-color: rgba(1, 65, 100, 0.16);
    background: rgba(1, 65, 100, 0.03);
}

.modal-preview-wrap.is-collapsed .modal-preview-header {
    display: none;
}

.modal-preview-wrap.is-collapsed .modal-preview {
    display: none;
}

.modal-preview-wrap:not(.is-collapsed) .modal-preview-gate {
    display: none;
}

.btn-primary:disabled,
#copyAiContext:disabled {
    opacity: 0.45;
    box-shadow: none;
    transform: none;
    cursor: not-allowed;
}

.modal-preview-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 14px;
    background: var(--pas-bg-alt);
    font-size: 12px;
    font-weight: 600;
    color: var(--pas-text-on-frost);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.modal-stats {
    font-weight: 500;
    text-transform: none;
    letter-spacing: 0;
    color: var(--pas-text-muted);
}

.modal-preview {
    margin: 0;
    padding: 16px;
    max-height: 220px;
    overflow-y: auto;
    font-family: var(--pas-font-mono);
    font-size: var(--pas-text-small);
    line-height: 1.55;
    color: var(--pas-text);
    background: var(--pas-bg);
    white-space: pre-wrap;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 24px;
    border-top: 1px solid rgba(1, 65, 100, 0.06);
    flex-shrink: 0;
}

.modal-footer .btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

/* Panel content swap (pillars / proceso) — feedback, not page choreography */
.panel-fade {
    transition: opacity var(--pas-duration-state) var(--pas-ease-out);
}

.panel-fade.is-swapping {
    opacity: 0;
}

/* Fundador */
.founder-layout {
    display: grid;
    grid-template-columns: minmax(200px, 280px) 1fr;
    gap: 40px 48px;
    align-items: start;
    margin-bottom: 36px;
}

.founder-portrait {
    margin: 0;
}

.founder-portrait img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-card);
}

.founder-portrait figcaption,
.founder-usage figcaption {
    margin-top: 12px;
    font-size: 13px;
    color: var(--pas-text-muted);
    line-height: 1.45;
}

.founder-portrait code,
.founder-bio code {
    font-size: 12px;
    color: var(--pas-navy);
}

.founder-bio h3 {
    font-family: var(--pas-font-display);
    font-size: clamp(22px, 2.4vw, 28px);
    font-weight: 700;
    color: var(--pas-navy);
    margin: 0 0 16px;
    text-wrap: balance;
}

.founder-bio p {
    margin: 0 0 14px;
    line-height: var(--pas-lh-body);
    color: var(--pas-text);
    max-width: var(--pas-measure);
}

.founder-bio p:last-child {
    margin-bottom: 0;
}

.founder-bio cite {
    font-style: italic;
}

.founder-dl {
    display: grid;
    gap: 20px;
    margin: 0 0 40px;
}

.founder-dl div {
    padding-top: 16px;
    border-top: 1px solid rgba(1, 65, 100, 0.1);
}

.founder-dl dt {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 700;
    color: var(--pas-navy);
    margin: 0 0 6px;
}

.founder-dl dd {
    margin: 0;
    font-size: 15px;
    line-height: 1.55;
    color: var(--pas-text);
}

.founder-subhead {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--pas-navy);
    margin: 0 0 20px;
}

.founder-usage {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    margin-bottom: 24px;
}

.founder-usage figure {
    margin: 0;
    padding: 24px;
    border-radius: var(--radius-md);
    background: var(--pas-glass-strong);
    box-shadow: var(--shadow-card);
}

.founder-usage-full img {
    width: 100%;
    max-width: 220px;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px;
}

.founder-usage figure.founder-usage-credits {
    background: var(--pas-navy);
}

.founder-usage-credits figcaption {
    color: rgba(255, 255, 255, 0.78);
}

.founder-oval {
    width: 160px;
    height: 224px;
    object-fit: cover;
    object-position: center 18%;
    border-radius: 80px / 112px;
    display: block;
    margin: 0 auto;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
}

.founder-rules {
    margin: 0 0 8px;
    padding-left: 20px;
    color: var(--pas-text);
    font-size: 15px;
    line-height: 1.55;
}

.founder-rules li {
    margin-bottom: 8px;
}

/* Canales */
.channel-board {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 24px;
}

.channel-board h3 {
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 700;
    color: var(--pas-navy);
    margin: 0 0 16px;
}

.channel-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.channel-list li {
    display: grid;
    grid-template-columns: 7.5rem 1fr;
    gap: 4px 16px;
    padding: 14px 0;
    border-top: 1px solid rgba(1, 65, 100, 0.1);
}

.channel-list li:last-child {
    border-bottom: 1px solid rgba(1, 65, 100, 0.1);
}

.channel-net {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--pas-text-on-frost);
    padding-top: 3px;
}

.channel-list a {
    color: var(--pas-navy);
    font-weight: 600;
    text-decoration: none;
    word-break: break-word;
    overflow-wrap: anywhere;
}

.channel-list a:hover,
.channel-list a:focus-visible {
    text-decoration: underline;
}

.channel-pending {
    font-weight: 600;
    color: var(--pas-text-muted);
}

.channel-note {
    grid-column: 2;
    font-size: 13px;
    color: var(--pas-text-muted);
    line-height: 1.45;
}

/* Responsive */
@media (max-width: 900px) {
    .layout {
        flex-direction: column;
    }

    .header-inner {
        padding: 0 max(16px, env(safe-area-inset-right, 0px)) 0 max(16px, env(safe-area-inset-left, 0px));
    }

    .header-actions {
        gap: 8px;
        flex-shrink: 0;
    }

    .header-actions .btn-sm {
        min-height: 44px;
        padding: 10px 12px;
        font-size: 0.75rem;
    }

    .side-nav {
        position: fixed;
        top: calc(var(--header-height) + env(safe-area-inset-top, 0px));
        left: 0;
        right: 0;
        width: 100%;
        height: auto;
        max-height: min(80vh, calc(100dvh - var(--header-height) - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px)));
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        z-index: 99;
        border-right: none;
        border-bottom: 1px solid rgba(1, 65, 100, 0.08);
        padding: 16px max(16px, env(safe-area-inset-right, 0px)) max(16px, env(safe-area-inset-bottom, 0px)) max(16px, env(safe-area-inset-left, 0px));
        transform: translate3d(0, -0.75rem, 0);
        opacity: 0;
        visibility: hidden;
        pointer-events: none;
        transition:
            transform var(--pas-duration-overlay) var(--pas-ease-out),
            opacity var(--pas-duration-overlay) var(--pas-ease-out),
            visibility 0s linear var(--pas-duration-overlay);
    }

    .side-nav.open {
        transform: translate3d(0, 0, 0);
        opacity: 1;
        visibility: visible;
        pointer-events: auto;
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        transition:
            transform var(--pas-duration-overlay) var(--pas-ease-out),
            opacity var(--pas-duration-overlay) var(--pas-ease-out),
            visibility 0s linear 0s;
    }

    .nav-jobs-list {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .nav-jobs-list li:last-child {
        grid-column: 1 / -1;
    }

    .nav-job {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-label-toc {
        margin-top: 20px;
    }

    .nav-group {
        margin-bottom: 16px;
    }

    .side-nav .nav-group ul {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 4px;
    }

    .side-nav .nav-link {
        min-height: 44px;
        display: flex;
        align-items: center;
    }

    .nav-meta {
        display: none;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-toggle.open span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.open span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.open span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

    .content {
        padding: 24px max(20px, env(safe-area-inset-right, 0px)) max(60px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
    }

    .section,
    .section-alt {
        margin-left: 0;
        margin-right: 0;
        padding: 28px 18px;
    }

    .section-sky {
        padding: 0;
    }

    .section-sky .section-header {
        padding: 24px 18px;
    }

    .sky-card {
        padding: 32px 20px 28px;
        border-radius: 24px;
    }

    .scale-row {
        grid-template-columns: 5.5rem 1fr;
    }

    .scale-meta {
        grid-column: 2;
        text-align: left;
        white-space: normal;
        margin-top: 4px;
    }

    .founder-layout,
    .founder-usage,
    .channel-board,
    .icon-usage {
        grid-template-columns: 1fr;
    }

    .section-icon-grid,
    .section-icon-grid-two {
        grid-template-columns: repeat(2, 1fr);
    }

    .channel-list li {
        grid-template-columns: 1fr;
        gap: 4px;
    }

    .channel-note {
        grid-column: 1;
    }

    .btn-ai .btn-ai-label-full {
        display: none;
    }

    .btn-ai .btn-ai-label-short {
        display: inline;
    }

    .header-actions .btn-ai {
        min-width: 44px;
        min-height: 44px;
        padding: 10px 14px;
        justify-content: center;
        gap: 6px;
    }

    .card-grid,
    .motion-grid,
    .audience-grid,
    .twin-card-grid {
        grid-template-columns: 1fr;
    }

    .process-step {
        min-width: min(100%, 200px);
    }

    .line-panel {
        padding: 20px 18px;
    }

    .modal {
        max-height: min(95vh, calc(100dvh - 32px));
    }

    .modal-footer {
        flex-direction: column-reverse;
    }

    .modal-footer .btn {
        width: 100%;
        justify-content: center;
        min-height: 44px;
    }

    .twin-actions .btn {
        flex: 1 1 auto;
        min-height: 44px;
        justify-content: center;
    }

    .toast {
        left: max(16px, env(safe-area-inset-left, 0px));
        right: max(16px, env(safe-area-inset-right, 0px));
        bottom: max(16px, env(safe-area-inset-bottom, 0px));
        transform: translateY(12px);
        width: auto;
        text-align: center;
    }

    body.has-sticky-checklist .toast {
        bottom: max(80px, calc(64px + env(safe-area-inset-bottom, 0px)));
    }

    .toast.show {
        transform: translateY(0);
    }
}

@media (max-width: 640px) {
    .scroll-spec {
        grid-template-columns: 1fr;
    }

    .hero {
        padding: 36px 16px 40px;
    }

    .hero-jobs-grid {
        grid-template-columns: 1fr;
    }

    .hero-job {
        width: 100%;
        min-height: 52px;
    }

    .process-steps {
        flex-direction: column;
    }

    .process-step {
        min-width: 0;
        width: 100%;
    }

    .areas-toggle {
        flex-direction: column;
    }

    .areas-btn {
        width: 100%;
        justify-content: center;
    }

    .line-switch {
        display: grid;
        grid-template-columns: 1fr 1fr;
    }

    .line-btn {
        justify-content: center;
        width: 100%;
    }

    .twin-actions {
        flex-direction: column;
    }

    .twin-actions .btn {
        width: 100%;
    }

    .copy-toggle {
        flex-direction: column;
    }

    .copy-tab {
        width: 100%;
        text-align: center;
        justify-content: center;
    }

    .playground-controls {
        flex-direction: column;
    }

    .playground-controls label {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .brand-name {
        display: none;
    }

    .brand-sub {
        display: block;
        font-size: 0.75rem;
    }

    .header-actions {
        gap: 6px;
    }

    .header-actions .btn-ai {
        padding: 10px 12px;
    }

    .side-nav .nav-group ul,
    .nav-jobs-list {
        grid-template-columns: 1fr;
    }

    .nav-jobs-list li:last-child {
        grid-column: auto;
    }

    .section-icon-grid,
    .section-icon-grid-two {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .section-icon-grid img,
    .icon-usage img {
        width: 88px;
        height: 88px;
    }

    .line-switch {
        grid-template-columns: 1fr;
    }

    .line-btn {
        padding: 10px 14px;
        font-size: 12px;
        min-height: 44px;
        justify-content: flex-start;
    }

    .pillars {
        flex-direction: column;
    }

    .pillar {
        width: 100%;
        justify-content: flex-start;
    }

    /* Phone: 2-col grid so every tab label stays readable — no off-screen scroll */
    .palette-tabs,
    .twin-tabs {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
        overflow-x: visible;
        margin-inline: 0;
        padding-inline: 0;
        padding-bottom: 0;
    }

    .palette-tab,
    .twin-tab {
        width: 100%;
        min-width: 0;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        text-align: center;
        white-space: normal;
        line-height: 1.25;
        padding: 10px 12px;
    }

    .btn {
        white-space: normal;
        text-align: center;
        line-height: 1.3;
    }
}

@media (pointer: coarse) {
    .btn,
    .btn-ai,
    .btn-sm,
    .nav-link,
    .process-step,
    .line-btn,
    .areas-btn,
    .pillar,
    .palette-tab,
    .twin-tab,
    .copy-tab,
    .weight-btn,
    .flip-card,
    .color-swatch,
    .hero-chrome-link,
    .job-filter-bar .btn {
        min-height: 44px;
    }

    .nav-link {
        padding: 12px;
    }
}

@media (hover: none) {
    .btn-ai:hover,
    .btn-primary:hover,
    .color-swatch:hover {
        transform: none;
    }

    .btn-ai:active,
    .btn-primary:active,
    .btn-secondary:active,
    .btn-soft:active,
    .line-btn:active,
    .areas-btn:active,
    .pillar:active,
    .process-step:active,
    .palette-tab:active,
    .twin-tab:active,
    .copy-tab:active {
        border-color: var(--pas-navy);
        color: var(--pas-navy);
    }

    .btn-primary:active,
    .btn-ai:active {
        background: var(--pas-navy-deep);
        color: var(--pas-white);
        border-color: var(--pas-navy-deep);
    }
}

@media (prefers-reduced-motion: reduce) {
    #clouds-bg canvas {
        display: none;
    }

    html {
        scroll-behavior: auto;
    }

    /* Instant face swap instead of 3D flip */
    .flip-card {
        perspective: none;
    }

    .flip-card-inner {
        transition: none;
        transform: none !important;
        transform-style: flat;
    }

    .flip-card-front,
    .flip-card-back {
        position: absolute;
        inset: 0;
        transform: none !important;
        backface-visibility: visible;
        transition: none;
    }

    .flip-card-back {
        opacity: 0;
        pointer-events: none;
    }

    .flip-card.flipped .flip-card-front {
        opacity: 0;
        pointer-events: none;
    }

    .flip-card.flipped .flip-card-back {
        opacity: 1;
        pointer-events: auto;
    }

    .modal,
    .modal-overlay,
    .toast,
    .side-nav,
    .side-nav.open,
    .btn,
    .btn-ai,
    .color-swatch,
    .progress-fill {
        transition: none;
    }

    .side-nav:not(.open) {
        transform: none;
        opacity: 0;
    }

    .side-nav.open {
        transform: none;
        opacity: 1;
    }

    .modal {
        transform: none;
    }

    .modal-overlay.open .modal {
        transform: none;
    }

    .toast {
        transition: none;
        transform: translateX(-50%);
        opacity: 0;
    }

    .toast.show {
        transform: translateX(-50%);
        opacity: 1;
    }

    .panel-fade,
    .panel-fade.is-swapping {
        opacity: 1;
        transition: none;
    }

    .btn-ai:hover,
    .btn-primary:hover,
    .color-swatch:hover {
        transform: none;
    }
}

@media (max-width: 900px) and (prefers-reduced-motion: reduce) {
    .toast,
    .toast.show {
        transform: none;
    }
}

/* Login */
.login-body {
    min-height: 100vh;
}

.login-shell {
    position: relative;
    z-index: 1;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(32px, env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) max(32px, env(safe-area-inset-bottom, 0px)) max(20px, env(safe-area-inset-left, 0px));
}

.login-card {
    width: min(100%, 400px);
    background: var(--pas-glass-strong);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-radius: 24px;
    box-shadow: var(--shadow-card);
    padding: 36px 32px 32px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.login-logo {
    height: 40px;
    width: auto;
    align-self: flex-start;
}

.login-card h1 {
    margin: 0;
    font-size: clamp(22px, 4vw, 28px);
    color: var(--pas-navy);
}

.login-lead {
    margin: 0;
    font-size: 15px;
    color: var(--pas-text-muted);
    line-height: 1.5;
}

.login-field {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
    font-weight: 500;
    color: var(--pas-text-muted);
}

.login-field input {
    font-family: var(--pas-font-body);
    font-size: 16px;
    padding: 12px 14px;
    border: 1px solid rgba(1, 65, 100, 0.15);
    border-radius: var(--radius-sm);
    color: var(--pas-text);
    background: var(--pas-white);
}

.login-field input:focus {
    outline: none;
    border-color: var(--pas-navy);
    box-shadow: var(--focus-ring);
}

.login-error {
    margin: 0;
    font-size: var(--pas-text-small);
    color: var(--pas-red);
}

.login-submit {
    width: 100%;
}
