.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: 0.7rem 1.15rem;
    border: 1px solid transparent;
    border-radius: var(--r-pill);
    font-size: var(--text-sm);
    font-weight: 600;
    line-height: 1;
    text-align: center;
    transition: transform var(--dur-1) var(--ease-standard), background var(--dur-1) ease, filter var(--dur-1) ease, border-color var(--dur-1) ease;
}

.btn:active {
    transform: scale(0.97);
}

.btn svg {
    width: var(--icon-sm);
    height: var(--icon-sm);
}

.btn--primary {
    background: var(--accent);
    color: var(--on-accent);
    box-shadow: 0 8px 20px -8px var(--accent-soft);
}

.btn--primary:hover {
    filter: brightness(1.06);
}

.btn--secondary {
    background: var(--surface-2);
    color: var(--text-strong);
}

.btn--secondary:hover {
    background: var(--border-strong);
}

.btn--ghost {
    background: transparent;
    color: var(--text-strong);
    border-color: var(--border-strong);
}

.btn--ghost:hover {
    background: var(--surface-2);
}

.btn--dark {
    background: var(--text-strong);
    color: var(--bg-elev);
}

.btn--dark:hover {
    filter: brightness(1.1);
}

.btn--lg {
    padding: 0.9rem 1.5rem;
    font-size: var(--text-base);
}

.btn--block {
    width: 100%;
}

.card {
    position: relative;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--elev-1);
    padding: var(--pad-card);
    transition: transform var(--dur-1) var(--ease-standard), box-shadow var(--dur-1) ease, border-color var(--dur-1) ease;
}

.card--hover:hover {
    transform: translateY(-3px);
    box-shadow: var(--elev-2);
    border-color: var(--border-strong);
}

.card--pad-0 {
    padding: 0;
    overflow: hidden;
}

.bento {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    min-height: 150px;
    padding: var(--pad-card);
    overflow: hidden;
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--elev-1);
    transition: transform var(--dur-1) var(--ease-standard), box-shadow var(--dur-1) ease, border-color var(--dur-1) ease;
}

.bento:hover {
    transform: translateY(-3px);
    box-shadow: var(--elev-2);
    border-color: var(--accent-soft);
}

.bento__art {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    overflow: hidden;
}

.bento__glow {
    position: absolute;
    inset: 0;
    z-index: 0;
    pointer-events: none;
    background: radial-gradient(circle at top right, var(--glow), transparent 70%);
}

.bento__content {
    position: relative;
    z-index: 1;
}

.bento__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-strong);
}

.bento__desc {
    margin-top: var(--space-1);
    font-size: var(--text-sm);
    line-height: var(--lh-relaxed);
    color: var(--text-muted);
}

.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.3rem 0.7rem;
    border-radius: var(--r-pill);
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.02em;
    background: var(--accent-weak);
    color: var(--accent-ink);
}

.badge--new {
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
}

.chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: 0.4rem 0.8rem;
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--surface-2);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
}

.feature-icon {
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    margin-bottom: var(--space-4);
    border-radius: var(--r-md);
    background: var(--accent-weak);
    color: var(--accent);
}

.feature-icon svg {
    width: var(--icon-lg);
    height: var(--icon-lg);
}

.field {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.input,
.select,
.textarea {
    width: 100%;
    padding: 0.8rem 1rem;
    border-radius: var(--r-sm);
    border: 1px solid var(--border-strong);
    background: var(--bg-elev);
    color: var(--text-strong);
    transition: border-color var(--dur-1) ease, box-shadow var(--dur-1) ease;
}

.input::placeholder,
.textarea::placeholder {
    color: var(--text-faint);
}

.input:focus,
.select:focus,
.textarea:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-weak);
}

.textarea {
    resize: vertical;
    min-height: 8rem;
}

.form-row {
    display: grid;
    gap: var(--gap);
}

@media (min-width: 40rem) {
    .form-row--2 {
        grid-template-columns: 1fr 1fr;
    }
}

