/* ===================================================================
   Productivities — marketing site
   Redesigned with a routine.co-inspired minimal aesthetic.
   Light + dark mode using the pr-desktop app palette.
   =================================================================== */

/* ---- Reset & base ----------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: var(--font-family);
    font-size: 16px;
    line-height: 1.55;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }

/* ---- Design tokens: Light (default) ----------------------------- */
:root {
    --font-family: 'Merriweather', 'Georgia', 'Cambria', 'Times New Roman', serif;
    --font-display: 'Cormorant Garamond', 'Georgia', 'Cambria', 'Times New Roman', serif;
    --font-weight-headings: 500;
    --container: 1200px;
    --nav-height: 64px;
    --radius-sm: 6px;
    --radius: 10px;
    --radius-lg: 16px;

    /* Light palette — mirrors pr-desktop Classic theme */
    --bg: #efeae0;
    --bg-elevated: #f5f1e8;
    --bg-card: #fbf8f1;
    --bg-card-hover: #f3eee3;
    --bg-muted: #f5f1e8;
    --bg-input: #fbf8f1;
    --bg-overlay: rgba(20, 20, 20, 0.18);

    --text: #1a1a1a;
    --text-muted: #6b6b66;
    --text-faint: #8a8a82;
    --text-on-accent: #ffffff;

    --border: rgba(20, 20, 20, 0.07);
    --border-strong: rgba(20, 20, 20, 0.15);
    --divider: rgba(20, 20, 20, 0.07);

    --accent: #8E794E;
    --accent-hover: #A8915F;
    --accent-soft: rgba(142, 121, 78, 0.12);
    --accent-strong: #7A6842;

    --shadow-sm: rgba(20, 20, 20, 0.02);
    --shadow: 0 1px 3px rgba(20, 20, 20, 0.12), 0 5px 14px rgba(20, 20, 20, 0.06);
    --shadow-lg: 0 8px 28px rgba(20, 20, 20, 0.12), 0 1px 3px rgba(20, 20, 20, 0.06);

    --btn-primary-bg: #B05A36;
    --btn-primary-text: #ffffff;
    --btn-primary-border: #B05A36;
    --btn-primary-hover-bg: #984b2a;

    color-scheme: light;
}

/* ---- Dark mode -------------------------------------------------- */
html[data-color-mode="dark"] {
    --bg: #181c22;
    --bg-elevated: #1c2028;
    --bg-card: #161a20;
    --bg-card-hover: #1e2228;
    --bg-muted: #1c2028;
    --bg-input: #0c0e12;
    --bg-overlay: rgba(0, 0, 0, 0.65);

    --text: #e2e6ec;
    --text-muted: #96a0ae;
    --text-faint: #6c7683;
    --text-on-accent: #111418;

    --border: #252a32;
    --border-strong: #384050;
    --divider: rgba(255, 255, 255, 0.06);

    --accent: #8E794E;
    --accent-hover: #A8915F;
    --accent-soft: rgba(142, 121, 78, 0.15);
    --accent-strong: #7A6842;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.5);

    --font-weight-headings: 600;

    --btn-primary-bg: var(--text);
    --btn-primary-text: var(--bg);
    --btn-primary-border: var(--text);
    --btn-primary-hover-bg: var(--text-muted);

    color-scheme: dark;
}


