/* =========================================================
   Home / eSIM device checker
   Palette: #03346B / pseudo gold / white
   ========================================================= */
.home-device-checker {
    position: relative;
    overflow: hidden;
    padding: clamp(78px, 9vw, 132px) 0;
    background:
        radial-gradient(circle at 14% 18%, rgba(201, 164, 93, .16), transparent 24%),
        linear-gradient(140deg, #022a58 0%, #03346B 54%, #064783 100%);
    color: #fff;
}

.home-device-checker::before {
    content: "";
    position: absolute;
    inset: 0;
    opacity: .15;
    background-image:
        linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
    background-size: 62px 62px;
    mask-image: linear-gradient(to right, #000, transparent 72%);
    pointer-events: none;
}

.home-device-checker__inner {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: minmax(300px, .82fr) minmax(0, 1.18fr);
    gap: clamp(50px, 8vw, 118px);
    align-items: center;
}

.home-device-checker__visual {
    position: relative;
    display: grid;
    place-items: center;
    min-height: 520px;
}

.home-device-checker__phone {
    position: relative;
    z-index: 3;
    width: min(250px, 72%);
    aspect-ratio: .52;
    padding: 12px;
    border: 1px solid rgba(255,255,255,.52);
    border-radius: 42px;
    background: linear-gradient(145deg, rgba(255,255,255,.22), rgba(255,255,255,.06));
    box-shadow: 0 38px 90px rgba(0, 15, 37, .38), inset 0 1px 0 rgba(255,255,255,.36);
    backdrop-filter: blur(10px);
    transform: rotate(-5deg);
    animation: deviceFloat 5s ease-in-out infinite;
}

.home-device-checker__speaker {
    position: absolute;
    z-index: 4;
    top: 20px;
    left: 50%;
    width: 58px;
    height: 6px;
    border-radius: 99px;
    background: rgba(255,255,255,.45);
    transform: translateX(-50%);
}

.home-device-checker__phone-screen {
    position: relative;
    display: grid;
    place-items: center;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 31px;
    background:
        radial-gradient(circle at 70% 18%, rgba(201,164,93,.34), transparent 25%),
        linear-gradient(160deg, #074b89, #021e43 78%);
}

.home-device-checker__phone-screen::after {
    content: "";
    position: absolute;
    width: 210px;
    height: 210px;
    border: 1px solid rgba(255,255,255,.11);
    border-radius: 50%;
    box-shadow: 0 0 0 34px rgba(255,255,255,.035), 0 0 0 68px rgba(255,255,255,.02);
}

.home-device-checker__esim-chip {
    position: relative;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 120px;
    height: 150px;
    border: 2px solid #d6b874;
    border-radius: 20px;
    background: rgba(201,164,93,.08);
    box-shadow: 0 0 42px rgba(201,164,93,.12);
}

.home-device-checker__esim-chip::before,
.home-device-checker__esim-chip::after {
    content: "";
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(216,189,131,.45);
    border-radius: 13px;
}

.home-device-checker__esim-chip::after {
    inset: 38px 26px;
    border-radius: 8px;
}

.home-device-checker__esim-chip strong {
    position: relative;
    z-index: 3;
    color: #fff;
    font-size: 18px;
    letter-spacing: .04em;
}

.home-device-checker__esim-chip span {
    position: absolute;
    width: 16px;
    height: 2px;
    background: #d6b874;
}
.home-device-checker__esim-chip span:nth-child(1) { left: -17px; top: 34px; }
.home-device-checker__esim-chip span:nth-child(2) { right: -17px; top: 62px; }
.home-device-checker__esim-chip span:nth-child(3) { left: -17px; bottom: 45px; }
.home-device-checker__esim-chip span:nth-child(4) { right: -17px; bottom: 28px; }

.home-device-checker__signal {
    position: absolute;
    right: 27px;
    top: 48px;
    display: flex;
    gap: 4px;
    align-items: end;
    height: 24px;
}
.home-device-checker__signal i {
    display: block;
    width: 4px;
    border-radius: 4px;
    background: #d6b874;
}
.home-device-checker__signal i:nth-child(1) { height: 8px; }
.home-device-checker__signal i:nth-child(2) { height: 15px; }
.home-device-checker__signal i:nth-child(3) { height: 22px; }

.home-device-checker__orbit {
    position: absolute;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 50%;
}
.home-device-checker__orbit--one {
    width: 390px;
    height: 390px;
    animation: orbitPulse 4.5s ease-in-out infinite;
}
.home-device-checker__orbit--two {
    width: 500px;
    height: 500px;
    border-style: dashed;
    border-color: rgba(201,164,93,.21);
    animation: orbitRotate 32s linear infinite;
}

.home-device-checker__visual-label {
    position: absolute;
    left: 8%;
    bottom: 9%;
    color: rgba(255,255,255,.48);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .25em;
    writing-mode: vertical-rl;
}

.home-device-checker__header {
    margin-bottom: 34px;
}
.home-device-checker__eyebrow {
    margin: 0 0 14px;
    color: #d6b874;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .19em;
}
.home-device-checker__header h2 {
    margin: 0 0 20px;
    color: #fff;
    font-size: clamp(36px, 4.5vw, 60px);
    line-height: 1.13;
    letter-spacing: -.04em;
}
.home-device-checker__header > p:last-child {
    max-width: 650px;
    margin: 0;
    color: rgba(255,255,255,.74);
    font-size: 15px;
    line-height: 1.9;
}

.home-device-checker__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
    margin-bottom: 16px;
}
.home-device-checker__field {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 3px 11px;
    padding: 15px 16px 14px;
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 18px;
    background: rgba(255,255,255,.08);
    backdrop-filter: blur(9px);
}
.home-device-checker__field > span {
    grid-row: 1 / span 2;
    align-self: start;
    margin-top: 2px;
    color: #d6b874;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .08em;
}
.home-device-checker__field > strong {
    color: rgba(255,255,255,.73);
    font-size: 11px;
}
.home-device-checker__field select {
    grid-column: 2;
    width: 100%;
    min-width: 0;
    padding: 0 30px 0 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #fff;
    font-size: 15px;
    font-weight: 750;
    cursor: pointer;
}
.home-device-checker__field select option {
    color: #18334f;
    background: #fff;
}
.home-device-checker__field select:disabled {
    color: rgba(255,255,255,.46);
    cursor: not-allowed;
}
.home-device-checker__field:focus-within {
    border-color: rgba(214,184,116,.76);
    box-shadow: 0 0 0 4px rgba(201,164,93,.09);
}

.home-device-checker__result {
    display: grid;
    grid-template-columns: 56px minmax(0, 1fr);
    gap: 17px;
    align-items: center;
    min-height: 132px;
    padding: 23px 24px;
    border: 1px solid rgba(255,255,255,.15);
    border-radius: 20px;
    background: rgba(255,255,255,.96);
    color: #17344f;
    box-shadow: 0 18px 42px rgba(0,18,42,.16);
}
.home-device-checker__status-icon {
    display: grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #edf2f7;
    color: #718096;
    font-size: 22px;
    font-weight: 900;
}
.home-device-checker__result-copy > span {
    display: block;
    margin-bottom: 4px;
    color: #7b8897;
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .14em;
}
.home-device-checker__result-copy strong {
    display: block;
    margin-bottom: 6px;
    color: #03346B;
    font-size: 18px;
}
.home-device-checker__result-copy p {
    margin: 0;
    color: #66788a;
    font-size: 12px;
    line-height: 1.65;
}
.home-device-checker__result.is-supported .home-device-checker__status-icon {
    background: #e8f7ef;
    color: #18784b;
}
.home-device-checker__result.is-check .home-device-checker__status-icon {
    background: #fff5da;
    color: #a16c05;
}
.home-device-checker__result.is-unsupported .home-device-checker__status-icon {
    background: #fcebec;
    color: #b6424b;
}

.home-device-checker__actions {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: 20px;
    align-items: center;
    margin-top: 17px;
}
.home-device-checker__cta {
    display: inline-flex;
    gap: 24px;
    align-items: center;
    justify-content: space-between;
    min-width: 190px;
    min-height: 52px;
    padding: 0 18px 0 21px;
    border: 1px solid #d6b874;
    border-radius: 13px;
    background: #d6b874;
    color: #042d5a;
    font-size: 13px;
    font-weight: 850;
    text-decoration: none;
    transition: transform .22s ease, background-color .22s ease, box-shadow .22s ease;
}
.home-device-checker__cta:hover {
    transform: translateY(-2px);
    background: #e0c487;
    box-shadow: 0 12px 28px rgba(0, 15, 37, .22);
}
.home-device-checker__cta.is-disabled {
    opacity: .42;
    pointer-events: none;
}
.home-device-checker__actions p {
    margin: 0;
    color: rgba(255,255,255,.53);
    font-size: 10px;
    line-height: 1.7;
}

@keyframes deviceFloat {
    0%, 100% { transform: translateY(0) rotate(-5deg); }
    50% { transform: translateY(-12px) rotate(-3.5deg); }
}
@keyframes orbitPulse {
    0%, 100% { opacity: .55; transform: scale(.96); }
    50% { opacity: 1; transform: scale(1.03); }
}
@keyframes orbitRotate { to { transform: rotate(360deg); } }

@media (max-width: 900px) {
    .home-device-checker__inner { grid-template-columns: 1fr; gap: 36px; }
    .home-device-checker__visual { min-height: 360px; order: 2; }
    .home-device-checker__phone { width: 190px; }
    .home-device-checker__orbit--one { width: 290px; height: 290px; }
    .home-device-checker__orbit--two { width: 360px; height: 360px; }
    .home-device-checker__content { order: 1; }
}

@media (max-width: 620px) {
    .home-device-checker { padding: 64px 0; }
    .home-device-checker__inner { gap: 0; }

    /* Decorative only (aria-hidden): remove it on phones so the checker stays above the fold. */
    .home-device-checker__visual { display: none; }

    .home-device-checker__header h2 { font-size: clamp(32px, 10vw, 43px); }
    .home-device-checker__form { grid-template-columns: 1fr; }
    .home-device-checker__result { grid-template-columns: 46px minmax(0, 1fr); padding: 19px 17px; }
    .home-device-checker__status-icon { width: 46px; height: 46px; }
    .home-device-checker__actions { grid-template-columns: 1fr; }
    .home-device-checker__cta { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
    .home-device-checker__phone,
    .home-device-checker__orbit { animation: none !important; }
    .home-device-checker__cta { transition: none; }
}
