/* ============================================
   TestFlight Style - App Download Page
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Helvetica Neue', sans-serif;
    background: #f5f5f7;
    color: #1d1d1f;
    line-height: 1.5;
    font-size: 14px;
}

a {
    text-decoration: none;
    color: inherit;
}

ul, li {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* Skip Navigation */
.skip-wrap {
    position: absolute;
}

.skip {
    position: absolute;
    top: -100px;
    left: 0;
    background: #0070c9;
    color: #fff;
    padding: 10px 20px;
    z-index: 9999;
}

.skip:focus {
    top: 0;
}

/* Header */
.header {
    position: sticky;
    top: 0;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 100;
}

.header-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    max-width: 600px;
    margin: 0 auto;
}

.logo {
    display: flex;
    align-items: center;
}

.apple-link {
    display: flex;
    align-items: center;
}

/* Main Content */
.detail-wrap {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* Hero Section */
.hero-section {
    position: relative;
    padding: 48px 16px;
    text-align: center;
    background: linear-gradient(180deg, #0070c9 0%, #1e90ff 50%, #87ceeb 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 30%, rgba(255,255,255,0.1) 0%, transparent 40%),
        radial-gradient(circle at 80% 70%, rgba(255,255,255,0.1) 0%, transparent 40%);
}

.hero-content {
    position: relative;
    z-index: 1;
}

.app-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 16px;
    border-radius: 22px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    background: #fff;
}

.app-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-title {
    font-size: 28px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 8px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.app-subtitle {
    font-size: 15px;
    color: rgba(255, 255, 255, 0.9);
}

/* TestFlight Info */
.testflight-info {
    padding: 24px 16px;
    text-align: center;
    background: #fff;
    border-bottom: 1px solid #e5e5e7;
}

.info-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #e8f4fd;
    padding: 8px 16px;
    border-radius: 20px;
    margin-bottom: 12px;
}

.info-badge span {
    font-size: 14px;
    font-weight: 600;
    color: #0070c9;
}

.info-text {
    font-size: 15px;
    color: #666;
    line-height: 1.6;
}

/* Download Section */
.download-section {
    padding: 24px 16px;
    text-align: center;
    background: #fff;
}

.testflight-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    background: linear-gradient(180deg, #0077ed 0%, #0070c9 100%);
    color: #fff;
    padding: 16px 48px;
    border-radius: 14px;
    font-size: 17px;
    font-weight: 600;
    box-shadow: 0 4px 16px rgba(0, 112, 201, 0.4);
    transition: all 0.3s ease;
}

.testflight-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(0, 112, 201, 0.5);
}

.testflight-button:active {
    transform: translateY(0);
}

.download-note {
    margin-top: 12px;
    font-size: 13px;
    color: #86868b;
}

/* Requirements Section */
.requirements-section {
    padding: 24px 16px;
    background: #fff;
    margin-top: 8px;
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: #1d1d1f;
    margin-bottom: 16px;
}

.requirements-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.requirement-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px;
    background: #f5f5f7;
    border-radius: 12px;
}

.req-icon {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    border-radius: 10px;
}

.req-text {
    display: flex;
    flex-direction: column;
}

.req-label {
    font-size: 12px;
    color: #86868b;
}

.req-value {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

/* How to Install Section */
.howto-section {
    padding: 24px 16px;
    background: #fff;
    margin-top: 8px;
}

.steps-list {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.step-item {
    display: flex;
    gap: 16px;
}

.step-number {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(180deg, #0077ed 0%, #0070c9 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50%;
}

.step-content {
    flex: 1;
    padding-top: 4px;
}

.step-content h3 {
    font-size: 16px;
    font-weight: 600;
    color: #1d1d1f;
    margin-bottom: 4px;
}

.step-content p {
    font-size: 14px;
    color: #86868b;
    line-height: 1.5;
}

/* App Info Section */
.app-info-section {
    padding: 24px 16px;
    background: #fff;
    margin-top: 8px;
}

.info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.info-item {
    display: flex;
    flex-direction: column;
    padding: 12px;
    background: #f5f5f7;
    border-radius: 12px;
}

.info-label {
    font-size: 12px;
    color: #86868b;
    margin-bottom: 4px;
}

.info-value {
    font-size: 15px;
    font-weight: 600;
    color: #1d1d1f;
}

/* Screenshot Section */
.screenshot-section {
    padding: 24px 16px;
    background: #fff;
    margin-top: 8px;
}

.screenshot-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.screenshot-item {
    flex-shrink: 0;
}

.screenshot-item img {
    height: auto;
    width: 150px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

/* Description Section */
.description-section {
    padding: 24px 16px;
    background: #fff;
    margin-top: 8px;
}

.description-content {
    font-size: 15px;
    color: #424245;
    line-height: 1.7;
}

.description-content p {
    margin-bottom: 16px;
}

.description-content ul {
    padding-left: 20px;
}

.description-content li {
    position: relative;
    padding-left: 16px;
    margin-bottom: 8px;
    list-style: none;
}

.description-content li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #0070c9;
    font-weight: bold;
}

/* Privacy Section */
.privacy-section {
    padding: 24px 16px;
    background: #fff;
    margin-top: 8px;
}

.privacy-content {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 16px;
    background: #e8f4fd;
    border-radius: 16px;
}

.privacy-icon {
    flex-shrink: 0;
}

.privacy-content p {
    font-size: 14px;
    color: #424245;
    line-height: 1.6;
}

/* Notice Section */
.notice-section {
    padding: 24px 16px;
    background: #fff;
    margin-top: 8px;
}

.notice-box {
    padding: 20px;
    background: #fff3cd;
    border-radius: 16px;
    border: 1px solid #ffc107;
}

.notice-box h3 {
    font-size: 16px;
    font-weight: 600;
    color: #856404;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.notice-box h3::before {
    content: '⚠️';
}

.notice-box p {
    font-size: 14px;
    color: #856404;
    line-height: 1.6;
}

/* Footer */
.footer {
    background: #1d1d1f;
    padding: 32px 16px;
    margin-top: 24px;
}

.footer-inner {
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.footer-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-bottom: 16px;
}

.footer-logo span {
    font-size: 14px;
    color: #999;
}

.footer-links {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 16px;
}

.footer-links a {
    font-size: 13px;
    color: #86868b;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #fff;
}

.copyright {
    font-size: 12px;
    color: #6e6e73;
}

/* Top Button */
.top-button-wrap {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 100;
}

.top-button {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    background: #fff;
    border: 1px solid #e5e5e7;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    font-size: 12px;
    color: #666;
    transition: all 0.3s ease;
}

.top-button:hover {
    background: #f5f5f7;
    transform: translateY(-2px);
}

/* Responsive - Desktop Enhancement */
@media (min-width: 768px) {
    .hero-section {
        padding: 64px 16px;
    }
    
    .app-icon {
        width: 120px;
        height: 120px;
    }
    
    .app-title {
        font-size: 36px;
    }
    
    .testflight-button {
        padding: 18px 64px;
        font-size: 18px;
    }
}
