/* About Page Stylesheet */

/* Contrast and elevation override */
:root {
    --bg-color: #202024;
    /* Even lighter dark background */
    --panel-bg: #2d2d34;
    /* Elevated dark card/container background */
    --border-color: #3a3a42;
    /* Custom border color for dark cards */
    --text-lead: #e4e4e7;
}

[data-theme="light"] {
    --bg-color: #f8fafc;
    /* Clean light grey background */
    --panel-bg: #ffffff;
    /* Solid white card/container background */
    --border-color: #e2e8f0;
    /* Light border color */
    --text-lead: #475569;
}

@media (prefers-color-scheme: light) {
    :root:not([data-theme]) {
        --bg-color: #f8fafc;
        --panel-bg: #ffffff;
        --border-color: #e2e8f0;
        --text-lead: #475569;
        color-scheme: light;
    }
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: 'Inter', sans-serif;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    height: auto !important;
    width: auto !important;
    overflow: auto !important;
    display: flex;
    flex-direction: column;
}

/* Container */
.about-container {
    flex: 1;
    max-width: 1200px;
    margin: 60px auto 0 auto;
    padding: 2.5rem 1.5rem;
    box-sizing: border-box;
}

/* Hero Section */
.hero-section {
    text-align: center;
    margin-bottom: 3rem;
    margin-top: 1.5rem;
}

.hero-section h1 {
    font-family: 'Outfit', sans-serif;
    font-size: 5rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    margin-bottom: 1rem;
    background: var(--logo-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 0 20px rgba(214, 214, 214, 0.076));
}

.hero-section .lead {
    font-size: 1.25rem;
    line-height: 1.6;
    color: var(--text-muted);
    max-width: 1000px;
    margin: 0 auto;
}

/* Showcase Hero Section */
.about-hero-showcase {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
    align-items: center;
    margin: 0 auto 5rem auto;
    padding: 0 1rem;
    max-width: 1100px;
}

.hero-showcase-content {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    text-align: left;
}

.hero-showcase-tagline {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--accent-readable);
    background-color: var(--control-bg);
    border: 1px solid var(--border-color);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    align-self: flex-start;
    margin: 0;
}

.hero-showcase-content h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2.25rem;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.hero-showcase-desc {
    font-size: 1.05rem;
    line-height: 1.6;
    color: var(--text-muted);
    margin: 0 0 0.5rem 0;
}

.hero-showcase-buttons {
    display: flex;
    gap: 1rem;
}

.hero-showcase-buttons .btn {
    gap: 0.5rem;
    padding: 0.85rem 2rem;
    font-size: 1rem;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.hero-showcase-buttons .btn.primary svg {
    transition: transform 0.2s ease;
}

.hero-showcase-buttons .btn.primary:hover svg {
    transform: translateX(3px);
}

/* Right visual column */
.hero-showcase-visual {
    display: flex;
    justify-content: center;
    align-items: center;
}

.showcase-card {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2.2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    width: 100%;
    max-width: 375px;
    aspect-ratio: 1;
    box-sizing: border-box;
}

.canvas-container {
    width: 100%;
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.showcase-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: opacity 0.5s ease;
    opacity: 0;
}

.showcase-canvas.active {
    opacity: 1;
}

.style-badge {
    position: absolute;
    bottom: -29px;
    background-color: var(--bg-color);
    border: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    transition: opacity 0.3s ease;
    opacity: 1;
    white-space: nowrap;
}

/* Gallery Section & Screenshots */
.gallery-section {
    margin-bottom: 8rem;
}

.gallery-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 0.25rem;
}

.section-desc {
    color: var(--text-subtle);
    text-align: center;
    margin-bottom: 2.5rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.gallery-card {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, border-color 0.2s;
}

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

.screenshot-placeholder {
    background-color: var(--preview-bg);
    border-bottom: 1px solid var(--border-color);
    aspect-ratio: 16 / 10;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.screenshot-placeholder picture,
.screenshot-placeholder img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.placeholder-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-subtle);
    font-size: 0.9rem;
    font-weight: 500;
}

.badge-helper {
    font-size: 0.75rem;
    background: var(--control-bg);
    color: var(--accent);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    border: 1px solid var(--border-color-strong);
}

.gallery-card-info {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
}

.gallery-card-info h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin: 0;
}

.gallery-card-info p {
    color: var(--text-subtle);
    font-size: 0.9rem;
    line-height: 1.5;
    margin: 0;
}

