/* ===== Site pages: "What's new" section, /new, admin guides =====
   Loaded after landing.css and reuses its tokens (--primary, --radius...). */

/* Hero announcement pill */
.hero-announce {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 22px;
    padding: 6px 14px 6px 6px;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    color: var(--text);
    font-size: 0.95rem;
    font-weight: 600;
}
.hero-announce:hover {
    color: var(--primary);
}
.hero-announce-tag,
.hero-announce-arrow {
    flex: none;
}
.hero-announce-tag {
    background: var(--success);
    color: #fff;
    border-radius: 999px;
    padding: 3px 10px;
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.nav-menu a.nav-new::before {
    content: '';
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--success);
    margin-right: 6px;
    vertical-align: 2px;
}

/* ----- "New this season" section ----- */
.whats-new {
    padding: 88px 0;
    background: var(--bg-alt);
}
.wn-eyebrow {
    text-align: center;
    color: var(--primary);
    font-weight: 800;
    font-size: 0.85rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    margin-bottom: 8px;
}
.wn-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 40px;
}
.wn-card {
    margin: 0;
    padding: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform var(--transition), box-shadow var(--transition);
}
.wn-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-xl);
}
.wn-img {
    display: block;
    aspect-ratio: 16 / 10;
    background: #0e1630;
    overflow: hidden;
}
.wn-img img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.wn-body {
    padding: 20px 22px 22px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}
.wn-body h3 {
    font-size: 1.2rem;
    margin: 4px 0 0;
    color: var(--text);
}
.wn-body p {
    color: var(--text-light);
    font-size: 0.95rem;
    line-height: 1.55;
    margin: 0;
    flex: 1;
}
.wn-link {
    color: var(--primary);
    font-weight: 700;
    font-size: 0.95rem;
    margin-top: 4px;
}
.wn-badge {
    align-self: flex-start;
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 3px 9px;
    border-radius: 999px;
    background: #d1fae5;
    color: #065f46;
}
.wn-badge-LIVE {
    background: #e0f2fe;
    color: #075985;
}
.wn-badge-GUIDE {
    background: #fef3c7;
    color: #92400e;
}
.wn-more {
    text-align: center;
    margin-top: 32px;
    font-weight: 700;
}
.wn-more a {
    color: var(--primary);
}

/* ----- Standalone pages (/new, guides) ----- */
.site-page main {
    padding-top: 72px; /* fixed navbar */
}
.page-hero {
    padding: 64px 0 40px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
    text-align: center;
}
.page-hero h1 {
    font-size: 2.8rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--secondary);
    margin: 0 0 14px;
}
.page-lead {
    font-size: 1.15rem;
    color: var(--text-light);
    max-width: 720px;
    margin: 0 auto;
}

/* /new entries */
.wn-list {
    padding: 56px 0 88px;
}
.wn-entry {
    margin: 0;
    background: none;
    box-shadow: none;
    border-radius: 0;
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: center;
    padding: 40px 0;
    border-bottom: 1px solid var(--border);
    scroll-margin-top: 90px;
}
.wn-entry:nth-child(even) .wn-entry-img {
    order: 2;
}
.wn-entry-img img {
    display: block;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.wn-entry-body h2 {
    color: var(--text);
    font-size: 1.9rem;
    margin: 10px 0 14px;
    letter-spacing: -0.01em;
}
.wn-entry-body p {
    color: var(--text-light);
    font-size: 1.05rem;
    line-height: 1.6;
}
.wn-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 24px;
}
.wn-bullets li {
    padding: 6px 0;
    font-size: 1rem;
    color: var(--text);
    list-style: none;
}
.wn-follow {
    text-align: center;
    padding-top: 40px;
    color: var(--text-light);
}
.wn-follow a {
    color: var(--primary);
    font-weight: 700;
}

