/* 14-enhancements.css - Recent public-site enhancements
 * Part of the Pulsar67 marketing stylesheet bundle.
 * Load order is defined in templates/layouts/_marketing_styles.html
 */

/* ---------- Public site enhancements ---------- */
.p67-breadcrumbs {
    padding: 1.25rem 0 0;
    font-size: 0.875rem;
    color: var(--p67-text-muted);
}

.p67-breadcrumbs ol {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem 0.5rem;
    list-style: none;
    margin: 0;
    padding: 0;
}

.p67-breadcrumbs li:not(:last-child)::after {
    content: "/";
    margin-left: 0.5rem;
    color: var(--p67-text-dim);
}

.p67-breadcrumbs a {
    color: var(--p67-text-muted);
}

.p67-breadcrumbs a:hover {
    color: var(--p67-primary-2);
}

.p67-faq-list {
    display: grid;
    gap: 1rem;
}

.p67-faq-item {
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--p67-border);
    border-radius: var(--p67-radius-lg);
    background: var(--p67-surface);
}

.p67-faq-item h3 {
    font-size: 1.05rem;
    margin-bottom: 0.5rem;
}

.p67-faq-item p {
    margin: 0;
    color: var(--p67-text-muted);
}

.p67-testimonial-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.p67-testimonial-card p {
    flex: 1 1 auto;
    margin: 0 0 1.25rem;
    color: var(--p67-text);
    font-size: 0.9375rem;
    line-height: 1.5;
}

.p67-testimonial-card footer {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    margin-top: auto;
    font-size: 0.8125rem;
    color: var(--p67-text-dim);
}

.p67-testimonial-quote-mark {
    font-size: 1rem;
    color: var(--p67-primary);
    opacity: 0.4;
    margin-bottom: 0.5rem;
}

.p67-testimonial-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--p67-primary-soft);
    color: var(--p67-primary-dark);
    font-weight: 800;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.p67-bento-card-link {
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.p67-bento-card-link:hover {
    transform: translateY(-2px);
    border-color: var(--p67-border-strong);
    color: inherit;
}

html[data-p67-theme="light"] .p67-faq-item,
html[data-p67-theme="light"] .p67-testimonial-card {
    background: #fff;
}

/* Footer: light theme must not keep dark-footer grey text/icons on a pale bg. */
html[data-p67-theme="light"] .p67-footer {
    color: var(--p67-text-muted);
    border-top: 1px solid var(--p67-border);
}

html[data-p67-theme="light"] .p67-footer-title,
html[data-p67-theme="light"] .p67-footer-bottom,
html[data-p67-theme="light"] .p67-footer-bottom a {
    color: var(--p67-text);
}

html[data-p67-theme="light"] .p67-footer-tagline,
html[data-p67-theme="light"] .p67-footer-list a,
html[data-p67-theme="light"] .p67-footer-legal {
    color: var(--p67-text-muted);
}

html[data-p67-theme="light"] .p67-footer-list a:hover,
html[data-p67-theme="light"] .p67-footer-bottom a:hover {
    color: var(--p67-primary-dark);
}

html[data-p67-theme="light"] .p67-footer-top,
html[data-p67-theme="light"] .p67-footer-bottom {
    border-color: var(--p67-border);
}

html[data-p67-theme="light"] .p67-social a {
    background: #fff;
    border-color: var(--p67-border-strong, var(--p67-border));
    color: var(--p67-text);
}

html[data-p67-theme="light"] .p67-social a:hover {
    background: var(--p67-primary);
    border-color: var(--p67-primary);
    color: #fff;
}

/* ---------- Vultr-inspired refresh: dark homepage hero in light theme ----------
   The inner pages (.p67-page-hero) and the dark-theme homepage hero already use
   this deep-indigo treatment (see 13-dark-polish.css). The light-theme homepage
   hero was the one holdout still on a pale card; this brings it in line so every
   marketing page opens on the same dark, full-bleed hero, matching the rest of
   the site and the reference direction (vultr.com). */
html[data-p67-theme="light"] .p67-home-hero.p67-hero,
html[data-p67-theme="light"] body:not(.auth-body) .p67-hero#top {
    background-color: #172235 !important;
    /* Diagonal light-beam streaks (the two 65deg bands) are the vultr.com-style
       accent motif: soft crossing bands of brand color over the dark ground,
       layered between the corner glows and the base map/fade so they read as
       texture rather than fighting the headline for contrast. */
    background-image:
        radial-gradient(circle at 18% 18%, rgba(139, 92, 246, .22), transparent 30rem),
        radial-gradient(circle at 88% 20%, rgba(55, 212, 165, .10), transparent 34rem),
        linear-gradient(65deg, transparent 36%, rgba(196, 181, 253, .12) 45%, rgba(196, 181, 253, .05) 50%, transparent 60%),
        linear-gradient(65deg, transparent 60%, rgba(45, 212, 191, .09) 70%, transparent 82%),
        linear-gradient(180deg, rgba(16, 21, 34, .66) 0%, rgba(12, 14, 24, .88) 100%),
        url("../../img/world-map-outline.04b03780e8d0.svg") !important;
    background-position: center, center, center, center, center, center 48% !important;
    background-repeat: no-repeat !important;
    background-size: cover, cover, cover, cover, cover, min(1280px, 112vw) auto !important;
    border: 1px solid rgba(255, 255, 255, .12) !important;
    box-shadow: 0 24px 70px rgba(0, 0, 0, .34) !important;
}