/* ---- Typography ------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 12px;
    font-family: var(--font-display);
    color: var(--text);
    letter-spacing: -0.01em;
    line-height: 1.15;
    font-weight: var(--font-weight-headings);
}
h1 { font-size: clamp(2.25rem, 5vw, 3.75rem); letter-spacing: -0.02em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); letter-spacing: -0.015em; }
h3 { font-size: 1.25rem; line-height: 1.3; letter-spacing: -0.005em; }
h4 { font-size: 1rem; line-height: 1.4; }
p { margin: 0 0 16px; color: var(--text-muted); line-height: 1.65; }

.text-accent {
    /* Soft gradient across neighbouring shades of the accent — same hue
       family as the rest of the site, just given a little dimensional
       blend à la the Deep Dive / Claude Code wordmark. */
    background: linear-gradient(100deg, #e09478 0%, var(--accent) 50%, var(--accent-strong) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
html[data-color-mode="dark"] .text-accent {
    background: linear-gradient(100deg, #eeb49c 0%, var(--accent) 50%, var(--accent-strong) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
}
@media (prefers-color-scheme: dark) {
    html:not([data-color-mode]) .text-accent {
        background: linear-gradient(100deg, #eeb49c 0%, var(--accent) 50%, var(--accent-strong) 100%);
        -webkit-background-clip: text;
        background-clip: text;
        color: transparent;
        -webkit-text-fill-color: transparent;
    }
}
.highlight-marker {
    background-image: linear-gradient(120deg, var(--accent-soft) 0%, var(--accent-soft) 100%);
    background-repeat: no-repeat;
    background-size: 100% 40%;
    background-position: 0 88%;
    padding: 0 2px;
}

/* ---- Layout primitives ----------------------------------------- */
.container {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---- Buttons ---------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 11px 22px;
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: var(--radius);
    border: 1px solid transparent;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.15s;
    white-space: nowrap;
    line-height: 1.2;
    font-family: inherit;
}
.btn-sm { padding: 8px 14px; font-size: 0.8125rem; }
.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    border-color: var(--btn-primary-border);
}
.btn-primary:hover { 
    background: var(--btn-primary-hover-bg); 
    border-color: var(--btn-primary-hover-bg); 
}
.btn-outline {
    background: transparent;
    color: var(--text);
    border-color: var(--border-strong);
}
.btn-outline:hover { background: var(--bg-muted); border-color: var(--text); }
.btn-accent {
    background: var(--accent);
    color: var(--text-on-accent);
    border-color: var(--accent);
}
.btn-accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }

/* ---- Navigation ------------------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    height: var(--nav-height);
    background: color-mix(in srgb, var(--bg) 82%, transparent);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--divider);
}
.nav-inner {
    max-width: var(--container);
    margin: 0 auto;
    padding: 0 24px;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.nav-logo {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-weight: var(--font-weight-headings);
    font-size: 1.125rem;
    color: var(--text);
    letter-spacing: -0.01em;
}
.nav-logo-img { height: 24px; width: auto; }
.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    flex: 1;
    justify-content: center;
}
.nav-links a {
    padding: 8px 14px;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-muted);
    border-radius: var(--radius-sm);
    transition: color 0.15s, background 0.15s;
}
.nav-links a:hover { color: var(--text); background: var(--bg-muted); }
.nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}
.nav-toggle {
    display: none;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 0;
    padding: 0;
    flex-direction: column;
    justify-content: center;
    gap: 4px;
    border-radius: 6px;
}
.nav-toggle span {
    display: block;
    width: 18px;
    height: 1.5px;
    background: var(--text);
    margin: 0 auto;
    border-radius: 2px;
    transition: transform 0.2s;
}

/* Theme toggle button */
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    background: transparent;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-muted);
    transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.theme-toggle:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--bg-muted);
}
.theme-toggle svg { width: 16px; height: 16px; }
.theme-toggle .theme-toggle-sun { display: none; }
.theme-toggle .theme-toggle-moon { display: block; }
html[data-color-mode="dark"] .theme-toggle .theme-toggle-sun { display: block; }
html[data-color-mode="dark"] .theme-toggle .theme-toggle-moon { display: none; }
@media (prefers-color-scheme: dark) {
    html:not([data-color-mode]) .theme-toggle .theme-toggle-sun { display: block; }
    html:not([data-color-mode]) .theme-toggle .theme-toggle-moon { display: none; }
}

/* ---- Hero ------------------------------------------------------- */
.hero {
    padding: calc(var(--nav-height) + 72px) 0 16px;
    text-align: center;
}
.hero-content {
    max-width: 780px;
    margin: 0 auto 48px;
}
.hero-badge {
    display: inline-block;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    background: var(--bg-muted);
    border: 1px solid var(--border);
    border-radius: 999px;
    margin-bottom: 24px;
    letter-spacing: 0.02em;
}
.hero h1 {
    margin: 0 0 20px;
}
.hero-subtitle {
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 640px;
    margin: 0 auto 32px;
}
.hero-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 56px;
}

