/* 07-refinement.css - Public design refinement pass
 * Part of the Pulsar67 marketing stylesheet bundle.
 * Load order is defined in templates/layouts/_marketing_styles.html
 */

/* ===== Public design refinement pass ===== */
:root {
    --p67-primary: #5a52b8;
    --p67-primary-2: #6d5dfc;
    --p67-primary-dark: #393181;
    --p67-primary-soft: rgba(90, 82, 184, 0.1);
    --p67-primary-glow: rgba(90, 82, 184, 0.18);
    --p67-accent: #0f766e;
    --p67-accent-soft: rgba(15, 118, 110, 0.1);
    --p67-bg: #fbfbfd;
    --p67-bg-2: #fbfbfd;
    --p67-bg-3: #f0edf7;
    --p67-surface: #ffffff;
    --p67-surface-2: #faf8ff;
    --p67-border: rgba(15, 23, 42, 0.11);
    --p67-border-strong: rgba(15, 23, 42, 0.18);
    --p67-text: #111827;
    --p67-text-muted: #566174;
    --p67-text-dim: #8792a5;
    --p67-radius: 8px;
    --p67-radius-lg: 8px;
    --p67-shadow-soft: 0 1px 2px rgba(15, 23, 42, 0.06), 0 18px 36px rgba(15, 23, 42, 0.05);
}

body {
    background: var(--p67-bg);
}

.p67-navbar {
    background: rgba(244, 247, 251, 0.94);
}

.p67-navbar.p67-navbar-scrolled,
.p67-navbar.p67-navbar-dashboard {
    box-shadow: 0 1px 0 rgba(15, 23, 42, 0.04);
}

.p67-navbar .p67-nav-link {
    font-size: .94rem;
    font-weight: 680;
}

.p67-dropdown {
    border-radius: 8px;
    box-shadow: 0 20px 44px rgba(15, 23, 42, 0.13);
    min-width: 14rem;
    padding: .45rem;
}

.p67-dropdown .p67-menu-link {
    align-items: center;
    display: flex;
    gap: .65rem;
    min-height: 38px;
}

.p67-dropdown .p67-menu-link i {
    color: var(--p67-text-dim);
    text-align: center;
    width: 1rem;
}

.p67-dropdown .p67-menu-link:hover i,
.p67-dropdown .p67-menu-link:focus i {
    color: var(--p67-primary);
}

.p67-dropdown .p67-menu-divider {
    border-color: var(--p67-border);
    margin: .35rem .25rem;
}

.p67-btn-primary,
.p67-btn-ghost {
    border-radius: 8px;
    min-height: 40px;
    padding: .65rem 1.1rem;
}

.p67-btn-primary {
    box-shadow: 0 2px 6px rgba(90, 82, 184, 0.14);
}

.p67-btn-primary:hover {
    box-shadow: 0 6px 14px rgba(57, 49, 129, 0.16);
}

.p67-btn-ghost {
    background: #ffffff;
}

.p67-hero,
.p67-page-hero,
.p67-builder-hero,
.p67-contact-page {
    background: var(--p67-bg);
}

.p67-hero {
    background:
        radial-gradient(circle at 16% 18%, rgba(185, 168, 255, .2), transparent 34%),
        linear-gradient(135deg, rgba(123, 92, 255, .18), rgba(69, 52, 150, .12) 46%, rgba(255, 255, 255, .035) 100%),
        linear-gradient(180deg, #241c42 0%, #2d2355 58%, #352766 100%);
    border-bottom: 0;
    color: #ffffff;
    min-height: 0;
    padding: 8rem 0 5rem;
}

.p67-hero::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    opacity: .62;
}