html[data-p67-theme="light"] .p67-home-hero.p67-hero::before,
html[data-p67-theme="light"] .p67-home-hero.p67-hero::after,
html[data-p67-theme="light"] body:not(.auth-body) .p67-hero#top::before,
html[data-p67-theme="light"] body:not(.auth-body) .p67-hero#top::after {
    content: none !important;
    display: none !important;
}

html[data-p67-theme="light"] .p67-home-hero .p67-hero-title,
html[data-p67-theme="light"] .p67-hero#top .p67-hero-title {
    color: #ffffff !important;
    text-shadow: 0 2px 24px rgba(0, 0, 0, .18);
}

html[data-p67-theme="light"] .p67-home-hero .p67-hero-sub,
html[data-p67-theme="light"] .p67-hero#top .p67-hero-sub {
    color: rgba(248, 250, 252, .82) !important;
}

html[data-p67-theme="light"] .p67-home-hero .p67-hero-stats,
html[data-p67-theme="light"] .p67-hero#top .p67-hero-stats {
    background: rgba(255, 255, 255, .055) !important;
    border-color: rgba(255, 255, 255, .14) !important;
    box-shadow: none !important;
}

html[data-p67-theme="light"] .p67-home-hero .p67-hero-stats strong,
html[data-p67-theme="light"] .p67-hero#top .p67-hero-stats strong {
    color: #ffffff !important;
}

html[data-p67-theme="light"] .p67-home-hero .p67-hero-stats span,
html[data-p67-theme="light"] .p67-hero#top .p67-hero-stats span {
    color: rgba(248, 250, 252, .72) !important;
}

html[data-p67-theme="light"] .p67-home-hero .p67-hero-stats-divider,
html[data-p67-theme="light"] .p67-hero#top .p67-hero-stats-divider {
    background: rgba(255, 255, 255, .2) !important;
}

html[data-p67-theme="light"] .p67-home-hero .p67-link-arrow,
html[data-p67-theme="light"] .p67-hero#top .p67-link-arrow {
    color: rgba(255, 255, 255, .72) !important;
    font-weight: 700;
}

html[data-p67-theme="light"] .p67-home-hero .p67-link-arrow:hover,
html[data-p67-theme="light"] .p67-hero#top .p67-link-arrow:hover {
    color: #ffffff !important;
}

html[data-p67-theme="light"] .p67-home-hero .p67-btn-ghost,
html[data-p67-theme="light"] .p67-hero#top .p67-btn-ghost {
    background: rgba(255, 255, 255, .055) !important;
    border-color: rgba(255, 255, 255, .16) !important;
    color: rgba(248, 250, 252, .9) !important;
}

