/**
 * Nova Landing Page Stylesheet
 *
 * Theme-neutral styles scoped under .nova-landing namespace.
 * Designed to work with any WHMCS theme (Twenty-One, Lagom, etc.)
 *
 * @package Nova Landing Page
 */

/* ==========================================================================
   1. Root — Custom Properties
   ========================================================================== */

.nova-landing {
    --nova-text: #1a1b1e;
    --nova-text-muted: #4e515a;
    --nova-border-color: #eaecf0;
    --nova-border-strong: #d0d5dd;
    --nova-bg-subtle: #f8f9fb;
    --nova-accent: #840fff;
    --nova-accent-hover: #6d0bd6;
    --nova-accent-light: rgba(132, 15, 255, 0.08);
    --nova-hero-bg: #560e9f;
    --nova-band-lavender: #e0d8fd;
    --nova-popular: #0e0f10;
    --nova-content-width: 1200px;
    --nova-radius: 12px;
    --nova-radius-sm: 8px;
    --nova-radius-lg: 24px;
    --nova-spacing-sm: 8px;
    --nova-spacing-md: 16px;
    --nova-spacing-lg: 24px;
    --nova-spacing-xl: 48px;
    --nova-spacing-2xl: 80px;
    --nova-shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --nova-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.08);
    --nova-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.1);
    color: var(--nova-text);
}

/* ==========================================================================
   2. Full-Width Breakout & Page Overrides
   Force sections to span full viewport width regardless of WHMCS
   theme content container. Hide breadcrumb on landing page.
   ========================================================================== */

.nova-landing {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
}

/* Hide breadcrumb and remove body padding on the Nova landing page.
   These are global selectors — they apply whenever this stylesheet is loaded.
   This stylesheet is only loaded by nova.tpl, so they only affect the landing page. */
.master-breadcrumb {
    display: none !important;
}

#main-body {
    padding: 0 !important;
}

/* ==========================================================================
   3. Section Titles
   ========================================================================== */

/* Sizes are rem, not em, and match the Nova design's own type scale (48 / 32 / 24 / 20 / 18
   / 16 / 14 px at a 16px root). em would multiply by whatever body size the WHMCS theme
   happens to set, which is what made every heading render around 60% of its design size. */
.nova-landing-section-title {
    text-align: center;
    font-size: 3rem;
    line-height: 1.15;
    letter-spacing: -0.02em;
    font-weight: 700;
    max-width: 46rem;
    margin: 0 auto var(--nova-spacing-md);
    color: var(--nova-text);
}

.nova-landing-section-subtitle {
    text-align: center;
    color: var(--nova-text-muted);
    font-size: 1rem;
    line-height: 1.6;
    max-width: 46rem;
    margin: 0 auto var(--nova-spacing-xl);
}

/* ==========================================================================
   4. Hero — Prompt Widget
   ========================================================================== */

.nova-landing-hero {
    padding: var(--nova-spacing-2xl) var(--nova-spacing-lg);
    text-align: center;
    position: relative;
    overflow: hidden;
    /* The colour is the fallback: if the image is missing the hero is still Nova purple. */
    background-color: var(--nova-hero-bg);
    background-image: url("nova-hero-bg.webp");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    min-height: 560px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nova-landing-hero__inner {
    max-width: 768px;
    width: 100%;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.nova-landing-hero__wordmark {
    display: block;
    width: 92px;
    height: auto;
    margin: 0 auto var(--nova-spacing-lg);
    color: #fff;
}

#nova-prompt-widget {
    --primary: var(--nova-accent);
    --radius: var(--nova-radius);
    --default-font-family: inherit;
}

#nova-prompt-widget::part(title) {
    font-size: 3rem;
    font-weight: 600;
    letter-spacing: -0.02em;
    color: #fff;
}

#nova-prompt-widget::part(description) {
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.125rem;
    max-width: 34em;
}

#nova-prompt-widget::part(textareaWrapper) {
    border-radius: var(--nova-radius);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.25);
}

#nova-prompt-widget::part(submitButton) {
    border-radius: var(--nova-radius-sm);
}