/* Hero carousel */
.hero-carousel {
    max-width: 100%;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
    padding: 32px 0;
}
.carousel-track {
    position: relative;
    width: 75%;
    max-width: 800px;
    aspect-ratio: 16 / 10;
    margin: 0 auto;
    overflow: visible;
    background: transparent;
    perspective: 1000px;
}
.carousel-slide {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    opacity: 0;
    visibility: hidden;
    transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.5s ease, visibility 0.5s ease;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--bg-card);
    border: 1px solid var(--border);
    z-index: 0;
}
.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: translate3d(0, 0, 0) scale(1.08);
    z-index: 3;
}
.carousel-slide.prev {
    opacity: 0.45;
    visibility: visible;
    transform: translate3d(-38%, 0, -150px) scale(0.8);
    z-index: 1;
    pointer-events: none;
}
.carousel-slide.next {
    opacity: 0.45;
    visibility: visible;
    transform: translate3d(38%, 0, -150px) scale(0.8);
    z-index: 1;
    pointer-events: none;
}
.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: zoom-in;
}
.carousel-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 48px;
    position: relative;
    z-index: 10;
}
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 999px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, border-color 0.15s, background 0.15s, transform 0.15s;
    z-index: 10;
    box-shadow: var(--shadow);
}
.carousel-btn:hover {
    color: var(--text);
    border-color: var(--border-strong);
    background: var(--bg-card-hover);
    transform: translateY(-50%) scale(1.05);
}
.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
}
.carousel-btn--prev {
    left: 20px;
}
.carousel-btn--next {
    right: 20px;
}
.carousel-dots {
    display: flex;
    gap: 6px;
}
.carousel-dot {
    width: 6px;
    height: 6px;
    border-radius: 999px;
    background: var(--border-strong);
    border: 0;
    padding: 0;
    transition: background 0.2s, width 0.2s;
}
.carousel-dot.active { background: var(--text); width: 20px; }

@media (max-width: 768px) {
    .carousel-track {
        width: 82%;
    }
    .carousel-slide.active {
        transform: translate3d(0, 0, 0) scale(1.04);
    }
    .carousel-slide.prev {
        transform: translate3d(-24%, 0, -100px) scale(0.8);
        opacity: 0.25;
    }
    .carousel-slide.next {
        transform: translate3d(24%, 0, -100px) scale(0.8);
        opacity: 0.25;
    }
    .carousel-btn {
        width: 36px;
        height: 36px;
    }
    .carousel-btn--prev {
        left: 8px;
    }
    .carousel-btn--next {
        right: 8px;
    }
}

/* ---- Section header -------------------------------------------- */
.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 64px;
}
.section-header h2 { margin-bottom: 16px; }
.section-header p {
    font-size: 1.0625rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* ---- Features grid --------------------------------------------- */
.features { padding: 64px 0 96px; }
.features-tier-label {
    text-align: center;
    margin: 0 0 32px;
}
.features-tier-label h3 {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin: 0;
    padding: 0 16px;
    position: relative;
}
.features-tier-label h3::before,
.features-tier-label h3::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 40px;
    height: 1px;
    background: var(--border);
}
.features-tier-label h3::before { right: 100%; }
.features-tier-label h3::after  { left: 100%; }

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    margin-bottom: 64px;
}
.feature-card {
    padding: 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    transition: transform 0.15s, box-shadow 0.15s, border-color 0.15s;
}
.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow);
    border-color: var(--border-strong);
}
.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    background: var(--bg-muted);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}
.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 8px;
}
.feature-card p {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0;
}

/* ---- AI / split section ---------------------------------------- */
.ai-section { padding: 96px 0; background: var(--bg-muted); }
.ai-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 64px;
}
.ai-content h2 { margin: 16px 0 16px; }
.ai-content > p { font-size: 1rem; margin: 0 0 24px; }
.ai-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.ai-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.9375rem;
    color: var(--text);
}
.ai-features svg {
    flex-shrink: 0;
    color: var(--accent);
    width: 16px;
    height: 16px;
}
.ai-screenshot img {
    width: 100%;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
}
.ai-image-light {
    display: block;
}
.ai-image-dark {
    display: none;
}
html[data-color-mode="dark"] .ai-image-light {
    display: none;
}
html[data-color-mode="dark"] .ai-image-dark {
    display: block;
}

/* ---- Privacy grid ---------------------------------------------- */
.privacy-section { padding: 96px 0; }
.privacy-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}
.privacy-card {
    padding: 32px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    text-align: center;
}
.privacy-icon {
    width: 52px;
    height: 52px;
    border-radius: var(--radius-sm);
    background: var(--accent-soft);
    color: var(--accent);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
}
.privacy-card h3 { margin-bottom: 8px; }
.privacy-card p { font-size: 0.9375rem; margin: 0; }