@media (max-width: 960px) {
    .wn-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .wn-entry {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .wn-entry:nth-child(even) .wn-entry-img {
        order: 0;
    }
}
@media (max-width: 640px) {
    .whats-new {
        padding: 56px 0;
    }
    .wn-grid {
        grid-template-columns: 1fr;
    }
    .page-hero h1 {
        font-size: 2rem;
    }
    .wn-entry-body h2 {
        font-size: 1.5rem;
    }
}

/* ===== Admin setup guides (/guide/channels, /guide/groups) ===== */
.guide-hero {
    padding: 56px 0 44px;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 50%, #f0fdf4 100%);
}
.guide-hero .container {
    display: grid;
    grid-template-columns: 1.2fr 1fr;
    gap: 48px;
    align-items: center;
}
.guide-hero h1 {
    font-size: 2.7rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    color: var(--secondary);
    margin: 8px 0 16px;
}
.guide-hero .page-lead {
    margin: 0 0 24px;
    max-width: none;
}
.guide-hero .wn-eyebrow {
    text-align: left;
}
.guide-hero-ctas {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.guide-facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 22px;
}
.guide-facts span {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text);
}
.guide-hero-img img {
    display: block;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
}
.guide-switch {
    font-size: 0.95rem;
    margin-top: 18px;
    color: var(--text-light);
}
.guide-switch a {
    color: var(--primary);
    font-weight: 700;
}

.guide-layout {
    display: grid;
    grid-template-columns: 240px minmax(0, 1fr);
    gap: 56px;
    padding: 48px 0 88px;
}
nav.guide-toc,
nav.guide-toc ol,
nav.guide-toc li {
    display: block;
}
nav.guide-toc li {
    padding: 0;
}
.guide-toc {
    position: sticky;
    top: 96px;
    align-self: start;
    font-size: 0.92rem;
}
.guide-toc h4 {
    font-size: 0.75rem;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin: 0 0 10px;
}
.guide-toc ol {
    list-style: none;
    padding: 0;
    margin: 0;
    border-left: 2px solid var(--border);
}
.guide-toc li {
    list-style: none;
    margin: 0;
}
.guide-toc a {
    display: block;
    padding: 6px 0 6px 14px;
    margin-left: -2px;
    border-left: 2px solid transparent;
    border-radius: 0; /* pico rounds nav links */
    box-shadow: none;
    color: var(--text-light);
    font-weight: 500;
}
.guide-toc a:hover,
.guide-toc a.active {
    color: var(--primary);
    border-left-color: var(--primary);
}

