/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #f5f5f7;
    --card: #ffffff;
    --text: #1d1d1f;
    --text-secondary: #6e6e73;
    --accent: #0071e3;
    --accent-hover: #0077ed;
    --green: #34c759;
    --orange: #ff9500;
    --red: #ff3b30;
    --border: #d2d2d7;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.12);
    --radius: 18px;
    --radius-sm: 12px;
    --gradient: linear-gradient(135deg, #0071e3, #5e5ce6, #bf5af2);
    --gradient-gemini: linear-gradient(135deg, #4285f4, #34a853, #fbbc04, #ea4335);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Screen reader only */
.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0,0,0,0); border: 0;
}

/* === COOKIE BANNER === */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 10000;
    background: #1d1d1f; color: #f5f5f7;
    display: flex; align-items: center; justify-content: center;
    gap: 24px; padding: 16px 24px; flex-wrap: wrap;
    font-size: 14px; box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
}
.cookie-banner a { color: #5e5ce6; text-decoration: underline; }
.cookie-actions { display: flex; gap: 10px; flex-shrink: 0; }
.cookie-btn {
    padding: 10px 20px; border: none; border-radius: 8px;
    font-size: 14px; font-weight: 600; cursor: pointer; font-family: inherit;
    transition: opacity 0.2s;
}
.cookie-btn:hover { opacity: 0.85; }
.cookie-btn.accept { background: #0071e3; color: #fff; }
.cookie-btn.reject { background: #48484a; color: #fff; }
@media (max-width: 600px) {
    .cookie-banner { flex-direction: column; gap: 12px; text-align: center; }
}

/* === AD BANNERS === */
.ad-banner {
    text-align: center; padding: 10px; margin: 0 auto;
    background: #fafafa; border: 1px dashed #ccc; border-radius: 4px;
    max-width: 728px;
}
.ad-label {
    display: block; font-size: 10px; text-transform: uppercase;
    letter-spacing: 1.5px; color: #aaa; margin-bottom: 6px;
}
.in-content-ad { margin: 40px auto; }

/* === SIDEBAR AD === */
.sidebar-ad {
    position: fixed; left: calc(50% + 470px); top: 200px; z-index: 10;
    text-align: center;
}
.sidebar-ad .ad-label { font-size: 9px; }
@media (max-width: 1280px) {
    .sidebar-ad { display: none; }
}

/* === HEADER === */
.header {
    padding: 16px 0;
    background: rgba(255,255,255,0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 100;
}
.nav-container {
    display: flex; align-items: center; justify-content: space-between;
}
.logo {
    display: flex; align-items: center; gap: 8px;
    font-weight: 700; font-size: 18px; text-decoration: none; color: var(--text);
}
.logo-icon { font-size: 24px; }
.main-nav { display: flex; gap: 20px; }
.main-nav a {
    text-decoration: none; color: var(--text-secondary);
    font-size: 14px; font-weight: 500; transition: color 0.2s;
}
.main-nav a:hover,
.main-nav a[aria-current="page"] { color: var(--accent); }

@media (max-width: 480px) {
    .main-nav { gap: 12px; }
    .main-nav a { font-size: 13px; }
    .logo-text { font-size: 15px; }
}

/* === HERO === */
.hero {
    padding: 60px 0 30px; text-align: center;
}
.badge {
    display: inline-block;
    background: linear-gradient(135deg, #e8f0fe, #f0e6ff);
    color: #5e5ce6; font-size: 13px; font-weight: 600;
    padding: 6px 16px; border-radius: 20px; margin-bottom: 20px;
}
.hero h1 {
    font-size: 48px; font-weight: 800; line-height: 1.15;
    letter-spacing: -0.5px; margin-bottom: 16px;
}
.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    background-clip: text;
}
.hero-sub {
    font-size: 18px; color: var(--text-secondary);
    max-width: 600px; margin: 0 auto; line-height: 1.6;
}

/* === CHECKER === */
.checker-section { padding: 20px 0 40px; }
.checker-card {
    background: var(--card); border-radius: var(--radius);
    box-shadow: var(--shadow-lg); padding: 40px;
}
.step { margin-bottom: 30px; }
.step:last-child { margin-bottom: 0; }
.step-title {
    font-size: 20px; font-weight: 700; margin-bottom: 8px;
}
.step-hint {
    font-size: 14px; color: var(--text-secondary);
    margin-bottom: 16px; line-height: 1.5;
}

/* === DEVICE BUTTONS === */
.device-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.device-btn {
    flex: 1; min-width: 140px; padding: 20px 24px;
    border: 2px solid var(--border); border-radius: var(--radius-sm);
    background: var(--card); cursor: pointer; transition: all 0.2s ease;
    display: flex; flex-direction: column; align-items: center; gap: 8px;
    font-family: inherit;
}
.device-btn:hover { border-color: var(--accent); background: #f0f5ff; }
.device-btn.active {
    border-color: var(--accent);
    background: linear-gradient(135deg, #e8f0fe, #f0e6ff);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}
.device-icon { font-size: 36px; }
.device-name { font-size: 16px; font-weight: 600; color: var(--text); }

/* === MODEL SELECT === */
.model-select-wrapper { position: relative; }
.model-select {
    width: 100%; padding: 16px 20px; font-size: 17px;
    font-family: inherit; border: 2px solid var(--border);
    border-radius: var(--radius-sm); background: var(--card);
    color: var(--text); cursor: pointer;
    appearance: none; -webkit-appearance: none; transition: border-color 0.2s;
}
.model-select:focus {
    outline: none; border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(0,113,227,0.15);
}
.model-select-wrapper::after {
    content: '▾'; position: absolute; right: 20px; top: 50%;
    transform: translateY(-50%); pointer-events: none;
    font-size: 14px; color: var(--text-secondary);
}

/* === RESULT CARD === */
.result-card {
    border-radius: var(--radius-sm); padding: 32px;
    text-align: center; animation: fadeIn 0.4s ease;
}
.result-card.compatible {
    background: linear-gradient(135deg, #e8f8ed, #d4f5e0);
    border: 2px solid var(--green);
}
.result-card.partial {
    background: linear-gradient(135deg, #fff8e8, #fff0d4);
    border: 2px solid var(--orange);
}
.result-card.incompatible {
    background: linear-gradient(135deg, #ffe8e8, #ffd4d4);
    border: 2px solid var(--red);
}
.result-icon { font-size: 56px; margin-bottom: 12px; }
.result-title { font-size: 28px; font-weight: 800; margin-bottom: 8px; }
.result-card.compatible .result-title { color: #1b7a30; }
.result-card.partial .result-title { color: #b06d00; }
.result-card.incompatible .result-title { color: #c41e1e; }
.result-desc {
    font-size: 16px; color: var(--text-secondary);
    line-height: 1.6; margin-bottom: 16px;
}
.result-details {
    display: inline-block; text-align: left;
    background: rgba(255,255,255,0.7); border-radius: 10px;
    padding: 16px 24px; font-size: 14px; line-height: 1.8;
}
.result-details strong { color: var(--text); }

/* === FEATURES SECTION === */
.features-section { padding: 40px 0 60px; }
.section-title {
    font-size: 32px; font-weight: 800; text-align: center;
    margin-bottom: 8px;
}
.section-sub {
    text-align: center; color: var(--text-secondary);
    font-size: 16px; margin-bottom: 32px; max-width: 600px;
    margin-left: auto; margin-right: auto; line-height: 1.6;
}
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 16px;
}
.feature-card {
    background: var(--card); border-radius: var(--radius-sm);
    padding: 24px; box-shadow: var(--shadow);
    display: flex; gap: 14px; align-items: flex-start;
    transition: transform 0.2s;
}
.feature-card:hover { transform: translateY(-2px); }
.feature-placeholder {
    grid-column: 1 / -1; justify-content: center;
    text-align: center; padding: 40px 24px; max-width: 500px;
    margin: 0 auto; flex-direction: column; align-items: center;
}
.feature-placeholder .feature-icon { font-size: 48px; }
.feature-icon {
    font-size: 32px; flex-shrink: 0;
    width: 48px; height: 48px; display: flex;
    align-items: center; justify-content: center;
    background: var(--bg); border-radius: 12px;
}
.feature-info h4 { font-size: 16px; font-weight: 700; margin-bottom: 4px; }
.feature-info p { font-size: 14px; color: var(--text-secondary); line-height: 1.5; }

/* === DEVICE TABLES === */
.device-list-section { padding: 40px 0 60px; }
.device-tables {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px; margin-top: 32px;
}
.table-card {
    background: var(--card); border-radius: var(--radius-sm);
    padding: 24px; box-shadow: var(--shadow);
}
.table-card h3 { font-size: 20px; margin-bottom: 16px; }
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-card table { width: 100%; border-collapse: collapse; }
.table-card th {
    text-align: left; font-size: 12px; text-transform: uppercase;
    letter-spacing: 0.5px; color: var(--text-secondary);
    padding: 8px 0; border-bottom: 2px solid var(--border);
}
.table-card td {
    padding: 10px 0; font-size: 14px;
    border-bottom: 1px solid #f0f0f0;
}
.table-card td:nth-child(3) { font-weight: 600; white-space: nowrap; }
.compat-yes { color: var(--green); }
.compat-partial { color: var(--orange); }
.compat-no { color: var(--red); }

/* === FAQ SECTION === */
.faq-section { padding: 40px 0 60px; }
.faq-list { max-width: 800px; margin: 32px auto 0; }
.faq-item {
    background: var(--card); border-radius: var(--radius-sm);
    box-shadow: var(--shadow); margin-bottom: 12px;
    overflow: hidden;
}
.faq-item summary {
    padding: 20px 24px; font-weight: 600; font-size: 16px;
    cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: '+'; font-size: 20px; color: var(--accent);
    font-weight: 400; margin-left: 12px; flex-shrink: 0;
    transition: transform 0.2s;
}
.faq-item[open] summary::after {
    content: '−'; transform: rotate(0);
}
.faq-item p {
    padding: 0 24px 20px; font-size: 15px;
    color: var(--text-secondary); line-height: 1.7;
}

/* === PRIVACY / ABOUT PAGES === */
.privacy-content {
    padding: 40px 20px 60px; max-width: 800px;
}
.privacy-content h1 {
    font-size: 36px; font-weight: 800; margin-bottom: 8px;
}
.privacy-content h2 {
    font-size: 22px; font-weight: 700; margin: 32px 0 12px;
    color: var(--text);
}
.privacy-content h3 {
    font-size: 18px; font-weight: 600; margin: 20px 0 8px;
    color: var(--text);
}
.privacy-content p {
    font-size: 16px; color: var(--text-secondary);
    line-height: 1.7; margin-bottom: 12px;
}
.privacy-content ul {
    margin: 8px 0 16px 24px; color: var(--text-secondary);
    font-size: 16px; line-height: 1.8;
}
.privacy-content a { color: var(--accent); text-decoration: underline; }

/* === FOOTER === */
.footer {
    background: #1d1d1f; color: #86868b;
    padding: 40px 0; text-align: center;
    font-size: 14px; line-height: 1.8;
}
.footer-nav {
    display: flex; justify-content: center; gap: 24px;
    flex-wrap: wrap; margin-bottom: 16px;
}
.footer-nav a {
    color: #a1a1a6; text-decoration: none; font-weight: 500;
    font-size: 14px; transition: color 0.2s;
}
.footer-nav a:hover { color: #fff; }
.footer-nav a[aria-current="page"] { color: #5e5ce6; }
.footer-update { color: #636366; margin-top: 8px; font-size: 13px; }

/* === ANIMATIONS === */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}

/* === RESPONSIVE === */
@media (max-width: 768px) {
    .hero { padding: 40px 0 20px; }
    .hero h1 { font-size: 32px; }
    .hero-sub { font-size: 16px; }
    .checker-card { padding: 24px 20px; }
    .device-buttons { flex-direction: column; }
    .device-btn { flex-direction: row; padding: 14px 20px; gap: 12px; }
    .device-icon { font-size: 28px; }
    .section-title { font-size: 26px; }
    .result-title { font-size: 22px; }
    .privacy-content h1 { font-size: 28px; }
    .privacy-content h2 { font-size: 20px; }
    .footer { font-size: 13px; }
    .footer-nav { gap: 16px; }
}

@media (max-width: 480px) {
    .hero h1 { font-size: 28px; }
    .checker-card { padding: 20px 16px; }
    .section-title { font-size: 22px; }
    .section-sub { font-size: 14px; }
    .table-card { padding: 16px; }
    .table-card td { font-size: 13px; }
    .faq-item summary { font-size: 15px; padding: 16px; }
    .faq-item p { font-size: 14px; padding: 0 16px 16px; }
    .footer { padding: 32px 0; }
}