/* ---- Platforms / mobile ---------------------------------------- */
.platforms { padding: 96px 0; background: var(--bg-muted); }
.mobile-screenshots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}
.mobile-screenshots img {
    width: 100%;
    aspect-ratio: 9 / 19;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    cursor: zoom-in;
    transition: transform 0.2s;
}
.mobile-screenshots img:hover { transform: translateY(-4px); }

/* ---- Waitlist -------------------------------------------------- */
.waitlist { padding: 96px 0; }
.waitlist-inner {
    max-width: 560px;
    margin: 0 auto;
    text-align: center;
    padding: 56px 40px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.waitlist-inner h2 { margin: 0 0 12px; }
.waitlist-inner > p {
    font-size: 1rem;
    margin: 0 0 24px;
    color: var(--text-muted);
}
.waitlist-form {
    display: flex;
    gap: 8px;
    max-width: 460px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.waitlist-form input {
    flex: 1;
    min-width: 240px;
    padding: 12px 16px;
    font-size: 0.9375rem;
    background: var(--bg-input);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-family: inherit;
    transition: border-color 0.15s;
}
.waitlist-form input:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px var(--accent-soft);
}
.waitlist-message {
    margin-top: 16px;
    font-size: 0.875rem;
    min-height: 1em;
}
.waitlist-message.success { color: var(--accent); }
.waitlist-message.error { color: #dc2626; }
.waitlist-note {
    margin-top: 16px;
    font-size: 0.8125rem;
    color: var(--text-faint);
}

/* ---- Footer ---------------------------------------------------- */
.footer {
    padding: 48px 0 32px;
    border-top: 1px solid var(--border);
}
.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
.footer-brand p {
    font-size: 0.875rem;
    margin: 8px 0 0 32px;
    color: var(--text-faint);
}
.footer-links {
    display: flex;
    gap: 24px;
    flex-wrap: wrap;
}
.footer-links a {
    font-size: 0.875rem;
    color: var(--text-muted);
    transition: color 0.15s;
}
.footer-links a:hover { color: var(--text); }
.footer-bottom {
    padding-top: 24px;
    border-top: 1px solid var(--divider);
    text-align: center;
}
.footer-bottom p {
    font-size: 0.8125rem;
    color: var(--text-faint);
    margin: 0;
}

/* ---- Lightbox -------------------------------------------------- */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 1000;
    background: var(--bg-overlay);
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.lightbox.active { display: flex; }
.lightbox-img {
    max-width: 100%;
    max-height: 100%;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
}
.lightbox-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    background: var(--bg-card);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 999px;
    font-size: 1.5rem;
    line-height: 1;
}

/* =================================================================
   Pricing page
   ================================================================= */
.pricing-hero {
    padding: calc(var(--nav-height) + 72px) 0 48px;
    text-align: center;
}
.pricing { padding: 0 0 96px; }
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    max-width: 1080px;
    margin: 0 auto;
}
.pricing-card {
    position: relative;
    padding: 36px 28px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    display: flex;
    flex-direction: column;
}
.pricing-card--featured {
    border-color: var(--accent);
    box-shadow: var(--shadow);
}
.pricing-card-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: var(--text-on-accent);
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 999px;
    letter-spacing: 0.02em;
}
.pricing-card-header { margin-bottom: 24px; }
.pricing-card-header h3 {
    font-size: 1rem;
    color: var(--text-muted);
    font-weight: 500;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
}
.pricing-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}
.pricing-amount {
    font-family: var(--font-display);
    font-size: 2.5rem;
    font-weight: var(--font-weight-headings);
    letter-spacing: -0.01em;
    color: var(--text);
    line-height: 1;
}
.pricing-period {
    font-size: 0.875rem;
    color: var(--text-faint);
}
.pricing-tagline {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
    min-height: 3.2em;
}
.pricing-features {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}
.pricing-features li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.9375rem;
    color: var(--text);
    line-height: 1.5;
}
.pricing-features li svg {
    color: var(--accent);
    flex-shrink: 0;
    margin-top: 2px;
}
.pricing-features-includes {
    padding-bottom: 10px;
    margin-bottom: 2px;
    border-bottom: 1px solid var(--divider);
    font-weight: 600;
    color: var(--text-muted) !important;
}
.btn-pricing { width: 100%; justify-content: center; }
.pricing-asterisk {
    color: var(--accent);
    font-weight: 700;
    margin: 0 1px;
}
.pricing-footnote {
    margin-top: 40px;
    text-align: center;
    font-size: 0.8125rem;
    color: var(--text-faint);
}