#nova-prompt-widget::part(exampleButton) {
    border-radius: var(--nova-radius-sm);
}

/* ==========================================================================
   5. Features
   ========================================================================== */

.nova-landing-features {
    padding: var(--nova-spacing-2xl) var(--nova-spacing-lg);
    background: #fff;
}

/* A 4 x 2 grid of cells divided by hairlines. The 1px gap is the divider: the grid's own
   background shows through it, so the lines land between cells and never on the outer edge. */
.nova-landing-features__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    max-width: var(--nova-content-width);
    margin: 0 auto;
    border: 1px solid var(--nova-border-color);
    border-radius: var(--nova-radius-lg);
    background: var(--nova-border-color);
    overflow: hidden;
    box-sizing: border-box;
}

/* The design fixes the icon, title and description at the same offsets in every cell, so all
   four titles in a row share a baseline whether their description wraps to one line or two.
   Hence a fixed gap under the icon rather than space-between, which would stagger them. */
.nova-landing-feature {
    text-align: left;
    background: #fff;
    padding: 2rem 1.5rem;
    min-height: 16rem;
    box-sizing: border-box;
}

.nova-landing-feature__icon {
    color: #fff;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    margin-bottom: 3.75rem;
    border-radius: 50%;
    background: var(--nova-accent);
}

.nova-landing-feature__icon svg {
    width: 20px;
    height: 20px;
}

.nova-landing-feature h3 {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.875rem 0;
    color: var(--nova-text);
    line-height: 1.3;
}

.nova-landing-feature p {
    color: var(--nova-text-muted);
    font-size: 0.875rem;
    margin: 0;
    line-height: 1.5;
}

/* ==========================================================================
   6. Packages / Pricing
   ========================================================================== */

.nova-landing-packages {
    padding: var(--nova-spacing-2xl) var(--nova-spacing-lg);
    background-color: #fff;
    background-image: linear-gradient(var(--nova-band-lavender), rgba(224, 216, 253, 0));
}

.nova-landing-service-summary {
    text-align: center;
    color: var(--nova-text-muted);
    margin-bottom: var(--nova-spacing-lg);
}

.nova-landing-packages__grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    /* stretch, so every card in a row ends at the same bottom edge */
    align-items: stretch;
    /* Row gap is larger than the column gap on purpose: when the cards wrap, the
       "Most Popular" tab hangs above its card and would otherwise touch the row above.
       The column gap must stay --nova-spacing-lg, since the card widths subtract it. */
    gap: 48px var(--nova-spacing-lg);
    max-width: var(--nova-content-width);
    margin: 0 auto;
    /* Room for the "Most Popular" tab, which sits above its card's top edge */
    padding-top: 40px;
}

.nova-landing-package {
    width: calc((100% - var(--nova-spacing-lg) * 2) / 3);
    min-width: 0;
    /* The widths above are the whole card, padding and border included. Stated here rather
       than inherited from the theme, since four cards to a row leave no slack. */
    box-sizing: border-box;
}

/* 1 plan: full width */
.nova-landing-packages--count-1 .nova-landing-package {
    width: 100%;
    max-width: 320px;
}

/* 2 plans: side by side */
.nova-landing-packages--count-2 .nova-landing-package {
    width: calc((100% - var(--nova-spacing-lg)) / 2);
}

/* 4 plans: one row, matching the Nova design */
.nova-landing-packages--count-4 .nova-landing-package {
    width: calc((100% - var(--nova-spacing-lg) * 3) / 4);
}

.nova-landing-package {
    border: 1px solid var(--nova-border-strong);
    border-radius: var(--nova-radius-sm);
    padding: var(--nova-spacing-lg);
    text-align: left;
    position: relative;
    background: #fff;
    display: flex;
    flex-direction: column;
    box-shadow: var(--nova-shadow-sm);
    transition: box-shadow 0.2s, transform 0.2s;
}

.nova-landing-package:hover {
    box-shadow: var(--nova-shadow-lg);
    transform: translateY(-3px);
}

.nova-landing-package--current {
    border-color: var(--nova-accent);
    box-shadow: 0 0 0 2px var(--nova-accent), var(--nova-shadow-md);
}

