/* =====================================================================
   Homepage app showcase: featured slider + app-icon grid,
   plus the "Learn Tibetan" topic cards and FAQ below it.
   ===================================================================== */

.apps2 { position: relative; z-index: 2; padding: clamp(56px, 8vw, 104px) 0 24px; }
.apps2-head {
    max-width: 1240px; margin: 0 auto 36px; padding: 0 clamp(20px, 5vw, 40px);
    text-align: center;
}
.apps2-head h2 {
    font-family: 'Plus Jakarta Sans', 'Bricolage Grotesque', sans-serif;
    font-weight: 800; font-size: clamp(32px, 4.6vw, 56px);
    line-height: 1.05; letter-spacing: -0.035em; color: #F4F1E8;
    margin: 16px auto 14px; max-width: 820px;
}
.apps2-head h2 .grad {
    background: linear-gradient(120deg, #F0CC78, #FF8A5B 40%, #7FB2FF 75%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.apps2-head p { color: rgba(220,230,255,0.66); font-size: 16.5px; line-height: 1.6; max-width: 640px; margin: 0 auto; }

/* ---------------------------- slider -------------------------------- */
.sl { position: relative; outline: none; }
.sl-track {
    display: flex; gap: clamp(14px, 2vw, 26px);
    overflow-x: auto; overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory; scrollbar-width: none;
    padding: 18px calc((100vw - min(1100px, 88vw)) / 2) 34px;
    -webkit-overflow-scrolling: touch;
}
.sl-track::-webkit-scrollbar { display: none; }
.sl-slide {
    position: relative; flex: 0 0 min(1100px, 88vw);
    scroll-snap-align: center;
    display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); align-items: center;
    gap: clamp(16px, 3vw, 40px);
    min-height: clamp(420px, 44vw, 520px);
    padding: clamp(28px, 4.2vw, 56px);
    border-radius: 34px; overflow: hidden; color: #fff;
    background: var(--sl-bg);
    box-shadow: 0 40px 90px -40px rgba(0,0,0,0.8), inset 0 1px 0 rgba(255,255,255,0.2);
    outline: 1px solid rgba(255,255,255,0.12); outline-offset: -1px;
    transform: scale(0.93); opacity: 0.45; filter: saturate(0.7);
    transition: transform 0.8s cubic-bezier(.2,.75,.2,1), opacity 0.8s ease, filter 0.8s ease;
}
.sl-slide.is-active { transform: none; opacity: 1; filter: none; }
.sl-slide::before {          /* soft light sweep */
    content: ''; position: absolute; inset: -40%; pointer-events: none;
    background: radial-gradient(40% 40% at 30% 20%, rgba(255,255,255,0.22), transparent 70%);
    animation: sl-sheen 14s ease-in-out infinite alternate;
}
.sl-slide::after {           /* decorative rings */
    content: ''; position: absolute; right: -160px; top: -160px; width: 420px; height: 420px;
    border-radius: 50%; border: 46px solid rgba(255,255,255,0.06); pointer-events: none;
}
@keyframes sl-sheen { to { transform: translate(18%, 22%); } }

.sl-text { position: relative; z-index: 2; min-width: 0; }
.sl-text > * {
    opacity: 0; transform: translateY(22px);
    transition: opacity 0.7s ease, transform 0.7s cubic-bezier(.2,.75,.2,1);
}
.sl-slide.is-active .sl-text > * { opacity: 1; transform: none; }
.sl-slide.is-active .sl-text > *:nth-child(2) { transition-delay: 0.08s; }
.sl-slide.is-active .sl-text > *:nth-child(3) { transition-delay: 0.16s; }
.sl-slide.is-active .sl-text > *:nth-child(4) { transition-delay: 0.24s; }
.sl-slide.is-active .sl-text > *:nth-child(5) { transition-delay: 0.32s; }
.sl-slide.is-active .sl-text > *:nth-child(6) { transition-delay: 0.40s; }

.sl-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.sl-icon { width: 64px; height: 64px; border-radius: 17px; object-fit: cover; background: transparent; box-shadow: 0 12px 28px -10px rgba(0,0,0,0.55); }
.sl-kind {
    font-size: 11.5px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
    padding: 6px 12px; border-radius: 999px; background: rgba(0,0,0,0.22); border: 1px solid rgba(255,255,255,0.2);
}
.sl-name {
    font-family: 'Plus Jakarta Sans', 'Bricolage Grotesque', sans-serif;
    font-size: clamp(30px, 3.8vw, 48px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04;
}
.sl-tib { font-family: 'Noto Serif Tibetan', serif; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.7; color: rgba(255,255,255,0.85); margin-top: 6px; }
.sl-desc { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.6; color: rgba(255,255,255,0.88); margin-top: 12px; max-width: 470px; }
.sl-plats { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.sl-plat {
    display: inline-flex; align-items: center; gap: 7px;
    padding: 8px 14px 8px 11px; border-radius: 999px;
    background: #fff; color: #111; font-size: 13px; font-weight: 800;
    box-shadow: 0 8px 18px -8px rgba(0,0,0,0.5);
}
.sl-plat svg { width: 18px; height: 18px; fill: #111; }
.sl-plat-android svg { fill: #3DDC84; }
.sl-plat-windows svg { fill: #0078D4; }
.sl-cta {
    display: inline-flex; align-items: center; gap: 10px; margin-top: 26px;
    font-weight: 800; font-size: 15.5px; padding: 13px 24px; border-radius: 999px;
    background: rgba(0,0,0,0.28); border: 1.5px solid rgba(255,255,255,0.45);
    transition: background 0.25s, gap 0.25s;
}
.sl-slide:hover .sl-cta { background: rgba(0,0,0,0.42); gap: 14px; }

.sl-media { position: relative; z-index: 1; height: 100%; display: flex; align-items: center; justify-content: center; min-width: 0; }
.sl-phone {
    width: min(250px, 78%); aspect-ratio: 9 / 19.2; border-radius: 40px; overflow: hidden;
    background: #0b0d14; border: 7px solid #0b0d14;
    box-shadow: 0 0 0 1.5px rgba(255,255,255,0.22), 0 40px 70px -24px rgba(0,0,0,0.7);
    transform: translateY(40px) rotate(6deg) scale(0.94);
    transition: transform 1.1s cubic-bezier(.2,.75,.2,1) 0.1s;
}
.sl-laptop {
    width: 100%; border-radius: 14px; overflow: hidden; background: #1b1b22;
    box-shadow: 0 0 0 1px rgba(255,255,255,0.18), 0 40px 70px -24px rgba(0,0,0,0.7);
    transform: translateX(40px) rotate(-3deg) scale(0.94);
    transition: transform 1.1s cubic-bezier(.2,.75,.2,1) 0.1s;
}
.sl-laptop .win-bar { display: flex; gap: 7px; padding: 10px 14px; background: #26262e; }
.sl-laptop .win-bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.sl-laptop .win-bar i:nth-child(2) { background: #febc2e; }
.sl-laptop .win-bar i:nth-child(3) { background: #28c840; }
.sl-phone img, .sl-laptop img { display: block; width: 100%; height: 100%; object-fit: cover; }
.sl-laptop img { height: auto; }
.sl-slide.is-active .sl-phone { transform: rotate(-3deg); animation: sl-bob 6s ease-in-out 1.2s infinite; }
.sl-slide.is-active .sl-laptop { transform: none; }
@keyframes sl-bob { 0%, 100% { transform: rotate(-3deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-10px); } }

/* controls */
.sl-controls {
    display: flex; align-items: center; justify-content: center; gap: 18px;
    margin-top: 4px; padding: 0 20px;
}
.sl-arrow {
    width: 50px; height: 50px; border-radius: 50%; flex-shrink: 0;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.18); color: #fff;
    font-size: 22px; font-weight: 700; transition: background 0.2s, transform 0.2s;
}
.sl-arrow:hover { background: rgba(30,107,255,0.5); transform: scale(1.06); }
.sl-arrow:focus-visible, .sl-dot:focus-visible { outline: 3px solid #7FB2FF; outline-offset: 3px; }
.sl-dots { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.sl-dot {
    width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px;
    background: rgba(255,255,255,0.25); overflow: hidden; position: relative;
    transition: width 0.4s ease, background 0.3s;
}
.sl-dot.is-active { width: 46px; background: rgba(255,255,255,0.22); }
.sl-dot span { position: absolute; inset: 0; width: 0; background: linear-gradient(90deg, #7FB2FF, #F0CC78); border-radius: inherit; }
.sl-dot.is-active span { width: 100%; }
.sl.sl-running .sl-dot.is-active span { width: 0; animation: sl-progress 6s linear forwards; }
@keyframes sl-progress { to { width: 100%; } }

@media (max-width: 820px) {
    .sl-slide { grid-template-columns: minmax(0, 1fr); flex-basis: 88vw; min-height: 0; padding-bottom: 0; }
    .sl-media { height: 300px; align-items: flex-start; overflow: hidden; margin: 0 -10px; }
    .sl-phone { width: 190px; }
    .sl-laptop { width: 100%; margin-top: 10px; }
    .sl-track { padding-left: 6vw; padding-right: 6vw; }
    .sl-arrow { width: 44px; height: 44px; }
}

/* --------------------------- filters + grid -------------------------- */
.apps2-grid-wrap { max-width: 1240px; margin: clamp(48px, 7vw, 80px) auto 0; padding: 0 clamp(20px, 5vw, 40px); }
.apps2-grid-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; flex-wrap: wrap; margin-bottom: 26px; }
.apps2-grid-head h3 {
    font-family: 'Plus Jakarta Sans', 'Bricolage Grotesque', sans-serif;
    font-size: clamp(24px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; color: #F4F1E8;
}
.apps2-filters { display: flex; gap: 8px; flex-wrap: wrap; }
.apps2-filters button, .apps2-filters a {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 10px 18px; border-radius: 999px; font-size: 14px; font-weight: 700;
    color: rgba(237,240,255,0.78); background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.16); transition: all 0.2s;
}
.apps2-filters button:hover, .apps2-filters a:hover { border-color: rgba(127,178,255,0.6); color: #fff; }
.apps2-filters button[aria-pressed="true"] { background: linear-gradient(135deg, #1E6BFF, #0047D6); color: #fff; border-color: transparent; box-shadow: 0 12px 26px -12px rgba(30,107,255,0.9); }
.apps2-filters svg { width: 16px; height: 16px; }

.app-icon-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 44%), 1fr)); gap: 16px; }
.app-tile {
    display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px;
    padding: 26px 14px 20px; border-radius: 26px;
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.09);
    color: #F4F1E8;
    transition: transform 0.35s cubic-bezier(.2,.75,.2,1), border-color 0.3s, background 0.3s, box-shadow 0.3s;
}
.app-tile[hidden] { display: none; }
.app-tile:hover { transform: translateY(-6px); border-color: rgba(127,178,255,0.45); background: rgba(30,107,255,0.08); box-shadow: 0 24px 50px -26px rgba(30,107,255,0.8); }
.app-tile:focus-visible { outline: 3px solid #7FB2FF; outline-offset: 3px; }
.tile-icon-wrap { position: relative; }
.tile-icon-wrap::after {
    content: ''; position: absolute; inset: 10% 10% -14%; z-index: -1; border-radius: 50%;
    background: inherit; filter: blur(18px); opacity: 0.6;
}
.tile-icon {
    width: 88px; height: 88px; border-radius: 22px; object-fit: cover; background: transparent;
    box-shadow: 0 14px 30px -12px rgba(0,0,0,0.7), 0 0 0 1px rgba(255,255,255,0.12);
    transition: transform 0.35s cubic-bezier(.2,.75,.2,1);
}
.app-tile:hover .tile-icon { transform: scale(1.07) rotate(-3deg); }
.tile-name { font-weight: 800; font-size: 15px; line-height: 1.3; letter-spacing: -0.01em; }
.tile-plats { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: auto; }
.tile-plat {
    display: inline-flex; align-items: center; gap: 5px;
    padding: 5px 10px 5px 8px; border-radius: 999px;
    background: #fff; color: #111; font-size: 11.5px; font-weight: 800;
}
.tile-plat svg { width: 14px; height: 14px; fill: #111; }
.tile-plat-android svg { fill: #3DDC84; }
.tile-plat-windows svg { fill: #0078D4; }

/* ------------------------- learn topics + FAQ ------------------------ */
.learn2 { max-width: 1240px; margin: clamp(64px, 9vw, 120px) auto 0; padding: 0 clamp(20px, 5vw, 40px); }
.learn2-head { text-align: center; max-width: 760px; margin: 0 auto 34px; }
.learn2-head h2 {
    font-family: 'Plus Jakarta Sans', 'Bricolage Grotesque', sans-serif;
    font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; color: #F4F1E8; margin-top: 14px;
}
.learn2-head .tib-line { font-family: 'Noto Serif Tibetan', serif; font-size: clamp(22px, 2.6vw, 30px); color: #F0CC78; line-height: 1.8; margin-top: 4px; }
.learn2-head p { color: rgba(220,230,255,0.66); font-size: 16px; line-height: 1.65; margin-top: 10px; }
.topic-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 16px; }
.topic {
    display: flex; flex-direction: column; gap: 6px;
    padding: 24px 24px 22px; border-radius: 24px;
    background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(255,255,255,0.015));
    border: 1px solid rgba(255,255,255,0.09); color: #F4F1E8;
    transition: transform 0.3s, border-color 0.3s, background 0.3s;
}
.topic:hover { transform: translateY(-4px); border-color: rgba(127,178,255,0.45); background: rgba(30,107,255,0.07); }
.topic .t-tib { font-family: 'Noto Serif Tibetan', serif; font-size: 22px; line-height: 1.7; color: #F0CC78; }
.topic h3 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 19px; font-weight: 800; letter-spacing: -0.01em; }
.topic p { color: rgba(220,230,255,0.66); font-size: 14.5px; line-height: 1.6; }
.topic .t-go { margin-top: auto; padding-top: 8px; color: #7FB2FF; font-weight: 700; font-size: 14px; }

.faq2 { max-width: 860px; margin: clamp(56px, 8vw, 96px) auto 0; padding: 0 clamp(20px, 5vw, 40px); }
.faq2 h2 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -0.02em; color: #F4F1E8; text-align: center; margin: 14px 0 26px; }
.faq2 details {
    border: 1px solid rgba(255,255,255,0.1); border-radius: 18px; margin-bottom: 12px;
    background: rgba(255,255,255,0.025); overflow: hidden;
}
.faq2 summary {
    list-style: none; cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 16px; color: #F4F1E8;
    display: flex; justify-content: space-between; gap: 16px; align-items: center;
}
.faq2 summary::-webkit-details-marker { display: none; }
.faq2 summary::after { content: '+'; font-size: 22px; color: #7FB2FF; transition: transform 0.3s; }
.faq2 details[open] summary::after { transform: rotate(45deg); }
.faq2 .a { padding: 0 22px 20px; color: rgba(220,230,255,0.72); line-height: 1.7; font-size: 15px; }
.faq2 .a a { color: #F0CC78; }
.faq2 [lang="bo"] { font-family: 'Noto Serif Tibetan', serif; font-size: 1.2em; line-height: 1.5; font-weight: 600; }

/* ------------------------------ light mode --------------------------- */
html:not(.dark) .apps2-head h2, html:not(.dark) .apps2-grid-head h3,
html:not(.dark) .learn2-head h2, html:not(.dark) .faq2 h2, html:not(.dark) .faq2 summary { color: #10172E; }
html:not(.dark) .apps2-head p, html:not(.dark) .learn2-head p, html:not(.dark) .topic p, html:not(.dark) .faq2 .a { color: #4A5168; }
html:not(.dark) .app-tile, html:not(.dark) .topic, html:not(.dark) .faq2 details {
    background: #fff; border-color: rgba(16,23,46,0.1); color: #10172E; box-shadow: 0 10px 30px -18px rgba(16,23,46,0.25);
}
html:not(.dark) .tile-plat { background: #F1F3F8; }
html:not(.dark) .apps2-filters button, html:not(.dark) .apps2-filters a { color: #10172E; background: #fff; border-color: rgba(16,23,46,0.14); }
html:not(.dark) .apps2-filters button[aria-pressed="true"] { color: #fff; }
html:not(.dark) .sl-arrow { background: #fff; color: #10172E; border-color: rgba(16,23,46,0.14); }
html:not(.dark) .sl-dot { background: rgba(16,23,46,0.2); }
html:not(.dark) .topic .t-tib, html:not(.dark) .learn2-head .tib-line { color: #B07A1E; }
html:not(.dark) .topic .t-go { color: #1C3FB0; }

@media (prefers-reduced-motion: reduce) {
    .sl-slide, .sl-text > *, .sl-phone, .sl-laptop { transition: none !important; animation: none !important; }
    .sl-slide::before { animation: none; }
}


/* ---------- Mobile apps / Computer software: the big switch ---------- */
.kind-switch {
    max-width: 1040px; margin: 0 auto 34px; padding: 0 clamp(16px, 4vw, 32px);
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px;
}
@media (max-width: 640px) { .kind-switch { grid-template-columns: minmax(0, 1fr); } }
.kind-tile {
    position: relative; display: flex; align-items: center; gap: 18px; text-align: left;
    min-height: 112px; padding: 20px 24px; border-radius: 28px; cursor: pointer;
    background: linear-gradient(180deg, rgba(255,255,255,0.07), rgba(255,255,255,0.02));
    border: 2px solid rgba(255,255,255,0.16); color: #F4F1E8;
    transition: transform .25s, border-color .25s, background .25s, box-shadow .25s;
}
.kind-tile:hover { transform: translateY(-3px); border-color: rgba(127,178,255,0.7); }
.kind-tile:focus-visible { outline: 3px solid #F0CC78; outline-offset: 3px; }
.kind-tile.is-active {
    background: linear-gradient(135deg, #2F7BFF, #0A45D6 70%, #0B2E9A);
    border-color: rgba(255,255,255,0.55); color: #fff;
    box-shadow: 0 26px 60px -20px rgba(30,107,255,0.95), inset 0 1px 0 rgba(255,255,255,0.3);
}
.kind-tile.is-active::after {      /* pointer toward the content below */
    content: ''; position: absolute; left: 50%; bottom: -11px; width: 22px; height: 22px;
    background: #0A45D6; border-right: 2px solid rgba(255,255,255,0.55); border-bottom: 2px solid rgba(255,255,255,0.55);
    transform: translateX(-50%) rotate(45deg); border-radius: 0 0 6px 0;
}
.kind-ico {
    width: 72px; height: 72px; flex-shrink: 0; border-radius: 22px;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.22);
}
.kind-tile.is-active .kind-ico { background: rgba(255,255,255,0.2); }
.kind-ico svg { width: 38px; height: 38px; }
.kind-text { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.kind-title { font: 800 clamp(23px, 2.6vw, 30px)/1.05 'Plus Jakarta Sans', 'Bricolage Grotesque', sans-serif; letter-spacing: -0.025em; }
.kind-sub { font-size: 14px; font-weight: 700; opacity: .8; }
.kind-logos { display: flex; gap: 8px; flex-wrap: wrap; }
.kind-logo {
    display: inline-flex; align-items: center; justify-content: center;
    width: 38px; height: 38px; border-radius: 12px; background: #fff;
    box-shadow: 0 6px 14px -6px rgba(0,0,0,0.5);
}
.kind-logo svg { width: 22px; height: 22px; fill: #111; }
.kind-logo.l-android svg { fill: #3DDC84; }
.kind-logo.l-windows svg { fill: #0078D4; }
.slider-fade, .is-swapping { opacity: 0; transform: translateY(8px); }
.sl, .app-icon-grid { transition: opacity .22s ease, transform .22s ease; }
.kind-note { max-width: 1240px; margin: 22px auto 0; padding: 0 clamp(20px, 5vw, 40px); text-align: center; }
.kind-note:empty { display: none; }
.kind-note-link {
    display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 999px;
    background: #fff; color: #0A2A8F; font-weight: 800; font-size: 16px;
    box-shadow: 0 14px 30px -14px rgba(0,0,0,0.6); transition: transform .2s;
}
.kind-note-link:hover { transform: translateY(-2px); }

html:not(.dark) .kind-tile { background: #fff; color: #10172E; border-color: rgba(16,23,46,0.16); box-shadow: 0 14px 34px -22px rgba(16,23,46,0.4); }
html:not(.dark) .kind-tile.is-active { color: #fff; border-color: transparent; }
html:not(.dark) .kind-ico { background: #EEF2FF; border-color: rgba(16,23,46,0.08); }
html:not(.dark) .kind-tile.is-active .kind-ico { background: rgba(255,255,255,0.2); border-color: rgba(255,255,255,0.3); }
html:not(.dark) .kind-logo { background: #F1F3F8; box-shadow: none; }
html:not(.dark) .kind-tile.is-active .kind-logo { background: #fff; }


/* =====================================================================
   LIGHT MODE — high contrast for the apps section
   ===================================================================== */
html:not(.dark) .kind-tile {
    background: #fff; color: #0B1230; border: 2px solid rgba(11,18,48,0.28);
    box-shadow: 0 14px 34px -20px rgba(11,18,48,0.45);
}
html:not(.dark) .kind-tile:hover { border-color: #0A45D6; }
/* the selected tile must stay bright blue with white text (it was overridden before) */
html:not(.dark) .kind-tile.is-active {
    background: linear-gradient(135deg, #1F6BFF, #0A45D6 70%, #0A2E9E);
    color: #fff; border-color: #0A2E9E;
    box-shadow: 0 24px 50px -18px rgba(10,69,214,0.75), inset 0 1px 0 rgba(255,255,255,0.3);
}
html:not(.dark) .kind-tile.is-active::after { background: #0A45D6; border-color: #0A2E9E; }
html:not(.dark) .kind-tile .kind-sub { opacity: 1; color: #3A4562; }
html:not(.dark) .kind-tile.is-active .kind-sub { color: rgba(255,255,255,0.92); }
html:not(.dark) .kind-ico { background: #E6EDFF; border: 1px solid rgba(10,69,214,0.25); color: #0A45D6; }
html:not(.dark) .kind-tile.is-active .kind-ico { background: rgba(255,255,255,0.22); border-color: rgba(255,255,255,0.45); color: #fff; }
/* platform logos: a clearly outlined chip on white, solid white chip on the blue tile */
html:not(.dark) .kind-logo { background: #F1F4FB; border: 1.5px solid rgba(11,18,48,0.3); box-shadow: none; }
html:not(.dark) .kind-tile.is-active .kind-logo { background: #fff; border-color: #fff; box-shadow: 0 6px 14px -6px rgba(0,0,0,0.4); }

/* app icon grid */
html:not(.dark) .app-tile { background: #fff; border: 1.5px solid rgba(11,18,48,0.2); color: #0B1230; box-shadow: 0 12px 30px -20px rgba(11,18,48,0.5); }
html:not(.dark) .app-tile:hover { border-color: #0A45D6; background: #F5F8FF; box-shadow: 0 22px 44px -22px rgba(10,69,214,0.5); }
html:not(.dark) .tile-icon { box-shadow: 0 10px 22px -10px rgba(11,18,48,0.55), 0 0 0 1px rgba(11,18,48,0.2); }
html:not(.dark) .tile-name { color: #0B1230; }
html:not(.dark) .tile-plat, html:not(.dark) .sw-chip .tile-plat { background: #EEF2FB; color: #0B1230; border: 1.5px solid rgba(11,18,48,0.3); }
html:not(.dark) .tile-plat svg { fill: #0B1230; }

/* platform brand colours that stay readable on white */
.sl-plat-android svg, .tile-plat-android svg, .kind-logo.l-android svg, .plat-android svg { fill: #1F9D55; }
.sl-plat-windows svg, .tile-plat-windows svg, .kind-logo.l-windows svg, .plat-windows svg { fill: #0067C0; }
html:not(.dark) .tile-plat-android svg, html:not(.dark) .kind-logo.l-android svg { fill: #14833F; }
html:not(.dark) .tile-plat-windows svg, html:not(.dark) .kind-logo.l-windows svg { fill: #0067C0; }

/* section text */
html:not(.dark) .apps2-head h2, html:not(.dark) .apps2-grid-head h3 { color: #0B1230; }
html:not(.dark) .apps2-head p { color: #38425E; }
html:not(.dark) .apps2-head .eyebrow { color: #0A2E9E; background: #E6EDFF; border-color: rgba(10,69,214,0.35); }
html:not(.dark) .apps2-head .eyebrow::before { background: #0A45D6; box-shadow: none; }
html:not(.dark) .apps2-head h2 .grad { background: linear-gradient(120deg, #C2610A, #D0342C 45%, #0A45D6 85%); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* slider controls */
html:not(.dark) .sl-arrow { background: #fff; color: #0B1230; border: 1.5px solid rgba(11,18,48,0.35); box-shadow: 0 8px 18px -10px rgba(11,18,48,0.5); }
html:not(.dark) .sl-arrow:hover { background: #0A45D6; color: #fff; border-color: #0A45D6; }
html:not(.dark) .sl-dot { background: rgba(11,18,48,0.28); }
html:not(.dark) .sl-dot.is-active { background: rgba(11,18,48,0.2); }
html:not(.dark) .sl-dot span { background: linear-gradient(90deg, #0A45D6, #C2610A); }

/* the "see downloads" button under the computer-software grid */
html:not(.dark) .kind-note-link { background: #0A45D6; color: #fff; box-shadow: 0 14px 30px -14px rgba(10,69,214,0.7); }

/* topic cards + FAQ */
html:not(.dark) .topic { border: 1.5px solid rgba(11,18,48,0.2); }
html:not(.dark) .topic h3, html:not(.dark) .faq2 summary { color: #0B1230; }
html:not(.dark) .topic p, html:not(.dark) .faq2 .a { color: #38425E; }
html:not(.dark) .topic .t-go { color: #0A45D6; }
html:not(.dark) .faq2 details { border: 1.5px solid rgba(11,18,48,0.2); }
html:not(.dark) .faq2 .a a { color: #0A45D6; text-decoration: underline; }

/* section labels: small pills in light mode too */
html:not(.dark) .apps2-head .eyebrow, html:not(.dark) .learn2-head .eyebrow, html:not(.dark) .faq2 .eyebrow {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
    color: #0A2E9E; background: #E6EDFF; border: 1.5px solid rgba(10,69,214,0.35); letter-spacing: 0.14em;
}
html:not(.dark) .learn2-head .eyebrow::before, html:not(.dark) .faq2 .eyebrow::before {
    content: ''; width: 7px; height: 7px; border-radius: 50%; background: #0A45D6;
}
html:not(.dark) .learn2-head h2, html:not(.dark) .faq2 h2 { color: #0B1230; }
html:not(.dark) .learn2-head p { color: #38425E; }


/* =====================================================================
   COMPACT SLIDER (smaller slides)
   ===================================================================== */
.sl-track { gap: clamp(12px, 1.6vw, 20px); padding: 12px calc((100vw - min(880px, 86vw)) / 2) 26px; }
.sl-slide {
    flex-basis: min(880px, 86vw);
    min-height: clamp(310px, 31vw, 380px);
    padding: clamp(20px, 3vw, 38px);
    gap: clamp(12px, 2.4vw, 30px);
    border-radius: 28px;
}
.sl-top { margin-bottom: 14px; gap: 10px; }
.sl-icon { width: 52px; height: 52px; border-radius: 14px; }
.sl-kind { font-size: 10.5px; padding: 5px 10px; }
.sl-name { font-size: clamp(24px, 2.9vw, 36px); }
.sl-tib { font-size: clamp(17px, 1.8vw, 21px); }
.sl-desc { font-size: clamp(13.5px, 1.2vw, 15px); line-height: 1.55; margin-top: 8px; max-width: 420px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.sl-plats { margin-top: 14px; gap: 6px; }
.sl-plat { padding: 6px 12px 6px 9px; font-size: 12px; }
.sl-plat svg { width: 16px; height: 16px; }
.sl-cta { margin-top: 16px; padding: 10px 20px; font-size: 14px; }
.sl-phone { width: min(190px, 72%); border-width: 6px; border-radius: 32px; }
.sl-laptop { border-radius: 12px; max-width: 420px; }
.sl-laptop .win-bar { padding: 8px 12px; }
.sl-arrow { width: 44px; height: 44px; font-size: 20px; }
.sl-controls { gap: 14px; }

@media (max-width: 820px) {
    .sl-slide { flex-basis: 86vw; min-height: 0; padding: 20px 20px 0; border-radius: 24px; }
    .sl-track { padding-left: 7vw; padding-right: 7vw; }
    .sl-media { height: 220px; margin: 0 -8px; }
    .sl-phone { width: 150px; }
    .sl-laptop { max-width: 100%; }
    .sl-name { font-size: 24px; }
    .sl-desc { -webkit-line-clamp: 4; }
}


/* =====================================================================
   ICON TILES: above the slider, larger, English + Tibetan titles
   ===================================================================== */
.apps2-grid-wrap { margin-top: 0; }
.app-icon-grid { display: flex; flex-wrap: wrap; justify-content: center; gap: 20px; }
.app-tile { flex: 0 1 218px; padding: 32px 16px 26px; border-radius: 30px; gap: 8px; }
.app-tile[hidden] { display: none; }
.tile-icon { width: 128px; height: 128px; border-radius: 30px; }
.tile-name { font-size: 18px; line-height: 1.25; margin-top: 8px; }
.tile-tib { font-family: 'Noto Serif Tibetan', serif; font-size: 19px; line-height: 1.75; font-weight: 600; color: #F0CC78; }
.tile-plats { margin-top: auto; padding-top: 10px; gap: 7px; }
.tile-plat { font-size: 12.5px; padding: 6px 12px 6px 9px; }
.tile-plat svg { width: 16px; height: 16px; }
@media (max-width: 560px) {
    .app-icon-grid { gap: 14px; }
    .app-tile { flex-basis: calc(50% - 7px); padding: 24px 10px 20px; border-radius: 24px; }
    .tile-icon { width: 104px; height: 104px; border-radius: 25px; }
    .tile-name { font-size: 16px; }
    .tile-tib { font-size: 17px; }
}
.sl { margin-top: clamp(44px, 6vw, 72px); }

/* Tibetan names on the big switch */
.kind-tib { font-family: 'Noto Serif Tibetan', serif; font-size: clamp(21px, 2.1vw, 25px); line-height: 1.6; font-weight: 700; color: #F0CC78; margin-top: -4px; }
.kind-tile.is-active .kind-tib { color: #FFE9A8; }
html:not(.dark) .tile-tib { color: #8A5A00; }
html:not(.dark) .kind-tib { color: #8A5A00; }
html:not(.dark) .kind-tile.is-active .kind-tib { color: #FFE9A8; }


/* bilingual title above the icon tiles: Tibetan | English */
.apps2-grid-head { justify-content: center; text-align: center; margin: 4px 0 22px; }
.apps2-grid-head h3 { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 16px; }
.gt-tib { font-family: 'Noto Serif Tibetan', serif; font-size: 1.2em; line-height: 1.6; font-weight: 700; color: #F0CC78; }
.gt-sep { color: rgba(255,255,255,0.35); font-weight: 400; }
.gt-en { font-family: 'Plus Jakarta Sans', 'Bricolage Grotesque', sans-serif; font-weight: 800; letter-spacing: -0.02em; }
html:not(.dark) .gt-tib { color: #8A5A00; }
html:not(.dark) .gt-sep { color: rgba(11,18,48,0.4); }

/* fit five tiles on one row; tidy the bilingual title on phones */
.app-icon-grid { gap: 16px; }
.app-tile { flex-basis: 208px; }
@media (max-width: 560px) {
    .app-icon-grid { gap: 12px; }
    .app-tile { flex-basis: calc(50% - 6px); }
    .apps2-grid-head h3 { flex-direction: column; gap: 0; }
    .gt-sep { display: none; }
}