html[data-p67-theme="light"] .p67-home-hero .p67-btn-ghost:hover,
html[data-p67-theme="light"] .p67-hero#top .p67-btn-ghost:hover {
    background: rgba(255, 255, 255, .10) !important;
    border-color: rgba(196, 181, 253, .36) !important;
    color: #ffffff !important;
}

/* ---------- Vultr-inspired refresh: full-bleed dark CTA band ----------
   Matches the hero treatment above instead of a plain bordered card on a white
   section, mirroring vultr.com's dark CTA band ahead of the footer. */
.p67-cta-section,
html[data-p67-theme="light"] .p67-cta-section,
html[data-p67-theme="dark"] .p67-cta-section {
    background-color: #172235 !important;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, .20), transparent 32rem),
        radial-gradient(circle at 85% 80%, rgba(55, 212, 165, .10), transparent 34rem),
        linear-gradient(65deg, transparent 40%, rgba(196, 181, 253, .10) 50%, transparent 62%) !important;
}

.p67-cta-card,
html[data-p67-theme="light"] .p67-cta-card,
html[data-p67-theme="dark"] .p67-cta-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #ffffff !important;
}

.p67-cta-card::before,
html[data-p67-theme="light"] .p67-cta-card::before,
html[data-p67-theme="dark"] .p67-cta-card::before {
    content: none !important;
    display: none !important;
}

.p67-cta-card p,
html[data-p67-theme="light"] .p67-cta-card p,
html[data-p67-theme="dark"] .p67-cta-card p {
    color: rgba(248, 250, 252, .78) !important;
}

.p67-cta-card .p67-btn-ghost,
.p67-cta-card .btn-outline-secondary,
html[data-p67-theme="light"] .p67-cta-card .p67-btn-ghost,
html[data-p67-theme="light"] .p67-cta-card .btn-outline-secondary,
html[data-p67-theme="dark"] .p67-cta-card .p67-btn-ghost,
html[data-p67-theme="dark"] .p67-cta-card .btn-outline-secondary {
    background: rgba(255, 255, 255, .055) !important;
    border-color: rgba(255, 255, 255, .18) !important;
    color: rgba(248, 250, 252, .92) !important;
}

.p67-cta-card .p67-btn-ghost:hover,
.p67-cta-card .btn-outline-secondary:hover {
    background: rgba(255, 255, 255, .1) !important;
    border-color: rgba(196, 181, 253, .36) !important;
    color: #ffffff !important;
}

/* ---------- Vultr-inspired refresh: sharper button corners ----------
   07-refinement.css and 10-palette.css already intend an 8px radius here, but
   components.css's `.p67-btn-primary.btn-primary` (loaded after the marketing
   bundle on every page) has higher selector specificity and silently wins,
   leaving buttons pill-shaped. !important is the only reliable way to win
   without matching that exact compound-class selector everywhere it's used. */
.p67-btn-primary,
.p67-btn-ghost {
    border-radius: 8px !important;
}

/* ---------- Vultr-inspired refresh: bento card graphics ----------
   The SSD and Uptime cards already carry a visual (meter bars, a terminal
   mockup); DDoS Protection and Instant Deploy were plain icon+text. These give
   every card in the row the same visual weight instead of two out of four
   being just text. */
.p67-shield-radar {
    position: relative;
    width: 96px;
    height: 96px;
    margin: .5rem auto 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.p67-shield-radar-ring {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 1.5px solid var(--p67-accent);
    opacity: 0;
    animation: p67-radar-ping 2.4s ease-out infinite;
}

.p67-shield-radar-ring:nth-child(2) { animation-delay: .8s; }
.p67-shield-radar-ring:nth-child(3) { animation-delay: 1.6s; }

@keyframes p67-radar-ping {
    0% { transform: scale(.4); opacity: .55; }
    100% { transform: scale(1); opacity: 0; }
}

.p67-shield-radar-core {
    position: relative;
    z-index: 1;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--p67-accent);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    box-shadow: 0 6px 18px rgba(15, 159, 118, .35);
}

