/* Scoped refresh. The existing sample-site.css and site JavaScript stay intact. */

/* App information: full content width, description below heading, icon and table. */
.apk-info-section .about-table {
    width: 100%;
    max-width: none;
    table-layout: fixed;
    border-collapse: separate;
    border-spacing: 0;
    border: 1px solid #e3e9ef;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 5px 18px rgba(15,23,42,.04);
}
.apk-info-section h2 { color: var(--apk-info-text,#253044); }
.apk-info-icon { display: flex; justify-content: center; margin: 0 0 28px; }
.apk-info-section .apk-info-icon img {
    display: block;
    width: var(--apk-icon-size,160px);
    height: var(--apk-icon-size,160px);
    max-width: 100%;
    object-fit: contain;
    border-radius: 28px;
}
.apk-info-section .about-table th,
.apk-info-section .about-table td {
    padding: 16px 22px;
    border: 0;
    border-bottom: 1px solid #e7edf3;
    font-size: 15px;
    line-height: 1.5;
    text-align: start;
    vertical-align: middle;
    overflow-wrap: anywhere;
    background: #fff;
}
.apk-info-section .about-table th { width: 42%; color: #253044; font-weight: 600; }
.apk-info-section .about-table td { width: 58%; color: #526075; }
.apk-info-section .about-table tr:nth-child(even) > * { background: #f7f9fc; }
.apk-info-section .about-table tr:last-child > * { border-bottom: 0; }
.apk-info-section .apk-info-description {
    width: 100%;
    max-width: none;
    margin: 0 0 28px;
    color: var(--apk-info-text,#253044);
    font-size: 16px;
    line-height: 1.8;
    text-align: var(--apk-description-align,center);
}

/* Factual app detail badges; no antivirus endorsement implied. */
.hero-detail-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin: 22px 0 0; }
.hero-detail-badge { display: inline-flex; align-items: center; gap: 7px; min-width: 0; color: var(--hero-badge-text,#445267); font-size: 13px; font-weight: 500; line-height: 1.5; }
.hero-detail-badge svg { width: 19px; height: 19px; flex: 0 0 19px; color: var(--hero-badge-icon,var(--hero-btn-grad-2,#005b96)); }
.hero-detail-badge span { overflow-wrap: anywhere; }

/* Clean buttons, keep configured gradients and download icon. */
.hero .btn-xl, .btn-download {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    max-width: 100%;
    min-height: 50px;
    padding: 14px 24px;
    border: 1px solid rgba(15,23,42,.06);
    border-radius: 12px;
    line-height: 1.4;
    text-transform: none;
    letter-spacing: 0;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    box-shadow: 0 4px 12px rgba(15,23,42,.12);
    transition: transform .18s ease,box-shadow .18s ease;
}
.hero .btn-xl::before, .btn-download::before { content: none; }
.hero .btn-xl::after, .btn-download::after { margin-left: 0; }
.hero .btn-xl:hover, .btn-download:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(15,23,42,.16); }
.hero .btn-xl:focus-visible, .btn-download:focus-visible { outline: 2px solid #334155; outline-offset: 4px; }

/* Header spacing only: preserve the restored navigation structure and hooks. */
.site-header { position: relative; border-bottom: 1px solid #e6ecf1; box-shadow: 0 2px 8px rgba(15,23,42,.025); }
.site-header > .header-container { min-height: 78px; padding: 15px 0; gap: 22px; }
.site-header .logo { min-width: 0; }
.site-header .logo a { text-decoration: none; }
.site-header nav { min-width: 0; gap: 16px; }
.site-header nav > .nav-menu { gap: 4px; margin-right: 0; flex-wrap: wrap; justify-content: flex-end; }
.site-header nav > .nav-menu li a { display: block; padding: 9px 11px; border-radius: 8px; font-size: 15px; line-height: 1.4; }
.site-header #current-language { min-height: 42px; padding: 8px 10px; border: 1px solid #e4eaf0; border-radius: 10px; gap: 7px; background: transparent; font-size: 14px; font-weight: 500; }
.site-header #current-language:hover { background: rgba(120,135,155,.07); }
.site-header .language-dropdown { top: calc(100% + 10px); right: 0; max-height: 65vh; overflow-y: auto; border: 1px solid #e4eaf0; border-radius: 12px; box-shadow: 0 10px 28px rgba(15,23,42,.12); }
.site-header .language-grid { gap: 8px 12px; }
.site-header .language-grid a { padding: 8px; border-radius: 7px; }
.site-header #current-language:focus-visible, .site-header .hamburger:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }

@media(max-width:768px) {
    .apk-info-section { padding: 40px 0; }
    .apk-info-section .about-table th, .apk-info-section .about-table td { padding: 13px 14px; font-size: 14px; }
    .apk-info-section .apk-info-icon img { width: min(var(--apk-icon-size,160px),128px); height: min(var(--apk-icon-size,160px),128px); border-radius: 23px; }
    .apk-info-section .apk-info-description { font-size: 15px; margin: 0 0 24px; }
    .hero-detail-badges { justify-content: center; gap: 10px 15px; }
    .hero-detail-badge { font-size: 12px; }
    .hero .btn-xl, .btn-download { min-height: 48px; padding: 13px 18px; font-size: 16px; }
    .site-header > .header-container { display: grid; grid-template-columns: 56px minmax(0,1fr) 56px; width: calc(100% - 24px); min-height: 70px; gap: 8px; padding: 12px 0; }
    .site-header .logo { max-width: 100%; justify-self: stretch; }
    .site-header .logo a { justify-content: center; }
    .site-header nav { justify-self: end; gap: 0; }
    .site-header #current-language { min-width: 54px; min-height: 44px; padding: 6px; justify-content: center; }
    .site-header #current-language > span[dir] { display: none !important; }
    .site-header .hamburger { width: 44px; height: 44px; align-items: center; justify-content: center; gap: 5px; border-radius: 9px; }
    .site-header .hamburger .bar { width: 21px; height: 2px; flex-shrink: 0; }
    .site-header .hamburger.hide .bar { top: 21px; left: 12px; }
    .site-header .mobile-menu .nav-menu { padding: 8px 12px; }
    .site-header .mobile-menu .nav-menu li { padding: 0; border: 0; }
    .site-header .mobile-menu .nav-menu li a { padding: 13px 14px; margin: 2px 0; border-radius: 8px; font-size: 15px; }
    .site-header .language-dropdown { width: min(340px,calc(100vw - 24px)); }
}
@media(prefers-reduced-motion:reduce) {
    .hero .btn-xl, .btn-download { transition: none; }
    .hero .btn-xl:hover, .btn-download:hover { transform: none; }
}

/* Homepage order and configurable feature columns. Font family stays unchanged. */
.hero .hero-content .hero-description { margin: 18px 0 24px; max-width: 60ch; line-height: 1.75; }
.apk-info-section h2 { margin-bottom: 18px; }
.features > .container.feature-grid { display: grid; grid-template-columns: repeat(var(--feature-columns,4),minmax(0,1fr)); gap: 28px 24px; }
@media(max-width:768px) {
    .hero .hero-content .hero-description { margin: 16px auto 22px; }
    .features > .container.feature-grid { grid-template-columns: repeat(2,minmax(0,1fr)) !important; gap: 24px 12px !important; }
}

/* Color Boxes: independent desktop 2-column option. */
.color-box > .container.colorbox-grid-two { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 28px; align-items: stretch; }
.color-box > .colorbox-grid-two > .gradient-box { width: 100%; max-width: none; min-width: 0; margin: 0; overflow-wrap: anywhere; }
.color-box > .colorbox-grid-two > .gradient-box img { max-width: 100%; height: auto; }
@media(max-width:768px) {
    .color-box > .container.colorbox-grid-two { grid-template-columns: minmax(0,1fr); gap: 24px; }
}
