/*
 Theme Name:   App Landing Page Styles (shared)
 Template:     twentytwentyfive-child
 Version:      1.0
 Used by:      taken-app.php, app-speed.php, crew-currency-app.php, er-ops.php, readback-app.php
*/

:root {
    --bg-obsidian: #050505;
    --surface-dark: #111111;
    --surface-raised: #161616;
    --accent-amber: #FFB000;
    --text-primary: #FFFFFF;
    --text-secondary: #999999;
    --text-tertiary: #666666;
    --border-subtle: rgba(255, 255, 255, 0.08);
    --glass-effect: rgba(255, 255, 255, 0.03);
    --radius-lg: 20px;
    --radius-md: 14px;
}

.app-landing {
    background-color: var(--bg-obsidian);
    color: var(--text-primary);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

.app-landing * {
    box-sizing: border-box;
}

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

.app-landing section {
    padding: 56px 20px;
    max-width: 1100px;
    margin: 0 auto;
}

.section-head {
    text-align: center;
    margin-bottom: 32px;
}

.section-title {
    font-size: 1.6rem;
    font-weight: 700;
    letter-spacing: -0.3px;
    margin: 0 0 8px;
}

.section-sub {
    color: var(--text-secondary);
    font-size: 0.95rem;
    margin: 0;
}

/* ── Hero ── */
.hero {
    display: flex;
    flex-direction: column;
    gap: 40px;
    padding-top: 48px;
}

.hero__eyebrow {
    color: var(--accent-amber);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin: 0 0 16px;
}

.hero__title {
    font-size: clamp(2.2rem, 6vw + 1rem, 3.6rem);
    line-height: 1.05;
    font-weight: 800;
    letter-spacing: -0.5px;
    margin: 0 0 10px;
}

.hero__subtitle {
    font-size: clamp(1.2rem, 2.5vw + 0.8rem, 1.7rem);
    font-weight: 600;
    color: var(--text-primary);
    margin: 0 0 20px;
}

.hero__subtitle .accent {
    color: var(--accent-amber);
}

.hero__desc {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 52ch;
    margin: 0 0 32px;
}

.hero__ctas {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.store-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    background: var(--surface-dark);
    border: 1px solid var(--border-subtle);
    border-radius: 12px;
    padding: 10px 16px;
    text-decoration: none;
    color: var(--text-primary);
    transition: border-color 0.2s ease, background 0.2s ease;
}

.store-btn:hover {
    border-color: var(--accent-amber);
    background: rgba(255, 176, 0, 0.06);
}

.store-btn__icon {
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.store-btn__label {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.store-btn__sub {
    font-size: 0.62rem;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.store-btn__main {
    font-size: 0.95rem;
    font-weight: 600;
}

/* ── Hero visual (self-contained icon badge, no external screenshots) ── */
.hero__visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 280px;
}

.hero__badge {
    position: relative;
    width: 200px;
    height: 200px;
    border-radius: 44px;
    background: linear-gradient(155deg, var(--surface-raised), var(--surface-dark));
    border: 1px solid var(--border-subtle);
    box-shadow: 0 0 0 1px rgba(255, 176, 0, 0.15), 0 30px 70px rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero__badge::before {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 176, 0, 0.14), transparent 70%);
    z-index: -1;
}

.hero__badge-icon {
    width: 92px;
    height: 92px;
    color: var(--accent-amber);
}

.hero__ring {
    position: absolute;
    border-radius: 50%;
    border: 1px solid var(--border-subtle);
}

.hero__ring--outer {
    width: 260px;
    height: 260px;
    z-index: -1;
}

.hero__ring--inner {
    width: 230px;
    height: 230px;
    z-index: -1;
    opacity: 0.6;
}

/* ── Hero visual (screenshot variant) ──
   Use .hero__visual--shot + .hero__shot for apps with a real screenshot
   instead of the generic icon badge. .hero__shot gets an explicit height
   at each breakpoint (matching .hero__visual's own height rules above) so
   it renders at a fixed, predictable size no matter the screenshot's own
   pixel dimensions or aspect ratio &mdash; width is derived from that
   height via object-fit, then capped by max-width so an unusually wide
   image never overflows a narrow viewport. */
.hero__visual--shot {
    position: relative;
}

.hero__visual--shot::before {
    content: '';
    position: absolute;
    inset: -30px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 176, 0, 0.14), transparent 70%);
    z-index: -1;
}

.hero__shot {
    display: block;
    height: 240px;
    width: auto;
    max-width: 100%;
    object-fit: contain;
    border-radius: var(--radius-lg);
    box-shadow: 0 0 0 1px rgba(255, 176, 0, 0.15), 0 30px 70px rgba(0, 0, 0, 0.6);
}

/* ── Features ── */
.features__grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.feature-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    background: var(--glass-effect);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 20px;
    transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.feature-card:hover {
    border-color: rgba(255, 176, 0, 0.35);
    background: rgba(255, 255, 255, 0.05);
    transform: translateY(-2px);
}

.feature-card__icon {
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    border-radius: 10px;
    background: rgba(255, 176, 0, 0.1);
    color: var(--accent-amber);
    display: flex;
    align-items: center;
    justify-content: center;
}

.feature-card__icon svg {
    width: 22px;
    height: 22px;
}

.feature-card__name {
    font-weight: 600;
    font-size: 1rem;
}

.feature-card__desc {
    color: var(--text-secondary);
    font-size: 0.85rem;
    line-height: 1.5;
}

