/* ── Theme demo pages ─────────────────────────────────────────────────────────
   The demos are built from the real author-site styles (/author/base.css + the
   theme). This file only adds the sales layer: the banner, notes, pitch cards and
   call to action, all coloured from the theme's own variables.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── Demo banner ─────────────────────────────────────────────────────────────*/

.demo-banner {
    position: relative;
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: .7rem 1.25rem;
    background: #10141c;
    color: #e8edf3;
    font: 500 .88rem/1.45 'Inter', system-ui, sans-serif;
    border-bottom: 2px solid var(--t-accent);
}
.demo-banner p { margin: 0; max-width: 900px; }
.demo-banner-actions { display: flex; align-items: center; gap: .5rem; flex-shrink: 0; }
.demo-banner-choose {
    padding: .45rem .9rem;
    border: none;
    border-radius: 6px;
    background: var(--t-accent);
    color: var(--t-on-accent);
    font: 600 .82rem 'Inter', system-ui, sans-serif;
    cursor: pointer;
}
.demo-banner-choose:hover { background: var(--t-accent-hover); }
.demo-banner-close {
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 6px;
    background: none;
    color: inherit;
    font-size: 1.2rem;
    line-height: 1;
    cursor: pointer;
}
.demo-banner-close:focus-visible, .demo-banner-choose:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ── Notes explaining what the author adds ──────────────────────────────────*/

.demo-note {
    max-width: 620px;
    margin: 2rem auto 0;
    padding: .8rem 1rem;
    font-family: var(--t-ui-font);
    font-size: .88rem;
    line-height: 1.55;
    text-align: center;
    color: var(--t-text-muted);
    border: 1px dashed var(--t-border);
    border-radius: 8px;
}

.demo-note--hero {
    position: absolute;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 2;
    max-width: 300px;
    margin: 0;
    text-align: left;
    color: rgba(255, 255, 255, .88);
    background: rgba(0, 0, 0, .55);
    border: none;
    border-left: 3px solid var(--t-accent);
    backdrop-filter: blur(6px);
}
.demo-note--hero strong { color: #fff; }

.demo-intro {
    max-width: 640px;
    margin: -1.5rem auto 2.5rem;
    text-align: center;
    color: var(--t-text-muted);
    font-size: 1.05rem;
}
.demo-intro strong { color: var(--t-text); }

/* ── Pitch cards (styled as the theme's own cards) ──────────────────────────*/

.site-section--features { background: var(--t-bg-alt); }
.site-section--addons   { background: var(--t-bg); }

.demo-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.5rem;
}

.demo-feature { padding: 1.6rem 1.5rem; }
.demo-feature:hover { transform: none; }
.demo-feature .post-title { margin-bottom: .45rem; }
.demo-feature .post-excerpt { margin: 0; }

.demo-feature-num,
.demo-feature-price {
    margin-bottom: .6rem;
    font-family: var(--t-ui-font);
    font-weight: 700;
    letter-spacing: .14em;
    color: var(--t-accent);
}
.demo-feature-num { font-size: .8rem; }
.demo-feature-price { font-size: 1.15rem; letter-spacing: .02em; }

/* ── Call to action ──────────────────────────────────────────────────────────*/

.demo-cta-section { background: var(--t-bg-alt); }
.demo-cta {
    max-width: 680px;
    margin: 0 auto;
    text-align: center;
}
.demo-cta .section-heading::after { margin-left: auto; margin-right: auto; }
.demo-cta p { color: var(--t-text-muted); margin: -1.25rem 0 1.75rem; font-size: 1.05rem; }
.demo-cta-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: .9rem; }
.demo-cta .demo-cta-primary {
    border: none;
    cursor: pointer;
    font-size: 1rem;
    background: var(--t-accent);
    color: var(--t-on-accent);
}
.demo-cta .demo-cta-primary:hover { background: var(--t-accent-hover); color: var(--t-on-accent); }
/* The hero CTA style, re-coloured for the page body */
.demo-cta-secondary {
    margin-top: 0;
    color: var(--t-accent);
    border-color: var(--t-accent);
}
.demo-cta-secondary:hover { color: var(--t-accent); background: var(--t-accent-light); border-color: var(--t-accent); }

.demo-disclaimer {
    max-width: 560px;
    font-family: var(--t-ui-font);
    font-size: .8rem;
    color: var(--t-text-muted);
}

/* ── Toast ───────────────────────────────────────────────────────────────────*/

.demo-toast {
    position: fixed;
    left: 50%;
    bottom: 1.5rem;
    z-index: 3000;
    max-width: calc(100% - 2rem);
    padding: .85rem 1.25rem;
    border-radius: 8px;
    background: #10141c;
    color: #fff;
    font: 500 .9rem/1.4 'Inter', system-ui, sans-serif;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    transform: translate(-50%, 200%);
    visibility: hidden;
    transition: transform .3s, visibility 0s .3s;
}
.demo-toast.show { transform: translate(-50%, 0); visibility: visible; transition: transform .3s; }

/* ── Responsive ──────────────────────────────────────────────────────────────*/

@media (max-width: 1024px) {
    .demo-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .demo-note--hero { position: static; margin: 2rem auto 0; max-width: 620px; }
    .site-section--hero { flex-direction: column; }
}

@media (max-width: 640px) {
    .demo-banner { flex-direction: column; align-items: flex-start; }
    .demo-feature-grid { grid-template-columns: 1fr; }
}
