main.container {
    padding-top: var(--space-sm);
    padding-bottom: var(--space-xl);
}

.cw-sample-hero {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    gap: 10px;
    min-height: clamp(280px, 42vw, 400px);
    margin: 0 auto 10px;
    padding: clamp(16px, 2.4vw, 26px);
    border-radius: 0;
    overflow: hidden;
    isolation: isolate;
    box-sizing: border-box;
    background:
        linear-gradient(90deg, var(--bg-primary) 0%, rgba(11, 13, 15, 0) 7%, rgba(11, 13, 15, 0) 93%, var(--bg-primary) 100%),
        linear-gradient(0deg, rgba(11, 13, 15, 0.16), rgba(11, 13, 15, 0.16)),
        var(--cw-sample-hero-image);
}

.cw-sample-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: linear-gradient(
        90deg,
        rgba(1, 2, 3, 0.95) 0%,
        rgba(4, 6, 8, 0.88) 30%,
        rgba(7, 10, 13, 0.63) 52%,
        rgba(9, 12, 15, 0.28) 72%,
        rgba(11, 13, 15, 0) 90%
    );
    pointer-events: none;
}

.cw-sample-hero::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 0;
    background: radial-gradient(
        circle at 87% 43%,
        rgba(255, 255, 255, 0.19) 0%,
        rgba(255, 255, 255, 0.07) 23%,
        rgba(255, 255, 255, 0) 54%
    );
    pointer-events: none;
}

body.light-mode .cw-sample-hero {
    background:
        linear-gradient(90deg, var(--bg-primary) 0%, rgba(255, 255, 255, 0) 7%, rgba(255, 255, 255, 0) 93%, var(--bg-primary) 100%),
        linear-gradient(0deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.08)),
        var(--cw-sample-hero-image);
}

body.light-mode .cw-sample-hero::before {
    background: linear-gradient(
        90deg,
        rgba(252, 254, 255, 0.96) 0%,
        rgba(248, 252, 255, 0.88) 32%,
        rgba(244, 249, 253, 0.66) 54%,
        rgba(241, 247, 252, 0.3) 74%,
        rgba(241, 247, 252, 0) 90%
    );
}

body.light-mode .cw-sample-hero::after {
    background: radial-gradient(
        circle at 87% 43%,
        rgba(0, 168, 150, 0.26) 0%,
        rgba(0, 168, 150, 0.11) 22%,
        rgba(0, 168, 150, 0) 52%
    );
}

.cw-sample-hero-copy {
    position: relative;
    z-index: 1;
    max-width: min(65ch, 58%);
}

