/* BenchBalancer for iPhone launch treatment. Loaded on the homepage and /iphone. */

[hidden] {
    display: none !important;
}

.iphone-promo-home {
    width: min(100%, 1080px);
    margin: 50px auto 0;
    padding: 34px;
    display: grid;
    grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
    gap: 38px;
    align-items: center;
    text-align: left;
    border: 1px solid rgba(0, 255, 255, 0.28);
    border-radius: 28px;
    background:
        radial-gradient(circle at 92% 12%, rgba(0, 255, 255, 0.13), transparent 38%),
        linear-gradient(145deg, rgba(17, 29, 34, 0.96), rgba(5, 12, 15, 0.96));
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.iphone-promo-copy {
    position: relative;
    z-index: 2;
}

.iphone-promo-kicker {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    color: var(--accent-cyan, #00ffff);
    font: 700 12px/1.2 'Roboto', sans-serif;
    letter-spacing: 1.7px;
    text-transform: uppercase;
}

.iphone-promo-kicker::before {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 14px currentColor;
}

.iphone-promo-home h2,
.iphone-page-hero h1 {
    margin: 0;
    color: #f5fbfc;
    font-family: 'Bebas Neue', 'Arial Narrow', sans-serif;
    font-weight: 400;
    letter-spacing: 0.4px;
    line-height: 0.98;
}

.iphone-promo-home h2 {
    font-size: clamp(38px, 5vw, 60px);
}

.iphone-promo-copy > p:not(.iphone-promo-kicker),
.iphone-page-lead {
    margin: 20px 0 24px;
    color: rgba(229, 241, 244, 0.78);
    font: 400 17px/1.7 'Roboto', sans-serif;
}

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

.app-store-link {
    display: inline-flex;
    min-height: 44px;
    align-items: center;
}

.app-store-link img {
    display: block;
    height: 48px;
    width: auto;
}

.iphone-learn-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    color: #ffffff;
    font: 700 14px/1 'Roboto', sans-serif;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 255, 255, 0.6);
}

.iphone-learn-link:hover,
.iphone-learn-link:focus-visible {
    color: var(--accent-cyan, #00ffff);
}

.iphone-promo-visual {
    min-height: 330px;
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 18px;
}

.iphone-screen-stack {
    position: relative;
    height: 330px;
}

.iphone-screen {
    position: absolute;
    top: 0;
    width: 152px;
    border: 5px solid #020607;
    border-radius: 27px;
    box-shadow: 0 24px 50px rgba(0, 0, 0, 0.46);
    overflow: hidden;
    background: #020607;
}

.iphone-screen img {
    display: block;
    width: 100%;
    height: auto;
}

.iphone-screen-main {
    z-index: 2;
    left: 50%;
    transform: translateX(-60%);
}

.iphone-screen-back {
    z-index: 1;
    top: 32px;
    right: 0;
    width: 132px;
    opacity: 0.72;
    transform: rotate(4deg);
}

.iphone-qr {
    width: 118px;
    padding: 12px;
    text-align: center;
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.3);
}

.iphone-qr img {
    display: block;
    width: 94px;
    height: 94px;
    margin: 0 auto 8px;
}

.iphone-qr span {
    display: block;
    color: #16252a;
    font: 700 10px/1.35 'Roboto', sans-serif;
}

.iphone-promo-footer-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.iphone-promo-footer-link::before {
    content: '';
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent-cyan, #00ffff);
    box-shadow: 0 0 10px rgba(0, 255, 255, 0.7);
}