/* Marketing highlight for one plan. A card that is both highlighted and the client's own
   keeps the --current ring, since which plan they are on matters more here. */
.nova-landing-package--popular {
    border-color: var(--nova-popular);
}

.nova-landing-package__popular {
    position: absolute;
    left: -1px;
    right: -1px;
    bottom: 100%;
    background: var(--nova-popular);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    text-align: center;
    padding: 8px 12px;
    border-radius: var(--nova-radius-sm) var(--nova-radius-sm) 0 0;
}

/* Same tab, current-plan colour: marks the linked service's plan in the upgrade picker. */
.nova-landing-package__popular--current {
    background: var(--nova-accent);
}

.nova-landing-package__badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nova-accent);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 600;
    padding: 4px 16px;
    border-radius: 20px;
    white-space: nowrap;
    letter-spacing: 0.02em;
}

/* The top edge already carries the "Most Popular" tab, so move this pill inside the card. */
.nova-landing-package--popular .nova-landing-package__badge {
    top: 12px;
    right: 12px;
    left: auto;
    transform: none;
}

/* Applied to every card in the grid, not to the one that needs it. Padding only the badged-and-owned
   card pushes its own button 20px below its neighbours'; spreading it keeps every row internally
   level instead. The grid wraps at five or more paid plans, so cards on a second row reserve room for
   a pill they can never show. That is the price of doing this in one selector, and it costs those
   cards only blank space at the top. nova.php sets the modifier, since the grid element is emitted
   before the loop that would discover the card. */
.nova-landing-packages--popular-owned .nova-landing-package {
    padding-top: 44px;
}

.nova-landing-package__name {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0 0 var(--nova-spacing-md) 0;
    color: var(--nova-text);
}

.nova-landing-package__price {
    margin-bottom: var(--nova-spacing-lg);
}

.nova-landing-package__amount {
    font-size: 1.875rem;
    font-weight: 700;
    color: var(--nova-text);
}

.nova-landing-package__cycle {
    font-size: 1rem;
    color: var(--nova-text-muted);
    font-weight: 400;
    margin-left: 2px;
}

/* ------------------------------------------------------------------
   The parsed product description: a tagline, then groups of a
   generated heading over a check-marked list, emitted by nova.tpl
   from the "Label: Value" lines documented in INSTALL.md.

   Shared by the card here and the current-plan block the upgrade
   picker renders above the grid. One description is authored once, so
   it has to look deliberate everywhere it appears.
   ------------------------------------------------------------------ */

.nova-landing-package__features {
    font-size: 0.875rem;
    color: var(--nova-text-muted);
    line-height: 1.6;
    text-align: left;
}

.nova-landing-package__features > :first-child {
    margin-top: 0;
}

.nova-landing-package__features > :last-child {
    margin-bottom: 0;
}

.nova-landing-package__features-heading {
    font-size: 1em;
    font-weight: 700;
    color: var(--nova-text);
    margin: var(--nova-spacing-lg) 0 var(--nova-spacing-sm);
}

.nova-landing-package__tagline {
    margin: 0 0 var(--nova-spacing-md);
}

.nova-landing-package__features-list {
    list-style: none;
    margin: 0 0 var(--nova-spacing-md);
    padding: 0;
}

.nova-landing-package__features-list li {
    position: relative;
    padding-left: 22px;
    margin-bottom: 6px;
}

/* Check mark drawn in CSS so no icon font or extra request is needed */
.nova-landing-package__features-list li::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 0.45em;
    width: 10px;
    height: 5px;
    border-left: 2px solid var(--nova-accent);
    border-bottom: 2px solid var(--nova-accent);
    transform: rotate(-45deg);
}

.nova-landing-package__feature-value {
    color: var(--nova-text);
    font-weight: 700;
}

/* Coming-soon lists also carry .nova-landing-package__features-list--soon, unstyled by
   default; use it to mute or restyle those items. */