/* ── FAQ ── */
.faq__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-width: 760px;
    margin: 0 auto;
}

.faq-item {
    background: var(--surface-dark);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 16px 20px;
}

.faq-item[open] {
    border-color: rgba(255, 176, 0, 0.35);
}

.faq-item__q {
    cursor: pointer;
    font-weight: 600;
    font-size: 0.98rem;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.faq-item__q::after {
    content: '+';
    color: var(--accent-amber);
    font-size: 1.2rem;
    font-weight: 400;
    margin-left: 12px;
    flex-shrink: 0;
    transition: transform 0.2s ease;
}

.faq-item[open] .faq-item__q::after {
    content: '\2212';
}

.faq-item__a {
    color: var(--text-secondary);
    font-size: 0.9rem;
    line-height: 1.6;
    margin: 14px 0 0;
}

/* ── Contact ── */
.contact {
    text-align: center;
}

.contact__email {
    display: inline-block;
    font-size: clamp(1.4rem, 3vw + 1rem, 2.2rem);
    font-weight: 700;
    color: var(--accent-amber);
    text-decoration: none;
    margin-top: 8px;
}

.contact__email:hover {
    text-decoration: underline;
}

.contact__social {
    display: flex;
    justify-content: center;
    gap: 18px;
    margin-top: 28px;
}

.contact__social a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--surface-dark);
    border: 1px solid var(--border-subtle);
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.contact__social a:hover {
    color: var(--accent-amber);
    border-color: var(--accent-amber);
}

.contact__social svg {
    width: 18px;
    height: 18px;
}

/* ── Footer ── */
.app-landing-footer {
    text-align: center;
    padding: 40px 20px 56px;
    max-width: 1100px;
    margin: 0 auto;
}

.app-landing-footer__links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px 24px;
    margin-bottom: 18px;
}

.app-landing-footer__links a {
    color: var(--text-secondary);
    font-size: 0.8rem;
    text-decoration: none;
    letter-spacing: 0.3px;
}

.app-landing-footer__links a:hover {
    color: var(--accent-amber);
}

.app-landing-footer__legal {
    color: var(--text-tertiary);
    font-size: 0.72rem;
    margin: 0;
}

/* ── Language jump nav (EN/ES on one page) ── */
.lang-jump {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: 14px 20px 0;
    max-width: 1100px;
    margin: 0 auto;
    font-size: 0.8rem;
    color: var(--text-tertiary);
}

.lang-jump a {
    color: var(--text-secondary);
    text-decoration: none;
}

.lang-jump a:hover {
    color: var(--accent-amber);
}

/* ── Body copy (problem statement, CTA lede) ── */
.lede {
    color: var(--text-secondary);
    font-size: 1.02rem;
    line-height: 1.65;
    max-width: 62ch;
    margin: 0 auto;
    text-align: center;
}

/* ── Numbered steps (reuses .feature-card; badge holds a numeral instead of an icon) ── */
.step__num {
    font-weight: 700;
    font-size: 1.1rem;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

/* ── Callout (SOS note, honest-admission paragraph) ── */
.callout {
    background: var(--glass-effect);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
    padding: 18px 20px;
    max-width: 760px;
    margin: 24px auto 0;
    color: var(--text-secondary);
    font-size: 0.92rem;
    line-height: 1.6;
}

/* ── Data table ("What we store, plainly") ── */
.table-wrap {
    overflow-x: auto;
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-md);
}

.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.data-table th,
.data-table td {
    padding: 14px 18px;
    text-align: left;
    vertical-align: top;
    border-bottom: 1px solid var(--border-subtle);
}

.data-table tr:last-child th,
.data-table tr:last-child td {
    border-bottom: none;
}

.data-table th {
    width: 34%;
    color: var(--text-primary);
    font-weight: 600;
    background: var(--glass-effect);
    white-space: nowrap;
}

.data-table td {
    color: var(--text-secondary);
}

/* ── CTA section ── */
.cta-section {
    text-align: center;
}

.hero__ctas--center {
    justify-content: center;
    margin-top: 24px;
}

/* ── Hide default theme footer (this template supplies its own) ── */
.wp-site-blocks > footer,
#site-footer,
.site-footer,
footer.wp-block-template-part {
    display: none !important;
}

/* ── Tablet ── */
@media (min-width: 600px) {
    .app-landing section {
        padding: 72px 32px;
    }

    .hero {
        padding-top: 64px;
    }

    .features__grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 14px;
    }

    .hero__visual {
        height: 340px;
    }

    .hero__shot {
        height: 300px;
    }

    .hero__badge {
        width: 230px;
        height: 230px;
    }

    .hero__ring--outer {
        width: 300px;
        height: 300px;
    }

    .hero__ring--inner {
        width: 265px;
        height: 265px;
    }
}

/* ── Desktop ── */
@media (min-width: 1024px) {
    .hero {
        flex-direction: row;
        align-items: center;
        gap: 60px;
        padding-top: 80px;
    }

    .hero__text {
        flex: 1;
    }

    .hero__visual {
        flex: 1;
        height: 420px;
    }

    .hero__shot {
        height: 380px;
    }

    .hero__badge {
        width: 260px;
        height: 260px;
    }

    .hero__badge-icon {
        width: 116px;
        height: 116px;
    }

    .hero__ring--outer {
        width: 340px;
        height: 340px;
    }

    .hero__ring--inner {
        width: 300px;
        height: 300px;
    }

    .features__grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .section-title {
        font-size: 1.9rem;
    }
}
