/* ============================================
   Conven — Apple Poster Style
   Dramatic · Cinematic · Vibrant
   ============================================ */

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

/* --- Design Tokens --- */
:root {
    --bg: #000000;
    --bg-secondary: #111111;
    --bg-elevated: #1a1a1a;
    --text-primary: #ffffff;
    --text-secondary: rgba(255, 255, 255, 0.56);
    --text-tertiary: rgba(255, 255, 255, 0.32);
    --accent: #2997ff;
    --accent-hover: #5ab8ff;
    --product-conven: #22c55e;
    --product-connovel: #f59e0b;
    --border: rgba(255, 255, 255, 0.08);
    --nav-bg: rgba(0, 0, 0, 0.7);
    --card-bg: rgba(255, 255, 255, 0.05);
    --card-hover: rgba(255, 255, 255, 0.08);
    --modal-overlay: rgba(0, 0, 0, 0.8);
    --input-bg: rgba(255, 255, 255, 0.06);
    --input-border: rgba(255, 255, 255, 0.12);
    --gradient-hero: linear-gradient(135deg, #6ee7b7, #3b82f6, #a78bfa, #f472b6);
    --gradient-accent: linear-gradient(135deg, #3b82f6, #a78bfa);
    --shadow-glow: 0 0 80px rgba(99, 102, 241, 0.12);
    --transition: 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    --ease-out: cubic-bezier(0, 0, 0.15, 1);
}

/* Auto-follow browser light mode */
@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) {
        --bg: #ffffff;
        --bg-secondary: #f5f5f7;
        --bg-elevated: #ffffff;
        --text-primary: #1d1d1f;
        --text-secondary: rgba(0, 0, 0, 0.48);
        --text-tertiary: rgba(0, 0, 0, 0.28);
        --accent: #0071e3;
        --accent-hover: #0077ed;
        --border: rgba(0, 0, 0, 0.06);
        --nav-bg: rgba(255, 255, 255, 0.7);
        --card-bg: rgba(0, 0, 0, 0.03);
        --card-hover: rgba(0, 0, 0, 0.06);
        --modal-overlay: rgba(0, 0, 0, 0.5);
        --input-bg: rgba(0, 0, 0, 0.03);
        --input-border: rgba(0, 0, 0, 0.12);
        --shadow-glow: 0 0 80px rgba(99, 102, 241, 0.06);
    }
}

/* Manual override: light */
[data-theme="light"] {
    --bg: #ffffff;
    --bg-secondary: #f5f5f7;
    --bg-elevated: #ffffff;
    --text-primary: #1d1d1f;
    --text-secondary: rgba(0, 0, 0, 0.48);
    --text-tertiary: rgba(0, 0, 0, 0.28);
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --border: rgba(0, 0, 0, 0.06);
    --nav-bg: rgba(255, 255, 255, 0.7);
    --card-bg: rgba(0, 0, 0, 0.03);
    --card-hover: rgba(0, 0, 0, 0.06);
    --modal-overlay: rgba(0, 0, 0, 0.5);
    --input-bg: rgba(0, 0, 0, 0.03);
    --input-border: rgba(0, 0, 0, 0.12);
    --shadow-glow: 0 0 80px rgba(99, 102, 241, 0.06);
}

/* --- Base --- */
html {
    font-size: 16px;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
        "Helvetica Neue", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.47059;
    font-size: 17px;
    transition: background 0.5s ease, color 0.5s ease;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
}

::selection {
    background: rgba(99, 102, 241, 0.4);
    color: #fff;
}

a {
    color: var(--accent);
    text-decoration: none;
    transition: color var(--transition);
}

a:hover {
    text-decoration: underline;
}

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

/* --- Layout --- */
.container {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
}

.container-narrow {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ============================================
   Typography — Poster style
   ============================================ */
.headline-poster {
    font-size: clamp(64px, 12vw, 120px);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 0.95;
    color: var(--text-primary);
}

.headline {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 700;
    letter-spacing: -0.025em;
    line-height: 1.02;
    color: var(--text-primary);
}

.headline-secondary {
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.08;
    color: var(--text-primary);
}

.subheadline {
    font-size: clamp(18px, 2.5vw, 28px);
    font-weight: 400;
    letter-spacing: 0em;
    line-height: 1.3;
    color: var(--text-secondary);
}

.body-text {
    font-size: 17px;
    line-height: 1.47059;
    color: var(--text-secondary);
}

.caption {
    font-size: 12px;
    color: var(--text-tertiary);
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

/* Gradient text with flowing animation */
.text-gradient {
    background: linear-gradient(270deg, #6ee7b7, #3b82f6, #a78bfa, #f472b6, #6ee7b7);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    animation: gradient-flow 6s ease infinite;
}

[data-theme="light"] .text-gradient {
    background: linear-gradient(270deg, #059669, #2563eb, #7c3aed, #db2777, #059669);
    background-size: 300% 100%;
    -webkit-background-clip: text;
    background-clip: text;
    animation: gradient-flow 6s ease infinite;
}

@keyframes gradient-flow {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

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

/* ============================================
   Navigation — Floating, minimal
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 56px;
    background: var(--nav-bg);
    backdrop-filter: saturate(180%) blur(20px);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
    z-index: 1000;
    transition: background 0.5s ease;
}

.nav-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    letter-spacing: 0.06em;
    transition: opacity var(--transition);
}

.nav-logo:hover {
    text-decoration: none;
    opacity: 0.6;
}

.nav-studio-logo {
    flex-shrink: 0;
    letter-spacing: 0.015em;
    text-transform: none;
    white-space: nowrap;
}

.nav-brand-group {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-community {
    position: relative;
    font-size: 12px;
}

.nav-community summary {
    display: flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--text-primary) 7%, var(--bg));
    list-style: none;
    cursor: pointer;
    color: color-mix(in srgb, var(--text-primary) 70%, var(--bg));
    font-weight: 500;
    line-height: 18px;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.nav-community summary::-webkit-details-marker {
    display: none;
}

.nav-community summary:hover,
.nav-community[open] summary {
    color: var(--text-primary);
    background: color-mix(in srgb, var(--text-primary) 11%, var(--bg));
}

.nav-community-popup {
    position: absolute;
    top: calc(100% + 6px);
    left: -100px;
    width: 220px;
    padding: 16px;
    display: grid;
    gap: 10px;
    text-align: center;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text-secondary);
}

.nav-community-popup img {
    width: 100%;
    height: auto;
    border-radius: 6px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 32px;
}

@media (min-width: 769px) and (max-width: 950px) {
    .nav-inner { padding-inline: 16px; }
    .nav-brand-group { gap: 6px; }
    .nav-studio-logo { font-size: 16px; }
    .nav-community { font-size: 10px; }
    .nav-community summary { padding: 3px 6px; }
    .nav-links { gap: 10px; }
    .nav-links .nav-link { font-size: 12px; }
    .nav-actions .nav-utility-toggle { padding-inline: 4px; }
    .nav-actions .btn-sm { padding-inline: 10px; }
}

.nav-link {
    font-size: 13px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: color var(--transition);
    font-weight: 400;
    letter-spacing: 0.01em;
    position: relative;
    padding: 4px 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 1.5px;
    background: var(--accent);
    border-radius: 1px;
    transition: width 0.35s var(--ease-out), left 0.35s var(--ease-out);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
    left: 0;
}

.nav-link:hover,
.nav-link.active {
    color: var(--text-primary);
    text-decoration: none;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 4px;
}

.nav-utility-menu {
    position: relative;
    flex-shrink: 0;
}

.nav-mobile-utilities {
    display: none;
}

.nav-utility-toggle {
    min-height: 36px;
    padding: 0 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background var(--transition), color var(--transition);
}

.nav-utility-toggle:hover,
.nav-utility-toggle[aria-expanded="true"] {
    background: var(--card-bg);
    color: var(--text-primary);
}

.nav-utility-toggle:focus-visible,
.nav-utility-popover a:focus-visible,
.nav-utility-popover button:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.24);
}

.nav-utility-chevron {
    transition: transform var(--transition);
}

.nav-utility-toggle[aria-expanded="true"] .nav-utility-chevron {
    transform: rotate(180deg);
}

.nav-utility-popover {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 224px;
    padding: 8px;
    border-radius: 12px;
    background: var(--bg-elevated);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28);
    z-index: 1100;
}

.nav-utility-popover[hidden] {
    display: none;
}

.help-menu {
    width: 184px;
}

.nav-menu-section + .nav-menu-section {
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px solid var(--border);
}

.nav-menu-label {
    display: block;
    padding: 4px 10px 6px;
    color: var(--text-tertiary);
    font-size: 12px;
    line-height: 1.3;
}

.nav-menu-row {
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text-secondary);
    font: inherit;
    font-size: 13px;
    line-height: 1.35;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
}

.nav-menu-row:hover {
    background: var(--card-bg);
    color: var(--text-primary);
    text-decoration: none;
}

.nav-menu-row[aria-current="true"] {
    color: var(--accent);
    font-weight: 600;
}

.nav-menu-row[aria-current="true"]::after {
    content: '✓';
    margin-left: 12px;
}

.nav-menu-action {
    justify-content: flex-start;
    gap: 10px;
}

.nav-menu-action svg {
    flex-shrink: 0;
}

.appearance-options {
    padding: 0 4px 4px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 4px;
}

.appearance-options button {
    min-width: 0;
    min-height: 32px;
    padding: 6px 4px;
    border: 0;
    border-radius: 7px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font: inherit;
    font-size: 12px;
    cursor: pointer;
}

.appearance-options button:hover {
    color: var(--text-primary);
}

.appearance-options button[aria-pressed="true"] {
    background: var(--text-primary);
    color: var(--bg);
    font-weight: 600;
}

.license-intro {
    margin-bottom: 20px;
}

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition), transform 0.4s var(--ease-out);
    width: 36px;
    height: 36px;
    border-radius: 50%;
}

.theme-toggle:hover {
    color: var(--text-primary);
    transform: rotate(45deg);
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-primary);
}

.mobile-menu-btn svg {
    display: block;
}

/* ============================================
   Buttons — Poster style
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 17px;
    font-weight: 400;
    border-radius: 980px;
    padding: 14px 28px;
    cursor: pointer;
    border: none;
    transition: all var(--transition);
    text-decoration: none;
    line-height: 1.17648;
    white-space: nowrap;
    font-family: inherit;
    position: relative;
    overflow: hidden;
}

.btn:hover {
    text-decoration: none;
}

.btn-primary {
    background: var(--accent);
    color: #ffffff;
}

.btn-primary:hover {
    background: var(--accent-hover);
    color: #ffffff;
    transform: scale(1.04);
    box-shadow: 0 4px 24px rgba(41, 151, 255, 0.3);
}

[data-theme="light"] .btn-primary:hover {
    box-shadow: 0 4px 24px rgba(0, 113, 227, 0.25);
}


.btn-secondary {
    background: transparent;
    color: var(--accent);
    padding: 14px 0;
}

.btn-secondary:hover {
    text-decoration: underline;
}

.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

[data-theme="light"] .btn-ghost {
    background: rgba(0, 0, 0, 0.04);
}

.btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
    transform: scale(1.02);
}

[data-theme="light"] .btn-ghost:hover {
    background: rgba(0, 0, 0, 0.08);
}

.btn-disabled {
    background: var(--card-bg);
    color: var(--text-tertiary);
    cursor: not-allowed;
}

.btn-sm {
    font-size: 14px;
    padding: 10px 20px;
}

.btn-lg {
    font-size: 17px;
    padding: 16px 36px;
    font-weight: 400;
}

/* ============================================
   Cards — Poster glass style
   ============================================ */
.card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 32px 28px;
    transition: background var(--transition), transform 0.4s var(--ease-out), border-color var(--transition);
    position: relative;
    overflow: hidden;
}

.card-hover:hover {
    background: var(--card-hover);
    transform: translateY(-4px);
    border-color: rgba(255, 255, 255, 0.14);
}

[data-theme="light"] .card-hover:hover {
    border-color: rgba(0, 0, 0, 0.1);
}

.card-clickable {
    cursor: pointer;
}

.card-number {
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    margin-bottom: 16px;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.card-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
    margin-bottom: 10px;
    line-height: 1.19048;
}

.card-description {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-arrow {
    margin-top: 20px;
    color: var(--accent);
    font-size: 14px;
    font-weight: 400;
    transition: transform 0.35s var(--ease-out);
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.card-hover:hover .card-arrow {
    transform: translateX(6px);
}

/* Card shimmer */
.card-hover::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.03), transparent);
    transition: left 0.7s ease;
    pointer-events: none;
}

.card-hover:hover::before {
    left: 120%;
}

/* ============================================
   Hero Section — POSTER STYLE
   ============================================ */
.hero {
    min-height: auto;
    padding: 140px 0 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
}

/* Atmospheric background glow */
.hero::before {
    content: '';
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(59, 130, 246, 0.06) 40%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
    animation: glow-pulse 6s ease-in-out infinite;
}

[data-theme="light"] .hero::before {
    background: radial-gradient(circle, rgba(99, 102, 241, 0.06) 0%, rgba(59, 130, 246, 0.03) 40%, transparent 70%);
}


@keyframes glow-pulse {
    0%, 100% { opacity: 0.6; transform: translate(-50%, -50%) scale(1); }
    50% { opacity: 1; transform: translate(-50%, -50%) scale(1.15); }
}

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-stage {
    position: relative;
    width: fit-content;
    margin: 0 auto 20px;
    isolation: isolate;
}

.hero-title {
    position: relative;
    z-index: 2;
    transition: transform 0.65s var(--ease-out), filter 0.65s var(--ease-out);
}

.hero-title::after {
    content: '';
    position: absolute;
    inset: auto 12% -10px;
    height: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, 0.18));
    filter: blur(18px);
    opacity: 0.55;
    z-index: -1;
}

.hero .headline-poster {
    margin-bottom: 0;
}

.hero .subheadline {
    margin-bottom: 24px;
    max-width: 460px;
    margin-left: auto;
    margin-right: auto;
}

.hero-security-copy {
    max-width: 620px;
    margin: 0 auto 36px;
    padding-top: 18px;
    position: relative;
}

.hero-security-copy::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: min(180px, 38%);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, rgba(34, 197, 94, 0), rgba(34, 197, 94, 0.5), rgba(34, 197, 94, 0));
}