.nova-landing-package__action {
    /* Not bottom-anchored: the design puts the button directly under the price, with the feature
       list below it. So the button sits wherever the name and price above it end, and nothing here
       holds it level with the rest of the row.
       Accepted rather than missed: a row whose plan names differ in line count carries the wrapped
       card's button one name-line lower. Deliberately not stated as a pixel figure -- the name sets
       no line-height, so that line is 1.5rem times whatever the active theme sets on the body, and
       any number here would be true of one theme only. It fires whenever a name is wider than its
       column, and the grid is capped at --nova-content-width, so the four-across column tops out
       around 282px and there is no viewport width at which a long name stops wrapping.
       Reserving a second line on every name fixes it, and was tried and reverted: it spends that
       line on every card whatever the names are, and the design's spacing was judged worth more.
       Bottom-anchoring this block also fixes it, but only if the feature list moves back above the
       button, which is the order the design deliberately changed. */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    margin-bottom: var(--nova-spacing-lg);
}

/* Emitted on every card (see nova.tpl) whether or not it has anything to say. An empty one has no
   line box, so what the unconditional element buys is a shared margin under every button, not equal
   height: a card that does carry a note is taller than its neighbours by that text. */
.nova-landing-package__upgrade-note {
    font-size: 0.8125rem;
    color: var(--nova-text-muted);
    line-height: 1.4;
    text-align: center;
    margin: 8px 0 0;
}

/* ==========================================================================
   7. Buttons — Self-contained, no Bootstrap dependency
   ========================================================================== */

.nova-landing-btn {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    font-size: 1rem;
    font-weight: 600;
    text-align: center;
    text-decoration: none;
    border: 1px solid transparent;
    border-radius: var(--nova-radius-sm);
    cursor: pointer;
    transition: background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s, transform 0.2s;
    line-height: 1.5;
    box-sizing: border-box;
}

.nova-landing-btn:hover {
    text-decoration: none;
    transform: translateY(-1px);
}

.nova-landing-btn--primary {
    background: var(--nova-accent);
    border-color: var(--nova-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(132, 15, 255, 0.25);
}

.nova-landing-btn--primary:hover {
    background: var(--nova-accent-hover);
    border-color: var(--nova-accent-hover);
    color: #fff;
    box-shadow: 0 4px 16px rgba(132, 15, 255, 0.35);
}

/* Upgrade actions. Same purple as --primary; kept as its own class because a theme copy of
   nova.tpl from before 1.4.0 still asks for it. */
.nova-landing-btn--success {
    background: var(--nova-accent);
    border-color: var(--nova-accent);
    color: #fff;
    box-shadow: 0 2px 8px rgba(132, 15, 255, 0.25);
}

.nova-landing-btn--success:hover {
    background: var(--nova-accent-hover);
    border-color: var(--nova-accent-hover);
    color: #fff;
    box-shadow: 0 4px 16px rgba(132, 15, 255, 0.35);
}

.nova-landing-btn--secondary {
    background: #fff;
    border-color: var(--nova-border-color);
    color: var(--nova-text);
}

.nova-landing-btn--secondary:hover {
    background: #fff;
    border-color: var(--nova-accent);
    color: var(--nova-accent);
    box-shadow: var(--nova-shadow-sm);
}

/* Used where an upgrade is unavailable because the client's own plan is Suspended or
   Pending — reads as information rather than a call to action, so it does not compete
   with the Upgrade buttons on neighbouring cards. */
.nova-landing-btn--muted {
    background: transparent;
    /* Not --nova-border-color: at rgba(0,0,0,0.08) against the card's white background
       this control reads as floating text with no button affordance. */
    border-color: rgba(0, 0, 0, 0.18);
    color: var(--nova-text-muted);
    font-weight: 500;
}

.nova-landing-btn--muted:hover {
    background: transparent;
    border-color: var(--nova-accent);
    color: var(--nova-accent);
}

.nova-landing-btn:disabled {
    opacity: 0.7;
    cursor: wait;
    transform: none;
}

/* ==========================================================================
   8. Form Elements — Self-contained, no Bootstrap dependency
   ========================================================================== */

.nova-form-group {
    margin-bottom: var(--nova-spacing-md);
}

.nova-form-group label {
    display: block;
    font-weight: 600;
    font-size: 0.85em;
    margin-bottom: 4px;
    color: var(--nova-text);
}

.nova-form-input {
    display: block;
    width: 100%;
    padding: 10px 14px;
    font-size: 0.95em;
    line-height: 1.5;
    color: var(--nova-text);
    background: #fff;
    border: 1px solid #d1d5db;
    border-radius: var(--nova-radius-sm);
    box-sizing: border-box;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.nova-form-input:focus {
    outline: none;
    border-color: var(--nova-accent);
    box-shadow: 0 0 0 3px rgba(132, 15, 255, 0.12);
}

select.nova-form-input {
    appearance: auto;
}

/* ==========================================================================
   9. CAPTCHA — third-party provider widgets
   ========================================================================== */

.nova-modal .g-recaptcha,
.nova-modal .h-captcha,
.nova-modal #nova-captcha-widget {
    display: flex;
    justify-content: center;
}

/* WHMCS hides the invisible hCaptcha badge by default (captcha-overlay-badge-hidden)
   and expects its own JS to show it. Override for our landing page. */
.captcha-overlay-badge.captcha-overlay-badge-hidden {
    display: block;
}

/* ==========================================================================
   10. Alerts
   ========================================================================== */

.nova-landing-alert {
    padding: 12px 16px;
    border-radius: var(--nova-radius-sm);
    font-size: 0.9em;
    margin-bottom: var(--nova-spacing-md);
}

.nova-landing-alert--error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #991b1b;
}