.p67-page-hero::before,
.p67-contact-hero::before {
    background-image:
        linear-gradient(rgba(15, 23, 42, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(15, 23, 42, 0.04) 1px, transparent 1px);
    opacity: .45;
}

.p67-cta-glow {
    display: none !important;
}

.p67-hero-row {
    display: block;
    min-height: 0;
}

.p67-hero .col-lg-6 {
    max-width: 100%;
    width: 100%;
}

.p67-hero .col-lg-6:has(.p67-pulsar),
.p67-hero .col-lg-6:has(.p67-home-console) {
    display: none !important;
}

.p67-hero .p67-pulsar,
.p67-hero .p67-home-console {
    display: none !important;
}

.p67-hero-content {
    max-width: 920px;
}

.p67-eyebrow {
    background: rgba(90, 82, 184, 0.08);
    border-color: rgba(90, 82, 184, 0.18);
    border-radius: 7px;
    color: var(--p67-primary-dark);
    letter-spacing: 0;
}

.p67-eyebrow-dot {
    background: var(--p67-accent);
    box-shadow: none;
    animation: none;
}

.p67-hero-title,
.p67-page-hero h1,
.p67-section-title,
.p67-builder-hero h1,
.p67-builder-section h2,
.p67-builder-cta h2,
.p67-builder-article h1,
.p67-builder-article h2,
.p67-contact-hero h1 {
    letter-spacing: 0;
}

.p67-hero-title {
    color: #ffffff;
    font-size: clamp(2.45rem, 5vw, 4.45rem);
    line-height: 1.02;
    max-width: 920px;
}

.p67-gradient-text {
    animation: none;
    background: none;
    color: #b9a8ff;
}

.p67-hero-sub {
    color: rgba(255, 255, 255, .78);
    max-width: 820px;
}

.p67-hero-stats {
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 8px;
    box-shadow: none;
    display: inline-flex;
    padding: .85rem 1rem;
}

.p67-hero-stats strong {
    color: #ffffff;
    font-size: 1.45rem;
}

.p67-hero-stats span,
.p67-hero .p67-link-arrow {
    color: rgba(255, 255, 255, .72);
}

.p67-hero .p67-link-arrow:hover {
    color: #ffffff;
}

.p67-hero-stats-divider {
    background: rgba(255, 255, 255, .2);
}

.p67-home-console {
    display: none !important;
    background: rgba(255, 255, 255, .92);
    border: 1px solid var(--p67-border);
    border-radius: 8px;
    box-shadow: var(--p67-shadow-soft);
    padding: 1rem;
}

.p67-home-console-top,
.p67-home-console-status {
    align-items: center;
    display: flex;
    justify-content: space-between;
    gap: 1rem;
}

.p67-home-console-top {
    border-bottom: 1px solid var(--p67-border);
    padding-bottom: .9rem;
}

.p67-home-console-top span,
.p67-home-console-grid span {
    color: var(--p67-text-dim);
    font-size: .78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.p67-home-console-top strong,
.p67-home-console-grid strong {
    color: var(--p67-text);
    display: block;
}

.p67-home-console-grid {
    display: grid;
    gap: .8rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: .95rem 0;
}

.p67-home-console-grid > div {
    background: var(--p67-surface-2);
    border: 1px solid var(--p67-border);
    border-radius: 7px;
    padding: .9rem;
}

.p67-home-console-status {
    border-top: 1px solid var(--p67-border);
    color: var(--p67-text-muted);
    font-size: .9rem;
    padding-top: .9rem;
}

.p67-home-console-status i {
    color: var(--p67-accent);
    font-size: .55rem;
}

.p67-home-console-status a {
    font-weight: 800;
}

.p67-section {
    background: var(--p67-bg);
    padding: 4.5rem 0;
}

.p67-section-alt {
    background: var(--p67-bg);
}

.p67-section-head {
    margin-bottom: 2.35rem;
}

.p67-section-title {
    font-size: clamp(1.8rem, 3vw, 2.55rem);
}

.p67-page-hero {
    padding: 7rem 0 3rem;
}

.p67-page-hero h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
}

.p67-page-hero p {
    max-width: 760px;
}

.p67-feature,
.p67-feature-guide,
.p67-command-panel,
.p67-ops-card,
.p67-plan-fit-card,
.p67-workload-row,
.p67-confidence-card,
.p67-location,
.p67-tool-card,
.p67-stat-card,
.p67-blog-card,
.p67-contact-card,
.p67-contact-success,
.p67-lg-panel,
.p67-lg-output,
.p67-lg-alert {
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.p67-feature:hover,
.p67-blog-card:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.p67-feature-icon,
.p67-feature-row-icon,
.p67-confidence-icon,
.p67-workload-icon,
.p67-proof-icon {
    background: #f2efff;
    border: 1px solid rgba(90, 82, 184, 0.16);
    border-radius: 8px;
    color: var(--p67-primary);
}

.p67-feature-row {
    background: rgba(255, 255, 255, .74);
    border: 1px solid var(--p67-border);
    border-radius: 8px;
    padding: 1.05rem;
}

.p67-plan {
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 1.65rem 1.45rem;
}

.p67-plan:hover {
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
}

.p67-plan-featured {
    background:
        linear-gradient(180deg, rgba(90, 82, 184, 0.06), rgba(90, 82, 184, 0)),
        var(--p67-surface);
    box-shadow: 0 18px 38px rgba(90, 82, 184, .14);
}

.p67-plan-badge {
    border-radius: 6px;
    box-shadow: 0 8px 18px rgba(90, 82, 184, .24);
    letter-spacing: 0;
}

.p67-plan-name {
    font-size: 1.18rem;
}

.p67-plan-tagline,
.p67-plan-billed {
    color: var(--p67-text-muted);
}

.p67-plan-amount {
    font-size: clamp(1.45rem, 2.25vw, 1.95rem);
}

.p67-plan-specs li {
    align-items: flex-start;
    color: var(--p67-text-muted);
}

.p67-billing-toggle {
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.p67-buying-confidence {
    align-items: stretch;
}

.p67-cta-card {
    background: var(--p67-surface);
    border-color: var(--p67-border);
    border-radius: 8px;
    box-shadow: var(--p67-shadow-soft);
}

.p67-footer {
    background: #111827;
    border-top: 0;
    color: #a7b0c0;
}

.p67-footer-title,
.p67-footer-bottom,
.p67-footer-bottom a {
    color: #d5dbe7;
}

.p67-footer-tagline,
.p67-footer-list a,
.p67-footer-legal {
    color: #a7b0c0;
}

.p67-footer-list a:hover,
.p67-footer-bottom a:hover {
    color: #ffffff;
}

.p67-footer-top,
.p67-footer-bottom {
    border-color: rgba(255, 255, 255, .12);
}

.p67-social a {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .12);
    color: #d5dbe7;
}

.p67-builder-hero {
    border-bottom: 1px solid var(--p67-border);
    min-height: 460px;
    padding: 7.5rem 0 3.5rem;
}

.p67-builder-hero h1 {
    font-size: clamp(2.15rem, 4.8vw, 4.25rem);
    line-height: 1.03;
}

.p67-builder-grid {
    gap: 1rem;
}

.p67-builder-card {
    border-color: var(--p67-border);
    border-radius: 8px;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
    padding: 1.35rem;
}

.p67-checkout-hero .p67-container {
    max-width: 980px;
}

.p67-checkout-steps {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .55rem;
    margin-top: 1.5rem;
}

.p67-checkout-steps span {
    align-items: center;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    color: rgba(255, 255, 255, .72);
    display: inline-flex;
    font-size: .82rem;
    font-weight: 800;
    min-height: 34px;
    padding: .45rem .8rem;
}

.p67-checkout-steps span.is-active {
    background: rgba(255, 255, 255, .16);
    color: #ffffff;
}

.p67-checkout-section {
    padding-top: 3rem;
}

.p67-checkout-layout {
    align-items: start;
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
}

.p67-checkout-layout-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.p67-checkout-admin-card {
    grid-column: 1 / -1;
}

.p67-checkout-card {
    background:
        linear-gradient(180deg, rgba(90, 82, 184, .035), rgba(90, 82, 184, 0) 40%),
        #ffffff;
}

.p67-checkout-summary {
    position: sticky;
    top: 5.5rem;
}

.p67-checkout-card-head {
    border-bottom: 1px solid var(--p67-border);
    margin: -.1rem 0 1rem;
    padding-bottom: 1rem;
}

.p67-checkout-card-head span {
    color: var(--p67-primary-dark);
    display: block;
    font-size: .74rem;
    font-weight: 850;
    margin-bottom: .35rem;
    text-transform: uppercase;
}

.p67-checkout-card-head h2,
.p67-checkout-card-head h3 {
    font-family: var(--p67-heading-font);
    font-size: 1.25rem;
    font-weight: 850;
    letter-spacing: 0;
    margin: 0;
}

.p67-checkout-card-head p {
    color: var(--p67-text-muted);
    font-size: .94rem;
    line-height: 1.55;
    margin: .45rem 0 0;
}

.p67-checkout-subhead {
    border-bottom: 0;
    margin: 1.2rem 0 .65rem;
    padding-bottom: 0;
}

.p67-checkout-spec-grid {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.p67-checkout-spec-grid div {
    background: #faf8ff;
    border: 1px solid rgba(90, 82, 184, .13);
    border-radius: 8px;
    padding: .85rem;
}

.p67-checkout-spec-grid strong,
.p67-checkout-spec-grid span {
    display: block;
}

.p67-checkout-spec-grid strong {
    color: var(--p67-text);
    font-size: 1.1rem;
    font-weight: 850;
}

.p67-checkout-spec-grid span {
    color: var(--p67-text-muted);
    font-size: .8rem;
    margin-top: .2rem;
}

.p67-checkout-choice-list {
    margin-top: 0;
}

.p67-checkout-choice {
    background: #ffffff;
}

.p67-checkout-choice:hover,
.p67-checkout-choice.is-selected {
    background: #faf8ff;
}

.p67-checkout-choice.is-selected {
    box-shadow: inset 3px 0 0 var(--p67-primary);
}

.p67-checkout-payment-card .p67-builder-actions {
    align-items: stretch;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p67-checkout-payment-card .p67-builder-actions form,
.p67-checkout-payment-card .p67-builder-actions button {
    width: 100%;
}

.p67-builder-callout {
    background: #f2efff;
    border-color: rgba(90, 82, 184, .18);
    border-radius: 8px;
}

.p67-public-rendered-page > h1,
.p67-public-rendered-page > header:not([class]) {
    background: var(--p67-bg);
    border-bottom: 1px solid var(--p67-border);
    padding: 7rem max(1.25rem, calc((100vw - 1140px) / 2)) 3rem;
}

.p67-public-rendered-page > h1 {
    font-size: clamp(2rem, 4vw, 3.25rem);
    margin: 0;
}

.p67-blog-card {
    background: #ffffff;
}

.p67-blog-card-icon::after {
    background: linear-gradient(180deg, transparent 35%, rgba(17, 24, 39, .12));
    content: "";
    inset: 0;
    position: absolute;
}

.p67-blog-card-meta {
    letter-spacing: 0;
}

.p67-contact-page {
    background: var(--p67-bg);
}

.p67-contact-hero {
    padding: 8rem 0 5rem;
}

.p67-contact-meta > div,
.p67-contact-card,
.p67-contact-success {
    background: rgba(255, 255, 255, .9);
}

.p67-contact-card input,
.p67-contact-card textarea,
.p67-lg-input-row input,
.p67-lg-select-row select {
    border-radius: 8px;
}

.p67-lg-panel,
.p67-lg-output,
.p67-lg-alert {
    background: #ffffff;
}

.p67-lg-test {
    background:
        linear-gradient(180deg, rgba(90, 82, 184, .06), rgba(90, 82, 184, 0)),
        #ffffff;
}

.p67-lg-output pre {
    background: #0b1220;
    border-top: 1px solid rgba(255, 255, 255, .08);
}

/* Compact purple hero treatment for public sub-pages. */
.p67-page-hero,
.p67-builder-hero,
.p67-contact-hero,
.p67-article-hero,
.p67-public-rendered-page > h1,
.p67-public-rendered-page > header:not([class]) {
    background:
        radial-gradient(circle at 16% 18%, rgba(185, 168, 255, .18), transparent 34%),
        linear-gradient(135deg, rgba(123, 92, 255, .16), rgba(69, 52, 150, .12) 46%, rgba(255, 255, 255, .03) 100%),
        linear-gradient(180deg, #281f4a 0%, #31265b 58%, #3b2b70 100%);
    border-bottom: 0;
    color: #ffffff;
    min-height: 0;
    overflow: hidden;
    position: relative;
}

.p67-page-hero,
.p67-contact-hero,
.p67-article-hero {
    padding: 6.65rem 0 2.85rem;
}

.p67-builder-hero {
    min-height: 360px;
    padding: 6.85rem 0 3.15rem;
}

.p67-public-rendered-page > h1,
.p67-public-rendered-page > header:not([class]) {
    padding: 6.65rem max(1.25rem, calc((100vw - 1140px) / 2)) 2.85rem;
}

.p67-page-hero::before,
.p67-builder-hero::before,
.p67-contact-hero::before,
.p67-article-hero::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 44px 44px;
    content: "";
    inset: 0;
    opacity: .55;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.p67-page-hero > .p67-container,
.p67-builder-hero > .p67-container,
.p67-contact-hero > .p67-container,
.p67-article-hero > .p67-container {
    position: relative;
    z-index: 1;
}

.p67-page-hero h1,
.p67-builder-hero h1,
.p67-contact-hero h1,
.p67-article-title,
.p67-public-rendered-page > h1,
.p67-public-rendered-page > header:not([class]) h1 {
    color: #ffffff;
}

.p67-page-hero p,
.p67-builder-hero p,
.p67-contact-hero p,
.p67-article-sub,
.p67-article-byline,
.p67-public-rendered-page > header:not([class]) p {
    color: rgba(255, 255, 255, .76);
}

.p67-article-hero .p67-article-byline-author {
    color: #ffffff;
}

.p67-article-hero .p67-article-byline-dot {
    background: rgba(255, 255, 255, .42);
}

.p67-page-hero .p67-eyebrow,
.p67-builder-hero .p67-eyebrow,
.p67-contact-hero .p67-eyebrow,
.p67-article-hero .p67-eyebrow {
    background: rgba(255, 255, 255, .08);
    border-color: rgba(255, 255, 255, .18);
    color: rgba(255, 255, 255, .86);
}

/* Public billing surfaces share the marketing shell, so keep their reused
   console-style components themed inside this stylesheet too. */
.p67-builder-hero.p67-world-map-bg,
.p67-page-hero.p67-world-map-bg,
.p67-contact-hero.p67-world-map-bg,
.p67-article-hero.p67-world-map-bg {
    animation: none;
    filter: none;
    inset: auto;
    isolation: isolate;
    opacity: 1;
    pointer-events: auto;
    position: relative;
    transform: none;
    -webkit-mask-image: none;
    mask-image: none;
    z-index: auto;
}

.p67-hero::after,
.p67-page-hero::after,
.p67-builder-hero::after,
.p67-contact-hero::after,
.p67-article-hero::after {
    background: url("/static/website/img/world-map-outline.04b03780e8d0.svg") center 48% / min(1180px, 118vw) auto no-repeat;
    content: "";
    filter: invert(1) grayscale(1);
    inset: 0;
    opacity: .08;
    pointer-events: none;
    position: absolute;
    z-index: 0;
}

.p67-hero > .p67-container {
    position: relative;
    z-index: 1;
}

.p67-builder-hero.p67-checkout-hero {
    min-height: 380px;
}

.p67-builder-hero.p67-checkout-hero h1 {
    max-width: 760px;
}

.p67-builder-hero.p67-checkout-hero p {
    max-width: 760px;
}

.p67-builder-section {
    background:
        radial-gradient(circle at 8% 0%, rgba(123, 92, 255, .055), transparent 28%),
        linear-gradient(180deg, #fbfbfe 0%, #f7f7fb 100%);
}

.p67-checkout-section {
    margin-top: -1.75rem;
    padding-top: 0;
    position: relative;
    z-index: 2;
}

.p67-checkout-card,
.p67-builder-section .p67-builder-card {
    background:
        linear-gradient(180deg, rgba(123, 92, 255, .035), rgba(123, 92, 255, 0) 42%),
        rgba(255, 255, 255, .98);
    border: 1px solid rgba(63, 54, 126, .13);
    box-shadow: 0 18px 48px rgba(31, 28, 70, .08);
}

.p67-checkout-summary {
    box-shadow: 0 22px 58px rgba(31, 28, 70, .11);
}

.panel-heading {
    align-items: center;
    border-bottom: 1px solid rgba(63, 54, 126, .12);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
}

.panel-heading h2 {
    color: var(--p67-text);
    font-family: var(--p67-heading-font);
    font-size: 1.15rem;
    font-weight: 850;
    margin: 0;
}

.panel-heading p {
    color: var(--p67-text-muted);
    font-size: .94rem;
    margin: .25rem 0 0;
}

.table-list {
    border: 1px solid rgba(63, 54, 126, .12);
    border-radius: 8px;
    overflow: hidden;
}

.table-row,
.empty-state {
    align-items: center;
    background: rgba(255, 255, 255, .78);
    border-top: 1px solid rgba(63, 54, 126, .1);
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    min-height: 56px;
    padding: .9rem 1rem;
}

.table-row:first-child,
.empty-state:first-child {
    border-top: 0;
}

.table-row:hover {
    background: rgba(250, 248, 255, .95);
}

.table-row > div,
.empty-state {
    min-width: 0;
}

.table-row strong,
.empty-state strong {
    color: var(--p67-text);
    display: block;
    font-weight: 850;
    line-height: 1.25;
}

.table-row span,
.empty-state span {
    color: var(--p67-text-muted);
    display: block;
    font-size: .9rem;
    line-height: 1.45;
    margin-top: .2rem;
}

.table-row-link {
    color: inherit;
    text-decoration: none;
}

.table-row-link:hover {
    color: inherit;
}

.empty-state {
    align-items: flex-start;
    display: grid;
    justify-content: stretch;
    min-height: 96px;
}

/* Canonical status-pill spec - kept identical to the block in css/app.css so
   pills look the same in the client area and the console. */
.status-pill,
.neutral-pill,
.danger-pill,
.warning-pill {
    align-items: center;
    border-radius: 999px;
    display: inline-flex;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 800;
    gap: 6px;
    justify-content: center;
    letter-spacing: 0.03em;
    line-height: 1;
    margin-top: 0;
    min-height: 24px;
    padding: 5px 10px;
    text-transform: uppercase;
    white-space: nowrap;
}

.status-pill {
    background: rgba(15, 122, 74, .1);
    border: 1px solid rgba(15, 122, 74, .24);
    color: #0f7a4a;
}

.neutral-pill {
    background: rgba(91, 98, 120, .08);
    border: 1px solid rgba(91, 98, 120, .18);
    color: #4b5565;
}

.danger-pill {
    background: rgba(180, 35, 24, .08);
    border: 1px solid rgba(180, 35, 24, .2);
    color: #b42318;
}

.warning-pill {
    background: rgba(154, 91, 10, .1);
    border: 1px solid rgba(154, 91, 10, .24);
    color: #9a5b0a;
}

.status-dot {
    background: currentColor;
    border-radius: 999px;
    display: inline-block;
    height: .45rem;
    width: .45rem;
}

.p67-checkout-spec-grid div {
    background: rgba(250, 248, 255, .94);
    border-color: rgba(90, 82, 184, .18);
}

.p67-checkout-choice {
    border-left: 3px solid transparent;
}

.p67-checkout-choice.is-selected {
    border-left-color: var(--p67-primary);
    box-shadow: none;
}

.p67-checkout-card .p67-builder-actions {
    margin-top: 1.25rem;
}

.p67-client-area-page .p67-builder-section {
    padding-top: 1.25rem;
}

.p67-client-area-page .p67-section {
    padding-top: 1rem;
}

.p67-app-page-head,
.p67-checkout-simple-head {
    align-items: flex-end;
    display: flex;
    gap: 1rem;
    justify-content: space-between;
    margin: 0 0 1rem;
}

.p67-app-page-head h1,
.p67-checkout-simple-head h1 {
    color: var(--p67-text);
    font-family: var(--p67-heading-font);
    font-size: clamp(1.85rem, 3vw, 2.65rem);
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.05;
    margin: .65rem 0 .45rem;
}

.p67-app-page-head p,
.p67-checkout-simple-head p {
    color: var(--p67-muted);
    font-size: 1rem;
    line-height: 1.55;
    margin: 0;
    max-width: 720px;
}

.p67-checkout-simple-section {
    margin-top: 0;
    padding-top: 1.25rem;
}

.p67-checkout-layout-simple {
    align-items: start;
}

.p67-checkout-mini-steps {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.p67-checkout-mini-steps span {
    background: #ffffff;
    border: 1px solid var(--p67-border);
    border-radius: 999px;
    color: var(--p67-muted);
    display: inline-flex;
    font-size: .78rem;
    font-weight: 800;
    line-height: 1;
    padding: .55rem .75rem;
}

.p67-checkout-mini-steps span.is-active {
    background: rgba(92, 70, 156, .09);
    border-color: rgba(92, 70, 156, .2);
    color: var(--p67-primary-dark);
}

.p67-client-billing-page .p67-builder-section {
    padding-bottom: 1.25rem;
    padding-top: 1rem;
}

.p67-client-billing-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr));
}

.p67-client-billing-panel {
    min-width: 0;
}

.p67-client-area-page .p67-container {
    max-width: 1180px;
}

.p67-client-area-page .p67-builder-section {
    padding-bottom: 1.25rem;
}

.p67-client-area-page .p67-client-billing-panel {
    background: #ffffff;
    border: 1px solid #d9deea;
    box-shadow: 0 8px 24px rgba(24, 28, 45, .045);
    overflow: hidden;
    padding: 0;
}

.p67-client-area-page .p67-client-billing-panel:hover {
    border-color: #cbd2e1;
    box-shadow: 0 12px 30px rgba(24, 28, 45, .06);
}

.p67-client-billing-panel .panel-heading {
    align-items: center;
    background: #ffffff;
    border-bottom-color: #e8ebf2;
    gap: .75rem;
    margin: 0;
    padding: .8rem 1.1rem;
}

.p67-client-billing-panel .panel-heading > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
}

.p67-client-billing-panel .panel-heading:last-child {
    border-bottom: 0;
}

.p67-client-billing-panel .panel-heading h2 {
    font-size: .95rem;
    font-weight: 750;
    line-height: 1.2;
}

.p67-client-billing-panel .panel-heading p {
    color: #6b7385;
    font-size: .83rem;
    line-height: 1.4;
    margin-top: .2rem;
    max-width: 620px;
}

.p67-client-billing-panel .panel-heading .p67-btn {
    align-self: center;
    flex: 0 0 auto;
    font-size: .85rem;
    min-height: 36px;
    padding: .45rem .85rem;
    white-space: nowrap;
}

.p67-client-billing-panel .table-list {
    border: 0;
    border-radius: 0;
}

.p67-client-billing-panel .table-row {
    background: #ffffff;
    border-color: #edf0f6;
    min-height: 46px;
    padding: .6rem 1.1rem;
}

.p67-client-billing-panel .table-row:hover {
    background: #faf9ff;
}

.p67-client-billing-panel .table-row strong {
    font-size: .9rem;
    font-weight: 700;
}

.p67-client-billing-panel .table-row span {
    color: #6b7385;
    font-size: .82rem;
}

.p67-client-billing-panel .empty-state {
    background: #f8fafc;
    border: 1px dashed #cfd6e4;
    border-radius: 8px;
    display: block;
    margin: 1rem 1.15rem;
    min-height: 0;
    padding: 1rem;
}

.p67-client-billing-panel .empty-state strong {
    color: #111827;
    font-size: .92rem;
}

.p67-client-billing-panel .empty-state span {
    color: #667085;
    font-size: .86rem;
    margin-top: .3rem;
}

.p67-client-billing-panel .p67-inline-actions {
    background: #fbfcff;
    border-top-color: #edf0f6;
    gap: .55rem;
    padding: .75rem 1.15rem;
}

.p67-payment-method-environment {
    align-items: center;
    background: #fff;
    border: 1px solid #d9deea;
    border-radius: 10px;
    box-shadow: 0 10px 24px rgba(24, 28, 45, .045);
    display: inline-flex;
    gap: .75rem;
    padding: .75rem;
}

.p67-payment-method-environment label {
    color: #334155;
    font-size: .82rem;
    font-weight: 850;
    margin: 0;
}

.p67-payment-method-environment select {
    appearance: none;
    background: #f8fafc;
    border: 1px solid #cfd6e4;
    border-radius: 8px;
    color: #111827;
    min-height: 40px;
    min-width: 150px;
    padding: .55rem .85rem;
}

.p67-payment-method-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.p67-payment-method-option {
    display: flex;
    flex-direction: column;
    min-height: 250px;
}

.p67-payment-method-option form {
    margin-top: auto;
}

.p67-payment-method-detail {
    color: #64748b;
    font-size: .9rem;
    line-height: 1.55;
    margin: 0 0 1.25rem;
}

.p67-stripe-method-card {
    max-width: 760px;
}

.p67-stripe-method-form {
    display: grid;
    gap: 1rem;
}

.p67-stripe-card-element {
    background: #f8fafc;
    border: 1px solid #cfd6e4;
    border-radius: 10px;
    padding: 1rem;
    transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.p67-stripe-card-element.StripeElement--focus {
    background: #fff;
    border-color: rgba(91, 78, 198, .55);
    box-shadow: 0 0 0 4px rgba(91, 78, 198, .12);
}

.p67-stripe-card-element.StripeElement--invalid {
    border-color: rgba(185, 28, 28, .55);
}

.p67-stripe-error[hidden] {
    display: none;
}

.p67-service-row {
    grid-template-columns: minmax(0, 1fr) auto auto;
}

.p67-service-meta {
    align-items: flex-end;
    display: grid;
    gap: .15rem;
    justify-items: end;
}

.p67-service-meta span {
    color: var(--p67-text-muted);
    font-size: .78rem;
    font-weight: 700;
    margin: 0;
}

.p67-inline-actions {
    border-top: 1px solid rgba(63, 54, 126, .1);
    display: flex;
    justify-content: flex-end;
    padding: .75rem 1rem;
}

.p67-checkout-rate-strip {
    display: grid;
    gap: .75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-bottom: 1rem;
}

.p67-checkout-rate-strip div {
    background: rgba(250, 248, 255, .94);
    border: 1px solid rgba(90, 82, 184, .18);
    border-radius: 8px;
    padding: .9rem;
}

.p67-checkout-rate-strip span,
.p67-checkout-rate-strip strong {
    display: block;
}

.p67-checkout-rate-strip span {
    color: var(--p67-text-muted);
    font-size: .74rem;
    font-weight: 850;
    text-transform: uppercase;
}

.p67-checkout-rate-strip strong {
    color: var(--p67-text);
    font-family: var(--p67-heading-font);
    font-size: 1.35rem;
    font-weight: 900;
    letter-spacing: 0;
    margin-top: .25rem;
}

.p67-checkout-template-select {
    display: grid;
    gap: .4rem;
    margin-bottom: 1rem;
}

.p67-checkout-template-select > span {
    color: var(--p67-text-muted);
    font-size: .74rem;
    font-weight: 850;
    text-transform: uppercase;
}

.p67-checkout-template-select select {
    appearance: none;
    background: #ffffff;
    border: 1px solid rgba(90, 82, 184, .22);
    border-radius: 8px;
    color: var(--p67-text);
    font: inherit;
    font-weight: 750;
    min-height: 44px;
    padding: .7rem .85rem;
}

.p67-checkout-template-select select:focus {
    border-color: var(--p67-primary);
    box-shadow: 0 0 0 3px rgba(90, 82, 184, .12);
    outline: 0;
}

.p67-checkout-template-warning {
    margin-bottom: 1rem;
}

.p67-checkout-admin-card {
    grid-column: 1 / -1;
    position: relative;
    z-index: 0;
}

.p67-catalog-cadences a {
    background: rgba(250, 248, 255, .72);
    border: 1px solid rgba(63, 54, 126, .1);
    border-radius: 8px;
    display: grid;
    gap: .15rem;
    padding: .55rem .65rem;
}

.p67-catalog-cadences a strong,
.p67-catalog-cadences a small {
    display: block;
}

.p67-catalog-cadences a small {
    color: var(--p67-text-muted);
    font-size: .76rem;
    font-weight: 650;
    line-height: 1.35;
}

.dashboard-shell .p67-builder-hero,
.public-sidebar-shell .p67-builder-hero {
    border-radius: 8px;
    margin: 1rem 0 0;
    min-height: 250px;
    padding: 3rem 1.35rem 2.35rem;
}

.dashboard-shell .p67-builder-hero .p67-container,
.dashboard-shell .p67-builder-section .p67-container,
.public-sidebar-shell .p67-builder-hero .p67-container,
.public-sidebar-shell .p67-builder-section .p67-container {
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.dashboard-shell .p67-builder-section,
.public-sidebar-shell .p67-builder-section {
    background: transparent;
    padding: 1rem 0 2.5rem;
}

.dashboard-shell .p67-checkout-section,
.public-sidebar-shell .p67-checkout-section {
    margin-top: 0;
}

.dashboard-shell .p67-builder-grid,
.public-sidebar-shell .p67-builder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.dashboard-shell .p67-builder-card > h2,
.public-sidebar-shell .p67-builder-card > h2 {
    color: var(--p67-text);
    font-family: var(--p67-heading-font);
    font-size: 1.3rem;
    font-weight: 850;
    line-height: 1.15;
    margin: 0 0 .9rem;
}

.dashboard-shell .p67-builder-card,
.public-sidebar-shell .p67-builder-card {
    box-shadow: 0 10px 32px rgba(31, 28, 70, .07);
}

.dashboard-shell .section-gap,
.public-sidebar-shell .section-gap {
    margin-top: 1rem;
}

@media (max-width: 991.98px) {
    .p67-client-billing-grid {
        grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr));
    }

    .p67-service-row {
        grid-template-columns: 1fr;
    }

    .p67-service-meta {
        align-items: start;
        justify-items: start;
    }

    .p67-checkout-rate-strip {
        grid-template-columns: 1fr;
    }

    .p67-payment-method-grid {
        grid-template-columns: 1fr;
    }

    .p67-payment-method-environment {
        align-items: stretch;
        display: grid;
        width: 100%;
    }

    .p67-checkout-layout,
    .p67-checkout-layout-wide {
        grid-template-columns: 1fr;
    }

    .p67-checkout-summary {
        position: static;
    }

    .p67-hero,
    .p67-page-hero,
    .p67-builder-hero {
        padding-top: 6.25rem;
    }

    .p67-hero-stats {
        display: flex;
        width: 100%;
    }

    .p67-home-console-grid,
    .p67-buying-confidence {
        grid-template-columns: 1fr;
    }

    .p67-credit-model-grid,
    .dashboard-shell .p67-builder-grid,
    .public-sidebar-shell .p67-builder-grid {
        grid-template-columns: 1fr;
    }

    .p67-app-page-head,
    .p67-checkout-simple-head {
        align-items: stretch;
        flex-direction: column;
    }

    .p67-checkout-mini-steps {
        justify-content: flex-start;
    }
}

@media (max-width: 575.98px) {
    .p67-checkout-spec-grid,
    .p67-checkout-payment-card .p67-builder-actions {
        grid-template-columns: 1fr;
    }

    .p67-checkout-steps span {
        flex: 1 1 calc(50% - .55rem);
        justify-content: center;
    }

    .p67-hero,
    .p67-page-hero,
    .p67-builder-hero {
        padding-bottom: 2.5rem;
    }

    .p67-hero-stats {
        align-items: stretch;
        display: grid;
        gap: .75rem;
    }

    .p67-hero-stats-divider {
        display: none;
    }

    .p67-home-console-top,
    .p67-home-console-status {
        align-items: flex-start;
        flex-direction: column;
    }

}

