:root {
    color-scheme: light;
    --ink: #0b1f36;
    --muted: #4a5d73;
    --blue: #0a72b0;
    --night: #0b2a4a;
    --orange: #0e7b72;
    --accent-light: #33b5a9;
    --orange-hover: #0b665f;
    --rust: #0a72b0;
    --paper: #fff;
    --tint: #f2f7fb;
    --line: #d6e3ee;
    --radius: 13px;
    --width: 1200px;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
    color: var(--ink);
    background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-underline-offset: 4px; }
button, input, textarea, select { font: inherit; }
button { cursor: pointer; }
h1, h2, h3, p, figure { margin: 0; }
h1, h2, h3 { line-height: 1.2; text-wrap: balance; }
h1 { font-size: clamp(2.15rem, 4.6vw, 3.4rem); letter-spacing: -.045em; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); letter-spacing: -.045em; }
h3 { font-size: 1.14rem; letter-spacing: -.018em; }
section[id] { scroll-margin-top: 84px; }
:focus-visible { outline: 3px solid #0a84cc; outline-offset: 4px; }
[hidden] { display: none !important; }

.wrap { width: min(var(--width), calc(100% - 64px)); margin-inline: auto; }
.skip { position: fixed; top: 10px; left: 20px; z-index: 4; padding: 10px 16px; background: white; transform: translateY(-160%); }
.skip:focus { transform: none; }
.top { position: sticky; z-index: 3; top: 0; background: var(--paper); border-bottom: 1px solid var(--line); }
.top-inner { min-height: 71px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 1.65rem; line-height: 1; font-weight: 780; letter-spacing: -.06em; }
.brand-mark { width: 40px; height: 40px; display: block; }
.brand-name { letter-spacing: .04em; color: var(--night); }
.brand-dot { color: var(--rust); }
.top-links, .admin-nav { display: flex; align-items: center; gap: clamp(15px, 3.3vw, 40px); }
.top-links a, .admin-nav a { text-decoration: none; color: var(--muted); font-size: .95rem; font-weight: 600; }
.top-links a:hover, .admin-nav a:hover { color: var(--rust); }

.button { display: inline-flex; align-items: center; justify-content: center; gap: 9px; padding: 10px 18px; min-height: 48px; border-radius: 8px; border: 1px solid transparent; font-weight: 700; font-size: .94rem; color: #fff; background: var(--orange); text-decoration: none; line-height: 1.3; }
.button:hover { background: var(--orange-hover); }
.button-small { padding: 8px 14px; min-height: 41px; font-size: .9rem; }
.button svg, .text-link svg { width: 19px; height: 19px; }
.button-ghost { background: transparent; border-color: #4f7aa3; color: white; }
.button-ghost:hover { background: #12385f; }
.button:disabled { cursor: wait; opacity: .65; }
.text-link, .back-link { font-weight: 700; color: var(--blue); }
.text-link { display: inline-flex; gap: 8px; align-items: center; }

.hero { background: var(--night); color: white; }
.hero-grid { display: grid; grid-template-columns: 1fr minmax(0, .97fr); align-items: center; gap: clamp(28px, 5vw, 80px); padding-block: 60px; }
.hero-copy h1 { max-width: 590px; font-size: clamp(2.6rem, 5.1vw, 4.75rem); line-height: 1.09; letter-spacing: -.055em; margin-top: 18px; }
.hero-dot { color: var(--accent-light); }
.eyebrow { display: flex; align-items: center; gap: 10px; color: #bccbdc; font-size: .77rem; font-weight: 740; letter-spacing: .14em; }
.eyebrow span { width: 13px; height: 2px; background: var(--accent-light); }
.hero-lead { color: #c9d8e8; max-width: 52ch; font-size: clamp(1rem, 1.55vw, 1.18rem); margin-top: 20px; }
.pending { color: var(--rust); display: block; font-size: .78rem; }
.hero-pending { color: #ffd0ae; margin-top: 11px; }
.actions { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 26px; }
.hero-art { position: relative; }
.hero-art img { width: 100%; border-radius: var(--radius); border: 1px solid #1d4570; box-shadow: 0 14px 28px #05142455; }
.hero-art figcaption { position: absolute; left: 12px; bottom: 10px; padding: 3px 7px; border-radius: 4px; background: #101a2d; color: #c9d8e8; font-size: .7rem; }

.section { padding-block: clamp(44px, 6.3vw, 80px); }
.band { background: var(--tint); border-block: 1px solid var(--line); }
.section-head { margin-bottom: 28px; }
.section-head :is(h1, h2) + p { margin-top: 12px; max-width: 68ch; }
.section-head p { color: var(--muted); }
.section-head .pending { margin-top: 8px; }
.split { display: flex; justify-content: space-between; align-items: end; gap: 14px; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.card, .steps li { border: 1px solid var(--line); padding: 22px; border-radius: var(--radius); background: var(--paper); }
.card p, .steps p { color: var(--muted); margin-top: 8px; }
.problem p { display: flex; align-items: flex-start; gap: 9px; }
.problem svg { flex: none; width: 18px; height: 18px; margin-top: 3px; color: var(--rust); }
.card-icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 9px; color: var(--blue); background: #e8f1f8; margin-bottom: 13px; }
.coming-list { display: grid; gap: 12px; margin-top: 16px; }
.coming-card { display: flex; align-items: flex-start; gap: 14px; }
.coming-badge { flex: none; padding: 3px 9px; border-radius: 5px; background: var(--orange); color: #fff; font-size: .78rem; font-weight: 700; }
.compatibility { margin-top: 20px; color: var(--muted); }
.steps { list-style: none; margin: 0; padding: 0; }
.step-number { display: grid; place-items: center; width: 33px; height: 33px; border: 1px solid #a9d9d4; background: #e6f4f2; border-radius: 50%; color: var(--orange); font-size: .88rem; font-weight: 750; margin-bottom: 12px; }

.story { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.story a { display: block; height: 100%; text-decoration: none; }
.story a:hover h3 { color: var(--rust); text-decoration: underline; }
.story a:focus-visible { outline-offset: -3px; }
.story img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: var(--tint); }
.story-body { padding: 18px 20px; }
.story-body p { margin-top: 8px; color: var(--muted); }
time { display: block; color: var(--muted); font-size: .85rem; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 17px; margin-top: 22px; color: var(--muted); }
.pagination a { font-weight: 650; color: var(--blue); }

.trial-band { background: #e8f1f8; }
.trial-grid, .faq-grid { display: grid; grid-template-columns: minmax(0, .66fr) minmax(0, 1fr); gap: clamp(20px, 5vw, 68px); }
.trial-grid .eyebrow { color: var(--blue); margin-bottom: 11px; }
.trial-grid .eyebrow span { background: var(--orange); }
.trial-form, .panel { border: 1px solid var(--line); border-radius: var(--radius); background: white; padding: clamp(16px, 3vw, 28px); }
.form-hint { color: var(--muted); font-size: .88rem; margin-bottom: 14px; }
.fields { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 13px 16px; }
.full { grid-column: 1 / -1; }
.field label, .vertical-form label, .inline-form label, .filters label { font-weight: 650; font-size: .9rem; }
label:not(.checkbox), .field input:not([type=checkbox]), .field textarea { display: block; }
:is(input:not([type=checkbox]):not([type=hidden]), textarea, select) { width: 100%; padding: 8px 10px; border: 1px solid #aebdcb; border-radius: 7px; min-height: 44px; color: var(--ink); background: white; margin-top: 4px; font-size: 1rem; font-weight: 400; }
input::placeholder { color: #5a6879; }
textarea { resize: vertical; }
.checkbox { display: flex; gap: 9px; align-items: flex-start; }
.checkbox input { accent-color: var(--blue); width: 18px; height: 18px; flex: none; margin: 2px 0 0; }
.field-error { color: #a2261d; font-size: .84rem; margin-top: 3px; }
.field-error:empty, .field-status:empty { display: none; }
[aria-invalid=true] { border-color: #a2261d !important; }
.field-status { margin-top: 8px; font-size: .9rem; }
.trial-form > .field-error:not(:empty) { margin-bottom: 12px; }
.trial-form > .button { margin-top: 15px; }

details { border-bottom: 1px solid var(--line); padding: 13px 0; }
summary { cursor: pointer; font-weight: 700; }
details p { margin-top: 6px; color: var(--muted); }
.footer { background: var(--night); color: white; padding-block: 32px; }
.footer-inner { display: flex; justify-content: space-between; gap: 20px 40px; flex-wrap: wrap; }
.footer-inner p, .footer-inner small { color: #bdcbdc; }
.footer-inner a { display: block; }
.footer-inner strong { letter-spacing: .09em; }

.prose { max-width: 820px; }
.narrow { max-width: 460px; }
.prose > :is(h1, p, form, dl), .narrow > :is(h1, p, form) { margin-bottom: 16px; }
.back-link { display: inline-block; margin-bottom: 15px; }
.post-head { margin-bottom: 22px; }
.post-head p { margin-top: 13px; color: var(--muted); font-size: 1.13rem; }
.post-image { width: 100%; border-radius: var(--radius); margin-bottom: 24px; }
.markdown > * + * { margin-top: 15px; }
.markdown h2 { font-size: 1.55rem; }
.markdown a { color: var(--blue); }

.admin { background: var(--tint); }
.admin .section { min-height: 67vh; padding-block: 42px; }
.text-button { padding: 0; background: none; border: 0; color: var(--blue); font-size: .95rem; font-weight: 650; }
.vertical-form { display: grid; gap: 12px; justify-items: start; }
.vertical-form > label { width: 100%; }
.vertical-form small { color: var(--muted); }
.admin-preview { max-width: min(100%, 320px); border-radius: 8px; }
.filters, .inline-form { display: flex; flex-wrap: wrap; align-items: end; gap: 13px; margin-bottom: 18px; }
.filters > label:first-child { flex: 1 1 240px; }
.filters > a { align-self: center; }
.table-wrap { overflow: auto; border: 1px solid var(--line); border-radius: var(--radius); background: white; }
table { width: 100%; border-collapse: collapse; text-align: left; font-size: .9rem; }
th, td { padding: 11px 14px; border-bottom: 1px solid var(--line); }
th { background: #e8f1f8; white-space: nowrap; }
td { max-width: 220px; overflow-wrap: anywhere; }
td a { font-weight: 700; color: var(--blue); }
tr:last-child td { border-bottom: 0; }
.record { display: grid; grid-template-columns: minmax(110px, 1fr) minmax(0, 2fr); gap: 8px 15px; }
.record dt { font-weight: 700; }
.record dd { margin: 0; overflow-wrap: anywhere; }
.notice { padding: 9px 12px; background: #dcefe5; border-radius: 7px; color: #145137; }
.notice.error, .button.danger { background: #ffe4df; color: #8c2019; }
.delete-panel > form { margin-top: 9px; }
.delete-panel .button { margin-top: 8px; }

@media (max-width: 760px) {
    .wrap { width: calc(100% - 34px); }
    .top-inner { min-height: 62px; gap: 11px; }
    .coming-card { flex-direction: column; gap: 9px; }
    .top-links { gap: 12px; }
    .top-links a:not(:last-child) { display: none; }
    .hero-grid { grid-template-columns: 1fr; gap: 24px; padding-block: 36px; }
    .hero-copy h1 { margin-top: 12px; }
    .hero-lead { margin-top: 12px; }
    .actions { margin-top: 19px; }
    .three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .trial-grid, .faq-grid { grid-template-columns: 1fr; gap: 12px; }
    .trial-grid > .section-head, .faq-grid > .section-head { margin-bottom: 9px; }
    .admin-nav { gap: 10px; }
}

@media (max-width: 470px) {
    .brand { font-size: 1.36rem; gap: 6px; }
    .brand-mark { width: 34px; height: 34px; }
    .top .button { padding-inline: 9px; font-size: .8rem; }
    .top-links a, .admin-nav a, .text-button { font-size: .84rem; }
    .three { grid-template-columns: 1fr; }
    .fields { grid-template-columns: 1fr; }
    .button { min-height: 44px; }
    .filters > label:not(:first-child) { flex: 1 1 115px; }
}

.video-grid, .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.media-card { min-width: 0; overflow: hidden; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); }
.video-frame, .gallery-image { display: block; width: 100%; aspect-ratio: 16 / 10; background: var(--tint); }
.video-frame { background: var(--night); }
.video-frame video, .gallery-image img { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-fallback { display: grid; height: 100%; place-items: center; color: white; }
.gallery-image:focus-visible { outline-offset: -4px; }
.media-caption { padding: 15px 18px; }
.media-caption p { color: var(--muted); margin-block: 5px; }
.media-caption small { color: var(--muted); }
.image-dialog { padding: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--paper); max-width: 94vw; }
.image-dialog::backdrop { background: #0b2a4add; }
.image-dialog form { display: flex; justify-content: flex-end; padding: 8px; }
.image-dialog img { width: auto; max-width: min(100%, 1280px); max-height: calc(88vh - 56px); object-fit: contain; }

@media (max-width: 1000px) {
    .top-links { gap: 17px; }
    .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .video-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
    .gallery-grid { grid-template-columns: minmax(0, 1fr); }
}

.landing-page { font-size: 16px; line-height: 1.5; }
.landing-page :is(h1, h2, h3) { line-height: 1.15; }
.landing-page h1 { font-size: 44px; letter-spacing: -.045em; }
.landing-page h2 { font-size: 30px; letter-spacing: -.035em; }
.landing-page h3 { font-size: 17px; letter-spacing: -.012em; }
.landing-page .top-inner { min-height: 59px; }
.landing-page .top-links { gap: 24px; }
.landing-page .section { padding-block: 56px; }
.landing-page .section-head { margin-bottom: 18px; }
.landing-page .section-head :is(h1, h2) + p { margin-top: 8px; }

.landing-page .hero-grid { grid-template-columns: minmax(0, .47fr) minmax(0, .53fr); gap: 24px; padding-block: 48px; }
.landing-page .hero-copy h1 { margin-top: 10px; }
.landing-page .hero-lead { font-size: 16px; margin-top: 12px; max-width: none; }
.hero-description { font-size: 15px; color: #c9d8e8; margin-top: 8px; }
.landing-page .actions { margin-top: 16px; gap: 10px; }
.landing-page .actions .button { min-height: 44px; }
.hero-proof { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 16px; align-items: start; }
.hero-proof details { border: 0; padding: 0; }
.hero-proof summary { display: flex; align-items: start; gap: 6px; font-size: 13px; font-weight: 650; }
.hero-proof summary::-webkit-details-marker { display: none; }
.hero-proof summary span { color: var(--accent-light); }
.hero-proof summary::after { content: ""; flex: none; width: 6px; height: 6px; margin-top: 5px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.hero-proof details[open] summary::after { margin-top: 8px; transform: rotate(225deg); }
.hero-proof p { color: #c9d8e8; font-size: 14px; }

.landing-page .card { padding: 16px; }
.landing-page .card p { margin-top: 6px; }
.feature-heading { display: flex; align-items: center; gap: 10px; }
.landing-page .card-icon { flex: none; width: 34px; height: 34px; margin: 0; }
.landing-page .card-icon svg { width: 20px; height: 20px; }
.landing-page .compatibility { margin-top: 16px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.landing-page .media-caption { padding: 10px 14px; }
.landing-page .media-caption p { margin: 4px 0 0; }
.video-frame { position: relative; }
.video-duration { position: absolute; top: 8px; right: 8px; pointer-events: none; color: var(--paper); background: var(--night); font-size: 13px; font-weight: 650; border-radius: 5px; padding: 2px 7px; }
.landing-page .gallery-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.gallery-caption { padding: 8px 11px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; font-weight: 700; }
.image-dialog-caption { max-width: 70ch; padding: 10px 14px; }
.landing-page .image-dialog img { max-height: calc(84vh - 110px); }

.audience-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; }
.info-list, .trust-list { list-style: none; margin: 0; padding: 0; }
.info-list li { display: flex; align-items: start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); }
.info-list p { color: var(--muted); margin-top: 4px; }
.info-list .step-number { flex: none; margin: 0; }
.landing-page .trial-grid { grid-template-columns: minmax(0, .35fr) minmax(0, .65fr); gap: 24px; }
.landing-page .trial-grid > .section-head { margin: 0; }
.trust-list { display: grid; gap: 8px; margin-top: 14px; color: var(--ink); }
.trust-list span { color: var(--orange); margin-right: 5px; }
.landing-page .trial-form { padding: 16px; }
.landing-page .form-hint { margin-bottom: 10px; }
.landing-page .fields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.landing-page .trial-form > .button { margin-top: 12px; }
.faq-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; align-items: start; }
.faq-list details { padding: 10px 0; }
.faq-list summary { font-size: 16px; font-weight: 650; }
.landing-page .footer { padding-block: 20px; }

@media (max-width: 1050px) {
    .landing-page .gallery-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .landing-page .top-links { gap: 16px; }
    .landing-page #tinh-nang .three { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
    .landing-page { font-size: 15px; }
    .landing-page h1 { font-size: 30px; }
    .landing-page h2 { font-size: 24px; }
    .landing-page h3 { font-size: 16px; }
    .landing-page .section { padding-block: 36px; }
    .landing-page .section-head { margin-bottom: 16px; }
    .landing-page .hero-grid { grid-template-columns: minmax(0, 1fr); gap: 18px; padding-block: 32px; }
    .landing-page .hero-lead { font-size: 15px; }
    .hero-proof { grid-template-columns: minmax(0, 1fr); gap: 6px; margin-top: 12px; }
    .landing-page .button { min-height: 44px; }
    .landing-page .actions { gap: 8px; }
    .landing-page .actions .button { padding-inline: 12px; }
    .landing-page #tinh-nang .three { grid-template-columns: minmax(0, 1fr); }
    .landing-page .gallery-grid {
        grid-template-columns: none;
        grid-auto-columns: 80%;
        grid-auto-flow: column;
        overflow-x: auto;
        overscroll-behavior-inline: contain;
        scroll-snap-type: x mandatory;
        padding-bottom: 8px;
    }
    .landing-page .gallery-grid figure { scroll-snap-align: start; }
    .landing-page .trial-grid, .audience-grid, .faq-list { grid-template-columns: minmax(0, 1fr); }
    .landing-page .trial-grid, .audience-grid { gap: 20px; }
}