/* =================================================================
   Documentation page
   ================================================================= */
.docs {
    padding: calc(var(--nav-height) + 24px) 0 40px;
}
.docs-container {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 40px;
    align-items: stretch;
    height: calc(100vh - var(--nav-height) - 64px);
    min-height: 600px;
}
.docs-sidebar {
    height: 100%;
    overflow-y: auto;
    padding-right: 8px;
    scrollbar-width: thin;
}
.docs-toc-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-faint);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin: 0 0 12px;
    padding: 0 10px;
}
.docs-toc-list {
    list-style: none;
    counter-reset: docs-toc;
    margin: 0;
    padding: 0;
}
.docs-toc-list > li { counter-increment: docs-toc; }
.docs-toc-chapter {
    display: block;
    position: relative;
    padding: 8px 10px 8px 32px;
    font-size: 0.875rem;
    color: var(--text-muted);
    border-left: 2px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    border-radius: 0 6px 6px 0;
}
.docs-toc-chapter::before {
    content: counter(docs-toc) ".";
    position: absolute;
    left: 10px;
    color: var(--text-faint);
    font-variant-numeric: tabular-nums;
    font-weight: 600;
}
.docs-toc-chapter:hover { color: var(--text); background: var(--bg-card); }
.docs-toc-list > li.active .docs-toc-chapter {
    color: var(--accent);
    border-left-color: var(--accent);
    background: var(--accent-soft);
}
.docs-toc-list > li.active .docs-toc-chapter::before { color: var(--accent); }
.docs-toc-sub {
    list-style: none;
    margin: 4px 0 10px;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease;
}
.docs-toc-list > li.active .docs-toc-sub { max-height: 500px; }
.docs-toc-sub a {
    display: block;
    padding: 5px 10px 5px 32px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    border-radius: 0 6px 6px 0;
    transition: color 0.15s, background 0.15s;
}
.docs-toc-sub a:hover { color: var(--text); background: var(--bg-card); }
.docs-toc-sub a.active { color: var(--accent); background: var(--accent-soft); }

.docs-main {
    min-width: 0;
    height: 100%;
    overflow-y: auto;
    padding: 16px 32px 48px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    scroll-behavior: smooth;
}
.docs-chapter { display: none; scroll-margin-top: 16px; }
.docs-chapter.active { display: block; }
.docs-chapter h2 {
    display: flex;
    align-items: baseline;
    gap: 14px;
    flex-wrap: wrap;
    font-size: 1.75rem;
    margin: 16px 0 12px;
}
.docs-chapter-number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 10px;
    border-radius: 8px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.9375rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}
.docs-chapter-intro {
    color: var(--text-muted);
    font-size: 1rem;
    margin: 0 0 24px;
    max-width: 65ch;
}
.docs-section-list {
    list-style: none;
    margin: 0;
    padding: 0;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    overflow: hidden;
    background: var(--bg-card);
}
.docs-section-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 18px;
    font-size: 0.9375rem;
    color: var(--text);
    border-bottom: 1px solid var(--border);
}
.docs-section-list li:last-child { border-bottom: none; }
.docs-section-num {
    flex-shrink: 0;
    width: 42px;
    font-variant-numeric: tabular-nums;
    font-weight: 600;
    color: var(--text-faint);
    font-size: 0.8125rem;
}
.docs-coming-soon {
    margin-left: auto;
    flex-shrink: 0;
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-faint);
}
.docs-pill {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}
.docs-section-list li code,
.docs-chapter code,
.docs-chapter h2 code,
.docs-chapter h3 code {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.875em;
    padding: 1px 5px;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
}
.docs-section {
    padding: 24px 0;
    border-top: 1px solid var(--border);
    scroll-margin-top: 16px;
}
.docs-section:first-of-type {
    border-top: none;
    padding-top: 8px;
}
.docs-section h3 {
    display: flex;
    align-items: baseline;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 1.25rem;
    margin: 0 0 16px;
}
.docs-section h4 {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 24px 0 10px;
}
.docs-section p {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: var(--text);
    margin: 0 0 14px;
    max-width: 70ch;
}
.docs-section p em { color: var(--text-muted); font-style: italic; }
.docs-section strong { color: var(--text); font-weight: 600; }

