/* ── 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;
}

/* 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::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);
}

.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__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;
}

/* ── 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);
}

/* ── 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__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;
    }

    .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;
    }
}


/* ══════════════════════════════════════════════════════════════════════════
   Planning Poker Web — brand accent, product mockups, pricing, legal
   ══════════════════════════════════════════════════════════════════════════ */

:root,
[data-theme="dark"] {
    --brand: #03c560;
    --brand-ink: #04130a;
    --brand-soft: rgba(3, 197, 96, 0.12);
    --brand-line: rgba(3, 197, 96, 0.35);
}

[data-theme="light"] {
    --brand: #02a652;
    --brand-ink: #ffffff;
    --brand-soft: rgba(2, 166, 82, 0.1);
    --brand-line: rgba(2, 166, 82, 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__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; }
}

/* 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.6rem; }
.legal p, .legal li { color: var(--color-text-secondary); line-height: 1.7; }
.legal ul { padding-left: 1.2rem; }
.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; }


/* ══════════════════════════════════════════════════════════════════════════
   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; }


/* Banner above the header: always white, in both themes */
.topbanner { background: #ffffff; color: #18181b; border-bottom: 1px solid #e4e4e7; font-size: 0.8125rem; line-height: 1.4; }
.topbanner__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 0.25rem 0.5rem; padding-top: 0.55rem; padding-bottom: 0.55rem; text-align: center; }
.topbanner__link { font-weight: 600; color: #047857; text-decoration: underline; text-underline-offset: 2px; }
.topbanner__link:hover { color: #065f46; }


/* 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; }
.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__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; }