.nova-landing-alert--info {
    background: #eff6ff;
    border: 1px solid #bfdbfe;
    color: #1e40af;
}

.nova-landing-upgrade-banner {
    max-width: 600px;
    margin: 0 auto var(--nova-spacing-lg) auto;
    text-align: center;
    padding: 14px 20px;
    border-radius: var(--nova-radius-sm);
    background: var(--nova-accent-light);
    border: 1px solid rgba(132, 15, 255, 0.15);
    color: var(--nova-accent-hover);
    font-weight: 500;
}

/* Placed after the grid rather than above it. */
.nova-landing-upgrade-banner--below {
    margin: var(--nova-spacing-lg) auto 0;
}

/* ==========================================================================
   11. Registration Modal
   ========================================================================== */

.nova-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--nova-spacing-md);
}

.nova-modal {
    background: #fff;
    border-radius: var(--nova-radius);
    padding: 32px;
    max-width: 440px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
    box-shadow: var(--nova-shadow-lg);
}

.nova-modal__close {
    position: absolute;
    top: 16px;
    right: 20px;
    background: none;
    border: none;
    font-size: 1.5em;
    cursor: pointer;
    color: var(--nova-text-muted);
    line-height: 1;
    padding: 0;
    transition: color 0.15s;
}

.nova-modal__close:hover {
    color: var(--nova-text);
}

.nova-modal__title {
    font-size: 1.4em;
    font-weight: 700;
    margin: 0 0 4px 0;
    color: var(--nova-text);
}

.nova-modal__subtitle {
    color: var(--nova-text-muted);
    font-size: 0.9em;
    margin: 0 0 var(--nova-spacing-lg) 0;
}

.nova-modal__tos {
    font-weight: 400 !important;
    font-size: 0.85em;
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--nova-text-muted);
}

.nova-modal__submit {
    margin-top: var(--nova-spacing-md);
    width: 100%;
}

.nova-modal__login-link {
    text-align: center;
    font-size: 0.85em;
    color: var(--nova-text-muted);
    margin-top: var(--nova-spacing-md);
    margin-bottom: 0;
}

/* ==========================================================================
   12. Loading Overlay
   ========================================================================== */

.nova-loading-overlay {
    position: fixed;
    inset: 0;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
}

.nova-loading-overlay__content {
    text-align: center;
}

.nova-loading-overlay__content p {
    margin-top: var(--nova-spacing-md);
    font-size: 1.1em;
    font-weight: 600;
    color: var(--nova-text);
}

.nova-loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--nova-border-color);
    border-top-color: var(--nova-accent);
    border-radius: 50%;
    margin: 0 auto;
    animation: nova-spin 0.7s linear infinite;
}

