/* ── Reset & Base ─────────────────────────────────────────────────────────── */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ── Zinc monotone palette ────────────────────────────────────────────────── */

/* Dark theme (default) */
:root,
[data-theme="dark"] {
    --color-primary: #fafafa;
    --color-primary-dark: #e4e4e7;
    --color-primary-light: #d4d4d8;
    --color-primary-glow: rgba(250, 250, 250, 0.04);
    --color-accent: #a1a1aa;
    --color-green: #a1a1aa;
    --color-red: #71717a;
    --color-yellow: #a1a1aa;

    --color-bg: #09090b;
    --color-bg-elevated: #111113;
    --color-bg-card: #18181b;
    --color-bg-card-hover: #27272a;
    --color-bg-muted: #0e0e10;

    --color-text: #fafafa;
    --color-text-secondary: #d4d4d8;
    --color-text-muted: #a1a1aa;
    --color-border: #27272a;
    --color-border-light: #3f3f46;

    --radius: 0.625rem;
    --radius-lg: 0.875rem;
    --radius-xl: 1.25rem;
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
    --max-width: 1200px;
    --header-height: 4rem;

    --header-bg: rgba(9, 9, 11, 0.85);
    --code-bg: rgba(161, 161, 170, 0.1);
    --code-color: #d4d4d8;
}

/* Light theme */
[data-theme="light"] {
    --color-primary: #18181b;
    --color-primary-dark: #09090b;
    --color-primary-light: #3f3f46;
    --color-primary-glow: rgba(0, 0, 0, 0.03);
    --color-accent: #52525b;
    --color-green: #3f3f46;
    --color-red: #71717a;
    --color-yellow: #52525b;

    --color-bg: #ffffff;
    --color-bg-elevated: #ffffff;
    --color-bg-card: #fafafa;
    --color-bg-card-hover: #f4f4f5;
    --color-bg-muted: #fafafa;

    --color-text: #09090b;
    --color-text-secondary: #3f3f46;
    --color-text-muted: #52525b;
    --color-border: #e4e4e7;
    --color-border-light: #d4d4d8;

    --shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-lg: 0 10px 30px rgba(0, 0, 0, 0.08);

    --header-bg: rgba(255, 255, 255, 0.92);
    --code-bg: rgba(0, 0, 0, 0.04);
    --code-color: #18181b;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: Arial, Helvetica, -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--color-text);
    background: var(--color-bg);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

/* Prevent icon flash: reserve space before Lucide converts <i> to <svg> */
i[data-lucide] {
    display: inline-block;
    width: 24px;
    height: 24px;
}

code {
    background: var(--code-bg);
    color: var(--code-color);
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.85em;
    font-family: 'SF Mono', 'Fira Code', monospace;
}

/* ── Container ───────────────────────────────────────────────────────────── */
.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
}

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

/* ── Header ──────────────────────────────────────────────────────────────── */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--header-bg);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--color-border);
    height: var(--header-height);
}

.header__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 100%;
}

.header__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.25rem;
    color: var(--color-text);
}

.header__logo-icon {
    color: var(--color-text);
    width: 18px;
    height: 18px;
}

.header__nav {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.header__link {
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-secondary);
    transition: color 0.2s;
    line-height: 1;
}

.header__link:hover,
.header__link.active {
    color: var(--color-text);
}

.header__actions {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 6px;
    width: 2.25rem;
    height: 2.25rem;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
}

.header__mobile-toggle:hover {
    background: var(--color-bg-card);
}

.header__mobile-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    background: var(--color-text);
    transition: 0.2s;
}