.cw-sample-kicker {
    display: inline-flex;
    align-items: center;
    margin: 0 0 8px;
    min-height: 24px;
    padding: 0 10px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cw-teal) 18%, transparent);
    color: color-mix(in srgb, var(--cw-teal) 86%, #d8fff9);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

body.light-mode .cw-sample-kicker {
    color: var(--cw-teal-dark);
}

.cw-sample-hero h1 {
    margin: 0 0 12px;
    max-width: 24ch;
    font-size: clamp(1.9rem, 3.2vw, 2.9rem);
    line-height: 1.1;
    text-wrap: balance;
    text-shadow: 0 4px 24px rgba(0, 0, 0, 0.28);
}

.cw-sample-hero p {
    margin: 0 0 12px;
    max-width: 60ch;
    font-size: 1rem;
    color: color-mix(in srgb, var(--text-secondary) 92%, #ffffff);
    line-height: 1.58;
    text-wrap: pretty;
}

body.light-mode .cw-sample-hero p {
    color: var(--text-secondary);
}

.cw-sample-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.cw-sample-pill {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 0 10px;
    border-radius: 999px;
    border: 1px solid color-mix(in srgb, var(--cw-teal) 36%, var(--border-color));
    background: color-mix(in srgb, var(--cw-teal) 10%, transparent);
    color: var(--text-secondary);
    font-size: 0.74rem;
    font-weight: 700;
}

.cw-sample-grid {
    display: block;
    margin-top: 16px;
}

.cw-sample-panel {
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: clamp(14px, 2vw, 22px);
    background: color-mix(in srgb, var(--bg-secondary) 84%, transparent);
}

.cw-sample-panel h2 {
    margin: 0 0 10px;
    font-size: 1.08rem;
    line-height: 1.3;
}

.cw-sample-panel p {
    margin: 0 0 12px;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.62;
}

.cw-sample-panel ul,
.cw-sample-panel ol {
    margin: 0 0 14px 18px;
    color: var(--text-secondary);
    font-size: 0.94rem;
    line-height: 1.62;
}

.cw-sample-paper {
    --cw-paper-pad: clamp(16px, 3vw, 34px);
    max-width: min(820px, 100%);
    margin: 18px auto 0;
    padding: var(--cw-paper-pad);
    border-radius: 16px;
    border: 1px solid #d8e0e5;
    background: linear-gradient(180deg, #ffffff 0%, #fbfcfd 100%);
    box-shadow: 0 16px 34px rgba(3, 9, 16, 0.12);
    color: #17212b;
}

.cw-sample-paper::before {
    content: "";
    display: block;
    width: 100%;
    height: 3px;
    margin-bottom: 18px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(0, 122, 104, 0.16), rgba(0, 122, 104, 0.48), rgba(0, 122, 104, 0.16));
}

.cw-sample-paper .cw-sample-content-segments {
    display: grid;
    gap: 0;
}

.cw-sample-paper .cw-sample-content {
    color: #17212b;
}

.cw-sample-paper .cw-sample-content > *:first-child {
    margin-top: 0;
}

.cw-sample-paper .cw-sample-content > *:last-child {
    margin-bottom: 0;
}

.cw-sample-paper .cw-sample-content p,
.cw-sample-paper .cw-sample-content li,
.cw-sample-paper .cw-sample-content blockquote {
    color: #17212b;
    font-family: "Trebuchet MS", Tahoma, sans-serif;
    font-size: 0.97rem;
    line-height: 1.74;
    text-align: justify;
}

.cw-sample-paper .cw-sample-content h1,
.cw-sample-paper .cw-sample-content h2,
.cw-sample-paper .cw-sample-content h3,
.cw-sample-paper .cw-sample-content h4 {
    color: #10202c;
    font-family: "Trebuchet MS", Tahoma, sans-serif;
    line-height: 1.28;
    text-shadow: none;
}

.cw-sample-paper .cw-sample-content h1 {
    font-size: 1.6rem;
}

.cw-sample-paper .cw-sample-content h2 {
    font-size: 1.35rem;
}

.cw-sample-paper .cw-sample-content h3 {
    font-size: 1.15rem;
}

.cw-sample-paper .cw-sample-content h4 {
    font-size: 1rem;
}

.cw-sample-paper .cw-sample-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

body:not(.light-mode) .cw-sample-paper {
    border-color: color-mix(in srgb, var(--cw-teal) 20%, #2d3844);
    background:
        linear-gradient(90deg, rgba(255, 255, 255, 0.025) 0 1px, transparent 1px) 0 0 / 24px 24px,
        linear-gradient(180deg, #151b22 0%, #10161d 100%);
    box-shadow:
        0 18px 36px rgba(0, 0, 0, 0.36),
        inset 0 1px 0 rgba(255, 255, 255, 0.05);
    color: #e8edf3;
}

body:not(.light-mode) .cw-sample-paper::before {
    background: linear-gradient(90deg, rgba(0, 210, 190, 0.16), rgba(0, 210, 190, 0.56), rgba(0, 210, 190, 0.16));
}

body:not(.light-mode) .cw-sample-paper .cw-sample-content,
body:not(.light-mode) .cw-sample-paper .cw-sample-content p,
body:not(.light-mode) .cw-sample-paper .cw-sample-content li,
body:not(.light-mode) .cw-sample-paper .cw-sample-content blockquote {
    color: #e8edf3;
}

body:not(.light-mode) .cw-sample-paper .cw-sample-content h1,
body:not(.light-mode) .cw-sample-paper .cw-sample-content h2,
body:not(.light-mode) .cw-sample-paper .cw-sample-content h3,
body:not(.light-mode) .cw-sample-paper .cw-sample-content h4 {
    color: #f8fbff;
}

body:not(.light-mode) .cw-sample-paper .cw-sample-content a {
    color: color-mix(in srgb, var(--cw-teal) 78%, #dffefa);
}

.cw-sample-paper .cw-sample-content a {
    color: var(--cw-teal);
    text-decoration-line: underline;
    text-decoration-color: color-mix(in srgb, var(--cw-teal) 62%, transparent);
    text-decoration-thickness: 1.5px;
    text-underline-offset: 3px;
}

.cw-sample-paper .cw-sample-content a:hover,
.cw-sample-paper .cw-sample-content a:focus-visible {
    color: var(--cw-teal-dark);
    text-decoration-color: var(--cw-teal);
}

body:not(.light-mode) .cw-sample-paper .cw-sample-content a:hover,
body:not(.light-mode) .cw-sample-paper .cw-sample-content a:focus-visible {
    color: #ffffff;
}

.cw-sample-access-panel {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--border-color);
}

.cw-sample-inline-gate {
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 12px;
    min-height: 156px;
    margin: 24px calc((var(--cw-paper-pad) * -1) + 10px);
    padding: 22px clamp(16px, 3vw, 24px);
    border: 1px solid color-mix(in srgb, var(--cw-teal) 38%, var(--border-color));
    border-radius: 16px;
    text-align: center;
    background: linear-gradient(90deg, rgba(5, 10, 14, 0.97), rgba(6, 48, 45, 0.95), rgba(5, 10, 14, 0.97));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.05), inset 0 -1px 0 rgba(255, 255, 255, 0.04);
}

body.light-mode .cw-sample-inline-gate {
    background: linear-gradient(90deg, rgba(230, 244, 242, 0.96), rgba(205, 233, 229, 0.98), rgba(230, 244, 242, 0.96));
}

.cw-sample-inline-gate-copy {
    display: grid;
    gap: 8px;
    justify-items: center;
    max-width: 680px;
}

.cw-sample-inline-gate h3 {
    margin: 0;
    font-size: 1rem;
    color: #f3fbfa;
}

body.light-mode .cw-sample-inline-gate h3 {
    color: #113030;
}

.cw-sample-inline-gate p {
    margin: 0;
    max-width: 62ch;
    font-size: 0.9rem;
    color: rgba(236, 247, 246, 0.9);
}

body.light-mode .cw-sample-inline-gate p {
    color: rgba(17, 48, 48, 0.84);
}

.cw-sample-inline-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: flex-start;
}

.cw-cta-primary-stack {
    display: grid;
    gap: 8px;
    justify-items: center;
    max-width: 100%;
}

.cw-cta-trust {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px 10px;
    max-width: 44rem;
    font-size: 0.7rem;
    color: rgba(236, 247, 246, 0.84);
}

.cw-cta-trust span {
    white-space: nowrap;
}

body.light-mode .cw-cta-trust {
    color: rgba(17, 48, 48, 0.76);
}

.btn-cta-big {
    font-size: 0.96rem;
    padding: 12px 20px;
    font-weight: 800;
    border-width: 1px;
    border-style: solid;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.14);
}

.cw-gate-heavy {
    min-height: 188px;
    padding: 24px 24px;
    margin: 30px calc((var(--cw-paper-pad) * -1) + 10px);
    background: linear-gradient(90deg, rgba(5, 10, 14, 0.985), rgba(0, 94, 87, 0.965), rgba(5, 10, 14, 0.985));
    border: 1px solid color-mix(in srgb, var(--cw-teal) 52%, var(--border-color));
}

body.light-mode .cw-gate-heavy {
    background: linear-gradient(90deg, rgba(231, 245, 244, 0.98), rgba(204, 234, 231, 0.98), rgba(231, 245, 244, 0.98));
}

.cw-final-gate {
    margin-top: 34px;
    min-height: 216px;
}

.cw-final-gate h3 {
    font-size: 1.24rem;
}

.cw-sample-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 14px;
}

