/*
 * The public website on phones and tablets (16 Nov 2026).
 *
 * Desktop (1100px and wider) is not touched: every rule below sits inside a
 * max-width media query, scoped to body.sd-site, so the app never sees it.
 * A plain stylesheet on purpose: site.css is built by Vite and this file needs
 * no build step to ship. Loaded by layouts/site, layouts/frontend and
 * layouts/site-intl, after sd-site-touch.css.
 */

/* ── Header: tablets and phones use the menu button ─────────────────────── */
@media (max-width: 1099.98px) {
    body.sd-site .navbar-container { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
    body.sd-site .navbar-center { display: none; }
    body.sd-site .navbar-right { display: flex; gap: 10px; flex-shrink: 0; }
    body.sd-site .navbar-right .nav-login-link,
    body.sd-site .navbar-right .sd-lang--compact { display: none; }
    body.sd-site .navbar-right .btn { display: inline-flex; white-space: nowrap; }
    body.sd-site .nav-toggle { display: flex; flex-shrink: 0; min-height: 44px; min-width: 44px; }
    body.sd-site .mobile-nav-backdrop,
    body.sd-site .mobile-nav-menu { display: block; }
    body.sd-site .mobile-nav-menu { max-height: calc(100vh - var(--header-height)); overflow-y: auto; }
    body.sd-site .navbar-left { min-width: 0; flex-shrink: 1; }
    body.sd-site .brand { min-width: 0; }
    body.sd-site .brand-logo-img { max-width: 100%; }
}

/* phones: a smaller logo and trial button, so the menu button always fits */
@media (max-width: 575.98px) {
    body.sd-site .brand-logo-img { height: 28px; }
    body.sd-site .navbar-right { gap: 6px; }
    body.sd-site .navbar-right .btn,
    body.sd-site .navbar-right .btn-sm { padding: .45rem .8rem; font-size: .78rem; min-height: 40px; }
    body.sd-site .nav-toggle { width: 42px; padding: 8px; }
}
@media (max-width: 389.98px) {
    body.sd-site .brand-logo-img { height: 23px; }
    body.sd-site .navbar-right .btn,
    body.sd-site .navbar-right .btn-sm { padding: .4rem .65rem; font-size: .74rem; }
}
@media (max-width: 339.98px) {
    body.sd-site .navbar-right .btn { display: none; }
}

/* ── Hero headline: smaller on tablets and small laptops ───────────────── */
@media (min-width: 992px) and (max-width: 1199.98px) {
    body.sd-site .mk-hero h1 { font-size: clamp(2.4rem, 3.6vw, 3rem); }
}
@media (max-width: 991.98px) {
    body.sd-site .mk-hero h1 { font-size: clamp(2.1rem, 5.4vw, 2.9rem); }
}
@media (max-width: 575.98px) {
    body.sd-site .mk-hero { padding-top: 88px; }
    body.sd-site .mk-hero h1 { font-size: 2rem; margin: 14px 0 12px; }
    body.sd-site .mk-hero p.lead { font-size: 1rem; margin-bottom: 20px; }
    body.sd-site .mk-h2 { font-size: 1.55rem; }
    body.sd-site .mk-head { margin-bottom: 1.5rem; }
    body.sd-site .section { padding-top: 2.5rem; padding-bottom: 2.5rem; }
}

/* ── Card grids: two or three per row on tablets, two small ones on phones ─ */
@media (min-width: 600px) and (max-width: 991.98px) {
    body.sd-site .mk-list { grid-template-columns: 1fr 1fr; column-gap: 22px; }
    body.sd-site .mk-feats { grid-template-columns: 1fr 1fr; }
    body.sd-site .mk-facts { grid-template-columns: 1fr 1fr; }
    body.sd-site .mk-shots { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 768px) and (max-width: 1099.98px) {
    body.sd-site .mk-feats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 599.98px) {
    body.sd-site .mk-facts { grid-template-columns: 1fr 1fr; gap: 10px; }
    body.sd-site .mk-fact { padding: 14px; }
    body.sd-site .mk-fact b { font-size: 1.08rem; }
    body.sd-site .mk-fact span { font-size: .8rem; }
    body.sd-site .mk-feat { padding: 16px; }
    body.sd-site .mk-why div { padding: 16px; }
    body.sd-site .mk-mod { padding: 18px; }
    body.sd-site .mk-both { padding: 20px; border-radius: 18px; }
}

/* ── Comparison tables become one small card per row on phones ──────────── */
@media (max-width: 599.98px) {
    body.sd-site .mk-scroll { overflow: visible; }
    body.sd-site .mk-cmp { border: 0; background: transparent; border-radius: 0; overflow: visible; }
    body.sd-site .mk-cmp thead { display: none; }
    body.sd-site .mk-cmp tbody { display: grid; gap: 10px; }
    body.sd-site .mk-cmp tr { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #fff; border: 1px solid var(--color-border-default); border-radius: 12px; overflow: hidden; }
    body.sd-site .mk-cmp td { display: block; border: 0; padding: 8px 6px 10px; text-align: center; }
    body.sd-site .mk-cmp td:first-child { grid-column: 1 / -1; text-align: left; padding: 12px 14px 4px; font-size: .92rem; }
    body.sd-site .mk-cmp td[data-l]::before { content: attr(data-l); display: block; font-size: 10.5px; line-height: 1.25; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--color-text-muted); margin-bottom: 4px; }
    body.sd-site .mk-cmp td:last-child::before { color: var(--acc); }
    body.sd-site .mk-cmp tr:last-child td { border-bottom: 0; }
}

/* ── Long lists fold on phones (sd-site-fold.js adds the button) ────────── */
body.sd-site button.sd-fold-btn { display: none; }
@media (max-width: 599.98px) {
    body.sd-site .sd-fold-hide { display: none !important; }
    body.sd-site button.sd-fold-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 44px; margin: 4px 0 14px; padding: 10px 14px; border: 1px dashed var(--color-border-default, #cbd5e1); border-radius: 12px; background: #fff; color: var(--color-primary-royal, #1e40af); font-weight: 700; font-size: .9rem; cursor: pointer; }
    body.sd-site .sd-fold-btn::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); }
    body.sd-site .sd-fold-btn[aria-expanded="true"]::after { transform: rotate(-135deg) translateY(-2px); }
    body.sd-site .mk-mod.rental .sd-fold-btn { color: #0f766e; }
}

/* ── soidhaga.com home and pages ────────────────────────────────────────── */
@media (min-width: 600px) and (max-width: 991.98px) {
    body.sd-site .ix-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 575.98px) {
    body.sd-site .ix-sec { padding-top: 2.5rem; padding-bottom: 2.5rem; }
    body.sd-site .ix-card { padding: 16px; }
}

/* ── Footer: two link columns side by side on phones, bigger tap areas ──── */
@media (max-width: 767.98px) {
    body.sd-site .footer-main-grid { row-gap: 22px; }
    body.sd-site .footer-link,
    body.sd-site .footer-legal-link { display: inline-flex; align-items: center; min-height: 40px; }
    body.sd-site .footer-links-list { gap: 0; }
}
@media (min-width: 360px) and (max-width: 767.98px) {
    body.sd-site .footer-main-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 16px; }
    body.sd-site .footer-main-grid > .footer-col-brand,
    body.sd-site .footer-main-grid > .footer-col-contact,
    body.sd-site .footer-main-grid > :not(.footer-col) { grid-column: 1 / -1; }
}

/* Pricing Card Buy Now button */
body.sd-site .pricing-buy-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: 9px 18px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.9rem;
    color: #1e293b;
    border: 1.5px solid #cbd5e1;
    background: #fff;
    transition: all 0.15s ease;
    text-decoration: none;
    box-sizing: border-box;
}

