:root {
    --primary: #ff6666;
    --primary-dark: #ff4d4d;
    --secondary: #99ccff;
    --secondary-dark: #7ab8ff;
    --tertiary: #6666ff;
    --dark: #1a1a2e;
    --text: #2d3748;
    --text-light: #718096;
    --bg: #ffffff;
    --bg-soft: #f7fafc;
    --border: #e2e8f0;

    --shadow-sm: 0 1px 3px rgba(0,0,0,0.1);
    --shadow: 0 4px 6px rgba(0,0,0,0.07), 0 10px 20px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 30px rgba(0,0,0,0.1), 0 20px 50px rgba(0,0,0,0.08);

    --radius: 16px;
    --max-width: 1280px;
    --android-green: #34a853;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body.compatibility-body {
    margin: 0;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
}

body.compatibility-body a {
    color: inherit;
    text-decoration: none;
}

body.compatibility-body img {
    max-width: 100%;
    height: auto;
}

body.compatibility-body button,
body.compatibility-body input {
    font: inherit;
}

.compat-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.compat-site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
    background: var(--primary);
    border-bottom: 1px solid rgba(255,255,255,0.15);
    box-shadow: var(--shadow-sm);
}

.compat-header-inner {
    min-height: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.compat-logo {
    display: inline-flex;
    align-items: center;
}

.compat-logo img {
    max-height: 48px;
    width: auto;
    display: block;
}

.compatibility-page {
    background: var(--bg-soft);
}

.compat-hero {
    position: relative;
    overflow: hidden;
    padding: 84px 0 44px;
    background:
        radial-gradient(circle at 18% 22%, rgba(255,255,255,0.35), transparent 26%),
        radial-gradient(circle at 82% 20%, rgba(255,255,255,0.22), transparent 28%),
        linear-gradient(180deg, #61afff 0%, #8fd2ff 46%, #e4f5ff 100%);
    text-align: center;
}

.compat-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(to bottom, rgba(255,255,255,0.04), rgba(255,255,255,0) 35%, rgba(15,23,42,0.03) 100%);
}

.compat-hero > .compat-container {
    position: relative;
    z-index: 1;
}

.compat-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: rgba(255,255,255,0.18);
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    font-size: 14px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(6px);
}

.compat-hero-title {
    margin: 0;
    font-size: clamp(2.4rem, 5vw, 4.1rem);
    font-weight: 900;
    line-height: 1.04;
    letter-spacing: -0.04em;
    color: #fff;
    text-shadow: 0 10px 30px rgba(15, 23, 42, 0.10);
}

.compat-main-section {
    padding: 22px 0 88px;
}

.device-checker {
    max-width: 860px;
    margin: 0 auto 44px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow);
    padding: 30px;
}

.device-checker__inner h2 {
    margin: 0 0 10px;
    font-size: 30px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
    line-height: 1.15;
}

.device-checker__inner > p {
    margin: 0 0 18px;
    color: var(--text-light);
    font-size: 16px;
}

.device-checker__autodetect,
.device-checker__status {
    display: none !important;
}

.device-checker__manual {
    background: var(--bg-soft);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 18px 18px 8px;
    margin-bottom: 18px;
    color: var(--text);
    font-size: 15px;
    line-height: 1.65;
}

.device-checker__manual p {
    margin: 0 0 10px;
}

.device-checker__manual ol,
.device-checker__manual ul {
    margin: 10px 0 0 20px;
    padding: 0;
}

.device-checker__manual li {
    margin-bottom: 8px;
}

.device-checker__search label {
    display: block;
    margin-bottom: 10px;
    color: var(--dark);
    font-size: 14px;
    font-weight: 700;
}

.device-checker__search-row {
    display: flex;
    gap: 12px;
}

.device-checker__search-row input {
    flex: 1;
    min-height: 56px;
    border-radius: 16px;
    border: 1.5px solid var(--border);
    padding: 0 18px;
    outline: none;
    background: #fff;
    color: var(--dark);
    font-size: 16px;
    font-weight: 600;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.device-checker__search-row input::placeholder {
    color: var(--text-light);
    font-weight: 500;
}

.device-checker__search-row input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(255,102,102,0.10);
}

.device-checker__search-row button {
    min-height: 56px;
    padding: 0 24px;
    border: none;
    border-radius: 16px;
    background: var(--primary);
    color: #fff;
    font-size: 15px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 8px 20px rgba(255,102,102,0.22);
}

.device-checker__search-row button:hover {
    background: var(--primary-dark);
    transform: translateY(-1px);
}

.device-checker__result {
    margin-top: 18px;
    padding: 16px 18px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.6;
    border: 1px solid var(--border);
    background: #fff;
    color: var(--text);
}

.device-checker__result p {
    margin: 0 0 8px;
}