@keyframes nova-spin {
    to { transform: rotate(360deg); }
}

/* ==========================================================================
   13. Free Plan Call To Action
   ========================================================================== */

.nova-landing-freecta {
    max-width: var(--nova-content-width);
    margin: var(--nova-spacing-xl) auto 0;
    padding: var(--nova-spacing-xl) var(--nova-spacing-lg);
    background: var(--nova-accent);
    border-radius: 16px;
    text-align: center;
    color: #fff;
}

.nova-landing-freecta__title {
    font-size: 2rem;
    font-weight: 700;
    margin: 0 0 var(--nova-spacing-sm);
    color: #fff;
}

.nova-landing-freecta__subtitle {
    margin: 0 0 var(--nova-spacing-lg);
    color: rgba(255, 255, 255, 0.85);
}

.nova-landing-freecta__list {
    list-style: none;
    margin: 0 0 var(--nova-spacing-lg);
    padding: 0;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--nova-spacing-sm) var(--nova-spacing-lg);
    font-size: 0.9em;
}

.nova-landing-freecta__list li {
    position: relative;
    padding-left: 22px;
}

.nova-landing-freecta__list li::before {
    content: '';
    position: absolute;
    left: 3px;
    top: 0.45em;
    width: 10px;
    height: 5px;
    border-left: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(-45deg);
}

.nova-landing-freecta__btn {
    width: auto;
    min-width: 222px;
    background: #fff;
    color: var(--nova-text);
    border: none;
}

.nova-landing-freecta__btn:hover,
.nova-landing-freecta__btn:focus {
    background: rgba(255, 255, 255, 0.9);
    color: var(--nova-text);
}

/* Current-plan strip: the same banner shell, shown above the picker grid when the current
   plan has no card there (the free plan, or a product no longer sold). */
.nova-landing-freecta--current {
    margin: 0 auto var(--nova-spacing-lg);
    padding: var(--nova-spacing-lg);
}

.nova-landing-freecta--current .nova-landing-freecta__title {
    font-size: 1.25rem;
    margin-bottom: var(--nova-spacing-sm);
}

.nova-landing-freecta__label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.85);
    margin: 0 0 4px;
}

.nova-landing-freecta__heading {
    font-size: 0.9em;
    font-weight: 700;
    color: #fff;
    margin: var(--nova-spacing-md) 0 var(--nova-spacing-sm);
}

.nova-landing-freecta--current .nova-landing-freecta__list {
    margin-bottom: 0;
}

.nova-landing-freecta__list--soon {
    opacity: 0.75;
}

/* ==========================================================================
   14. Showcase
   ========================================================================== */

.nova-landing-showcase {
    padding: var(--nova-spacing-2xl) 0;
    background: #fff;
    overflow: hidden;
}

.nova-landing-showcase .nova-landing-section-title,
.nova-landing-showcase .nova-landing-section-subtitle {
    padding: 0 var(--nova-spacing-lg);
    max-width: 760px;
    margin-left: auto;
    margin-right: auto;
}

.nova-landing-showcase__band {
    display: flex;
    flex-direction: column;
    gap: var(--nova-spacing-lg);
}

.nova-landing-showcase__row {
    display: flex;
    gap: var(--nova-spacing-lg);
    width: max-content;
    /* Each row lists its images twice, so a -50% shift lands the copy where the original
       started. Ten items carry only nine gaps, so this trailing gap is what makes the two
       halves equal; without it the strip jumps sideways once per loop. */
    padding-right: var(--nova-spacing-lg);
    animation: nova-marquee-left 60s linear infinite;
}

.nova-landing-showcase__row--right {
    animation-name: nova-marquee-right;
    animation-duration: 75s;
}

.nova-landing-showcase__row img {
    display: block;
    height: 300px;
    width: auto;
    border-radius: var(--nova-radius-sm);
    border: 1px solid var(--nova-border-color);
    box-shadow: var(--nova-shadow-md);
    object-fit: cover;
}