.cw-sample-modal-backdrop {
    position: fixed;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
    background: rgba(2, 8, 12, 0.62);
    backdrop-filter: blur(8px);
    z-index: 10040;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.cw-sample-modal-backdrop.is-open {
    opacity: 1;
    visibility: visible;
}

.cw-sample-modal-card {
    width: min(100%, 580px);
    max-height: min(85vh, 920px);
    overflow: auto;
    border-radius: 18px;
    border: 1px solid color-mix(in srgb, var(--cw-teal) 32%, var(--border-color));
    background: color-mix(in srgb, var(--bg-elevated) 96%, rgba(4, 10, 14, 0.98));
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.32);
    font-family: "Trebuchet MS", Tahoma, sans-serif;
    opacity: 0;
    transform: scale(0.95) translateY(12px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease;
}

.cw-sample-modal-backdrop.is-open .cw-sample-modal-card {
    opacity: 1;
    transform: scale(1) translateY(0);
}

body.light-mode .cw-sample-modal-card {
    background: rgba(255, 255, 255, 0.985);
}

.cw-sample-modal-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    padding: 16px 20px 0;
}

.cw-sample-modal-head h3 {
    margin: 0;
    font-size: 1.08rem;
    font-weight: 700;
    color: var(--text-heading);
    text-shadow: var(--text-glow);
}