.p67-shield-radar-caption {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .4rem;
    font-size: .82rem;
    font-weight: 600;
    color: var(--p67-text-muted);
}

.p67-shield-radar-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--p67-accent);
    box-shadow: 0 0 6px var(--p67-accent);
}

.p67-deploy-timeline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: .5rem;
    padding: .5rem .5rem 0;
}

.p67-deploy-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .5rem;
    flex: 1;
    font-size: .78rem;
    font-weight: 600;
    color: var(--p67-text-muted);
    text-align: center;
}

.p67-deploy-step::before {
    content: '';
    position: absolute;
    top: 11px;
    left: -50%;
    width: 100%;
    height: 2px;
    background: var(--p67-border-strong);
    z-index: 0;
}

.p67-deploy-step:first-child::before {
    content: none;
}

.p67-deploy-step.is-done::before,
.p67-deploy-step.is-active::before {
    background: var(--p67-accent);
}

.p67-deploy-dot {
    position: relative;
    z-index: 1;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--p67-surface);
    border: 2px solid var(--p67-border-strong);
    font-size: .7rem;
}

.p67-deploy-step.is-done .p67-deploy-dot {
    background: var(--p67-accent);
    border-color: var(--p67-accent);
    color: #fff;
}

.p67-deploy-step.is-done {
    color: var(--p67-text);
}

.p67-deploy-step.is-active .p67-deploy-dot {
    border-color: var(--p67-primary);
    box-shadow: 0 0 0 4px var(--p67-primary-soft);
    animation: p67-deploy-pulse 1.4s ease-in-out infinite;
}

.p67-deploy-step.is-active {
    color: var(--p67-primary-dark);
}

@keyframes p67-deploy-pulse {
    0%, 100% { box-shadow: 0 0 0 4px var(--p67-primary-soft); }
    50% { box-shadow: 0 0 0 7px transparent; }
}

@media (prefers-reduced-motion: reduce) {
    .p67-shield-radar-ring,
    .p67-deploy-step.is-active .p67-deploy-dot {
        animation: none;
    }
}

/* ---------- Vultr-inspired refresh: alternating light/dark sections ----------
   vultr.com's homepage alternates full-bleed dark bands with light sections
   rather than relying on the barely-there .p67-section-alt shade shift. This
   is a reusable class (not scoped to one page) so any marketing section can
   opt in. Cards inside keep their normal light styling — only the section
   backdrop and its own heading text go dark, same as vultr.com's cards
   floating on a dark band. Text/eyebrow values match the proven
   .p67-page-hero treatment (07-refinement.css / 10-palette.css) rather than
   inventing new ones. */
/* !important on the background because .p67-section carries
   `background: transparent` (10-palette.css) — a shorthand that resets
   background-color at equal specificity, so any later layer re-adding a
   .p67-section rule can flatten this band back into the page and defeat the
   whole point of alternating. */
.p67-section-dark {
    background-color: #172235 !important;
    background-image:
        radial-gradient(circle at 15% 20%, rgba(139, 92, 246, .18), transparent 32rem),
        radial-gradient(circle at 85% 75%, rgba(55, 212, 165, .09), transparent 34rem),
        linear-gradient(65deg, transparent 42%, rgba(196, 181, 253, .08) 50%, transparent 60%) !important;
    border-top: 0;
    border-bottom: 0;
}

.p67-section-dark .p67-eyebrow {
    background: rgba(255, 255, 255, .12);
    border-color: rgba(255, 255, 255, .24);
    color: #ffffff;
}

.p67-section-dark > .p67-container > .p67-section-head .p67-section-title,
.p67-section-dark > .p67-container > .p67-section-head h2,
.p67-section-dark > .p67-container > .p67-section-head h3 {
    color: #ffffff;
}

