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

:root {
    --primary-color: #6b8f5c;
    --primary-dark: #5a7a4d;
    --secondary-color: #8a7355;
    --text-dark: #1a1a1a;
    --text-light: #666666;
    --bg-light: #f5f5f5;
    --bg-card: #ffffff;
    --border-color: #e0e0e0;
    --accent-green: #6b8f5c;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] {
    --primary-color: #9caf88;
    --primary-dark: #8a9b78;
    --secondary-color: #8a7355;
    --text-dark: #f0f0f0;
    --text-light: #a0a0a0;
    --bg-light: #0a0a0a;
    --bg-card: #141414;
    --border-color: #2a2a2a;
    --accent-green: #9caf88;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.6);
}

/* Dark mode specific styles */
[data-theme="dark"] .nav-cta {
    background: var(--primary-color);
    color: #0a0a0a;
}

[data-theme="dark"] .btn-primary {
    background: var(--primary-color);
    color: #0a0a0a;
}

[data-theme="dark"] .cta .btn-primary {
    background: var(--text-dark);
    color: #0a0a0a;
}

[data-theme="dark"] .nav-cta:hover {
    background: var(--primary-dark);
}

[data-theme="dark"] .btn-primary:hover {
    background: var(--primary-dark);
}

[data-theme="dark"] .feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="dark"] .step-number {
    background: var(--primary-color);
    color: #0a0a0a;
}


[data-theme="dark"] .footer {
    background: #050505;
    color: var(--text-dark);
}

[data-theme="dark"] .footer-links a {
    color: var(--text-light);
}

[data-theme="dark"] .footer-links a:hover {
    color: var(--primary-color);
}

[data-theme="dark"] .tech-item strong {
    color: var(--primary-color);
}

[data-theme="dark"] .privacy-icon {
    color: var(--primary-color);
}

[data-theme="dark"] .privacy-item h4 {
    color: var(--primary-color);
}

[data-theme="dark"] .app-screenshot {
    box-shadow: 0 0 48px rgba(156, 175, 136, 0.38), 0 0 100px rgba(156, 175, 136, 0.2), 0 22px 50px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .showcase-screenshot {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

[data-theme="dark"] .showcase-screenshot:hover {
    box-shadow: 0 15px 50px rgba(156, 175, 136, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.08);
}

[data-theme="dark"] .feature-card:hover {
    border-color: var(--primary-color);
}

/* Light mode specific styles */
[data-theme="light"] .nav-cta {
    background: var(--primary-color);
    color: #ffffff;
}

[data-theme="light"] .btn-primary {
    background: var(--text-dark);
    color: #ffffff;
}

[data-theme="light"] .feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

[data-theme="light"] .feature-card:hover {
    border-color: var(--primary-color);
}

[data-theme="light"] .step-number {
    background: var(--primary-color);
    color: #ffffff;
}


[data-theme="light"] .footer {
    background: var(--text-dark);
    color: #ffffff;
}

[data-theme="light"] .tech-item strong {
    color: var(--primary-color);
}

[data-theme="light"] .privacy-icon {
    color: var(--primary-color);
}

[data-theme="light"] .privacy-item h4 {
    color: var(--primary-color);
}

[data-theme="light"] .app-screenshot {
    box-shadow: 0 28px 55px rgba(0, 0, 0, 0.22), 0 10px 22px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .showcase-screenshot {
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1), 0 0 0 1px rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .showcase-screenshot:hover {
    box-shadow: 0 15px 50px rgba(107, 143, 92, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.08);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    background-color: var(--bg-light);
    transition: background-color 0.3s ease, color 0.3s ease;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Navigation */
.navbar {
    background: var(--bg-card);
    padding: 16px 0;
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow);
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.logo-anim {
    position: relative;
    height: 36px;
    width: 36px;
    flex-shrink: 0;
    display: inline-block;
    line-height: 0;
    color: var(--primary-color);
}

/* fallback and each Lottie layer overlap so swaps never blank or shift */
.logo-anim > .logo-fallback,
.logo-anim > .logo-layer {
    position: absolute;
    inset: 0;
}

/* Static fallback = the real logo file (white alpha PNG used as a mask),
   tinted to the brand color - the same resting smiley the animation plays. */
.logo-anim > .logo-fallback {
    background-color: var(--primary-color);
    -webkit-mask: url('/images/Logo_alpha_v002.png') center / contain no-repeat;
    mask: url('/images/Logo_alpha_v002.png') center / contain no-repeat;
}

.logo-anim svg {
    width: 100% !important;
    height: 100% !important;
    display: block;
}

.logo-text {
    font-size: 22px;
    font-weight: 600;
    color: var(--primary-color);
    letter-spacing: -0.02em;
}

.font-mono {
    font-family: 'JetBrains Mono', monospace;
}

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

.theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: 8px;
    color: var(--text-dark);
    transition: background 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.theme-toggle:hover {
    background: var(--bg-light);
}

.theme-toggle svg {
    transition: opacity 0.3s;
}

.sun-icon {
    position: absolute;
}

[data-theme="dark"] .sun-icon {
    opacity: 0;
}

[data-theme="dark"] .moon-icon {
    opacity: 1;
}

.moon-icon {
    opacity: 0;
}

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

.nav-link {
    color: var(--text-light);
    text-decoration: none;
    font-weight: 500;
    font-size: 14px;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary-color);
}

.nav-cta {
    background: var(--primary-color);
    color: white;
    padding: 8px 20px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 500;
    transition: background 0.3s;
}

.nav-cta:hover {
    background: var(--primary-dark);
}

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

/* Mobile menu styles */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    color: var(--text-dark);
}

.menu-toggle .close-icon {
    display: none;
}

.menu-toggle.open .menu-icon {
    display: none;
}

.menu-toggle.open .close-icon {
    display: block;
}

.mobile-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-card);
    border-top: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    padding: 16px 20px;
    flex-direction: column;
    gap: 8px;
}

.mobile-menu.open {
    display: flex;
}

.mobile-menu-link {
    color: var(--text-dark);
    text-decoration: none;
    font-weight: 500;
    font-size: 16px;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    transition: color 0.3s;
}

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

.mobile-menu-link:hover {
    color: var(--primary-color);
}

.mobile-theme-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.mobile-theme-row .theme-label {
    color: var(--text-dark);
    font-weight: 500;
    font-size: 16px;
}

.theme-switch {
    background: none;
    border: none;
    padding: 0;
    cursor: pointer;
}

.switch-track {
    display: block;
    width: 48px;
    height: 28px;
    background: var(--border-color);
    border-radius: 14px;
    position: relative;
    transition: background 0.2s;
}

.switch-thumb {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: white;
    border-radius: 50%;
    transition: transform 0.2s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.theme-switch.on .switch-track {
    background: var(--primary-color);
}

.theme-switch.on .switch-thumb {
    transform: translateX(20px);
}

/* Hero Section */
.hero {
    padding: 120px 0 60px;
}

.hero-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 48px;
}

.hero-content {
    flex: 1;
    max-width: 560px;
}

.hero-image {
    flex: 0 0 auto;
    max-width: 360px;
}

.app-screenshot {
    width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.hero-title {
    font-size: 56px;
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.hero-tagline {
    font-size: 28px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: 20px;
}

.hero-subtitle {
    font-size: 18px;
    color: var(--text-light);
    margin-bottom: 32px;
    max-width: 600px;
    line-height: 1.7;
}

.hero-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    white-space: nowrap;
}

.hero-link:hover {
    text-decoration: underline;
}

.hero-cta {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 14px;
}

.hero-cta-center {
    justify-content: center;
}

/* Quiet platform note under the download buttons */
.cta-note {
    flex-basis: 100%;
    margin: 2px 0 0;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    letter-spacing: -0.02em;
    color: var(--text-light);
}

.hero-cta-center .cta-note {
    text-align: center;
}

.btn-primary {
    background: var(--text-dark);
    color: white;
    padding: 16px 32px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, box-shadow 0.2s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.apple-logo {
    width: 20px;
    height: 20px;
}

.download-note {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-light);
    letter-spacing: -0.02em;
}

/* Features Section */
.features {
    padding: 80px 0;
    background: var(--bg-card);
}

.section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 60px;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 32px;
}

.feature-card {
    background: var(--bg-light);
    padding: 32px;
    border-radius: 16px;
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-4px);
}

.feature-icon {
    margin-bottom: 16px;
    color: var(--primary-color);
}

.feature-icon svg {
    display: block;
}

.feature-card h4 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
}

.feature-card p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* App Showcase */
.app-showcase {
    padding: 80px 0;
    background: var(--bg-light);
}

.app-showcase .container {
    max-width: 1400px;
}

.showcase-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    max-width: 1400px;
    margin: 0 auto;
}

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

.showcase-screenshot {
    width: 100%;
    max-width: 260px;
    height: auto;
    border-radius: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    margin-bottom: 16px;
    transition: transform 0.3s, box-shadow 0.3s;
}

.showcase-screenshot:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.showcase-item h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.showcase-item p {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-light);
    font-size: 11px;
    max-width: 240px;
    margin: 0 auto;
    line-height: 1.6;
}

/* How it Works */
.how-it-works {
    padding: 80px 0;
    background: var(--bg-card);
}

.steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    max-width: 1000px;
    margin: 0 auto;
}

.step {
    text-align: center;
}

.step-number {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 20px;
}

.step h4 {
    font-size: 20px;
    margin-bottom: 12px;
}

.step p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
}

/* Privacy Section */
.faq {
    padding: 80px 0;
}

.faq-list {
    max-width: 760px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 4px 24px;
}

.faq-item summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 0;
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

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

.faq-item summary::after {
    content: "+";
    font-size: 24px;
    font-weight: 400;
    color: var(--text-light);
    margin-left: 16px;
    transition: transform 0.2s;
}

.faq-item[open] summary::after {
    content: "\2212";
}

.faq-item p {
    color: var(--text-light);
    line-height: 1.6;
    padding: 0 0 18px;
    margin: 0;
}

.privacy {
    padding: 80px 0;
    background: var(--bg-light);
}

.privacy-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

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

.privacy-icon {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.privacy-icon svg {
    display: block;
    margin: 0 auto;
}

.privacy-item h4 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 16px;
    color: var(--primary-color);
}

.privacy-item p {
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
    color: var(--text-light);
    line-height: 1.7;
    max-width: 350px;
    margin: 0 auto;
}

.privacy-statement {
    text-align: center;
    font-size: 18px;
    font-style: italic;
    color: var(--text-dark);
    max-width: 800px;
    margin: 40px auto 0;
    padding-top: 40px;
    border-top: 1px solid var(--border-color);
}

/* Technical Section */
.technical {
    padding: 80px 0;
    background: var(--bg-card);
}