body.sd-site .pricing-buy-btn:hover {
    border-color: #133b70;
    color: #133b70;
    background: #f1f5f9;
}

/* ── Live "Try it free" Button & Arrow Animation ── */
body.sd-site .mk-mod .acts {
    margin-top: auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding-top: 14px;
}

body.sd-site .mk-link-secondary {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 0.88rem;
    color: #64748b;
    text-decoration: none;
    padding: 8px 4px;
    transition: color 0.15s ease;
}

body.sd-site .mk-link-secondary:hover {
    color: var(--acc, #133b70);
    text-decoration: underline;
}

body.sd-site .mk-link-secondary svg {
    transition: transform 0.2s ease;
}

body.sd-site .mk-link-secondary:hover svg {
    transform: translateX(3px);
}

body.sd-site .mk-btn-live {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: var(--acc, #133b70);
    color: #ffffff !important;
    font-weight: 800;
    font-size: 0.92rem;
    line-height: 1.2;
    padding: 10px 22px;
    border-radius: 999px;
    text-decoration: none !important;
    cursor: pointer;
    white-space: nowrap;
    position: relative;
    box-shadow: 0 4px 14px -1px color-mix(in srgb, var(--acc, #133b70) 40%, transparent);
    animation: mkPulseLive 2.4s ease-in-out infinite;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.2s ease;
}

@keyframes mkPulseLive {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 14px -1px color-mix(in srgb, var(--acc, #133b70) 40%, transparent);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 22px 3px color-mix(in srgb, var(--acc, #133b70) 60%, transparent);
    }
}

body.sd-site .mk-btn-live:hover {
    transform: scale(1.07) translateY(-1px);
    background: color-mix(in srgb, var(--acc, #133b70) 88%, #000);
    box-shadow: 0 8px 24px 3px color-mix(in srgb, var(--acc, #133b70) 55%, transparent);
}

body.sd-site .mk-btn-live:active {
    transform: scale(0.98);
}

body.sd-site .mk-arrow-anim {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    animation: mkArrowGlide 1.2s ease-in-out infinite;
}

@keyframes mkArrowGlide {
    0%, 100% {
        transform: translateX(0);
    }
    50% {
        transform: translateX(5px);
    }
}

body.sd-site .mk-btn-live:hover .mk-arrow-anim {
    transform: translateX(6px);
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    body.sd-site .mk-btn-live,
    body.sd-site .mk-arrow-anim {
        animation: none !important;
    }
}