.p67-section-dark .p67-section-sub {
    color: rgba(255, 255, 255, .78);
}

.p67-section-dark .p67-feature,
.p67-section-dark .p67-bento-card {
    border-color: transparent;
    box-shadow: 0 20px 45px rgba(0, 0, 0, .25);
}

/* Cards keep their normal light-card text colors — only the section chrome
   (eyebrow/heading/sub above) goes light-on-dark, matching vultr.com's white
   cards floating on a dark band rather than re-theming the cards themselves. */
.p67-section-dark .p67-feature h3,
.p67-section-dark .p67-bento-card h3 {
    color: var(--p67-text);
}

.p67-section-dark .p67-feature p,
.p67-section-dark .p67-bento-card p {
    color: var(--p67-text-muted);
}

/* When the site's own dark theme is also on, the cards' normal surface color
   is nearly identical to the section background and the two blend together.
   Give the cards a translucent glass surface + visible border so they still
   read as "cards floating on the dark band" instead of disappearing into it. */
html[data-p67-theme="dark"] .p67-section-dark .p67-feature,
html[data-p67-theme="dark"] .p67-section-dark .p67-bento-card {
    background: rgba(255, 255, 255, .045) !important;
    /* Shorthand, not border-color: an earlier layer sets the `border`
       shorthand, which would otherwise reset the color back to the light
       theme's border token and leave a pale outline on a dark card. */
    border: 1px solid rgba(255, 255, 255, .1) !important;
}

html[data-p67-theme="dark"] .p67-section-dark .p67-feature h3,
html[data-p67-theme="dark"] .p67-section-dark .p67-bento-card h3 {
    color: #ffffff;
}

html[data-p67-theme="dark"] .p67-section-dark .p67-feature p,
html[data-p67-theme="dark"] .p67-section-dark .p67-bento-card p {
    color: rgba(255, 255, 255, .72);
}

/* ---------- Vultr-inspired refresh: unify every other page's hero ----------
   .p67-page-hero (pricing/features/locations/CMS pages) and its sibling hero
   classes (.p67-contact-hero, .p67-article-hero, .p67-builder-hero) used a
   different dark shade (#3b2b70) than the homepage hero/CTA/dark sections
   above (#172235) — this brings every marketing page hero, not just the
   homepage, onto the same deep-navy-plus-streak treatment. Selector list and
   specificity mirror the "Public hero background normalization" rule in
   10-palette.css so this wins on source order alone. */
.p67-page-hero,
.p67-builder-hero:not(.p67-checkout-hero),
.p67-contact-hero,
.p67-article-hero,
.p67-public-rendered-page .p67-page-hero,
.p67-cms-body .p67-page-hero,
.p67-cms-body .p67-builder-hero {
    background-color: #172235 !important;
    background-image:
        radial-gradient(circle at 16% 18%, rgba(139, 92, 246, .20), transparent 30rem),
        linear-gradient(65deg, transparent 38%, rgba(196, 181, 253, .10) 48%, transparent 58%),
        linear-gradient(180deg, rgba(16, 21, 34, .5) 0%, rgba(12, 14, 24, .74) 100%),
        url("../../img/world-map-outline.04b03780e8d0.svg") !important;
    background-position: center, center, center, center 48% !important;
    background-repeat: no-repeat !important;
    background-size: cover, cover, cover, min(1320px, 126vw) auto !important;
}

/* ---------- Vultr-inspired refresh: pricing hero coloring ----------
   The pricing hero's proof-row chips and credit toggle had a light-theme-only
   override (13-dark-polish.css) that turned them into near-opaque white/gray
   pills with dark text - left over from when this hero used a lighter purple
   background. Against the new deep-navy hero that reads as a washed-out,
   mismatched card. Restoring the same translucent glass-on-dark treatment
   already used for .p67-hero-stats keeps the whole hero in one language, and
   the active toggle state picks up the brand color instead of flat black. */