.tech-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    text-align: center;
    padding: 24px;
    background: var(--bg-card);
    border-radius: 12px;
    border: 1px solid var(--border-color);
}

.tech-item strong {
    display: block;
    font-family: 'JetBrains Mono', monospace;
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--primary-color);
}

.tech-item span {
    font-family: 'JetBrains Mono', monospace;
    color: var(--text-light);
    font-size: 12px;
}

/* CTA Section */
.cta {
    padding: 100px 0;
    background: var(--bg-card);
    text-align: center;
}

.cta-content h2 {
    font-size: 36px;
    margin-bottom: 16px;
    color: var(--text-dark);
}

.cta-content p {
    font-size: 18px;
    margin-bottom: 32px;
    color: var(--text-light);
}

/* Footer */
.footer {
    background: var(--text-dark);
    color: white;
    padding: 40px 0;
    text-align: center;
}

.footer p {
    margin-bottom: 8px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 13px;
}

.footer-links {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin: 16px 0;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    opacity: 0.8;
    transition: opacity 0.3s, color 0.3s;
}

.footer-links a:hover {
    opacity: 1;
    text-decoration: underline;
}

.footer-separator {
    opacity: 0.5;
    font-size: 14px;
}

.footer-tagline {
    opacity: 0.8;
    font-size: 14px;
}

/* ---------------------------------------------------------------- */
/* Content pages (/guides/, /learn/) - shared docs/article styles    */
/* ---------------------------------------------------------------- */

.content-container {
    max-width: 760px;
    margin: 0 auto;
    padding: 100px 20px 60px;
}

.content-container.wide {
    max-width: 980px;
}

.content-header {
    margin-bottom: 32px;
}

.content-eyebrow {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary-color);
    margin-bottom: 12px;
}

.content-header h1 {
    font-size: 40px;
    font-weight: 700;
    line-height: 1.15;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.content-tagline {
    font-size: 19px;
    color: var(--text-light);
    line-height: 1.6;
    max-width: 640px;
}

.content-meta {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-light);
    margin-top: 16px;
}

.content-body {
    line-height: 1.75;
    font-size: 17px;
    color: var(--text-dark);
}

.content-body h2 {
    font-size: 26px;
    font-weight: 600;
    margin-top: 48px;
    margin-bottom: 16px;
    letter-spacing: -0.01em;
}

.content-body h3 {
    font-size: 19px;
    font-weight: 600;
    margin-top: 28px;
    margin-bottom: 10px;
}

.content-body p {
    margin-bottom: 18px;
    color: var(--text-light);
}

.content-body ul,
.content-body ol {
    margin: 0 0 22px 22px;
    color: var(--text-light);
}

.content-body li {
    margin-bottom: 8px;
}

.content-body strong {
    color: var(--text-dark);
}

.content-body a {
    color: var(--primary-color);
    text-decoration: underline;
    text-decoration-thickness: 1px;
    text-underline-offset: 2px;
}

.content-body a:hover {
    color: var(--primary-dark);
}

.content-body blockquote {
    border-left: 3px solid var(--primary-color);
    padding: 4px 0 4px 20px;
    margin: 24px 0;
    color: var(--text-light);
    font-style: italic;
}

/* FAQ ("Common questions"): indented quote-style answers under each question */
.content-body .faq h3 {
    margin-top: 26px;
    margin-bottom: 8px;
}

.content-body .faq p {
    border-left: 3px solid var(--border-color);
    padding-left: 16px;
    margin-bottom: 12px;
}

/* On-this-page table of contents */
.content-toc {
    margin: 0 0 32px;
    padding: 16px 20px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
}

.content-toc-title {
    display: block;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 10px;
}

.content-toc ul {
    margin: 0;
    padding: 0;
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 7px;
}

.content-toc li {
    margin: 0;
}

.content-toc a {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 15px;
}

.content-toc a:hover {
    text-decoration: underline;
}

.content-body h2[id],
.content-body h3[id] {
    scroll-margin-top: 90px;
}

/* Nested sub-items in the table of contents */
.content-toc ul ul {
    margin: 7px 0 2px 16px;
    gap: 6px;
}

.content-toc ul ul a {
    font-size: 14px;
    color: var(--text-light);
}

.content-toc ul ul a:hover {
    color: var(--primary-color);
}

/* Animated Quick Entry demo - sits unframed on the page, with a soft glow so it pops */
.qe-demo {
    margin: 26px 0 32px;
    display: flex;
    justify-content: center;
}

.qe-row {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    width: 100%;
    max-width: 470px;
}

.qe-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 11px;
}

.qe-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    background: var(--bg-card);
    border: 2px solid transparent;
    border-radius: 999px;
    padding: 13px 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    transition: border-color 0.25s ease, box-shadow 0.3s ease;
}

[data-theme="dark"] .qe-bar {
    box-shadow: 0 0 32px rgba(156, 175, 136, 0.45), 0 0 70px rgba(156, 175, 136, 0.3), 0 12px 34px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.qe-bar.submitting {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 4px color-mix(in srgb, var(--primary-color) 24%, transparent), 0 10px 30px rgba(0, 0, 0, 0.12);
}

.qe-ic {
    flex-shrink: 0;
    display: flex;
    color: var(--text-light);
}

.qe-ic svg {
    width: 20px;
    height: 20px;
    display: block;
}

.qe-field {
    flex: 1;
    display: flex;
    align-items: center;
    min-width: 0;
    overflow: hidden;
}

.qe-text {
    font-size: 15px;
    color: var(--text-dark);
    white-space: nowrap;
}

.qe-text:empty::before {
    content: "Add someone\2026";
    color: var(--text-light);
}

/* inline recognition highlights */
.qe-hl-loc { color: #5a8f4c; font-weight: 600; }
.qe-hl-bday { color: #cf6f4f; font-weight: 600; }
.qe-hl-rem { color: #c2873a; font-weight: 600; }
[data-theme="dark"] .qe-hl-loc { color: #9caf88; }
[data-theme="dark"] .qe-hl-bday { color: #e08a6f; }
[data-theme="dark"] .qe-hl-rem { color: #d6a45c; }

.qe-caret {
    flex-shrink: 0;
    width: 1.5px;
    height: 18px;
    margin-left: 1px;
    background: var(--primary-color);
    animation: qeBlink 1s step-end infinite;
}

.qe-text:empty + .qe-caret {
    display: none;
}

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

/* detected chips below the bar */
.qe-chips {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 8px;
    padding-left: 2px;
    /* reserve one row so chips appearing/clearing never shift the page */
    min-height: 34px;
}

.qe-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 9px 6px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--cc);
    background: color-mix(in srgb, var(--cc) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--cc) 35%, transparent);
    opacity: 0;
    transform: translateY(4px);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.qe-chip.show {
    opacity: 1;
    transform: none;
}

.qe-chip svg { width: 14px; height: 14px; }
.qe-chip-x { display: inline-flex; opacity: 0.65; }
.qe-chip-x svg { width: 13px; height: 13px; }

.qe-list-btn {
    flex-shrink: 0;
    width: 46px;
    height: 46px;
    border-radius: 999px;
    background: var(--bg-card);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12), 0 2px 6px rgba(0, 0, 0, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

[data-theme="dark"] .qe-list-btn {
    box-shadow: 0 12px 34px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

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

@media (prefers-reduced-motion: reduce) {
    .qe-caret {
        animation: none;
    }
}

/* Unprocessed entries carousel (process section) */
.proc-demo {
    margin: 22px 0 30px;
}

.proc-demo-head {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 14px;
    color: var(--primary-color);
    font-size: 15px;
    font-weight: 700;
}

.proc-demo-head svg {
    width: 16px;
    height: 16px;
}

.proc-demo-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 7px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--primary-color) 22%, transparent);
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
}

.proc-demo-view {
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}

.proc-demo-track {
    display: flex;
    width: max-content;
    animation: procScroll 30s linear infinite;
}

.proc-demo-group {
    display: flex;
    gap: 14px;
    padding-right: 14px;
}

@keyframes procScroll {
    from { transform: translateX(-50%); }
    to { transform: translateX(0); }
}

.proc-card {
    display: flex;
    align-items: center;
    gap: 14px;
    flex-shrink: 0;
    width: 290px;
    padding: 14px 18px;
    border-radius: 16px;
    background: #aaba93;
    color: #232b1a;
    font-size: 15px;
    font-weight: 500;
}

[data-theme="dark"] .proc-card {
    background: #8a9b78;
    color: #15190d;
}

.proc-card-avatar {
    flex-shrink: 0;
    width: 38px;
    height: 38px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.3);
    color: rgba(30, 42, 20, 0.5);
}

.proc-card-avatar svg {
    width: 22px;
    height: 22px;
}

.proc-card-text {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}

@media (prefers-reduced-motion: reduce) {
    .proc-demo-track {
        animation: none;
    }
}

/* Animated "add a note" demo */
.note-demo {
    margin: 24px auto 30px;
    padding: 22px 22px 24px;
    max-width: 460px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 16px;
}

.note-demo-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.note-demo-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.note-demo-chevron,
.note-demo-add {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 999px;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    color: var(--text-light);
}

.note-demo-chevron svg {
    width: 13px;
    height: 13px;
}

.note-demo-add {
    color: var(--primary-color);
}

.note-demo-add svg {
    width: 15px;
    height: 15px;
}

.note-demo-add.pulse {
    animation: notePulse 0.5s ease;
}

@keyframes notePulse {
    0% { transform: scale(1); }
    45% { transform: scale(1.3); background: color-mix(in srgb, var(--primary-color) 20%, var(--bg-card)); }
    100% { transform: scale(1); }
}

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

.note-demo-row {
    display: grid;
    grid-template-columns: 50px 1fr;
    gap: 10px;
    align-items: start;
}

.note-demo-time {
    font-size: 11px;
    color: var(--text-light);
    text-align: right;
    padding-top: 11px;
    white-space: nowrap;
}

.note-demo-body {
    min-width: 0;
    border-left: 2px solid var(--border-color);
    padding-left: 12px;
}

.note-demo-note {
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    padding: 9px 0 1px;
}

.note-demo-field {
    display: flex;
    align-items: center;
    background: var(--bg-card);
    border-radius: 10px;
    padding: 11px 14px;
    box-shadow: var(--shadow);
}

.note-demo-text {
    font-size: 14px;
    color: var(--text-dark);
    white-space: nowrap;
}

.note-demo-text:empty::before {
    content: "Type your note\2026";
    color: var(--text-light);
}

.note-demo-caret {
    flex-shrink: 0;
    width: 1.5px;
    height: 17px;
    margin-left: 1px;
    background: var(--primary-color);
    animation: qeBlink 1s step-end infinite;
}

.note-demo-text:not(:empty) + .note-demo-caret {
    margin-left: 2px;
}

@media (prefers-reduced-motion: reduce) {
    .note-demo-add.pulse {
        animation: none;
    }
    .note-demo-caret {
        animation: none;
    }
}

.content-body code {
    font-family: 'JetBrains Mono', monospace;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    padding: 2px 6px;
    border-radius: 4px;
    font-size: 14px;
    color: var(--text-dark);
}

.content-callout {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-left: 3px solid var(--primary-color);
    padding: 20px 24px;
    border-radius: 8px;
    margin: 28px 0;
}

.content-callout p:last-child { margin-bottom: 0; }

.content-callout-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 8px;
    font-size: 15px;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    margin-bottom: 24px;
    font-size: 14px;
    transition: color 0.3s;
}

.back-link:hover { color: var(--primary-dark); }

.breadcrumbs {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 16px;
}

.breadcrumbs a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.3s;
}

.breadcrumbs a:hover { color: var(--primary-color); }
.breadcrumbs span.sep { opacity: 0.5; padding: 0 6px; }

/* Hub grid (index pages for /guides/ and /learn/) */
.hub-section {
    margin-top: 40px;
}

.hub-section h2 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 6px;
}