.hero-security-kicker {
    margin-bottom: 10px;
    color: rgba(34, 197, 94, 0.92);
    letter-spacing: 0.16em;
}

.hero-security-text {
    font-size: clamp(20px, 2.4vw, 28px);
    line-height: 1.3;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    margin-bottom: 10px;
}

.hero-security-note {
    max-width: 520px;
    margin: 0 auto;
    font-size: 15px;
    line-height: 1.65;
    color: var(--text-secondary);
}

.hero-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 56px;
}

.hero-stat {
    font-size: 13px;
    color: var(--text-tertiary);
    letter-spacing: 0.02em;
}

.hero-stat-number {
    font-weight: 600;
    color: var(--text-secondary);
    font-variant-numeric: tabular-nums;
}

[data-theme="light"] .hero-security-copy {
    color: inherit;
}

[data-theme="light"] .hero-security-copy::before {
    background: linear-gradient(90deg, rgba(22, 163, 74, 0), rgba(22, 163, 74, 0.32), rgba(22, 163, 74, 0));
}

[data-theme="light"] .hero-title::after {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(147, 197, 253, 0.22));
}

/* ============================================
   Download Page
   ============================================ */
.download-header {
    text-align: center;
    padding-top: 140px;
    padding-bottom: 10px;
    position: relative;
}

/* Glow */
.download-header::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 500px;
    height: 400px;
    background: radial-gradient(ellipse, rgba(59, 130, 246, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

[data-theme="light"] .download-header::before {
    background: radial-gradient(ellipse, rgba(37, 99, 235, 0.04) 0%, transparent 70%);
}


.download-version {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 36px;
    margin-bottom: 10px;
}

.download-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-tertiary);
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.download-meta-sep {
    opacity: 0.3;
}

.download-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 80px;
}

.download-btn {
    min-width: 280px;
    width: 280px;
}

/* Release Notes */
.release-notes {
    padding-bottom: 80px;
}

.release-notes-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 24px;
    letter-spacing: -0.015em;
}

.release-notes-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 28px 32px;
    max-height: 420px;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.release-notes-card::-webkit-scrollbar {
    display: none;
}



.release-notes-content {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    white-space: pre-line;
}

.release-notes-content h1,
.release-notes-content h2,
.release-notes-content h3 {
    font-weight: 600;
    color: var(--text-primary);
    margin-top: 24px;
    margin-bottom: 10px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
}

.release-notes-content h1:first-child,
.release-notes-content h2:first-child,
.release-notes-content h3:first-child {
    margin-top: 0;
    padding-top: 0;
    border-top: none;
}

.release-notes-content h1 { font-size: 21px; }
.release-notes-content h2 { font-size: 19px; }
.release-notes-content h3 { font-size: 17px; }

.release-notes-content p {
    margin-bottom: 10px;
}

.release-notes-content ul,
.release-notes-content ol {
    padding-left: 22px;
    margin-bottom: 12px;
}

.release-notes-content li {
    margin-bottom: 6px;
}

.release-notes-content li::marker {
    color: var(--text-tertiary);
}

.release-notes-content strong {
    color: var(--text-primary);
    font-weight: 600;
}

.release-notes-content code {
    background: var(--bg);
    border: 1px solid var(--border);
    padding: 1px 5px;
    border-radius: 4px;
    font-size: 13px;
    font-family: "SF Mono", Menlo, monospace;
}

/* ============================================
   Modal
   ============================================ */
.modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: var(--modal-overlay);
    z-index: 2000;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--bg-elevated);
    border-radius: 20px;
    width: 100%;
    max-width: 520px;
    max-height: 85vh;
    overflow-y: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5);
    border: 1px solid var(--border);
}

.modal-card::-webkit-scrollbar {
    display: none;
}

[data-theme="light"] .modal-card {
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.12);
}

.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 22px 24px 0;
}

.modal-title {
    font-size: 21px;
    font-weight: 600;
    color: var(--text-primary);
    letter-spacing: -0.01em;
}

.modal-close {
    background: var(--card-bg);
    border: 1px solid var(--border);
    cursor: pointer;
    color: var(--text-secondary);
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    transition: all var(--transition);
    flex-shrink: 0;
}

.modal-close:hover {
    background: var(--card-hover);
    color: var(--text-primary);
}

.modal-body {
    padding: 20px 24px 28px;
}

.modal-card-lg {
    max-width: 720px;
}

#feedbackModal.modal-overlay {
    background: transparent;
}

#feedbackModal.modal-overlay.active {
    display: block;
}

#feedbackModal .modal-card {
    position: fixed;
    top: var(--floating-top, 68px);
    left: var(--floating-left, 16px);
    width: var(--floating-width, min(520px, calc(100vw - 32px)));
    max-width: none;
    max-height: calc(100dvh - var(--floating-top, 68px) - 16px);
}

/* Markdown */
.markdown-content {
    font-size: 15px;
    line-height: 1.7;
    color: var(--text-secondary);
}

.markdown-content h1, .markdown-content h2,
.markdown-content h3, .markdown-content h4 {
    color: var(--text-primary);
    margin-top: 28px;
    margin-bottom: 12px;
    font-weight: 600;
}

.markdown-content h1 { font-size: 28px; letter-spacing: -0.015em; }
.markdown-content h2 { font-size: 22px; letter-spacing: -0.01em; }
.markdown-content h3 { font-size: 17px; }
.markdown-content h4 { font-size: 15px; }

.markdown-content h1:first-child,
.markdown-content h2:first-child,
.markdown-content h3:first-child { margin-top: 0; }

.markdown-content p { margin-bottom: 14px; }

.markdown-content ul, .markdown-content ol {
    padding-left: 24px;
    margin-bottom: 14px;
}

.markdown-content li { margin-bottom: 6px; }

.markdown-content code {
    background: var(--card-bg);
    padding: 2px 6px;
    border-radius: 5px;
    font-size: 14px;
    font-family: "SF Mono", "Fira Code", Menlo, monospace;
    border: 1px solid var(--border);
}

.markdown-content pre {
    background: var(--card-bg);
    padding: 16px 20px;
    border-radius: 12px;
    overflow-x: auto;
    margin-bottom: 16px;
    border: 1px solid var(--border);
}

.markdown-content pre code {
    background: none;
    padding: 0;
    border: none;
}

.markdown-content strong { color: var(--text-primary); font-weight: 600; }

.markdown-content blockquote {
    border-left: 3px solid var(--accent);
    padding-left: 16px;
    margin: 16px 0;
    color: var(--text-tertiary);
}

/* ============================================
   Form
   ============================================ */
.form-group { margin-bottom: 20px; }

.form-label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: 6px;
    letter-spacing: 0em;
}

.form-required { color: #ff453a; }

.form-input,
.form-select,
.form-textarea {
    width: 100%;
    font-size: 15px;
    padding: 11px 14px;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    outline: none;
    transition: border-color var(--transition), box-shadow var(--transition);
    font-family: inherit;
    -webkit-appearance: none;
    appearance: none;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(41, 151, 255, 0.2);
}

[data-theme="light"] .form-input:focus,
[data-theme="light"] .form-select:focus,
[data-theme="light"] .form-textarea:focus {
    box-shadow: 0 0 0 3px rgba(0, 113, 227, 0.12);
}

.form-textarea {
    resize: vertical;
    min-height: 120px;
}

.form-error {
    font-size: 13px;
    color: #ff453a;
    margin-top: 6px;
    display: none;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 24px;
}

/* Tabs */
.tabs {
    display: flex;
    margin-bottom: 24px;
    border-bottom: 1px solid var(--border);
}

.tab-btn {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-tertiary);
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all var(--transition);
    margin-bottom: -1px;
    font-family: inherit;
}

.tab-btn.active {
    color: var(--text-primary);
    border-bottom-color: var(--accent);
}

.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Feedback items */
.feedback-item {
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}

.feedback-item:last-child { border-bottom: none; }

.feedback-item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.feedback-type {
    font-size: 12px;
    font-weight: 500;
    padding: 3px 10px;
    border-radius: 980px;
    background: var(--card-bg);
    color: var(--text-secondary);
    border: 1px solid var(--border);
}

.feedback-status {
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 980px;
    letter-spacing: 0.02em;
}