.char-count {
    align-self: flex-end;
    font-size: var(--text-xs);
    color: var(--text-faint);
}

.feedback {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--r-sm);
    font-size: var(--text-sm);
    font-weight: 600;
}

.feedback.is-hidden {
    display: none;
}

.feedback--ok {
    background: color-mix(in srgb, var(--success) 14%, transparent);
    color: var(--success);
}

.feedback--err {
    background: color-mix(in srgb, var(--danger) 14%, transparent);
    color: var(--danger);
}

.mockup {
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    overflow: hidden;
    box-shadow: var(--elev-2);
}

.mockup__bar {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-3) var(--space-4);
    border-bottom: 1px solid var(--border);
}

.win-dot {
    width: 11px;
    height: 11px;
    border-radius: var(--r-pill);
}

.win-dot--red { background: #ff5f57; }
.win-dot--yellow { background: #febc2e; }
.win-dot--green { background: #28c840; }

.mockup__title {
    margin-left: var(--space-2);
    font-size: var(--text-xs);
    color: var(--text-faint);
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-sm);
    color: var(--text-muted);
    margin-bottom: var(--space-4);
}

.breadcrumb a:hover {
    color: var(--text-strong);
}

.breadcrumb__sep {
    color: var(--text-faint);
}

.hero {
    padding-top: calc(var(--nav-h) + var(--space-8));
    padding-bottom: var(--space-6);
    text-align: center;
}

.btn svg.icon-apple {
    width: 1.15em;
    height: 1.15em;
    margin-top: -0.12em;
}

.hero__title {
    font-family: var(--font-display);
    font-size: var(--text-hero);
    font-weight: 800;
    letter-spacing: var(--tracking-tight);
    line-height: var(--lh-tight);
    color: var(--text-strong);
}

/* Project-page names sit a touch smaller than the marketing hero, sized so even
   the longest name ("Christmas Twinkle") stays on one line. */
.project-hero .hero__title {
    font-size: clamp(2.25rem, 5.5vw, 3.25rem);
    text-wrap: balance;
}

.hero__lede {
    margin-top: var(--space-5);
    margin-inline: auto;
    max-width: 38rem;
    font-size: var(--text-lg);
    color: var(--text-muted);
}

.hero__actions {
    margin-top: var(--space-8);
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-3);
    justify-content: center;
}

.prose {
    color: var(--text);
    font-size: var(--text-md);
    line-height: var(--lh-relaxed);
}

.prose h2 {
    margin-top: var(--space-10);
    margin-bottom: var(--space-4);
    font-size: var(--text-2xl);
    font-weight: 800;
}

/* First heading aligns with the top of the sticky "On this page" card. */
.prose > section:first-child > h2:first-child {
    margin-top: 0;
}

.prose h3 {
    margin-top: var(--space-8);
    margin-bottom: var(--space-3);
    font-size: var(--text-xl);
    font-weight: 700;
}

.prose p {
    margin-bottom: var(--space-4);
}

.prose ul,
.prose ol {
    margin-bottom: var(--space-4);
    padding-left: var(--space-6);
}

.prose li {
    margin-bottom: var(--space-2);
}

.prose a {
    color: var(--accent-ink);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.prose code {
    font-family: var(--font-mono);
    font-size: 0.9em;
    padding: 0.15em 0.4em;
    border-radius: var(--r-xs);
    background: var(--surface-2);
    color: var(--accent);
}

.prose pre {
    margin-bottom: var(--space-6);
    padding: var(--space-4);
    border-radius: var(--r-md);
    border: 1px solid var(--border);
    background: var(--bg-elev);
    overflow-x: auto;
}

.prose pre code {
    padding: 0;
    background: none;
    color: var(--text-strong);
}

.callout {
    margin-bottom: var(--space-6);
    padding: var(--space-4) var(--space-5);
    border-radius: var(--r-md);
    border: 1px solid var(--accent-soft);
    background: var(--accent-weak);
    color: var(--text);
}

.privacy-link {
    text-align: center;
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.privacy-link a {
    color: var(--text-muted);
    text-decoration: underline;
    text-underline-offset: 3px;
    text-decoration-color: var(--border-strong);
}

.privacy-link a:hover {
    color: var(--text-strong);
}

.hub-jump {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
    margin-bottom: var(--space-8);
}

.hub-list {
    display: flex;
    flex-direction: column;
    gap: var(--gap-lg);
}

.hub-item__title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    font-size: var(--text-xl);
    font-weight: 800;
    color: var(--text-strong);
}

.hub-dot {
    width: 12px;
    height: 12px;
    border-radius: var(--r-pill);
    background: var(--dot, var(--brand));
    flex-shrink: 0;
}

.privacy-item summary {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: 0;
    cursor: pointer;
    list-style: none;
}

.privacy-item summary::-webkit-details-marker {
    display: none;
}

.privacy-item summary::after {
    content: "";
    width: 9px;
    height: 9px;
    margin-left: auto;
    border-right: 2px solid var(--text-faint);
    border-bottom: 2px solid var(--text-faint);
    transform: rotate(45deg);
    transition: transform var(--dur-1) ease;
}

.privacy-item[open] summary::after {
    transform: rotate(-135deg);
}

.privacy-item[open] .prose {
    margin-top: var(--space-4);
}

.hub-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--gap-lg);
    max-width: var(--w-content);
    margin-inline: auto;
}