.docs-bullets {
    margin: 0 0 14px;
    padding: 0 0 0 22px;
    max-width: 70ch;
}
.docs-bullets.docs-ordered { list-style: decimal; }
.docs-bullets li {
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text);
    margin-bottom: 8px;
}
.docs-bullets li::marker { color: var(--text-faint); }

.docs-dl {
    margin: 0 0 16px;
    padding: 0;
    max-width: 70ch;
}
.docs-dl dt {
    font-size: 1rem;
    font-weight: 700;
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.docs-dl dt:first-child { margin-top: 0; }
.docs-dl dd {
    margin: 4px 0 0;
    padding-left: 0;
    font-size: 0.9375rem;
    line-height: 1.6;
    color: var(--text-muted);
}
.docs-aside {
    margin: 24px 0 0 !important;
    padding: 12px 14px;
    background: var(--accent-soft);
    border-left: 3px solid var(--accent);
    border-radius: 0 6px 6px 0;
    font-size: 0.875rem !important;
    color: var(--text);
}
.docs-section kbd {
    display: inline-block;
    padding: 1px 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: 0.8125em;
    font-weight: 600;
    background: var(--bg-input);
    border: 1px solid var(--border);
    border-bottom-width: 2px;
    border-radius: 4px;
    color: var(--text);
    line-height: 1.2;
}

/* Screenshot figures */
.docs-screenshot { margin: 20px 0 24px; max-width: 100%; }
.docs-screenshot img {
    display: block;
    width: 100%;
    height: auto;
    border: 1px solid var(--border);
    border-radius: 10px;
    background: var(--bg-input);
}
.docs-screenshot figcaption {
    margin-top: 10px;
    font-size: 0.8125rem;
    color: var(--text-muted);
    font-style: italic;
}
.docs-screenshot-placeholder .docs-screenshot-placeholder-inner {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 200px;
    border: 2px dashed var(--border-strong);
    border-radius: 10px;
    background:
        repeating-linear-gradient(
            45deg,
            var(--bg-input),
            var(--bg-input) 10px,
            var(--bg-muted) 10px,
            var(--bg-muted) 20px
        );
    color: var(--text-muted);
    padding: 24px;
    text-align: center;
}
.docs-screenshot-placeholder .docs-screenshot-label {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--accent);
}
.docs-screenshot-placeholder .docs-screenshot-caption {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--text);
}

/* =================================================================
   Blog
   ================================================================= */
.blog-hero, .manifesto-hero {
    padding: calc(var(--nav-height) + 72px) 0 48px;
    text-align: center;
}
.blog-list { padding: 0 0 96px; }
.blog-posts {
    max-width: 780px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}
.blog-post-card {
    display: block;
    padding: 28px 0;
    border-bottom: 1px solid var(--border);
    color: inherit;
}
.blog-post-card:hover h3 { color: var(--accent); }
.blog-post-card h3 {
    font-size: 1.375rem;
    margin-bottom: 6px;
    transition: color 0.15s;
}
.blog-post-meta {
    font-size: 0.8125rem;
    color: var(--text-faint);
    margin-bottom: 8px;
}
.blog-post-excerpt {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin: 0;
}
.blog-article {
    max-width: 720px;
    margin: 0 auto;
    padding: calc(var(--nav-height) + 48px) 24px 80px;
}
.blog-article h1 {
    font-size: clamp(1.875rem, 3vw, 2.5rem);
    margin-bottom: 16px;
}
.blog-article-meta {
    color: var(--text-faint);
    font-size: 0.875rem;
    margin-bottom: 40px;
}
.blog-article h2 {
    font-size: 1.5rem;
    margin: 36px 0 12px;
}
.blog-article h3 { font-size: 1.1875rem; margin: 28px 0 10px; }
.blog-article p { font-size: 1rem; line-height: 1.7; color: var(--text); margin-bottom: 16px; }
.blog-article ul, .blog-article ol {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text);
    padding-left: 24px;
    margin-bottom: 16px;
}
.blog-article li { margin-bottom: 8px; }
.blog-article blockquote {
    border-left: 3px solid var(--accent);
    padding: 4px 0 4px 20px;
    margin: 24px 0;
    color: var(--text-muted);
    font-style: italic;
}
.blog-article a { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; }
.blog-article a:hover { color: var(--accent-hover); }
.blog-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--accent);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    margin-bottom: 32px;
    transition: color 0.15s, transform 0.15s;
}
.blog-back:hover {
    color: var(--accent-hover);
    transform: translateX(-4px);
}
.blog-article img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-lg);
    margin: 16px 0;
}
.blog-article figure {
    margin: 32px 0;
    text-align: center;
}
.blog-card-read {
    display: inline-block;
    margin-top: 12px;
    color: var(--accent);
    font-weight: 500;
    font-size: 0.9375rem;
    transition: color 0.15s;
}
.blog-post-card:hover .blog-card-read {
    color: var(--accent-hover);
}