.hub-section .hub-section-desc {
    color: var(--text-light);
    margin-bottom: 24px;
    font-size: 15px;
}

.hub-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.hub-card {
    display: block;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 22px 22px 20px;
    text-decoration: none;
    color: inherit;
    transition: border-color 0.2s, transform 0.2s;
}

.hub-card:hover {
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

.hub-card-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary-color) 14%, transparent);
    color: var(--primary-color);
    margin-bottom: 14px;
}

.hub-card-icon svg {
    width: 20px;
    height: 20px;
}

.hub-card h3 {
    font-size: 17px;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
}

.hub-card p {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.55;
    margin: 0;
}

/* Learn = brown accent, to visually distinguish articles from guides (green) */
.learn-theme .hub-card-icon {
    background: color-mix(in srgb, var(--secondary-color) 16%, transparent);
    color: var(--secondary-color);
}

.learn-theme .hub-card:hover {
    border-color: var(--secondary-color);
}

/* Cards that link out to the Learn library from a guides page get the brown accent too */
.hub-card-learn .hub-card-icon {
    background: color-mix(in srgb, var(--secondary-color) 16%, transparent);
    color: var(--secondary-color);
}

.hub-card-learn:hover {
    border-color: var(--secondary-color);
}

/* Homepage "Learn more" cards (.feature-card variant) */
.feature-card.learn-card .feature-icon {
    color: var(--secondary-color);
}

[data-theme="light"] .feature-card.learn-card:hover,
[data-theme="dark"] .feature-card.learn-card:hover {
    border-color: var(--secondary-color);
}

/* Reference / sources block */
.references {
    margin-top: 56px;
    padding-top: 24px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
}

.references h2 {
    font-size: 18px !important;
    margin-top: 0 !important;
    margin-bottom: 16px !important;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

.references ol {
    color: var(--text-light);
    line-height: 1.6;
    padding-left: 20px;
}

.references li {
    margin-bottom: 12px;
    font-size: 14px;
}

.references a {
    word-break: break-word;
}

/* TOC for long pillar pages */
.toc {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 20px 24px;
    margin: 24px 0 36px;
}

.toc-title {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-light);
    margin-bottom: 12px;
}

.toc ol {
    margin: 0;
    padding-left: 18px;
    color: var(--text-light);
    font-size: 15px;
}

.toc li { margin-bottom: 6px; }

.toc a {
    color: var(--text-dark);
    text-decoration: none;
}

.toc a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.related-articles {
    margin-top: 56px;
    padding-top: 32px;
    border-top: 1px solid var(--border-color);
}

.related-articles h2 {
    font-size: 18px !important;
    margin-top: 0 !important;
    margin-bottom: 20px !important;
    font-family: 'JetBrains Mono', monospace;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 600;
}

@media (max-width: 768px) {
    .content-container { padding: 90px 18px 40px; }
    .content-header h1 { font-size: 30px; }
    .content-tagline { font-size: 17px; }
    .content-body { font-size: 16px; }
    .content-body h2 { font-size: 22px; margin-top: 36px; }
}

/* Responsive Design */
@media (max-width: 1200px) {
    .showcase-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 32px;
    }
}

@media (max-width: 900px) {
    .showcase-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 32px;
    }
}

@media (max-width: 768px) {
    .nav-links-desktop {
        display: none;
    }

    .menu-toggle {
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .theme-toggle {
        display: none;
    }

    .hero-wrapper {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        max-width: 100%;
    }

    .hero-image {
        max-width: 320px;
        margin-top: 32px;
    }

    .hero-title {
        font-size: 42px;
    }

    .hero-tagline {
        font-size: 22px;
    }

    .hero-subtitle {
        font-size: 16px;
    }

    .section-title {
        font-size: 28px;
        margin-bottom: 40px;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .philosophy-text {
        font-size: 20px;
    }

    .btn-primary {
        font-size: 16px;
        padding: 14px 28px;
    }

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

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

    .showcase-screenshot {
        max-width: 220px;
    }
}

@media (max-width: 480px) {
    .hero {
        padding: 100px 0 40px;
    }

    .hero-title {
        font-size: 36px;
    }

    .hero-tagline {
        font-size: 18px;
    }

    .hero-subtitle {
        font-size: 15px;
    }

    .hero-image {
        max-width: 280px;
    }
    
    .features,
    .app-showcase,
    .how-it-works,
    .philosophy,
    .privacy,
    .technical,
    .cta {
        padding: 60px 0;
    }
    
    .privacy-content {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    
    .privacy-icon {
        font-size: 36px;
    }
    
    .privacy-statement {
        font-size: 16px;
        padding-top: 32px;
    }
    
    .feature-card {
        padding: 24px;
    }
    
    .nav-cta {
        padding: 6px 16px;
        font-size: 14px;
    }

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

    .showcase-screenshot {
        max-width: 160px;
    }

    .showcase-item h4 {
        font-size: 14px;
    }

    .showcase-item p {
        font-size: 12px;
    }
}

/* Interactive Network view demo (guides/network-view) */
.network-demo {
    margin: 28px 0;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-card);
    overflow: hidden;
}

.network-demo-canvas-wrap {
    position: relative;
}

#networkCanvas {
    display: block;
    width: 100%;
    height: 480px;
    touch-action: none;
    cursor: grab;
}

#networkCanvas:active {
    cursor: grabbing;
}

.network-demo-hint {
    position: absolute;
    bottom: 12px;
    right: 14px;
    font-size: 12px;
    color: var(--text-light);
    pointer-events: none;
    opacity: 0.8;
}

/* Top bar: force button + count pill (frosted glass over the graph) */
.network-topbar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 4;
}

.network-tool-btn {
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-card) 60%, transparent);
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.network-tool-btn.active {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.network-count {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-light);
    background: color-mix(in srgb, var(--bg-card) 55%, transparent);
    border: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
    padding: 9px 12px;
    border-radius: 999px;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

/* Persistent controls bar below the graph (sliders + toggles) */
.network-controls {
    padding: 14px 16px;
    border-top: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.network-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.network-slider-row > span {
    width: 92px;
    flex-shrink: 0;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

.network-slider-row input[type="range"] {
    flex: 1;
    accent-color: var(--secondary-color);
}

.network-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

/* Force panel (Size / Tags / Connections + toggles) */
.network-panel {
    position: absolute;
    top: 60px;
    left: 12px;
    right: 12px;
    max-width: 440px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-lg);
    padding: 14px 16px;
    z-index: 5;
}

.network-panel[hidden] {
    display: none;
}

.network-panel-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 11px;
}

.network-panel-row > span:first-child {
    width: 96px;
    flex-shrink: 0;
    font-size: 14px;
    color: var(--text-dark);
    font-weight: 500;
}

.network-panel-row input[type="range"] {
    flex: 1;
    accent-color: var(--secondary-color);
}

.network-panel-chip {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 4px 9px;
}

.network-panel-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 13px;
}

.network-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font: inherit;
    font-size: 13px;
    padding: 6px 12px;
    border-radius: 999px;
    border: 1px solid var(--border-color);
    background: transparent;
    color: var(--text-light);
    cursor: pointer;
}

.network-toggle.on {
    background: color-mix(in srgb, var(--primary-color) 14%, transparent);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.network-toggle svg {
    width: 15px;
    height: 15px;
}

/* Bottom-left reset (frosted glass) */
.network-reset-btn {
    position: absolute;
    bottom: 14px;
    left: 14px;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--bg-card) 55%, transparent);
    border: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
    color: var(--text-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    z-index: 4;
}

.network-reset-btn:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
}

/* Tag filter pills (top overlay, frosted) */
.network-pills {
    position: absolute;
    top: 60px;
    left: 12px;
    right: 12px;
    z-index: 3;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 4px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}

.network-pills::-webkit-scrollbar {
    display: none;
}

.network-pill {
    flex: 0 0 auto;
    font: inherit;
    font-size: 13px;
    font-weight: 600;
    padding: 7px 14px;
    border-radius: 999px;
    cursor: pointer;
    border: 1.5px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    background: color-mix(in srgb, var(--bg-card) 55%, transparent);
    color: var(--text-dark);
    display: inline-flex;
    align-items: center;
    gap: 7px;
    white-space: nowrap;
    transition: background 0.15s, border-color 0.15s;
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

.network-pill .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    flex-shrink: 0;
}

.network-pill-clear {
    color: var(--text-light);
}

figure.network-demo figcaption {
    font-size: 12.5px;
    color: var(--text-light);
    padding: 12px 16px 14px;
    margin: 0;
}

@media (max-width: 640px) {
    #networkCanvas {
        height: 420px;
    }
    .network-panel {
        max-width: none;
    }
}

/* Stylized Map view demo (guides/map-view) */
.map-demo {
    margin: 28px 0;
}

.map-stage {
    position: relative;
    width: 100%;
    max-width: 380px;
    margin: 0 auto;
    aspect-ratio: 390 / 470;
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    font-family: 'Inter', sans-serif;
}