@media (min-width: 40rem) {
    .hub-grid {
        grid-template-columns: 1fr 1fr;
    }
}

.doc-card {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
    text-decoration: none;
}

.doc-card__title {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-strong);
}

.doc-card__desc {
    font-size: var(--text-sm);
    line-height: var(--lh-relaxed);
    color: var(--text-muted);
}

.doc-card__cta {
    margin-top: var(--space-2);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--accent-ink);
}

.doc-card--soon {
    opacity: 0.85;
}

.doc-card--soon .doc-card__cta {
    color: var(--text-faint);
}

.docs-feature {
    display: block;
    padding: var(--space-8);
    text-decoration: none;
    border: 1px solid var(--border-strong);
    background: var(--surface);
}

.docs-feature__tag {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-faint);
}

.docs-feature__title {
    display: block;
    margin-top: var(--space-3);
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-strong);
}

.docs-feature__desc {
    display: block;
    margin-top: var(--space-2);
    max-width: 46rem;
    color: var(--text-muted);
    font-size: var(--text-md);
    line-height: var(--lh-relaxed);
}

.docs-feature__cta {
    display: inline-block;
    margin-top: var(--space-4);
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--accent-ink);
}

.docs-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-3);
    margin-top: var(--space-8);
}

.docs-links__label {
    width: 100%;
    margin-bottom: var(--space-1);
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-faint);
}

.docs-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--r-pill);
    border: 1px solid var(--border);
    background: var(--surface);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text);
    transition: border-color var(--dur-1) ease, background var(--dur-1) ease;
}

.docs-link:hover {
    border-color: var(--border-strong);
    background: var(--surface-2);
}

.docs-link .hub-dot {
    width: 10px;
    height: 10px;
}

.merch-more {
    text-align: center;
}

.merch-more__title {
    font-size: var(--text-2xl);
    font-weight: 800;
    color: var(--text-strong);
}

.merch-more__text {
    margin: var(--space-3) auto var(--space-5);
    max-width: 40rem;
    color: var(--text-muted);
    font-size: var(--text-md);
}

/* Closing CTA: two balanced cards (rate + platforms) in a centered grid,
   with room for a full-width action above or a secondary link below. */
/* Uniform spacing around the closing rate/platforms CTA on every project page. */
.project-cta-section {
    padding-top: var(--space-12);
    padding-bottom: var(--space-12);
}

.project-cta {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-4);
}

@media (min-width: 40rem) {
    .project-cta {
        grid-template-columns: 1.25fr 1fr;
        align-items: stretch;
    }
}