.device-checker__result p:last-child {
    margin-bottom: 0;
}

.device-checker__result ul {
    margin: 10px 0 0 18px;
    padding: 0;
}

.device-checker__result li {
    margin-bottom: 8px;
}

.device-checker__result--supported {
    background: #ecfdf5;
    border-color: #a7f3d0;
    color: #065f46;
}

.device-checker__result--likely_supported {
    background: #fffbeb;
    border-color: #fcd34d;
    color: #92400e;
}

.device-checker__result--not_supported {
    background: #fef2f2;
    border-color: #fca5a5;
    color: #991b1b;
}

.device-checker__result--not_found {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.device-checker__matched-device {
    margin-top: 8px;
    font-size: 16px;
    font-weight: 800;
}

.device-checker__footnote {
    margin-top: 16px;
    font-size: 14px;
    color: var(--text-light);
}

.compat-section-header {
    text-align: center;
    margin-bottom: 34px;
}

.compat-section-label {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(255,102,102,0.1);
    color: var(--primary);
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 16px;
}

.compat-section-title {
    margin: 0 0 12px;
    font-size: 40px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.compat-section-subtitle {
    max-width: 700px;
    margin: 0 auto;
    font-size: 18px;
    color: var(--text-light);
}

.compatibility-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 34px;
    align-items: start;
}

.compatibility-card {
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    padding: 28px 24px;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.compatibility-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow);
    border-color: rgba(255,102,102,0.35);
}

.compatibility-card__icon {
    width: 76px;
    height: 76px;
    border-radius: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
}

.compatibility-card__icon img {
    width: 42px;
    height: 42px;
    object-fit: contain;
    display: block;
}

.compatibility-card__icon.compatibility-card__icon--apple {
    background: #111111 !important;
}

.compatibility-card__icon.compatibility-card__icon--android {
    background: var(--android-green) !important;
}

.compatibility-card__icon.compatibility-card__icon--other {
    background: linear-gradient(135deg, var(--primary), var(--tertiary)) !important;
}

.compatibility-card__icon--other span {
    font-size: 34px;
    font-weight: 900;
    color: #fff;
    line-height: 1;
}

.compatibility-card h3 {
    margin: 0 0 10px;
    font-size: 22px;
    font-weight: 800;
    color: var(--dark);
    letter-spacing: -0.02em;
}

.compatibility-card p {
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--text-light);
}

.compatibility-card ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
    font-size: 15px;
}

.compatibility-card li {
    margin-bottom: 8px;
}

.compatibility-card__examples {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 14px;
    color: var(--text-light);
}

.compatibility-card__examples strong {
    display: block;
    margin-bottom: 6px;
    color: var(--dark);
}

.compatibility-series {
    margin-top: 6px;
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.7;
}

.compatibility-series strong {
    color: var(--dark);
}

.compatibility-notes {
    max-width: 860px;
    margin: 0 auto;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--shadow-sm);
    padding: 26px 24px;
}

.compatibility-notes h2 {
    margin: 0 0 14px;
    font-size: 24px;
    font-weight: 800;
    color: var(--dark);
}

.compatibility-notes ul {
    margin: 0;
    padding-left: 18px;
    color: var(--text);
}

.compatibility-notes li {
    margin-bottom: 8px;
}

.compat-footer {
    background: var(--dark);
    color: #fff;
    padding: 42px 0 28px;
    margin-top: 0;
}

.compat-footer__top {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    padding-bottom: 22px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

.compat-footer__brand img {
    height: 42px;
    width: auto;
    display: block;
    filter: brightness(0) invert(1);
}

.compat-footer__bottom {
    padding-top: 20px;
    text-align: center;
    color: rgba(255,255,255,0.6);
    font-size: 14px;
}

@media (max-width: 980px) {
    .compatibility-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 640px) {
    .compat-container {
        padding: 0 18px;
    }

    .compat-header-inner {
        min-height: 72px;
    }

    .compat-logo img {
        max-height: 42px;
    }

    .compat-hero {
        padding: 58px 0 30px;
    }

    .compat-hero-title {
        font-size: 34px;
    }

    .compat-main-section {
        padding: 18px 0 72px;
    }

    .device-checker {
        padding: 22px 18px;
        border-radius: 20px;
        margin-bottom: 34px;
    }

    .device-checker__inner h2 {
        font-size: 24px;
    }

    .device-checker__search-row {
        flex-direction: column;
    }

    .device-checker__search-row button {
        width: 100%;
    }

    .compat-section-title {
        font-size: 30px;
    }

    .compat-section-subtitle {
        font-size: 16px;
    }

    .compatibility-card,
    .compatibility-notes {
        border-radius: 20px;
    }

    .compatibility-card {
        padding: 24px 20px;
    }

    .compatibility-notes {
        padding: 22px 18px;
    }
}