/* TestFlight beta page. Builds on style.css. */

.beta-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    margin-bottom: 24px;
    border-radius: 999px;
    border: 1px solid rgba(96, 165, 250, 0.4);
    background: rgba(59, 130, 246, 0.12);
    color: #93c5fd;
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.beta-pill::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #60a5fa;
    box-shadow: 0 0 0 4px rgba(96, 165, 250, 0.25);
}

.beta-hero {
    min-height: 0;
    padding: 150px 0 90px;
}

.beta-hero .container {
    display: flex;
    align-items: center;
    gap: 50px;
}

.beta-hero .hero-image img {
    max-height: 520px;
    border-radius: 24px;
}

.beta-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px 24px;
}

.beta-actions .hint {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.95rem;
}

.cta-button.is-pending {
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid var(--card-border);
    color: rgba(255, 255, 255, 0.7);
    cursor: default;
    box-shadow: none;
    transform: none;
}

.section-lead {
    max-width: 680px;
    margin: -40px auto 50px;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.1rem;
}

/* Objects gallery */
.objects-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
    gap: 18px;
}

.object-tile {
    margin: 0;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid var(--card-border);
    background: var(--card-bg);
}

.object-tile img {
    display: block;
    width: 100%;
    aspect-ratio: 1;
    object-fit: contain;
    background: linear-gradient(180deg, #d9dadb 0%, #c3c5c6 100%);
}

.object-tile figcaption {
    padding: 10px 14px;
    font-size: 0.95rem;
    font-weight: 600;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
}

.free-tag {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    padding: 2px 8px;
    border-radius: 6px;
    background: rgba(34, 197, 94, 0.15);
    color: #86efac;
}

.objects-note {
    margin-top: 24px;
    text-align: center;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
}

/* Shapes */
.shapes-grid {
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

/* Feature cards */
.beta-features .feature-card ul {
    margin: 12px 0 0 18px;
    color: rgba(255, 255, 255, 0.7);
}

.beta-features .feature-card li + li {
    margin-top: 4px;
}

/* Screenshots */
.phone-shots {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 40px;
    max-width: 960px;
    margin: 0 auto;
}

.phone-shot {
    margin: 0;
    text-align: center;
}

.phone-shot img {
    width: 100%;
    max-width: 300px;
    border-radius: 36px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.phone-shot figcaption {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.75);
}

.vision-shot {
    max-width: 960px;
    margin: 60px auto 0;
    text-align: center;
}

.vision-shot img {
    width: 100%;
    border-radius: 24px;
    border: 1px solid var(--card-border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
}

.vision-shot figcaption {
    margin-top: 16px;
    color: rgba(255, 255, 255, 0.75);
}

/* Sample model */
.sample-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

/* Not a .feature-card: its hover lift and fade-in transforms would move the 3D model. */
.sample-row .sample-card {
    max-width: 360px;
    width: 100%;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 30px;
}

.sample-card h3 {
    margin-bottom: 15px;
    font-size: 1.5rem;
}

.sample-card p {
    color: rgba(255, 255, 255, 0.7);
}

.sample-model {
    width: 100%;
    aspect-ratio: 1;
    margin-bottom: 20px;
    border-radius: 24px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.06);
}

.sample-card .cta-button {
    margin-top: 20px;
}

/* The model, its download button and the Vision Pro tip show only where Safari has the model
   element; elsewhere the preview image downloads the model. */
.sample-card .model-only,
.sample-card .vision-only {
    display: none;
}

.has-model .sample-card .model-only,
.has-model.is-vision .sample-card .vision-only {
    display: block;
}

.has-model .sample-card .cta-button.model-only {
    display: inline-block;
}

.has-model .sample-card .poster-only {
    display: none;
}

/* With the model, the card spans the section so the object shows large, and the copy sits
   under it. */
.has-model .sample-row .sample-card {
    max-width: 1100px;
    text-align: center;
}

.has-model .sample-model {
    aspect-ratio: auto;
    height: min(80vh, 800px);
}

.has-model .sample-copy {
    max-width: 720px;
    text-align: center;
}

.sample-row .sample-card img {
    aspect-ratio: 1;
    object-fit: contain;
    background: linear-gradient(180deg, #d9dadb 0%, #c3c5c6 100%);
}

.sample-copy {
    max-width: 440px;
    color: rgba(255, 255, 255, 0.75);
}

.sample-copy h3 {
    color: var(--text-color);
    font-size: 1.5rem;
    margin-bottom: 12px;
}

.sample-copy p + p {
    margin-top: 12px;
}

/* Steps */
.steps {
    list-style: none;
    counter-reset: step;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.steps li {
    counter-increment: step;
    background: var(--card-bg);
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 28px;
    color: rgba(255, 255, 255, 0.75);
}

.steps li::before {
    content: counter(step);
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    margin-bottom: 14px;
    border-radius: 50%;
    background: var(--accent-gradient);
    color: white;
    font-weight: 700;
}

.steps strong {
    display: block;
    color: var(--text-color);
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.steps a {
    color: #93c5fd;
}

.fine-print {
    max-width: 760px;
    margin: 40px auto 0;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.95rem;
    text-align: center;
}

.fine-print a {
    color: #93c5fd;
}

@media (max-width: 768px) {
    .beta-hero {
        padding: 120px 0 60px;
    }

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

    .beta-actions {
        justify-content: center;
    }

    .nav-links a {
        margin-left: 12px;
        font-size: 0.9rem;
    }

    .section-lead {
        margin-top: -30px;
    }
}

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

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

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