html[data-p67-theme="light"] .p67-pricing-page .p67-pricing-proof-row span {
    background: rgba(255, 255, 255, .12) !important;
    border-color: rgba(255, 255, 255, .22) !important;
    color: rgba(255, 255, 255, .92) !important;
}

html[data-p67-theme="light"] .p67-pricing-page .p67-commitment-strip {
    background: rgba(255, 255, 255, .08) !important;
    border-color: rgba(255, 255, 255, .18) !important;
    color: rgba(255, 255, 255, .82) !important;
}

html[data-p67-theme="light"] .p67-pricing-page .p67-commitment-strip button {
    color: rgba(255, 255, 255, .78) !important;
}

html[data-p67-theme="light"] .p67-pricing-page .p67-commitment-strip button:hover {
    background: rgba(255, 255, 255, .1) !important;
    color: #ffffff !important;
}

html[data-p67-theme="light"] .p67-pricing-page .p67-commitment-strip button.is-active {
    background: var(--p67-primary) !important;
    color: #ffffff !important;
}

html[data-p67-theme="light"] .p67-pricing-page .p67-commitment-strip button.is-active:hover {
    background: var(--p67-primary-dark) !important;
    color: #ffffff !important;
}

/* ---------- Fix: "20% off" badge was invisible until already selected ----------
   .p67-commitment-strip button small (03-pricing-plans.css / 09-polish.css) was
   `display: none` unless the button already had .is-active — so the incentive
   for switching to annual only appeared after a visitor had already switched to
   it. Show it unconditionally, as a persistent badge, styled to read as a
   savings callout rather than plain inline text. */
.p67-commitment-strip button small {
    display: inline-flex !important;
    background: rgba(15, 159, 118, .16) !important;
    color: #34d399 !important;
    opacity: 1 !important;
    margin-left: .4rem;
}

.p67-commitment-strip button.is-active small {
    background: rgba(255, 255, 255, .22) !important;
    color: #ffffff !important;
}


/* ---------- Pricing hero: tighten the cadence toggle ----------
   The strip was a wide, heavily-padded 999px bar carrying a "Credit:" label,
   so it read as another content band rather than a control. This makes it a
   compact segmented switch (tight track, snug inner pills, small radius to
   match the buttons elsewhere) and stops it stretching full-width on mobile,
   which is what made it look like a section header. */
.p67-pricing-page .p67-commitment-strip {
    border-radius: 10px !important;
    gap: .25rem !important;
    padding: .3rem !important;
    width: fit-content !important;
}

.p67-pricing-page .p67-commitment-strip button {
    border-radius: 7px !important;
    font-size: .88rem !important;
    font-weight: 700 !important;
    letter-spacing: 0 !important;
    padding: .5rem 1.15rem !important;
    text-transform: none !important;
}

.p67-pricing-page .p67-commitment-strip button small {
    font-size: .68rem !important;
    font-weight: 800 !important;
    letter-spacing: .02em;
    padding: .1rem .4rem !important;
}

@media (max-width: 575.98px) {
    .p67-pricing-page .p67-commitment-strip {
        margin-left: auto;
        margin-right: auto;
        width: fit-content !important;
    }

    .p67-pricing-page .p67-commitment-strip button {
        padding: .5rem .85rem !important;
    }
}

/* ---------- Dark-theme fix: nav toggle was a solid white box ----------
   10-palette.css sets `.p67-nav-toggle { background: #ffffff }` with no theme
   condition. 11-dark-refactor.css then overrides only `border`/`color` and
   inverts the icon to white — but never resets that white background, so in
   dark theme the mobile menu button rendered as a white square with a white
   (inverted) icon on it, i.e. an apparently blank button. */
html[data-p67-theme="dark"] .p67-nav-toggle,
html[data-p67-theme="dark"] .p67-toggler {
    background: rgba(255, 255, 255, .06);
    border-color: rgba(255, 255, 255, .18);
}

html[data-p67-theme="dark"] .p67-nav-toggle:hover,
html[data-p67-theme="dark"] .p67-toggler:hover {
    background: rgba(255, 255, 255, .12);
}