/* =================================================================
   Responsive
   ================================================================= */
@media (max-width: 900px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--bg-elevated);
        border-bottom: 1px solid var(--border);
        padding: 12px;
        gap: 4px;
        justify-content: flex-start;
    }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 10px 12px; text-align: left; }
    .nav-toggle { display: inline-flex; align-items: center; }
    .ai-layout { grid-template-columns: 1fr; gap: 40px; }
    .ai-content { text-align: center; }
    .ai-features { display: inline-flex; text-align: left; }
    .ai-features li { justify-content: flex-start; }
}

@media (max-width: 860px) {
    .docs-container {
        grid-template-columns: 1fr;
        gap: 24px;
        height: auto;
        min-height: 0;
    }
    .docs-sidebar { height: auto; overflow: visible; padding-right: 0; }
    .docs-toc-list { display: flex; flex-direction: column; gap: 2px; }
    .docs-main { height: auto; overflow: visible; padding: 16px 18px 32px; }
    .docs-chapter h2 { font-size: 1.5rem; }
    .docs-section h3 { font-size: 1.125rem; }
    .docs-section-list li { flex-wrap: wrap; padding: 12px 14px; }
    .docs-coming-soon { margin-left: 54px; }
}

@media (max-width: 640px) {
    .hero { padding: calc(var(--nav-height) + 48px) 0 16px; }
    .hero-subtitle { font-size: 1rem; }
    .features, .ai-section, .privacy-section, .platforms, .waitlist { padding: 64px 0; }
    .features { padding: 48px 0 64px; }
    .waitlist-inner { padding: 40px 24px; }
    .footer-inner { flex-direction: column; align-items: flex-start; }
    .pricing-card { padding: 28px 24px; }
}

/* ---- Legal Pages ----------------------------------------------- */
.legal-section {
    padding: 120px 0 80px 0;
}
.legal-content {
    line-height: 1.8;
    font-size: 1.0625rem;
}
.legal-content h1 {
    font-size: 2.25rem;
    margin-bottom: 40px;
}
.legal-content h2 {
    font-size: 1.625rem;
    margin-top: 64px; /* Increased space between main sections */
    margin-bottom: 24px;
}
.legal-content h3 {
    font-family: var(--font-family); /* Sturdy Merriweather for subheadings */
    font-size: 1.25rem;
    font-weight: 700;
    margin-top: 40px;
    margin-bottom: 16px;
}
.legal-content hr {
    display: none; /* Remove horizontal rules */
}
.legal-content p, .legal-content ul, .legal-content table {
    margin-bottom: 24px;
}
.legal-content li {
    margin-bottom: 10px;
}
.legal-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
}
.legal-content th, .legal-content td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.legal-content th {
    font-weight: 600;
    border-bottom: 2px solid var(--border-strong);
}
.legal-section .container {
    max-width: 800px;
}
.legal-content th.col-25 {
    width: 25%;
}

/* ---- Alpha Testing & Downloads ---------------------------------- */
.download-card {
    margin: 48px auto;
    max-width: 480px;
    text-align: center;
    padding: 32px;
    border: 1px solid var(--border-strong);
    border-radius: var(--radius-lg);
    background: var(--bg-card);
    box-shadow: var(--shadow);
}
.download-card h3 {
    margin-top: 0;
    margin-bottom: 8px;
    font-family: var(--font-display);
    font-size: 1.5rem;
}
.download-card p {
    font-size: 0.9375rem;
    color: var(--text-muted);
    margin-bottom: 24px;
}
.download-card .btn-primary {
    width: 100%;
    font-weight: 600;
}