.guide-content {
    max-width: 780px;
    min-width: 0; /* let wide tables scroll inside .tier-table-wrap */
}
.guide-hero .container > * {
    min-width: 0;
}
.guide-section {
    padding: 8px 0 40px;
    scroll-margin-top: 90px;
}
.guide-section + .guide-section {
    border-top: 1px solid var(--border);
    padding-top: 40px;
}
.guide-section h2 {
    font-size: 1.75rem;
    font-weight: 800;
    letter-spacing: -0.01em;
    color: var(--text);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 12px;
}
.guide-section h3 {
    font-size: 1.2rem;
    color: var(--text);
    margin: 28px 0 10px;
}
.guide-section p,
.guide-section li {
    font-size: 1.02rem;
    line-height: 1.65;
    color: var(--text-light);
}
.guide-section p strong,
.guide-section li strong {
    color: var(--text);
}
.guide-section code {
    background: #eef2f7;
    color: #0b5c8a;
    border-radius: 6px;
    padding: 2px 6px;
    font-size: 0.92em;
}
.guide-section a {
    color: var(--primary);
    font-weight: 600;
}
.step-badge {
    flex: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.guide-steps {
    counter-reset: gstep;
    list-style: none;
    padding: 0;
    margin: 16px 0;
}
.guide-steps > li {
    counter-increment: gstep;
    position: relative;
    padding: 0 0 14px 44px;
    list-style: none;
}
.guide-steps > li::before {
    content: counter(gstep);
    position: absolute;
    left: 0;
    top: 1px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e0f2fe;
    color: #075985;
    font-weight: 800;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Screenshots */
.guide-fig {
    margin: 24px 0 28px;
}
.guide-fig img {
    display: block;
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    background: #0e1630;
}
.guide-fig.narrow img {
    max-width: 340px;
    margin: 0 auto;
}
.guide-fig figcaption {
    text-align: center;
    font-size: 0.88rem;
    color: var(--text-muted);
    margin-top: 10px;
}

/* Callouts */
.callout {
    border-radius: var(--radius);
    padding: 14px 18px;
    margin: 18px 0;
    font-size: 0.98rem;
    line-height: 1.6;
    border: 1px solid;
}
.callout p {
    margin: 0;
}
.callout-tip {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #14532d;
}
.callout-note {
    background: #f0f9ff;
    border-color: #bae6fd;
    color: #0c4a6e;
}
.callout-premium {
    background: #fffbeb;
    border-color: #fde68a;
    color: #78350f;
}
.callout strong {
    color: inherit;
}

/* Benefit cards */
.benefit-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 20px 0;
}
.benefit {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 18px 20px;
}
.benefit .b-icon {
    font-size: 1.6rem;
}
.benefit h4 {
    font-size: 1.05rem;
    color: var(--text);
    margin: 8px 0 6px;
}
.benefit p {
    font-size: 0.95rem;
    margin: 0;
}
.benefit-current {
    border-color: var(--primary);
}
.benefit h4 .wn-badge {
    margin-left: 6px;
    vertical-align: 2px;
}
.benefit .benefit-link {
    margin-top: 10px;
}

/* Premium tiers */
.tier-table-wrap {
    overflow-x: auto;
    margin: 20px 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
}
.tier-table {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
    font-size: 0.95rem;
}
.tier-table th,
.tier-table td {
    background: #fff;
    color: var(--text);
    padding: 12px 14px;
    text-align: center;
    border-bottom: 1px solid var(--border);
    white-space: nowrap;
}
.tier-table th:first-child,
.tier-table td:first-child {
    text-align: left;
    color: var(--text-light);
    font-weight: 500;
    white-space: normal;
}
.tier-table thead th {
    background: var(--bg-alt);
    font-weight: 800;
    color: var(--text);
}
.tier-table thead th small {
    display: block;
    font-weight: 500;
    color: var(--text-muted);
    font-size: 0.78rem;
}
.tier-table tr:last-child td {
    border-bottom: none;
}
.tier-table td.tier-price {
    font-weight: 800;
    color: #b45309;
}

/* FAQ. Pico styles details/summary with higher-specificity selectors and
   theme variables (light grey under a dark OS theme) plus a chevron
   background on ::after, so pin its accordion colours and drop the chevron. */
.guide-faq details {
    --pico-accordion-close-summary-color: var(--text);
    --pico-accordion-open-summary-color: var(--text);
    --pico-accordion-active-summary-color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    margin: 0 0 10px;
    background: #fff;
}
.guide-faq summary {
    padding: 14px 18px;
    font-weight: 700;
    line-height: 1.4;
    color: var(--text);
    cursor: pointer;
    list-style: none;
}
.guide-faq details[open] > summary {
    margin-bottom: 0;
}
.guide-faq summary::-webkit-details-marker {
    display: none;
}
.guide-faq summary::after {
    content: '+';
    float: right;
    width: auto;
    height: auto;
    margin-inline-start: 12px;
    background-image: none;
    transform: none;
    color: var(--text-muted);
    font-weight: 800;
}
.guide-faq details[open] summary::after {
    content: '–';
    transform: none;
}
.guide-faq details > div {
    padding: 0 18px 14px;
}
.guide-faq details > div p {
    margin: 0 0 8px;
}

.guide-final {
    text-align: center;
    background: var(--bg-dark);
    color: #fff;
    border-radius: var(--radius-lg);
    padding: 40px 28px;
    margin-top: 16px;
}
.guide-final h2 {
    color: #fff;
    justify-content: center;
}
.guide-final p {
    color: #cbd5e1;
}

/* Free vs Premium on the landing page */
.plans {
    padding: 88px 0;
    background: var(--bg-alt);
}
.plans .tier-table-wrap {
    max-width: 760px;
    margin: 32px auto 0;
}
.plans-table th,
.plans-table td {
    white-space: normal;
}
.plans-table td:not(:first-child) {
    font-weight: 700;
    width: 26%;
}
.plans-cta {
    max-width: 640px;
    margin: 28px auto 0;
    text-align: center;
}
.plans-cta p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 14px 0 0;
}

@media (max-width: 960px) {
    .guide-hero .container {
        grid-template-columns: 1fr;
    }
    .guide-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }
    .guide-toc {
        position: static;
        margin-bottom: 24px;
    }
}
@media (max-width: 640px) {
    .guide-hero h1 {
        font-size: 2rem;
    }
    .benefit-grid {
        grid-template-columns: 1fr;
    }
    .guide-section h2 {
        font-size: 1.4rem;
    }
}