.gallery-card-link {
    color: var(--accent-readable);
    font-size: 0.9rem;
    font-weight: 500;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-top: auto;
    padding-top: 0.5rem;
    transition: color 0.15s ease;
}

.gallery-card-link:hover {
    color: var(--text-main);
}

.gallery-card-link svg {
    transition: transform 0.15s ease;
}

.gallery-card-link:hover svg {
    transform: translateX(3px);
}


/* Shortcut section */
.shortcut-section {
    margin-bottom: 8rem;
}

.shortcut-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 0.25rem;
}

/* Split the card container into a flexible horizontal layout row */
/* Scopes layout row specifically to avoid global class clashing */
.shortcut-section .shortcuts-split-row {
    display: flex !important;
    flex-direction: row !important;
    justify-content: space-between !important;
    align-items: center !important;
    gap: 40px;
    padding: 40px;
    text-align: left;
}

.shortcuts-split-row .download-box-text {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Keeps layout stacked beautifully on compact screens */
@media (max-width: 768px) {
    .shortcut-section .shortcuts-split-row {
        flex-direction: column !important;
        gap: 32px;
        padding: 30px 20px;
    }

    .shortcuts-split-row .shortcuts-widget-aside {
        order: -1;
    }
}

/* Premium Black Download Badge App Store Signature styling */
/* Premium Matte Black Download Badge */
.apple-shortcuts-badge {
    display: inline-flex;
    align-items: center;
    background: #000000;
    color: #ffffff;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 11px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Subtle silver/gray outer border */
    border: 1.5px solid rgba(255, 255, 255, 0.288);
    margin-top: 20px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
    transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.1s ease;
}

.apple-shortcuts-badge:hover {
    background: #0a0a0a;
    border-color: rgba(255, 255, 255, 0.4);
}

.apple-shortcuts-badge:active {
    transform: scale(0.97);
}

/* Local Icon Definition with Subtle Framing Border */
.apple-shortcuts-logo {
    margin-right: 14px;
    flex-shrink: 0;
    border-radius: 6px;
    /* Fine subtle layer boundary border */
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.958);
}

.badge-text-wrapper {
    display: flex;
    flex-direction: column;
    text-align: left;
}

/* Bold, High-Contrast Typography Stack */
.badge-label {
    color: #ffffff;
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    line-height: 12px;
    opacity: 0.9;
}

.badge-title {
    color: #ffffff;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.3px;
    font-family: -apple-system, system-ui, sans-serif;
    line-height: 20px;
    margin-top: 1px;
}

/* Apple Shortcuts Native Canvas Card Widget */
.shortcuts-widget-aside {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-shrink: 0;
}

.native-shortcuts-card {
    width: 250px;
    height: 180px;
    background: linear-gradient(135deg, #2ecc71 0%, #27ae60 100%);
    border-radius: 32px;
    padding: 22px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 10px 24px rgba(39, 174, 96, 0.15);
    transition: transform 0.25s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.25s cubic-bezier(0.25, 0.8, 0.25, 1);
}

.native-shortcuts-card:hover {
    transform: translateY(-2px) scale(1.01);
    box-shadow: 0 14px 24px rgba(39, 174, 96, 0.28);
}

/* Prevents underline styling from bleeding into the widget card components on hover */
.shortcuts-widget-aside a,
.shortcuts-widget-aside a:hover {
    text-decoration: none !important;
}

.native-shortcuts-card,
.widget-app-title {
    text-decoration: none !important;
}

.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    width: 100%;
}

.widget-qr-icon {
    width: 36px;
    height: 36px;
    opacity: 0.95;
}

