/* ================================================================
   WHITEBOARD GALLERY — Landing Page Styles
   Extracted from whiteboard_gallery.html inline <style>
   Enhanced with Miro-quality visual polish
   ================================================================ */

/* ── Design Tokens (page-specific) ─────────────── */
:root {
    --bg-primary: #f8f9fb;
    --bg-card: #ffffff;
    --bg-card-hover: #f0f4ff;
    --text-primary: #1a1a2e;
    --text-secondary: #6b7280;
    --text-tertiary: #9ca3af;
    --border: #e5e7eb;
    --border-hover: #6366f1;
    --accent: #6366f1;
    --accent-hover: #818cf8;
    --accent-light: #eef2ff;
    --accent-glow: rgba(99, 102, 241, 0.25);
    --pink: #ec4899;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.15);
    --radius: 16px;
    --radius-sm: 10px;
    --radius-lg: 24px;
    --font: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    --glass: rgba(255, 255, 255, 0.75);
    --glass-border: rgba(255, 255, 255, 0.25);
    --mockup-dot: rgba(0, 0, 0, 0.07);
}

[data-theme="dark"] {
    --bg-primary: #0f0f1a;
    --bg-card: #1a1a2e;
    --bg-card-hover: #252540;
    --text-primary: #f0f0f5;
    --text-secondary: #9ca3af;
    --text-tertiary: #6b7280;
    --border: #2d2d44;
    --border-hover: #818cf8;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-light: #1e1b4b;
    --accent-glow: rgba(129, 140, 248, 0.25);
    --pink: #f472b6;
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.4);
    --shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.5);
    --glass: rgba(26, 26, 46, 0.8);
    --glass-border: rgba(255, 255, 255, 0.08);
    --mockup-dot: rgba(255, 255, 255, 0.06);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: var(--font);
    background: var(--bg-primary);
    color: var(--text-primary);
    min-height: 100vh;
}

/* ── Skip link ─────────────────────────────────── */
.skip-link {
    position: absolute;
    left: -9999px;
    top: auto;
    width: 1px;
    height: 1px;
    overflow: hidden;
    z-index: 1000;
    background: var(--accent);
    color: #fff;
    padding: 12px 24px;
    border-radius: 0 0 var(--radius-sm) var(--radius-sm);
    font-size: 14px;
    font-weight: 700;
    font-family: var(--font);
    text-decoration: none;
}

.skip-link:focus {
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: auto;
    height: auto;
    overflow: visible;
}

/* ── Header — glass morphism ────────────────────── */
.wb-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 32px;
    border-bottom: 1px solid var(--glass-border);
    background: var(--glass);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.wb-header-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.wb-header-left a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.wb-header-left a:hover {
    color: var(--accent);
}

.wb-header-left a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.wb-header-divider {
    width: 1px;
    height: 22px;
    background: var(--border);
}

.wb-header-logo {
    width: 26px;
    height: 26px;
    object-fit: contain;
}