.feedback-status-pending { background: rgba(251, 191, 36, 0.12); color: #fbbf24; }
.feedback-status-processing { background: rgba(96, 165, 250, 0.12); color: #60a5fa; }
.feedback-status-completed { background: rgba(52, 211, 153, 0.12); color: #34d399; }

[data-theme="light"] .feedback-status-pending { background: #fef3c7; color: #92400e; }
[data-theme="light"] .feedback-status-processing { background: #dbeafe; color: #1e40af; }
[data-theme="light"] .feedback-status-completed { background: #d1fae5; color: #065f46; }

.feedback-content {
    font-size: 15px;
    color: var(--text-primary);
    margin-bottom: 8px;
    line-height: 1.5;
}

.feedback-reply {
    font-size: 14px;
    color: var(--text-secondary);
    padding: 12px 16px;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    margin-top: 8px;
    line-height: 1.5;
}

.feedback-time {
    font-size: 12px;
    color: var(--text-tertiary);
}

/* ============================================
   Footer
   ============================================ */
.footer {
    margin-top: auto;
    padding: 20px 0;
    border-top: 1px solid var(--border);
}

.footer-inner {
    max-width: 980px;
    margin: 0 auto;
    padding: 0 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.footer-text {
    font-size: 12px;
    color: var(--text-tertiary);
}

.footer-text a {
    color: var(--text-tertiary);
}

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

.footer-links {
    display: flex;
    align-items: center;
    gap: 16px;
}

.footer-link {
    font-size: 12px;
    color: var(--text-tertiary);
}

.footer-link:hover {
    color: var(--text-secondary);
    text-decoration: none;
}

.qr-trigger {
    position: relative;
    cursor: pointer;
    font-size: 12px;
    color: var(--text-tertiary);
    transition: color var(--transition);
}

.qr-trigger:hover {
    color: var(--text-secondary);
}

.qr-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    right: 0;
    margin-bottom: 10px;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,0.4);
    text-align: center;
    z-index: 100;
}

[data-theme="light"] .qr-popup {
    box-shadow: 0 12px 40px rgba(0,0,0,0.1);
}

.qr-popup.show {
    display: block;
}

.qr-popup img {
    width: 160px;
    height: auto;
    border-radius: 10px;
    aspect-ratio: auto;
}

.qr-popup-label {
    font-size: 11px;
    color: var(--text-tertiary);
    margin-top: 8px;
}

/* ============================================
   Animations
   ============================================ */

/* Fade up */
.fade-in {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 1s var(--ease-out), transform 1s var(--ease-out);
}

/* Only hide offscreen elements after the animation observer is ready. */
.fade-in.reveal-pending:not(.visible) {
    opacity: 0;
    transform: translateY(30px);
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Scale in */
.scale-in {
    opacity: 1;
    transform: scale(1);
    transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out);
}

.scale-in.visible {
    opacity: 1;
    transform: scale(1);
}

/* Stagger children */
.fade-in-group > .fade-in:nth-child(1) { transition-delay: 0s; }
.fade-in-group > .fade-in:nth-child(2) { transition-delay: 0.1s; }
.fade-in-group > .fade-in:nth-child(3) { transition-delay: 0.2s; }
.fade-in-group > .fade-in:nth-child(4) { transition-delay: 0.3s; }
.fade-in-group > .fade-in:nth-child(5) { transition-delay: 0.4s; }
.fade-in-group > .fade-in:nth-child(6) { transition-delay: 0.5s; }
.fade-in-group > .fade-in:nth-child(7) { transition-delay: 0.6s; }
.fade-in-group > .fade-in:nth-child(8) { transition-delay: 0.7s; }

/* ============================================
   Toast
   ============================================ */
.toast {
    position: fixed;
    top: 76px;
    left: 50%;
    transform: translateX(-50%) translateY(-16px);
    background: var(--text-primary);
    color: var(--bg);
    padding: 10px 24px;
    border-radius: 980px;
    font-size: 14px;
    font-weight: 500;
    z-index: 3000;
    opacity: 0;
    transition: all 0.35s var(--ease-out);
    pointer-events: none;
    white-space: nowrap;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ============================================
   Website Support Chat
   ============================================ */
.support-widget {
    position: fixed;
    top: var(--floating-top, 68px);
    left: var(--floating-left, 16px);
    right: auto;
    bottom: auto;
    width: var(--floating-width, min(520px, calc(100vw - 32px)));
    z-index: 1100;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
}

.support-fab {
    height: 48px;
    min-width: 96px;
    padding: 0 18px;
    border: 1px solid var(--border);
    border-radius: 999px;
    background: var(--accent);
    color: #fff;
    display: none;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
    box-shadow: 0 12px 32px rgba(41, 151, 255, 0.28);
    transition: transform var(--transition), background var(--transition);
}

.support-fab:hover {
    transform: translateY(-2px);
    background: var(--accent-hover);
}

.support-fab svg {
    width: 18px;
    height: 18px;
}

.support-widget.open .support-fab {
    display: none;
}

.support-panel {
    width: 100%;
    height: min(560px, calc(100dvh - 88px));
    max-height: calc(100dvh - 88px);
    display: none;
    overflow: hidden;
    border: 1px solid var(--border);
    border-radius: 20px;
    background: var(--bg-elevated);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.35);
}

.support-widget.open .support-panel {
    display: flex;
    flex-direction: column;
}

.support-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--border);
}

.support-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text-primary);
}

.support-status {
    margin-top: 2px;
    font-size: 12px;
    color: var(--text-tertiary);
}

.support-close {
    width: 32px;
    height: 32px;
    border: 1px solid var(--border);
    border-radius: 50%;
    background: var(--card-bg);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.support-close svg {
    width: 16px;
    height: 16px;
}

.support-messages {
    flex: 1;
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.support-message {
    display: flex;
}

.support-message-user {
    justify-content: flex-end;
}

.support-message-admin {
    justify-content: flex-start;
}

.support-bubble {
    max-width: 82%;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.45;
    word-break: break-word;
    white-space: pre-wrap;
}

.support-message-user .support-bubble {
    background: var(--accent);
    color: #fff;
}

.support-message-admin .support-bubble {
    background: var(--card-bg);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.support-message-user .support-bubble-image,
.support-message-admin .support-bubble-image {
    padding: 0;
    background: transparent;
    border: none;
}

.support-bubble img {
    max-width: 240px;
    max-height: 260px;
    border-radius: 6px;
    display: block;
}

.support-compose {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-top: 1px solid var(--border);
}

.support-file-input {
    display: none;
}

.support-pending[hidden] {
    display: none;
}

.support-pending {
    display: flex;
    justify-content: flex-start;
}

.support-pending-card {
    position: relative;
    width: 104px;
    height: 72px;
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    background: var(--card-bg);
}

.support-pending-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.support-pending-remove {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 22px;
    height: 22px;
    border: none;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.58);
    color: #fff;
    font-size: 16px;
    line-height: 22px;
    cursor: pointer;
    padding: 0;
}

.support-compose-row {
    display: flex;
    align-items: flex-end;
    gap: 8px;
}

.support-attach {
    width: 44px;
    height: 44px;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-secondary);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    padding: 0;
}

.support-attach:hover {
    color: var(--text-primary);
    border-color: var(--accent);
}

.support-attach:disabled,
.support-send:disabled {
    opacity: 0.55;
    cursor: not-allowed;
}

.support-attach svg {
    width: 18px;
    height: 18px;
}

.support-input {
    flex: 1;
    height: 44px;
    min-height: 44px;
    max-height: 96px;
    resize: none;
    border: 1px solid var(--input-border);
    border-radius: 8px;
    background: var(--input-bg);
    color: var(--text-primary);
    padding: 10px 12px;
    font: inherit;
    font-size: 14px;
    outline: none;
}

.support-send {
    width: 64px;
    height: 44px;
    border: none;
    border-radius: 8px;
    background: var(--accent);
    color: #fff;
    font: inherit;
    font-size: 14px;
    cursor: pointer;
}

.support-send:hover {
    background: var(--accent-hover);
}

/* ============================================
   ConTavern Privacy Policy
   ============================================ */
.privacy-main {
    width: 100%;
    padding: clamp(116px, 16vw, 168px) 0 80px;
}

.privacy-page {
    --privacy-prose: rgba(255, 255, 255, 0.68);
    --privacy-detail: rgba(255, 255, 255, 0.48);
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .privacy-page {
        --privacy-prose: rgba(0, 0, 0, 0.68);
        --privacy-detail: rgba(0, 0, 0, 0.55);
    }
}

[data-theme="light"] .privacy-page {
    --privacy-prose: rgba(0, 0, 0, 0.68);
    --privacy-detail: rgba(0, 0, 0, 0.55);
}

.privacy-hero {
    padding-bottom: clamp(48px, 7vw, 72px);
}

.privacy-product {
    margin-bottom: 18px;
    color: var(--accent);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
}

.privacy-title {
    max-width: 700px;
    color: var(--text-primary);
    font-size: clamp(48px, 8vw, 80px);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 0.98;
    text-wrap: balance;
}

.privacy-lead {
    max-width: 680px;
    margin-top: 30px;
    color: var(--privacy-prose);
    font-size: clamp(19px, 2.6vw, 25px);
    line-height: 1.55;
}

.privacy-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 48px;
    margin-top: 38px;
}

.privacy-meta div {
    display: flex;
    gap: 12px;
    font-size: 14px;
}

.privacy-meta dt {
    color: var(--privacy-detail);
}

.privacy-meta dd {
    color: var(--privacy-prose);
}

.privacy-facts {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    max-width: 980px;
    margin: 0 auto;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}

.privacy-fact {
    min-width: 0;
    padding: 30px 28px;
}

.privacy-fact + .privacy-fact {
    border-left: 1px solid var(--border);
}

.privacy-fact strong,
.privacy-fact span {
    display: block;
}

.privacy-fact strong {
    margin-bottom: 9px;
    color: var(--text-primary);
    font-size: 16px;
}

.privacy-fact span {
    color: var(--privacy-prose);
    font-size: 14px;
    line-height: 1.65;
}

.privacy-content {
    padding-top: 32px;
}

.privacy-section {
    padding: clamp(34px, 5vw, 52px) 0;
    border-bottom: 1px solid var(--border);
}

.privacy-section:last-child {
    border-bottom: 0;
}

.privacy-section h2 {
    margin-bottom: 22px;
    color: var(--text-primary);
    font-size: clamp(25px, 3vw, 32px);
    letter-spacing: -0.02em;
    line-height: 1.25;
    text-wrap: balance;
}

.privacy-section h3 {
    margin: 30px 0 10px;
    color: var(--text-primary);
    font-size: 18px;
    line-height: 1.4;
    text-wrap: balance;
}

.privacy-section h2 + h3 {
    margin-top: 0;
}

.privacy-section p,
.privacy-section li {
    color: var(--privacy-prose);
    font-size: 17px;
    line-height: 1.85;
    text-wrap: pretty;
}

.privacy-section p + p {
    margin-top: 16px;
}

.privacy-section ul {
    margin-top: 18px;
    padding-left: 1.25em;
}

.privacy-section li + li {
    margin-top: 10px;
}

.privacy-section a {
    text-underline-offset: 3px;
}

/* ============================================
   Responsive
   ============================================ */
@media (max-width: 768px) {
    .privacy-main {
        padding: 108px 0 56px;
    }

    .privacy-facts {
        grid-template-columns: 1fr;
        margin: 0 24px;
    }

    .privacy-fact {
        padding: 24px 0;
    }

    .privacy-fact + .privacy-fact {
        border-top: 1px solid var(--border);
        border-left: 0;
    }

    .privacy-meta {
        flex-direction: column;
        gap: 8px;
    }

    .privacy-section p,
    .privacy-section li {
        font-size: 16px;
        line-height: 1.8;
    }

    .hero {
        min-height: auto;
        padding: 120px 0 40px;
    }

    .hero-stage {
        margin-bottom: 16px;
    }

    .hero-security-copy {
        max-width: 520px;
        padding-top: 16px;
        margin-bottom: 28px;
    }

    .hero-security-text {
        font-size: 22px;
        line-height: 1.35;
    }

    .hero-security-note {
        font-size: 14px;
    }

    .download-header {
        padding-top: 100px;
    }

    .card {
        padding: 24px 22px;
        border-radius: 16px;
    }

    .download-btn {
        min-width: 240px;
        width: 240px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 10px;
        text-align: center;
    }

    .nav-inner {
        padding: 0 16px;
    }

    .nav-actions {
        gap: 4px;
        flex-shrink: 0;
    }

    .nav-actions .btn-sm {
        padding: 9px 16px;
    }

    .nav-preferences-desktop,
    .nav-help-desktop {
        display: none;
    }

    .nav-links {
        display: none;
    }

    .nav-links.open {
        display: flex;
        flex-direction: column;
        position: absolute;
        top: 56px;
        left: 0;
        right: 0;
        background: var(--bg);
        border-bottom: 1px solid var(--border);
        padding: 20px 24px;
        gap: 16px;
        max-height: calc(100dvh - 56px);
        overflow-y: auto;
    }

    .nav-links.open .nav-mobile-utilities {
        width: 100%;
        padding-top: 14px;
        display: grid;
        gap: 8px;
        border-top: 1px solid var(--border);
    }

    .nav-mobile-utilities .nav-utility-toggle {
        width: 100%;
        padding: 8px 4px;
        justify-content: flex-start;
        color: var(--text-primary);
        font-size: 13px;
    }

    .nav-mobile-utilities .nav-utility-chevron {
        margin-left: auto;
    }

    .nav-mobile-utilities .nav-utility-popover {
        position: static;
        width: 100%;
        margin-top: 4px;
        background: var(--card-bg);
        box-shadow: none;
        border: 1px solid var(--border);
    }

    .mobile-menu-btn {
        display: block;
    }

    .support-widget {
        top: var(--floating-top, 64px);
        left: var(--floating-left, 16px);
        right: auto;
        bottom: auto;
        align-items: stretch;
    }

    .support-panel {
        width: 100%;
        height: min(560px, calc(100dvh - 80px));
        max-height: calc(100dvh - 80px);
    }
}

@media (max-width: 480px) {
    .nav-brand-group {
        gap: 6px;
    }

    .nav-community {
        font-size: 10px;
    }

    .nav-community summary {
        min-height: 24px;
        padding: 3px 6px;
    }

    .nav-actions {
        gap: 8px;
    }

    .nav-actions .btn-sm {
        padding: 8px 14px;
    }

    .support-widget {
        top: var(--floating-top, 62px);
        left: var(--floating-left, 10px);
        right: auto;
    }

    .support-panel {
        height: min(560px, calc(100dvh - 74px));
        max-height: calc(100dvh - 74px);
    }

    .hero .subheadline {
        margin-bottom: 18px;
    }

    .hero-security-copy {
        max-width: 320px;
        padding-top: 14px;
        margin-bottom: 24px;
    }

    .hero-security-kicker {
        margin-bottom: 8px;
        letter-spacing: 0.14em;
    }

    .hero-security-text {
        font-size: 18px;
        line-height: 1.34;
        margin-bottom: 8px;
    }

    .hero-security-note {
        font-size: 13px;
        line-height: 1.58;
    }

    .hero-cta {
        flex-direction: column;
        gap: 12px;
    }

    .download-meta {
        flex-direction: column;
        gap: 4px;
    }

    .download-meta-sep {
        display: none;
    }

    .download-btn {
        min-width: 100%;
        width: 100%;
    }
}

/* ============================================
   Conven Account — product surface
   ============================================ */
.account-auth-page,
.account-product-page {
    --account-muted: rgba(255, 255, 255, 0.68);
    --account-danger: #ff6961;
    --account-success: #42c77a;
    color: var(--text-primary);
}

.account-auth-page {
    background: var(--bg);
}

.account-product-page {
    background: var(--bg);
}

[data-theme="light"] .account-auth-page,
[data-theme="light"] .account-product-page {
    --account-muted: #5f5f66;
    --account-danger: #b42318;
    --account-success: #167c3a;
}

.auth-shell {
    width: 100%;
    flex: 1;
    min-height: max(100dvh, 900px);
    padding: 96px 24px 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.auth-stage {
    width: min(100%, 980px);
    min-height: 650px;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(340px, 0.92fr);
    align-items: center;
    gap: 72px;
}

.auth-brand {
    min-height: 480px;
    padding-top: 160px;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    isolation: isolate;
}

.auth-color-field {
    position: absolute;
    left: -140px;
    top: 50%;
    width: 600px;
    height: 600px;
    transform: translateY(-50%);
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 34%, rgba(110, 231, 183, 0.24), transparent 34%),
        radial-gradient(circle at 70% 35%, rgba(59, 130, 246, 0.26), transparent 38%),
        radial-gradient(circle at 57% 72%, rgba(167, 139, 250, 0.23), transparent 38%),
        radial-gradient(circle at 24% 70%, rgba(244, 114, 182, 0.15), transparent 34%);
    filter: blur(24px) saturate(1.15);
    opacity: 0.78;
    z-index: -1;
    pointer-events: none;
    animation: auth-color-drift 9s ease-in-out infinite;
}

[data-theme="light"] .auth-color-field {
    opacity: 0.48;
    filter: blur(30px) saturate(1.05);
}

@keyframes auth-color-drift {
    0%, 100% { transform: translateY(-50%) rotate(-5deg) scale(0.94); }
    50% { transform: translate(22px, -52%) rotate(7deg) scale(1.06); }
}

.auth-brand-word {
    width: fit-content;
    font-size: clamp(72px, 8vw, 96px);
    font-weight: 700;
    line-height: 0.95;
    letter-spacing: -0.03em;
}

.auth-login-brand {
    max-width: 500px;
    font-size: clamp(54px, 6vw, 76px);
    line-height: 0.98;
}

.auth-login-brand span {
    display: block;
}

.auth-brand > p {
    max-width: 360px;
    margin-top: 26px;
    color: var(--text-secondary);
    font-size: 22px;
    line-height: 1.45;
    letter-spacing: -0.015em;
    text-wrap: balance;
}

.auth-form-panel {
    padding-left: 72px;
    border-left: 1px solid var(--border);
}

.auth-heading {
    margin-bottom: 34px;
}

.auth-heading :is(h1, h2) {
    margin: 0;
    font-size: 40px;
    line-height: 1.08;
    letter-spacing: -0.03em;
    text-wrap: balance;
}

.auth-heading p:last-child,
.panel-heading p,
.account-email {
    margin-top: 10px;
    color: var(--account-muted);
    font-size: 15px;
    line-height: 1.55;
}

.account-form {
    display: grid;
    gap: 18px;
}

.account-field {
    display: grid;
    gap: 8px;
}

.account-field label,
.recharge-form > label {
    font-size: 14px;
    font-weight: 600;
}

.account-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    font-size: 14px;
}