.cw-sample-modal-head p {
    margin: 4px 0 0;
    color: var(--text-secondary);
    font-size: 0.84rem;
    line-height: 1.4;
}

.cw-sample-modal-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid color-mix(in srgb, var(--cw-teal) 24%, var(--border-color));
    border-radius: 999px;
    background: color-mix(in srgb, var(--bg-primary) 54%, transparent);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 1.15rem;
    line-height: 1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.2s ease;
}

.cw-sample-modal-close:hover {
    border-color: var(--cw-teal);
    color: var(--text-primary);
    transform: scale(1.05);
}

.cw-sample-modal-close:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.cw-sample-unlock-steps {
    display: grid;
    gap: 12px;
    padding: 8px 20px 16px;
}

.cw-sample-paypal-badge {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 1px solid color-mix(in srgb, #1d4ed8 28%, var(--border-color));
    border-radius: 16px;
    background: color-mix(in srgb, #1d4ed8 9%, transparent);
}

.cw-sample-paypal-badge img {
    display: block;
    width: 44px;
    height: auto;
}

.cw-sample-paypal-badge strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.92rem;
}

.cw-sample-paypal-badge span {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.cw-sample-step-list {
    display: grid;
    gap: 8px;
}

.cw-sample-step-item {
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    gap: 10px;
    align-items: start;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: color-mix(in srgb, var(--bg-primary) 30%, transparent);
}

.cw-sample-step-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--cw-teal) 18%, transparent);
    color: var(--text-primary);
    font-size: 0.86rem;
    font-weight: 800;
}

.cw-sample-step-copy strong {
    display: block;
    margin-bottom: 2px;
    font-size: 0.88rem;
}

.cw-sample-step-copy p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 0.8rem;
    line-height: 1.4;
}

.cw-sample-step-continue {
    justify-self: center;
    width: min(100%, 380px);
    padding: 12px 20px;
    font-size: 0.96rem;
    border-radius: 12px;
    font-weight: 700;
}

.cw-sample-gate-form {
    display: none;
    gap: 14px;
    padding: 16px 20px 20px;
}

.cw-sample-gate-form.is-open {
    display: grid;
}

.cw-sample-gate-form label {
    display: grid;
    gap: 8px;
    width: min(100%, 420px);
    margin: 0 auto;
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-align: left;
}

.cw-sample-gate-form input {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 0 16px;
    font-size: 0.96rem;
    border-radius: 12px;
    font-family: "Trebuchet MS", Tahoma, sans-serif;
    border: 1px solid color-mix(in srgb, var(--cw-teal) 40%, var(--border-color));
    transition: all 0.2s ease;
    background: color-mix(in srgb, var(--bg-primary) 50%, transparent);
    color: var(--text-primary);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.08);
}

.cw-sample-gate-form input:focus {
    border-color: var(--cw-teal);
    outline: none;
    box-shadow: 0 0 0 3px color-mix(in srgb, var(--cw-teal) 20%, transparent), inset 0 2px 4px rgba(0, 0, 0, 0.08);
    background: var(--bg-secondary);
}

.cw-sample-gate-form .cw-sample-gate-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    width: min(100%, 420px);
    margin: 6px auto 0;
}

.cw-sample-gate-form .cw-sample-gate-actions .btn {
    flex: 1;
    padding: 10px 18px;
    font-size: 0.92rem;
    border-radius: 12px;
    font-weight: 700;
    min-width: 140px;
    text-align: center;
}