.wb-header h1 {
    font-size: 20px;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.wb-header-right {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* ── Theme toggle ───────────────────────────────── */
.theme-btn {
    background: var(--bg-primary);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 8px;
    cursor: pointer;
    color: var(--text-secondary);
    font-size: 18px;
    transition: border-color 0.15s, color 0.15s;
}

.theme-btn:hover {
    border-color: var(--accent);
    color: var(--accent);
}

.theme-btn:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

/* ── Buttons ────────────────────────────────────── */
.btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 28px;
    background: linear-gradient(135deg, var(--accent), var(--accent-hover));
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: background 0.3s cubic-bezier(0.4, 0, 0.2, 1), transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
    box-shadow: 0 4px 16px var(--accent-glow), 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary:hover {
    background: linear-gradient(135deg, var(--accent-hover), var(--accent));
    transform: translateY(-3px);
    box-shadow: 0 8px 28px var(--accent-glow), 0 2px 6px rgba(0, 0, 0, 0.12);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-primary:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
    box-shadow: 0 0 0 4px var(--accent);
}

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    background: transparent;
    color: var(--text-primary);
    border: 2px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.2s;
    text-decoration: none;
}

.btn-secondary:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.btn-secondary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

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

/* ── Hero ───────────────────────────────────────── */
.hero {
    position: relative;
    overflow: hidden;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
    text-align: center;
}

.hero-content {
    position: relative;
    max-width: 620px;
    margin: 0 auto;
    z-index: 2;
}

.hero h2 {
    font-size: clamp(40px, 6vw, 64px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.hero h2 .gradient-text {
    background: linear-gradient(135deg, var(--accent), var(--pink));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: clamp(16px, 2.5vw, 20px);
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

/* ── Hero Decorative Elements ──────────────────── */
.hero-decoration {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}

.hero-decoration--1 {
    width: 300px;
    height: 300px;
    top: -80px;
    right: -60px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    opacity: 0.6;
}

.hero-decoration--2 {
    width: 200px;
    height: 200px;
    bottom: -40px;
    left: -40px;
    background: radial-gradient(circle, rgba(236, 72, 153, 0.2) 0%, transparent 70%);
    opacity: 0.5;
}

.hero-decoration--3 {
    width: 120px;
    height: 120px;
    top: 30%;
    left: 10%;
    background: radial-gradient(circle, rgba(34, 211, 238, 0.15) 0%, transparent 70%);
    opacity: 0.4;
}

/* ── Hero Floating Doodles (desktop only) ─────── */
.hero-doodle {
    position: absolute;
    pointer-events: none;
    z-index: 1;
}

.hero-doodle-sticky {
    padding: 12px 14px;
    border-radius: 3px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    font-size: 13px;
    font-weight: 700;
    font-family: var(--font);
    color: rgba(0, 0, 0, 0.4);
    letter-spacing: 0.01em;
}

[data-theme="dark"] .hero-doodle-sticky {
    color: rgba(255, 255, 255, 0.3);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

/* Left side positions */
.hero-doodle--sticky-left-1 {
    top: 12%;
    left: 4%;
}

.hero-doodle--squiggle {
    top: 45%;
    left: 6%;
}

.hero-doodle--star {
    top: 68%;
    left: 3%;
}

.hero-doodle--check {
    top: 78%;
    left: 10%;
}

/* Right side positions */
.hero-doodle--sticky-right-1 {
    top: 15%;
    right: 5%;
}

.hero-doodle--arrow {
    top: 42%;
    right: 7%;
}

.hero-doodle--textbox {
    top: 62%;
    right: 3%;
}

.hero-doodle--sticky-right-2 {
    top: 80%;
    right: 8%;
}

/* Hide doodles on smaller screens where they'd overlap content */
@media (max-width: 1279px) {
    .hero-doodle {
        display: none;
    }
}

/* ── Hero Whiteboard Mockup ────────────────────── */

.hero-mockup {
    position: relative;
    width: 100%;
    max-width: 680px;
    margin: 32px auto 0;
    z-index: 2;
}

.hero-mockup-canvas {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 10;
    background-color: var(--bg-card);
    background-image: radial-gradient(circle, var(--mockup-dot) 1.5px, transparent 1.5px);
    background-size: 22px 22px;
    background-position: 11px 11px;
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-xl);
    overflow: hidden;
}

/* Mockup toolbar hint */
.mockup-toolbar {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 6px;
    z-index: 1;
}

.mockup-toolbar-btn {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--bg-primary);
    border: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mockup-toolbar-btn svg {
    width: 14px;
    height: 14px;
    stroke: var(--text-tertiary);
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Mockup sticky notes */
.mockup-sticky {
    position: absolute;
    border-radius: 4px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 8px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.35);
    letter-spacing: 0.02em;
}

.mockup-sticky--yellow {
    width: 80px;
    height: 60px;
    top: 18%;
    left: 25%;
    background: #fef3c7;
    transform: rotate(-2deg);
}

.mockup-sticky--pink {
    width: 70px;
    height: 55px;
    top: 22%;
    right: 20%;
    background: #fce7f3;
    transform: rotate(1.5deg);
}

.mockup-sticky--blue {
    width: 75px;
    height: 58px;
    bottom: 25%;
    left: 35%;
    background: #dbeafe;
    transform: rotate(-1deg);
}

.mockup-sticky--green {
    width: 65px;
    height: 50px;
    bottom: 20%;
    right: 25%;
    background: #dcfce7;
    transform: rotate(2deg);
}

[data-theme="dark"] .mockup-sticky--yellow { background: #78350f; }
[data-theme="dark"] .mockup-sticky--pink { background: #831843; }
[data-theme="dark"] .mockup-sticky--blue { background: #1e3a5f; }
[data-theme="dark"] .mockup-sticky--green { background: #14532d; }
[data-theme="dark"] .mockup-sticky { color: rgba(255, 255, 255, 0.35); }

/* Mockup shapes */
.mockup-shape {
    position: absolute;
    pointer-events: none;
}

.mockup-shape--circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--accent);
    opacity: 0.4;
    top: 55%;
    left: 18%;
}

.mockup-shape--rect {
    width: 48px;
    height: 32px;
    border-radius: 4px;
    border: 2px solid var(--pink);
    opacity: 0.35;
    top: 15%;
    right: 12%;
}

.mockup-shape--arrow {
    bottom: 40%;
    right: 10%;
    width: 50px;
    height: 2px;
    background: var(--text-tertiary);
    opacity: 0.25;
}

.mockup-shape--arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -4px;
    width: 0;
    height: 0;
    border-left: 6px solid var(--text-tertiary);
    border-top: 5px solid transparent;
    border-bottom: 5px solid transparent;
}

/* Mockup drawing line (SVG path feel) */
.mockup-line {
    position: absolute;
    top: 42%;
    left: 22%;
    width: 120px;
    height: 40px;
    opacity: 0.25;
}

.mockup-line svg {
    width: 100%;
    height: 100%;
}

/* ── Full-bleed section bands ─────────────────── */
.wb-band {
    width: 100%;
    border-top: 1px solid var(--border);
}

.wb-band--alt {
    background: var(--bg-card);
}

.wb-band .wb-section,
.wb-band .faq-section {
    padding-top: 48px;
    padding-bottom: 48px;
}

/* ── Section Common ───────────────────────────── */
.wb-section {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 36px;
}

/* Section separator — disabled in favor of GSAP scroll transitions */

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.section-title {
    font-size: 13px;
    font-weight: 800;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.12em;
}

.view-all-link {
    font-size: 14px;
    font-weight: 700;
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s;
}

.view-all-link:hover {
    color: var(--accent-hover);
    text-decoration: underline;
}

.view-all-link:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.section-subtitle {
    font-size: 16px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 540px;
    margin-bottom: 32px;
}

/* ── Board Grid ───────────────────────────────── */
.board-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.board-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    cursor: pointer;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.board-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 12px 28px var(--accent-glow);
    transform: translateY(-4px);
}

.board-card-thumb {
    width: 100%;
    aspect-ratio: 16/10;
    background: var(--bg-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.board-card-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.board-card:hover .board-card-thumb img {
    transform: scale(1.04);
}

.board-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.board-card-thumb .placeholder-icon {
    font-size: 48px;
    color: var(--text-tertiary);
    opacity: 0.3;
}

.board-card-info {
    padding: 14px 16px;
}

.board-card-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.board-card-meta {
    font-size: 12px;
    color: var(--text-tertiary);
    margin-top: 4px;
}

.board-card-actions {
    position: absolute;
    top: 8px;
    right: 8px;
    display: flex;
    gap: 4px;
    opacity: 0;
    transition: opacity 0.15s ease;
    pointer-events: none;
}

.board-card:hover .board-card-actions,
.board-card:focus-within .board-card-actions {
    opacity: 1;
    pointer-events: auto;
}

.board-card-actions button {
    background: rgba(0, 0, 0, 0.55);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border: none;
    border-radius: 8px;
    color: #fff;
    padding: 7px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.15s;
}

.board-card-actions button:hover {
    background: rgba(0, 0, 0, 0.75);
}

.board-card-actions button:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 1px;
}

/* ── New board card ────────────────────────────── */
.board-card-new {
    border: 2px dashed var(--border);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 200px;
    gap: 10px;
    color: var(--text-tertiary);
    transition: border-color 0.25s, color 0.25s, background 0.25s, transform 0.25s;
}

.board-card-new:hover {
    border-color: var(--accent);
    color: var(--accent);
    background: var(--accent-light);
    transform: translateY(-4px);
}

.board-card-new:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.board-card-new svg {
    width: 36px;
    height: 36px;
}

.board-card-new span {
    font-size: 15px;
    font-weight: 700;
}

/* ── Template Section — Horizontal Scroll ─────── */
.templates-section {
    max-width: 1400px;
}

.templates-horizontal-wrapper {
    overflow: hidden;
    width: 100%;
}

.templates-horizontal-track {
    display: flex;
    gap: 20px;
    width: max-content;
    padding: 8px 0 20px;
}

.templates-horizontal-track .template-card {
    flex: 0 0 200px;
    min-width: 200px;
}

.template-card {
    background: var(--bg-card);
    border: 2px solid var(--border);
    border-radius: var(--radius);
    padding: 0;
    cursor: pointer;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.template-card:hover {
    border-color: var(--accent);
    box-shadow: var(--shadow-lg);
    transform: translateY(-3px);
}

.template-card.is-disabled {
    pointer-events: none;
    opacity: 0.6;
    transform: none;
}

.template-card:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.template-card-preview {
    width: 100%;
    aspect-ratio: 4/3;
    position: relative;
    overflow: hidden;
    transition: transform 0.3s;
}

.template-card:hover .template-card-preview {
    transform: scale(1.02);
}

.template-card-label {
    text-align: center;
    padding: 10px 8px 2px;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-secondary);
}

.template-card-desc {
    text-align: center;
    padding: 0 8px 12px;
    font-size: 11px;
    font-weight: 600;
    color: var(--text-tertiary);
    line-height: 1.4;
}

/* ── Template preview patterns ────────────────── */
.tpl-blank {
    background: #fff;
}

[data-theme="dark"] .tpl-blank {
    background: #1e1e2e;
}

.tpl-grid {
    background-image:
        linear-gradient(var(--border) 1px, transparent 1px),
        linear-gradient(90deg, var(--border) 1px, transparent 1px);
    background-size: 20px 20px;
    background-color: #fff;
}

[data-theme="dark"] .tpl-grid {
    background-color: #1e1e2e;
}

.tpl-dotted {
    background-image: radial-gradient(circle, var(--text-tertiary) 1px, transparent 1px);
    background-size: 16px 16px;
    background-color: #fff;
}

[data-theme="dark"] .tpl-dotted {
    background-color: #1e1e2e;
}

.tpl-lined {
    background-image: repeating-linear-gradient(0deg,
            transparent,
            transparent 27px,
            #dbeafe 27px,
            #dbeafe 28px);
    background-color: #fff;
}

[data-theme="dark"] .tpl-lined {
    background-color: #1e1e2e;
    background-image: repeating-linear-gradient(0deg, transparent, transparent 27px, #2d2d44 27px, #2d2d44 28px);
}

.tpl-brainstorm {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
}

[data-theme="dark"] .tpl-brainstorm {
    background: linear-gradient(135deg, #78350f, #92400e);
}

.tpl-kanban {
    background: #f0f4ff;
    display: flex;
    gap: 4px;
    padding: 6px;
}

[data-theme="dark"] .tpl-kanban {
    background: #1e1b4b;
}

.tpl-kanban-col {
    flex: 1;
    background: var(--bg-card);
    border-radius: 4px;
    border: 1px solid var(--border);
}

.tpl-swot {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 3px;
    padding: 6px;
    background: #f8fafc;
}

[data-theme="dark"] .tpl-swot {
    background: #1e1e2e;
}

[data-theme="dark"] .tpl-swot .tpl-swot-quad {
    opacity: 0.35;
}

.tpl-swot-quad {
    border-radius: 4px;
}

.tpl-timeline {
    position: relative;
    background: #f8fafc;
    padding: 6px;
}

[data-theme="dark"] .tpl-timeline {
    background: #1e1e2e;
}

[data-theme="dark"] .tpl-timeline-dot {
    border-color: #1e1e2e;
}

.tpl-timeline-line {
    position: absolute;
    top: 50%;
    left: 10%;
    right: 10%;
    height: 3px;
    background: #94a3b8;
    border-radius: 2px;
}

.tpl-timeline-dot {
    position: absolute;
    top: 50%;
    width: 10px;
    height: 10px;
    background: #6366f1;
    border-radius: 50%;
    transform: translate(-50%, -50%);
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.tpl-proscons {
    display: flex;
    gap: 3px;
    padding: 6px;
    background: #f8fafc;
}

[data-theme="dark"] .tpl-proscons {
    background: #1e1e2e;
}

[data-theme="dark"] .tpl-proscons .tpl-proscons-col {
    opacity: 0.35;
}

.tpl-proscons-col {
    flex: 1;
    border-radius: 4px;
}

.tpl-retro {
    display: flex;
    gap: 3px;
    padding: 6px;
    background: #f8fafc;
}

[data-theme="dark"] .tpl-retro {
    background: #1e1e2e;
}

[data-theme="dark"] .tpl-retro .tpl-retro-col {
    opacity: 0.35;
}

.tpl-retro-col {
    flex: 1;
    border-radius: 4px;
}

/* Dark mode overrides for inline-styled template previews */
[data-theme="dark"] .template-card-preview[style*="background:#f8fafc"],
[data-theme="dark"] .template-card-preview[style*="background: #f8fafc"] {
    background: #1e1e2e !important;
}

[data-theme="dark"] .template-card-preview[style*="background:#fffbeb"],
[data-theme="dark"] .template-card-preview[style*="background: #fffbeb"] {
    background: #1e1e2e !important;
}

[data-theme="dark"] .template-card-preview[style] div[style*="background:#fff"],
[data-theme="dark"] .template-card-preview[style] div[style*="background: #fff"] {
    background: var(--bg-card) !important;
}

/* ── Sticky Feature Showcase (What's inside) ──── */
.features-showcase-section {
    max-width: 1400px;
}

.features-showcase {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 48px;
    align-items: start;
}

/* Left column: scrolling text items */
.features-showcase-text {
    display: flex;
    flex-direction: column;
}

.feature-text-item {
    padding: 28px 24px;
    border-left: 3px solid var(--border);
    opacity: 0.4;
    transition: opacity 0.3s ease, border-color 0.3s ease;
}

.feature-text-item.is-active {
    opacity: 1;
    border-left-color: var(--accent);
}

.feature-text-item:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-radius: 4px;
}

.feature-text-item .feature-icon {
    font-size: 32px;
    margin-bottom: 12px;
    display: block;
}

.feature-text-item .feature-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 8px;
}

.feature-text-item .feature-desc {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    max-width: 360px;
}

/* Right column: sticky demo panel */
.features-showcase-demo {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.features-demo-panel {
    position: relative;
    width: 100%;
    aspect-ratio: 4/3;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-demo {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transform: scale(0.97);
    transition: opacity 0.35s ease, transform 0.35s ease;
    padding: 32px;
}

.feature-demo.is-active {
    opacity: 1;
    transform: scale(1);
}

.feature-demo svg {
    width: 80%;
    height: 80%;
    max-width: 280px;
}

/* Demo: Text block */
.demo-text-block {
    text-align: center;
}

.demo-text-title {
    font-size: 28px;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 8px;
}

.demo-text-body {
    font-size: 14px;
    color: var(--text-secondary);
}

.demo-text-cursor {
    display: inline-block;
    width: 2px;
    height: 18px;
    background: var(--accent);
    margin-left: 2px;
    animation: blink 1s step-end infinite;
}

@keyframes blink {
    50% {
        opacity: 0;
    }
}

/* Demo: Sticky notes grid */
.demo-sticky-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 70%;
    max-width: 220px;
}

.demo-sticky {
    aspect-ratio: 1;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: rgba(0, 0, 0, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Demo: Multi-page stack */
.demo-pages {
    position: relative;
    width: 140px;
    height: 100px;
}

.demo-page {
    position: absolute;
    width: 100%;
    height: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-page--back {
    top: 8px;
    left: 8px;
    opacity: 0.3;
}

.demo-page--mid {
    top: 4px;
    left: 4px;
    opacity: 0.6;
}

.demo-page--front {
    top: 0;
    left: 0;
    box-shadow: var(--shadow-sm);
}

.demo-page--front span {
    font-size: 13px;
    font-weight: 700;
    color: var(--text-tertiary);
}

/* Demo: Export */
.demo-export {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 16px;
}

.demo-export-formats {
    display: flex;
    gap: 8px;
}

.demo-format-badge {
    padding: 4px 12px;
    border-radius: 6px;
    background: var(--accent-light);
    color: var(--accent);
    font-size: 12px;
    font-weight: 700;
}

/* Demo: Sharing */
.demo-sharing {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.demo-share-label {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-secondary);
}

/* Demo: Auto-save */
.demo-autosave {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.demo-autosave-label {
    font-size: 14px;
    font-weight: 700;
    color: #16a34a;
}

/* Demo: Dark mode split */
.demo-darkmode {
    display: flex;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    width: 70%;
    max-width: 200px;
}

.demo-theme-half {
    flex: 1;
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-theme-light {
    background: #f8f9fb;
}

.demo-theme-dark {
    background: #1a1a2e;
}

/* ── Steps (How to use) ────────────────────────── */
.steps-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    counter-reset: step;
}

.step-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 24px 20px;
    position: relative;
    transition: border-color 0.2s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.2s cubic-bezier(0.4, 0, 0.2, 1), transform 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.step-card:hover {
    border-color: var(--border-hover);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.step-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--accent);
    color: #fff;
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 12px;
}

.step-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 6px;
}

.step-desc {
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.6;
}

/* Step connecting line (desktop only) */
@media (min-width: 769px) {
    .step-card:not(:last-child)::after {
        content: '';
        position: absolute;
        top: 34px;
        right: -12px;
        width: 24px;
        height: 2px;
        background: linear-gradient(90deg, var(--accent), transparent);
        pointer-events: none;
        opacity: 0.4;
    }
}

/* ── FAQ ──────────────────────────────────────── */
.faq-section {
    max-width: 720px;
    margin: 0 auto;
    padding: 0 32px 40px;
}

/* FAQ separator — disabled in favor of GSAP scroll transitions */

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
}

.faq-item summary {
    padding: 20px 24px;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: color 0.15s;
}

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

.faq-item summary::after {
    content: '+';
    font-size: 22px;
    font-weight: 300;
    color: var(--text-tertiary);
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: '\2212';
    color: var(--accent);
}

.faq-item summary:hover {
    color: var(--accent);
}

.faq-item summary:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: -2px;
    border-radius: var(--radius);
}

.faq-answer {
    padding: 0 24px 20px;
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.7;
    animation: faqSlideDown 0.25s ease-out;
}

@keyframes faqSlideDown {
    from {
        opacity: 0;
        transform: translateY(-8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ── Bottom CTA section ──────────────────────── */
.wb-cta-section {
    text-align: center;
    padding-top: 16px;
    padding-bottom: 48px;
}

.wb-cta-title {
    font-size: clamp(24px, 4vw, 36px);
    font-weight: 900;
    margin-bottom: 12px;
}

.wb-cta-section .section-subtitle {
    margin: 0 auto 24px;
    text-align: center;
}

/* ── FAQ header overrides ────────────────────── */
.faq-section .section-header {
    max-width: 720px;
    margin: 0 auto 8px;
}

.faq-section .section-subtitle {
    max-width: 720px;
    margin: 0 auto 24px;
    text-align: center;
}

/* ── Login link ──────────────────────────────── */
.wb-login-link {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
}

/* ── Footer ───────────────────────────────────── */
.wb-footer {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
}

.wb-footer a {
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s;
}

.wb-footer a:hover {
    color: var(--accent);
}

.wb-footer a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.wb-footer-note {
    font-size: 13px;
    color: var(--text-tertiary);
    font-weight: 600;
}

/* ── Empty state ──────────────────────────────── */
.empty-state {
    text-align: center;
    padding: 48px 20px;
    color: var(--text-tertiary);
}

.empty-state svg {
    width: 56px;
    height: 56px;
    margin-bottom: 16px;
    opacity: 0.3;
}

.empty-state h3 {
    font-size: 17px;
    color: var(--text-secondary);
    margin-bottom: 6px;
    font-weight: 700;
}

.empty-state p {
    font-size: 14px;
    max-width: 360px;
    margin: 0 auto;
}

/* ── Anonymous board notice ───────────────────── */
.anon-notice {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    margin-bottom: 16px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    border-radius: 8px;
    font-size: 13px;
    color: var(--text-secondary);
    line-height: 1.4;
}

.anon-notice svg {
    flex-shrink: 0;
    opacity: 0.5;
}

.anon-notice a {
    color: var(--accent);
    font-weight: 600;
    text-decoration: none;
}

.anon-notice a:hover {
    text-decoration: underline;
}

.anon-notice a:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
    border-radius: 4px;
}

.anon-notice .claimed-toast {
    color: #16a34a;
    font-weight: 600;
}

/* ── Loading ──────────────────────────────────── */
.loading-spinner {
    display: flex;
    justify-content: center;
    padding: 40px;
    grid-column: 1 / -1;
}

.loading-spinner::after {
    content: '';
    width: 28px;
    height: 28px;
    border: 3px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}

/* ── Animations ───────────────────────────────── */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* ── Responsive ───────────────────────────────── */
/* Tablet/Mobile: revert horizontal scroll to grid */
@media (max-width: 1023px) {
    .templates-horizontal-wrapper {
        overflow: visible;
    }

    .templates-horizontal-track {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
        gap: 16px;
        width: auto;
        padding: 0;
    }

    .templates-horizontal-track .template-card {
        flex: none;
        min-width: 0;
    }

    /* Feature showcase: stack vertically */
    .features-showcase {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .features-showcase-demo {
        position: relative;
        top: 0;
        order: -1;
    }

    .feature-text-item {
        padding: 16px 16px;
        opacity: 1;
        border-left: none;
        border-bottom: 1px solid var(--border);
    }

    .feature-text-item.is-active {
        border-left: none;
    }
}

@media (max-width: 768px) {
    .wb-header {
        padding: 14px 16px;
    }

    .hero {
        padding: 32px 20px;
    }

    .hero h2 {
        font-size: clamp(32px, 6vw, 48px);
    }

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

    .hero-actions .btn-primary {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }

    .wb-section {
        padding: 0 16px 28px;
    }

    .board-grid {
        grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
        gap: 12px;
    }

    .templates-horizontal-track {
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    .steps-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .faq-section {
        padding: 0 16px 28px;
    }

    .wb-footer {
        padding: 0 16px 32px;
    }

    /* Disable hero decorations on mobile */
    .hero-decoration {
        display: none;
    }

    /* Scale down mockup */
    .hero-mockup {
        margin-top: 24px;
    }
}

@media (max-width: 480px) {
    .hero {
        min-height: auto;
        padding: 24px 16px;
    }

    .board-grid {
        grid-template-columns: 1fr 1fr;
    }

    .templates-horizontal-track {
        grid-template-columns: repeat(2, 1fr);
    }

    .steps-grid {
        grid-template-columns: 1fr;
    }
}

/* ── Reduced Motion ───────────────────────────── */
@media (prefers-reduced-motion: reduce) {
    .hero-decoration {
        display: none;
    }

    .faq-answer {
        animation: none;
    }

    .demo-text-cursor {
        animation: none;
    }

    /* Ensure mockup elements are always visible */
    .mockup-toolbar,
    .mockup-sticky,
    .mockup-shape,
    .mockup-line {
        opacity: 1 !important;
        transform: none !important;
    }

    .mockup-draw-path {
        stroke-dashoffset: 0 !important;
    }

    /* Ensure all animated content is visible */
    .feature-text-item,
    .step-card,
    .faq-item,
    .wb-footer,
    .wb-section,
    .section-subtitle,
    .template-card,
    .board-card,
    .hero-doodle {
        opacity: 1 !important;
        transform: none !important;
    }

    .feature-demo:first-child {
        opacity: 1 !important;
        transform: none !important;
    }

    /* Disable all transitions */
    .feature-demo,
    .feature-text-item {
        transition: none !important;
    }

    /* Disable hover transforms */
    .btn-primary:hover,
    .btn-secondary:hover,
    .board-card:hover,
    .board-card-new:hover,
    .template-card:hover,
    .step-card:hover,
    .board-card:hover .board-card-thumb img,
    .template-card:hover .template-card-preview {
        transform: none !important;
    }
}