.account-label-row a {
    font-size: 13px;
}

.account-field input,
.amount-input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--input-bg);
    color: var(--text-primary);
    font: inherit;
}

.account-auth-page .account-field input {
    background: var(--bg-secondary);
}

.account-field input {
    padding: 11px 13px;
    outline: none;
}

.account-field input::placeholder,
.amount-input input::placeholder {
    color: var(--text-tertiary);
}

.account-auth-page .account-field input::placeholder {
    color: var(--account-muted);
}

.account-field input:focus-visible,
.amount-input:focus-within,
.account-auth-page .btn:focus-visible,
.account-product-page .btn:focus-visible,
.account-product-page .theme-toggle:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
    outline-offset: 2px;
    border-color: var(--accent);
}

.verification-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
}

.code-button {
    min-width: 118px;
    min-height: 48px;
    padding: 0 16px;
    background: var(--bg-secondary);
    border: 1px solid var(--input-border);
    border-radius: 12px;
    white-space: nowrap;
}

.code-button:hover {
    background: var(--card-hover);
    text-decoration: none;
}

.field-hint {
    color: var(--account-muted);
    font-size: 12px;
    line-height: 1.45;
}

.account-message {
    min-height: 21px;
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.5;
}

.account-message.is-error {
    color: var(--account-danger);
}

.account-message.is-success {
    color: var(--account-success);
}

.account-submit {
    width: 100%;
    min-height: 48px;
}

.account-auth-page .btn:disabled,
.account-product-page .btn:disabled {
    cursor: not-allowed;
    opacity: 0.55;
    transform: none;
}

.auth-switch {
    margin-top: 24px;
    color: var(--account-muted);
    font-size: 14px;
}

.account-shell {
    width: min(100%, 980px);
    margin: 0 auto;
    padding: 56px 24px clamp(72px, 9vw, 112px);
}

.account-products {
    min-height: 0;
    padding: clamp(30px, 4.5vw, 46px) 0;
    display: grid;
    grid-template-columns: minmax(300px, 0.8fr) minmax(0, 1.2fr);
    align-items: center;
    gap: clamp(36px, 6vw, 64px);
    border-top: 1px solid var(--border);
}

.account-products-heading {
    min-width: 0;
}

.account-products-title,
.account-display {
    font-weight: 700;
    text-wrap: balance;
}

.account-products-title {
    width: fit-content;
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
    letter-spacing: -0.03em;
}

.account-products-heading p {
    max-width: 420px;
    margin-top: 14px;
    color: var(--account-muted);
    font-size: 17px;
    line-height: 1.6;
    text-wrap: pretty;
}

.account-product-list {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: start;
    gap: 24px;
}

.account-product-item {
    min-width: 0;
    display: grid;
    gap: 10px;
    align-content: start;
}

.account-product-icon {
    width: 84px;
    height: 84px;
    border: 1px solid var(--border);
    border-radius: 14px;
    object-fit: cover;
}