@keyframes nova-marquee-left {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

@keyframes nova-marquee-right {
    0% { transform: translateX(-50%); }
    100% { transform: translateX(0); }
}

/* ==========================================================================
   15. FAQ
   ========================================================================== */

.nova-landing-faq {
    padding: var(--nova-spacing-2xl) var(--nova-spacing-lg);
    /* Opaque, not a tint: a translucent band would take the theme's page colour underneath
       and leave this section's dark text on a dark background. */
    background: #f9f7ff;
}

.nova-landing-faq__inner {
    max-width: var(--nova-content-width);
    margin: 0 auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr);
    gap: var(--nova-spacing-xl);
    align-items: start;
}

.nova-landing-faq__title {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0;
    color: var(--nova-text);
    letter-spacing: -0.02em;
}

.nova-landing-faq__item {
    border-bottom: 1px solid var(--nova-border-strong);
}

.nova-landing-faq__item summary {
    /* list-style covers Firefox; ::-webkit-details-marker covers older WebKit. */
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--nova-spacing-md);
    padding: var(--nova-spacing-md) 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--nova-text);
}

.nova-landing-faq__item summary::-webkit-details-marker {
    display: none;
}

/* Chevron, rotated when the panel is open */
.nova-landing-faq__item summary::after {
    content: '';
    flex: 0 0 auto;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--nova-text-muted);
    border-bottom: 2px solid var(--nova-text-muted);
    transform: rotate(45deg);
    transform-origin: center;
    transition: transform 0.2s;
}

.nova-landing-faq__item[open] summary::after {
    transform: rotate(-135deg);
}

.nova-landing-faq__answer {
    padding: 0 0 var(--nova-spacing-md);
    color: var(--nova-text-muted);
    font-size: 1rem;
    line-height: 1.7;
    max-width: 46em;
}

.nova-landing-faq__answer p {
    margin: 0;
}

/* ==========================================================================
   16. Responsive
   ========================================================================== */

@media (max-width: 1023px) {
    .nova-landing-features__grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .nova-landing-package,
    .nova-landing-packages--count-4 .nova-landing-package {
        width: calc((100% - var(--nova-spacing-lg)) / 2);
    }

    .nova-landing-faq__inner {
        grid-template-columns: 1fr;
        gap: var(--nova-spacing-lg);
    }
}

@media (max-width: 767px) {
    .nova-landing-hero {
        padding: var(--nova-spacing-xl) var(--nova-spacing-md);
        min-height: 480px;
    }

    .nova-landing-features,
    .nova-landing-packages,
    .nova-landing-faq {
        padding: var(--nova-spacing-xl) var(--nova-spacing-md);
    }

    .nova-landing-showcase {
        padding: var(--nova-spacing-xl) 0;
    }

    .nova-landing-section-title {
        font-size: 1.875rem;
    }

    #nova-prompt-widget::part(title) {
        font-size: 1.875rem;
    }

    .nova-landing-faq__title {
        font-size: 1.625rem;
    }

    .nova-landing-freecta__title {
        font-size: 1.5rem;
    }

    .nova-landing-feature h3 {
        font-size: 1.125rem;
    }

    .nova-landing-feature {
        min-height: 0;
        padding: 1.5rem;
    }

    .nova-landing-feature__icon {
        margin-bottom: 1.5rem;
    }

    .nova-modal {
        padding: var(--nova-spacing-lg);
    }


    .nova-landing-showcase__row img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .nova-landing-features__grid {
        grid-template-columns: 1fr;
    }

    .nova-landing-package,
    .nova-landing-packages--count-2 .nova-landing-package,
    .nova-landing-packages--count-4 .nova-landing-package {
        width: 100%;
    }

    .nova-landing-freecta__btn {
        width: 100%;
        min-width: 0;
    }
}

/* ==========================================================================
   17. Reduced Motion

   The showcase scrolls continuously, which can be uncomfortable or disorienting.
   Stop it for anyone who has asked for less movement.
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
    .nova-landing-showcase__row {
        animation: none;
    }

    .nova-landing-showcase__band {
        overflow-x: auto;
    }

    .nova-landing-faq__item summary::after {
        transition: none;
    }

    .nova-landing-package:hover,
    .nova-landing-feature:hover {
        transform: none;
    }
}