.cw-sample-gate-result {
    display: none;
    width: min(100%, 420px);
    margin: 0 auto;
    padding: 10px 14px;
    border-radius: 12px;
    font-size: 0.8rem;
    line-height: 1.45;
    text-align: center;
}

.cw-sample-gate-result.is-visible {
    display: block;
}

.cw-sample-gate-result.is-error {
    background: rgba(127, 29, 29, 0.22);
    color: #fecaca;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.cw-sample-gate-result.is-success {
    background: rgba(6, 95, 70, 0.22);
    color: #bbf7d0;
    border: 1px solid rgba(52, 211, 153, 0.3);
}

.cw-sample-gate-result.is-pending {
    background: rgba(120, 53, 15, 0.38);
    color: #ffe7c2;
    border: 1px solid rgba(245, 158, 11, 0.46);
}

body.light-mode .cw-sample-gate-result.is-error {
    background: #fee2e2;
    color: #7f1d1d;
    border-color: #ef4444;
}

body.light-mode .cw-sample-gate-result.is-success {
    background: #d1fae5;
    color: #065f46;
    border-color: #10b981;
}

body.light-mode .cw-sample-gate-result.is-pending {
    background: #fff1db;
    color: #8a4b00;
    border-color: #f59e0b;
}

.cw-sample-paywalled {
    position: relative;
    overflow: hidden;
}

.cw-sample-download-card {
    display: grid;
    gap: 12px;
    padding: 16px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--cw-teal) 30%, var(--border-color));
    background: color-mix(in srgb, var(--cw-teal) 10%, transparent);
}

.cw-sample-pdf-shell {
    display: grid;
    gap: 12px;
    margin-top: 18px;
}

.cw-sample-pdf-note {
    font-size: 0.82rem;
    color: var(--text-muted);
    margin: 0;
}

.cw-sample-pdf-viewer {
    display: grid;
    gap: 14px;
    padding: 12px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg-primary) 18%, transparent);
    min-height: 220px;
}

.cw-sample-pdf-viewer.is-loading {
    place-items: center;
}

.cw-sample-pdf-status {
    padding: 16px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--bg-secondary) 78%, transparent);
    color: var(--text-secondary);
    text-align: center;
}

.cw-sample-pdf-page {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--border-color) 82%, transparent);
    background: #ffffff;
    box-shadow: var(--shadow-soft);
}

.cw-sample-pdf-canvas {
    display: block;
    width: 100%;
    height: auto;
    background: #ffffff;
    user-select: none;
    -webkit-user-drag: none;
}

.cw-sample-pdf-overlay {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

.cw-sample-pdf-cta {
    position: absolute;
    left: 12px;
    right: 12px;
    display: grid;
    justify-items: center;
    align-items: center;
    gap: 10px;
    min-height: 176px;
    padding: 18px 18px;
    border-radius: 16px;
    border: 1px solid color-mix(in srgb, var(--cw-teal) 44%, var(--border-color));
    pointer-events: auto;
    text-align: center;
    background: rgba(4, 8, 12, 0.992);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.3);
}

.cw-sample-pdf-cta.is-secondary {
    min-height: 156px;
}

body.light-mode .cw-sample-pdf-cta {
    background: rgba(247, 251, 252, 0.992);
}

.cw-sample-pdf-cta-copy {
    display: grid;
    gap: 8px;
    justify-items: center;
    max-width: 700px;
}

.cw-sample-pdf-cta p {
    margin: 0;
    max-width: 60ch;
    font-size: 0.88rem;
    line-height: 1.58;
}

.cw-sample-pdf-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
    align-items: flex-start;
}

body.cw-sample-modal-open > header,
body.cw-sample-modal-open > main,
body.cw-sample-modal-open > footer {
    filter: blur(9px);
    pointer-events: none;
    user-select: none;
}

.cw-sample-order-modal .cw-order-builder {
    max-width: none;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    font-family: "Trebuchet MS", Tahoma, sans-serif;
}

.cw-sample-order-modal .cw-order-card {
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    padding: 0 20px 20px;
}