/* Dedicated /iphone page */
.iphone-page {
    min-height: 100vh;
    margin: 0;
    color: #e8f4f6;
    background:
        radial-gradient(circle at 78% 18%, rgba(0, 255, 255, 0.14), transparent 28%),
        linear-gradient(180deg, #182a30 0%, #071014 62%, #020607 100%);
    font-family: 'Roboto', Arial, sans-serif;
}

.iphone-page * {
    box-sizing: border-box;
}

.iphone-page-shell {
    width: min(1160px, calc(100% - 40px));
    margin: 0 auto;
}

.iphone-page-header {
    padding: 22px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.iphone-page-header .iphone-page-shell {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
}

.iphone-page-brand {
    color: #ffffff;
    font-family: 'Russo One', sans-serif;
    font-size: clamp(20px, 4vw, 28px);
    text-decoration: none;
}

.iphone-page-brand span {
    color: var(--accent-cyan, #00ffff);
}

.iphone-page-web-link {
    color: #e8f4f6;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

.iphone-page-hero {
    padding: 78px 0 92px;
}

.iphone-page-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.02fr) minmax(360px, 0.98fr);
    gap: 72px;
    align-items: center;
}

.iphone-page-hero h1 {
    max-width: 720px;
    font-size: clamp(54px, 7vw, 96px);
}

.iphone-page-benefits {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin: 32px 0;
}

.iphone-page-benefit {
    padding: 17px;
    border: 1px solid rgba(0, 255, 255, 0.18);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.035);
}

.iphone-page-benefit strong {
    display: block;
    margin-bottom: 6px;
    color: #ffffff;
    font-size: 14px;
}

.iphone-page-benefit span {
    color: rgba(229, 241, 244, 0.68);
    font-size: 12px;
    line-height: 1.45;
}

.iphone-page-phones {
    position: relative;
    min-height: 590px;
}

.iphone-page-phone {
    position: absolute;
    width: 250px;
    border: 7px solid #010405;
    border-radius: 42px;
    overflow: hidden;
    background: #010405;
    box-shadow: 0 42px 90px rgba(0, 0, 0, 0.48);
}

.iphone-page-phone img {
    display: block;
    width: 100%;
}

.iphone-page-phone-main {
    z-index: 2;
    top: 0;
    left: 0;
}

.iphone-page-phone-back {
    z-index: 1;
    top: 64px;
    right: 0;
    transform: rotate(5deg);
    opacity: 0.78;
}

.iphone-page-status {
    max-width: 640px;
    margin-top: 24px;
    padding: 18px 20px;
    border-left: 3px solid var(--accent-cyan, #00ffff);
    background: rgba(0, 0, 0, 0.26);
    color: rgba(229, 241, 244, 0.76);
    font-size: 14px;
    line-height: 1.6;
}

.iphone-page-section {
    padding: 80px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.iphone-page-section h2 {
    margin: 0 0 28px;
    color: #ffffff;
    font: 400 clamp(38px, 5vw, 60px)/1 'Bebas Neue', 'Arial Narrow', sans-serif;
}

.iphone-page-feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.iphone-page-feature {
    padding: 26px;
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.iphone-page-feature h3 {
    margin: 0 0 10px;
    color: var(--accent-cyan, #00ffff);
    font-size: 18px;
}

.iphone-page-feature p {
    margin: 0;
    color: rgba(229, 241, 244, 0.7);
    line-height: 1.65;
}

.iphone-page-footer {
    padding: 34px 0;
    color: rgba(229, 241, 244, 0.55);
    border-top: 1px solid rgba(255, 255, 255, 0.07);
    font-size: 12px;
}

@media (max-width: 900px) {
    .iphone-promo-home,
    .iphone-page-grid {
        grid-template-columns: 1fr;
    }

    .iphone-promo-home {
        text-align: center;
    }

    .iphone-promo-actions {
        justify-content: center;
    }

    .iphone-promo-visual {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }

    .iphone-page-grid {
        gap: 46px;
    }

    .iphone-page-phones {
        max-width: 520px;
        width: 100%;
        margin: 0 auto;
    }
}

@media (max-width: 680px) {
    .iphone-promo-home {
        margin-top: 36px;
        padding: 26px 20px;
        border-radius: 22px;
    }

    .iphone-promo-visual {
        min-height: 300px;
        grid-template-columns: 1fr;
    }

    .iphone-screen-stack {
        height: 300px;
    }

    .iphone-screen {
        width: 138px;
    }

    .iphone-screen-back {
        width: 120px;
        right: 10%;
    }

    .iphone-qr,
    .bb-platform-iphone .iphone-qr,
    .bb-platform-android .iphone-promo-home {
        display: none !important;
    }

    .iphone-page-hero {
        padding: 56px 0 68px;
    }

    .iphone-page-benefits,
    .iphone-page-feature-grid {
        grid-template-columns: 1fr;
    }

    .iphone-page-phones {
        min-height: 460px;
    }

    .iphone-page-phone {
        width: 190px;
    }

    .iphone-page-phone-back {
        top: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .iphone-promo-home *,
    .iphone-page * {
        scroll-behavior: auto !important;
        animation: none !important;
        transition: none !important;
    }
}