.map-base {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.map-topbar {
    position: absolute;
    top: 12px;
    left: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 4;
}

.map-tool-btn {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
    border-radius: 10px;
    border: none;
    background: rgba(255, 255, 255, 0.85);
    color: #2a2a2a;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

.map-tool-btn.active {
    background: #fff;
    color: var(--primary-dark);
}

.map-count {
    flex: 1;
    text-align: center;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(20, 20, 20, 0.6);
    padding: 8px 12px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.map-settings {
    position: absolute;
    top: 56px;
    left: 12px;
    z-index: 5;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    padding: 8px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.map-settings[hidden] {
    display: none;
}

.map-setting {
    font: inherit;
    font-size: 13px;
    text-align: left;
    padding: 7px 12px;
    border-radius: 8px;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    color: #444;
    cursor: pointer;
    white-space: nowrap;
}

.map-setting.on {
    background: color-mix(in srgb, var(--primary-color) 16%, #fff);
    border-color: var(--primary-color);
    color: var(--primary-dark);
    font-weight: 600;
}

.map-filterpill {
    position: absolute;
    top: 58px;
    left: 12px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 13px;
    font-weight: 600;
    color: #fff;
    background: rgba(20, 20, 20, 0.6);
    border: 1.5px solid var(--secondary-color);
    padding: 6px 12px;
    border-radius: 999px;
    backdrop-filter: blur(4px);
}

.map-filterpill .dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: var(--secondary-color);
}

.map-filterpill .x {
    opacity: 0.7;
    font-size: 15px;
    line-height: 1;
}

.map-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    z-index: 2;
}

.map-pin-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--secondary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: 700;
    border: 2px solid #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
    transition: transform 0.15s;
}

.map-pin:hover .map-pin-dot {
    transform: scale(1.12);
}

.map-pin-label {
    font-size: 10px;
    font-weight: 600;
    color: #fff;
    background: rgba(0, 0, 0, 0.62);
    padding: 1px 6px;
    border-radius: 5px;
    white-space: nowrap;
}

.map-stage.hide-labels .map-pin-label {
    display: none;
}

.map-pin.tag {
    display: none;
}

.map-stage.show-tags .map-pin.tag {
    display: flex;
}

.map-pin.tag .map-pin-dot {
    background: #5b8aa6;
}

.map-here {
    position: absolute;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #2f7ff0;
    border: 3px solid #fff;
    box-shadow: 0 0 0 5px rgba(47, 127, 240, 0.22);
    z-index: 1;
}

.map-toolbar {
    position: absolute;
    bottom: 64px;
    left: 12px;
    z-index: 4;
    display: flex;
    gap: 4px;
    background: rgba(20, 20, 20, 0.6);
    border-radius: 12px;
    padding: 5px;
    backdrop-filter: blur(4px);
}

.map-toolbar button {
    width: 34px;
    height: 34px;
    border: none;
    background: transparent;
    color: #fff;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.map-toolbar button:hover {
    background: rgba(255, 255, 255, 0.15);
}

.map-search {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    z-index: 4;
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 999px;
    padding: 11px 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.map-search .map-search-text {
    flex: 1;
    font-size: 14px;
    color: #888;
}

.map-search svg {
    color: #888;
    flex-shrink: 0;
}

.map-search .map-plus {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 300;
    flex-shrink: 0;
}

figure.map-demo figcaption {
    font-size: 12.5px;
    color: var(--text-light);
    text-align: center;
    max-width: 460px;
    margin: 14px auto 0;
}

/* Leaflet map layer + markers (sits below the chrome) */
.map-leaflet {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.map-stage .leaflet-container {
    width: 100%;
    height: 100%;
    background: #aacbe6;
    font: inherit;
}

.map-stage .leaflet-control-attribution {
    font-size: 9px;
    background: rgba(255, 255, 255, 0.7);
}

.leaflet-div-icon.map-marker {
    background: transparent;
    border: none;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: auto !important;
    height: auto !important;
}

.map-marker .map-pin-dot {
    margin: 0 auto;
}

.tag-dot {
    background: #5b8aa6 !important;
}

/* Chrome must sit above Leaflet's marker/popup panes */
.map-topbar,
.map-filterpill,
.map-toolbar,
.map-search {
    z-index: 1000;
}

.map-settings {
    z-index: 1002;
}

/* Swipe-to-set-reminder demo (guides/birthdays-and-reminders) */
.swipe-demo {
    margin: 26px 0;
}

.swipe-stage {
    max-width: 420px;
    margin: 0 auto;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 18px;
    position: relative;
    overflow: hidden;
}

.swipe-row {
    position: relative;
    height: 60px;
    border-radius: 12px;
    overflow: hidden;
}

.swipe-action {
    position: absolute;
    top: 0;
    bottom: 0;
    width: 55%;
    display: flex;
    align-items: center;
    color: #fff;
}

.swipe-action svg {
    width: 24px;
    height: 24px;
}

.swipe-action-left {
    left: 0;
    justify-content: flex-start;
    padding-left: 20px;
    background: var(--primary-color);
}

.swipe-action-right {
    right: 0;
    justify-content: flex-end;
    padding-right: 20px;
    background: #c0504d;
}

.swipe-note {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0 16px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    cursor: grab;
    touch-action: pan-y;
    user-select: none;
}

.swipe-note:active {
    cursor: grabbing;
}

.swipe-note-time {
    font-family: 'JetBrains Mono', monospace;
    font-size: 12px;
    color: var(--text-light);
    flex-shrink: 0;
}

.swipe-note-text {
    font-size: 15px;
    color: var(--text-dark);
}

.swipe-note-bell {
    display: none;
    align-items: center;
    color: var(--primary-color);
    flex-shrink: 0;
}

.swipe-note-bell svg {
    width: 18px;
    height: 18px;
}

.swipe-note.has-reminder .swipe-note-bell {
    display: inline-flex;
}

.swipe-hint {
    text-align: center;
    font-size: 12.5px;
    color: var(--text-light);
    margin-top: 12px;
    transition: opacity 0.3s;
}

.reminder-sheet {
    margin-top: 14px;
    border-top: 1px solid var(--border-color);
    padding-top: 14px;
}

.reminder-sheet[hidden] {
    display: none;
}

.reminder-sheet h4 {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    margin: 2px 0 12px;
    color: var(--text-dark);
}

.reminder-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.reminder-opt {
    display: flex;
    flex-direction: column;
    gap: 3px;
    align-items: center;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 12px 8px;
    cursor: pointer;
    font: inherit;
}

.reminder-opt:hover {
    border-color: var(--primary-color);
}

.reminder-opt-title {
    font-weight: 600;
    font-size: 14px;
    color: var(--text-dark);
}

.reminder-opt-sub {
    font-size: 11.5px;
    color: var(--text-light);
}

.reminder-custom {
    width: 100%;
    margin-top: 10px;
    padding: 12px;
    border-radius: 12px;
    background: transparent;
    border: 1px solid var(--border-color);
    color: var(--text-dark);
    font: inherit;
    font-weight: 600;
    cursor: pointer;
}

.reminder-custom:hover {
    border-color: var(--primary-color);
}

.swipe-toast {
    position: absolute;
    left: 50%;
    bottom: 14px;
    transform: translateX(-50%);
    background: var(--primary-color);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-lg);
    z-index: 5;
    white-space: nowrap;
}

.swipe-toast[hidden] {
    display: none;
}

[data-theme="dark"] .swipe-toast {
    color: #0a0a0a;
}

/* Full-screen notes view mockup */
.notes-full {
    max-width: 380px;
    margin: 24px auto 30px;
    padding: 20px 18px 22px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.notes-full-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    padding-bottom: 14px;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--border-color);
}

.notes-full-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
}

.notes-full-count {
    font-size: 13px;
    color: var(--text-light);
    margin-top: 2px;
}

.notes-full-add {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.notes-full-add svg {
    width: 16px;
    height: 16px;
}

.notes-full-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.notes-full-date {
    display: block;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 7px;
}

.notes-full-bubble {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    background: var(--bg-card);
    border-radius: 12px;
    padding: 13px 15px;
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-dark);
    box-shadow: var(--shadow);
}

.notes-full-alarm {
    flex-shrink: 0;
    display: flex;
    color: var(--primary-color);
}

.notes-full-alarm svg {
    width: 16px;
    height: 16px;
}

/* Upcoming tab mockup */
.upcoming-demo {
    max-width: 400px;
    margin: 24px auto 30px;
    padding: 20px 18px 22px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.up-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #b97a45;
    margin-bottom: 12px;
}

.up-month {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--text-light);
    margin: 18px 0 10px;
}

.up-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    background: var(--bg-card);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
}

