/* ============================================================================
   aj-media.css — halaman Aset Media (aset-media.html, publik) dan Aset Media
   internal (aset-media-internal.html), dalam desain baru beranda.

   Yang dipakai bersama — token, navbar dua wujud, menu Solusi & menu ponsel,
   hero ringkas (.h4-page-hero), seksi isi (.h4-sec), tombol kapsul, penutup,
   footer — ada di aj-home4.css; berkas ini cuma bagian khas kedua halaman:
   kipas gambar di hero, logo & ikon, aturan pakai logo, galeri gambar
   editorial, penampil deck & brosur (publik); warna & huruf, galeri App
   Store & Play Store, teks siap salin, dan pos Instagram (internal).

   Warna, logo, dan huruf yang ditampilkan halaman ini adalah isi kit merek —
   identitas landing & aplikasi sejak Oktober 2026 (indigo #3030B0, tinta
   #0A0A0A, lila, kanvas, biru mode gelap; Special Gothic Expanded One,
   Special Gothic, Figtree). Latar pratinjau logo sengaja sama di tema gelap:
   tiap versi logo dirancang untuk latar tertentu.

   Kipas & galeri toko halaman internal ditulis scripts/render_store_shots.mjs
   (npm run media:store); kipas, galeri editorial, brosur & deck halaman
   publik dan pos Instagram halaman internal ditulis
   scripts/render_media_docs.mjs (npm run media:docs) — semuanya di antara
   penanda aj-media-*. Galerinya memakai pratinjau WebP dan baru mengambil
   berkas penuh saat diunduh.
   ========================================================================== */

/* Tombol unduh / salin kecil: kapsul abu di atas seksi putih (abu tua di
   tema gelap); di dalam kartu abu jadi putih supaya tetap terlihat. */
.h4-aset-media {
    --ajm-chip: var(--h4-card);
    --ajm-chip-hover: #e8e8ec;
}

.uc-dark .h4-aset-media {
    --ajm-chip-hover: #222222;
}

/* ── Hero: judul, dua tombol, lalu kipas gambar toko yang naik dari tepi
   bawahnya ─────────────────────────────────────────────────────────────── */

.ajm-hero {
    padding-bottom: 0;
    overflow: hidden;
    overflow: clip;
}

.ajm-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 28px;
}

/* Ponsel: dua tombol bertumpuk selebar kolom, seperti klaim link di hero
   beranda. */
@media (max-width: 599.98px) {
    .ajm-hero-actions .h4-btn {
        flex: 1 1 100%;
        padding: 0 20px;
    }
}

/* Ajakan kedua di atas biru hero & penutup (hitam di tema gelap): kapsul
   bergaris putih — .h4-btn-line bawaan bertulisan hitam untuk seksi putih. */
.ajm-hero .h4-btn-line,
.ajm-end .h4-btn-line {
    color: #ffffff;
    box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.5);
}

.ajm-hero .h4-btn-line:hover,
.ajm-end .h4-btn-line:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
}

.ajm-hero .h4-btn-line:focus-visible,
.ajm-end .h4-btn-line:focus-visible {
    outline-color: #ffffff;
}

/* Kalimat penutup dua baris yang seimbang, bukan satu-dua kata tersisa. */
.ajm-end .h4-end-lead {
    text-wrap: balance;
}

/* Tombol ZIP sedang merakit arsipnya (aj-media.js): labelnya jadi
   "Menyiapkan 3/33…", tombolnya tak bisa ditekan lagi. */
.ajm-zip[aria-busy='true'] {
    pointer-events: none;
    opacity: 0.75;
}

.ajm-zip [data-ajm-label] {
    font-variant-numeric: tabular-nums;
}

/* Kipas: lima gambar Play Store (tiga di ponsel) berdiri di tepi bawah hero,
   yang di samping miring dan sedikit mengecil (--i = posisi dari tengah,
   --d = jaraknya; ditulis render_store_shots.mjs). Bagian bawahnya terpotong
   tepi hero. --ajm-w = lebar satu gambar, --ajm-h = tingginya (9:16). */
.ajm-fan {
    --ajm-w: clamp(150px, 20vw, 264px);
    --ajm-h: calc(var(--ajm-w) * 16 / 9);
    position: relative;
    height: calc(var(--ajm-h) * 0.7);
    margin-top: 56px;
}