.cw-sample-order-modal .cw-order-topbar,
.cw-sample-order-modal .cw-order-progress {
    display: none;
}

.cw-sample-order-modal .cw-order-feedback {
    margin-top: 0;
}

@media (min-width: 641px) {
    .cw-gate-first {
        display: none !important;
    }
}

@media (max-width: 980px) {
    .cw-sample-hero {
        min-height: clamp(320px, 58vw, 390px);
        padding: 16px 14px;
        background-position: 76% center;
    }

    .cw-sample-hero-copy {
        max-width: min(72ch, 84%);
    }
}

@media (max-width: 640px) {
    .cw-sample-hero {
        min-height: 340px;
        padding: 14px 12px;
        background-position: 78% center;
    }

    .cw-sample-hero::before {
        background: linear-gradient(
            90deg,
            rgba(1, 2, 3, 0.96) 0%,
            rgba(3, 5, 8, 0.9) 34%,
            rgba(5, 8, 11, 0.82) 60%,
            rgba(7, 10, 14, 0.66) 80%,
            rgba(9, 12, 15, 0.56) 100%
        );
    }

    .cw-sample-hero::after {
        background: radial-gradient(
            circle at 84% 42%,
            rgba(255, 255, 255, 0.14) 0%,
            rgba(255, 255, 255, 0.05) 24%,
            rgba(255, 255, 255, 0) 54%
        );
    }

    body.light-mode .cw-sample-hero {
        background:
            linear-gradient(90deg, var(--bg-primary) 0%, rgba(255, 255, 255, 0) 6%, rgba(255, 255, 255, 0) 94%, var(--bg-primary) 100%),
            linear-gradient(0deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0.28)),
            var(--cw-sample-hero-image-mobile, var(--cw-sample-hero-image));
    }

    body.light-mode .cw-sample-hero::before {
        background: linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.95) 0%,
            rgba(255, 255, 255, 0.9) 34%,
            rgba(255, 255, 255, 0.8) 60%,
            rgba(255, 255, 255, 0.62) 80%,
            rgba(255, 255, 255, 0.48) 100%
        );
    }

    body.light-mode .cw-sample-hero::after {
        background: radial-gradient(
            circle at 84% 42%,
            rgba(255, 255, 255, 0.38) 0%,
            rgba(255, 255, 255, 0.16) 24%,
            rgba(255, 255, 255, 0) 54%
        );
    }

    .cw-sample-hero-copy {
        max-width: 100%;
    }

    .cw-sample-hero h1 {
        font-size: clamp(1.7rem, 8vw, 2.35rem);
    }

    .cw-sample-hero p {
        font-size: 0.93rem;
    }

    .cw-sample-meta {
        gap: 6px;
    }

    .cw-sample-pill {
        min-height: 26px;
        padding: 0 8px;
        font-size: 0.7rem;
    }

    .cw-sample-panel {
        border-radius: 12px;
        padding: 14px;
    }

    .cw-sample-access-panel {
        margin-top: 18px;
        padding-top: 16px;
    }

    .cw-sample-paper {
        --cw-paper-pad: 16px;
        margin-top: 14px;
        border-radius: 14px;
    }

    .cw-sample-paper::before {
        margin-bottom: 16px;
    }

    .cw-sample-paper .cw-sample-content p,
    .cw-sample-paper .cw-sample-content li,
    .cw-sample-paper .cw-sample-content blockquote {
        font-size: 0.93rem;
        line-height: 1.68;
    }

    .cw-sample-inline-gate {
        min-height: auto;
        margin: 12px calc((var(--cw-paper-pad) * -1) + 4px);
        padding: 14px 10px;
        border-radius: 12px;
        gap: 4px;
    }

    .cw-sample-inline-gate h3,
    .cw-sample-inline-gate p {
        display: none !important;
    }

    .cw-gate-heavy {
        min-height: auto;
        padding: 14px 10px;
        margin: 12px calc((var(--cw-paper-pad) * -1) + 4px);
    }

    .cw-final-gate {
        min-height: auto;
        margin-top: 16px;
    }

    .btn-cta-big {
        font-size: 0.76rem;
        padding: 8px 10px;
        border-radius: 10px;
        font-weight: 700;
    }

    .cw-sample-gate-actions,
    .cw-sample-inline-gate-actions,
    .cw-sample-pdf-cta-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        margin-top: 0;
        width: 100%;
        justify-content: center;
    }

    .cw-sample-gate-actions > .btn,
    .cw-sample-inline-gate-actions > .btn,
    .cw-sample-pdf-cta-actions > .btn {
        flex: 1 1 calc(50% - 8px);
        min-width: min(100%, 132px);
        max-width: 100%;
        text-align: center;
        font-size: 0.72rem;
        padding: 8px 7px;
        line-height: 1.18;
    }

    .cw-cta-primary-stack {
        flex: 1 1 calc(50% - 8px);
        min-width: min(100%, 132px);
        max-width: 100%;
        gap: 6px;
    }

    .cw-cta-primary-stack > .btn {
        width: 100%;
    }

    .cw-cta-trust {
        gap: 4px 6px;
        font-size: 0.65rem;
        color: rgba(236, 247, 246, 0.65);
        justify-content: center;
    }

    .cw-sample-modal-backdrop {
        padding: 10px;
    }

    .cw-sample-modal-card {
        width: 100%;
        max-height: 92vh;
        border-radius: 16px;
    }

    .cw-sample-modal-head {
        padding: 14px 14px 0;
        gap: 10px;
    }

    .cw-sample-modal-head h3 {
        font-size: 1.02rem;
    }

    .cw-sample-modal-close {
        width: 30px;
        height: 30px;
        font-size: 1rem;
    }

    .cw-sample-unlock-steps {
        padding: 6px 14px 14px;
        gap: 10px;
    }

    .cw-sample-paypal-badge {
        padding: 10px 12px;
        border-radius: 14px;
        gap: 10px;
    }

    .cw-sample-gate-form {
        padding: 14px;
        gap: 12px;
    }

    .cw-sample-gate-form label,
    .cw-sample-gate-form input {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .cw-sample-gate-form input {
        padding: 0 10px;
        font-size: 0.86rem;
    }

    .cw-sample-gate-form .cw-sample-gate-actions {
        flex-direction: row;
        flex-wrap: wrap;
        width: 100%;
    }

    .cw-sample-gate-form .cw-sample-gate-actions .btn {
        flex: 1 1 calc(50% - 8px);
    }

    .cw-sample-gate-result {
        width: 100%;
    }

    .cw-sample-pdf-shell {
        gap: 10px;
        margin-top: 14px;
    }

    .cw-sample-pdf-viewer {
        gap: 12px;
        padding: 8px;
        border-radius: 16px;
        min-height: 180px;
    }

    .cw-sample-pdf-status {
        padding: 14px;
        border-radius: 14px;
    }

    .cw-sample-pdf-page {
        border-radius: 14px;
    }

    .cw-sample-pdf-cta {
        left: 8px;
        right: 8px;
        min-height: auto;
        padding: 14px 10px;
        border-radius: 12px;
        gap: 4px;
    }

    .cw-sample-pdf-cta.is-secondary {
        display: grid;
        padding: 12px 10px;
    }

    .cw-sample-pdf-cta p {
        display: none !important;
    }

    .cw-sample-order-modal .cw-order-card {
        padding: 0 16px 16px;
    }
}
@media (min-width:641px){.cw-sample-hero{border-radius:clamp(18px,2.7vw,34px) clamp(18px,2.7vw,34px) clamp(30px,4vw,54px) clamp(10px,1.7vw,24px);box-shadow:inset 0 0 0 1px var(--border-color),inset 0 -34px 54px color-mix(in srgb,var(--bg-primary) 72%,transparent),0 16px 34px rgba(0,0,0,.16);background-position:center center,center center,right center!important;background-size:100% 100%,100% 100%,auto!important;background-repeat:no-repeat!important}}@media (max-width:640px){.cw-sample-hero{min-height:auto;background-image:linear-gradient(135deg,color-mix(in srgb,var(--cw-teal) 9%,transparent),transparent 58%)!important;background-color:var(--bg-elevated)!important;background-position:center!important;background-size:auto!important;border-radius:18px;padding:16px 12px;box-shadow:inset 0 0 0 1px var(--border-color)}.cw-sample-hero::before,.cw-sample-hero::after{display:none!important}body.light-mode .cw-sample-hero{background-image:linear-gradient(135deg,color-mix(in srgb,var(--cw-teal) 12%,transparent),rgba(255,255,255,.62) 62%)!important}}
@media (min-width:641px){.cw-sample-hero{background-size:100% 100%,100% 100%,cover!important}}
.cw-sample-paper .cw-sample-content figure{margin:18px 0;max-width:100%;overflow:hidden;border-radius:14px}.cw-sample-paper .cw-sample-content figcaption{margin-top:7px;color:var(--text-muted);font-size:.82rem;line-height:1.45;text-align:center}.cw-sample-paper .cw-sample-content img{display:block;width:auto!important;max-width:100%!important;height:auto!important;margin:16px auto;border-radius:14px;object-fit:contain;box-shadow:0 16px 34px rgba(0,0,0,.16);background:color-mix(in srgb,var(--bg-elevated) 84%,transparent)}.cw-sample-paper .cw-sample-content p>img:only-child{margin-top:20px;margin-bottom:20px}.cw-sample-paper .cw-sample-content table{width:100%!important;max-width:100%!important;margin:20px 0;border-collapse:separate!important;border-spacing:0!important;table-layout:fixed!important;border:1px solid color-mix(in srgb,var(--cw-teal) 24%,var(--border-color));border-radius:14px;overflow:hidden;background:color-mix(in srgb,var(--bg-elevated) 88%,transparent);box-shadow:0 16px 34px color-mix(in srgb,var(--cw-teal) 8%,transparent)}.cw-sample-paper .cw-sample-content thead th{background:linear-gradient(135deg,color-mix(in srgb,var(--cw-teal) 22%,var(--bg-elevated)),color-mix(in srgb,var(--bg-secondary) 92%,transparent));color:var(--text-heading);font-weight:800}.cw-sample-paper .cw-sample-content th,.cw-sample-paper .cw-sample-content td{min-width:0!important;width:auto!important;max-width:none!important;padding:11px 12px!important;border:0!important;border-right:1px solid var(--border-color)!important;border-bottom:1px solid var(--border-color)!important;color:var(--text-secondary);font-size:.9rem;line-height:1.45;vertical-align:top;white-space:normal!important;overflow-wrap:anywhere;word-break:normal}.cw-sample-paper .cw-sample-content tr>*:last-child{border-right:0!important}.cw-sample-paper .cw-sample-content tbody tr:last-child>*{border-bottom:0!important}.cw-sample-paper .cw-sample-content tbody tr:nth-child(even){background:color-mix(in srgb,var(--cw-teal) 5%,transparent)}.cw-sample-paper .cw-sample-content tbody tr:hover{background:color-mix(in srgb,var(--cw-teal) 10%,transparent)}body.light-mode .cw-sample-paper .cw-sample-content img{box-shadow:0 14px 30px rgba(19,22,24,.12)}body.light-mode .cw-sample-paper .cw-sample-content table{background:rgba(255,255,255,.86);box-shadow:0 14px 28px rgba(19,22,24,.08)}@media (max-width:640px){.cw-sample-paper .cw-sample-content figure{margin:14px 0;border-radius:10px}.cw-sample-paper .cw-sample-content figcaption{font-size:.72rem}.cw-sample-paper .cw-sample-content img{width:100%!important;max-height:62vh;margin:12px auto;border-radius:10px;box-shadow:0 10px 22px rgba(0,0,0,.14)}.cw-sample-paper .cw-sample-content table{margin:14px 0;border-radius:10px;table-layout:fixed!important}.cw-sample-paper .cw-sample-content th,.cw-sample-paper .cw-sample-content td{padding:7px 6px!important;font-size:clamp(.58rem,2.65vw,.74rem)!important;line-height:1.28!important;overflow-wrap:anywhere;word-break:break-word;hyphens:auto}.cw-sample-paper .cw-sample-content thead th{font-weight:800}.cw-sample-paper .cw-sample-content table img{max-width:100%!important;margin:4px auto;border-radius:6px;box-shadow:none}}@media (max-width:380px){.cw-sample-paper .cw-sample-content th,.cw-sample-paper .cw-sample-content td{padding:6px 4px!important;font-size:.56rem!important;line-height:1.22!important}}
