@font-face {
    font-family: "Khmer OS Battambang";
    src: url("/hqms-brand-assets.php?asset=battambang-font&v=20261118-1") format("truetype");
    font-weight: 400;
    font-style: normal;
    font-display: swap;
    unicode-range: U+1780-17FF, U+19E0-19FF, U+200B-200D, U+25CC;
}

:root {
    color-scheme: light;
    --ink: #112f40;
    --muted: #496373;
    --blue: #075b80;
    --sky: #04a7e5;
    --line: #dae7ee;
    --surface: #fff;
    --canvas: #f5fbfd;
    font-family: "Khmer OS Battambang", "Segoe UI", sans-serif;
    color: var(--ink);
    background: var(--canvas);
    line-height: 1.7;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.43; }
a { color: var(--blue); }
a:focus-visible, summary:focus-visible {
    outline: 3px solid #087cae;
    outline-offset: 4px;
}
.container { width: min(1160px, calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: 12px; left: 12px; transform: translateY(-175%); padding: 8px 14px; background: white; z-index: 2; }
.skip:focus { transform: none; }
.site-header { background: var(--surface); border-bottom: 1px solid var(--line); }
.header-row, .header-row nav, .brand { display: flex; align-items: center; }
.header-row { min-height: 78px; justify-content: space-between; gap: 16px; }
.header-row nav { gap: clamp(16px, 3vw, 37px); }
.brand { gap: 11px; color: var(--ink); text-decoration: none; line-height: 1.15; font: 800 17px/1.15 "Segoe UI", sans-serif; }
.brand img { flex: none; }
.brand span span { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 600; }
.header-guide, .web-link { font-size: .9rem; font-weight: 700; text-decoration: none; }
.header-guide:hover, .web-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.button {
    display: inline-flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
    padding: 10px 17px;
    min-height: 46px;
    border: 1px solid transparent;
    border-radius: 11px;
    text-decoration: none;
    line-height: 1.5;
    font-weight: 720;
    font-size: .93rem;
}
.button-outline { color: var(--blue); border-color: #c4dce8; background: #fbfdfe; }
.button-outline:hover { background: #e9f6fc; border-color: #a2cddd; }
.button-primary { background: #075b80; color: white; }
.button-primary:hover { background: #084766; }
.hero {
    background: radial-gradient(ellipse at 73% 24%, #dff4fc 0%, transparent 66%), linear-gradient(#f7fcfe, var(--canvas));
    padding-block: clamp(36px, 6.2vw, 88px) 46px;
}
.hero-grid { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: clamp(27px, 5.5vw, 80px); }
.hero h1 { font-size: clamp(2rem, 4vw, 3.75rem); line-height: 1.36; font-weight: 800; }
.hero h1 span { display: block; color: var(--blue); }
.hero p { margin-block: 19px 25px; max-width: 45ch; color: var(--muted); font-size: clamp(.99rem, 1.4vw, 1.1rem); }
.product-preview { min-width: 0; }
.screen {
    padding: clamp(14px, 2.4vw, 28px);
    background: linear-gradient(145deg, #14384d, #0a2333 62%);
    color: #edf8fe;
    border: 1px solid #345c71;
    border-radius: clamp(16px, 2.3vw, 28px);
    box-shadow: 0 24px 52px #14384d38, inset 0 1px 0 #b9e1f033;
}
.screen-header { display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #345365; padding-bottom: 13px; margin-bottom: 15px; }
.screen-header span { font: 750 clamp(.62rem, 1.3vw, .84rem)/1.2 "Segoe UI", sans-serif; }
.screen-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 14px; }
.screen-call { display: flex; min-height: clamp(114px, 14vw, 193px); flex-direction: column; justify-content: center; gap: 5px; padding: 12px 13px; background: #17384b; border-left: 3px solid #3dc9f7; border-radius: 3px 10px 10px 3px; }
.screen-call span { font-size: clamp(.63rem, 1.15vw, .86rem); }
.screen-call strong { color: #64d7ff; font: 800 clamp(2.4rem, 5.4vw, 5.4rem)/1.02 "Segoe UI", sans-serif; letter-spacing: -.05em; }
.screen-rooms { list-style: none; margin: 0; padding: 0; display: grid; grid-template-rows: repeat(3, 1fr); gap: 5px; }
.screen-rooms li { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding-inline: 7px; border-bottom: 1px solid #345365; font-size: clamp(.6rem, 1vw, .78rem); color: #dbedf5; }
.screen-rooms strong { font: 750 clamp(.8rem, 1.55vw, 1.05rem)/1.25 "Segoe UI", sans-serif; }
.screen-rooms .room-active { background: #224c63; border-radius: 7px; border-bottom-color: transparent; }
.room-active strong { color: #7bddff; }
figcaption { margin-top: 12px; text-align: center; color: var(--muted); font-size: .77rem; }
.downloads { padding-block: 6px 44px; }
.section-heading { margin-bottom: 17px; }
.section-heading p { color: var(--muted); margin-top: 5px; }
h2 { font-size: clamp(1.32rem, 2vw, 1.8rem); }
.cards { display: grid; grid-template-columns: 1fr 1fr; gap: 19px; }
.app-card { display: flex; flex-direction: column; gap: 15px; min-width: 0; background: var(--surface); border: 1px solid var(--line); padding: clamp(18px, 2.45vw, 30px); border-radius: 20px; box-shadow: 0 8px 25px #123c5310; }
.card-heading { display: flex; align-items: center; gap: 14px; }
.card-heading h3 { font: 750 1.39rem/1.18 "Segoe UI", sans-serif; }
.platform { margin-top: 4px; color: var(--muted); font: 600 .84rem/1.3 "Segoe UI", sans-serif; }
.device-icon { display: grid; place-items: center; width: 51px; height: 51px; flex: none; position: relative; border-radius: 14px; background: #e3f4fc; color: var(--blue); }
.device-icon::before { content: ""; display: block; border: 2px solid currentColor; }
.device-icon::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; }
.device-kiosk::before { width: 17px; height: 25px; border-radius: 4px; }
.device-kiosk::after { width: 5px; height: 2px; top: 32px; }
.device-tv::before { width: 25px; height: 17px; border-radius: 3px; margin-top: -3px; }
.device-tv::after { width: 12px; height: 2px; top: 35px; }
.description { color: var(--muted); }
.card-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.download-status { font-size: .8rem; color: var(--muted); }
.pending { padding: 7px 11px; border-radius: 7px; background: #edf5f9; }
.web-link { margin-inline-start: auto; min-height: 44px; display: inline-flex; align-items: center; gap: 6px; }
.install { padding-block: 7px 38px; }
.guide-list { margin-top: 16px; display: grid; gap: 9px; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
summary { padding: 13px 16px; color: var(--ink); font-weight: 690; cursor: pointer; }
summary::marker { color: var(--blue); }
details ol { margin: 0; padding: 0 23px 15px 44px; color: var(--muted); }
details li + li { margin-top: 6px; }
details p { padding: 0 17px 17px; color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding-block: 18px 22px; color: var(--muted); font: 500 .81rem/1.4 "Segoe UI", sans-serif; }
@media (max-width: 740px) {
    .container { width: calc(100% - 36px); }
    .header-row { min-height: 70px; }
    .header-guide { display: none; }
    .hero { padding-block: 31px 29px; }
    .hero-grid { grid-template-columns: 1fr; gap: 25px; }
    .product-preview { width: min(100%, 475px); }
    .cards { grid-template-columns: 1fr; gap: 12px; }
    .downloads { padding-bottom: 28px; }
}
@media (max-width: 375px) {
    .brand { font-size: 14px; gap: 6px; }
    .brand img { width: 34px; height: 34px; }
    .brand span span { font-size: 11px; }
    .header-row .button { padding-inline: 8px; font-size: .75rem; gap: 4px; }
    .screen-grid { gap: 6px; }
    .screen-call { padding-inline: 7px; }
    .screen-rooms li { padding-inline: 4px; }
    .card-actions { gap: 5px 10px; }
}