.header__desktop-only {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header__mobile-menu {
    display: none;
}

/* ── Buttons ─────────────────────────────────────────────────────────────── */
/* ── Buttons (shadcn-style) ───────────────────────────────────────────────── */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    height: 2.25rem; /* h-9 */
    padding: 0 1rem; /* px-4 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
    font-family: inherit;
    line-height: 1;
}

/* Variant: default (primary) */
.btn--primary {
    background: var(--color-text);
    color: var(--color-bg);
    border-color: var(--color-text);
}

.btn--primary:hover {
    opacity: 0.9;
}

/* Variant: outline */
.btn--outline {
    background: transparent;
    color: var(--color-text);
    border-color: var(--color-border-light);
}

.btn--outline:hover {
    background: var(--color-bg-card);
}


/* Variant: ghost */
.btn--ghost {
    background: transparent;
    color: var(--color-text-secondary);
    border: none;
}

.btn--ghost:hover {
    background: var(--color-bg-card);
    color: var(--color-text);
}


/* Size: icon (square) */
.btn--icon {
    width: 2.25rem;
    height: 2.25rem;
    padding: 0;
}

/* Copy-to-clipboard feedback: icon pops and turns brand-colored while "copied" */
.btn--icon.is-copied {
    color: var(--brand);
}

.btn--icon.is-copied i,
.btn--icon.is-copied svg {
    animation: btn-icon-pop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes btn-icon-pop {
    0% { transform: scale(1); }
    45% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

/* Size: lg */
.btn--lg {
    height: 2.75rem; /* h-11 */
    padding: 0 2rem; /* px-8 */
    font-size: 1rem;
    border-radius: var(--radius-lg);
}

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

.btn__arrow {
    transition: transform 0.2s;
}

.btn:hover .btn__arrow {
    transform: translateX(3px);
}

/* ── Hero ────────────────────────────────────────────────────────────────── */
.hero {
    padding: 7rem 0 5rem;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 3.5rem;
    align-items: center;
    text-align: left;
}

.hero__content .hero__subtitle { margin: 0 0 2.5rem; }
.hero__content .hero__actions { justify-content: flex-start; }

.hero__video { margin: 0; position: relative; }
.hero__video video {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.25);
    background: var(--color-bg-muted);
    cursor: pointer;
}

.hero__video-mute {
    position: absolute;
    bottom: 0.75rem;
    right: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background 0.15s;
}

.hero__video-mute:hover { background: rgba(15, 23, 42, 0.75); }
.hero__video-mute i { width: 0.85rem; height: 0.85rem; }

.hero__video-fullscreen {
    position: absolute;
    bottom: 0.75rem;
    right: 2.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 1.875rem;
    height: 1.875rem;
    border-radius: 50%;
    border: 1px solid rgba(255, 255, 255, 0.25);
    background: rgba(15, 23, 42, 0.55);
    color: #fff;
    backdrop-filter: blur(4px);
    cursor: pointer;
    transition: background 0.15s;
}

.hero__video-fullscreen:hover { background: rgba(15, 23, 42, 0.75); }
.hero__video-fullscreen i { width: 0.85rem; height: 0.85rem; }

@media (max-width: 900px) {
    .hero__inner {
        grid-template-columns: 1fr;
        gap: 2.5rem;
        text-align: center;
    }

    .hero__content .hero__subtitle { margin: 0 auto 2.5rem; }
    .hero__content .hero__actions { justify-content: center; }
}

.hero::before {
    content: '';
    position: absolute;
    top: -200px;
    left: 50%;
    transform: translateX(-50%);
    width: 800px;
    height: 800px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.4rem 1rem;
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: 99px;
    margin-bottom: 2rem;
}

.hero__badge strong {
    color: var(--color-primary-light);
}

.nav-badge {
    display: inline-block;
    margin-left: 0.35rem;
    padding: 0.1rem 0.45rem;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1.4;
    color: #fff;
    background: var(--brand);
    border-radius: 99px;
    vertical-align: middle;
}

.hero__title {
    font-size: 4rem;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    margin-bottom: 1.5rem;
    position: relative;
}

.hero__highlight {
    color: var(--color-text-secondary);
}

/* Brand gradient: black → gray */
.brand {
    background: linear-gradient(135deg, var(--color-text) 0%, var(--color-text-muted) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Inside primary buttons: inherit button text color */
.btn--primary .brand {
    background: none;
    -webkit-background-clip: unset;
    -webkit-text-fill-color: inherit;
    background-clip: unset;
}

.hero__subtitle {
    font-size: 1.15rem;
    color: var(--color-text-secondary);
    max-width: 640px;
    margin: 0 auto 2.5rem;
    line-height: 1.7;
}

.hero__actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    margin-bottom: 1.5rem;
}

.hero__note {
    font-size: 0.8rem;
    color: var(--color-text-muted);
}

/* ── Breadcrumb ──────────────────────────────────────────────────────────── */
.breadcrumb {
    padding: 1rem 0 0;
}

.breadcrumb__list {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    list-style: none;
    font-size: 0.8rem;
}

.breadcrumb__item {
    display: flex;
    align-items: center;
}

.breadcrumb__link {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

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

.breadcrumb__separator {
    display: flex;
    align-items: center;
    margin: 0 0.35rem;
    color: var(--color-text-muted);
}

.breadcrumb__separator i,
.breadcrumb__separator svg {
    width: 14px;
    height: 14px;
}

.breadcrumb__current {
    color: var(--color-text-secondary);
    font-weight: 500;
}

/* ── Page Hero ───────────────────────────────────────────────────────────── */
.page-hero {
    padding: 5rem 0 3rem;
    text-align: center;
    position: relative;
}

.page-hero::before {
    content: '';
    position: absolute;
    top: -100px;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.page-hero__title {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    position: relative;
}

.page-hero__subtitle {
    font-size: 1.1rem;
    color: var(--color-text-secondary);
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.7;
    position: relative;
}

/* ── Sections ────────────────────────────────────────────────────────────── */
.section {
    padding: 6rem 0;
}

.section--border {
    border-top: 1px solid var(--color-border);
}

.section--muted {
    background: var(--color-bg-muted);
}

.section__label {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.section__label i,
.section__label svg {
    width: 16px;
    height: 16px;
}

.section__label-icon {
    font-size: 1.1rem;
}

.section__title {
    font-size: 2.25rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 2.7rem;
    margin-bottom: 0.75rem;
}

.section__title--center {
    text-align: center;
}

.section__subtitle {
    color: var(--color-text-secondary);
    font-size: 1.05rem;
    margin-bottom: 3rem;
    line-height: 1.7;
}

.section__subtitle--center {
    text-align: center;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 3rem;
}

/* ── Stats Bar ───────────────────────────────────────────────────────────── */
.stats-bar {
    border-top: 1px solid var(--color-border);
    border-bottom: 1px solid var(--color-border);
    padding: 2.5rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
    text-align: center;
}

.stat__number {
    display: block;
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--color-text);
    letter-spacing: -0.03em;
}

.stat__label {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    font-weight: 500;
}

/* ── Architecture Section ────────────────────────────────────────────────── */
.arch {
    padding: 6rem 0;
    border-top: 1px solid var(--color-border);
}

.arch__header {
    text-align: center;
    margin-bottom: 3.5rem;
}

.arch__cols {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    margin-bottom: 3rem;
}

.arch__col {
    background: var(--color-bg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
}

.arch__col-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.75rem;
}

.arch__col-title {
    font-size: 1.05rem;
    font-weight: 700;
}

.arch__col-badge {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    border: 1px solid var(--color-border-light);
    color: var(--color-text-muted);
}

.arch__col-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    margin-bottom: 1.25rem;
    flex: 1;
}

.arch__col-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.arch__col-list li {
    font-size: 0.8rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.4rem;
}

.arch__col-list li::before {
    content: "\2713";
    font-weight: 700;
    color: var(--color-text-secondary);
    font-size: 0.75rem;
}

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

.arch__why-card {
    padding: 1.5rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.arch__why-title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.arch__why-title i {
    width: 16px;
    height: 16px;
    color: var(--color-text-muted);
}

.arch__why-desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ── Ownership Section (anti-BaaS) ──────────────────────────────────────── */
.ownership {
    padding: 6rem 0;
    border-top: 1px solid var(--color-border);
}

.ownership__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.ownership__content {
    max-width: 500px;
}

.ownership__comparison {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.ownership__card {
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    background: var(--color-bg-card);
}

.ownership__card--bad {
    border-color: var(--color-border-light);
}

.ownership__card--good {
    border-color: var(--color-text-muted);
    background: var(--color-bg-card);
}

.ownership__card-title {
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ownership__card-list {
    list-style: none;
}

.ownership__card-list li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.5rem;
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.ownership__card-list--bad li::before {
    content: "\2717";
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
    font-weight: 700;
}

.ownership__card-list--good li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    color: var(--color-text);
    font-weight: 700;
}

/* ── Feature Showcase (split layout) ─────────────────────────────────────── */
.showcase {
    padding: 6rem 0;
    border-top: 1px solid var(--color-border);
}

.showcase__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.showcase__inner--reverse {
    direction: rtl;
}

.showcase__inner--reverse > * {
    direction: ltr;
}

.showcase__content {
    max-width: 480px;
}

.showcase__preview {
    position: relative;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
    aspect-ratio: 16 / 11;
}

.showcase__preview-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-muted);
    font-size: 0.9rem;
    padding: 2rem;
    text-align: center;
}

.showcase__preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Slide-based preview images */
.showcase__slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase__slide--active {
    opacity: 1;
}

.showcase__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.showcase__slide-placeholder {
    color: var(--color-text-muted);
    font-size: 0.85rem;
    padding: 2rem;
    text-align: center;
    line-height: 1.6;
}

/* Showcase accordion (feature sub-items) */
.showcase-accordion {
    margin-top: 1.5rem;
}

.showcase-accordion__item {
    border-top: 1px solid var(--color-border);
}

.showcase-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

.showcase-accordion__name {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-secondary);
    transition: color 0.2s;
}

.showcase-accordion__item--open .showcase-accordion__name {
    color: var(--color-text);
}

.showcase-accordion__arrow {
    color: var(--color-text-muted);
    transition: transform 0.3s;
    display: flex;
    align-items: center;
}

.showcase-accordion__arrow i,
.showcase-accordion__arrow svg {
    width: 16px;
    height: 16px;
}

.showcase-accordion__item--open .showcase-accordion__arrow {
    transform: rotate(180deg);
}

.showcase-accordion__body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.showcase-accordion__item--open .showcase-accordion__body {
    max-height: 500px;
}

.showcase-accordion__desc {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
    padding-bottom: 1rem;
}

/* ── Feature Grid (small cards) ──────────────────────────────────────────── */
.features-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1px;
    background: var(--color-border);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    overflow: hidden;
}

.feature-card {
    padding: 1.75rem;
    background: var(--color-bg-card);
    transition: background 0.2s;
}

.feature-card:hover {
    background: var(--color-bg-card-hover);
}

.feature-card--key {
    box-shadow: inset 0 2px 0 var(--color-text-secondary);
}

.features-also {
    margin-top: 1.25rem;
    text-align: center;
    font-size: 0.825rem;
    color: var(--color-text-secondary);
}

.feature-card__title {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.feature-card__desc {
    font-size: 0.825rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ── Tech Grid ───────────────────────────────────────────────────────────── */
.tech-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}

.tech-card {
    padding: 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.tech-card:hover {
    border-color: var(--color-border-light);
    box-shadow: var(--shadow);
}

.tech-card__name {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.tech-card__desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* ── Steps ────────────────────────────────────────────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.step {
    padding: 2rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: var(--color-bg-card-hover);
    border: 1px solid var(--color-border-light);
    color: var(--color-text);
    font-size: 1rem;
    font-weight: 800;
    margin-bottom: 1.25rem;
}

.step__title {
    font-size: 1.05rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}

.step__desc {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}
.step__desc a { color: var(--brand); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.step__desc a:hover { text-decoration: none; }

/* ── MCP connection details (endpoint / header, with a copy button) ─────────── */
.mcp-code {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin: 2.5rem 0 0;
    padding: 0.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.mcp-code__row {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.6rem 0.9rem;
}

.mcp-code__label {
    flex-shrink: 0;
    width: 4.5rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--color-text-muted);
}

.mcp-code__value {
    flex: 1;
    overflow-x: auto;
    white-space: nowrap;
}

.mcp-code__row--block {
    align-items: flex-start;
}

.mcp-code__value--block {
    display: block;
    white-space: pre;
    overflow-x: auto;
    line-height: 1.6;
}

/* ── Example prompts inside a connect step ───────────────────────────────── */
.step__examples {
    list-style: none;
    padding: 0;
    margin: 0.9rem 0 0;
    display: grid;
    gap: 0.5rem;
}

.step__examples li {
    font-size: 0.8rem;
    font-style: italic;
    color: var(--color-text-muted);
    padding: 0.5rem 0.75rem;
    background: var(--color-bg-card-hover);
    border-radius: var(--radius);
}

/* ── Pricing Grid ────────────────────────────────────────────────────────── */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.pricing-card {
    position: relative;
    padding: 2.5rem 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    background: var(--color-bg-card);
    text-align: center;
}

.pricing-card--highlight {
    border-color: var(--color-text-muted);
    box-shadow: var(--shadow-lg);
    transform: scale(1.02);
}

.pricing-card__badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    padding: 0.25rem 1rem;
    font-size: 0.7rem;
    font-weight: 700;
    color: var(--color-bg);
    background: var(--color-text);
    border-radius: 99px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.pricing-card__name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.pricing-card__price {
    margin-bottom: 1.5rem;
}

.pricing-card__amount {
    font-size: 3rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.pricing-card__interval {
    font-size: 0.85rem;
    color: var(--color-text-muted);
    display: block;
    margin-top: 0.25rem;
}

.pricing-card__features {
    text-align: left;
    margin-bottom: 2rem;
}

.pricing-card__features li {
    display: flex;
    align-items: baseline;
    gap: 0.5rem;
    padding: 0.4rem 0;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
}

.pricing-card__check {
    color: var(--color-text-secondary);
    font-weight: 700;
    flex-shrink: 0;
}

/* ── FAQ ──────────────────────────────────────────────────────────────────── */
.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.faq-item {
    padding: 1.5rem;
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.faq-item__question {
    font-size: 0.95rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.faq-item__answer {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* ── Comparison Table ────────────────────────────────────────────────────── */
.comparison-table {
    max-width: 800px;
    margin: 0 auto;
    overflow-x: auto;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.comparison-table th {
    text-align: left;
    padding: 1rem 1.25rem;
    font-weight: 700;
    background: var(--color-bg-card);
    border-bottom: 1px solid var(--color-border);
}

.comparison-table td {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid var(--color-border);
    color: var(--color-text-secondary);
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table td.highlight {
    color: var(--color-text);
    font-weight: 700;
}

.comparison-table .total-row td {
    border-top: 2px solid var(--color-border-light);
    background: var(--color-bg-card);
}

/* Landing pages: small note under a table or grid, and inline text links. */
.free-note { margin-top: 1.5rem; font-size: 0.95rem; }
.free-links a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }

/* Comparison page (/best-planning-poker-tools): disclosure, tool cards with logos, decision list. */
.best-disclosure {
    max-width: 680px; margin: 1.75rem auto 0; padding: 0.9rem 1.1rem; font-size: 0.95rem; text-align: left;
    color: var(--color-text-secondary); background: var(--brand-soft); border-left: 3px solid var(--brand); border-radius: var(--radius);
}
.comparison-table--wide { max-width: 1100px; }
.tool-row { display: inline-flex; align-items: center; gap: 0.6rem; color: inherit; text-decoration: none; white-space: nowrap; }
.tool-logo { flex-shrink: 0; border-radius: 10px; object-fit: contain; background: #fff; }
.tool-logo--icon { display: inline-grid; place-items: center; background: var(--color-bg-muted); border: 1px solid var(--color-border); color: var(--color-text-muted); }
.tool-logo--icon svg { width: 55%; height: 55%; }
.tools-group__title { margin: 3rem 0 1.25rem; font-size: 1.15rem; color: var(--color-text); }
.tools-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.25rem; }
.tool-card { display: flex; flex-direction: column; gap: 0.85rem; padding: 1.4rem; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-bg-card); }
.tool-card--ours { border-color: var(--brand-line); background: var(--brand-soft); }
.tool-card__head { display: flex; align-items: center; gap: 0.85rem; }
.tool-card__name { margin: 0; font-size: 1.15rem; color: var(--color-text); }
.tool-card__desc { margin: 0; color: var(--color-text-secondary); font-size: 0.95rem; }
.tool-card__facts { margin: 0; display: grid; gap: 0.2rem; font-size: 0.9rem; }
.tool-card__facts dt { margin-top: 0.45rem; font-weight: 700; color: var(--color-text); }
.tool-card__facts dd { margin: 0; color: var(--color-text-secondary); }
.tool-card__visit { margin-top: auto; font-weight: 600; font-size: 0.9rem; color: var(--brand); }
.tool-card .btn { margin-top: auto; align-self: flex-start; }
.best-choose { max-width: 760px; margin: 2rem auto 0; padding-left: 1.4rem; color: var(--color-text-secondary); line-height: 1.7; }
.best-choose li { margin-bottom: 0.6rem; }
.best-choose li::marker { color: var(--brand); font-weight: 700; }

/* Home integrations: a small "works with" logo strip under the subtitle. */
.integration-logos { display: flex; flex-wrap: wrap; gap: 0.6rem 1.25rem; margin: 0.25rem 0 1.5rem; padding: 0; list-style: none; }
.integration-logos li { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.9rem; font-weight: 600; color: var(--color-text-secondary); }
.integration-logos img { width: 22px; height: 22px; }

/* ── Docs Grid ───────────────────────────────────────────────────────────── */
.docs-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.doc-card {
    padding: 2rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    background: var(--color-bg-card);
    transition: border-color 0.2s;
}

.doc-card:hover {
    border-color: var(--color-border-light);
}

.doc-card__title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.doc-card__desc {
    font-size: 0.85rem;
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.doc-card__list li {
    position: relative;
    padding-left: 1.25rem;
    font-size: 0.825rem;
    color: var(--color-text-muted);
    line-height: 1.8;
}

.doc-card__list li::before {
    content: "\203A";
    position: absolute;
    left: 0;
    color: var(--color-text-muted);
    font-weight: 700;
}

/* ── CTA Section ─────────────────────────────────────────────────────────── */
.cta-section {
    padding: 6rem 0;
    border-top: 1px solid var(--color-border);
    text-align: center;
    position: relative;
}

.cta-section::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 600px;
    height: 400px;
    background: radial-gradient(circle, var(--color-primary-glow) 0%, transparent 70%);
    pointer-events: none;
}

.cta-section .section__title,
.cta-section .section__subtitle--center {
    position: relative;
}

/* ── Footer ──────────────────────────────────────────────────────────────── */
.footer {
    padding: 4rem 0 2rem;
    border-top: 1px solid var(--color-border);
}

.footer__grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer__logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 700;
    font-size: 1.15rem;
    margin-bottom: 0.5rem;
}

.footer__tagline {
    font-size: 0.85rem;
    color: var(--color-text-muted);
}

.footer__social {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.footer__social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    color: var(--color-text-muted);
    background: var(--color-border);
    transition: color 0.2s, background 0.2s;
}

.footer__social-link:hover {
    color: #fff;
    background: #ff0000;
}

.footer__heading {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-text-muted);
    margin-bottom: 1rem;
}

.footer__link {
    display: block;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    padding: 0.25rem 0;
    transition: color 0.2s;
}

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

.footer__bottom {
    border-top: 1px solid var(--color-border);
    padding-top: 1.5rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}

/* ── Theme Menu ──────────────────────────────────────────────────────────── */
.theme-menu {
    position: relative;
}

.theme-menu__icon {
    width: 18px;
    height: 18px;
    display: none;
}

/* Dark mode: show sun icon */
[data-theme="dark"] .theme-menu__icon--light { display: block; }
[data-theme="dark"] .theme-menu__icon--dark  { display: none; }

/* Light mode: show moon icon */
[data-theme="light"] .theme-menu__icon--dark  { display: block; }
[data-theme="light"] .theme-menu__icon--light { display: none; }

/* Default: show sun */
.theme-menu__icon--light { display: block; }

/* Dropdown item icons */
.theme-menu__item i,
.theme-menu__item svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

/* Dropdown */
.theme-menu__dropdown {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 150px;
    border-radius: var(--radius-lg);
    padding: 4px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px) scale(0.97);
    transform-origin: top right;
    transition: all 0.15s ease;
    z-index: 200;
    /* Fixed colors so theme switch doesn't affect the open menu */
    background: #ffffff;
    border: 1px solid #e4e4e7;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
}

[data-theme="dark"] .theme-menu__dropdown {
    background: #18181b;
    border-color: #27272a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.theme-menu.open .theme-menu__dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.theme-menu__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.45rem 0.6rem;
    font-size: 0.875rem;
    font-weight: 400;
    font-family: inherit;
    border: none;
    border-radius: calc(var(--radius-lg) - 4px);
    cursor: pointer;
    background: transparent;
    transition: all 0.1s;
    /* Fixed colors, not affected by theme switch */
    color: #71717a;
}

.theme-menu__item:hover {
    background: #f4f4f5;
    color: #09090b;
}

.theme-menu__item.active {
    background: #f4f4f5;
    color: #09090b;
    font-weight: 500;
}

.theme-menu__item i,
.theme-menu__item svg {
    color: #71717a;
}

.theme-menu__item:hover i,
.theme-menu__item:hover svg,
.theme-menu__item.active i,
.theme-menu__item.active svg {
    color: #09090b;
}

/* Dark theme dropdown items */
[data-theme="dark"] .theme-menu__item {
    color: #a1a1aa;
}

[data-theme="dark"] .theme-menu__item:hover {
    background: #27272a;
    color: #fafafa;
}

[data-theme="dark"] .theme-menu__item.active {
    background: #27272a;
    color: #fafafa;
}

[data-theme="dark"] .theme-menu__item i,
[data-theme="dark"] .theme-menu__item svg {
    color: #71717a;
}

[data-theme="dark"] .theme-menu__item:hover i,
[data-theme="dark"] .theme-menu__item:hover svg,
[data-theme="dark"] .theme-menu__item.active i,
[data-theme="dark"] .theme-menu__item.active svg {
    color: #fafafa;
}



/* ── Docs Layout ─────────────────────────────────────────────────────────── */
.docs {
    display: grid;
    grid-template-columns: 280px 1fr;
    min-height: calc(100vh - var(--header-height));
}

/* Sidebar */
.docs__sidebar {
    border-right: 1px solid var(--color-border);
    background: var(--color-bg);
    position: sticky;
    top: var(--header-height);
    height: calc(100vh - var(--header-height));
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: var(--color-border) transparent;
}

.docs__sidebar-inner {
    padding: 1.25rem 1rem;
}

.docs__search-wrapper {
    position: relative;
    margin-bottom: 1.5rem;
}

.docs__search {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    font-size: 0.8rem;
    color: var(--color-text-muted);
    transition: border-color 0.15s;
}

.docs__search:focus-within {
    border-color: var(--color-text-muted);
}

.docs__search-input {
    flex: 1;
    background: none;
    border: none;
    outline: none;
    font-size: 0.8rem;
    font-family: inherit;
    color: var(--color-text);
}

.docs__search-input::placeholder {
    color: var(--color-text-muted);
}

.docs__search-results {
    display: none;
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    z-index: 50;
    max-height: 320px;
    overflow-y: auto;
    padding: 4px;
}

.docs__search-item {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    padding: 0.5rem 0.65rem;
    border-radius: calc(var(--radius) - 2px);
    text-decoration: none;
    transition: background 0.1s;
}

.docs__search-item:hover {
    background: var(--color-bg-card-hover);
}

.docs__search-item-label {
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-text);
}

.docs__search-item-group {
    font-size: 0.7rem;
    color: var(--color-text-muted);
}

.docs__search-empty {
    padding: 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    text-align: center;
}

.docs__nav-section {
    margin-bottom: 0.25rem;
}

.docs__nav-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0.5rem 0.5rem;
    background: none;
    border: none;
    border-radius: var(--radius);
    cursor: pointer;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text);
    transition: background 0.15s;
}

.docs__nav-heading:hover {
    background: var(--color-bg-card);
}

.docs__nav-heading-text {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.docs__nav-heading-text i,
.docs__nav-heading-text svg {
    color: var(--color-text-muted);
}

.docs__nav-chevron {
    display: flex;
    align-items: center;
    transition: transform 0.2s;
}

.docs__nav-chevron i,
.docs__nav-chevron svg {
    width: 14px;
    height: 14px;
    color: var(--color-text-muted);
}

.docs__nav-section--open .docs__nav-chevron {
    transform: rotate(180deg);
}

.docs__nav-children {
    display: none;
    padding: 0.15rem 0 0.5rem 1rem;
}

.docs__nav-section--open .docs__nav-children {
    display: block;
}

.docs__nav-link {
    display: block;
    padding: 0.3rem 0.75rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    border-left: 2px solid transparent;
    transition: all 0.15s;
    text-decoration: none;
}

.docs__nav-link:hover {
    color: var(--color-text);
}

.docs__nav-link--active {
    color: var(--color-text);
    font-weight: 500;
    border-left-color: var(--color-text);
    background: var(--color-bg-card);
    border-radius: 0 var(--radius) var(--radius) 0;
}

/* Content */
.docs__content {
    padding: 2rem 3rem;
    max-width: 800px;
    min-width: 0;
}

.docs__content-inner {
    max-width: 700px;
}

.docs__breadcrumb {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: var(--color-text-muted);
    margin-bottom: 2rem;
}

.docs__breadcrumb a {
    color: var(--color-text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

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

.docs__breadcrumb span {
    color: var(--color-text-secondary);
}

.docs__breadcrumb i,
.docs__breadcrumb svg {
    color: var(--color-text-muted);
    flex-shrink: 0;
}

/* Doc content typography */
.docs__content h1 {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 0.5rem;
}

.docs__content h2 {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-top: 2.5rem;
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--color-border);
}

.docs__content h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-top: 2rem;
    margin-bottom: 0.5rem;
}

.docs__content p {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.docs__content ul,
.docs__content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.docs__content li {
    font-size: 0.9rem;
    color: var(--color-text-secondary);
    line-height: 1.7;
    margin-bottom: 0.25rem;
}

.docs__content pre {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    padding: 1rem 1.25rem;
    margin-bottom: 1.25rem;
    overflow-x: auto;
    font-size: 0.8rem;
    line-height: 1.6;
}

.docs__content pre code {
    background: none;
    padding: 0;
    color: var(--color-text-secondary);
    font-size: inherit;
}

.docs__content hr {
    border: none;
    border-top: 1px solid var(--color-border);
    margin: 2rem 0;
}

.docs__content a {
    color: var(--color-text);
    text-decoration: underline;
    text-underline-offset: 2px;
}

.docs__content a:hover {
    color: var(--color-text-secondary);
}

.docs__placeholder {
    color: var(--color-text-muted);
    font-style: italic;
    padding: 3rem 0;
}

/* Pagination */
.docs__pagination {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
    gap: 1rem;
}

.docs__pagination-link {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    padding: 0.75rem 1rem;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    text-decoration: none;
    transition: border-color 0.15s;
    min-width: 0;
}

.docs__pagination-link:hover {
    border-color: var(--color-border-light);
}

.docs__pagination-link--next {
    text-align: right;
    margin-left: auto;
}

.docs__pagination-dir {
    font-size: 0.75rem;
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.docs__pagination-link--next .docs__pagination-dir {
    justify-content: flex-end;
}

.docs__pagination-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-text);
}

/* Mobile sidebar toggle */
.docs__mobile-toggle {
    display: none;
}

/* ── Language Button ─────────────────────────────────────────────────────── */
.lang-btn {
    gap: 0.35rem;
    width: auto;
    padding: 0 0.5rem;
}

.lang-btn__label {
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

/* ── Performance List ────────────────────────────────────────────────────── */
.perf-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

.perf-list li {
    position: relative;
    padding-left: 1.5rem;
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.perf-list li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    font-weight: 700;
    color: var(--color-text);
}

/* ── Generic Dropdown (theme-aware) ──────────────────────────────────────── */
.dropdown {
    position: relative;
}

.dropdown__menu {
    position: absolute;
    top: calc(100% + 6px);
    right: 0;
    min-width: 140px;
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: var(--radius-lg);
    padding: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08), 0 0 0 1px rgba(0, 0, 0, 0.03);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px) scale(0.97);
    transform-origin: top right;
    transition: all 0.15s ease;
    z-index: 200;
}

[data-theme="dark"] .dropdown__menu {
    background: #18181b;
    border-color: #27272a;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.dropdown.open .dropdown__menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.dropdown__item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    width: 100%;
    padding: 0.45rem 0.6rem;
    font-size: 0.875rem;
    font-weight: 400;
    font-family: inherit;
    border: none;
    border-radius: calc(var(--radius-lg) - 4px);
    cursor: pointer;
    background: transparent;
    color: #71717a;
    transition: all 0.1s;
    text-decoration: none;
}

.dropdown__item:hover {
    background: rgba(128, 128, 128, 0.12);
    color: #09090b;
}

.dropdown__item.active {
    background: rgba(128, 128, 128, 0.12);
    color: #09090b;
    font-weight: 500;
}

[data-theme="dark"] .dropdown__item {
    color: #a1a1aa;
}

[data-theme="dark"] .dropdown__item:hover,
[data-theme="dark"] .dropdown__item.active {
    background: #27272a;
    color: #fafafa;
}

/* ── Responsive ──────────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Mobile header: hamburger | logo (center) | theme + CTA */
    .header__nav,
    .header__desktop-only {
        display: none;
    }

    .header__mobile-toggle {
        display: flex;
        order: -1;
    }

    .header__logo {
        flex: 1;
        justify-content: center;
    }

    .header__actions {
        gap: 0.5rem;
    }

    /* Mobile menu panel */
    .header__mobile-menu {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: var(--color-bg);
        border-bottom: 1px solid var(--color-border);
        z-index: 99;
        max-height: calc(100vh - var(--header-height));
        overflow-y: auto;
    }

    .header--open {
        position: fixed;
        left: 0;
        right: 0;
    }

    .header--open .header__mobile-menu {
        display: block;
    }

    .header__mobile-nav {
        display: flex;
        flex-direction: column;
        padding: 1rem 0;
    }

    .header__mobile-link {
        display: block;
        padding: 0.75rem 0;
        font-size: 1rem;
        font-weight: 500;
        color: var(--color-text-secondary);
        border-bottom: 1px solid var(--color-border);
        transition: color 0.15s;
    }

    .header__mobile-link:last-child {
        border-bottom: none;
    }

    .header__mobile-link:hover,
    .header__mobile-link.active {
        color: var(--color-text);
    }

    .header__mobile-actions {
        display: flex;
        flex-direction: column;
        gap: 0.75rem;
        padding: 1rem 0 1.5rem;
        border-top: 1px solid var(--color-border);
    }

    .header__mobile-lang {
        display: flex;
        gap: 0.5rem;
        margin-bottom: 0.5rem;
    }

    .header__mobile-lang-item {
        padding: 0.4rem 0.75rem;
        font-size: 0.8rem;
        font-weight: 500;
        border-radius: var(--radius);
        border: 1px solid var(--color-border);
        color: var(--color-text-secondary);
        transition: all 0.15s;
    }

    .header__mobile-lang-item.active {
        background: var(--color-bg-card-hover);
        color: var(--color-text);
        border-color: var(--color-border-light);
    }

    .hero__title {
        font-size: 2.5rem;
    }

    .page-hero__title {
        font-size: 2rem;
    }

    .hero__actions {
        flex-direction: column;
        align-items: center;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }

    .ownership__grid,
    .showcase__inner,
    .showcase__inner--reverse {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .showcase__inner--reverse {
        direction: ltr;
    }

    .tech-grid,
    .features-grid,
    .pricing-grid,
    .docs-grid,
    .faq-grid,
    .steps-grid,
    .arch__cols,
    .arch__why {
        grid-template-columns: 1fr;
    }

    .pricing-card--highlight {
        transform: none;
    }

    .mcp-code__row {
        flex-wrap: wrap;
    }

    .mcp-code__value {
        flex-basis: 100%;
        order: 2;
    }

    .footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }

    .section__title {
        font-size: 1.75rem;
    }

    /* Docs mobile */
    .docs {
        grid-template-columns: 1fr;
    }

    .docs__sidebar {
        position: static;
        height: auto;
        border-right: none;
        border-bottom: 1px solid var(--color-border);
    }

    .docs__content {
        padding: 1.5rem;
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   Bot Replayer: brand accent, product mockups, pricing, legal
   ══════════════════════════════════════════════════════════════════════════ */

:root,
[data-theme="dark"] {
    --brand: #00a884;
    --brand-ink: #04130a;
    --brand-soft: rgba(0, 168, 132, 0.14);
    --brand-line: rgba(0, 168, 132, 0.35);
}

[data-theme="light"] {
    --brand: #008a6e;
    --brand-ink: #ffffff;
    --brand-soft: rgba(0, 138, 110, 0.1);
    --brand-line: rgba(0, 138, 110, 0.35);
}

.btn--primary {
    background: var(--brand);
    color: var(--brand-ink);
    border-color: var(--brand);
}

.btn--primary:hover { opacity: 1; filter: brightness(1.08); }

.hero__highlight {
    background: none;
    -webkit-text-fill-color: var(--brand);
    color: var(--brand);
}

.section__label,
.pricing-card__check { color: var(--brand); }

.hero__badge strong { color: var(--brand); }

.pricing-card--highlight { border-color: var(--brand-line); box-shadow: 0 0 0 1px var(--brand-line), var(--shadow-lg); }

.header__logo-img,
.footer__logo img { border-radius: 7px; display: block; }

.footer__logo { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 1.125rem; color: var(--color-text); }

@media (max-width: 900px) { .header__signin { display: none; } }

/* ── Product mockups (pure HTML/CSS, no screenshots to maintain) ───────── */

.mock {
    background: var(--color-bg-card);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    text-align: left;
}

.mock__bar {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--color-border);
    background: var(--color-bg-elevated);
}

.mock__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--color-border-light); }
.mock__title { margin-left: 0.6rem; font-size: 0.75rem; color: var(--color-text-muted); font-weight: 500; }
.mock__body { padding: 1.25rem; }

.mock__task { font-size: 0.95rem; font-weight: 600; margin: 0 0 0.25rem; }
.mock__sub { font-size: 0.75rem; color: var(--color-text-muted); margin: 0 0 1rem; }

.mock-cards { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }

.mock-card {
    width: 2.6rem;
    height: 3.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--color-border-light);
    border-radius: 0.5rem;
    font-weight: 700;
    font-size: 1rem;
    background: var(--color-bg);
}

.mock-card--on {
    background: var(--brand);
    color: var(--brand-ink);
    border-color: var(--brand);
    transform: translateY(-6px);
    box-shadow: 0 8px 18px var(--brand-soft);
}

.mock-players { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1.1rem; }

.mock-player {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.25rem 0.6rem 0.25rem 0.3rem;
    border: 1px solid var(--color-border);
    border-radius: 999px;
    font-size: 0.75rem;
    color: var(--color-text-secondary);
}

.mock-player__av {
    width: 1.35rem; height: 1.35rem; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    font-size: 0.65rem; font-weight: 700; color: #04130a;
}

.mock-player__ok { color: var(--brand); font-weight: 700; }

.mock-bars { display: grid; gap: 0.45rem; }

.mock-bar { display: grid; grid-template-columns: 2rem 1fr 1.2rem; align-items: center; gap: 0.6rem; font-size: 0.75rem; }
.mock-bar__track { height: 0.5rem; border-radius: 99px; background: var(--color-bg-muted); overflow: hidden; border: 1px solid var(--color-border); }
.mock-bar__fill { height: 100%; background: var(--brand); border-radius: 99px; }
.mock-bar__n { color: var(--color-text-muted); text-align: right; }

.mock-stats { display: flex; gap: 1.5rem; margin-top: 1rem; font-size: 0.75rem; color: var(--color-text-muted); }
.mock-stats strong { display: block; font-size: 1.25rem; color: var(--color-text); }

/* retro */
.mock-retro { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.mock-zone { background: var(--color-bg); border: 1px dashed var(--color-border-light); border-radius: var(--radius); padding: 0.6rem; min-height: 11rem; }
.mock-zone__h { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--color-text-muted); margin: 0 0 0.5rem; }
.mock-note { font-size: 0.72rem; line-height: 1.35; color: #1b1b1b; padding: 0.5rem 0.55rem; border-radius: 0.35rem; margin-bottom: 0.5rem; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.mock-note--y { background: #fde68a; }
.mock-note--g { background: #bbf7d0; }
.mock-note--p { background: #fbcfe8; }
.mock-note--b { background: #bfdbfe; }
.mock-note--hide { filter: blur(3.5px); user-select: none; }
.mock-note__r { display: block; margin-top: 0.3rem; font-size: 0.65rem; }

/* integrations */
.mock-issues { display: grid; gap: 0.5rem; }
.mock-issue { display: grid; grid-template-columns: auto 1fr auto; gap: 0.7rem; align-items: center; padding: 0.55rem 0.7rem; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg); font-size: 0.8rem; }
.mock-issue__ref { font-weight: 700; color: var(--color-text-secondary); font-size: 0.72rem; }
.mock-issue__pts { min-width: 1.6rem; text-align: center; padding: 0.1rem 0.45rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.72rem; }
.mock-issue__sent { font-size: 0.65rem; color: var(--brand); font-weight: 600; }

/* hero layout */
.hero__mock { max-width: 760px; margin: 3rem auto 0; }
.hero__mock .mock__body { display: grid; grid-template-columns: 1.15fr 1fr; gap: 1.5rem; }
@media (max-width: 720px) { .hero__mock .mock__body { grid-template-columns: 1fr; } }


/* feature row used on the home page */
.feature-row { padding: 4.5rem 0; border-top: 1px solid var(--color-border); }
.feature-row__inner { display: grid; grid-template-columns: 1fr 1.1fr; gap: 3.5rem; align-items: center; }
.feature-row--reverse .feature-row__inner > :first-child { order: 2; }
.feature-row__video { margin: 0; position: relative; }
.feature-row__video[data-zoom] { cursor: zoom-in; }
.feature-row__video[data-zoom]:focus-visible { outline: 2px solid var(--brand); outline-offset: 4px; border-radius: 14px; }
.zoom-badge { position: absolute; right: 12px; bottom: 12px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(0, 0, 0, 0.55); color: #fff; backdrop-filter: blur(4px); transition: transform 0.15s; pointer-events: none; }
.zoom-badge svg { width: 18px; height: 18px; }
.feature-row__video:hover .zoom-badge, .feature-row__video:focus-visible .zoom-badge { transform: scale(1.12); }

/* the picture or video opened large (js/lightbox.js) */
.lightbox { margin: auto; border: 0; padding: 0; background: transparent; width: min(96vw, 1600px); max-width: none; max-height: 92vh; overflow: visible; }
.lightbox::backdrop { background: rgba(0, 0, 0, 0.82); backdrop-filter: blur(4px); }
.lightbox video, .lightbox img { display: block; width: 100%; height: auto; max-height: 88vh; object-fit: contain; border-radius: 12px; background: #000; }
.lightbox__close { position: fixed; top: 16px; right: 20px; width: 44px; height: 44px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 28px; line-height: 1; cursor: pointer; }
.lightbox__close:hover, .lightbox__close:focus-visible { background: rgba(255, 255, 255, 0.28); }
.feature-row__video img,
.feature-row__video video { display: block; width: 100%; height: auto; border-radius: 14px; border: 1px solid var(--color-border); box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.25); background: var(--color-bg-muted); }
.feature-row__list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: 1.1rem; }
.feature-row__list li { padding-left: 1.5rem; position: relative; }
.feature-row__list li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 700; }
.feature-row__list strong { display: block; margin-bottom: 0.15rem; }
.feature-row__list span { color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.55; }
@media (max-width: 860px) {
    .feature-row__inner { grid-template-columns: 1fr; gap: 2rem; }
    .feature-row--reverse .feature-row__inner > :first-child { order: 0; }
    /* MCP page: keep the "Security" heading above its bullet list on mobile too */
    .mcp-security .feature-row__inner > :first-child { order: 2; }
}

/* ── Light/dark theme compare slider ───────────────────────────────────── */
.img-compare {
    position: relative;
    max-width: 360px;
    margin: 0 auto;
    overflow: hidden;
    border-radius: 14px;
    border: 1px solid var(--color-border);
    box-shadow: 0 24px 60px -20px rgba(15, 23, 42, 0.25);
    cursor: ew-resize;
    user-select: none;
    touch-action: none;
}

.img-compare__layer { display: block; width: 100%; height: 100%; object-fit: cover; }
.img-compare__layer--after { position: relative; }
.img-compare__layer--before { position: absolute; inset: 0; clip-path: inset(0 50% 0 0); }

.img-compare__divider {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: #fff;
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.15);
    transform: translateX(-50%);
    pointer-events: none;
}

.img-compare__handle {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 2.75rem;
    height: 2.75rem;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    background: #fff;
    border: 1px solid var(--color-border);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #0f172a;
    cursor: ew-resize;
}

.img-compare__handle:active { cursor: grabbing; }
.img-compare__handle i { width: 1.1rem; height: 1.1rem; }

/* features page groups */
.fgroup { padding: 3.5rem 0; border-top: 1px solid var(--color-border); }
.fgroup__head { display: flex; gap: 0.9rem; align-items: center; margin-bottom: 1.75rem; }
.fgroup__icon { width: 2.4rem; height: 2.4rem; border-radius: 0.6rem; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.fgroup__title { font-size: 1.4rem; margin: 0; }
.fgroup__sub { margin: 0.1rem 0 0; color: var(--color-text-muted); font-size: 0.9rem; }
.fgroup__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }

/* pricing */
.pricing-grid--two { grid-template-columns: repeat(2, minmax(0, 360px)); justify-content: center; }
@media (max-width: 800px) { .pricing-grid--two { grid-template-columns: 1fr; } }
.pricing-card__desc { color: var(--color-text-muted); font-size: 0.9rem; margin: 0 0 1rem; }
.pricing-card__soon { font-size: 1.5rem; font-weight: 700; }

/* legal */
.legal { max-width: 760px; margin: 0 auto; }
.legal h1 { font-size: 2.25rem; margin: 0 0 0.5rem; }
.legal h2 { font-size: 1.25rem; margin: 2.25rem 0 0.75rem; }
.legal p, .legal li { color: var(--color-text-secondary); line-height: 1.7; }
.legal p { margin: 0 0 1.15rem; }
.legal p:last-child { margin-bottom: 0; }
.legal ul { list-style: disc; padding-left: 1.3rem; margin: 0 0 1.15rem; display: flex; flex-direction: column; gap: 0.5rem; }
.legal ul:last-child { margin-bottom: 0; }
.legal__updated { color: var(--color-text-muted); font-size: 0.85rem; margin-bottom: 2rem; }

/* Space between the breadcrumb and what follows it (the badge or the title) on inner pages */
.page-hero .breadcrumb { margin-bottom: 1.75rem; }
/* Inner-page heroes: give a button or note room to breathe after the subtitle (the subtitle has no bottom margin). */
.page-hero__subtitle + .hero__actions { margin-top: 2.5rem; }
.page-hero__subtitle + .hero__note { margin-top: 1.25rem; }


/* ══════════════════════════════════════════════════════════════════════════
   Room demo: an interactive copy of the real room, with sample data (public_html/js/room-demo.js)
   Mirrors frontend/src/modules/PlanningPoker/pages/LiveRoomPage.tsx
   ══════════════════════════════════════════════════════════════════════════ */

.rd-wrap { max-width: 1040px; margin: 3rem auto 0; text-align: left; }
.rd-hint { margin: 0.75rem 0 0; font-size: 0.8rem; color: var(--color-text-muted); text-align: center; }

.rd {
    --rd-card: var(--color-bg-card);
    position: relative;
    display: flex;
    height: 720px;
    background: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    font-size: 14px;
    color: var(--color-text);
    line-height: 1.4;
}

.rd *, .rd *::before, .rd *::after { box-sizing: border-box; }
/* :where() gives these resets zero specificity, so every component class below can set its own colour and size */
:where(.rd) button { font: inherit; color: inherit; cursor: pointer; }
:where(.rd) svg { width: 1em; height: 1em; }

.rd--full {
    position: fixed; inset: 0; z-index: 1000; height: 100vh; border-radius: 0; border: 0; margin: 0;
}
body.rd-lock { overflow: hidden; }

.rd__main { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }

/* header */
.rd__header {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem;
    min-height: 3.5rem; padding: 0.5rem 1rem; border-bottom: 1px solid var(--color-border); background: var(--color-bg);
}
.rd__title-wrap { display: flex; align-items: center; gap: 0.25rem; min-width: 0; }
.rd__title { margin: 0; font-size: 0.875rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 40vw; }
.rd__ghost {
    display: inline-flex; align-items: center; justify-content: center; padding: 0.375rem; border: 0; background: none;
    border-radius: 0.375rem; color: var(--color-text-muted);
}
.rd__ghost:hover { background: var(--color-bg-card-hover); color: var(--color-text); }
.rd__ghost svg { width: 1rem; height: 1rem; }

.rd__tabs { display: flex; gap: 2px; padding: 2px; border: 1px solid var(--color-border); border-radius: 0.375rem; background: var(--color-bg-muted); }
.rd__tab {
    display: flex; align-items: center; gap: 0.375rem; padding: 0.25rem 0.625rem; font-size: 0.75rem; border: 0; background: none;
    color: var(--color-text-muted); border-radius: 0.25rem;
}
.rd__tab svg { width: 0.875rem; height: 0.875rem; }
.rd__tab[aria-selected="true"] { background: var(--color-bg); color: var(--color-text); font-weight: 500; box-shadow: 0 1px 2px rgba(0,0,0,.25); }

.rd__actions { display: flex; align-items: center; gap: 0.5rem; }

.rd__btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.375rem; white-space: nowrap;
    padding: 0.375rem 0.75rem; font-size: 0.8125rem; font-weight: 500; border-radius: 0.5rem;
    border: 1px solid var(--color-border-light); background: var(--color-bg); color: var(--color-text);
}
.rd__btn:hover { background: var(--color-bg-card-hover); }
.rd__btn svg { width: 0.875rem; height: 0.875rem; }
.rd__btn--secondary { background: var(--color-bg-card-hover); }
.rd__btn--primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.rd__btn--primary:hover { background: var(--brand); filter: brightness(1.08); }
.rd__btn--lg { padding: 0.55rem 1.4rem; font-size: 0.9rem; border-radius: 0.6rem; }
.rd__btn--sm { padding: 0.25rem 0.625rem; font-size: 0.75rem; }
.rd__btn .rd-ico-green { color: var(--brand); }

.rd__user { position: relative; }
.rd__pop {
    position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: 15rem; padding: 0; border: 1px solid var(--color-border);
    border-radius: 0.625rem; background: var(--color-bg-card); box-shadow: var(--shadow-lg);
}
.rd__pop[hidden] { display: none; }
.rd__pop-row { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.75rem; }
.rd__pop-row + .rd__pop-row { border-top: 1px solid var(--color-border); }
.rd__pop-name { font-weight: 500; }
.rd__pop label { cursor: pointer; }
.rd__pop-opt { display: flex; align-items: center; gap: 0.625rem; width: 100%; padding: 0.5rem 0.75rem; border: 0; background: none; text-align: left; }
.rd__pop-opt:hover { background: var(--color-bg-card-hover); }
.rd__pop-opt small { display: block; color: var(--color-text-muted); font-size: 0.7rem; }
.rd__pop--wide { width: 17rem; left: 0; right: auto; }
.rd__dot { width: 0.9rem; height: 0.9rem; border-radius: 50%; border: 2px solid var(--color-border-light); flex: none; }
.rd__dot--on { border-color: var(--brand); background: radial-gradient(circle, var(--brand) 45%, transparent 50%); }

.rd__switch { position: relative; width: 2rem; height: 1.15rem; border-radius: 99px; border: 0; background: var(--color-border-light); padding: 0; flex: none; }
.rd__switch::after { content: ""; position: absolute; top: 2px; left: 2px; width: calc(1.15rem - 4px); height: calc(1.15rem - 4px); border-radius: 50%; background: #fff; transition: transform .15s; }
.rd__switch[aria-checked="true"] { background: var(--brand); }
.rd__switch[aria-checked="true"]::after { transform: translateX(.85rem); }

/* poker view */
.rd__poker { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.rd__scroll { flex: 1; min-height: 0; overflow: auto; display: flex; background: color-mix(in srgb, var(--color-bg-muted) 55%, var(--color-bg)); }
.rd__table-area { margin: auto; display: flex; flex-direction: column; align-items: center; gap: 0.75rem; padding: 1.5rem 1rem; }
.rd__row { display: flex; justify-content: space-evenly; gap: 0.75rem; }
.rd__mid { display: flex; align-items: center; gap: 1rem; }
.rd__side { display: flex; flex-direction: column; gap: 0.75rem; }

.rd__table {
    width: var(--rd-table-w, 330px);
    display: flex; align-items: center; justify-content: center; height: 8rem; padding: 0 1.5rem;
    border-radius: 2.5rem; background: #065f46; border: 6px solid rgba(2, 44, 34, .3);
    box-shadow: inset 0 2px 4px rgba(0,0,0,.25);
}
.rd__table p { margin: 0; color: rgba(255,255,255,.9); font-size: 0.95rem; font-weight: 500; text-align: center; }

.rd__seat { display: flex; flex-direction: column; align-items: center; gap: 0.375rem; }
.rd__seat-name { max-width: 5rem; font-size: 0.75rem; font-weight: 500; line-height: 1.15; text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rd__card3d { position: relative; width: 2.5rem; height: 3.5rem; perspective: 600px; }
.rd__flip { position: relative; width: 100%; height: 100%; transition: transform .7s ease-in-out; transform-style: preserve-3d; }
.rd__flip--on { transform: rotateY(180deg); }
.rd__face {
    position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; border-radius: 0.5rem;
    font-size: 1.1rem; font-weight: 700; box-shadow: 0 1px 2px rgba(0,0,0,.2); backface-visibility: hidden; -webkit-backface-visibility: hidden;
}
.rd__back { background: var(--color-bg-card-hover); color: var(--color-text-muted); border: 2px dashed var(--color-border-light); transition: background .2s; }
.rd__back--voted { background: #10b981; color: #fff; border-color: transparent; }
.rd__front { background: var(--color-bg); border: 2px solid #059669; color: #34d399; transform: rotateY(180deg); }
[data-theme="light"] .rd__front { color: #047857; }
.rd__mine { display: flex; align-items: center; justify-content: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: #0f172a; color: #fff; font-size: 0.8rem; font-weight: 700; }
.rd__check { width: 1.25rem; height: 1.25rem; }
.rd__badge {
    position: absolute; z-index: 5; display: flex; width: 1rem; height: 1rem; padding: 2px; border-radius: 50%; background: var(--color-bg);
}
.rd__badge svg { width: 100%; height: 100%; }
.rd__badge--host { top: -0.5rem; right: -0.5rem; color: #f59e0b; }
.rd__badge--mod { top: -0.5rem; left: -0.5rem; color: #059669; }
.rd__badge--spec { bottom: -0.5rem; right: -0.5rem; color: var(--color-text-muted); }

/* voting band */
.rd__band {
    display: flex; flex-direction: column; align-items: center; gap: 1rem; padding: 1rem 1rem 1.25rem;
    border-top: 1px solid var(--color-border); background: var(--color-bg); flex: none;
}
.rd__task { margin: 0; font-size: 0.875rem; color: var(--color-text-muted); }
.rd__task strong { font-weight: 500; color: var(--color-text); }
.rd__deck { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; max-width: 48rem; }
.rd__pick {
    display: flex; align-items: center; justify-content: center; width: 2.5rem; height: 4rem; border-radius: 0.5rem;
    border: 2px solid var(--color-border-light); background: var(--color-bg-card); color: #03c560; font-size: 1rem; font-weight: 700;
    transition: all .15s;
}
.rd__pick:hover { transform: translateY(-4px); }
.rd__pick--on { background: #03c560; border-color: #03c560; color: #fff; transform: translateY(-8px) scale(1.05); box-shadow: 0 8px 18px rgba(3,197,96,.25); }
.rd__pick--on:hover { transform: translateY(-8px) scale(1.05); }

.rd__results { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2.5rem; }
.rd__bars { display: flex; align-items: flex-end; gap: 12px; }
.rd__bar { display: flex; flex-direction: column; align-items: center; gap: 0.35rem; }
.rd__bar-track { position: relative; width: 4px; height: 52px; border-radius: 99px; background: color-mix(in srgb, var(--color-text-muted) 40%, transparent); overflow: hidden; }
.rd__bar-fill { position: absolute; bottom: 0; left: 0; right: 0; background: #10b981; transition: height .7s; }
.rd__bar-card { display: flex; align-items: center; justify-content: center; width: 36px; height: 42px; border-radius: 0.4rem; border: 2px solid color-mix(in srgb, var(--color-text-muted) 60%, transparent); background: var(--color-bg); color: var(--color-text-muted); font-size: 0.95rem; font-weight: 700; }
.rd__bar-n { font-size: 10px; color: var(--color-text-muted); }
.rd__stats { display: flex; flex-direction: row; align-items: center; gap: 1.5rem; text-align: center; }
.rd__stat-label { margin: 0; font-size: 0.75rem; font-weight: 600; color: var(--color-text-muted); }
.rd__stat-value { margin: 0; font-size: 1.5rem; font-weight: 700; }
.rd__ring { position: relative; width: 5rem; height: 5rem; }
.rd__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.rd__ring-bg { stroke: rgba(16,185,129,.18); }
.rd__ring-fg { stroke: #10b981; transition: stroke-dasharray .7s, stroke .7s; }
/* Agreement: under 50% red, 50–75% amber, 75% and up green. */
.rd__ring--low .rd__ring-bg { stroke: rgba(239,68,68,.18); }
.rd__ring--low .rd__ring-fg { stroke: #ef4444; }
.rd__ring--mid .rd__ring-bg { stroke: rgba(245,158,11,.2); }
.rd__ring--mid .rd__ring-fg { stroke: #f59e0b; }
.rd__ring span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; color: var(--color-text-muted); }
.rd__accept { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.5rem; }
.rd__accept > span { font-size: 0.875rem; color: var(--color-text-muted); }

.rd__done { text-align: center; padding: 0.5rem 1rem; }
.rd__done h3 { margin: 0 0 0.25rem; font-size: 1rem; }
.rd__done p { margin: 0 0 0.9rem; color: var(--color-text-muted); font-size: 0.85rem; }
.rd__done .rd__row { gap: 0.5rem; justify-content: center; }

/* tasks panel */
.rd__tasks { position: relative; display: flex; flex-direction: column; width: 17.5rem; flex: none; border-left: 1px solid var(--color-border); background: var(--color-bg); }
.rd__tasks[hidden] { display: none; }
.rd__tasks-head { display: flex; align-items: center; justify-content: space-between; height: 3.5rem; padding: 0 1rem; border-bottom: 1px solid var(--color-border); flex: none; }
.rd__tasks-head p { margin: 0; font-size: 0.875rem; font-weight: 600; }
.rd__tasks-list { flex: 1; min-height: 0; overflow: auto; }
.rd__task-row { position: relative; display: block; width: 100%; padding: 0.75rem 1rem; border: 0; border-bottom: 1px solid var(--color-border); background: none; text-align: left; }
.rd__task-row:hover { background: var(--color-bg-card-hover); }
.rd__task-row--on { background: var(--color-bg-card-hover); }
.rd__task-row--on::before { content: ""; position: absolute; left: -7px; top: 50%; width: 12px; height: 12px; background: var(--color-bg-card-hover); border-left: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); transform: translateY(-50%) rotate(45deg); }
.rd__task-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 0.5rem; }
.rd__task-title { font-size: 0.875rem; font-weight: 600; }
.rd__task-est { display: inline-flex; align-items: center; gap: 0.2rem; flex: none; font-size: 0.75rem; font-weight: 600; color: var(--color-text-muted); }
.rd__task-est svg { width: 0.85rem; height: 0.85rem; }
.rd__task-ref { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.25rem; font-size: 0.75rem; color: #34d399; }
[data-theme="light"] .rd__task-ref { color: #047857; }
.rd__task-ref svg { width: 0.85rem; height: 0.85rem; }
.rd__task-now { display: inline-flex; align-items: center; gap: 0.25rem; margin-top: 0.4rem; font-size: 0.75rem; font-weight: 500; color: #059669; }
.rd__task-now svg { width: 0.85rem; height: 0.85rem; }

/* retro */
.rd__retro { display: none; flex-direction: column; flex: 1; min-height: 0; }
.rd--retro .rd__retro { display: flex; }
.rd--retro .rd__poker { display: none; }
.rd__retro-bar { display: flex; align-items: center; justify-content: space-between; gap: 0.5rem; padding: 0.5rem 1rem; border-bottom: 1px solid var(--color-border); background: var(--color-bg); font-size: 0.8rem; color: var(--color-text-muted); }
.rd__retro-board { flex: 1; min-height: 0; overflow: auto; padding: 1rem; background: color-mix(in srgb, var(--color-bg-muted) 55%, var(--color-bg)); }
.rd__zones { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; min-height: 100%; }
.rd__zone { padding: 0.6rem; border: 1px dashed var(--color-border-light); border-radius: 0.625rem; background: var(--color-bg); }
.rd__zone h4 { margin: 0 0 0.6rem; font-size: 0.7rem; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text-muted); }
.rd__note { margin-bottom: 0.6rem; padding: 0.6rem 0.65rem; border-radius: 0.375rem; color: #1b1b1b; font-size: 0.8rem; line-height: 1.35; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.rd__note--0 { background: #bbf7d0; } .rd__note--1 { background: #fde68a; } .rd__note--2 { background: #bfdbfe; } .rd__note--3 { background: #fbcfe8; }
.rd__note-text { display: block; transition: filter .3s; }
.rd__note--hidden .rd__note-text { filter: blur(4px); user-select: none; }
.rd__note-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 0.4rem; font-size: 0.68rem; color: rgba(0,0,0,.6); }
.rd__react { display: inline-flex; align-items: center; gap: 0.2rem; padding: 0.1rem 0.4rem; border: 1px solid rgba(0,0,0,.2); border-radius: 99px; background: rgba(255,255,255,.55); font-size: 0.7rem; color: #1b1b1b; }
.rd__react--on { background: #fff; border-color: #03c560; }
.rd__note--hidden .rd__react { opacity: .35; pointer-events: none; }

.rd__expand { position: absolute; top: 0.5rem; right: 0.5rem; z-index: 30; }

@media (max-width: 860px) {
    .rd { height: 560px; }
    .rd__tasks { position: absolute; top: 0; right: 0; bottom: 0; z-index: 25; width: min(17.5rem, 85%); box-shadow: -8px 0 24px rgba(0,0,0,.3); }
    .rd__btn-label { display: none; }
    .rd__zones { grid-template-columns: 1fr; }
    .rd__title { max-width: 30vw; }
}
@media (max-width: 520px) {
    .rd__header { padding: 0.5rem; }
    .rd__deck { gap: 0.35rem; }
    .rd__pick { width: 2.1rem; height: 3.4rem; font-size: 0.9rem; }
    .rd__results { gap: 1.25rem; }
}
.rd [hidden] { display: none !important; }
.rd h3 { font-family: inherit; }
.rd a.rd__btn { text-decoration: none; }

/* The Reveal button is the app's default (neutral) button: dark in the light theme, light in the dark theme. */
.rd__btn--reveal { background: var(--color-text); border-color: var(--color-text); color: var(--color-bg); }
.rd__btn--reveal:hover { background: var(--color-text); filter: brightness(.9); }


/* Small screens: a smaller table and cards, and a card that grows with its content so nothing scrolls inside it */
@media (max-width: 860px) {
    .rd:not(.rd--full) { height: auto; min-height: 0; }
    .rd:not(.rd--full) .rd__scroll { overflow: visible; }
    .rd { --rd-table-w: clamp(140px, 44vw, 260px); }

    .rd__table-area { gap: 0.5rem; padding: 1rem 0.5rem; }
    .rd__row, .rd__mid { gap: 0.5rem; }
    .rd__side { gap: 0.5rem; }
    .rd__table { height: 4.5rem; padding: 0 0.6rem; border-width: 4px; border-radius: 1.75rem; }
    .rd__table p { font-size: 0.75rem; }
    .rd__card3d { width: 2rem; height: 2.8rem; }
    .rd__face { font-size: 0.9rem; border-radius: 0.4rem; }
    .rd__mine { width: 1.4rem; height: 1.4rem; font-size: 0.7rem; }
    .rd__check { width: 1rem; height: 1rem; }
    .rd__seat { gap: 0.2rem; }
    .rd__seat-name { max-width: 3.6rem; font-size: 0.65rem; }
    .rd__badge { width: 0.8rem; height: 0.8rem; }

    .rd__band { gap: 0.6rem; padding: 0.75rem 0.5rem 1rem; }
    .rd__task { font-size: 0.78rem; text-align: center; }
    .rd__pick { width: 2rem; height: 3rem; font-size: 0.85rem; }
    .rd__deck { gap: 0.3rem; }
    .rd__results { gap: 1rem; }
    .rd__bar-track { height: 40px; }
    .rd__bar-card { width: 30px; height: 36px; font-size: 0.85rem; }
    .rd__stats { gap: 1rem; }
    .rd__stat-value { font-size: 1.2rem; }
    .rd__ring { width: 4rem; height: 4rem; }
    .rd__ring span { font-size: 0.7rem; }
    .rd__retro-board { padding: 0.5rem; }
    .rd__zones { min-height: 0; }
}

/* One plan: a single centred card */
.pricing-grid--one { grid-template-columns: minmax(0, 400px); justify-content: center; }


/* Contact form */
.contact { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: 2rem; max-width: 960px; margin: 0 auto; align-items: start; }
.contact__card { padding: 2rem; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-bg-card); }
.contact__side h2 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.contact__side p { margin: 0 0 1rem; color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.6; }
.contact__mail { display: inline-flex; align-items: center; gap: 0.5rem; font-weight: 600; word-break: break-all; }
.contact__mail svg { width: 1rem; height: 1rem; color: var(--brand); }
.contact__reply { margin-top: 1rem; font-size: 0.8rem !important; }
.contact__done { grid-column: 1 / -1; text-align: center; padding: 3rem 2rem; }
.contact__done h2 { margin: 1rem 0 0.5rem; }
.contact__done p { margin: 0 0 1.5rem; color: var(--color-text-muted); }
.contact__done-icon { display: inline-grid; place-items: center; width: 3rem; height: 3rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }
.contact__done-icon svg { width: 1.4rem; height: 1.4rem; }

.form { display: grid; gap: 1.1rem; }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form__field { display: grid; gap: 0.4rem; }
.form__field label { font-size: 0.85rem; font-weight: 600; }
.form input[type="text"], .form input[type="email"], .form select, .form textarea {
    width: 100%; padding: 0.7rem 0.85rem; font: inherit; font-size: 0.95rem; color: var(--color-text);
    background: var(--color-bg); border: 1px solid var(--color-border-light); border-radius: var(--radius);
}
.form textarea { resize: vertical; min-height: 9rem; line-height: 1.5; }
.form input:focus, .form select:focus, .form textarea:focus { outline: 2px solid var(--brand); outline-offset: 1px; border-color: var(--brand); }
.form [aria-invalid="true"] { border-color: #ef4444; }
.form__error { margin: 0; font-size: 0.8rem; color: #ef4444; }
.form__alert { margin: 0; padding: 0.75rem 1rem; border-radius: var(--radius); background: rgba(239, 68, 68, .1); border: 1px solid rgba(239, 68, 68, .35); color: #ef4444; font-size: 0.9rem; }
.form__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; }
.form__note { margin: 0; font-size: 0.78rem; color: var(--color-text-muted); flex: 1; min-width: 14rem; }
.form__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 820px) {
    .contact { grid-template-columns: 1fr; }
    .form__row { grid-template-columns: 1fr; }
    .contact__card { padding: 1.25rem; }
}


/* Header menu: every item is a pill; the page you are on is highlighted in the brand colour */
.header__nav { gap: 0.25rem; }
.header__link {
    padding: 0.55rem 0.9rem;
    border-radius: 0.5rem;
    transition: color 0.15s, background-color 0.15s;
}
.header__link:hover { color: var(--color-text); background: var(--color-bg-card-hover); }
.header__link.active,
.header__link.active:hover {
    color: var(--brand);
    background: var(--brand-soft);
    font-weight: 600;
}

@media (max-width: 860px) {
    .header__mobile-link.active {
        color: var(--brand);
        font-weight: 600;
        padding-left: 0.75rem;
        border-left: 3px solid var(--brand);
        background: var(--brand-soft);
    }
}

.rd__stat-exact { margin: 0.1rem 0 0; font-size: 0.7rem; font-weight: 500; color: var(--color-text-muted); }

/* Tasks panel footer: add a task / import */
.rd__tasks-foot { display: flex; gap: 0.5rem; padding: 0.75rem; border-top: 1px solid var(--color-border); flex: none; }
.rd--retro .rd__tasks-foot { display: none; }
.rd__input {
    flex: 1; min-width: 0; padding: 0.4rem 0.65rem; font: inherit; font-size: 0.85rem; color: var(--color-text);
    background: var(--color-bg); border: 1px solid var(--color-border-light); border-radius: 0.5rem;
}
.rd__input:focus { outline: 2px solid var(--brand); outline-offset: 0; border-color: var(--brand); }
.rd__btn--icon { padding: 0; width: 2.1rem; height: 2.1rem; flex: none; }
.rd__btn--icon svg { width: 1rem; height: 1rem; }
.rd__btn:disabled { opacity: .45; cursor: not-allowed; }
.rd__btn:disabled:hover { background: var(--color-bg); }

/* Import modal: the three tools as logo buttons */
.rd__modal { position: absolute; inset: 0; z-index: 60; display: flex; align-items: center; justify-content: center; padding: 1rem; background: rgba(0, 0, 0, .55); }
.rd__dialog { width: min(100%, 360px); padding: 1.1rem 1.25rem 1.4rem; border: 1px solid var(--color-border); border-radius: 0.9rem; background: var(--color-bg-card); box-shadow: var(--shadow-lg); }
.rd__dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.rd__dialog-head h4 { margin: 0; font-size: 0.95rem; font-weight: 600; }
.rd__logos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; margin-top: 1.1rem; }
.rd__logo {
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.55rem; min-height: 6.25rem; padding: 0.75rem 0.25rem;
    border: 1px solid var(--color-border-light); border-radius: 0.75rem;
    background: var(--color-bg); transition: border-color .15s, transform .15s, box-shadow .15s;
}
.rd__logo-name { font-size: 0.78rem; font-weight: 600; color: var(--color-text-secondary); }
.rd__logo svg { width: 2.4rem; height: 2.4rem; }
.rd__logo:hover, .rd__logo:focus-visible { border-color: var(--brand); transform: translateY(-2px); box-shadow: 0 6px 16px rgba(0,0,0,.18); outline: none; }




/* Analytics consent bar */
.consent {
    position: fixed; left: 1rem; right: 1rem; bottom: 1rem; z-index: 900; max-width: 34rem; margin-left: auto; margin-right: auto;
    display: flex; flex-wrap: wrap; align-items: center; gap: 0.75rem 1rem; padding: 0.9rem 1rem;
    background: var(--color-bg-card); color: var(--color-text); border: 1px solid var(--color-border-light);
    border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); font-size: 0.82rem; line-height: 1.5;
}
.consent[hidden] { display: none; }
.consent__text { margin: 0; flex: 1; min-width: 14rem; color: var(--color-text-secondary); }
.consent__text a { text-decoration: underline; }
.consent__actions { display: flex; gap: 0.5rem; }
@media (min-width: 900px) { .consent { left: 1.5rem; right: auto; margin: 0; } }

/* ══════════════════════════════════════════════════════════════════════════
   Blog
   ══════════════════════════════════════════════════════════════════════════ */

.blog-cats { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.5rem; margin: 0 0 2.5rem; }
.blog-cats__item {
    display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.45rem 0.9rem; border: 1px solid var(--color-border);
    border-radius: 99px; font-size: 0.85rem; font-weight: 500; color: var(--color-text-secondary); background: var(--color-bg);
    transition: color .15s, background-color .15s, border-color .15s;
}
.blog-cats__item svg { width: 0.9rem; height: 0.9rem; }
.blog-cats__item:hover { color: var(--color-text); background: var(--color-bg-card-hover); }
.blog-cats__item.active { color: var(--brand); background: var(--brand-soft); border-color: var(--brand-line); font-weight: 600; }
.blog-cats__count { font-size: 0.72rem; opacity: .7; }

.blog-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.5rem; font-size: 0.78rem; color: var(--color-text-muted); }
.blog-tag {
    display: inline-block; padding: 0.15rem 0.6rem; border-radius: 99px; background: var(--brand-soft); color: var(--brand);
    font-weight: 600; font-size: 0.72rem; letter-spacing: .01em;
}

.blog-card {
    display: flex; flex-direction: column; border: 1px solid var(--color-border); border-radius: var(--radius-xl);
    background: var(--color-bg-card); overflow: hidden; color: inherit; transition: transform .18s, border-color .18s, box-shadow .18s;
}
.blog-card:hover { transform: translateY(-3px); border-color: var(--color-border-light); box-shadow: var(--shadow-lg); }
.blog-card__media { aspect-ratio: 1200 / 630; overflow: hidden; background: var(--color-bg-muted); }
.blog-card__body { display: flex; flex-direction: column; gap: 0.6rem; padding: 1.25rem 1.35rem 1.4rem; flex: 1; }
.blog-card__title { margin: 0; font-size: 1.15rem; line-height: 1.35; font-weight: 700; }
.blog-card__desc { margin: 0; color: var(--color-text-muted); font-size: 0.9rem; line-height: 1.6; }
.blog-card__more { margin-top: auto; padding-top: 0.5rem; font-size: 0.85rem; font-weight: 600; color: var(--brand); }

.blog-card--featured { flex-direction: row; margin-bottom: 2rem; }
.blog-card--featured .blog-card__media { flex: 1.15; aspect-ratio: auto; min-height: 280px; }
.blog-card--featured .blog-card__body { flex: 1; justify-content: center; padding: 2rem; gap: 0.85rem; }
/* Cover-less cards (cover:false): no media column, text fills the card. */
.blog-card--nomedia .blog-card__media { display: none; }
.blog-card--featured.blog-card--nomedia .blog-card__body { align-items: flex-start; }
.blog-card--featured.blog-card--nomedia .blog-card__desc { max-width: 70ch; }
.blog-card--featured .blog-card__title { font-size: 1.75rem; line-height: 1.25; letter-spacing: -0.02em; }
.blog-card--featured .blog-card__desc { font-size: 1rem; }
@media (max-width: 820px) {
    .blog-card--featured { flex-direction: column; }
    .blog-card--featured .blog-card__media { min-height: 0; aspect-ratio: 1200 / 630; }
    .blog-card--featured .blog-card__body { padding: 1.25rem 1.35rem 1.4rem; }
    .blog-card--featured .blog-card__title { font-size: 1.35rem; }
}

.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1.5rem; }
.blog-grid--two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 700px) { .blog-grid--two { grid-template-columns: 1fr; } }

/* Cover: the picture, or a coloured block with the category icon when a post has none */
.blog-cover { display: block; width: 100%; height: 100%; object-fit: cover; }
.blog-cover--ph { display: grid; place-items: center; min-height: 100%; }
.blog-cover--ph svg { width: 3.5rem; height: 3.5rem; color: rgba(255, 255, 255, .92); stroke-width: 1.5; }
.blog-cover--estimation    { background: linear-gradient(135deg, #059669, #0d9488 55%, #0891b2); }
.blog-cover--retrospectives{ background: linear-gradient(135deg, #7c3aed, #c026d3 60%, #db2777); }
.blog-cover--teams         { background: linear-gradient(135deg, #2563eb, #4f46e5 60%, #7c3aed); }
.blog-cover--integrations  { background: linear-gradient(135deg, #ea580c, #e11d48 60%, #be185d); }
.blog-cover--product       { background: linear-gradient(135deg, #334155, #0f766e 60%, #059669); }

.blog-pager { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 2.5rem; }
.blog-pager__now { font-size: 0.85rem; color: var(--color-text-muted); }
.blog-empty { text-align: center; color: var(--color-text-muted); padding: 3rem 0; }

/* A post */
.post { max-width: 760px; margin: 0 auto; }
.post__head { margin-bottom: 1.75rem; }
.post__title { margin: 0.9rem 0 0.75rem; font-size: 2.6rem; line-height: 1.15; letter-spacing: -0.03em; font-weight: 800; }
.post__lead { margin: 0 0 1rem; font-size: 1.15rem; line-height: 1.65; color: var(--color-text-secondary); }
.post__author { margin: 0; font-size: 0.85rem; color: var(--color-text-muted); }
.post__cover { margin: 0 0 2.25rem; border-radius: var(--radius-xl); overflow: hidden; border: 1px solid var(--color-border); aspect-ratio: 1200 / 630; background: var(--color-bg-muted); }
.post__hero-video { display: block; width: 100%; height: 100%; object-fit: cover; background: #000; }
.video-watch__player { overflow: hidden; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: #000; }
.video-watch__player video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; }
.video-watch__summary { max-width: 66ch; margin: 1.25rem auto 0; color: var(--color-text-secondary); line-height: 1.7; }

.post__body { font-size: 1.05rem; line-height: 1.8; color: var(--color-text-secondary); }
.post__body > :first-child { margin-top: 0; }
.post__body h2 { margin: 2.5rem 0 0.75rem; font-size: 1.6rem; line-height: 1.3; letter-spacing: -0.02em; color: var(--color-text); }
.post__body h3 { margin: 2rem 0 0.5rem; font-size: 1.2rem; line-height: 1.4; color: var(--color-text); }
.post__body p { margin: 0 0 1.15rem; }
.post__body strong { color: var(--color-text); }
.post__body a { color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.post__body ul, .post__body ol { margin: 0 0 1.25rem; padding-left: 1.4rem; }
.post__body li { margin-bottom: 0.45rem; }
.post__body li::marker { color: var(--brand); }
.post__body code { padding: 0.12rem 0.38rem; border-radius: 0.35rem; background: var(--code-bg); color: var(--code-color); font-size: 0.9em; }
.post__body pre { margin: 0 0 1.4rem; padding: 1rem 1.15rem; overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); background: var(--color-bg-card); }
.post__body pre code { padding: 0; background: none; }
.post__body blockquote { margin: 1.75rem 0; padding: 0.25rem 0 0.25rem 1.25rem; border-left: 3px solid var(--brand); }
.post__body blockquote p { margin: 0; font-size: 1.15rem; line-height: 1.6; color: var(--color-text); font-style: italic; }
.post__body hr { margin: 2.5rem 0; border: 0; border-top: 1px solid var(--color-border); }
.post-figure { margin: 2rem 0; }
.post-figure img { display: block; width: 100%; height: auto; border-radius: var(--radius-lg); border: 1px solid var(--color-border); }
.post-figure figcaption { margin-top: 0.6rem; text-align: center; font-size: 0.82rem; color: var(--color-text-muted); }

.post__cta { margin: 3rem 0; padding: 2rem; text-align: center; border: 1px solid var(--brand-line); border-radius: var(--radius-xl); background: var(--brand-soft); }
.post__cta h2 { margin: 0 0 0.4rem; font-size: 1.4rem; }
.post__cta p { margin: 0 0 1.25rem; color: var(--color-text-secondary); }
.post__related-title { margin: 3rem 0 1.25rem; font-size: 1.3rem; }

@media (max-width: 640px) {
    .post__title { font-size: 1.9rem; }
    .post__lead { font-size: 1.05rem; }
    .post__body { font-size: 1rem; }
}

.post-table { margin: 1.75rem 0; overflow-x: auto; border: 1px solid var(--color-border); border-radius: var(--radius); }
.post-table table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.post-table th, .post-table td { padding: 0.7rem 1rem; text-align: left; border-bottom: 1px solid var(--color-border); }
.post-table th { background: var(--color-bg-card); color: var(--color-text); font-weight: 600; }
.post-table tr:last-child td { border-bottom: 0; }

/* Phones: only the logo in the header (the name stays for screen readers through the link's aria-label) */
@media (max-width: 768px) {
    .header__logo .brand { display: none; }
}


/* ── Used by ─────────────────────────────────────────────────────────────── */
.trusted { border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); padding: 2rem 0; overflow: hidden; }
.trusted__title { text-align: center; font-size: 0.85rem; font-weight: 500; color: var(--color-text-muted); margin-bottom: 1.5rem; }
.trusted__marquee {
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.trusted__track { display: flex; width: max-content; animation: trusted-scroll 70s linear infinite; }
.trusted__marquee:hover .trusted__track { animation-play-state: paused; }
.trusted__list { display: flex; align-items: center; gap: 1rem; padding-right: 1rem; list-style: none; margin: 0; }
/* A light chip behind each logo: the brands' own colours read on it in both themes. */
.trusted__logo { display: flex; align-items: center; justify-content: center; min-width: 6rem; height: 3.5rem; padding: 0 1.25rem; border-radius: 0.6rem; background: #fff; flex: none; }
.trusted__logo img { height: 2.1rem; width: auto; max-width: 11rem; object-fit: contain; }
@keyframes trusted-scroll { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
    .trusted__track { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
    .trusted__list[aria-hidden="true"] { display: none; }
    .trusted__list { flex-wrap: wrap; justify-content: center; padding-right: 0; }
}


/* The soft glow behind these sections is wider than a phone: without this it makes the page scroll sideways (it is invisible, so nothing seems to overflow). */
.page-hero,
.cta-section { overflow: hidden; }

/* ── Signed-in account in the header (js/auth-status.js) ─────────────────── */
.header [hidden] { display: none !important; }
.header__guest { display: contents; }
.header__mobile-actions > [data-auth-guest], .header__mobile-actions > [data-auth-user] { display: grid; gap: 0.5rem; }
.header__account-btn { gap: 0.5rem; border: 1px solid var(--color-border); }
.header__avatar { width: 1.5rem; height: 1.5rem; border-radius: 50%; display: grid; place-items: center; overflow: hidden; background: var(--color-bg-muted); font-size: 0.7rem; font-weight: 700; text-transform: uppercase; flex-shrink: 0; }
.header__avatar img { width: 100%; height: 100%; object-fit: cover; }
.header__account-name { max-width: 9rem; overflow: hidden; text-overflow: ellipsis; }
.header__account .dropdown__menu { right: 0; left: auto; }
a.header__menu-item { display: flex; align-items: center; gap: 0.6rem; }
.header__menu-item svg { width: 16px; height: 16px; flex-shrink: 0; opacity: 0.7; }
@media (max-width: 900px) { .header__account-name { display: none; } }
.header__chevron { width: 16px; height: 16px; opacity: 0.6; transition: transform 0.15s; }
.header__account.open .header__chevron { transform: rotate(180deg); }

/* ══════════════════════════════════════════════════════════════════════════
   Bot Replayer: personas strip, WhatsApp-style mockups, pricing toggle
   ══════════════════════════════════════════════════════════════════════════ */

/* ── Personas strip (home page) ──────────────────────────────────────────── */
.personas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; margin-top: 2rem; }
.persona { text-align: center; padding: 1.5rem 1.25rem; }
.persona__icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 3.25rem; height: 3.25rem; border-radius: 50%;
    background: var(--brand-soft); color: var(--brand); margin-bottom: 1.1rem;
}
.persona__icon svg, .persona__icon i { width: 24px; height: 24px; }
.persona__title { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.5rem; }
.persona__desc { font-size: 0.925rem; color: var(--color-text-secondary); line-height: 1.55; }
@media (max-width: 900px) { .personas { grid-template-columns: repeat(2, 1fr); } }

/* ── WhatsApp-style chat mockup (mock_whatsapp_chat, mock_video_export, mock_share_link) ── */
.mock-wa { text-align: left; }
.mock-wa__bar { display: flex; align-items: center; gap: 0.6rem; padding-bottom: 0.9rem; margin-bottom: 0.9rem; border-bottom: 1px solid var(--color-border); }
.mock-wa__avatar {
    width: 2rem; height: 2rem; border-radius: 50%; background: var(--brand); color: var(--brand-ink);
    display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.mock-wa__name { display: inline-flex; align-items: center; gap: 0.3rem; font-weight: 600; font-size: 0.9rem; }
.mock-wa__verified { width: 15px; height: 15px; color: var(--brand); }
.mock-wa__body { display: flex; flex-direction: column; gap: 0.5rem; }
.mock-wa__row { display: flex; }
.mock-wa__row--bot { justify-content: flex-start; }
.mock-wa__row--user { justify-content: flex-end; }
.mock-wa__bubble {
    max-width: 80%; padding: 0.5rem 0.75rem; border-radius: 0.7rem; font-size: 0.8rem; line-height: 1.4;
}
.mock-wa__bubble--bot { background: var(--color-bg-card-hover); border-top-left-radius: 0.2rem; }
.mock-wa__bubble--user { background: var(--brand-soft); color: var(--color-text); border-top-right-radius: 0.2rem; }
.mock-wa__bubble--typing { display: inline-flex; gap: 0.25rem; padding: 0.65rem 0.9rem; }
.mock-wa__bubble--typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--color-text-muted); animation: mock-wa-typing 1.2s infinite ease-in-out; }
.mock-wa__bubble--typing span:nth-child(2) { animation-delay: 0.2s; }
.mock-wa__bubble--typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes mock-wa-typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
.mock-wa__quick { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-top: 0.4rem; }
.mock-wa__quick-btn {
    padding: 0.4rem 0.8rem; border-radius: 999px; border: 1px solid var(--brand-line);
    color: var(--brand); font-size: 0.75rem; font-weight: 600; background: var(--brand-soft);
}
@media (prefers-reduced-motion: reduce) { .mock-wa__bubble--typing span { animation: none; } }

/* ── Video export mockup ─────────────────────────────────────────────────── */
.mock-export { display: flex; flex-direction: column; align-items: center; gap: 1rem; }
.mock-export__phone {
    width: 10.5rem; aspect-ratio: 9 / 16; border-radius: 1.1rem; border: 2px solid var(--color-border-light);
    background: var(--color-bg-card-hover); padding: 0.9rem 0.7rem; position: relative; overflow: hidden;
}
.mock-export__phone--video { width: 26rem; max-width: 100%; padding: 0; border-radius: 2.5rem; }
.mock-export__video { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ── Public share link mockup ────────────────────────────────────────────── */
.mock-share__bar {
    display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: 0.5rem;
    background: var(--color-bg); border: 1px solid var(--color-border); margin-bottom: 1rem; font-size: 0.75rem;
}
.mock-share__lock { width: 13px; height: 13px; color: var(--color-text-muted); flex-shrink: 0; }
.mock-share__url { flex: 1; color: var(--color-text-secondary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-share__badge { padding: 0.15rem 0.5rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); font-weight: 700; font-size: 0.65rem; text-transform: uppercase; flex-shrink: 0; }
.mock-share__chat { display: flex; flex-direction: column; gap: 0.5rem; }

/* ── Pricing currency / period toggle ────────────────────────────────────── */
.pricing-toggle { display: flex; flex-wrap: wrap; justify-content: center; gap: 1rem; margin-bottom: 2.5rem; }
.pricing-toggle__group { display: inline-flex; padding: 0.25rem; border-radius: 999px; background: var(--color-bg-card); border: 1px solid var(--color-border); }
.pricing-toggle__btn {
    appearance: none; border: none; background: none; cursor: pointer; font-family: inherit;
    padding: 0.5rem 1.1rem; border-radius: 999px; font-size: 0.85rem; font-weight: 600;
    color: var(--color-text-secondary); display: inline-flex; align-items: center; gap: 0.4rem;
}
.pricing-toggle__btn.active { background: var(--color-text); color: var(--color-bg); }
.pricing-toggle__badge { font-size: 0.65rem; font-weight: 700; padding: 0.1rem 0.4rem; border-radius: 999px; background: var(--brand-soft); color: var(--brand); }
.pricing-toggle__btn.active .pricing-toggle__badge { background: var(--brand); color: var(--brand-ink); }

.pricing-card__flows { font-size: 0.8rem; font-weight: 600; color: var(--brand); margin: -0.5rem 0 1rem; }

/* Only the amount matching the grid's current currency + period shows; the rest stay in the DOM for instant toggling. */
.pricing-grid[data-currency="usd"] .pricing-card__amount[data-price-currency="brl"],
.pricing-grid[data-currency="brl"] .pricing-card__amount[data-price-currency="usd"],
.pricing-grid[data-period="monthly"] .pricing-card__amount[data-price-period="annual"],
.pricing-grid[data-period="annual"] .pricing-card__amount[data-price-period="monthly"],
.pricing-grid[data-period="monthly"] .pricing-card__interval[data-price-period="annual"],
.pricing-grid[data-period="annual"] .pricing-card__interval[data-price-period="monthly"] {
    display: none;
}


/* ══════════════════════════════════════════════════════════════════════════
   Platforms: /platforms index, /platforms/{slug} pages, home strip
   ══════════════════════════════════════════════════════════════════════════ */

.footer__grid { grid-template-columns: 2fr 1fr 1fr 1.25fr 1fr; }
@media (max-width: 1024px) { .footer__grid { grid-template-columns: 1fr 1fr; } }

/* Chips: every skin in the editor */
.pf-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 860px; margin: 2rem auto 0; padding: 0; list-style: none; }
.pf-chip {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.5rem 1rem; border-radius: 999px;
    border: 1px solid var(--color-border); background: var(--color-bg-card); font-size: 0.9rem; font-weight: 600; color: var(--color-text);
}
.pf-chip--link { border-color: var(--brand-line); transition: transform .15s, background-color .15s; }
.pf-chip--link:hover { background: var(--brand-soft); transform: translateY(-1px); }
.pf-chip--link::after { content: "→"; color: var(--brand); font-weight: 700; }
.pf-chip__dot { width: 0.6rem; height: 0.6rem; border-radius: 50%; flex-shrink: 0; }

/* Index cards */
.pf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.5rem; margin-top: 2.5rem; }
@media (max-width: 820px) { .pf-grid { grid-template-columns: 1fr; } }
.pf-card {
    display: grid; grid-template-columns: 220px 1fr; gap: 1.25rem; align-items: center; padding: 1.25rem;
    border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-bg-card); color: inherit;
    transition: transform .18s, border-color .18s, box-shadow .18s;
}
.pf-card:hover { transform: translateY(-3px); border-color: var(--color-border-light); box-shadow: var(--shadow-lg); }
.pf-card__title { margin: 0 0 0.5rem; font-size: 1.15rem; font-weight: 700; }
.pf-card__desc { margin: 0 0 0.9rem; font-size: 0.88rem; line-height: 1.6; color: var(--color-text-muted); }
.pf-card__more { font-size: 0.85rem; font-weight: 600; color: var(--brand); }
@media (max-width: 520px) { .pf-card { grid-template-columns: 1fr; } }

/* Platform page hero: copy + phone */
.pf-hero { text-align: left; }
.pf-hero .breadcrumb__list { justify-content: flex-start; }
.pf-hero__inner { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
.pf-hero__copy .page-hero__title, .pf-hero__copy .page-hero__subtitle { text-align: left; margin-left: 0; }
.pf-hero__copy .page-hero__title { font-size: clamp(2.1rem, 4.2vw, 3.25rem); line-height: 1.1; }
.pf-hero__copy .hero__actions { justify-content: flex-start; }
.pf-hero__copy .hero__note { text-align: left; }
@media (max-width: 900px) { .pf-hero__inner { grid-template-columns: 1fr; } }
.pf-feature__icon { display: inline-flex; align-items: center; justify-content: center; width: 2.4rem; height: 2.4rem; border-radius: 0.7rem; background: var(--brand-soft); color: var(--brand); margin-bottom: 0.9rem; }
.pf-feature__icon svg { width: 20px; height: 20px; }
.pf-others { margin: 2rem auto 0; max-width: 720px; font-size: 0.9rem; color: var(--color-text-secondary); }
.pf-others a { color: var(--brand); font-weight: 600; }
.pf-trademark { margin: 1rem auto 0; max-width: 720px; font-size: 0.75rem; color: var(--color-text-muted); }
.pf-links { display: flex; flex-wrap: wrap; gap: 0.75rem; }
.pf-link { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border: 1px solid var(--brand-line); border-radius: var(--radius); background: var(--brand-soft); color: var(--color-text); font-weight: 600; font-size: 0.9rem; }
.pf-link:hover { filter: brightness(1.08); }

/* ── The chat mockup (mock_platform_chat): one phone, each app's own colours via --pf-* tokens ── */
.mock-pf {
    --pf-bg: #fff; --pf-head: #fff; --pf-head-text: #000; --pf-muted: #8e8e93; --pf-line: rgba(0,0,0,.1);
    --pf-in: #e9e9eb; --pf-in-text: #000; --pf-out: #0b84fe; --pf-out-text: #fff; --pf-compose: #fff; --pf-input: #f2f2f7; --pf-input-text: #8e8e93;
    --pf-accent: #0b84fe; --pf-radius: 1.15rem; --pf-avatar: linear-gradient(135deg, #a5abb9, #858994); --pf-avatar-me: #c7c7cc;
    width: 100%; max-width: 340px; margin: 0 auto; display: flex; flex-direction: column; overflow: hidden;
    border: 7px solid #111; border-radius: 2.4rem; background: var(--pf-bg); box-shadow: var(--shadow-lg);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif; text-align: left;
}
[data-theme="light"] .mock-pf { border-color: #1c1c1e; }
.mock-pf svg { flex-shrink: 0; }

/* Header */
.mock-pf__head { display: flex; align-items: center; gap: 0.55rem; min-height: 3.4rem; padding: 0.9rem 0.8rem 0.55rem; background: var(--pf-head); color: var(--pf-head-text); border-bottom: 1px solid var(--pf-line); }
.mock-pf__icon { width: 1.15rem; height: 1.15rem; color: var(--pf-head-text); }
.mock-pf__icon--accent, .mock-pf__tools--accent .mock-pf__icon { color: var(--pf-accent); }
.mock-pf__avatar-wrap { position: relative; display: inline-flex; flex-shrink: 0; }
.mock-pf__avatar {
    width: 2.1rem; height: 2.1rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
    background: var(--pf-avatar); color: #fff; font-weight: 600; font-size: 0.9rem;
}
.mock-pf__avatar--sm { width: 1.55rem; height: 1.55rem; font-size: 0.65rem; align-self: flex-end; }
.mock-pf__avatar--me { background: var(--pf-avatar-me); }
.mock-pf__avatar--square { border-radius: 0.3rem; align-self: flex-start; }
.mock-pf__dot { position: absolute; right: -1px; bottom: -1px; width: 0.65rem; height: 0.65rem; border-radius: 50%; background: #31a24c; border: 2px solid var(--pf-head); }
.mock-pf__who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.mock-pf__who--row { flex-direction: row; align-items: center; gap: 0.3rem; }
.mock-pf__name { display: inline-flex; align-items: center; gap: 0.25rem; font-weight: 600; font-size: 0.86rem; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mock-pf__sub { font-size: 0.68rem; color: var(--pf-muted); line-height: 1.3; }
.mock-pf__badge { width: 0.9rem; height: 0.9rem; color: var(--pf-accent); }
.mock-pf__tools { display: inline-flex; align-items: center; gap: 0.85rem; margin-left: auto; }
.mock-pf__center { display: flex; flex-direction: column; align-items: center; gap: 0.2rem; flex: 1; min-width: 0; }
.mock-pf__head--center-avatar { align-items: flex-start; }
.mock-pf__head--center-avatar .mock-pf__name { font-weight: 400; font-size: 0.72rem; }
.mock-pf__head--center-avatar .mock-pf__tools { margin-left: 0; margin-top: 0.15rem; gap: 0.7rem; }
.mock-pf__head--center-title { justify-content: space-between; }
.mock-pf__head--center-title .mock-pf__tools { margin-left: 0; }
.mock-pf__chev { width: 0.65rem; height: 0.65rem; color: var(--pf-muted); }
.mock-pf__title { font-weight: 600; font-size: 0.9rem; flex: 1; text-align: center; }
.mock-pf__back-text { display: inline-flex; align-items: center; color: var(--pf-accent); font-size: 0.82rem; width: 3.6rem; flex-shrink: 0; }
.mock-pf__head--telegram .mock-pf__center .mock-pf__name { font-size: 0.86rem; }
.mock-pf__at { font-size: 1.1rem; color: var(--pf-muted); line-height: 1; }
.mock-pf__head--assistant { justify-content: space-between; border-bottom-color: transparent; }
.mock-pf__head--assistant .mock-pf__tools { margin-left: 0; gap: 0.4rem; }
.mock-pf__round { height: 2rem; min-width: 2rem; padding: 0 0.5rem; gap: 0.7rem; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--pf-input); color: var(--pf-head-text); }
.mock-pf__round svg { width: 1.05rem; height: 1.05rem; }

/* Messages */
.mock-pf__body { flex: 1; display: flex; flex-direction: column; gap: 0.3rem; padding: 0.9rem 0.65rem; min-height: 330px; background: var(--pf-bg); }
.mock-pf__date { align-self: center; margin-bottom: 0.3rem; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.62rem; color: var(--pf-muted); }
.mock-pf__row { display: flex; align-items: flex-end; gap: 0.35rem; }
.mock-pf__row--me { justify-content: flex-end; }
.mock-pf__bubble { max-width: 78%; padding: 0.45rem 0.72rem; border-radius: var(--pf-radius); font-size: 0.8rem; line-height: 1.38; background: var(--pf-in); color: var(--pf-in-text); position: relative; overflow-wrap: anywhere; }
.mock-pf__bubble--me { background: var(--pf-out); color: var(--pf-out-text); }
.mock-pf__bubble--typing { display: inline-flex; gap: 0.25rem; padding: 0.62rem 0.85rem; }
.mock-pf__bubble--typing span, .mock-pf__dots span, .mock-pf__thinking span { width: 6px; height: 6px; border-radius: 50%; background: var(--pf-muted); animation: mock-wa-typing 1.2s infinite ease-in-out; }
.mock-pf__bubble--typing span:nth-child(2), .mock-pf__dots span:nth-child(2), .mock-pf__thinking span:nth-child(2) { animation-delay: 0.2s; }
.mock-pf__bubble--typing span:nth-child(3), .mock-pf__dots span:nth-child(3), .mock-pf__thinking span:nth-child(3) { animation-delay: 0.4s; }
.mock-pf__time { float: right; margin: 0.35rem 0 -0.2rem 0.6rem; font-size: 0.62rem; opacity: 0.6; display: inline-flex; align-items: center; gap: 0.15rem; }
.mock-pf__ticks { width: 0.8rem; height: 0.8rem; color: #53bdeb; }
.mock-pf__beside { display: flex; flex-direction: column; align-items: flex-end; font-size: 0.58rem; line-height: 1.25; color: var(--pf-beside, var(--pf-muted)); }
.mock-pf__row--them .mock-pf__beside { align-items: flex-start; }
.mock-pf__receipt { align-self: flex-end; font-size: 0.65rem; color: var(--pf-muted); margin: -0.1rem 0.3rem 0.2rem; }
.mock-pf__seen { display: inline-flex; width: 0.9rem; height: 0.9rem; border-radius: 50%; background: var(--pf-avatar); color: #fff; font-size: 0.45rem; align-items: center; justify-content: center; font-weight: 700; }
.mock-pf__quick { display: flex; flex-direction: column; gap: 0.3rem; max-width: 78%; }
.mock-pf__quick-btn { padding: 0.45rem 0.7rem; border-radius: 0.55rem; background: var(--pf-in); color: var(--pf-accent); text-align: center; font-size: 0.78rem; font-weight: 600; }
.mock-pf__thinking { display: inline-flex; gap: 0.3rem; padding: 0.4rem 0.2rem; }
.mock-pf__typing-text { display: inline-flex; align-items: center; gap: 0.45rem; font-size: 0.68rem; color: var(--pf-muted); padding-left: 0.2rem; }
.mock-pf__dots { display: inline-flex; gap: 0.2rem; }
.mock-pf__dots span { width: 4px; height: 4px; }

/* Transcript layout (Discord): one left-aligned column, no bubbles */
.mock-pf__msg { display: flex; gap: 0.6rem; align-items: flex-start; margin-bottom: 0.45rem; }
.mock-pf__msg .mock-pf__avatar { width: 1.9rem; height: 1.9rem; font-size: 0.75rem; }
.mock-pf__msg-body { min-width: 0; }
.mock-pf__msg-head { display: flex; align-items: baseline; gap: 0.4rem; }
.mock-pf__msg-name { font-weight: 600; font-size: 0.8rem; color: var(--pf-head-text); }
.mock-pf__msg-time { font-size: 0.6rem; color: var(--pf-muted); }
.mock-pf__msg-text { font-size: 0.8rem; line-height: 1.4; color: var(--pf-in-text); }

/* Compose bar */
.mock-pf__compose { display: flex; align-items: center; gap: 0.5rem; padding: 0.55rem 0.65rem 0.9rem; background: var(--pf-compose); color: var(--pf-head-text); }
.mock-pf__compose > .mock-pf__icon { color: var(--pf-icon, var(--pf-muted)); }
.mock-pf__input {
    flex: 1; min-width: 0; display: flex; align-items: center; gap: 0.45rem; min-height: 2.1rem; padding: 0.35rem 0.8rem; border-radius: 999px;
    background: var(--pf-input); color: var(--pf-input-text); font-size: 0.78rem; white-space: nowrap; overflow: hidden;
}
.mock-pf__input .mock-pf__icon { color: var(--pf-input-text); width: 1rem; height: 1rem; }
.mock-pf__input--box { border-radius: 0.3rem; }
.mock-pf__input--line { background: transparent; border-radius: 0; padding-left: 0.2rem; }
.mock-pf__send { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--pf-accent); color: #fff; flex-shrink: 0; }
.mock-pf__send svg { width: 1rem; height: 1rem; }
.mock-pf__send-text { font-weight: 700; font-size: 0.8rem; color: var(--pf-muted); }
.mock-pf__plus { width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--pf-input); color: var(--pf-muted); flex-shrink: 0; }
.mock-pf__plus--brand { width: 1.6rem; height: 1.6rem; background: var(--pf-accent); color: #fff; }
.mock-pf__plus svg { width: 1.05rem; height: 1.05rem; }
.mock-pf__cam { width: 1.55rem; height: 1.55rem; margin-left: -0.45rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: #3797f0; color: #fff; flex-shrink: 0; }
.mock-pf__cam svg { width: 0.85rem; height: 0.85rem; }
.mock-pf__voice { margin-left: auto; width: 1.7rem; height: 1.7rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--pf-voice, #000); color: #fff; }
.mock-pf__voice svg { width: 0.9rem; height: 0.9rem; }
@media (prefers-reduced-motion: reduce) { .mock-pf__bubble--typing span, .mock-pf__dots span, .mock-pf__thinking span { animation: none; } }

/* ── Each app ── */
/* WhatsApp: beige / deep green-black wallpaper, tailed corners, green sent bubbles, ticks */
.mock-pf--whatsapp { --pf-bg: #efeae2; --pf-head: #f0f2f5; --pf-head-text: #111b21; --pf-muted: #667781; --pf-line: rgba(0,0,0,.08); --pf-in: #fff; --pf-in-text: #111b21; --pf-out: #d9fdd3; --pf-out-text: #111b21; --pf-compose: #f0f2f5; --pf-input: #fff; --pf-input-text: #667781; --pf-accent: #00a884; --pf-radius: 0.55rem; --pf-avatar: #00a884; }
[data-theme="dark"] .mock-pf--whatsapp { --pf-bg: #0b141a; --pf-head: #202c33; --pf-head-text: #e9edef; --pf-muted: #8696a0; --pf-line: rgba(0,0,0,.4); --pf-in: #202c33; --pf-in-text: #e9edef; --pf-out: #005c4b; --pf-out-text: #e9edef; --pf-compose: #1f2c34; --pf-input: #2a3942; --pf-input-text: #8696a0; }
.mock-pf--whatsapp .mock-pf__body { background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px); background-size: 14px 14px; }
[data-theme="dark"] .mock-pf--whatsapp .mock-pf__body { background-image: radial-gradient(rgba(255,255,255,.035) 1px, transparent 1px); }
.mock-pf--whatsapp .mock-pf__row--them .mock-pf__bubble { border-top-left-radius: 0; }
.mock-pf--whatsapp .mock-pf__row--me .mock-pf__bubble { border-top-right-radius: 0; }
.mock-pf--whatsapp .mock-pf__bubble, .mock-pf--whatsapp .mock-pf__quick-btn { box-shadow: 0 1px 0.5px rgba(11,20,26,.13); }
.mock-pf--whatsapp .mock-pf__quick-btn { color: #027eb5; }
[data-theme="dark"] .mock-pf--whatsapp .mock-pf__quick-btn { color: #53bdeb; }

/* iMessage */
.mock-pf--imessage { --pf-head: #f6f6f6; --pf-line: rgba(0,0,0,.18); }
[data-theme="dark"] .mock-pf--imessage { --pf-bg: #000; --pf-head: #1c1c1e; --pf-head-text: #fff; --pf-line: rgba(255,255,255,.15); --pf-in: #26252a; --pf-in-text: #fff; --pf-compose: #000; --pf-input: #1c1c1e; --pf-input-text: #8e8e93; --pf-accent: #0a84ff; }
.mock-pf--imessage .mock-pf__input { border: 1px solid var(--pf-line); background: transparent; }

/* Instagram */
.mock-pf--instagram { --pf-muted: #737373; --pf-in: #efefef; --pf-out: linear-gradient(135deg, #8a3ff0, #5f4fda); --pf-input: #efefef; --pf-input-text: #737373; --pf-accent: #0095f6; --pf-radius: 1.3rem; --pf-avatar: linear-gradient(45deg, #f9ce34, #ee2a7b, #6228d7); }
[data-theme="dark"] .mock-pf--instagram { --pf-bg: #000; --pf-head: #000; --pf-head-text: #fff; --pf-muted: #a8a8a8; --pf-line: rgba(255,255,255,.15); --pf-in: #262626; --pf-in-text: #fff; --pf-compose: #000; --pf-input: #262626; --pf-input-text: #a8a8a8; }

/* Messenger: flat brand-blue sent bubble, presence dot, blue icons, "Aa" */
.mock-pf--messenger { --pf-head-text: #050505; --pf-muted: #65676b; --pf-line: rgba(0,0,0,.08); --pf-in: #f0f0f0; --pf-in-text: #050505; --pf-out: #0866ff; --pf-input: #f0f0f0; --pf-input-text: #65676b; --pf-accent: #0866ff; --pf-radius: 1.15rem; --pf-avatar: #c9ccd1; }
[data-theme="dark"] .mock-pf--messenger { --pf-bg: #000; --pf-head: #000; --pf-head-text: #fff; --pf-muted: #b0b3b8; --pf-line: rgba(255,255,255,.08); --pf-in: #303030; --pf-in-text: #fff; --pf-compose: #000; --pf-input: #303030; --pf-input-text: #b0b3b8; }
.mock-pf--messenger .mock-pf__head > .mock-pf__icon, .mock-pf--messenger .mock-pf__tools .mock-pf__icon { color: #0866ff; }

/* Signal: lavender initials, no subtitle, blue sent bubbles, inline time */
.mock-pf--signal { --pf-head-text: #1b1b1b; --pf-muted: #5e5e5e; --pf-in: #e9e9e9; --pf-in-text: #1b1b1b; --pf-out: #2c6bed; --pf-input: #f0f0f0; --pf-input-text: #5e5e5e; --pf-accent: #2c6bed; --pf-radius: 1.1rem; --pf-avatar: #e3e3fe; --pf-icon: #1b1b1b; }
[data-theme="dark"] .mock-pf--signal { --pf-bg: #000; --pf-head: #000; --pf-head-text: #fff; --pf-muted: #a0a0a0; --pf-line: rgba(255,255,255,.15); --pf-in: #2c2c2e; --pf-in-text: #fff; --pf-compose: #000; --pf-input: #1c1c1e; --pf-input-text: #a0a0a0; --pf-icon: #fff; }
.mock-pf--signal .mock-pf__head .mock-pf__avatar { color: #3838f5; }
.mock-pf--signal .mock-pf__name { font-size: 0.95rem; }
.mock-pf--signal .mock-pf__ticks { color: currentColor; }

/* Telegram: green doodle wallpaper, centred title, "Back", round teal avatar on the right */
.mock-pf--telegram { --pf-bg: linear-gradient(160deg, #d5e4b9 0%, #b9d39e 55%, #a7c38c 100%); --pf-head: #f7f7f7; --pf-line: rgba(0,0,0,.12); --pf-in: #fff; --pf-out: #effdde; --pf-out-text: #000; --pf-compose: #f7f7f7; --pf-input: #fff; --pf-input-text: #a3a3a8; --pf-accent: #037ee5; --pf-radius: 0.95rem; --pf-avatar: linear-gradient(135deg, #53edd6, #28c9b7); --pf-icon: #858e99; }
[data-theme="dark"] .mock-pf--telegram { --pf-bg: linear-gradient(160deg, #111a22 0%, #0e1621 55%, #0b141a 100%); --pf-head: #17212b; --pf-head-text: #fff; --pf-muted: rgba(255,255,255,.55); --pf-line: rgba(0,0,0,.4); --pf-in: #182533; --pf-in-text: #fff; --pf-out: #2b5278; --pf-out-text: #fff; --pf-compose: #17212b; --pf-input: #242f3d; --pf-input-text: rgba(255,255,255,.45); --pf-accent: #6ab3f3; --pf-icon: rgba(255,255,255,.55); }
.mock-pf--telegram .mock-pf__body { background: var(--pf-bg); }
.mock-pf--telegram .mock-pf__ticks { color: #4fae4e; }
[data-theme="dark"] .mock-pf--telegram .mock-pf__ticks { color: #6ab3f3; }
.mock-pf--telegram .mock-pf__input { border: 1px solid rgba(0,0,0,.12); }

/* LINE: navy header, blue-grey wallpaper, lime sent bubbles, Read + time beside */
.mock-pf--line { --pf-bg: #8cabd9; --pf-head: #29334b; --pf-head-text: #fff; --pf-line: transparent; --pf-in: #fff; --pf-in-text: #000; --pf-out: #85e249; --pf-out-text: #000; --pf-input: #f1f2f4; --pf-input-text: #8a8a8a; --pf-radius: 1.1rem; --pf-beside: #3f4f6b; --pf-avatar: #b8c4d6; --pf-icon: #2d2d2d; }
[data-theme="dark"] .mock-pf--line { --pf-bg: #33415c; --pf-head: #1c2333; --pf-in: #2c2c2e; --pf-in-text: #fff; --pf-compose: #1c1c1e; --pf-input: #2c2c2e; --pf-beside: #aab6cc; --pf-icon: #fff; }
.mock-pf--line .mock-pf__name { font-weight: 700; font-size: 0.95rem; }

/* WeChat: grey wallpaper, square avatars on every message, near-square bubbles */
.mock-pf--wechat { --pf-bg: #ededed; --pf-head: #ededed; --pf-head-text: #191919; --pf-line: rgba(0,0,0,.08); --pf-in: #fff; --pf-in-text: #191919; --pf-out: #95ec69; --pf-out-text: #191919; --pf-compose: #f7f7f7; --pf-input: #fff; --pf-input-text: #b2b2b2; --pf-radius: 0.3rem; --pf-avatar: #7d9bc1; --pf-avatar-me: #e0a95b; --pf-icon: #181818; }
[data-theme="dark"] .mock-pf--wechat { --pf-bg: #1c1c1e; --pf-head: #1c1c1e; --pf-head-text: #fff; --pf-line: rgba(255,255,255,.1); --pf-in: #2c2c2e; --pf-in-text: #fff; --pf-out: #4a7d2f; --pf-out-text: #fff; --pf-compose: #1c1c1e; --pf-input: #2c2c2e; --pf-icon: #fff; }
.mock-pf--wechat .mock-pf__row { align-items: flex-start; }
.mock-pf--wechat .mock-pf__avatar--sm { width: 1.75rem; height: 1.75rem; }
.mock-pf--wechat .mock-pf__row--me .mock-pf__avatar { order: 2; }
.mock-pf--wechat .mock-pf__title { font-weight: 500; }

/* Tinder: centred avatar + name, safety shield, blue sent bubbles, "Read" */
.mock-pf--tinder { --pf-head-text: #21262e; --pf-muted: #7c8591; --pf-line: #e9ebee; --pf-in: #f0f2f4; --pf-in-text: #21262e; --pf-out: #1786ff; --pf-input: transparent; --pf-input-text: #7c8591; --pf-accent: #7c8591; --pf-radius: 1.2rem; --pf-avatar: #d4d8de; }
[data-theme="dark"] .mock-pf--tinder { --pf-bg: #000; --pf-head: #000; --pf-head-text: #fff; --pf-muted: #9099a6; --pf-line: rgba(255,255,255,.15); --pf-in: #262a2e; --pf-in-text: #fff; --pf-compose: #000; --pf-input-text: #9099a6; --pf-accent: #9099a6; }
.mock-pf--tinder .mock-pf__head .mock-pf__name { font-weight: 600; font-size: 0.75rem; }
.mock-pf--tinder .mock-pf__tools [data-lucide="shield-check"], .mock-pf--tinder .mock-pf__tools svg:last-child { color: #1786ff; }
.mock-pf--tinder .mock-pf__compose { border-top: 1px solid var(--pf-line); }

/* TikTok: avatars on both sides, cyan sent bubble, bordered white received bubble, "Seen" */
.mock-pf--tiktok { --pf-muted: #8a8a8a; --pf-in: #fff; --pf-in-text: #000; --pf-out: #20d5ec; --pf-input: #f1f1f2; --pf-input-text: #8a8a8a; --pf-radius: 0.65rem; --pf-avatar: #dbdbdb; --pf-avatar-me: #dbdbdb; }
[data-theme="dark"] .mock-pf--tiktok { --pf-bg: #000; --pf-head: #000; --pf-head-text: #fff; --pf-muted: #a8a8a8; --pf-line: rgba(255,255,255,.15); --pf-in: #2c2c2e; --pf-in-text: #fff; --pf-compose: #000; --pf-input: #2c2c2e; --pf-input-text: #a8a8a8; }
.mock-pf--tiktok .mock-pf__bubble--them { border: 1px solid rgba(0,0,0,.08); }
[data-theme="dark"] .mock-pf--tiktok .mock-pf__bubble--them { border-color: transparent; }
.mock-pf--tiktok .mock-pf__row { align-items: flex-start; }
.mock-pf--tiktok .mock-pf__row--me .mock-pf__avatar { order: 2; }
.mock-pf--tiktok .mock-pf__receipt { margin-right: 2.2rem; }

/* X: blue sent bubbles, grey received, "time · Seen" */
.mock-pf--x { --pf-head-text: #0f1419; --pf-muted: #536471; --pf-line: #eff3f4; --pf-in: #eff3f4; --pf-in-text: #0f1419; --pf-out: #1d9bf0; --pf-input: #eff3f4; --pf-input-text: #536471; --pf-radius: 1.2rem; --pf-avatar: #cfd9de; }
[data-theme="dark"] .mock-pf--x { --pf-bg: #000; --pf-head: #000; --pf-head-text: #e7e9ea; --pf-muted: #71767b; --pf-line: rgba(255,255,255,.15); --pf-in: #1e2732; --pf-in-text: #fff; --pf-compose: #000; --pf-input: #1e2732; --pf-input-text: #71767b; }
.mock-pf--x .mock-pf__name { font-weight: 800; }
.mock-pf--x .mock-pf__row--me .mock-pf__bubble { border-bottom-right-radius: 0.3rem; }
.mock-pf--x .mock-pf__row--them .mock-pf__bubble { border-bottom-left-radius: 0.3rem; }

/* Discord: no bubbles, avatar + name + time per message */
.mock-pf--discord { --pf-head-text: #060607; --pf-muted: #5c5e66; --pf-line: rgba(0,0,0,.1); --pf-in-text: #2e3338; --pf-input: #ebedef; --pf-input-text: #5c5e66; --pf-icon: #4e5058; }
[data-theme="dark"] .mock-pf--discord { --pf-bg: #313338; --pf-head: #313338; --pf-head-text: #f2f3f5; --pf-muted: #949ba4; --pf-line: rgba(0,0,0,.3); --pf-in-text: #dbdee1; --pf-compose: #313338; --pf-input: #383a40; --pf-input-text: #949ba4; --pf-icon: #b5bac1; }
.mock-pf--discord .mock-pf__head .mock-pf__name { font-weight: 700; font-size: 0.95rem; }
.mock-pf--discord .mock-pf__tools .mock-pf__icon { color: var(--pf-icon); width: 1rem; height: 1rem; }
.mock-pf--discord .mock-pf__avatar--them { background: #ed4245; }
.mock-pf--discord .mock-pf__avatar--me { background: #3ba55c; }
.mock-pf--discord .mock-pf__input { border-radius: 0.5rem; }

/* ChatGPT: no avatars, grey user bubble, plain-text answers */
.mock-pf--chatgpt { --pf-head-text: #0d0d0d; --pf-muted: #5d5d5d; --pf-line: transparent; --pf-in: transparent; --pf-in-text: #0d0d0d; --pf-out: #f4f4f4; --pf-out-text: #0d0d0d; --pf-input: #f4f4f4; --pf-input-text: #5d5d5d; --pf-radius: 1.3rem; --pf-voice: #0d0d0d; }
[data-theme="dark"] .mock-pf--chatgpt { --pf-bg: #212121; --pf-head: #212121; --pf-head-text: #f4f4f4; --pf-muted: #b4b4b4; --pf-in-text: #ececec; --pf-out: #2f2f2f; --pf-out-text: #fff; --pf-compose: #212121; --pf-input: #303030; --pf-input-text: #b4b4b4; --pf-voice: #fff; }
[data-theme="dark"] .mock-pf--chatgpt .mock-pf__voice { color: #000; }

/* Claude: warm cream background, serif answers, coral thinking dots */
.mock-pf--claude { --pf-bg: #faf9f5; --pf-head: #faf9f5; --pf-head-text: #1f1e1d; --pf-muted: #5c5955; --pf-line: transparent; --pf-in: transparent; --pf-in-text: #1f1e1d; --pf-out: #e8e6e1; --pf-out-text: #1f1e1d; --pf-compose: #faf9f5; --pf-input: #fff; --pf-input-text: #5c5955; --pf-radius: 1.1rem; --pf-voice: #000; }
[data-theme="dark"] .mock-pf--claude { --pf-bg: #262624; --pf-head: #262624; --pf-head-text: #f4f3ee; --pf-muted: #c9c5bc; --pf-in-text: #f4f3ee; --pf-out: #3a3835; --pf-out-text: #f4f3ee; --pf-compose: #262624; --pf-input: #2f2d2b; --pf-input-text: #c9c5bc; --pf-voice: #f4f3ee; }
[data-theme="dark"] .mock-pf--claude .mock-pf__voice { color: #000; }
.mock-pf--claude .mock-pf__bubble--them { font-family: Georgia, "Times New Roman", serif; font-size: 0.86rem; }
.mock-pf--claude .mock-pf__thinking span { background: #da7756; }
.mock-pf--claude .mock-pf__input, .mock-pf--claude .mock-pf__round { border: 1px solid rgba(0,0,0,.1); }
[data-theme="dark"] .mock-pf--claude .mock-pf__input, [data-theme="dark"] .mock-pf--claude .mock-pf__round { border-color: rgba(255,255,255,.1); }

/* AI assistants: the answer sits flush left, full width */
.mock-pf--chatgpt .mock-pf__row--them .mock-pf__bubble, .mock-pf--claude .mock-pf__row--them .mock-pf__bubble { max-width: 100%; padding-left: 0.2rem; padding-right: 0.2rem; }
.mock-pf--chatgpt .mock-pf__body, .mock-pf--claude .mock-pf__body { gap: 0.8rem; }
.mock-pf--chatgpt .mock-pf__input, .mock-pf--claude .mock-pf__input { border-radius: 1.4rem; min-height: 2.6rem; }

.features-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .features-grid--3 { grid-template-columns: 1fr; } }

/* Blog cover placeholders for Bot Replayer's categories */
.blog-cover--launch  { background: linear-gradient(135deg, #f97316, #e11d48 60%, #be185d); }
.blog-cover--demos   { background: linear-gradient(135deg, #00a884, #0d9488 55%, #0e7490); }
.blog-cover--sharing { background: linear-gradient(135deg, #2563eb, #4f46e5 60%, #7c3aed); }
.blog-cover--mcp     { background: linear-gradient(135deg, #d97757, #b45309 55%, #7c2d12); }

/* ── Platform page sections: jump links, facts, checklist, example script, ideas ── */
.pf-toc { position: sticky; top: var(--header-height, 64px); z-index: 20; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: color-mix(in srgb, var(--color-bg) 88%, transparent); backdrop-filter: blur(10px); }
.pf-toc__inner { display: flex; gap: 0.35rem; overflow-x: auto; padding-top: 0.55rem; padding-bottom: 0.55rem; scrollbar-width: none; }
.pf-toc__inner::-webkit-scrollbar { display: none; }
.pf-toc a { flex-shrink: 0; padding: 0.35rem 0.8rem; border-radius: 999px; font-size: 0.82rem; font-weight: 600; color: var(--color-text-secondary); }
.pf-toc a:hover { color: var(--color-text); background: var(--color-bg-card-hover); }
[id="what"], [id="details"], [id="example"], [id="ideas"], [id="how"], [id="faq"] { scroll-margin-top: 130px; }

.pf-what { display: grid; grid-template-columns: 1.3fr 1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .pf-what { grid-template-columns: 1fr; gap: 2rem; } }
.pf-lead { margin-top: 1rem; font-size: 1.08rem; line-height: 1.75; color: var(--color-text-secondary); }
.pf-facts { margin: 0; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-bg-card); overflow: hidden; }
.pf-facts__row { display: grid; grid-template-columns: 1fr 1.2fr; gap: 1rem; padding: 0.8rem 1.15rem; border-bottom: 1px solid var(--color-border); font-size: 0.88rem; }
.pf-facts__row:last-child { border-bottom: 0; }
.pf-facts dt { color: var(--color-text-muted); }
.pf-facts dd { margin: 0; font-weight: 600; color: var(--color-text); }

.pf-checklist { list-style: none; padding: 0; margin: 2.5rem auto 0; max-width: 900px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem 2rem; }
@media (max-width: 760px) { .pf-checklist { grid-template-columns: 1fr; } }
.pf-checklist li { display: flex; gap: 0.7rem; align-items: flex-start; font-size: 0.95rem; line-height: 1.55; color: var(--color-text-secondary); }
.pf-checklist svg { width: 1.15rem; height: 1.15rem; flex-shrink: 0; margin-top: 0.15rem; padding: 0.15rem; border-radius: 50%; background: var(--brand-soft); color: var(--brand); }

.pf-example { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 3rem; align-items: start; }
@media (max-width: 900px) { .pf-example { grid-template-columns: 1fr; gap: 1.5rem; } }
.pf-example__note { margin-top: 1rem; font-size: 0.88rem; color: var(--color-text-muted); }
.pf-script { list-style: none; margin: 0; padding: 1.25rem; border: 1px solid var(--color-border); border-radius: var(--radius-xl); background: var(--color-bg-card); display: flex; flex-direction: column; gap: 0.7rem; }
.pf-script__line { display: grid; grid-template-columns: 4.5rem 1fr; gap: 0.75rem; font-size: 0.92rem; line-height: 1.55; }
.pf-script__who { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; padding-top: 0.2rem; }
.pf-script__line--bot .pf-script__who { color: var(--brand); }
.pf-script__line--user .pf-script__who { color: var(--color-text-muted); }
.pf-script__text { color: var(--color-text); }

.pf-ideas { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; margin-top: 2.5rem; }
@media (max-width: 760px) { .pf-ideas { grid-template-columns: 1fr; } }
.pf-idea { padding: 1.5rem; border: 1px solid var(--color-border); border-radius: var(--radius-lg); background: var(--color-bg-card); }
.pf-idea__title { margin: 0 0 0.45rem; font-size: 1.02rem; font-weight: 700; }
.pf-idea__desc { margin: 0; font-size: 0.9rem; line-height: 1.6; color: var(--color-text-secondary); }

.pf-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .pf-grid--3 { grid-template-columns: 1fr; } }
.pf-card--stack { grid-template-columns: 1fr; text-align: center; }
.pf-card--stack .pf-card__title { font-size: 1rem; }
.footer__link--more { font-weight: 600; color: var(--brand); }

/* Phone proportions: a real phone screen is ~9:19.5, so the mockup is narrower and taller, with an iOS-style status bar */
.mock-pf { max-width: 300px; aspect-ratio: 9 / 19; border-width: 8px; border-radius: 2.8rem; }
.mock-pf__status {
    display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; height: 2.1rem; padding: 0.35rem 1.35rem 0;
    background: var(--pf-head); color: var(--pf-head-text); font-size: 0.72rem; font-weight: 600; position: relative;
}
.mock-pf__island { position: absolute; left: 50%; top: 0.45rem; transform: translateX(-50%); width: 5.2rem; height: 1.3rem; border-radius: 999px; background: #000; }
.mock-pf__status-icons { display: inline-flex; gap: 0.25rem; }
.mock-pf__status-icons svg { width: 0.85rem; height: 0.85rem; }
.mock-pf__head { padding-top: 0.5rem; flex-shrink: 0; }
.mock-pf__body { min-height: 0; overflow: hidden; }
.mock-pf__compose { flex-shrink: 0; }

/* Small phones (the /platforms cards): the same phone, scaled down as a whole, so text, bubbles and icons keep the
   proportions of the big one instead of each size shrinking on its own. */
.mock-pf--compact { zoom: 0.66; pointer-events: none; }
.mock-pf--compact .mock-pf__body { padding-top: 0.9rem; }

/* Platform brand marks (platform_icon()): the app's own logo on its own tile, like the product's platform picker */
.pf-icon { display: inline-grid; place-items: center; flex-shrink: 0; color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.12); vertical-align: middle; }
.pf-icon svg { display: block; }
.pf-icon--xs { width: 1rem; height: 1rem; border-radius: 0.28rem; }
.pf-icon--xs svg { width: 0.62rem; height: 0.62rem; }
.pf-icon--sm { width: 1.4rem; height: 1.4rem; border-radius: 0.4rem; }
.pf-icon--sm svg { width: 0.82rem; height: 0.82rem; }
.pf-icon--md { width: 2rem; height: 2rem; border-radius: 0.56rem; }
.pf-icon--md svg { width: 1.12rem; height: 1.12rem; }
.pf-chip { padding-left: 0.45rem; }
.pf-badge { display: inline-flex; align-items: center; gap: 0.5rem; padding-left: 0.4rem; }
.pf-card__title { display: flex; align-items: center; gap: 0.6rem; }
.pf-card--stack .pf-card__title { justify-content: center; }
.footer__link--pf { display: flex; align-items: center; gap: 0.45rem; }

.pf-uses { display: flex; flex-wrap: wrap; gap: 0.35rem; margin: 0 0 0.95rem; padding: 0; list-style: none; }
.pf-uses li { padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.72rem; font-weight: 600; color: var(--brand); background: var(--brand-soft); }

.pf-included { display: flex; flex-wrap: wrap; justify-content: center; gap: 0.6rem; max-width: 900px; margin: 2rem auto 0; padding: 0; list-style: none; }
.pf-included li { display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1rem; border: 1px solid var(--color-border); border-radius: 999px; background: var(--color-bg-card); font-size: 0.88rem; font-weight: 600; }
.pf-included svg { width: 1rem; height: 1rem; color: var(--brand); }

/* ── MCP page: per-client connection guide (/mcp) ────────────────────────── */
.mcp-platforms { margin-top: 1rem; }
.mcp-platforms__title { font-size: 1.4rem; font-weight: 700; margin: 0.5rem 0 0.5rem; }
.mcp-platforms__tabs { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 1.75rem 0 1.75rem; }
.mcp-platforms__tab {
    display: inline-flex; align-items: center; gap: 0.5rem; padding: 0.55rem 1.1rem; border-radius: 999px;
    border: 1px solid var(--color-border); background: var(--color-bg-card); color: var(--color-text-secondary);
    font-size: 0.85rem; font-weight: 600; cursor: pointer; font-family: inherit;
}
.mcp-platforms__tab i, .mcp-platforms__tab svg { width: 15px; height: 15px; }
.mcp-platforms__tab:hover { border-color: var(--color-border-light); color: var(--color-text); }
.mcp-platforms__tab.active { background: var(--brand); color: var(--brand-ink); border-color: var(--brand); }
.mcp-platforms__panel { padding-top: 0.25rem; }
.mcp-platforms__steps { list-style: decimal; padding-left: 1.4rem; display: grid; gap: 0.65rem; color: var(--color-text-secondary); font-size: 0.92rem; line-height: 1.65; max-width: 760px; }
.mcp-platforms__steps li::marker { color: var(--brand); font-weight: 700; }
.mcp-platforms__steps code { background: var(--code-bg); color: var(--code-color); padding: 0.1rem 0.4rem; border-radius: 0.3rem; font-size: 0.85em; }
.mcp-platforms__steps strong { color: var(--color-text); }