.up-row.up-today {
    background: color-mix(in srgb, #b97a45 13%, var(--bg-card));
    border: 1.5px solid #b97a45;
}

.up-cake {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: color-mix(in srgb, var(--text-light) 14%, transparent);
    color: var(--text-light);
}

.up-cake.up-cake-on {
    background: color-mix(in srgb, #b97a45 22%, transparent);
    color: #c47b3f;
}

.up-cake svg {
    width: 18px;
    height: 18px;
}

.up-namewrap {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.up-name {
    flex: 1;
    min-width: 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.up-namewrap .up-name {
    flex: none;
}

.up-sub {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 1px;
}

.up-when {
    flex-shrink: 0;
    font-size: 12px;
    color: var(--text-light);
    background: var(--bg-light);
    border-radius: 999px;
    padding: 4px 10px;
}

.up-row.up-today .up-when {
    color: #b97a45;
    background: color-mix(in srgb, #b97a45 16%, transparent);
}

/* Weekly Wrapped story demo (always-dark device mockup, peeking neighbours) */
/* Phone-screen demos: dark by default, light under [data-theme="light"] */
.rq-phone, .ww-card {
    --ph-bg: #0e0d0a;
    --ph-border: #2a2722;
    --ph-fg: #efece6;
    --ph-strong: #ffffff;
    --ph-muted: #9b978d;
    --ph-faint: #8f8b82;
    --ph-soft: #b7b2a8;
    --ph-surface: rgba(255, 255, 255, 0.04);
    --ph-surface-2: rgba(255, 255, 255, 0.08);
    --ph-surface-border: rgba(255, 255, 255, 0.07);
    --ph-line: rgba(255, 255, 255, 0.12);
}
[data-theme="light"] .rq-phone, [data-theme="light"] .ww-card {
    --ph-bg: #ffffff;
    --ph-border: #e7e3dc;
    --ph-fg: #33302a;
    --ph-strong: #1a1a1a;
    --ph-muted: #726d63;
    --ph-faint: #8d887e;
    --ph-soft: #44403a;
    --ph-surface: rgba(0, 0, 0, 0.035);
    --ph-surface-2: rgba(0, 0, 0, 0.06);
    --ph-surface-border: rgba(0, 0, 0, 0.09);
    --ph-line: rgba(0, 0, 0, 0.10);
}

.ww-demo {
    max-width: 620px;
    margin: 26px auto 30px;
}

.ww-viewport {
    overflow: hidden;
}

.ww-track {
    display: flex;
    gap: 18px;
    transition: transform 0.55s cubic-bezier(0.4, 0, 0.2, 1);
}

.ww-card {
    flex: 0 0 270px;
    width: 270px;
    height: 524px;
    padding: 26px 22px;
    display: flex;
    flex-direction: column;
    color: var(--ph-fg);
    overflow: hidden;
    background: var(--ph-bg);
    border: 1px solid var(--ph-border);
    border-radius: 26px;
    opacity: 0.3;
    transition: opacity 0.5s ease;
}

.ww-card.active {
    opacity: 1;
    box-shadow: var(--shadow-lg);
}

.ww-gold { color: #b89a68; }

.ww-title {
    font-size: 27px;
    font-weight: 800;
    text-align: center;
    line-height: 1.12;
    letter-spacing: -0.01em;
}

.ww-rule {
    width: 34px;
    height: 3px;
    border-radius: 2px;
    background: #b89a68;
    margin: 14px auto;
}

.ww-sub {
    color: var(--ph-muted);
    font-size: 13px;
    text-align: center;
    line-height: 1.5;
}

/* intro + end shared */
.ww-pill {
    align-self: center;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 15px;
    border-radius: 999px;
    border: 1px solid rgba(184, 154, 104, 0.4);
    background: rgba(184, 154, 104, 0.12);
    color: #b89a68;
    font-size: 13px;
    font-weight: 600;
}

.ww-pill svg { width: 14px; height: 14px; }

.ww-mid {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.ww-dates { color: var(--ph-muted); font-size: 13px; margin-bottom: 10px; }

.ww-stats {
    display: flex;
    background: var(--ph-surface);
    border: 1px solid var(--ph-surface-border);
    border-radius: 14px;
    padding: 14px 4px;
}

.ww-stat {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
    position: relative;
}

.ww-stat + .ww-stat::before {
    content: "";
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 1px;
    background: var(--ph-surface-2);
}

.ww-stat-ic {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ww-stat-ic svg { width: 18px; height: 18px; }
.ww-ic-gold { background: rgba(184, 160, 106, 0.2); color: #c2a96e; }
.ww-ic-sage { background: rgba(156, 175, 136, 0.2); color: #9caf88; }
.ww-ic-terra { background: rgba(196, 96, 70, 0.2); color: #cf6f4f; }
.ww-stat-n { font-size: 22px; font-weight: 800; color: var(--ph-strong); }
.ww-stat-l { font-size: 10.5px; color: var(--ph-muted); }
.ww-foot { text-align: center; color: var(--ph-faint); font-size: 12px; margin-top: 14px; }

/* list cards (new connections / notes) */
.ww-h { text-align: center; font-size: 17px; font-weight: 700; }
.ww-big { text-align: center; font-size: 40px; font-weight: 800; line-height: 1.05; margin-top: 4px; }
.ww-h-sub {
    text-align: center;
    color: var(--ph-muted);
    font-size: 13px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid var(--ph-surface-2);
}

.ww-rows { display: flex; flex-direction: column; gap: 10px; overflow: hidden; }

.ww-row {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--ph-surface);
    border: 1px solid var(--ph-surface-border);
    border-radius: 12px;
    padding: 10px 12px;
}

.ww-av {
    width: 34px;
    height: 34px;
    border-radius: 999px;
    background: var(--ph-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 600;
    color: var(--ph-fg);
    flex-shrink: 0;
}

.ww-row-main { flex: 1; min-width: 0; }
.ww-row-name { font-size: 14px; font-weight: 600; color: var(--ph-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ww-row-sub { font-size: 12px; color: var(--ph-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ww-row-when { font-size: 12px; color: var(--ph-faint); flex-shrink: 0; }

.ww-note {
    background: var(--ph-surface);
    border: 1px solid var(--ph-surface-border);
    border-radius: 12px;
    padding: 10px 12px;
}

.ww-note-top { display: flex; align-items: center; gap: 9px; }
.ww-note-name { font-size: 13.5px; font-weight: 600; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ww-note-time { font-size: 11px; color: var(--ph-faint); flex-shrink: 0; }
.ww-note-body { font-size: 12.5px; color: var(--ph-soft); margin-top: 7px; }
.ww-chip { font-size: 10px; padding: 2px 7px; border-radius: 6px; background: rgba(184, 154, 104, 0.18); color: #c2a877; white-space: nowrap; }
.ww-chip.purple { background: rgba(123, 92, 196, 0.22); color: #b39ce8; }
.ww-at { color: #9caf88; }

/* network card */
.ww-net-canvas {
    flex: 1;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--ph-surface-border);
    margin: 14px 0;
    overflow: hidden;
}

.ww-net-canvas svg { width: 100%; height: 100%; display: block; }
.ww-net-btns { display: flex; gap: 10px; }

.ww-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
}

.ww-btn svg { width: 14px; height: 14px; }
.ww-btn-green { background: #9caf88; color: #1b2113; }
.ww-btn-brown { background: #8a7355; color: #1c150c; }

/* week ahead card */
.ww-ahead-stats { display: flex; justify-content: center; gap: 50px; margin: 22px 0 24px; }
.ww-ahead-stat { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.ww-ahead-ic { color: var(--ph-fg); }
.ww-ahead-ic svg { width: 24px; height: 24px; }
.ww-ahead-n { font-size: 30px; font-weight: 800; color: var(--ph-strong); }
.ww-ahead-l { font-size: 12px; color: var(--ph-muted); }

.ww-ah-row { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-top: 1px solid var(--ph-surface-border); }
.ww-ah-cake { color: #cf6f4f; flex-shrink: 0; display: flex; }
.ww-ah-cake svg { width: 22px; height: 22px; }
.ww-ah-main { flex: 1; min-width: 0; }
.ww-ah-name { font-size: 15px; font-weight: 600; }
.ww-ah-sub { font-size: 12px; color: var(--ph-faint); }
.ww-ah-when { font-size: 13px; color: var(--ph-fg); flex-shrink: 0; }

/* end card */
.ww-end { align-items: center; justify-content: center; text-align: center; }
.ww-end-heart {
    width: 62px;
    height: 62px;
    border-radius: 999px;
    background: rgba(184, 154, 104, 0.14);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #b89a68;
    margin-bottom: 22px;
}

.ww-end-heart svg { width: 27px; height: 27px; }

.ww-quiz {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    background: rgba(255, 255, 255, 0.045);
    border: 1px solid var(--ph-surface-border);
    border-radius: 14px;
    padding: 13px 14px;
    margin-top: 26px;
}

.ww-quiz-ic {
    width: 38px;
    height: 38px;
    border-radius: 999px;
    background: rgba(156, 175, 136, 0.16);
    color: #9caf88;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.ww-quiz-ic svg { width: 20px; height: 20px; }
.ww-quiz-main { flex: 1; text-align: left; min-width: 0; }
.ww-quiz-t { font-size: 15px; font-weight: 700; }
.ww-quiz-s { font-size: 12px; color: var(--ph-muted); line-height: 1.4; }
.ww-quiz-chev { width: 16px; height: 16px; color: var(--ph-faint); flex-shrink: 0; }

.ww-done {
    width: 100%;
    padding: 14px;
    border-radius: 14px;
    background: #b89a68;
    color: #1c150c;
    font-weight: 700;
    text-align: center;
    margin-top: 12px;
}

.ww-dots { display: flex; justify-content: center; gap: 7px; margin-top: 14px; }
.ww-dots span { width: 7px; height: 7px; border-radius: 999px; background: var(--border-color); transition: all 0.3s ease; }
.ww-dots span.on { width: 18px; background: var(--primary-color); }

/* Recall Quiz demo (always-dark device mockup) */
.rq-demo { max-width: 292px; margin: 26px auto 30px; }

.rq-phone {
    background: var(--ph-bg);
    border: 1px solid var(--ph-border);
    border-radius: 26px;
    padding: 24px 20px;
    box-shadow: var(--shadow-lg);
    color: var(--ph-fg);
}

.rq-head { text-align: center; }
.rq-title { font-size: 20px; font-weight: 800; color: var(--ph-strong); }
.rq-q { display: block; font-size: 13px; color: var(--ph-muted); margin-top: 3px; }

.rq-progress { display: flex; gap: 4px; margin: 14px 0 18px; }
.rq-progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--ph-line); }
.rq-progress span.d-red { background: #cf6f4f; }
.rq-progress span.d-gold { background: #c2a96e; }

.rq-card {
    background: var(--ph-surface);
    border: 1px solid var(--ph-surface-border);
    border-radius: 18px;
    padding: 20px 16px;
    text-align: center;
    transition: box-shadow 0.4s ease, border-color 0.4s ease;
}

.rq-card.glow {
    border-color: rgba(156, 175, 136, 0.7);
    box-shadow: 0 0 18px rgba(156, 175, 136, 0.3);
}

.rq-av {
    width: 58px;
    height: 58px;
    border-radius: 999px;
    background: var(--ph-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 700;
    color: var(--ph-fg);
    margin: 0 auto 12px;
}

.rq-name { font-size: 21px; font-weight: 700; }
.rq-desc { font-size: 12.5px; color: var(--ph-muted); margin-top: 7px; line-height: 1.45; }
.rq-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 12px; }
.rq-tag { font-size: 12px; padding: 5px 13px; border-radius: 999px; background: rgba(156, 175, 136, 0.14); color: #9caf88; }

/* Recall Quiz "Who is this?" hint card (name is hidden until a pick) */
.rq-card:has(.rq-hint) { text-align: left; padding: 18px 16px; }
.rq-qhead { display: flex; align-items: center; gap: 11px; }
.rq-qmark {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: var(--primary-color);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    font-weight: 800;
    flex-shrink: 0;
}
.rq-qtitle { font-size: 18px; font-weight: 800; color: var(--ph-strong); }
.rq-qdiv { height: 1px; background: var(--ph-surface-border); margin: 13px 0; }
.rq-hint {
    display: flex;
    gap: 8px;
    align-items: flex-start;
    min-height: 84px;
    background: var(--ph-bg);
    border: 1px solid var(--ph-surface-border);
    border-radius: 12px;
    padding: 13px 14px;
    font-size: 14.5px;
    line-height: 1.4;
    color: var(--ph-fg);
}
.rq-quote { color: var(--ph-faint); font-size: 18px; font-weight: 800; line-height: 1; flex-shrink: 0; margin-top: 1px; }
.rq-skip {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    margin-top: 14px;
    padding: 12px;
    border: 1px dashed var(--ph-surface-border);
    border-radius: 12px;
    font-size: 14px;
    color: var(--ph-muted);
}
.rq-skip svg { width: 13px; height: 13px; }

.rq-opts { display: flex; flex-direction: column; gap: 10px; margin-top: 18px; }

.rq-opt {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 16px;
    border-radius: 13px;
    background: var(--ph-surface);
    border: 1.5px solid var(--ph-surface-border);
    font-size: 15px;
    color: var(--ph-fg);
    transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.rq-opt.correct {
    border-color: #9caf88;
    background: rgba(156, 175, 136, 0.12);
    color: #cdd9bd;
}

.rq-opt.wrong {
    border-color: #cf6f4f;
    background: rgba(196, 96, 70, 0.14);
    color: #e3937c;
}

.rq-ic { display: none; flex-shrink: 0; }
.rq-ic svg { width: 20px; height: 20px; display: block; }
.rq-opt.correct .rq-ic-check { display: block; color: #9caf88; }

/* Light-mode contrast for the demo accent text (pale tints wash out on white) */
[data-theme="light"] .rq-opt.correct { color: #46733a; }
[data-theme="light"] .rq-opt.wrong { color: #b5462a; }
[data-theme="light"] .rq-tag { color: #5d7a4e; }
[data-theme="light"] .ww-gold,
[data-theme="light"] .ww-stat-l .ww-gold,
[data-theme="light"] .rqs-val { color: #8a6f3c; }
.rq-opt.wrong .rq-ic-x { display: block; color: #cf6f4f; }

/* Tags screen mockup */
.tagm {
    max-width: 420px;
    margin: 24px auto 30px;
    padding: 20px 18px 22px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
}

.tagm-top {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.tagm-count-chip {
    font-size: 13px;
    color: var(--text-light);
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    padding: 6px 12px;
}

.tagm-palette {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
}

.tagm-palette svg { width: 15px; height: 15px; }
.tagm-sort { margin-left: auto; font-size: 12px; color: var(--text-light); }

.tagm-group { margin-top: 20px; }
.tagm-group:first-of-type { margin-top: 0; }

.tagm-group-head {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 12px;
}

.tagm-group-name { font-size: 16px; font-weight: 700; color: var(--text-dark); }
.tagm-group-pencil { display: flex; color: var(--text-light); }
.tagm-group-pencil svg { width: 13px; height: 13px; }
.tagm-group-count { margin-left: auto; font-size: 13px; color: var(--text-light); }

.tagm-pills { display: flex; flex-wrap: wrap; gap: 10px; }

.tagm-pill {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 7px 7px 7px 15px;
    border-radius: 999px;
    border: 1.5px solid var(--tc);
    background: color-mix(in srgb, var(--tc) 13%, transparent);
    color: var(--tc);
    font-size: 14px;
    font-weight: 600;
}

.tagm-pill-count {
    min-width: 23px;
    height: 23px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border-radius: 999px;
    background: var(--tc);
    color: #ffffff;
    font-size: 12px;
    font-weight: 600;
}

/* Recall Quiz setup mockup (reuses .rq-phone frame) */
.rqs-demo { max-width: 300px; margin: 26px auto 30px; }
.rqs-title { text-align: center; font-size: 22px; font-weight: 800; color: var(--ph-strong); margin-bottom: 20px; }
.rqs-block { margin-bottom: 20px; }
.rqs-head { display: flex; justify-content: space-between; align-items: baseline; }
.rqs-label { font-size: 15px; font-weight: 500; color: var(--ph-fg); }
.rqs-val { font-size: 15px; font-weight: 700; color: #c2a96e; }

.rqs-slider { margin-top: 12px; }
.rqs-track { position: relative; height: 5px; border-radius: 999px; background: var(--ph-line); }
.rqs-fill { position: absolute; left: 0; top: 0; bottom: 0; width: 92%; border-radius: 999px; background: #9a8a5e; }
.rqs-thumb { position: absolute; left: 92%; top: 50%; transform: translate(-50%, -50%); width: 20px; height: 20px; border-radius: 999px; background: #b89a68; }
.rqs-ticks { display: flex; justify-content: space-between; margin-top: 9px; }
.rqs-ticks span { font-size: 10px; color: var(--ph-faint); }

.rqs-chips { display: flex; gap: 10px; margin-top: 12px; }
.rqs-chip { flex: 1; text-align: center; padding: 11px; border-radius: 999px; background: var(--ph-surface); border: 1px solid var(--ph-surface-2); font-size: 15px; color: var(--ph-fg); }
.rqs-chip.on { background: #9a8a5e; border-color: #9a8a5e; color: #1c150c; font-weight: 700; }

.rqs-modes { display: flex; gap: 10px; margin-top: 12px; }
.rqs-mode { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 14px 8px; border-radius: 14px; background: var(--ph-surface); border: 1.5px solid var(--ph-surface-2); text-align: center; }
.rqs-mode svg { width: 20px; height: 20px; color: var(--ph-muted); margin-bottom: 4px; }
.rqs-mode-t { font-size: 14px; font-weight: 700; color: var(--ph-fg); }
.rqs-mode-s { font-size: 11px; color: var(--ph-muted); line-height: 1.3; }
.rqs-mode.on { border-color: #b89a68; background: rgba(184, 154, 104, 0.1); }
.rqs-mode.on svg, .rqs-mode.on .rqs-mode-t { color: #c2a96e; }

.rqs-allrow { margin-top: 12px; }
.rqs-all { display: inline-flex; padding: 8px 18px; border-radius: 999px; background: #9a8a5e; color: #1c150c; font-size: 14px; font-weight: 600; }
.rqs-grouprow { display: flex; align-items: center; gap: 8px; margin-top: 15px; }
.rqs-gname { font-size: 14px; font-weight: 700; color: var(--ph-fg); }
.rqs-gcount { font-size: 13px; color: var(--ph-faint); }
.rqs-tagpills { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rqs-pill { padding: 6px 14px; border-radius: 999px; border: 1.5px solid var(--tc); color: var(--tc); font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--tc) 12%, transparent); }

.rqs-start { margin-top: 22px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 14px; border-radius: 14px; background: #9a8a5e; color: #1c150c; font-weight: 700; font-size: 15px; }
.rqs-start svg { width: 13px; height: 13px; }

/* Relationship type picker mockup */
.relp {
    max-width: 380px;
    margin: 24px auto 30px;
    padding-bottom: 18px;
    background: var(--bg-light);
    border: 1px solid var(--border-color);
    border-radius: 18px;
    box-shadow: var(--shadow-lg);
    overflow: hidden;
}

.relp-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 14px;
    border-bottom: 1px solid var(--border-color);
}

.relp-title { font-size: 18px; font-weight: 700; color: var(--text-dark); }
.relp-head svg { width: 20px; height: 20px; color: var(--text-light); flex-shrink: 0; }

.relp-sub { text-align: center; font-size: 15px; color: var(--text-light); padding: 16px 18px 18px; }
.relp-sub strong { color: var(--text-dark); font-weight: 700; }

.relp-group { padding: 0 18px; margin-bottom: 15px; }
.relp-cat {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--rc);
    margin-bottom: 9px;
}

.relp-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.relp-chip {
    padding: 7px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 500;
    color: var(--rc);
    background: color-mix(in srgb, var(--rc) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--rc) 35%, transparent);
}

.relp-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding-top: 8px;
    font-size: 14px;
    color: var(--text-light);
}

.relp-more svg { width: 14px; height: 14px; }

/* Tag examples marquee (visual hook, slides right to left) */
.tagmar {
    margin: 6px 0 28px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
    mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.tagmar-track {
    display: flex;
    width: max-content;
    animation: tagmarScroll 34s linear infinite;
}

.tagmar-group {
    display: flex;
    gap: 12px;
    padding-right: 12px;
}

@keyframes tagmarScroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tagmar-pill {
    display: inline-flex;
    align-items: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    white-space: nowrap;
    color: var(--tc);
    background: color-mix(in srgb, var(--tc) 13%, transparent);
    border: 1.5px solid var(--tc);
}

@media (prefers-reduced-motion: reduce) {
    .tagmar-track { animation: none; }
}

/* Home page: inline Quick Entry demo + caption */
.home-demo {
    margin-top: 40px;
    text-align: center;
}

.home-demo-cap {
    margin-top: 14px;
    color: var(--text-light);
    font-size: 15px;
}

.home-demo-cap a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.home-demo-cap a:hover {
    text-decoration: underline;
}

/* Home page: "See it in action" demo band */
.in-action {
    padding: 80px 0;
    background: var(--bg-light);
}

.in-action-sub {
    text-align: center;
    color: var(--text-light);
    max-width: 560px;
    margin: -44px auto 44px;
    font-size: 16px;
}

.ia-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 44px 32px;
}

.ia-item {
    width: 274px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Visual order: row 1 = Pals, Network, Recall Quiz; row 2 = Weekly Wrapped, Tags, Map */
.ia-grid .ia-item:nth-child(1) { order: 4; } /* Weekly Wrapped */
.ia-grid .ia-item:nth-child(2) { order: 2; } /* Network view */
.ia-grid .ia-item:nth-child(3) { order: 3; } /* Recall Quiz */
.ia-grid .ia-item:nth-child(4) { order: 5; } /* Tags */
.ia-grid .ia-item:nth-child(5) { order: 6; } /* Map view */
.ia-grid .ia-item:nth-child(6) { order: 1; } /* Pals list */

.ia-item .ww-demo,
.ia-item .rq-demo,
.ia-item .net-mini,
.ia-item .tags-mini,
.ia-item .map-mini,
.ia-item .pals-mini {
    margin: 0 auto;
}

/* Every band demo renders in the same 270x524 frame so the cards share an aspect ratio */
.ia-item .ww-demo { max-width: 270px; }

.ia-item .rq-phone {
    width: 270px;
    height: 524px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    margin: 0 auto;
}

/* content areas grow to fill the fixed frame height */
.ia-item .net-mini-canvas,
.ia-item .pals-mini-view,
.ia-item .map-mini-canvas {
    flex: 1;
    height: auto;
    min-height: 0;
}

/* compress the recall quiz a touch so it fits the shared frame */
.ia-item .rq-progress { margin: 12px 0 14px; }
.ia-item .rq-card { padding: 16px 14px; }
.ia-item .rq-av { width: 50px; height: 50px; font-size: 18px; margin-bottom: 10px; }
.ia-item .rq-opts { gap: 8px; margin-top: 15px; }
.ia-item .rq-opt { padding: 11px 15px; }

.ia-label {
    margin-top: 16px;
    text-align: center;
}

.ia-label strong {
    display: block;
    font-size: 16px;
    color: var(--text-dark);
    margin-bottom: 2px;
}

.ia-label a {
    font-size: 14px;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.ia-label a:hover { text-decoration: underline; }

.net-mini-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--ph-strong);
    margin-bottom: 8px;
}

.net-mini-canvas {
    height: 432px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.net-mini-canvas svg { width: 100%; height: 100%; display: block; }

/* Prominent privacy banner */
.privacy-lead {
    max-width: 760px;
    margin: -28px auto 50px;
    display: flex;
    gap: 20px;
    align-items: center;
    padding: 22px 28px;
    background: color-mix(in srgb, var(--primary-color) 9%, var(--bg-card));
    border: 1px solid color-mix(in srgb, var(--primary-color) 32%, transparent);
    border-radius: 16px;
}

.privacy-lead-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: color-mix(in srgb, var(--primary-color) 16%, transparent);
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
}

.privacy-lead-icon svg { width: 28px; height: 28px; }

.privacy-lead p {
    margin: 0;
    font-size: 18px;
    line-height: 1.55;
    color: var(--text-dark);
}

.privacy-lead strong { font-weight: 700; color: var(--primary-color); }

@media (max-width: 600px) {
    .privacy-lead {
        flex-direction: column;
        text-align: center;
        gap: 14px;
    }
}

/* Tags + Map minis in the "See it in action" band (dark device frame) */
.mini-title {
    text-align: center;
    font-size: 16px;
    font-weight: 700;
    color: var(--ph-strong);
    margin-bottom: 16px;
}

.tags-mini-group { margin-bottom: 18px; }

.tags-mini-cat {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: var(--ph-muted);
    margin-bottom: 11px;
}

.tags-mini-pills { display: flex; flex-wrap: wrap; gap: 9px; }

/* Pals list mini (auto-scrolling) */
.pals-mini-head {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-bottom: 14px;
}

.pals-mini-headcount { font-size: 13px; font-weight: 600; color: var(--ph-fg); }

.pals-mini-headsort {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 13px;
    font-weight: 500;
    color: var(--ph-faint);
}

.pals-mini-headsort svg { width: 12px; height: 12px; }

.pals-mini-view {
    height: 412px;
    overflow: hidden;
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 7%, #000 90%, transparent);
    mask-image: linear-gradient(180deg, transparent, #000 7%, #000 90%, transparent);
}

.pals-mini-track {
    display: flex;
    flex-direction: column;
    animation: palsScroll 20s linear infinite;
}

.pals-mini-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding-bottom: 10px;
}

@keyframes palsScroll {
    from { transform: translateY(0); }
    to { transform: translateY(-50%); }
}

.pals-mini-row {
    display: flex;
    align-items: center;
    gap: 11px;
    background: var(--ph-surface);
    border: 1px solid var(--ph-surface-border);
    border-radius: 12px;
    padding: 10px 12px;
}

.pals-mini-av {
    width: 36px;
    height: 36px;
    border-radius: 999px;
    background: var(--ph-surface-2);
    color: var(--ph-fg);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12.5px;
    font-weight: 600;
    flex-shrink: 0;
}

.pals-mini-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pals-mini-nameline { display: flex; align-items: center; gap: 5px; min-width: 0; }
.pals-mini-name { font-size: 14px; font-weight: 600; color: var(--ph-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-shrink: 1; }
.pals-mini-sub { font-size: 12px; color: var(--ph-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.pals-mini-link,
.pals-mini-cake {
    display: inline-flex;
    align-items: center;
    flex-shrink: 0;
    color: var(--ph-faint);
}
.pals-mini-link svg { width: 13px; height: 13px; }
.pals-mini-cake svg { width: 14px; height: 14px; }

.pals-mini-tags {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    max-width: 50%;
    overflow: hidden;
}

.pals-mini-tag {
    flex-shrink: 0;
    font-size: 10.5px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 999px;
    color: var(--tc);
    background: color-mix(in srgb, var(--tc) 16%, transparent);
    white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
    .pals-mini-track { animation: none; }
}

/* Map mini (cleaner, avatar markers over soft map regions) */
.map-mini-canvas {
    position: relative;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--ph-surface-border);
    background:
        radial-gradient(60% 38% at 32% 28%, rgba(156, 175, 136, 0.12), transparent 70%),
        radial-gradient(52% 34% at 73% 60%, rgba(138, 115, 85, 0.10), transparent 70%),
        radial-gradient(46% 30% at 44% 90%, rgba(91, 79, 168, 0.08), transparent 70%),
        url("data:image/svg+xml,%3Csvg%20xmlns%3D%27http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%27%20viewBox%3D%270%200%20300%20400%27%3E%3Crect%20x%3D%2718%27%20y%3D%27250%27%20width%3D%2792%27%20height%3D%2784%27%20rx%3D%2712%27%20fill%3D%27%239caf88%27%20fill-opacity%3D%270.10%27%2F%3E%3Cpath%20d%3D%27M-10%2058%20C%2080%2092%20120%2028%20200%2078%20S%20320%20122%20340%2098%27%20stroke%3D%27%235b8fb0%27%20stroke-opacity%3D%270.13%27%20stroke-width%3D%2722%27%20fill%3D%27none%27%20stroke-linecap%3D%27round%27%2F%3E%3Cg%20stroke%3D%27%23ffffff%27%20stroke-opacity%3D%270.06%27%20stroke-width%3D%273%27%3E%3Cpath%20d%3D%27M0%20120%20H300%27%2F%3E%3Cpath%20d%3D%27M0%20220%20H300%27%2F%3E%3Cpath%20d%3D%27M0%20320%20H300%27%2F%3E%3Cpath%20d%3D%27M70%200%20V400%27%2F%3E%3Cpath%20d%3D%27M162%200%20V400%27%2F%3E%3Cpath%20d%3D%27M240%200%20V400%27%2F%3E%3C%2Fg%3E%3Cg%20stroke%3D%27%23ffffff%27%20stroke-opacity%3D%270.035%27%20stroke-width%3D%271.5%27%3E%3Cpath%20d%3D%27M0%2060%20H300%27%2F%3E%3Cpath%20d%3D%27M0%20170%20H300%27%2F%3E%3Cpath%20d%3D%27M0%20270%20H300%27%2F%3E%3Cpath%20d%3D%27M0%20370%20H300%27%2F%3E%3Cpath%20d%3D%27M30%200%20V400%27%2F%3E%3Cpath%20d%3D%27M116%200%20V400%27%2F%3E%3Cpath%20d%3D%27M200%200%20V400%27%2F%3E%3Cpath%20d%3D%27M276%200%20V400%27%2F%3E%3C%2Fg%3E%3C%2Fsvg%3E") center / cover no-repeat,
        var(--ph-bg);
}

.map-mini-pin {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.map-mini-dot {
    width: 30px;
    height: 30px;
    border-radius: 999px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 3px 9px rgba(0, 0, 0, 0.5);
}

.map-mini-label { font-size: 10px; color: var(--ph-fg); white-space: nowrap; }


/* ---- Key-features hover demos ---------------------------------------------
   Each card carries a relevant mini app-panel. It sits faintly behind the card
   text at rest and fades up to full while the icon/title/copy fade out on hover,
   so the demo cleanly overtakes the cell. Fake data only. */
.feature-card { position: relative; }
.feature-card:has(.feature-demo) { overflow: hidden; min-height: 232px; }
.feature-card:has(.feature-demo) .feature-icon,
.feature-card:has(.feature-demo) h4,
.feature-card:has(.feature-demo) p { transition: opacity 0.28s ease; position: relative; z-index: 1; }
.feature-card:has(.feature-demo):hover .feature-icon,
.feature-card:has(.feature-demo):hover h4,
.feature-card:has(.feature-demo):hover p,
.feature-card:has(.feature-demo):focus-visible .feature-icon,
.feature-card:has(.feature-demo):focus-visible h4,
.feature-card:has(.feature-demo):focus-visible p { opacity: 0; }

/* Same hover demos on the /guides hub cards */
.hub-card { position: relative; }
.hub-card:has(.feature-demo) { overflow: hidden; min-height: 232px; }
.hub-card:has(.feature-demo) .hub-card-icon,
.hub-card:has(.feature-demo) h3,
.hub-card:has(.feature-demo) p { transition: opacity 0.28s ease; position: relative; z-index: 1; }
.hub-card:has(.feature-demo):hover .hub-card-icon,
.hub-card:has(.feature-demo):hover h3,
.hub-card:has(.feature-demo):hover p,
.hub-card:has(.feature-demo):focus-visible .hub-card-icon,
.hub-card:has(.feature-demo):focus-visible h3,
.hub-card:has(.feature-demo):focus-visible p { opacity: 0; }

.feature-demo {
    position: absolute;
    inset: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    opacity: 0.13;
    transform: scale(0.99);
    filter: blur(3.5px);
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    pointer-events: none;
}
.feature-card:hover .feature-demo,
.feature-card:focus-visible .feature-demo,
.hub-card:hover .feature-demo,
.hub-card:focus-visible .feature-demo { opacity: 1; transform: none; filter: none; }

/* shared panel surface, modeled on the in-action demos */
.fd-panel {
    width: 100%;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    padding: 13px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow: hidden;
}
.fd-title { font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; color: var(--text-light); margin-bottom: 1px; }
.fd-av { width: 26px; height: 26px; border-radius: 999px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #fff; }

/* Quick Entry: live entry bar with smart-recognition chips */
.fd-bar { display: flex; align-items: center; gap: 8px; width: 100%; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 999px; padding: 9px 13px; box-shadow: var(--shadow); }
.fd-ic { width: 17px; height: 17px; color: var(--text-light); flex-shrink: 0; }
.fd-bar-txt { font-size: 12.5px; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-hl { padding: 1px 5px; border-radius: 6px; font-weight: 600; }
.fd-hl-loc { color: #2f7d6b; background: color-mix(in srgb, #2f9e84 20%, transparent); }
.fd-hl-bday { color: #b5641f; background: color-mix(in srgb, #d98a3a 22%, transparent); }
.fd-caret2 { width: 1.5px; height: 14px; background: var(--primary-color); flex-shrink: 0; animation: qeBlink 1s step-end infinite; }
.fd-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.fd-chip { display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 999px; }
.fd-chip svg { width: 12px; height: 12px; }
.fd-chip-loc { color: #2f7d6b; background: color-mix(in srgb, #2f9e84 16%, transparent); }
.fd-chip-bday { color: #b5641f; background: color-mix(in srgb, #d98a3a 18%, transparent); }
.fd-chip-rem { color: #7a5bbf; background: color-mix(in srgb, #7a5bbf 16%, transparent); }

/* Notes: person header + timestamped notes, one with a reminder */
.fd-ph { display: flex; align-items: center; gap: 8px; }
.fd-ph-name { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.fd-noterow { background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.fd-note2 { font-size: 12px; color: var(--text-dark); line-height: 1.35; }
.fd-nmeta { display: flex; align-items: center; gap: 6px; }
.fd-time { font-size: 10px; color: var(--text-light); }
.fd-bell { display: inline-flex; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: #7a5bbf; background: color-mix(in srgb, #7a5bbf 14%, transparent); padding: 2px 7px; border-radius: 999px; }
.fd-bell svg { width: 10px; height: 10px; }

/* Tags: colored group pills with counts */
.fd-pills2 { display: flex; flex-wrap: wrap; gap: 7px; align-content: center; }
.fd-pill2 { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 5px 11px; border-radius: 999px; color: var(--tc); background: color-mix(in srgb, var(--tc) 14%, transparent); border: 1px solid color-mix(in srgb, var(--tc) 34%, transparent); }
.fd-pill2 b { font-size: 11px; opacity: 0.8; }

/* Connections: relationship-labeled rows + a suggested connection */
.fd-cxn-rows { display: flex; flex-direction: column; gap: 7px; padding-left: 10px; border-left: 2px solid var(--border-color); }
.fd-cxn-row { display: flex; align-items: center; gap: 8px; }
.fd-cxn-label { width: 44px; flex-shrink: 0; font-size: 10px; font-weight: 600; color: #9a7a55; }
.fd-cxn-name { flex: 1; min-width: 0; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 8px; padding: 6px 10px; font-size: 12px; font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-cxn-link { display: flex; flex-shrink: 0; color: var(--text-light); }
.fd-cxn-link svg { width: 13px; height: 13px; }
.fd-sugg { display: flex; flex-direction: column; gap: 6px; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 10px; padding: 9px 11px; }
.fd-sugg-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.fd-sugg-name { font-size: 13px; font-weight: 700; color: var(--text-dark); }
.fd-sugg-badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10px; font-weight: 600; color: var(--primary-color); }
.fd-sugg-badge svg { width: 11px; height: 11px; }
.fd-sugg-rel { align-self: flex-start; font-size: 11px; font-weight: 600; color: var(--text-light); background: var(--bg-card); border: 1px solid var(--border-color); border-radius: 999px; padding: 3px 11px; }

/* Network: node graph with initials */
.fd-net { width: 100%; max-width: 220px; height: auto; margin: 0 auto; color: var(--text-light); }
.fd-net text { font: 700 9px system-ui, sans-serif; fill: #fff; }

/* Map: pinned avatars over soft regions */
.fd-map { position: relative; width: 100%; height: 100%; min-height: 110px; border-radius: 12px; overflow: hidden; background:
    radial-gradient(60px 50px at 28% 30%, color-mix(in srgb, #9caf88 26%, transparent), transparent 70%),
    radial-gradient(70px 60px at 72% 64%, color-mix(in srgb, #6b8e23 22%, transparent), transparent 70%),
    radial-gradient(55px 45px at 64% 24%, color-mix(in srgb, #8a7355 22%, transparent), transparent 70%),
    var(--bg-light);
    border: 1px solid var(--border-color); }
.fd-pin { position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; gap: 2px; }
.fd-pin .fd-dot { width: 22px; height: 22px; border-radius: 999px; border: 2px solid var(--bg-card); box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: #fff; }
.fd-pin .fd-plabel { font-size: 9px; font-weight: 600; color: var(--text-dark); background: var(--bg-card); padding: 1px 5px; border-radius: 999px; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15); }

/* Recall Quiz: full question card */
.fd-quiz-q { font-size: 13px; font-weight: 700; color: var(--text-dark); line-height: 1.3; }
.fd-opt { display: flex; align-items: center; justify-content: space-between; width: 100%; padding: 8px 12px; border-radius: 10px; background: var(--bg-light); border: 1.5px solid var(--border-color); font-size: 12px; color: var(--text-dark); }
.fd-opt-ok { border-color: #9caf88; background: color-mix(in srgb, #9caf88 16%, transparent); color: #4f7f3f; font-weight: 700; }
.fd-opt-ok svg { width: 14px; height: 14px; }

/* Birthdays & Reminders: Upcoming list */
.fd-up { display: flex; align-items: center; gap: 9px; width: 100%; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 10px; padding: 8px 10px; }
.fd-cake { color: #cf6f4f; display: flex; flex-shrink: 0; }
.fd-cake svg { width: 17px; height: 17px; }
.fd-rmd { color: #7a5bbf; display: flex; flex-shrink: 0; }
.fd-rmd svg { width: 16px; height: 16px; }
.fd-up-name { flex: 1; font-size: 12px; font-weight: 600; color: var(--text-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fd-today { font-size: 10px; font-weight: 600; color: #b97a45; background: color-mix(in srgb, #b97a45 16%, transparent); padding: 3px 8px; border-radius: 999px; }
.fd-when { font-size: 10px; color: var(--text-light); }

/* Weekly Wrapped: recap card */
.fd-wrap-h { font-size: 13px; font-weight: 800; color: var(--text-dark); }
.fd-wrap-stats { display: flex; gap: 8px; }
.fd-wstat { flex: 1; background: var(--bg-light); border: 1px solid var(--border-color); border-radius: 10px; padding: 7px 4px; display: flex; flex-direction: column; align-items: center; }
.fd-wstat b { font-size: 19px; font-weight: 800; color: var(--text-dark); line-height: 1; }
.fd-wstat span { font-size: 9px; color: var(--text-light); margin-top: 3px; }
.fd-wnote { font-size: 11px; color: var(--text-dark); background: color-mix(in srgb, var(--primary-color) 12%, transparent); border-radius: 9px; padding: 7px 10px; line-height: 1.3; }

@media (prefers-reduced-motion: reduce) {
    .fd-caret2 { animation: none; }
    .feature-demo { transition: opacity 0.3s ease, filter 0.3s ease; }
}

/* ================= Hero Demo Video (recorded app walkthrough) ================= */

.hero-demo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    width: 310px;
    max-width: 100%;
}

.demo-phone {
    width: 310px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 5px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25), 0 0 0 1px rgba(0, 0, 0, 0.1);
}

[data-theme="dark"] .demo-phone {
    background: #2a2a2a;
    box-shadow: 0 20px 60px rgba(156, 175, 136, 0.15), 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.demo-screen {
    position: relative;
    width: 300px;
    height: 649px;
    border-radius: 36px;
    overflow: hidden;
    /* Matches the app's background so the first video frame isn't a flash */
    background: #faf9f6;
}

[data-theme="dark"] .demo-screen {
    background: #161613;
}

.demo-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border: 0;
}

.demo-caption {
    font-size: 14px;
    color: var(--text-light);
    text-align: center;
    margin: 0;
    max-width: 310px;
}


@media (max-width: 480px) {
    .hero-demo,
    .demo-phone {
        width: 280px;
    }

    .demo-screen {
        width: 270px;
        height: 584px;
    }
}

/* ================= Mac page & secondary button ================= */

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-outline:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.mac-hero {
    padding-bottom: 40px;
}

.mac-docs {
    padding: 80px 0;
}

.docs-block {
    max-width: 760px;
    margin: 0 auto 48px;
}

.docs-block h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.docs-block p {
    color: var(--text-light);
    margin-bottom: 14px;
}

.docs-steps {
    margin: 0 0 14px 22px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-list {
    margin: 0 0 14px 22px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-block strong {
    color: var(--text-dark);
}

.docs-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88em;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1px 6px;
}

.docs-note {
    font-size: 14px;
}

.docs-table-wrap {
    overflow-x: auto;
    margin-bottom: 14px;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    font-size: 15px;
}

.docs-table th,
.docs-table td {
    text-align: left;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
}

.docs-table th {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-light);
}

.docs-table td {
    color: var(--text-light);
}

.docs-table td:nth-child(2),
.docs-table td:nth-child(3),
.docs-table th:nth-child(2),
.docs-table th:nth-child(3) {
    text-align: center;
    white-space: nowrap;
}

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

@media (max-width: 768px) {
    .hero-cta .btn-outline {
        font-size: 16px;
        padding: 12px 26px;
    }
}


/* ================= Mac page & secondary button ================= */

.btn-outline {
    background: transparent;
    color: var(--text-dark);
    border: 2px solid var(--border-color);
    padding: 14px 30px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    gap: 12px;
    transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.btn-outline:hover {
    transform: translateY(-2px);
    border-color: var(--primary-color);
    box-shadow: var(--shadow-lg);
}

.mac-hero {
    padding-bottom: 40px;
}

.mac-docs {
    padding: 80px 0;
}

.docs-block {
    max-width: 760px;
    margin: 0 auto 48px;
}

.docs-block h3 {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 14px;
    color: var(--text-dark);
}

.docs-block p {
    color: var(--text-light);
    margin-bottom: 14px;
}

.docs-steps {
    margin: 0 0 14px 22px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-list {
    margin: 0 0 14px 22px;
    color: var(--text-light);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.docs-block strong {
    color: var(--text-dark);
}

.docs-block code {
    font-family: 'JetBrains Mono', monospace;
    font-size: 0.88em;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 1px 6px;
}

.docs-note {
    font-size: 14px;
}

.docs-table-wrap {
    overflow-x: auto;
    margin-bottom: 14px;
}

.docs-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    overflow: hidden;
    font-size: 15px;
}

.docs-table th,
.docs-table td {
    text-align: left;
    padding: 10px 16px;
    border-bottom: 1px solid var(--border-color);
}

.docs-table th {
    font-weight: 600;
    color: var(--text-dark);
    background: var(--bg-light);
}

.docs-table td {
    color: var(--text-light);
}

.docs-table td:nth-child(2),
.docs-table td:nth-child(3),
.docs-table th:nth-child(2),
.docs-table th:nth-child(3) {
    text-align: center;
    white-space: nowrap;
}

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

@media (max-width: 768px) {
    .hero-cta .btn-outline {
        font-size: 16px;
        padding: 12px 26px;
    }
}

/* ================= Hero ambient network background ================= */

.hero {
    position: relative;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    -webkit-mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
    mask-image: linear-gradient(to bottom, black 0%, black 72%, transparent 100%);
}

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

/* In-article download box (Learn articles) */
.content-body .app-cta {
    margin: 48px 0 8px;
    padding: 28px;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    background: var(--bg-light);
}
.content-body .app-cta-title {
    color: var(--text-dark);
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}
.content-body .app-cta-text {
    margin: 0 0 20px;
    color: var(--text-light);
    font-size: 16px;
    line-height: 1.6;
}
.content-body .app-cta-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}
.content-body .app-cta a.btn-primary,
.content-body .app-cta a.btn-outline {
    text-decoration: none;
    font-size: 16px;
    padding: 12px 22px;
}
.content-body .app-cta a.btn-primary { color: var(--bg-card); }
.content-body .app-cta a.btn-outline { color: var(--text-dark); }
@media (max-width: 480px) {
    .content-body .app-cta { padding: 22px 18px; }
    .content-body .app-cta a.btn-primary,
    .content-body .app-cta a.btn-outline { width: 100%; justify-content: center; }
}

/* Pricing line under the closing CTA */
.cta-content p.cta-pricing {
    margin-top: -20px;
    font-family: 'JetBrains Mono', monospace;
    font-size: 14px;
    letter-spacing: -0.02em;
}