.account-product-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.account-product-copy strong {
    overflow: hidden;
    font-size: 15px;
    line-height: 1.3;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-product-copy span,
.account-product-copy small {
    overflow: hidden;
    color: var(--account-muted);
    font-size: 12px;
    line-height: 1.4;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-products-empty {
    grid-column: 1 / -1;
    max-width: 360px;
    color: var(--account-muted);
    font-size: 14px;
    line-height: 1.6;
}

.account-products-empty.is-error {
    color: var(--account-danger);
}

.account-page-header {
    min-height: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(230px, auto);
    align-items: end;
    gap: 48px;
    padding-top: clamp(76px, 9vw, 112px);
    padding-bottom: clamp(52px, 7vw, 76px);
}

.account-display {
    max-width: 720px;
    margin: 0;
    font-size: clamp(48px, 7vw, 72px);
    line-height: 1.02;
    letter-spacing: -0.04em;
}

.account-page-header .account-email {
    max-width: 650px;
    margin-top: 22px;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.6;
    text-wrap: pretty;
}

.account-page-actions {
    margin-top: 22px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.account-page-actions .btn {
    min-height: 36px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.account-page-actions svg {
    flex-shrink: 0;
}

.account-logout-button:hover {
    color: var(--account-danger);
}

.balance-summary {
    min-width: 0;
    padding: 0;
    display: grid;
    gap: 4px;
    justify-items: end;
    text-align: right;
}

.balance-summary span,
.balance-summary small {
    color: var(--account-muted);
    font-size: 14px;
}

.balance-summary strong {
    font-size: clamp(42px, 5vw, 56px);
    line-height: 1.02;
    font-variant-numeric: tabular-nums;
    letter-spacing: -0.035em;
    white-space: nowrap;
}

.account-page-message {
    min-height: 0;
    margin: 24px 0 0;
}

.account-page-message:empty {
    display: none;
}

.account-grid {
    margin-top: 28px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(36px, 6vw, 64px);
    align-items: stretch;
    border-top: 1px solid var(--border);
}

.account-page-message:not(:empty) + .account-products {
    margin-top: 24px;
}

.account-panel {
    min-height: 400px;
    padding: clamp(30px, 4.5vw, 46px) 0;
    display: flex;
    flex-direction: column;
    background: transparent;
}

.transactions-panel .transaction-list {
    flex: 1;
}

.transactions-panel .panel-heading {
    margin-bottom: 20px;
}

.panel-heading {
    margin-bottom: 32px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 20px;
}

.panel-heading h2 {
    color: var(--text-primary);
    font-size: clamp(30px, 3.3vw, 38px);
    line-height: 1.08;
    letter-spacing: -0.025em;
    text-wrap: balance;
}

.panel-heading p {
    margin-top: 12px;
    font-size: 14px;
}

.recharge-form {
    width: 100%;
    max-width: 380px;
    display: grid;
    gap: 12px;
}

.recharge-form .btn {
    min-height: 46px;
    margin-top: 6px;
}

.amount-input {
    padding: 0 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.amount-input span {
    color: var(--account-muted);
}

.amount-input input {
    min-width: 0;
    flex: 1;
    padding: 10px 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text-primary);
    font: inherit;
    font-size: 20px;
    font-variant-numeric: tabular-nums;
}

.payment-stage {
    margin-top: 24px;
    padding-top: 24px;
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    align-items: center;
    gap: 18px;
    border-top: 1px solid var(--border);
}

.payment-stage[hidden] {
    display: none;
}

.qr-frame {
    width: 132px;
    aspect-ratio: 1;
    padding: 8px;
    display: grid;
    place-items: center;
    background: #fff;
    border-radius: 14px;
}

.qr-frame img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payment-copy {
    min-width: 0;
    display: grid;
    gap: 6px;
}

.payment-copy strong {
    font-size: 24px;
    font-variant-numeric: tabular-nums;
}

.payment-copy span {
    font-size: 14px;
}

.payment-copy small {
    color: var(--account-muted);
    font-size: 12px;
    line-height: 1.5;
}

.transaction-list {
    min-height: 150px;
}

.transaction-row {
    min-height: 56px;
    padding: 9px 2px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid var(--border);
}

.transaction-row:first-child {
    border-top: 0;
}

.transaction-row > div {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.transaction-row strong {
    overflow: hidden;
    font-size: 14px;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-row span {
    color: var(--account-muted);
    font-size: 12px;
    line-height: 1.3;
}

.transaction-row b {
    flex-shrink: 0;
    font-size: 14px;
    line-height: 1.25;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.amount-positive {
    color: var(--account-success);
}

.amount-negative {
    color: var(--text-primary);
}

.account-empty {
    padding: 40px 14px;
    color: var(--account-muted);
    text-align: center;
    font-size: 14px;
    line-height: 1.6;
}

.account-pagination {
    padding-top: 16px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid var(--border);
}

.account-pagination[hidden] {
    display: none;
}

.account-pagination span {
    color: var(--account-muted);
    font-size: 12px;
}

@media (max-width: 820px) {
    .account-products,
    .account-page-header,
    .account-grid {
        grid-template-columns: 1fr;
    }

    .account-products {
        min-height: 0;
        padding: 40px 0;
        gap: 32px;
    }

    .account-page-header {
        min-height: 0;
        align-items: start;
        gap: 36px;
        padding: 76px 0 56px;
    }

    .balance-summary {
        min-width: 0;
        justify-items: start;
        text-align: left;
    }

    .account-panel {
        min-height: 0;
        padding: 40px 0;
    }

    .account-panel + .account-panel {
        padding-right: 0;
        border-top: 1px solid var(--border);
    }

    .auth-stage {
        grid-template-columns: minmax(0, 0.9fr) minmax(330px, 1.1fr);
        gap: 42px;
    }

    .auth-form-panel {
        padding-left: 42px;
    }

    .auth-brand-word {
        font-size: 64px;
    }

    .auth-login-brand {
        font-size: 52px;
    }
}

@media (max-width: 700px) {
    .auth-shell {
        min-height: 100dvh;
        padding: 86px 24px 52px;
        align-items: flex-start;
    }

    .auth-stage {
        width: min(100%, 440px);
        min-height: 0;
        grid-template-columns: 1fr;
        gap: 0;
    }

    .auth-brand {
        min-height: 0;
        padding: 28px 0 36px;
    }

    .auth-color-field {
        left: -92px;
        width: 360px;
        height: 260px;
        filter: blur(20px) saturate(1.1);
    }

    .auth-brand-word {
        font-size: 60px;
    }

    .auth-login-brand {
        font-size: 48px;
    }

    .auth-brand > p {
        max-width: 300px;
        margin-top: 16px;
        font-size: 17px;
    }

    .auth-form-panel {
        padding: 34px 0 0;
        border-left: 0;
        border-top: 1px solid var(--border);
    }
}

@media (max-width: 560px) {
    .nav-studio-logo {
        font-size: 14px;
    }

    .auth-shell {
        padding: 78px 18px 44px;
    }

    .verification-row {
        grid-template-columns: 1fr;
    }

    .code-button {
        width: 100%;
    }

    .account-shell {
        padding: 56px 24px 72px;
    }

    .account-products {
        padding: 32px 0;
        gap: 24px;
    }

    .account-products-heading p {
        margin-top: 12px;
    }

    .account-product-list {
        gap: 10px;
    }

    .account-product-item {
        gap: 8px;
    }

    .account-product-icon {
        width: 68px;
        height: 68px;
        border-radius: 12px;
    }

    .account-product-copy strong {
        font-size: 13px;
    }

    .account-product-description {
        display: none;
    }

    .account-product-copy small {
        font-size: 11px;
        white-space: normal;
    }

    .account-page-header {
        gap: 32px;
        padding: 64px 0 48px;
    }

    .account-display {
        font-size: 48px;
    }

    .account-products-title {
        font-size: 34px;
    }

    .balance-summary strong {
        font-size: 48px;
    }

    .account-panel {
        padding: 36px 0;
    }

    .panel-heading h2 {
        font-size: 32px;
    }

    .payment-stage {
        grid-template-columns: 112px minmax(0, 1fr);
    }

    .qr-frame {
        width: 112px;
    }

    .transaction-row {
        align-items: flex-start;
    }
}

@media (max-width: 480px) {
    .navbar .nav-actions {
        gap: 4px;
    }

    .navbar .nav-actions .btn-sm {
        padding: 7px 10px;
        font-size: 12px;
    }

    .navbar .nav-actions .theme-toggle {
        width: 30px;
        height: 30px;
        padding: 5px;
    }

    .navbar .mobile-menu-btn {
        padding: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account-auth-page *,
    .account-product-page * {
        scroll-behavior: auto !important;
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ============================================
   Conven Studio — dual-product website
   ============================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}


/* Homepage: one consistent hero for every featured product. */
@media (min-width: 901px) {
    .home-main {
        padding-top: 76px;
    }

    .home-hero-product:last-child {
        padding-bottom: 36px;
    }
}

.home-hero-product {
    min-height: auto;
    padding: 80px 0 72px;
    scroll-margin-top: 56px;
}

.home-hero-layout {
    width: 100%;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.52fr);
    align-items: center;
    column-gap: clamp(40px, 5vw, 64px);
    text-align: left;
}

.home-hero-layout > .hero-stage {
    position: static;
    grid-column: 1;
    grid-row: 1;
    justify-self: start;
    margin: 0 0 20px;
}

.home-hero-layout > .subheadline {
    position: relative;
    grid-column: 1;
    grid-row: 2;
    justify-self: start;
    left: var(--hero-title-center, 50%);
    width: max-content;
    max-width: min(100%, 560px);
    margin-left: 0;
    margin-right: 0;
    transform: translateX(calc(-50% + var(--hero-subheadline-punctuation-offset, 0px)));
    text-align: center;
    text-wrap: balance;
}

.home-platform-badge {
    position: absolute;
    top: 20px;
    right: 24px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    min-height: 26px;
    padding: 4px 8px;
    border-radius: 6px;
    background: color-mix(in srgb, var(--text-primary) 7%, var(--bg));
    color: color-mix(in srgb, var(--text-primary) 70%, var(--bg));
    font-size: 12px;
    font-weight: 500;
    line-height: 18px;
    white-space: nowrap;
}

.home-hero-layout > .hero-security-copy {
    grid-column: 1;
    grid-row: 3;
    justify-self: start;
    left: var(--hero-title-center, 50%);
    width: min(100%, 540px);
    margin: 10px 0 0;
    transform: translateX(-50%);
    text-align: center;
}

.home-hero-layout > .hero-security-copy::before {
    left: 50%;
    transform: translateX(-50%);
}

.home-hero-layout .hero-security-kicker {
    width: max-content;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.home-hero-layout .hero-security-note {
    margin-left: auto;
    margin-right: auto;
}

.home-hero-download {
    position: relative;
    z-index: 2;
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: center;
    justify-self: end;
    width: min(100%, 220px);
    text-align: center;
}

.home-hero-download .hero-cta {
    width: 100%;
    justify-content: flex-end;
    margin-bottom: 18px;
}

.home-hero-download .hero-cta .btn {
    width: 100%;
}

.home-hero-version-line,
.home-hero-support-line {
    display: block;
}

.home-hero-support-line {
    margin-top: 6px;
}

.home-hero-download .hero-stat {
    margin-top: 4px;
}

@media (min-width: 901px) {
    .home-hero-download {
        align-self: start;
        margin-top: clamp(25px, calc(5.7vw - 26px), 31px);
    }
}

@media (max-width: 900px) {
    .home-main {
        --home-mobile-spacing: clamp(48px, 8vw, 64px);
        padding-top: calc(56px + var(--home-mobile-spacing));
        padding-bottom: var(--home-mobile-spacing);
        display: grid;
        row-gap: var(--home-mobile-spacing);
    }

    .home-hero-product {
        padding-top: 0;
        padding-bottom: 0;
    }

    .home-hero-layout {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .home-hero-layout > .hero-stage,
    .home-hero-layout > .subheadline,
    .home-platform-badge,
    .home-hero-layout > .hero-security-copy,
    .home-hero-download {
        grid-column: 1;
        grid-row: auto;
    }

    .home-hero-layout > .hero-stage {
        position: relative;
        justify-self: center;
        margin: 0 auto 16px;
        transform: translateX(var(--hero-title-punctuation-offset, 0px));
    }

    .home-hero-layout > .subheadline {
        position: static;
        justify-self: center;
        left: auto;
        width: auto;
        max-width: min(100%, 460px);
        margin-left: auto;
        margin-right: auto;
        transform: translateX(var(--hero-subheadline-punctuation-offset, 0px));
        text-align: center;
    }

    .home-platform-badge {
        position: static;
        justify-self: center;
        margin: 8px auto 0;
    }

    .home-hero-layout > .hero-security-copy {
        justify-self: center;
        left: auto;
        width: auto;
        max-width: 520px;
        margin: 0 auto 28px;
        transform: none;
        text-align: center;
    }

    .home-hero-layout > .hero-security-copy::before {
        left: 50%;
        transform: translateX(-50%);
    }

    .home-hero-layout .hero-security-note {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }

    .home-hero-download {
        align-self: auto;
        justify-self: center;
        margin-top: 0;
        text-align: center;
    }
}

/* Sign-in and registration follow the product pages: a title above the form in the same shell. */
:is([data-account-page="login"], [data-account-page="register"]) .auth-shell {
    min-height: 100dvh;
    padding: 112px 24px 56px;
    align-items: center;
}

:is([data-account-page="login"], [data-account-page="register"]) .auth-stage {
    width: min(100%, 932px);
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
    justify-items: center;
}

:is([data-account-page="login"], [data-account-page="register"]) .auth-brand {
    min-height: 0;
    padding: 0 0 40px;
    align-items: center;
    text-align: center;
}

:is([data-account-page="login"], [data-account-page="register"]) .auth-brand-word {
    max-width: 100%;
    font-size: clamp(48px, 7vw, 72px);
    line-height: 1.02;
    text-wrap: balance;
}

:is([data-account-page="login"], [data-account-page="register"]) .auth-login-brand span {
    display: inline;
}

:is([data-account-page="login"], [data-account-page="register"]) .auth-brand > p {
    max-width: 650px;
    margin-top: 18px;
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.6;
}

:is([data-account-page="login"], [data-account-page="register"]) .auth-form-panel {
    width: min(100%, 440px);
    justify-self: center;
    padding: 0;
    border: 0;
}


:is([data-account-page="login"], [data-account-page="register"]) .auth-heading {
    margin-bottom: 24px;
    text-align: center;
}

:is([data-account-page="login"], [data-account-page="register"]) .auth-heading h2 {
    font-size: 28px;
}

:is([data-account-page="login"], [data-account-page="register"]) .auth-switch {
    text-align: center;
}

:is([data-account-page="login"], [data-account-page="register"]) .account-message:empty {
    display: none;
}

@media (max-width: 700px) {
    :is([data-account-page="login"], [data-account-page="register"]) .auth-shell {
        padding: 96px 24px 40px;
    }

    :is([data-account-page="login"], [data-account-page="register"]) .auth-brand {
        padding: 0 0 32px;
    }

    :is([data-account-page="login"], [data-account-page="register"]) .auth-brand-word {
        font-size: clamp(36px, 9vw, 48px);
    }

    :is([data-account-page="login"], [data-account-page="register"]) .auth-login-brand span {
        display: block;
    }

    :is([data-account-page="login"], [data-account-page="register"]) .account-form {
        gap: 14px;
    }

    :is([data-account-page="login"], [data-account-page="register"]) .account-field {
        gap: 6px;
        text-align: left;
    }

    :is([data-account-page="login"], [data-account-page="register"]) .auth-heading {
        margin-bottom: 20px;
    }

    :is([data-account-page="login"], [data-account-page="register"]) .auth-switch {
        margin-top: 18px;
    }

}

@media (min-width: 701px) {
    :is([data-account-page="login"], [data-account-page="register"]) .auth-shell {
        padding: 56px 24px 72px;
        align-items: flex-start;
    }

    :is([data-account-page="login"], [data-account-page="register"]) .auth-stage {
        min-height: 0;
        grid-template-rows: auto auto;
        justify-items: stretch;
    }

    :is([data-account-page="login"], [data-account-page="register"]) .auth-brand {
        padding: clamp(76px, 9vw, 112px) 0 clamp(52px, 7vw, 76px);
        align-items: flex-start;
        text-align: left;
    }

    :is([data-account-page="login"], [data-account-page="register"]) .auth-brand > p {
        margin-top: 22px;
    }

    :is([data-account-page="login"], [data-account-page="register"]) .auth-form-panel {
        align-self: center;
    }
}

/* Keep the verification action inside the registration input surface. */
[data-account-page="register"] .verification-row {
    display: flex;
    align-items: center;
    gap: 0;
    min-width: 0;
    border: 1px solid var(--input-border);
    border-radius: 12px;
    background: var(--bg-secondary);
}

[data-account-page="register"] .verification-row:focus-within {
    outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
    outline-offset: 2px;
    border-color: var(--accent);
}

[data-account-page="register"] .verification-row input {
    flex: 1 1 0;
    width: 0;
    min-width: 0;
    border: 0;
    background: transparent;
    outline: none;
}

[data-account-page="register"] .verification-row .code-button {
    flex: 0 0 auto;
    width: auto;
    min-width: 0;
    min-height: 44px;
    margin-right: 4px;
    padding: 0 8px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 13px;
}

@media (max-width: 700px) {
    [data-account-page="login"] .auth-shell {
        padding-top: 56px;
        align-items: flex-start;
    }

    [data-account-page="login"] .auth-brand {
        padding: clamp(76px, 9vw, 112px) 0 clamp(52px, 7vw, 76px);
    }

    [data-account-page="login"] .auth-brand-word {
        font-size: clamp(48px, 7vw, 72px);
        letter-spacing: -0.045em;
    }

    [data-account-page="login"] .auth-login-brand span {
        display: inline;
    }

    [data-account-page="login"] .auth-brand > p {
        margin-top: 22px;
    }
}

@media (max-width: 640px) {
    [data-account-page="login"] .auth-brand {
        padding-top: 64px;
        padding-bottom: 48px;
    }
}

/* Product catalog — constrained to the same 980px shell as the navigation. */
.products-main,
.downloads-main {
    padding-top: 56px;
}

.products-header,
.downloads-header {
    padding-top: clamp(76px, 9vw, 112px);
    padding-bottom: clamp(52px, 7vw, 76px);
}

.products-header .headline,
.downloads-header .headline {
    max-width: 720px;
    font-size: clamp(48px, 7vw, 72px);
    letter-spacing: -0.045em;
    line-height: 1.02;
    text-wrap: balance;
}

.products-lead {
    max-width: 650px;
    margin-top: 22px;
    color: var(--text-secondary);
    font-size: clamp(17px, 2vw, 21px);
    line-height: 1.6;
    text-wrap: pretty;
}

.product-showcase-list {
    padding-bottom: clamp(72px, 9vw, 112px);
    display: grid;
    gap: 28px;
}

.product-showcase {
    --product-rgb: 41, 151, 255;
    position: relative;
    width: 100%;
    padding: clamp(30px, 4.5vw, 46px);
    overflow: hidden;
    scroll-margin-top: 76px;
    border: 1px solid var(--border);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 4%, rgba(var(--product-rgb), 0.12), transparent 34%),
        var(--bg-elevated);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.12);
}

.product-showcase[data-product="conven"] {
    --product-rgb: 34, 197, 94;
}

.product-showcase[data-product="connovel"] {
    --product-rgb: 245, 158, 11;
}

.product-showcase[data-product="contavern"] {
    --product-rgb: 249, 115, 22;
}

[data-theme="light"] .product-showcase {
    box-shadow: 0 22px 60px rgba(25, 35, 55, 0.07);
}

.product-showcase-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(220px, 270px);
    align-items: center;
    gap: clamp(36px, 6vw, 64px);
}

.product-showcase-content {
    min-width: 0;
}

.product-showcase-visual {
    justify-self: end;
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 22px;
    box-shadow: 0 18px 45px rgba(var(--product-rgb), 0.16);
}

.product-showcase-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: inherit;
    transition: transform 700ms var(--ease-out);
}

@media (hover: hover) and (pointer: fine) {
    .product-showcase:hover .product-showcase-visual img {
        transform: scale(1.025);
    }
}

.product-showcase-index {
    margin-bottom: 14px;
    color: rgba(var(--product-rgb), 0.95);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.12em;
}

.product-showcase-content h2 {
    width: fit-content;
    color: var(--text-primary);
    font-size: clamp(54px, 7vw, 82px);
    font-weight: 750;
    letter-spacing: -0.045em;
    line-height: 0.96;
}

.product-showcase-tagline {
    margin-top: 22px;
    color: var(--text-primary);
    font-size: clamp(20px, 2.35vw, 26px);
    line-height: 1.4;
    text-wrap: balance;
}

.product-showcase-summary {
    max-width: 56ch;
    margin-top: 14px;
    color: var(--text-secondary);
    font-size: 16px;
    line-height: 1.7;
    text-wrap: pretty;
}

.product-feature-list {
    text-align: left;
    margin-top: clamp(34px, 5vw, 48px);
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.product-feature-list > div {
    min-width: 0;
    padding: 18px;
    display: grid;
    grid-template-columns: 28px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 12px;
    row-gap: 6px;
    border-radius: 16px;
    background: var(--card-bg);
}

.product-feature-list > div::before {
    content: attr(data-index);
    grid-column: 1;
    grid-row: 1 / span 2;
    padding-top: 2px;
    color: rgba(var(--product-rgb), 0.9);
    font-size: 12px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.product-feature-list dt {
    grid-column: 2;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    line-height: 1.45;
}

.product-feature-list dd {
    grid-column: 2;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

.product-showcase-bottom {
    margin-top: clamp(28px, 4vw, 38px);
    padding-top: 30px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 32px;
    border-top: 1px solid var(--border);
}

.product-privacy-note {
    max-width: 58ch;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.65;
}

.product-privacy-label {
    display: block;
    margin-bottom: 7px;
    color: rgba(var(--product-rgb), 0.9);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.16em;
}

.product-showcase-actions {
    min-width: 184px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.product-showcase-meta {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 8px;
    color: var(--text-tertiary);
    font-size: 13px;
    font-variant-numeric: tabular-nums;
}

.product-showcase-actions > .btn {
    margin-top: 16px;
}

/* Download center */
.download-product-list {
    padding-bottom: clamp(72px, 9vw, 112px);
    display: grid;
    gap: 28px;
}

.download-product-release-external .download-meta {
    max-width: 46ch;
}

.download-store-notice {
    flex-basis: 100%;
    margin-top: 2px;
}

.download-product {
    position: relative;
    width: 100%;
    min-height: 0;
    padding: clamp(30px, 4.5vw, 46px) 0;
    scroll-margin-top: 76px;
}

.download-product-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    text-align: left;
}

.download-product-heading > div {
    min-width: 0;
}

.download-product-heading img {
    width: 96px;
    height: 96px;
    flex-shrink: 0;
    object-fit: cover;
    border-radius: 18px;
}

.download-product-heading h2 {
    color: var(--text-primary);
    font-size: clamp(34px, 5vw, 52px);
    line-height: 1;
    letter-spacing: -0.03em;
}

.download-product-heading p {
    margin-top: 10px;
    color: var(--text-secondary);
    font-size: 17px;
}

.download-product-release {
    margin-top: 38px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 28px;
}

.download-product-version strong {
    color: var(--text-primary);
    font-size: 24px;
    font-variant-numeric: tabular-nums;
}

.download-product .download-meta {
    justify-content: flex-start;
    margin: 8px 0 0;
}

.download-product .download-btn {
    min-width: 220px;
    width: auto;
}

.download-product-empty {
    margin-top: 34px;
    color: var(--text-secondary);
}

.download-release-notes {
    margin-top: 30px;
}

.download-release-notes summary {
    padding: 15px 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--text-primary);
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.download-release-notes summary::-webkit-details-marker {
    display: none;
}

.download-release-notes summary::after {
    content: '+';
    color: var(--text-secondary);
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: transform 300ms var(--ease-out);
}

.download-release-notes[open] summary::after {
    transform: rotate(45deg);
}

.download-release-notes-body {
    overflow: hidden;
}

.download-release-notes-content {
    max-width: 75ch;
    padding: 0 0 8px;
    color: var(--text-secondary);
    font-size: 15px;
    line-height: 1.7;
    white-space: pre-wrap;
}

@media (max-width: 900px) {
    .product-showcase-top {
        grid-template-columns: minmax(0, 1fr) minmax(180px, 220px);
        gap: 32px;
    }
}

@media (max-width: 720px) {
    .products-header,
    .downloads-header,
    .product-showcase,
    .download-product {
        text-align: center;
    }

    .products-header .headline,
    .downloads-header .headline,
    .products-lead,
    .product-showcase-content h2,
    .product-showcase-summary {
        margin-left: auto;
        margin-right: auto;
    }

    .downloads-header .headline {
        transform: translateX(var(--download-header-title-offset, 0px));
    }

    .downloads-header .products-lead {
        transform: translateX(var(--download-header-lead-offset, 0px));
    }

    .product-showcase-top {
        grid-template-columns: 1fr;
    }

    .product-showcase-visual {
        justify-self: center;
        width: min(100%, 240px);
    }

    .product-feature-list {
        grid-template-columns: 1fr;
    }

    .product-showcase-bottom {
        grid-template-columns: 1fr;
        align-items: center;
    }

    .product-showcase-actions {
        align-items: center;
    }

    .product-showcase-meta {
        justify-content: center;
    }

    .product-privacy-note {
        margin-left: auto;
        margin-right: auto;
    }

    .download-product-heading,
    .download-product-release {
        flex-direction: column;
        justify-content: center;
    }

    .download-product-heading {
        flex-direction: row;
        align-items: flex-start;
        justify-content: space-between;
        text-align: left;
    }

    .download-product-release {
        align-items: stretch;
    }

    .download-product .download-meta {
        justify-content: center;
    }
}

@media (max-width: 640px) {
    .products-header,
    .downloads-header {
        padding-top: 64px;
        padding-bottom: 48px;
    }

    .product-showcase-list,
    .download-product-list {
        gap: 18px;
        padding-bottom: 72px;
    }

    .product-showcase {
        padding: 24px;
        border-radius: 22px;
    }

    .product-showcase-visual {
        width: min(100%, 200px);
        border-radius: 18px;
    }

    .product-feature-list > div {
        padding: 16px;
    }

    .download-product .download-btn {
        width: 100%;
    }

    .download-product-heading img {
        width: 72px;
        height: 72px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .download-release-notes summary::after {
        transition: none;
    }
}

/* Download deck — the same transform-only sheet system as the product catalog. */
@media (min-width: 901px) and (any-hover: hover) and (any-pointer: fine) {
    .downloads-page .downloads-main {
        flex: 1 1 auto;
        min-height: 720px;
        display: flex;
        flex-direction: column;
    }

    .downloads-page .downloads-header {
        flex: 0 0 auto;
        width: 100%;
    }

    .download-product-list.download-product-deck-ready {
        --download-deck-peek: 12px;
        position: relative;
        flex: 1 1 auto;
        width: 100%;
        min-height: 360px;
        height: auto;
        padding-bottom: 0;
        display: block;
        overflow: hidden;
    }

    .download-product-deck-ready .download-product {
        --download-card-inset: clamp(24px, 3vw, 32px);
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        width: auto;
        height: 100%;
        margin: 0;
        padding: var(--download-card-inset);
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 28px;
        background: var(--bg);
        transform: translate3d(0, var(--download-panel-offset, 0), 0);
        backface-visibility: hidden;
        contain: layout paint style;
        will-change: transform;
        box-shadow: none;
        transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .download-product-deck-ready .download-product .download-btn {
        flex: 0 0 auto;
        transition: background-color var(--transition),
                    color var(--transition);
    }

    .download-product-deck-ready .download-product-release {
        margin-top: 24px;
    }

    .download-product-deck-ready .download-product:not(:first-child) {
        box-shadow:
            0 -1px 0 rgba(255, 255, 255, 0.12),
            0 -6px 12px rgba(0, 0, 0, 0.3),
            0 -14px 24px rgba(0, 0, 0, 0.12);
    }

    [data-theme="light"] .download-product-deck-ready .download-product:not(:first-child) {
        box-shadow:
            0 -1px 0 rgba(255, 255, 255, 0.96),
            0 -6px 12px rgba(29, 29, 31, 0.12),
            0 -14px 24px rgba(29, 29, 31, 0.055);
    }

    .download-product-deck-ready .download-product-content-end {
        height: 1px;
    }
}

/* Product catalog deck — full cards share one bounded stage. */
@media (min-width: 901px) and (any-hover: hover) and (any-pointer: fine) {
    .products-page .products-main {
        flex: 1 1 auto;
        min-height: 720px;
        display: flex;
        flex-direction: column;
    }

    .products-page .products-header {
        flex: 0 0 auto;
        width: 100%;
    }

    .product-showcase-list.product-showcase-deck-ready {
        --product-deck-peek: 12px;
        position: relative;
        flex: 1 1 auto;
        width: 100%;
        min-height: 480px;
        height: auto;
        padding-bottom: 0;
        display: block;
        overflow: hidden;
    }

    .product-showcase-deck-ready .product-showcase {
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
        width: auto;
        height: 100%;
        margin: 0;
        padding: clamp(24px, 3vw, 32px);
        overflow: hidden;
        transform: translate3d(0, var(--product-panel-offset, 0), 0);
        backface-visibility: hidden;
        contain: layout paint style;
        will-change: transform;
        box-shadow: none;
        transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .product-showcase-deck-ready .product-showcase:not(:first-child) {
        box-shadow:
            0 -1px 0 rgba(255, 255, 255, 0.12),
            0 -6px 12px rgba(0, 0, 0, 0.3),
            0 -14px 24px rgba(0, 0, 0, 0.12);
    }

    [data-theme="light"] .product-showcase-deck-ready .product-showcase:not(:first-child) {
        box-shadow:
            0 -1px 0 rgba(255, 255, 255, 0.96),
            0 -6px 12px rgba(29, 29, 31, 0.12),
            0 -14px 24px rgba(29, 29, 31, 0.055);
    }

    .product-showcase-deck-ready .product-showcase-top {
        grid-template-columns: minmax(0, 1fr) 170px;
        gap: clamp(28px, 4vw, 44px);
    }

    .product-showcase-deck-ready .product-showcase-visual {
        width: 170px;
        border-radius: 18px;
    }

    .product-showcase-deck-ready .product-showcase-content h2 {
        font-size: clamp(48px, 5.2vw, 64px);
        letter-spacing: -0.04em;
    }

    .product-showcase-deck-ready .product-showcase-index {
        margin-bottom: 9px;
        font-size: 12px;
    }

    .product-showcase-deck-ready .product-showcase-tagline {
        margin-top: 14px;
        font-size: clamp(18px, 1.8vw, 21px);
    }

    .product-showcase-deck-ready .product-showcase-summary {
        margin-top: 8px;
        font-size: 14px;
        line-height: 1.55;
    }

    .product-showcase-deck-ready .product-feature-list {
        margin-top: 18px;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 10px;
    }

    .product-showcase-deck-ready .product-feature-list > div {
        padding: 10px 12px;
        grid-template-columns: 22px minmax(0, 1fr);
        column-gap: 7px;
        row-gap: 4px;
    }

    .product-showcase-deck-ready .product-feature-list > div::before {
        font-size: 11px;
    }

    .product-showcase-deck-ready .product-feature-list dt {
        font-size: 13px;
        line-height: 1.35;
    }

    .product-showcase-deck-ready .product-feature-list dd {
        font-size: 12px;
        line-height: 1.45;
    }

    .product-showcase-deck-ready .product-showcase-bottom {
        margin-top: 16px;
        padding-top: 16px;
        gap: 24px;
    }

    .product-showcase-deck-ready .product-privacy-note {
        font-size: 13px;
        line-height: 1.5;
    }

    .product-showcase-deck-ready .product-privacy-label {
        margin-bottom: 4px;
    }

    .product-showcase-deck-ready .product-showcase-actions > .btn {
        margin-top: 10px;
    }
}

/* Mobile catalog and download decks keep three compact sheets in one bounded stage. */
@media (max-width: 900px) {
    .products-page .products-header,
    .downloads-page .downloads-header {
        padding-top: clamp(28px, 5svh, 44px);
        padding-bottom: 20px;
        text-align: center;
    }

    .products-page .products-header .headline,
    .downloads-page .downloads-header .headline {
        margin-inline: auto;
        font-size: clamp(34px, 8vw, 44px);
    }

    .products-page .products-lead,
    .downloads-page .products-lead {
        max-width: 38ch;
        margin: 10px auto 0;
        font-size: 14px;
        line-height: 1.45;
    }

    .product-showcase-list.product-showcase-deck-ready,
    .download-product-list.download-product-deck-ready {
        position: relative;
        display: block;
        width: min(100%, 640px);
        height: 500px;
        height: clamp(500px, calc(100svh - 260px), 680px);
        margin-inline: auto;
        padding: 0 16px;
        overflow: hidden;
    }

    .product-showcase-list.product-showcase-deck-ready {
        height: 540px;
        height: clamp(540px, calc(100svh - 245px), 700px);
    }

    .product-showcase-deck-ready .product-showcase,
    .download-product-deck-ready .download-product {
        position: absolute;
        top: 0;
        left: 16px;
        right: 16px;
        width: auto;
        margin: 0;
        height: 100%;
        padding: 0;
        overflow: hidden;
        border: 1px solid var(--border);
        border-radius: 18px;
        text-align: left;
        transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
        -webkit-tap-highlight-color: transparent;
    }

    .product-showcase-deck-ready .product-showcase {
        transform: translate3d(0, var(--product-panel-offset, 0), 0);
    }

    .download-product-deck-ready .download-product {
        background: var(--bg-elevated);
        transform: translate3d(0, var(--download-panel-offset, 0), 0);
    }

    .product-showcase-deck-ready .product-showcase:last-child {
        height: calc(100% - var(--product-panel-offset, 0px));
        transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
                    height 480ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .download-product-deck-ready .download-product:last-child {
        height: calc(100% - var(--download-panel-offset, 0px));
        transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
                    height 480ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .product-showcase-deck-ready .product-showcase-sheet,
    .download-product-deck-ready .download-product-sheet {
        width: 100%;
        box-sizing: border-box;
        padding: 16px;
        overflow: hidden;
        transition: height 480ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .product-showcase-deck-ready .product-showcase-sheet {
        height: var(--product-panel-visible-height, 33.333%);
    }

    .download-product-deck-ready .download-product-sheet {
        height: var(--download-panel-visible-height, 33.333%);
    }

    .product-showcase-deck-ready .product-showcase:not(:first-child),
    .download-product-deck-ready .download-product:not(:first-child) {
        box-shadow: 0 -1px 0 rgba(255,255,255,.12), 0 -8px 20px rgba(0,0,0,.25);
    }

    [data-theme="light"] .product-showcase-deck-ready .product-showcase:not(:first-child),
    [data-theme="light"] .download-product-deck-ready .download-product:not(:first-child) {
        box-shadow: 0 -1px 0 rgba(255,255,255,.9), 0 -8px 20px rgba(29,29,31,.12);
    }

    .product-showcase-deck-ready .product-showcase.is-active .product-showcase-sheet,
    .download-product-deck-ready .download-product.is-active .download-product-sheet {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .product-showcase-deck-ready .product-showcase:focus-visible,
    .download-product-deck-ready .download-product:focus-visible {
        outline: 3px solid var(--accent);
        outline-offset: -4px;
    }

    .download-product-deck-ready .download-product::after {
        content: '';
        position: absolute;
        top: 26px;
        right: 27px;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        opacity: .55;
        pointer-events: none;
    }

    .download-product-deck-ready .download-product.is-active::after {
        transform: rotate(225deg);
    }

    .product-showcase-deck-ready .product-showcase-top {
        grid-template-columns: minmax(0, 1fr) 46px;
        gap: 12px;
        align-items: start;
        text-align: left;
    }

    .product-showcase-deck-ready .product-showcase-index {
        display: none;
    }

    .product-showcase-deck-ready .product-showcase-content h2 {
        margin: 0;
        font-size: clamp(29px, 8vw, 36px);
        line-height: 1.02;
    }

    .product-showcase-deck-ready .product-showcase-visual {
        justify-self: end;
        width: 46px;
        border-radius: 10px;
        box-shadow: none;
    }

    .product-showcase-deck-ready .product-showcase-tagline {
        margin-top: 8px;
        font-size: 14px;
        line-height: 1.35;
    }

    .product-showcase-deck-ready .product-showcase-summary {
        display: block;
        max-width: none;
        margin: 12px 0 0;
        color: var(--text-secondary);
        font-size: 14px;
        line-height: 1.5;
    }

    .product-showcase-deck-ready .product-feature-list {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        gap: 0;
        margin-top: 16px;
    }

    .product-showcase-deck-ready .product-feature-list > div {
        display: block;
        padding: 11px 0;
        border-top: 1px solid var(--border);
        border-radius: 0;
        background: none;
    }

    .product-showcase-deck-ready .product-feature-list > div::before {
        display: none;
    }

    .product-showcase-deck-ready .product-feature-list dt {
        font-size: 15px;
        line-height: 1.35;
    }

    .product-showcase-deck-ready .product-feature-list dd {
        display: block;
        margin-top: 4px;
        color: var(--text-secondary);
        font-size: 13px;
        line-height: 1.5;
    }

    .product-showcase-deck-ready .product-showcase-bottom {
        display: block;
        margin-top: 2px;
        padding-top: 14px;
        border-top: 1px solid var(--border);
    }

    .product-showcase-deck-ready .product-privacy-note {
        display: block;
        max-width: none;
        margin: 0 0 16px;
        color: var(--text-secondary);
        font-size: 13px;
        line-height: 1.5;
    }

    .product-showcase-deck-ready .product-privacy-label {
        margin-bottom: 5px;
    }

    .product-showcase-deck-ready .product-showcase-actions {
        align-items: stretch;
    }

    .product-showcase-deck-ready .product-showcase-meta {
        display: flex;
        justify-content: flex-start;
        margin-bottom: 10px;
        color: var(--text-secondary);
        font-size: 12px;
        text-align: left;
    }

    .product-showcase-deck-ready .product-showcase-actions > .btn {
        width: 100%;
        min-height: 44px;
        margin-top: 0;
    }

    .download-product-deck-ready .download-product-heading {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
        text-align: left;
    }

    .download-product-deck-ready .download-product-heading img {
        width: 46px;
        height: 46px;
        border-radius: 10px;
    }

    .download-product-deck-ready .download-product-heading h2 {
        font-size: clamp(27px, 8vw, 34px);
    }

    .download-product-deck-ready .download-product-heading p {
        margin-top: 4px;
        font-size: 14px;
        line-height: 1.35;
    }

    .download-product-deck-ready .download-product-release {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
        margin-top: 20px;
    }

    .download-product-deck-ready .download-product-version strong {
        font-size: 21px;
    }

    .download-product-deck-ready .download-meta {
        justify-content: flex-start;
        gap: 4px 8px;
        color: var(--text-secondary);
        font-size: 13px;
        line-height: 1.4;
        text-align: left;
    }

    .download-product-deck-ready .download-product .download-btn {
        position: static;
        width: 100%;
        min-width: 0;
        min-height: 44px;
        transform: none;
    }

    .download-product-deck-ready .download-release-notes {
        margin-top: 12px;
    }

    .download-product-deck-ready .download-release-notes summary {
        padding: 10px 0;
    }

}

/* Homepage product deck — every product remains in the first viewport. */
@media (min-width: 901px) and (any-hover: hover) and (any-pointer: fine) {
    .home-main {
        height: 100vh;
        height: 100svh;
        display: flex;
        flex-direction: column;
        overflow: hidden;
    }

    .home-hero-product {
        flex: 1 1 0;
        min-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        align-items: flex-start;
        overflow: hidden;
        background: var(--bg);
        border-radius: 14px 14px 0 0;
    }

    .home-hero-product:not(:first-child) {
        box-shadow:
            0 -1px 0 rgba(255, 255, 255, 0.12),
            0 -6px 12px rgba(0, 0, 0, 0.3),
            0 -14px 24px rgba(0, 0, 0, 0.12);
    }

    .home-main.home-product-deck-ready {
        position: relative;
        display: block;
        padding-top: 0;
    }

    .home-product-deck-ready .home-hero-product:first-child .home-platform-badge {
        top: 64px;
    }

    .home-product-deck-ready .home-hero-product {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 100%;
        height: 100%;
        margin-top: 0;
        transform: translate3d(0, var(--home-panel-offset, 0), 0);
        backface-visibility: hidden;
        will-change: transform;
        transition: transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .home-hero-product:last-child {
        padding-bottom: 0;
    }

    .home-hero-product > .home-hero-layout {
        padding-top: 80px;
        padding-bottom: 72px;
    }

    .home-main:not(.home-product-deck-ready) .home-hero-product:not(:first-child) {
        margin-top: -12px;
    }

    [data-theme="light"] .home-hero-product:not(:first-child) {
        box-shadow:
            0 -1px 0 rgba(255, 255, 255, 0.96),
            0 -6px 12px rgba(29, 29, 31, 0.12),
            0 -14px 24px rgba(29, 29, 31, 0.055);
    }

    .home-product-deck-ready .home-hero-product .hero-security-copy {
        opacity: 0;
    }

    .home-hero-product.is-active .hero-security-copy {
        opacity: 1;
    }

    .home-product-deck-ready .home-hero-download {
        top: 0;
        transform: translateY(0);
        transition:
            top 560ms cubic-bezier(0.22, 1, 0.36, 1),
            margin-top 560ms cubic-bezier(0.22, 1, 0.36, 1),
            transform 560ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .home-product-deck-ready .home-hero-product.is-active .home-hero-download {
        top: var(--home-content-center, 0px);
        margin-top: 0;
        transform: translateY(-50%);
    }

    .home-main.is-interacting .home-hero-product:not(.is-active)::before,
    .home-main.is-interacting .home-hero-product:not(.is-active) .text-gradient {
        animation-play-state: paused;
    }
}

/* The mobile homepage keeps its layered deck and lets following cards cover overflow. */
@media (max-width: 900px) {
    .home-main.home-product-deck-ready {
        position: relative;
        display: block;
        height: calc(100vh - 56px);
        height: calc(100svh - 56px);
        margin-top: 56px;
        padding: 0;
        overflow: hidden;
    }

    .home-product-deck-ready .home-hero-product {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        display: block;
        width: 100%;
        height: 100%;
        margin: 0;
        padding: 0;
        overflow: hidden;
        border-radius: 16px;
        background: var(--bg);
        transform: translate3d(0, var(--home-panel-offset, 0), 0);
        transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1);
        -webkit-tap-highlight-color: transparent;
    }

    .home-product-deck-ready .home-hero-product:last-child {
        height: calc(100% - var(--home-panel-offset, 0px));
        transition: transform 480ms cubic-bezier(0.22, 1, 0.36, 1),
                    height 480ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .home-product-deck-ready .home-hero-product:not(:first-child) {
        box-shadow: 0 -1px 0 rgba(255,255,255,.12), 0 -8px 20px rgba(0,0,0,.25);
    }

    .home-product-deck-ready .home-hero-product::after {
        content: '';
        position: absolute;
        top: 30px;
        right: 22px;
        width: 8px;
        height: 8px;
        border-right: 1.5px solid currentColor;
        border-bottom: 1.5px solid currentColor;
        transform: rotate(45deg);
        opacity: .55;
        pointer-events: none;
    }

    .home-product-deck-ready .home-hero-product.is-active::after {
        transform: rotate(225deg);
    }

    [data-theme="light"] .home-product-deck-ready .home-hero-product:not(:first-child) {
        box-shadow: 0 -1px 0 rgba(255,255,255,.9), 0 -8px 20px rgba(29,29,31,.13);
    }

    .home-product-deck-ready .home-hero-product:focus-visible {
        outline: 3px solid var(--accent);
        outline-offset: -4px;
    }

    .home-product-deck-ready .home-hero-product.is-active > .home-hero-layout {
        overflow-x: hidden;
        overflow-y: auto;
        overscroll-behavior: contain;
        scrollbar-width: thin;
        -webkit-overflow-scrolling: touch;
    }

    .home-product-deck-ready .home-hero-product > .home-hero-layout {
        width: 100%;
        height: var(--home-panel-visible-height, 33.333%);
        padding: 22px 20px 30px;
        align-content: start;
        justify-items: center;
        overflow: hidden;
        transition: height 480ms cubic-bezier(0.22, 1, 0.36, 1);
    }

    .home-product-deck-ready .home-hero-layout > .hero-stage {
        margin-bottom: 8px;
    }

    .home-product-deck-ready .hero-title {
        font-size: clamp(37px, 10vw, 54px);
        line-height: 1.02;
    }

    .home-product-deck-ready .home-hero-layout > .subheadline {
        max-width: 420px;
        margin-bottom: 0;
        font-size: 15px;
        line-height: 1.35;
    }

    .home-product-deck-ready .home-hero-layout > .hero-security-copy {
        width: min(100%, 460px);
        margin: 16px auto 18px;
        padding-top: 12px;
    }

    .home-product-deck-ready .hero-security-kicker {
        margin-bottom: 6px;
    }

    .home-product-deck-ready .hero-security-text {
        font-size: 18px;
        margin-bottom: 6px;
    }

    .home-product-deck-ready .hero-security-note {
        font-size: 13px;
        line-height: 1.5;
    }

    .home-product-deck-ready .home-hero-download {
        width: min(100%, 320px);
        margin: 0 auto;
    }

    .home-product-deck-ready .home-hero-download .hero-cta {
        margin-bottom: 10px;
    }

    .home-product-deck-ready .home-hero-version {
        font-size: 13px;
    }

    .home-product-deck-ready .home-hero-download .hero-stat {
        margin-top: 10px;
    }
}

@media (max-width: 900px) and (prefers-color-scheme: light) {
    :root:not([data-theme="dark"]) .home-product-deck-ready .home-hero-product:not(:first-child) {
        box-shadow: 0 -1px 0 rgba(255,255,255,.9), 0 -8px 20px rgba(29,29,31,.13);
    }
}

/* Let content dissolve beneath the next opaque sheet, without blurring the card surface. */
.home-product-deck-ready .home-hero-product:not(:last-child) > .home-hero-layout,
.product-showcase-deck-ready .product-showcase:not(:last-child) > .product-showcase-sheet,
.download-product-deck-ready .download-product:not(:last-child) > .download-product-sheet {
    --layered-content-inset: 0px;
    --layered-fade-start: 96px;
    --layered-fade-mid: 64px;
    --layered-fade-low: 24px;
    -webkit-mask-image: linear-gradient(to bottom,
        #000 0,
        #000 max(0px, calc(var(--layered-panel-visible-height) - var(--layered-content-inset) - var(--layered-fade-start))),
        rgba(0, 0, 0, .82) max(0px, calc(var(--layered-panel-visible-height) - var(--layered-content-inset) - var(--layered-fade-mid))),
        rgba(0, 0, 0, .28) max(0px, calc(var(--layered-panel-visible-height) - var(--layered-content-inset) - var(--layered-fade-low))),
        transparent max(0px, calc(var(--layered-panel-visible-height) - var(--layered-content-inset) - 4px)));
    mask-image: linear-gradient(to bottom,
        #000 0,
        #000 max(0px, calc(var(--layered-panel-visible-height) - var(--layered-content-inset) - var(--layered-fade-start))),
        rgba(0, 0, 0, .82) max(0px, calc(var(--layered-panel-visible-height) - var(--layered-content-inset) - var(--layered-fade-mid))),
        rgba(0, 0, 0, .28) max(0px, calc(var(--layered-panel-visible-height) - var(--layered-content-inset) - var(--layered-fade-low))),
        transparent max(0px, calc(var(--layered-panel-visible-height) - var(--layered-content-inset) - 4px)));
}

@media (max-width: 900px) {
    .home-product-deck-ready .home-hero-product:not(:last-child) > .home-hero-layout,
    .product-showcase-deck-ready .product-showcase:not(:last-child) > .product-showcase-sheet,
    .download-product-deck-ready .download-product:not(:last-child) > .download-product-sheet {
        --layered-fade-start: 48px;
        --layered-fade-mid: 30px;
        --layered-fade-low: 12px;
    }
}

@media (min-width: 901px) and (any-hover: hover) and (any-pointer: fine) {
    .product-showcase-deck-ready .product-showcase:not(:last-child) > .product-showcase-sheet,
    .download-product-deck-ready .download-product:not(:last-child) > .download-product-sheet {
        --layered-content-inset: clamp(24px, 3vw, 32px);
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-product-deck-ready .home-hero-product,
    .home-product-deck-ready .home-hero-layout,
    .home-product-deck-ready .home-hero-download,
    .product-showcase-deck-ready .product-showcase,
    .product-showcase-deck-ready .product-showcase-sheet,
    .download-product-deck-ready .download-product,
    .download-product-deck-ready .download-product-sheet,
    .download-product-deck-ready .download-product .download-btn {
        transition: none;
    }
}

/* Promotion dialog and direct contact details. */
.contact-dialog {
    margin: auto;
    width: min(400px, calc(100vw - 32px));
    max-height: calc(100dvh - 48px);
    padding: 24px;
    border: 1px solid var(--border);
    border-radius: 16px;
    background: var(--bg);
    color: var(--text-primary);
}
.contact-dialog::backdrop { background: var(--modal-overlay); }
.contact-dialog-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.contact-dialog-heading h2 { font-size: 22px; }
.contact-close { width: 36px; height: 36px; background: var(--card-bg); border: 0; border-radius: 50%; color: var(--text-primary); font-size: 24px; cursor: pointer; }
.contact-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0; }
.contact-row + .contact-row { border-top: 1px solid var(--border); }
.contact-row > div { min-width: 0; }
.contact-label { display: block; font-size: 12px; color: var(--text-secondary); margin-bottom: 4px; }
.contact-value { display: block; font-size: 16px; overflow-wrap: anywhere; user-select: text; }
.contact-copy { flex-shrink: 0; min-height: 44px; padding: 0 12px; border: 0; border-radius: 8px; background: var(--card-bg); color: var(--accent); cursor: pointer; font-size: 13px; }
.contact-copy:hover { background: var(--card-hover); }
.contact-copy-status { font-size: 13px; color: var(--text-secondary); overflow-wrap: anywhere; }
.contact-copy-status:not(:empty) { margin-top: 12px; }