/* A lone primary button (e.g. SHIFTED's Download) spans the full width above the cards. */
.project-cta > .btn {
    grid-column: 1 / -1;
    justify-self: center;
}

/* Inviting rating card: stars, a warm prompt, and the review CTA. */
.rate-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-8);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--elev-1);
    text-align: center;
}

/* Platforms card: a separate, matching panel listing supported systems. */
.platforms-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--space-4);
    width: 100%;
    padding: var(--space-8);
    border-radius: var(--r-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    box-shadow: var(--elev-1);
    text-align: center;
}

.platforms-card__label {
    font-size: var(--text-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-faint);
}

.platforms-card__chips {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
}

.rate-card__stars {
    font-size: var(--text-2xl);
    line-height: 1;
    letter-spacing: 4px;
    color: #f6b93b;
}

.rate-card__title {
    font-size: var(--text-lg);
    font-weight: 700;
    color: var(--text-strong);
}

.rate-card__hl {
    color: var(--accent);
}

.rate-card__btn {
    margin-top: var(--space-1);
}



/* Shared two-column project hero (text left, media/logo right) — modeled on Viriko. */
.project-hero {
    position: relative;
    z-index: 1;
    display: grid;
    gap: var(--space-8);
    align-items: center;
    text-align: center;
}

@media (min-width: 48rem) {
    .project-hero {
        grid-template-columns: 1.05fr 0.95fr;
        gap: var(--space-10);
        text-align: left;
    }
}

.project-hero__copy {
    order: 2;
}

.project-hero__art {
    order: 1;
    display: flex;
    justify-content: center;
    min-width: 0;
}

@media (min-width: 48rem) {
    .project-hero__copy { order: 1; }
    .project-hero__art { order: 2; }
}

.project-hero .hero__lede {
    margin-inline: auto;
}

.project-hero .hero__actions {
    justify-content: center;
}

@media (min-width: 48rem) {
    .project-hero .hero__lede { margin-inline: 0; }
    .project-hero .hero__actions { justify-content: flex-start; }
}

/* On laptop widths the copy column is wide enough to keep the hero buttons on one line. */
@media (min-width: 54rem) {
    .project-hero .hero__actions { flex-wrap: nowrap; }
}

.project-hero__icon {
    width: clamp(9rem, 24vw, 13.5rem);
    height: auto;
    aspect-ratio: 1;
    border-radius: 22.5%;
    box-shadow: var(--elev-2);
    object-fit: cover;
}

/* Docs hub */
.docs-hero {
    padding-top: calc(var(--nav-h) + var(--space-12));
    padding-bottom: var(--space-6);
    text-align: left;
}

/* Tighten the gap under the Documentation header (match support/merch). */
.docs-index {
    padding-top: 0;
}

/* Hub page titles (Documentation, Privacy) match the merch/support header size. */
.docs-hero .hero__title {
    font-size: var(--text-4xl);
}

/* External-link arrow for PubVernus (opens in a new window) — inline with the text. */
a[href^="https://pubvernus.com"]:not(.doc-card):not(.dir-card)::after {
    content: "\2197";
    display: inline-block;
    margin-left: 0.2em;
    font-size: 0.82em;
    font-weight: 700;
    line-height: 1;
    vertical-align: middle;
    opacity: 0.8;
}

/* On the home directory card, the arrow sits alone in the lower-right corner. */
.dir-card[href^="https://pubvernus.com"] {
    position: relative;
}

.dir-card[href^="https://pubvernus.com"]::after {
    content: "\2197";
    position: absolute;
    right: var(--space-5);
    bottom: var(--space-5);
    font-size: var(--text-lg);
    font-weight: 700;
    line-height: 1;
    color: var(--text-faint);
}

.docs-hero .hero__lede {
    margin-inline: 0;
}

.docs-index__label {
    margin: var(--space-10) 0 var(--space-5);
    font-size: var(--text-sm);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: var(--tracking-wide);
    color: var(--text-faint);
}
