/* ============================================================
   FaraMizban main site — FINAL mobile/web-app layer (v4)
   Single-column plans + specs strip at bottom + contrast fix
   ============================================================ */
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 76px; }
:root { --safe-b: env(safe-area-inset-bottom, 0px); --text-muted: #a8b6cc; }
img, svg { max-width: 100%; height: auto; }
button, input, textarea, select { font-family: inherit; font-size: 16px; }
input, textarea, select { -webkit-appearance: none; appearance: none; }
textarea { min-height: 110px; resize: vertical; }
::selection { background: var(--primary); color: #fff; }

/* ---------- ≤992px: phone/tablet ---------- */
@media (max-width: 992px) {
    .container { padding: 0 15px; }
    section { padding: 48px 0; }
    .section-header { margin-bottom: 26px; }
    .section-header h2 { font-size: 21px; }
    .section-header p { font-size: 12.5px; }

    /* header */
    .nav-container { padding: 10px 14px; }
    .logo { font-size: 18px; }
    nav ul li a { display: block; padding: 12px 8px; font-size: 13.5px; color: var(--text-main); border-bottom: 1px solid var(--border-color); }
    nav ul li:last-child a { border-bottom: none; }
    .nav-actions .btn { padding: 10px 13px; font-size: 12.5px; }

    /* hero */
    .hero { min-height: 58vh; padding: 122px 0 48px; }
    .globe-container { width: 260px; height: 260px; opacity: .3; animation: none; }
    .iran-pin-wrapper, .gold-ring { transform: scale(.66); }
    .hero-badge { font-size: 10.5px; padding: 5px 12px; }
    .hero h1 { font-size: 25px; }
    .hero h1 br { display: none; }
    .hero p { font-size: 13px; margin-bottom: 20px; }
    .hero-btns { flex-direction: column; gap: 9px; }
    .hero-btns .btn { width: 100%; max-width: 310px; margin: 0 auto; }

    /* promo */
    .promo-box { padding: 18px 15px; border-radius: 16px; }
    .promo-box h3 { font-size: 15.5px; }
    .promo-box p { font-size: 12px; }
    .promo-box .btn { width: 100%; }

    /* AI */
    .ai-showcase-box { padding: 24px 14px; border-radius: 20px; box-shadow: none; }
    .ai-showcase-box h2 { font-size: 17px !important; }
    .grid-4 { grid-template-columns: repeat(2, 1fr) !important; gap: 10px; margin-top: 20px !important; }
    .ai-feature-card { padding: 15px 11px; border-radius: 14px; }
    .ai-feature-card i { font-size: 20px; }
    .ai-feature-card h4 { font-size: 13px; }
    .ai-feature-card p { font-size: 11px; }

    /* ---------- PLANS: single column, specs at bottom ---------- */
    .grid-4-plans { grid-template-columns: 1fr !important; gap: 12px; max-width: 560px; margin-left: auto; margin-right: auto; }
    .plan-card { padding: 18px 16px 16px; border-radius: 16px; }
    .plan-badge { font-size: 10px; padding: 3px 10px; top: -9px; right: 14px; }
    .plan-card h3 { font-size: 15.5px; margin-bottom: 10px; }
    .plan-price { order: 1; margin-bottom: 12px; }
    .plan-card .btn { order: 2; margin-top: 0; padding: 12px; }
    .check-list {
        order: 3;
        margin: 13px 0 0 !important;
        padding: 10px 13px;
        background: var(--bg-body);
        border: 1px dashed var(--border-color);
        border-radius: 12px;
    }
    .check-list li { font-size: 12px; gap: 7px; }
    .check-list li i { font-size: 10px; }

    /* cards */
    .feature-banner { padding: 24px 14px; border-radius: 20px; }
    .grid-3 { grid-template-columns: 1fr !important; gap: 12px; }
    .card { padding: 18px 15px; border-radius: 16px; }
    .card-icon { width: 50px; height: 50px; font-size: 19px; border-radius: 13px; margin-bottom: 12px; }
    .card h3 { font-size: 15px; }
    .card p { font-size: 12px; }

    /* FAQ / contact */
    .faq-item { padding: 13px 15px; border-radius: 12px; }
    .faq-q { font-size: 13px; }
    .faq-a { font-size: 12px; }
    .contact-box { padding: 22px 15px; border-radius: 18px; }
    .form-group { margin-bottom: 14px; }
    .form-control { padding: 12px 13px; font-size: 15px; }

    /* footer */
    footer { padding: 36px 0 16px; margin-top: 40px; }
    .footer-grid { gap: 20px; }
    .footer-col h4 { font-size: 14.5px; }
    .footer-col p, .footer-col ul li a { font-size: 12px; }
    .copyright { font-size: 11px; }

    /* theme panel up, sticky bar bottom */
    .theme-panel { top: 72px; bottom: auto; left: 12px; }
    body { padding-bottom: calc(60px + var(--safe-b)); }
    .mobile-cta a { font-size: 12px; padding: 11px 7px; }

    /* domain search */
    .ds-title { font-size: 17px; }
    .ds-sub { font-size: 11.5px; }
    .domain-search-form { flex-direction: column; padding: 6px; gap: 8px; }
    .domain-search-form button { width: 100%; }
    .tld-prices { gap: 6px; }
    .tld-price { min-width: 84px; padding: 6px 8px; }
    .tld-price b { font-size: 11.5px; }
    .tld-price span { font-size: 9px; }
}

/* ---------- small phones ---------- */
@media (max-width: 380px) {
    .hero h1 { font-size: 21px; }
    .ds-title { font-size: 16px; }
}

/* ---------- desktop: 2-col stacked scan (still has specs at bottom) ---------- */
@media (min-width: 993px) {
    .grid-4-plans { grid-template-columns: repeat(2, 1fr) !important; gap: 14px; max-width: 940px; margin: 0 auto; }
    .check-list {
        order: 3;
        margin: 13px 0 0 !important;
        padding: 10px 13px;
        background: var(--bg-body);
        border: 1px dashed var(--border-color);
        border-radius: 12px;
    }
    .plan-price { order: 1; margin-bottom: 12px; }
    .plan-card .btn { order: 2; margin-top: 0; }
}

/* landscape: hide bottom bar */
@media (max-width: 992px) and (orientation: landscape) {
    body { padding-bottom: 0; }
    .mobile-cta { display: none; }
    .hero { min-height: auto; padding: 105px 0 36px; }
}

/* touch: no hover jumps */
@media (hover: none) {
    .plan-card:hover, .card:hover, .ai-feature-card:hover { transform: none; }
    .btn-primary:hover, .btn-outline:hover { transform: none; }
}

/* ds spin */
.ds-spin { display:none; width:13px; height:13px; border:2px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:dsSpin .7s linear infinite; vertical-align:middle; margin-inline-start:6px; }
.ds-spin.on { display:inline-block; }
@keyframes dsSpin { to { transform: rotate(360deg); } }