.ajm-fan img {
    position: absolute;
    left: 50%;
    bottom: calc(var(--ajm-h) * -0.3);
    display: block;
    width: var(--ajm-w);
    height: auto;
    border-radius: 16px;
    transform-origin: 50% 100%;
    transform: translateX(calc(-50% + var(--i) * 78%)) rotate(calc(var(--i) * 6deg)) scale(calc(1 - var(--d) * 0.08));
    z-index: calc(10 - var(--d));
    box-shadow: 0 28px 56px -30px rgba(8, 8, 40, 0.7);
}

/* Tema gelap tanpa bayangan; gambarnya sudah terang di atas hitam. */
.uc-dark .ajm-fan img {
    box-shadow: none;
}

/* Naik ke tempatnya satu per satu saat halaman dibuka — yang tengah dulu.
   `translate` (bukan transform) supaya tidak menimpa posisi kipasnya. */
@media (prefers-reduced-motion: no-preference) {
    .ajm-fan img {
        animation: ajm-rise 0.8s cubic-bezier(0.2, 1.15, 0.35, 1) both;
        animation-delay: calc(0.12s + var(--d) * 0.09s);
    }
}

@keyframes ajm-rise {
    from {
        opacity: 0;
        translate: 0 64px;
    }
}

/* Ponsel: tiga gambar tengah, lebih besar. */
@media (max-width: 599.98px) {
    .ajm-fan {
        --ajm-w: 42vw;
        margin-top: 44px;
    }

    .ajm-fan img[data-far] {
        display: none;
    }

    .ajm-fan img {
        transform: translateX(calc(-50% + var(--i) * 64%)) rotate(calc(var(--i) * 6deg)) scale(calc(1 - var(--d) * 0.08));
    }
}

/* ── Tombol kecil: unduh SVG/PNG, salin, tautan luar ──────────────────────── */