.widget-play-orb {
    width: 38px;
    height: 38px;
    background: rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.widget-play-orb svg {
    width: 14px;
    height: 14px;
    margin-left: 2px;
}

.widget-app-title {
    color: #ffffff;
    font-family: -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 24px;
    font-weight: 600;
    letter-spacing: -0.4px;
    margin-bottom: 2px;
}

/* Responsive collapse rules for small viewports */
@media (max-width: 768px) {
    .shortcut-section .download-box {
        flex-direction: column !important;
        gap: 32px;
        padding: 30px 20px;
    }

    .shortcuts-widget-aside {
        order: -1;
    }
}

/* Features grid details */
.features-section {
    margin-bottom: 8rem;
}

.features-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 3rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.feature-detail-card {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.card-header {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.icon-circle {
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    background-color: var(--accent);
    border: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.feature-detail-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    margin: 0;
}

.feature-detail-card p {
    color: var(--text-subtle);
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0;
}

.feature-detail-card a {
    color: var(--accent-readable);
    text-decoration: none;
    font-weight: 800;
}

.feature-detail-card a:hover {
    text-decoration: underline;
    color: var(--accent-readable);
}

/* CTA Area */
.cta-section {
    margin-bottom: 4rem;
}

.cta-banner {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 3rem 2rem;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

.cta-banner h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    margin: 0;
}

.cta-banner p {
    color: var(--text-muted);
    font-size: 1.1rem;
    margin: 0 0 1rem 0;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
}


/* Use Cases Section */
.use-cases-section {
    margin-bottom: 5rem;
}

.use-cases-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 0.25rem;
}

.use-cases-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.use-case-card {
    background-color: var(--panel-bg);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    transition: border-color 0.2s, transform 0.2s;
}

.use-case-card:hover {
    border-color: var(--border-color-strong);
    transform: translateY(-1px);
}

.use-case-card h3 {
    font-family: 'Outfit', sans-serif;
    font-size: 1.15rem;
    margin: 0;
}

.use-case-card p {
    color: var(--text-subtle);
    font-size: 0.875rem;
    line-height: 1.5;
    margin: 0;
}

/* FAQ Section */
.faq-section {
    margin-bottom: 5rem;
}

.faq-section h2 {
    font-family: 'Outfit', sans-serif;
    font-size: 2rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
    margin-bottom: 3rem;
}

.faq-accordion {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

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

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.25rem 1.5rem;
    cursor: pointer;
    user-select: none;
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 1.05rem;
    list-style: none;
}

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

.faq-arrow {
    transition: transform 0.2s ease;
    color: var(--text-subtle);
}

.faq-item[open] .faq-arrow {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 1rem 1.5rem 1.25rem 1.5rem;
    border-top: 1px solid transparent;
}

.faq-item[open] .faq-answer {
    border-top-color: var(--border-color);
}

.faq-answer p {
    margin: 0;
    color: var(--text-subtle);
    font-size: 0.95rem;
    line-height: 1.6;
}

.gallery-card {
    cursor: pointer;
}

/* Lightbox Dialog */
.lightbox-dialog {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
    max-width: 95vw;
    max-height: 95vh;
    outline: none;
    overflow: visible;
}

.lightbox-dialog::backdrop {
    background-color: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.lightbox-content {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    background: transparent;
    border: none;
    overflow: visible;
}

.lightbox-content img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    display: block;
    border-radius: 12px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.15);
}

.lightbox-close {
    position: fixed;
    top: 1.5rem;
    right: 1.5rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(15, 15, 15, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #ffffff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s, transform 0.2s;
    z-index: 1000;
}

.lightbox-close:hover {
    background-color: rgba(15, 15, 15, 0.95);
    transform: scale(1.1);
}

.lightbox-caption {
    margin-top: 1.25rem;
    font-family: 'Outfit', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    text-align: center;
    color: #ffffff;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9);
}

/* Media Queries for Tablet/Mobile responsiveness */
@media (max-width: 1024px) {
    .about-hero-showcase {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .hero-showcase-content {
        align-items: center;
        text-align: center;
    }

    .hero-showcase-tagline {
        align-self: center;
    }

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

    .use-cases-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-section h1 {
        font-size: 2.5rem;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .use-cases-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
}

@media (max-width: 640px) {
    .header-nav {
        display: none;
    }

    .hero-section h1 {
        font-size: 2rem;
    }

    .hero-section .lead {
        font-size: 1.1rem;
    }

    .about-container {
        padding: 1.5rem 1rem;
    }

    .hero-showcase-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    .about-hero-showcase {
        margin-bottom: 3.5rem;
        gap: 2rem;
    }

    .cta-banner {
        padding: 2rem 1rem;
    }

    .cta-buttons {
        flex-direction: column;
        width: 100%;
        gap: 0.75rem;
    }

    /* Full-width, taller, more substantial buttons on mobile */
    .hero-showcase-buttons .btn,
    .cta-buttons .btn {
        width: 100%;
        padding: 1rem 1.5rem;
        font-size: 1rem;
        font-weight: 600;
        white-space: normal;
        border-radius: 10px;
        letter-spacing: 0.01em;
    }

    /* More visible secondary button on mobile */
    .hero-showcase-buttons .btn.secondary,
    .cta-buttons .btn.secondary {
        border-width: 1.5px;
        border-color: var(--border-color-strong);
    }
}