.ajm-dls {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.ajm-dl {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 38px;
    padding: 0 15px 0 12px;
    border: 0;
    border-radius: 9999px;
    background: var(--ajm-chip);
    box-shadow: inset 0 0 0 1px var(--h4-card-edge);
    color: var(--h4-sec-ink);
    font-family: var(--h4-text);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        transform 0.12s ease;
}

.ajm-dl svg {
    display: block;
    flex: none;
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.ajm-dl:hover {
    background: var(--ajm-chip-hover);
    color: var(--h4-sec-ink);
}

.ajm-dl:active {
    transform: scale(0.97);
}

.ajm-dl:focus-visible {
    outline: 2px solid var(--h4-sec-ink);
    outline-offset: 2px;
}

/* Ponsel & tablet: sedikit lebih ringkas, supaya SVG + PNG muat sebaris di
   petak ikon yang sempit (dua sejajar di 360px, empat sejajar di 700px). */
@media (max-width: 899.98px) {
    .ajm-dl {
        gap: 4px;
        height: 36px;
        padding: 0 11px 0 9px;
        font-size: 13px;
    }

    .ajm-dl svg {
        width: 16px;
        height: 16px;
    }

    .ajm-dls {
        gap: 6px;
    }
}

/* ── Logo & ikon: pratinjau di latarnya, nama & unduhan di bawahnya ──────── */

/* Ponsel: logo selebar kolom, ikon dua sejajar; tablet & desktop: logo dua
   sejajar, ikon empat sejajar. */
.ajm-assets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 14px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ajm-asset {
    min-width: 0;
}

.ajm-asset.is-wide {
    grid-column: span 2;
}

@media (min-width: 600px) {
    .ajm-assets {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 44px clamp(14px, 1.6vw, 28px);
    }
}

/* Logo 5:2, ikon 5:4 — di layar lebar keduanya kira-kira setinggi. Garis
   rambut di dalam tepinya: pratinjau putih/terang tetap berbatas di seksi
   putih, yang gelap tetap berbatas di seksi hitam. */
.ajm-preview {
    display: grid;
    place-items: center;
    aspect-ratio: 5 / 4;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px var(--h4-sec-edge);
}

.ajm-asset.is-wide .ajm-preview {
    aspect-ratio: 5 / 2;
}

.ajm-preview img {
    display: block;
    max-width: 100%;
}

.ajm-preview .is-logo {
    width: min(300px, 62%);
    height: auto;
}

.ajm-preview .is-mark {
    width: auto;
    height: 60px;
}

.ajm-preview .is-app-icon {
    width: 76px;
    height: 76px;
    border-radius: 22.5%;
    box-shadow: 0 14px 30px -16px rgba(20, 20, 120, 0.6);
}

.uc-dark .ajm-preview .is-app-icon {
    box-shadow: none;
}

@media (min-width: 900px) {
    .ajm-preview .is-mark {
        height: 72px;
    }

    .ajm-preview .is-app-icon {
        width: 92px;
        height: 92px;
    }
}

/* Latar tiap versi logo — sama di tema terang & gelap: kanvas aplikasi,
   hitam mode gelap, indigo merek. */
.ajm-preview.on-light {
    background: #f4f4f6;
}

.ajm-preview.on-dark {
    background: #0a0a0a;
}

.ajm-preview.on-brand {
    background: #3030b0;
}

.ajm-preview.on-paper {
    background: #ffffff;
}

.ajm-asset-name {
    margin: 18px 0 0;
    font-family: var(--h4-display);
    font-size: 18px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
}

.ajm-asset-meta {
    margin: 5px 0 0;
    font-family: var(--h4-sub);
    font-size: 15px;
    font-stretch: 125%;
    line-height: 1.4;
    color: var(--h4-sec-soft);
}

/* Aturan pakai logo: tiga butir dipisah garis rambut, seperti "Cara kami
   bekerja" di halaman Tentang. */
.ajm-rules {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    margin: 56px 0 0;
    padding: 0;
    list-style: none;
}

.ajm-rule {
    padding: 22px 0 24px;
    border-top: 1px solid var(--h4-sec-edge);
}

.ajm-rule h3 {
    margin: 0 0 10px;
    font-family: var(--h4-display);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
    text-wrap: balance;
}

.ajm-rule p {
    max-width: 34em;
    margin: 0;
    font-family: var(--h4-text);
    font-size: 16px;
    line-height: 1.6;
    color: var(--h4-sec-soft);
    text-wrap: pretty;
}

/* ── Warna & huruf ───────────────────────────────────────────────────────── */

/* Contoh warna: petak warna, lalu nama & kode di bawahnya — seperti kartu
   beranda. Seluruhnya satu tombol salin. Ponsel (2 kolom) & tablet (3
   kolom): Biru Aturjadwal, warna utamanya, selebar dua petak supaya lima
   warna mengisi barisnya tanpa sisa; tinggi petaknya tetap, jadi petak lebar
   & sempit di satu baris sama tinggi. Desktop: lima sejajar, 4:3. */
.ajm-swatches {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 28px 14px;
}

.ajm-swatches > :first-child {
    grid-column: span 2;
}

@media (min-width: 600px) {
    .ajm-swatches {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .ajm-swatches {
        grid-template-columns: repeat(5, minmax(0, 1fr));
        gap: 32px clamp(14px, 1.6vw, 28px);
    }

    .ajm-swatches > :first-child {
        grid-column: auto;
    }
}

.ajm-swatch {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 16px;
    background: none;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

.ajm-swatch-chip {
    display: block;
    width: 100%;
    height: 112px;
    border-radius: 16px;
    box-shadow: inset 0 0 0 1px var(--h4-sec-edge);
    transition: transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (min-width: 600px) {
    .ajm-swatch-chip {
        height: 136px;
    }
}

@media (min-width: 900px) {
    .ajm-swatch-chip {
        height: auto;
        aspect-ratio: 4 / 3;
    }
}

@media (hover: hover) {
    .ajm-swatch:hover .ajm-swatch-chip {
        transform: translateY(-4px);
    }
}

.ajm-swatch:active .ajm-swatch-chip {
    transform: scale(0.98);
}

.ajm-swatch:focus-visible {
    outline: 2px solid var(--h4-sec-ink);
    outline-offset: 6px;
}

.ajm-swatch-name {
    margin-top: 16px;
    font-family: var(--h4-display);
    font-size: 18px;
    line-height: 1.15;
}

/* Ikon salin mengikuti kata terakhir kodenya. */
.ajm-swatch-hex {
    display: block;
    margin-top: 6px;
    font-family: var(--h4-text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--h4-sec-soft);
    font-variant-numeric: tabular-nums;
    text-wrap: balance;
}

.ajm-swatch-hex svg {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-left: 6px;
    vertical-align: -3px;
    fill: currentColor;
}

.ajm-swatch:hover .ajm-swatch-hex,
.ajm-swatch.is-copied .ajm-swatch-hex {
    color: var(--h4-sec-ink);
}

/* Huruf: tiga kartu abu bertumpuk — peran, nama huruf ditulis dalam
   hurufnya sendiri, tautan Google Fonts di kanan (di bawahnya di ponsel). */
.ajm-fonts {
    display: grid;
    gap: 12px;
    margin: 48px 0 0;
    padding: 0;
    list-style: none;
}

.ajm-font {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px 32px;
    padding: 26px 24px 28px;
    border-radius: 20px;
    background: var(--h4-card);
    box-shadow: inset 0 0 0 1px var(--h4-card-edge);
}

.ajm-font > div {
    min-width: 0;
}

.ajm-font .ajm-dl {
    --ajm-chip: var(--h4-sec-bg);
}

.ajm-font-role {
    margin: 0 0 12px;
    font-family: var(--h4-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
    color: var(--h4-sec-soft);
}

.ajm-font-sample {
    margin: 0;
    font-family: 'Figtree', sans-serif;
    font-size: clamp(36px, 9vw, 64px);
    font-weight: 700;
    line-height: 1.05;
    letter-spacing: -0.02em;
    text-wrap: balance;
}

.ajm-font-sample.is-display {
    font-family: var(--h4-display);
    font-size: clamp(28px, 6.4vw, 54px);
    font-weight: 400;
    letter-spacing: 0;
}

.ajm-font-sample.is-sub {
    font-family: var(--h4-sub);
    font-stretch: 125%;
    font-weight: 400;
    letter-spacing: 0;
}

.ajm-font-weights {
    display: flex;
    flex-wrap: wrap;
    gap: 6px 20px;
    margin: 14px 0 0;
    font-family: 'Figtree', sans-serif;
    font-size: 16px;
    line-height: 1.4;
    color: var(--h4-sec-soft);
}

/* ── Gambar App Store & Play Store ───────────────────────────────────────── */

/* Judul & kalimat kiri, tab toko kanan (rata bawah); di ponsel tabnya di
   bawah kalimat. */
.ajm-toko-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px 48px;
    margin-bottom: 36px;
}

/* Lebih lebar dari kepala seksi biasa (780px): "Gambar App Store" tetap
   sebaris di layar 1920px, judulnya dua baris, bukan tiga. */
.ajm-toko-head .h4-sec-head {
    max-width: 960px;
    margin: 0;
}

/* Tab toko: kapsul bersegmen; yang terpilih hitam seperti .h4-btn-dark
   (biru merek di tema gelap). */
.ajm-tabs {
    display: inline-flex;
    flex: none;
    gap: 4px;
    padding: 4px;
    border-radius: 9999px;
    background: var(--h4-card);
    box-shadow: inset 0 0 0 1px var(--h4-card-edge);
}

.ajm-tab {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    min-width: 132px;
    padding: 10px 20px;
    border: 0;
    border-radius: 9999px;
    background: transparent;
    color: var(--h4-sec-soft);
    font-family: var(--h4-text);
    font-size: 16px;
    font-weight: 600;
    line-height: 1.15;
    cursor: pointer;
    transition:
        background-color 0.15s ease,
        color 0.15s ease;
}

.ajm-tab small {
    font-size: 12px;
    font-weight: 500;
    font-variant-numeric: tabular-nums;
    opacity: 0.85;
}

.ajm-tab:hover {
    color: var(--h4-sec-ink);
}

.ajm-tab[aria-selected='true'] {
    background: #0a0a0a;
    color: #ffffff;
}

.uc-dark .ajm-tab[aria-selected='true'] {
    background: var(--h4-blue);
}

.ajm-tab:focus-visible {
    outline: 2px solid var(--h4-sec-ink);
    outline-offset: 2px;
}

.ajm-panel[hidden] {
    display: none;
}

/* Galeri: dua kolom di ponsel, empat di tablet & desktop, dan di layar
   sangat lebar satu baris delapan — seperti deretan gambar di halaman toko —
   supaya gambar 9:16 (App Store 1:2,17) tidak lebih tinggi dari layarnya. */
.ajm-gallery {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 32px 14px;
}

@media (min-width: 700px) {
    .ajm-gallery {
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 40px clamp(14px, 1.6vw, 28px);
    }
}

@media (min-width: 1600px) {
    .ajm-gallery {
        grid-template-columns: repeat(8, minmax(0, 1fr));
        column-gap: clamp(16px, 1.2vw, 24px);
    }
}

.ajm-shot {
    min-width: 0;
    margin: 0;
}

.ajm-shot-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    /* Gambar tokonya berlatar putih seperti seksi ini: garis rambut supaya
       tepinya tetap terlihat (di tema gelap juga, di atas hitam). */
    box-shadow: 0 0 0 1px var(--h4-sec-edge);
    transition: translate 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}

@media (hover: hover) {
    .ajm-shot:hover .ajm-shot-img {
        translate: 0 -4px;
    }
}

/* Keterangan: nomor & tombol unduh sebaris, namanya di bawah selebar kolom —
   "Ketersediaan" tidak muat di samping tombol di kolom 150-an px. Kolom
   desktop yang lebar (900–1599px, empat sejajar): nomor & nama kiri, tombol
   kanan. */
.ajm-shot figcaption {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas:
        'num btn'
        'title title';
    align-items: center;
    column-gap: 10px;
    margin-top: 12px;
}

.ajm-shot-label {
    display: contents;
}

.ajm-shot-num {
    grid-area: num;
    font-family: var(--h4-text);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.3;
    color: var(--h4-sec-soft);
    font-variant-numeric: tabular-nums;
}

.ajm-shot-title {
    grid-area: title;
    margin-top: 6px;
    font-family: var(--h4-display);
    font-size: 16px;
    line-height: 1.15;
    text-wrap: balance;
}

/* Unduh satu gambar: tombol bulat ikon saja (namanya di aria-label). */
.ajm-shot .ajm-dl {
    grid-area: btn;
    width: 38px;
    height: 38px;
    padding: 0;
}

@media (min-width: 900px) and (max-width: 1599.98px) {
    .ajm-shot figcaption {
        grid-template-areas:
            'num btn'
            'title btn';
        align-items: start;
        margin-top: 16px;
    }

    .ajm-shot-title {
        margin-top: 4px;
        font-size: clamp(17px, 1.25vw, 20px);
    }

    .ajm-shot .ajm-dl {
        width: 40px;
        height: 40px;
    }
}

/* Satu baris delapan: kolomnya 160–190px, namanya tetap muat sebaris. */
@media (min-width: 1600px) {
    .ajm-shot-title {
        font-size: 17px;
    }
}

.ajm-shot .ajm-dl svg {
    width: 20px;
    height: 20px;
}

/* Feature graphic Play Store: gambar kiri, keterangan & unduhan kanan. */
.ajm-feature {
    display: grid;
    gap: 22px;
    align-items: center;
    margin-top: 56px;
    padding-top: 40px;
    border-top: 1px solid var(--h4-sec-edge);
}

.ajm-feature-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 16px;
    box-shadow: 0 0 0 1px var(--h4-sec-edge);
}

.ajm-feature-title {
    margin: 0;
    font-family: var(--h4-display);
    font-size: 24px;
    font-weight: 400;
    line-height: 1.1;
    letter-spacing: 0;
}

.ajm-note {
    max-width: 36em;
    margin: 10px 0 0;
    font-family: var(--h4-text);
    font-size: 16px;
    line-height: 1.6;
    color: var(--h4-sec-soft);
    text-wrap: pretty;
}

.ajm-feature .ajm-dls {
    margin-top: 20px;
}

/* App Store: keterangan ukuran & ZIP di bawah galeri. */
.ajm-panel-foot {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px 32px;
    margin-top: 56px;
    padding-top: 28px;
    border-top: 1px solid var(--h4-sec-edge);
}

.ajm-panel-foot .ajm-note {
    margin: 0;
}

@media (min-width: 900px) {
    .ajm-feature {
        grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
        gap: clamp(32px, 4vw, 72px);
        margin-top: 72px;
        padding-top: 56px;
    }

    .ajm-feature-title {
        font-size: clamp(24px, 2vw, 32px);
    }

    .ajm-note {
        font-size: 17px;
    }
}

/* ── Tentang Aturjadwal: teks siap salin dalam kartu abu ─────────────────── */

.ajm-copies {
    display: grid;
    gap: 14px;
}

@media (min-width: 900px) {
    .ajm-copies {
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        gap: clamp(14px, 1.6vw, 28px);
    }
}

.ajm-copy {
    padding: 22px 22px 26px;
    border-radius: 20px;
    background: var(--h4-card);
    box-shadow: inset 0 0 0 1px var(--h4-card-edge);
}

.ajm-copy .ajm-dl {
    --ajm-chip: var(--h4-sec-bg);
}

.ajm-copy-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.ajm-copy-title {
    margin: 0;
    font-family: var(--h4-display);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.2;
    letter-spacing: 0;
}

.ajm-copy-body p {
    margin: 0;
    font-family: var(--h4-text);
    font-size: 17px;
    line-height: 1.65;
    text-wrap: pretty;
}

.ajm-copy-body p + p {
    margin-top: 1em;
}

/* Ketentuan pakai aset: catatan kecil penutup seksi terakhir, di bawah garis
   rambut selebar seksi. */
.ajm-terms {
    margin-top: 48px;
    padding-top: 24px;
    border-top: 1px solid var(--h4-sec-edge);
}

.ajm-terms p {
    max-width: 60em;
    margin: 0;
    font-family: var(--h4-text);
    font-size: 15px;
    line-height: 1.6;
    color: var(--h4-sec-soft);
    text-wrap: pretty;
}

@media (min-width: 900px) {
    .ajm-copy {
        padding: 28px 28px 32px;
    }

    .ajm-copy-title {
        font-size: clamp(20px, 1.6vw, 24px);
    }

    .ajm-rules {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        column-gap: clamp(24px, 3vw, 56px);
        margin-top: 72px;
    }

    .ajm-rule h3 {
        font-size: clamp(20px, 1.5vw, 24px);
    }

    .ajm-asset-name,
    .ajm-swatch-name {
        font-size: clamp(18px, 1.35vw, 22px);
    }

    .ajm-font {
        margin-top: 64px;
        padding: 36px 36px 36px 40px;
    }

    .ajm-terms {
        margin-top: 64px;
    }
}

/* ── Kipas gambar editorial (halaman publik): gambar vertikal 4:5 ─────────── */

.ajm-fan.is-portrait {
    --ajm-w: clamp(170px, 22vw, 300px);
    --ajm-h: calc(var(--ajm-w) * 5 / 4);
}

@media (max-width: 599.98px) {
    .ajm-fan.is-portrait {
        --ajm-w: 46vw;
    }
}

/* ── Galeri gambar editorial: 16:9 dua-tiga kolom, 4:5 lima sebaris ────────── */

.ajm-gallery.is-wide {
    grid-template-columns: minmax(0, 1fr);
}

.ajm-gallery.is-portrait {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

/* Lima gambar 16:9: yang pertama selebar galeri, sisanya dua-dua — tanpa
   gambar sendirian di baris terakhir. */
@media (min-width: 700px) {
    .ajm-gallery.is-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ajm-gallery.is-wide > :first-child {
        grid-column: 1 / -1;
    }

    .ajm-gallery.is-portrait {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 1100px) {
    .ajm-gallery.is-portrait {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* Baris delapan galeri toko (≥1600px) tidak berlaku di sini. */
@media (min-width: 1600px) {
    .ajm-gallery.is-wide {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ajm-gallery.is-portrait {
        grid-template-columns: repeat(5, minmax(0, 1fr));
    }
}

/* ── Brosur & presentasi ─────────────────────────────────────────────────── */

/* Deck: satu slide selebar kolom, digeser (scroll-snap) atau lewat tombol &
   panah papan ketik (aj-media.js); di bawahnya nama, nomor slide, unduhan. */
.ajm-deck-stage {
    position: relative;
}

.ajm-deck-track {
    display: flex;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    border-radius: 20px;
    background: #ffffff;
    box-shadow: 0 0 0 1px var(--h4-sec-edge);
}

.ajm-deck-track::-webkit-scrollbar {
    display: none;
}

.ajm-deck-track:focus-visible {
    outline: 2px solid var(--h4-sec-ink);
    outline-offset: 3px;
}

.ajm-slide {
    flex: 0 0 100%;
    margin: 0;
    scroll-snap-align: start;
}

.ajm-slide img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
}

.ajm-deck-btn {
    position: absolute;
    top: 50%;
    display: grid;
    place-items: center;
    width: 48px;
    height: 48px;
    padding: 0;
    border: 0;
    border-radius: 9999px;
    background: #0a0a0a;
    color: #ffffff;
    cursor: pointer;
    translate: 0 -50%;
    transition:
        background-color 0.15s ease,
        opacity 0.2s ease;
}

.ajm-deck-btn.is-prev {
    left: 16px;
}

.ajm-deck-btn.is-next {
    right: 16px;
}

.ajm-deck-btn svg {
    width: 22px;
    height: 22px;
    fill: currentColor;
}

.ajm-deck-btn:hover {
    background: #262626;
}

.ajm-deck-btn:focus-visible {
    outline: 2px solid var(--h4-sec-ink);
    outline-offset: 3px;
}

.ajm-deck-btn[disabled] {
    opacity: 0;
    pointer-events: none;
}

.uc-dark .ajm-deck-btn {
    background: var(--h4-blue);
}

@media (max-width: 599.98px) {
    .ajm-deck-track {
        border-radius: 12px;
    }

    .ajm-deck-btn {
        width: 36px;
        height: 36px;
    }

    .ajm-deck-btn.is-prev {
        left: 8px;
    }

    .ajm-deck-btn.is-next {
        right: 8px;
    }

    .ajm-deck-btn svg {
        width: 18px;
        height: 18px;
    }
}

.ajm-deck-bar,
.ajm-doc-row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
    margin-top: 18px;
}

.ajm-deck-bar .ajm-doc-text {
    flex: 1 1 auto;
}

.ajm-deck-count {
    font-family: var(--h4-text);
    font-size: 15px;
    font-weight: 600;
    color: var(--h4-sec-soft);
    font-variant-numeric: tabular-nums;
}

.ajm-doc-name {
    margin: 0;
    font-family: var(--h4-display);
    font-size: 20px;
    font-weight: 400;
    line-height: 1.15;
    letter-spacing: 0;
}

.ajm-doc-meta {
    margin: 6px 0 0;
    font-family: var(--h4-text);
    font-size: 15px;
    line-height: 1.5;
    color: var(--h4-sec-soft);
    text-wrap: pretty;
}

/* Dua brosur: halaman-halaman PDF-nya sebagai pratinjau. Di layar lebar A5
   (dua halaman tegak sejajar) dua kali lebar kolom lipat tiga (dua lembar
   mendatar bertumpuk), jadi keduanya kira-kira setinggi — A5 dan A4 sama
   rasionya (1 : √2). */
.ajm-docs {
    display: grid;
    gap: 56px 32px;
    margin-top: 72px;
}

@media (min-width: 900px) {
    .ajm-docs {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
        align-items: end;
        column-gap: clamp(24px, 3vw, 48px);
    }

    .ajm-doc-name {
        font-size: clamp(20px, 1.6vw, 24px);
    }
}

.ajm-doc {
    min-width: 0;
}

.ajm-doc-pages {
    display: grid;
    gap: 12px;
}

.ajm-doc-pages.is-a5 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ajm-doc-pages img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 6px;
    box-shadow: 0 0 0 1px var(--h4-sec-edge);
}

/* ── Pos Instagram (halaman internal) ────────────────────────────────────── */

/* Pratinjau profil selebar ponsel (tetap putih seperti tangkapan layar, juga
   di tema gelap) di kiri; bio, foto profil, dan urutan posting di kanan. */
.ajm-ig {
    display: grid;
    gap: 32px;
}

@media (min-width: 900px) {
    .ajm-ig {
        grid-template-columns: 390px minmax(0, 1fr);
        align-items: start;
        gap: clamp(32px, 4vw, 64px);
    }
}

.ajm-ig-phone {
    width: 100%;
    max-width: 390px;
    padding-top: 18px;
    overflow: hidden;
    border-radius: 28px;
    background: #ffffff;
    color: #0a0a0a;
    font-family: var(--h4-text);
    box-shadow: 0 0 0 1px var(--h4-sec-edge);
}

.ajm-ig-user {
    margin: 0 16px 14px;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.ajm-ig-head {
    display: flex;
    align-items: center;
    gap: 18px;
    padding: 0 16px;
}

.ajm-ig-avatar {
    flex: none;
    width: 86px;
    height: 86px;
    border-radius: 50%;
}

.ajm-ig-name {
    margin: 0 0 6px;
    font-size: 15px;
    font-weight: 700;
}

.ajm-ig-stats {
    display: flex;
    gap: 22px;
    margin: 0;
    padding: 0;
    list-style: none;
    font-size: 13.5px;
}

.ajm-ig-stats li {
    display: flex;
    flex-direction: column;
    line-height: 1.25;
}

.ajm-ig-stats b {
    font-size: 16px;
}

.ajm-ig-cat {
    margin: 12px 16px 0;
    font-size: 13.5px;
    color: #737373;
}

.ajm-ig-bio {
    margin: 2px 16px 0;
    font-size: 14px;
    line-height: 1.4;
}

.ajm-ig-link {
    display: flex;
    align-items: center;
    gap: 4px;
    margin: 4px 16px 0;
    font-size: 14px;
    font-weight: 600;
    color: #00376b;
}

.ajm-ig-link svg {
    width: 15px;
    height: 15px;
    fill: currentColor;
}

.ajm-ig-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin: 14px 16px 0;
}

.ajm-ig-actions span {
    display: grid;
    place-items: center;
    height: 34px;
    border-radius: 8px;
    background: #efefef;
    font-size: 14px;
    font-weight: 600;
}

.ajm-ig-actions .is-follow {
    background: #0095f6;
    color: #ffffff;
}

.ajm-ig-tabs {
    display: flex;
    justify-content: center;
    margin-top: 16px;
    padding: 10px 0;
    box-shadow: inset 0 -1px 0 #dbdbdb;
}

.ajm-ig-tabs svg {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

.ajm-ig-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 2px;
    margin-top: 2px;
}

.ajm-ig-grid img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 3 / 4;
    object-fit: cover;
}

.ajm-ig-side {
    display: grid;
    gap: 14px;
    align-content: start;
}

.ajm-ig-side .ajm-dls {
    margin-top: 16px;
}

.ajm-ig-avatar-card {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
    gap: 20px;
    align-items: center;
}

.ajm-ig-avatar-card img {
    width: 96px;
    height: 96px;
    border-radius: 50%;
}

/* Sembilan pos, urut posting: gambar lalu kartu caption siap salin. */
.ajm-ig-posts {
    display: grid;
    gap: 40px 24px;
    margin: 64px 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 700px) {
    .ajm-ig-posts {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 1200px) {
    .ajm-ig-posts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.ajm-ig-post {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
}

.ajm-ig-post-img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 14px;
    box-shadow: 0 0 0 1px var(--h4-sec-edge);
}

.ajm-ig-post-body {
    flex: 1;
    padding: 18px 18px 22px;
    border-radius: 16px;
    background: var(--h4-card);
    box-shadow: inset 0 0 0 1px var(--h4-card-edge);
}

.ajm-ig-post .ajm-copy-head {
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.ajm-ig-post .ajm-copy-title {
    font-size: 18px;
}

.ajm-ig-post .ajm-dl {
    --ajm-chip: var(--h4-sec-bg);
}

.ajm-ig-caption {
    margin: 0;
    font-family: var(--h4-text);
    font-size: 14.5px;
    line-height: 1.55;
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    .ajm-dl,
    .ajm-tab,
    .ajm-swatch-chip,
    .ajm-shot-img,
    .ajm-deck-btn {
        transition: none;
    }
}
