/* ============================================================
   wedday — landing page
   Undangan digital: krem hangat, rose lembut, serif klasik.
   Susunan mengikuti mockup: pembuka dua kolom, empat kartu
   fitur, contoh tampilan, peta isi, langkah, harga, tanya
   jawab, lalu ajakan.
   ============================================================ */

:root {
    --ground: #fdfaf7;
    --paper: #ffffff;
    --blush: #fbf0f1;
    --blush-2: #f6e3e5;
    --line: #efe5de;
    --ink: #2f2a28;
    --soft: #6f6460;
    --accent: #9a5a62;
    --accent-ink: #7d434b;
    --gold: #c9a978;
    --brand-ink: #8b6a3e;

    --display: "Cormorant Garamond", Georgia, serif;
    --text: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;

    --t-hero: clamp(32px, 3.6vw, 52px);
    --t-head: clamp(24px, 2.3vw, 32px);
    --t-lead: clamp(15px, 1.15vw, 17px);
    --t-body: 15px;
    --t-small: 13px;

    --edge: clamp(18px, 5vw, 56px);
    --sect: clamp(64px, 8vh, 104px);
    --width: 1200px;

    --radius: 8px;
    --radius-lg: 8px;
    --radius-pill: 999px;
    --shadow-soft: 0 20px 45px -28px rgba(154, 90, 98, 0.28);
    --shadow-card: 0 14px 34px -22px rgba(154, 90, 98, 0.22);

    --ease: cubic-bezier(0.2, 0, 0.2, 1);
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    height: 100%;
    scroll-behavior: smooth;
    overflow-x: hidden;
    scrollbar-width: none;
}
html::-webkit-scrollbar,
body::-webkit-scrollbar {
    display: none;
}
body {
    -ms-overflow-style: none;
}

body {
    margin: 0;
    min-height: 100%;
    background: var(--ground);
    font-family: var(--text);
    font-size: var(--t-body);
    line-height: 1.6;
    color: var(--ink);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3,
p,
ul,
ol,
address {
    margin: 0;
}

ul,
ol {
    padding: 0;
    list-style: none;
}

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

a {
    color: inherit;
}

button,
input,
summary {
    font: inherit;
    color: inherit;
}

:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 3px;
}

::selection {
    background: rgba(154, 90, 98, 0.18);
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.skip {
    position: absolute;
    top: 8px;
    left: 8px;
    z-index: 20;
    padding: 10px 16px;
    background: var(--ink);
    color: var(--paper);
    text-decoration: none;
    border-radius: var(--radius);
    transform: translateY(-160%);
}

.skip:focus-visible {
    transform: none;
}

/* ==================== TOMBOL ==================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 38px;
    padding: 0 14px;
    border: 1px solid transparent;
    border-radius: 8px;
    font-size: 13.5px;
    font-weight: 500;
    text-decoration: none;
    white-space: nowrap;
    cursor: pointer;
    transition: background 0.18s var(--ease), border-color 0.18s var(--ease),
        color 0.18s var(--ease), transform 0.18s var(--ease);
}

.btn:active {
    transform: translateY(1px);
}

.btn i {
    font-size: 17px;
}

.btn-primary {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}

.btn-primary:hover {
    background: var(--accent-ink);
    border-color: var(--accent-ink);
}

.btn-outline {
    background: var(--paper);
    border-color: var(--blush-2);
    color: var(--accent-ink);
}

.btn-outline:hover {
    border-color: var(--accent);
}

.btn-sm {
    min-height: 38px;
    padding: 0 16px;
    font-size: var(--t-small);
}

/* ==================== BAR ATAS ==================== */

.topbar {
    position: fixed;
    top: 0; left: 0; right: 0;
    z-index: 50;
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 12px var(--edge);
    background: transparent;
    border-bottom: 1px solid transparent;
    transition: background 0.25s var(--ease), border-color 0.25s var(--ease),
        backdrop-filter 0.25s var(--ease);
}
.topbar.scrolled {
    background: rgba(253, 250, 247, 0.9);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom-color: rgba(154, 90, 98, 0.1);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    text-decoration: none;
}

.brand-mark {
    display: block;
    width: 36px;
    height: 36px;
    flex: 0 0 auto;
    object-fit: contain;
}

.brand-name {
    font-family: var(--display);
    font-size: 24px;
    font-weight: 600;
    line-height: 1;
    color: var(--brand-ink);
}

.topnav {
    display: flex;
    gap: clamp(16px, 2.4vw, 34px);
    margin: 0 auto;
    font-size: 14px;
}

.topnav a {
    text-decoration: none;
    color: var(--soft);
    transition: color 0.18s var(--ease);
}

.topnav a:hover {
    color: var(--accent-ink);
}

.topbar-cta {
    flex: 0 0 auto;
}

/* ==================== PEMBUKA ==================== */

.hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 46fr) minmax(0, 54fr);
    gap: clamp(24px, 3vw, 48px);
    align-items: center;
    align-content: center;
    max-width: var(--width);
    margin: 0 auto;
    min-height: 100svh;
    padding: calc(clamp(20px, 3vh, 36px) + 62px) var(--edge) clamp(36px, 5vh, 60px);
}
.hero::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    background:
        radial-gradient(560px 420px at 4% 18%, rgba(246, 227, 229, 0.65), transparent 70%),
        radial-gradient(640px 460px at 96% 82%, rgba(251, 240, 241, 0.8), transparent 70%),
        radial-gradient(380px 280px at 88% 8%, rgba(246, 227, 229, 0.45), transparent 70%),
        radial-gradient(380px 280px at 12% 92%, rgba(251, 240, 241, 0.55), transparent 70%),
        radial-gradient(500px 300px at 50% 0%, rgba(251, 240, 241, 0.5), transparent 70%),
        linear-gradient(180deg, #fdf6f3 0%, var(--ground) 100%);
    pointer-events: none;
    z-index: -1;
}
.hero::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100vw;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(220px 160px at 2% 30%, rgba(214, 148, 158, 0.16), transparent 70%),
        radial-gradient(260px 190px at 98% 65%, rgba(214, 148, 158, 0.14), transparent 70%),
        radial-gradient(180px 140px at 6% 85%, rgba(201, 169, 120, 0.1), transparent 70%),
        radial-gradient(200px 150px at 94% 15%, rgba(201, 169, 120, 0.08), transparent 70%);
}
.hero > * { position: relative; }

/* ornamen bunga di sudut pembuka */
.hero-ornament {
    position: absolute;
    z-index: 0;
    width: clamp(200px, 26vw, 380px);
    aspect-ratio: 1;
    background-repeat: no-repeat;
    background-size: contain;
    filter: var(--ornament-filter, saturate(1));
    opacity: 0.5;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.hero-ornament-tl {
    top: 6%;
    left: -70px;
    background-image: url("../assets/images/ornament-top-left.png");
    background-position: top left;
}

.hero-ornament-br {
    right: -60px;
    bottom: 4%;
    background-image: url("../assets/images/ornament-bottom-right.png");
    background-position: bottom right;
}

.hero-copy,
.hero-visual {
    z-index: 1;
}

@media (max-width: 1319px) {
    .hero-ornament-br {
        right: 0;
    }
}

.kicker {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
    font-size: var(--t-small);
    color: var(--soft);
}

.kicker::before {
    content: "";
    width: 34px;
    height: 1px;
    background: var(--accent);
    opacity: 0.6;
}

.hero h1 {
    max-width: none;
    font-family: var(--display);
    font-size: var(--t-hero);
    font-weight: 600;
    line-height: 1.08;
    text-wrap: balance;
}

.hero-lead {
    margin-top: 18px;
    max-width: 44ch;
    font-size: var(--t-lead);
    line-height: 1.65;
    color: var(--soft);
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 26px;
}

/* --- gambar pembuka --- */

.hero-visual {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: clamp(12px, 1.6vw, 22px);
    min-height: 460px;
}

.phone {
    flex: 0 0 auto;
    width: clamp(150px, 16vw, 200px);
    padding: 7px;
    border-radius: 26px;
    background: #241f1e;
    box-shadow: 0 24px 44px -30px rgba(47, 42, 40, 0.55);
}

.phone-screen {
    overflow: hidden;
    border-radius: 20px;
    aspect-ratio: 9 / 19;
    background: var(--blush);
}

.phone-screen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top center;
}

.paper-card {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(200px, 22vw, 268px);
    padding: 30px 22px 28px;
    background: var(--paper);
    border-radius: 6px;
    border: 1px solid rgba(154, 90, 98, 0.1);
    box-shadow: 0 28px 50px -28px rgba(154, 90, 98, 0.35);
    text-align: center;
    transform: rotate(2deg);
}

.paper-script {
    font-family: var(--display);
    font-style: italic;
    font-size: 21px;
    line-height: 1.1;
    color: var(--accent);
}

.paper-hex {
    display: grid;
    place-items: center;
    width: 74px;
    height: 74px;
    margin-top: 14px;
    background: var(--gold);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.paper-hex span {
    display: grid;
    place-items: center;
    width: calc(100% - 4px);
    height: calc(100% - 4px);
    background: var(--paper);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    font-family: var(--display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.paper-to {
    margin-top: 18px;
    font-size: 12px;
    color: var(--soft);
}

.paper-name-line {
    width: 100%;
    margin-top: 2px;
}

.paper-name {
    width: 100%;
    padding: 2px;
    border: 0;
    background: none;
    font-family: var(--display);
    font-size: 19px;
    font-weight: 600;
    line-height: 1.3;
    text-align: center;
    color: var(--ink);
    outline: none;
}

.paper-hint {
    margin-top: 4px;
    font-size: 11.5px;
    color: var(--soft);
}

.paper-date {
    margin-top: 14px;
    font-size: 12.5px;
    color: var(--soft);
}

.hero-tags {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.hero-tags li {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 7px 11px;
    border-radius: 8px;
    background: var(--paper);
    box-shadow: 0 10px 24px -18px rgba(47, 42, 40, 0.4);
    font-size: 12px;
    color: var(--soft);
    white-space: nowrap;
}

.hero-tags i {
    font-size: 15px;
    color: var(--accent);
}

/* ==================== JUDUL BAGIAN ==================== */

.section-head {
    max-width: 640px;
    margin: 0 auto clamp(28px, 4vh, 44px);
    text-align: center;
}

.section-head h2 {
    font-family: var(--display);
    font-size: var(--t-head);
    font-weight: 600;
    line-height: 1.2;
    text-wrap: balance;
}

.section-head p {
    margin-top: 10px;
    font-size: var(--t-body);
    color: var(--soft);
    text-wrap: pretty;
}

/* ==================== FITUR ==================== */

.features {
    padding: clamp(40px, 6vh, 72px) var(--edge) var(--sect);
}

.features .section-head {
    max-width: var(--width);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: var(--width);
    margin: 0 auto;
}

.feature-card {
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon title"
        "icon text";
    grid-template-rows: auto 1fr;
    gap: 3px 14px;
    align-items: start;
    padding: 22px 18px;
    border-radius: var(--radius);
    background: var(--paper);
    text-align: left;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(154, 90, 98, 0.08);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.feature-card .feature-icon {
    grid-area: icon;
    align-self: start;
    margin-top: 5px;
}

.feature-card h3 {
    grid-area: title;
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.feature-card p {
    grid-area: text;
    margin: 4px 0 0;
    font-size: var(--t-small);
    line-height: 1.55;
    color: var(--soft);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

.feature-icon {
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blush) 0%, var(--blush-2) 100%);
    color: var(--accent);
    font-size: 24px;
    box-shadow: inset 0 0 0 1px rgba(154, 90, 98, 0.1);
}

/* ==================== SEDANG BERLANGSUNG ==================== */

.live {
    padding: 0 var(--edge) var(--sect);
}

.live[hidden] {
    display: none;
}

.live-shell {
    max-width: var(--width);
    margin: 0 auto;
    padding: clamp(24px, 3.4vw, 44px);
    background: var(--paper);
    border: 1px solid rgba(154, 90, 98, 0.08);
    border-radius: var(--radius);
    box-shadow: var(--shadow-card);
}

.live-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 24px;
}

.live-head-copy {
    max-width: 620px;
}

.live-head h2 {
    font-family: var(--display);
    font-size: var(--t-head);
    font-weight: 600;
    line-height: 1.2;
    text-wrap: balance;
}

.live-head p {
    margin-top: 10px;
    font-size: var(--t-body);
    line-height: 1.6;
    color: var(--soft);
    text-wrap: pretty;
}

.live-today {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
    color: var(--accent-ink);
}

.live-today-day {
    font-family: var(--display);
    font-size: clamp(40px, 5vw, 64px);
    font-weight: 600;
    line-height: 0.9;
}

.live-today-month {
    margin-top: 4px;
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--soft);
}

.live-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
    margin-top: clamp(22px, 3vw, 32px);
}

.live-stat {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 18px 20px 16px;
    background: var(--blush);
    border-radius: var(--radius);
}

.live-stat-value {
    font-family: var(--display);
    font-size: clamp(30px, 3.2vw, 44px);
    font-weight: 600;
    line-height: 1;
    color: var(--accent-ink);
    font-variant-numeric: tabular-nums;
}

.live-stat-label {
    font-size: 13.5px;
    line-height: 1.35;
    color: var(--soft);
}

.live-board {
    margin-top: clamp(22px, 3vw, 30px);
}

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

.live-board-head h3 {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.live-flag {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    color: var(--soft);
}

.live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(154, 90, 98, 0.12);
    animation: live-pulse 2.4s var(--ease) infinite;
}

@keyframes live-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.55; transform: scale(0.82); }
}

.live-feed {
    display: grid;
    min-height: 60px;
}

.live-row {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: var(--radius);
    background: var(--ground);
    color: inherit;
    text-decoration: none;
    animation: live-row-in 0.45s var(--ease);
    transition: background 0.18s var(--ease), transform 0.18s var(--ease);
}

@keyframes live-row-in {
    from { opacity: 0; transform: translateY(6px); }
    to { opacity: 1; transform: none; }
}

.live-row:hover {
    background: var(--blush);
}

.live-row:active {
    transform: translateY(1px);
}

.live-row:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.live-avatar {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius);
    background: var(--blush);
    color: var(--accent-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    transition: background 0.18s var(--ease);
}

.live-row:hover .live-avatar {
    background: var(--paper);
}

.live-row-copy {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.live-row-title {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.35;
    color: var(--ink);
}

.live-row-meta {
    font-size: 12.5px;
    line-height: 1.4;
    color: var(--soft);
}

.live-row-time {
    font-size: 12px;
    color: var(--soft);
    white-space: nowrap;
}

.live-row-arrow {
    font-size: 18px;
    color: var(--accent);
    transition: transform 0.18s var(--ease);
}

.live-row:hover .live-row-arrow {
    transform: translateX(3px);
}

/* ==================== CONTOH ==================== */

.showcase {
    padding: var(--sect) var(--edge);
    background: linear-gradient(180deg, #fdf6f7 0%, var(--blush) 100%);
}

.theme-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: var(--width);
    margin: 0 auto;
}

.theme-item {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.theme-card {
    position: relative;
    overflow: hidden;
    border-radius: var(--radius);
    background: var(--color-cream);
    aspect-ratio: 3 / 4;
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(154, 90, 98, 0.08);
    transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.theme-item:hover .theme-card {
    transform: translateY(-4px);
    box-shadow: var(--shadow-soft);
}

/* sampul tema: ornamen sudut seperti di undangan asli */
.theme-cover {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px;
    background: var(--color-cream);
}

.theme-cover::before,
.theme-cover::after {
    content: "";
    position: absolute;
    width: 66%;
    aspect-ratio: 1;
    background: center / contain no-repeat;
    filter: var(--ornament-filter);
    pointer-events: none;
}

.theme-cover::before {
    top: -7%;
    left: -9%;
    background-image: url("../assets/images/ornament-top-left.png");
}

.theme-cover::after {
    right: -9%;
    bottom: -7%;
    background-image: url("../assets/images/ornament-bottom-right.png");
}

.cover-script {
    position: relative;
    font-family: var(--display);
    font-style: italic;
    font-size: 17px;
    line-height: 1.1;
    color: var(--color-accent);
}

.cover-hex {
    position: relative;
    display: grid;
    place-items: center;
    width: 62px;
    height: 62px;
    background: var(--color-gold);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
}

.cover-hex span {
    display: grid;
    place-items: center;
    width: calc(100% - 3px);
    height: calc(100% - 3px);
    background: var(--color-cream);
    box-shadow: inset 0 0 0 1px rgb(var(--rgb-gold) / 0.6);
    clip-path: polygon(50% 0, 100% 25%, 100% 75%, 50% 100%, 0 75%, 0 25%);
    font-family: var(--display);
    font-size: 14px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
}

.cover-names {
    position: relative;
    font-family: var(--display);
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-dark);
    text-align: center;
}

.theme-name {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 2;
    padding: 3px 8px;
    border-radius: 8px;
    background: rgb(var(--rgb-cream, 250 245 240) / 0.82);
    border: 1px solid rgb(var(--rgb-primary, 138 109 113) / 0.16);
    font-size: 12px;
    line-height: 1.3;
    color: var(--color-primary-dark, var(--accent-ink));
}

.theme-link {
    position: relative;
    width: 100%;
}

/* Tombol di dalam kartu (user 23:58 WITA): Contoh kiri, Buat kanan.
   Dikecilkan + teks diringkas (user 00:28 WITA) supaya muat di kartu HP.
   Seukuran badge Gratis/Premium (user 00:40 WITA): padding, font, dan ikon
   disamakan dengan badge. */
.theme-actions {
    position: absolute;
    left: 10px;
    right: 10px;
    bottom: 10px;
    z-index: 3;
    display: flex;
    gap: 6px;
}

.theme-actions .btn {
    flex: 1 1 0;
    min-height: 0;
    padding: 3px 8px;
    gap: 4px;
    font-size: 10px;
    font-weight: 600;
    /* Agak persegi (user 00:46 WITA): bedakan dari badge yang rounded 8px. */
    border-radius: 4px;
    justify-content: center;
    white-space: nowrap;
}

.theme-actions .theme-link {
    width: auto;
}

/* Ikon tombol (mata di Contoh, pensil di Buat) tampil inline di kiri teks. */
.theme-actions .btn i {
    position: static;
    transform: none;
    font-size: 12px;
}

.theme-link i {
    position: absolute;
    top: 50%;
    right: 14px;
    font-size: 18px;
    transform: translateY(-50%);
    transition: transform 0.18s var(--ease);
}

.theme-link:hover i {
    transform: translate(2px, -50%);
}

/* ==================== KARTU PREMIUM ==================== */

.theme-item-premium {
    /* Rapi (user 23:42 WITA): kartu premium seukuran kartu free (1 kolom),
       dan barisan free dulu baru premium (order). */
    grid-column: auto;
    order: 2;
}

/* Syar'i Navy di kanan Syar'i Putih (user 23:58 WITA): setelah semua free
   (order 0), sebelum premium lain (order 2). */
.theme-item:has([data-tema="tema-17"]) {
    order: 1;
}

.theme-card-premium {
    /* Rapi (user 23:42 WITA): seukuran kartu free (3/4), tidak gelap. */
    aspect-ratio: 3 / 4;
    border-color: rgba(217, 184, 119, 0.3);
    background: var(--color-cream);
    /* Paksa variabel tema gelap jadi terang di kartu ini: themes.css memberi
       --color-cream gelap untuk tema-05/19/20, dan teks terang untuk latar
       gelap — keduanya tidak terbaca di kartu krem. */
    --color-cream: #fdfaf7;
    --rgb-cream: 253 250 247;
    --color-text-dark: #2b2118;
    --color-text: #6b5a51;
    --color-primary-dark: #3d2f28;
}

/* Emas Malam: aksen emas terlalu terang di latar krem — gelapkan. */
.theme-card[data-tema="tema-05"] {
    --color-accent: #8a6d3b;
}


.theme-card-premium .theme-cover {
    /* Rapi (user 23:42 WITA): seperti cover biasa (kolom, tengah, terang). */
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 18px;
    text-align: center;
    background: var(--color-cream);
}

.theme-cover-premium::before,
.theme-cover-premium::after {
    /* Rapi (user 23:42 WITA): ornamen glow emas untuk latar gelap — disembunyikan. */
    display: none;
    width: 46%;
    aspect-ratio: 1;
    border-radius: 50%;
    filter: blur(34px);
    mix-blend-mode: screen;
    opacity: 0.9;
}

.theme-cover-premium::before {
    top: -36%;
    left: -8%;
    background: radial-gradient(circle, rgba(217, 184, 119, 0.36), transparent 68%);
}

.theme-cover-premium::after {
    right: -8%;
    bottom: -46%;
    background: radial-gradient(circle, rgba(217, 184, 119, 0.36), transparent 68%);
}

.theme-card-premium .theme-premium-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1px solid rgba(217, 184, 119, 0.42);
    border-radius: 8px;
    background: rgb(var(--rgb-cream, 250 245 240) / 0.82);
    color: var(--color-primary-dark, var(--accent-ink));
    font-family: var(--text);
    font-size: 10px;
    font-weight: 600;
}

/* Ikon mahkota emas di badge Premium (user 00:18 WITA). */
.theme-card-premium .theme-premium-badge i {
    color: #d9b877;
    font-size: 12px;
}

/* Badge Gratis (user 00:18 WITA): pil yang sama seperti badge Premium,
   dengan ikon kado hijau, di kiri atas kartu gratis. */
.theme-free-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1px solid rgb(var(--rgb-primary, 138 109 113) / 0.16);
    border-radius: 8px;
    background: rgb(var(--rgb-cream, 250 245 240) / 0.82);
    color: var(--color-primary-dark, var(--accent-ink));
    font-family: var(--text);
    font-size: 10px;
    font-weight: 600;
}

.theme-free-badge i {
    color: #2f7d4f;
    font-size: 12px;
}

.theme-card-premium .theme-name {
    top: 10px;
    right: 10px;
    z-index: 3;
    border-color: rgba(217, 184, 119, 0.28);
    background: rgb(var(--rgb-cream, 250 245 240) / 0.82);
    color: var(--color-primary-dark, var(--accent-ink));
}

.theme-premium-copy {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.theme-card-premium .cover-script {
    font-size: 17px;
    color: var(--color-accent);
    text-align: center;
}

.theme-card-premium .cover-names {
    font-size: 17px;
    font-weight: 600;
    line-height: 1.2;
    color: var(--color-text-dark);
    text-align: center;
}

.theme-premium-note {
    margin-top: 4px;
    font-family: var(--text);
    font-size: 10.5px;
    color: var(--color-text);
}

.theme-card-premium .cover-hex {
    position: relative;
    z-index: 2;
    width: 62px;
    height: 62px;
    flex: 0 0 auto;
    background: var(--color-gold);
}

.theme-card-premium .cover-hex span {
    width: calc(100% - 3px);
    height: calc(100% - 3px);
    background: var(--color-cream);
    box-shadow: inset 0 0 0 1px rgb(var(--rgb-gold) / 0.6);
    color: var(--color-text-dark);
    font-size: 14px;
}

@media screen and (max-width: 900px) {
    .theme-card-premium {
        aspect-ratio: 3 / 4;
    }

    .theme-card-premium .theme-cover {
        padding: 26px 30px;
    }
}

@media screen and (max-width: 640px) {
    .theme-card-premium {
        aspect-ratio: 3 / 4;
    }

    .theme-card-premium .theme-cover {
        flex-direction: column;
        justify-content: center;
        gap: 14px;
        padding: 24px 18px;
        text-align: center;
    }

    .theme-premium-copy {
        align-items: center;
    }

    .theme-card-premium .cover-script,
    .theme-card-premium .cover-names {
        text-align: center;
    }

    .theme-premium-note {
        font-size: 9.5px;
    }

    .theme-card-premium .cover-hex {
        width: 62px;
        height: 62px;
    }

    .theme-card-premium .cover-hex span {
        font-size: 14px;
    }
}

/* ==================== ISI UNDANGAN ==================== */

.content-map {
    padding: var(--sect) var(--edge);
}

.map-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    max-width: var(--width);
    margin: 0 auto;
}

.map-panel {
    padding: 28px 28px 30px;
    border-radius: var(--radius);
    background: var(--paper);
    box-shadow: var(--shadow-card);
    border: 1px solid rgba(154, 90, 98, 0.08);
}

.map-panel header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-bottom: 14px;
}

.map-icon {
    display: inline-grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 8px;
    background: linear-gradient(135deg, var(--blush) 0%, var(--blush-2) 100%);
    color: var(--accent);
    font-size: 21px;
}

.map-panel h3 {
    font-size: 15px;
    font-weight: 600;
}

.map-panel ul {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
}

.map-panel li {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: var(--t-small);
    color: var(--soft);
}

.map-panel li i {
    font-size: 15px;
    color: var(--accent);
}

/* ==================== CARA KERJA ==================== */

.steps {
    padding: var(--sect) var(--edge);
    background: linear-gradient(180deg, var(--blush) 0%, #fdf6f7 100%);
}

.step-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    max-width: var(--width);
    margin: 0 auto;
}

.step {
    position: relative;
}

.step-num {
    display: inline-grid;
    place-items: center;
    width: 28px;
    height: 28px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--accent) 0%, var(--accent-ink) 100%);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    box-shadow: 0 8px 18px -8px rgba(154, 90, 98, 0.5);
}

.step h3 {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-top: 12px;
    font-size: 14px;
    font-weight: 600;
}

.step h3 i {
    font-size: 16px;
    color: var(--accent);
}

.step p {
    margin-top: 6px;
    font-size: var(--t-small);
    line-height: 1.55;
    color: var(--soft);
}

.step:not(:last-child)::after {
    content: "\203A";
    position: absolute;
    top: 2px;
    right: -4px;
    font-size: 22px;
    line-height: 1;
    color: rgba(154, 90, 98, 0.35);
}

/* ==================== ULASAN ==================== */

.reviews {
    padding: var(--sect) var(--edge);
}

.reviews .section-head {
    max-width: 720px;
}

.reviews-cta {
    margin-top: 18px;
}

.review-note {
    margin-top: 12px;
    font-size: 13px;
    color: var(--accent-ink);
}

.review-note[hidden] {
    display: none;
}

.review-viewport {
    max-width: var(--width);
    margin: 0 auto;
}

.review-viewport.is-carousel {
    overflow: hidden;
    padding: 4px 0 8px;
}

.review-viewport.is-carousel[data-per-view="1"] {
    max-width: 560px;
}

.review-viewport.is-carousel[data-per-view="2"] {
    max-width: 820px;
}

.review-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    max-width: var(--width);
    margin: 0 auto;
}

/* Semua ulasan duduk dalam satu baris dan bergeser sendiri. */
.review-grid.is-carousel {
    display: flex;
    max-width: none;
    transition: transform 0.55s var(--ease);
    will-change: transform;
}

.review-grid.is-carousel .review-card {
    flex: 0 0 calc((100% - (var(--per-view, 3) - 1) * 16px) / var(--per-view, 3));
    min-width: 0;
}

.review-grid[data-count="1"] {
    grid-template-columns: minmax(0, 560px);
    justify-content: center;
}

.review-grid[data-count="2"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 820px;
}

.review-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 22px;
    background: var(--paper);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 18px 36px -30px rgba(47, 42, 40, 0.4);
}

.review-card.is-featured {
    background: var(--blush);
    border-color: transparent;
}

.review-card-stars {
    display: flex;
    gap: 2px;
    color: var(--gold);
    font-size: 14px;
    line-height: 1;
}

.review-card-stars i {
    pointer-events: none;
}

.review-card-stars i.is-off {
    color: var(--line);
}

.review-quote {
    flex: 1;
    font-size: var(--t-body);
    line-height: 1.65;
    color: var(--ink);
    text-wrap: pretty;
    overflow-wrap: anywhere;
}

.review-person {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid rgba(154, 90, 98, 0.12);
}

.review-avatar {
    display: grid;
    place-items: center;
    flex: 0 0 auto;
    width: 34px;
    height: 34px;
    border-radius: var(--radius);
    background: var(--blush-2);
    color: var(--accent-ink);
    font-size: 13px;
    font-weight: 600;
}

.review-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.review-date {
    margin-top: 2px;
    font-size: 12px;
    color: var(--soft);
}

.review-empty {
    grid-column: 1 / -1;
    padding: 30px 20px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.65);
    color: var(--soft);
    font-size: var(--t-small);
    line-height: 1.6;
    text-align: center;
}

/* titik dan garis penanda posisi di bawah kartu ulasan */

.review-rail {
    display: flex;
    justify-content: center;
    margin-top: 26px;
}

.review-rail[hidden] {
    display: none;
}

.review-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 10px 0;
}

.review-dot {
    flex: 0 0 auto;
    width: 7px;
    height: 7px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: #d9cbbd;
    cursor: pointer;
    transition: width 0.3s var(--ease), height 0.3s var(--ease), background 0.2s var(--ease);
}

.review-dot:hover {
    background: var(--accent-ink);
}

.review-dot.is-active {
    width: 30px;
    height: 3px;
    background: var(--accent);
}

/* formulir ulasan */

.review-dialog {
    width: min(520px, calc(100vw - 32px));
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    color: var(--ink);
    box-shadow: 0 40px 90px -40px rgba(47, 42, 40, 0.55);
}

.review-dialog::backdrop {
    background: rgba(47, 42, 40, 0.42);
    backdrop-filter: blur(2px);
}

.review-dialog[open] {
    animation: review-in 0.22s var(--ease);
}

@keyframes review-in {
    from {
        opacity: 0;
        transform: translateY(10px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: none;
    }
}

.review-form {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(22px, 4vw, 32px);
}

.review-close {
    position: absolute;
    top: 12px;
    right: 12px;
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--soft);
    font-size: 22px;
    cursor: pointer;
    transition: background 0.15s var(--ease), color 0.15s var(--ease);
}

.review-close:hover {
    background: var(--blush);
    color: var(--accent-ink);
}

.review-kicker {
    font-size: 12px;
    font-weight: 600;
    color: var(--accent);
}

.review-form h2 {
    margin-top: 4px;
    font-family: var(--display);
    font-size: clamp(24px, 3vw, 28px);
    font-weight: 600;
    line-height: 1.2;
}

.review-account {
    margin-top: 6px;
    font-size: 13px;
    color: var(--soft);
}

.review-account strong {
    color: var(--accent-ink);
    font-weight: 600;
}

.review-rating {
    margin-top: 20px;
    padding: 0;
    border: 0;
}

.review-rating legend,
.review-label {
    padding: 0;
    font-size: 13px;
    font-weight: 600;
    color: var(--ink);
}

.review-stars {
    display: flex;
    gap: 4px;
    margin-top: 6px;
}

.review-stars button {
    padding: 2px;
    border: 0;
    background: transparent;
    color: var(--line);
    font-size: 27px;
    line-height: 1;
    cursor: pointer;
    transition: color 0.15s var(--ease), transform 0.15s var(--ease);
}

.review-stars button:hover {
    transform: translateY(-1px);
}

.review-stars button i {
    pointer-events: none;
}

.review-stars[data-rating="1"] button:nth-child(-n + 1),
.review-stars[data-rating="2"] button:nth-child(-n + 2),
.review-stars[data-rating="3"] button:nth-child(-n + 3),
.review-stars[data-rating="4"] button:nth-child(-n + 4),
.review-stars[data-rating="5"] button:nth-child(-n + 5) {
    color: var(--gold);
}

.review-label {
    margin-top: 18px;
}

.review-message {
    width: 100%;
    min-height: 122px;
    margin-top: 8px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: #fffdfb;
    color: var(--ink);
    font: inherit;
    font-size: 14px;
    line-height: 1.6;
    resize: vertical;
}

.review-message:focus {
    outline: none;
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(154, 90, 98, 0.12);
}

.review-meta {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    margin-top: 6px;
    font-size: 12px;
    color: var(--soft);
}

.review-error {
    margin-top: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    background: #fdf0f1;
    color: #8f3f49;
    font-size: 13px;
    line-height: 1.5;
}

.review-error[hidden] {
    display: none;
}

.review-actions {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    margin-top: 20px;
}

.review-form .btn[disabled] {
    opacity: 0.6;
    cursor: wait;
}

/* ==================== HARGA & AJAKAN ==================== */

.pricing,
.cta {
    padding: var(--sect) var(--edge);
}

.cta {
    padding-top: 0;
}

.band {
    position: relative;
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: clamp(20px, 3vw, 48px);
    max-width: var(--width);
    margin-inline: auto;
    overflow: hidden;
    padding: clamp(32px, 4.5vw, 52px) clamp(112px, 13vw, 190px);
    border-radius: var(--radius-lg);
    background: linear-gradient(120deg, var(--blush) 0%, #fbeef0 55%, var(--blush-2) 100%);
    border: 1px solid rgba(154, 90, 98, 0.1);
    box-shadow: var(--shadow-soft);
}

.band-flowers {
    position: absolute;
    width: clamp(120px, 13vw, 190px);
    aspect-ratio: 1;
    background-repeat: no-repeat;
    background-size: contain;
    filter: var(--ornament-filter, saturate(1));
    opacity: 0.45;
    mix-blend-mode: multiply;
    pointer-events: none;
}

.band-flowers-left {
    top: -26px;
    left: -26px;
    background-image: url("../assets/images/ornament-top-left.png");
    background-position: top left;
}

.band-flowers-right {
    right: -26px;
    bottom: -26px;
    background-image: url("../assets/images/ornament-bottom-right.png");
    background-position: bottom right;
}

/* kartu harga: dua kartu seukuran, Free dulu lalu Premium */

.plan-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: clamp(16px, 2.5vw, 28px);
    max-width: 880px;
    margin-inline: auto;
    align-items: stretch;
}

.plan-card {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: clamp(24px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: var(--paper);
    box-shadow: var(--shadow-card);
}

.plan-card-premium {
    border-color: rgba(201, 169, 120, 0.55);
}

.plan-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border: 1px solid rgba(201, 169, 120, 0.5);
    border-radius: 8px;
    background: #fdf8ef;
    color: var(--brand-ink);
    font-size: 11px;
    font-weight: 500;
}

.plan-badge i {
    color: var(--gold);
    font-size: 13px;
}

.plan-name {
    font-family: var(--display);
    font-size: 22px;
    font-weight: 500;
    line-height: 1.2;
}

.plan-price {
    margin-top: 8px;
    font-family: var(--display);
    font-size: 38px;
    font-weight: 500;
    line-height: 1;
    font-variant-numeric: lining-nums;
}

.plan-period {
    margin-top: 6px;
    font-size: 12.5px;
    color: var(--soft);
}

.plan-list {
    display: grid;
    gap: 9px;
    margin-top: 20px;
    margin-bottom: 20px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.plan-list li {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: var(--t-small);
    line-height: 1.5;
    color: var(--soft);
}

.plan-list li i {
    margin-top: 2px;
    font-size: 15px;
    color: #55704d;
}

.plan-list .plan-no {
    color: #a99e99;
}

.plan-list .plan-no i {
    color: #b05555;
}

.plan-btn {
    width: 100%;
    margin-top: auto;
}

/* ajakan */

.band-slim {
    grid-template-columns: 1fr;
    justify-items: center;
    text-align: center;
}

.cta-body {
    position: relative;
    z-index: 1;
    max-width: 68ch;
}

.cta-body h2 {
    font-family: var(--display);
    font-size: var(--t-head);
    font-weight: 600;
    line-height: 1.2;
}

.cta-body p {
    margin-top: 8px;
    font-size: var(--t-body);
    color: var(--soft);
}

.cta-body .btn {
    margin-top: 18px;
}

/* ==================== TANYA JAWAB ==================== */

.faq {
    padding: var(--sect) var(--edge);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 16px;
    max-width: var(--width);
    margin-inline: auto;
}

.faq-item {
    border-radius: 8px;
    background: var(--paper);
    border: 1px solid rgba(154, 90, 98, 0.08);
    box-shadow: 0 8px 22px -16px rgba(154, 90, 98, 0.25);
    transition: box-shadow 0.2s var(--ease);
}
.faq-item:hover {
    box-shadow: var(--shadow-card);
}

.faq-item summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 16px 18px;
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    list-style: none;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item summary i {
    flex: 0 0 auto;
    font-size: 18px;
    color: var(--accent);
    transition: transform 0.2s var(--ease);
}

.faq-item[open] summary i {
    transform: rotate(180deg);
}

.faq-item p {
    padding: 0 16px 14px;
    font-size: var(--t-small);
    line-height: 1.6;
    color: var(--soft);
}

/* ==================== KAKI ==================== */

.footer {
    padding: var(--sect) var(--edge) 24px;
    background: linear-gradient(180deg, var(--blush) 0%, #f8e8ea 100%);
    border-top: 1px solid rgba(154, 90, 98, 0.08);
}

.footer-inner {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 24px;
    max-width: var(--width);
    margin: 0 auto;
}

.footer-brand p {
    margin-top: 12px;
    max-width: 54ch;
    font-size: var(--t-small);
    line-height: 1.6;
    color: var(--soft);
}

.footer-social {
    display: flex;
    gap: 8px;
    align-self: start;
}

.footer-social a {
    display: grid;
    place-items: center;
    width: 34px;
    height: 34px;
    border-radius: 8px;
    background: var(--paper);
    color: var(--accent);
    font-size: 17px;
    text-decoration: none;
    transition: background 0.18s var(--ease), color 0.18s var(--ease);
}

.footer-social a:hover {
    background: var(--accent);
    color: #fff;
}

.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px 24px;
    max-width: var(--width);
    margin: 32px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(154, 90, 98, 0.12);
    font-size: 12px;
    color: var(--soft);
}

.footer-imprint,
.footer-legal {
    margin: 0;
    font-size: 12px;
}

.footer-legal {
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-imprint a,
.footer-legal a {
    color: inherit;
    text-decoration: none;
    transition: color 0.18s var(--ease);
}

.footer-imprint a:hover,
.footer-legal a:hover {
    color: var(--accent-ink);
    text-decoration: underline;
}

/* ==================== KEMBALI KE ATAS ==================== */

.to-top {
    position: fixed;
    right: clamp(16px, 4vw, 28px);
    bottom: calc(clamp(16px, 4vw, 28px) + env(safe-area-inset-bottom, 0px));
    z-index: 40;
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: var(--paper);
    color: var(--accent-ink);
    font-size: 22px;
    cursor: pointer;
    box-shadow: var(--shadow-soft);
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px);
    transition: opacity 0.25s var(--ease), transform 0.25s var(--ease),
        visibility 0.25s var(--ease), background 0.18s var(--ease), color 0.18s var(--ease);
}

.to-top.is-visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: none;
}

.to-top:hover {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
    transform: translateY(-2px);
}

.to-top:active {
    transform: translateY(0);
}

@media (min-width: 761px) {
    .to-top {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }
}

/* ==================== GERAK ==================== */

html.js .reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}

html.js .reveal.is-in {
    opacity: 1;
    transform: none;
}

html.js .reveal[data-delay="1"] { transition-delay: 0.07s; }
html.js .reveal[data-delay="2"] { transition-delay: 0.14s; }
html.js .reveal[data-delay="3"] { transition-delay: 0.21s; }

/* ==================== LAYAR SEMPIT ==================== */

@media (max-width: 1120px) {
    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 1000px) {
    .hero {
        grid-template-columns: 1fr;
        gap: 36px;
    }

    .hero h1 {
        max-width: 18ch;
    }

    .hero-visual {
        min-height: 0;
    }

    .theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 28px 16px;
    }

    .review-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step:nth-child(2)::after {
        display: none;
    }

    .footer-inner {
        grid-template-columns: 1fr auto;
    }
}

@media (max-width: 760px) {
    .topnav {
        display: none;
    }

    .topbar {
        justify-content: space-between;
    }

    .hero {
        padding-top: calc(62px + 16px);
        text-align: center;
    }

    .kicker {
        justify-content: center;
    }

    .hero h1 {
        max-width: none;
    }

    .hero-lead {
        margin-inline: auto;
    }

    .hero-actions {
        justify-content: center;
    }

    .hero-visual {
        flex-wrap: wrap;
        gap: 16px;
    }

    .hero-tags {
        flex-flow: row wrap;
        justify-content: center;
        width: 100%;
    }

    .hero-ornament {
        width: 160px;
        opacity: 0.35;
    }

    .hero-ornament-tl {
        top: 0;
        left: 0;
    }

    .hero-ornament-br {
        right: 0;
        bottom: 0;
    }

    .map-grid,
    .faq-grid,
    .step-grid,
    .review-grid,
    .review-grid[data-count="1"],
    .review-grid[data-count="2"] {
        grid-template-columns: 1fr;
        max-width: var(--width);
    }

    .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .feature-card {
        grid-template-columns: 1fr;
        grid-template-areas:
            "icon"
            "title"
            "text";
        grid-template-rows: auto auto 1fr;
        gap: 0;
        padding: 16px 14px;
    }

    .feature-card .feature-icon {
        width: 40px;
        height: 40px;
        margin-top: 0;
        margin-bottom: 10px;
        font-size: 19px;
    }

    .feature-card h3 {
        font-size: 14px;
        line-height: 1.35;
    }

    .feature-card p {
        margin-top: 4px;
        font-size: 13px;
        line-height: 1.45;
    }

    .live-head {
        flex-direction: column;
        gap: 14px;
    }

    .live-today {
        flex-direction: row;
        align-items: baseline;
        gap: 8px;
        text-align: left;
    }

    .live-today-day {
        font-size: 30px;
    }

    .live-today-month {
        margin-top: 0;
    }

    .live-shell {
        padding: 20px 16px;
    }

    .live-stats {
        gap: 8px;
    }

    .live-stat {
        padding: 14px 12px 12px;
    }

    .live-stat-value {
        font-size: 27px;
    }

    .live-stat-label {
        font-size: 12px;
    }

    .live-row {
        grid-template-columns: auto minmax(0, 1fr) auto;
        gap: 10px;
        padding: 12px;
    }

    .live-avatar {
        width: 32px;
        height: 32px;
        font-size: 11px;
    }

    .live-row-time {
        display: none;
    }

    .theme-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .theme-cover {
        gap: 7px;
        padding: 12px;
    }

    .cover-script {
        font-size: 13px;
    }

    .cover-hex {
        width: 48px;
        height: 48px;
    }

    .cover-hex span {
        font-size: 11px;
    }

    .cover-names {
        font-size: 13.5px;
    }

    .step::after {
        display: none;
    }

    .band {
        grid-template-columns: 1fr;
        padding: 40px 28px 32px;
        text-align: center;
    }

    .plan-grid {
        grid-template-columns: 1fr;
    }

    .band-flowers {
        width: 96px;
        opacity: 0.45;
    }

    .band-flowers-left {
        top: -10px;
        left: -10px;
    }

    .band-flowers-right {
        right: -10px;
        bottom: -10px;
    }

    .footer-inner {
        grid-template-columns: 1fr;
    }

    .footer-social {
        order: 3;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        text-align: center;
        gap: 8px;
    }
}

@media (max-width: 420px) {
    .map-panel ul {
        grid-template-columns: 1fr;
    }

    .live-shell {
        padding: 18px 14px;
    }

    .live-stat {
        padding: 12px 10px;
    }

    .live-stat-value {
        font-size: 24px;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    html.js .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }

    .live-dot {
        animation: none;
    }

    .live-row {
        animation: none;
    }

    .to-top {
        transition: none;
    }
}
/* ==================== KARTU NETFLIX + SPOTIFY DI BERANDA ==================== */
/* Bukan template emas generik: kartu Netflix hitam-merah, Spotify hitam-hijau. */
.theme-card[data-tema="tema-19"] .theme-cover,
.theme-card[data-tema="tema-20"] .theme-cover {
    /* Rapi (user 23:42 WITA): tidak gelap. */
    background: var(--color-cream);
}

.theme-card[data-tema="tema-19"] .theme-cover::before,
.theme-card[data-tema="tema-19"] .theme-cover::after,
.theme-card[data-tema="tema-20"] .theme-cover::before,
.theme-card[data-tema="tema-20"] .theme-cover::after {
    display: none;
}

.theme-card[data-tema="tema-19"] .theme-cover-premium::before,
.theme-card[data-tema="tema-19"] .theme-cover-premium::after {
    background: radial-gradient(circle, rgba(229, 9, 20, 0.4), transparent 68%);
}

.theme-card[data-tema="tema-20"] .theme-cover-premium::before,
.theme-card[data-tema="tema-20"] .theme-cover-premium::after {
    background: radial-gradient(circle, rgba(29, 185, 84, 0.4), transparent 68%);
}

.theme-card[data-tema="tema-19"] .theme-name {
    color: #e50914;
}

.theme-card[data-tema="tema-20"] .theme-name {
    color: #1db954;
}

.theme-card[data-tema="tema-19"] .cover-hex {
    background: #e50914;
}

.theme-card[data-tema="tema-20"] .cover-hex {
    background: #1db954;
}

.theme-card[data-tema="tema-19"] .cover-hex span,
.theme-card[data-tema="tema-20"] .cover-hex span {
    background: var(--color-cream);
    box-shadow: inset 0 0 0 1px rgb(var(--rgb-gold) / 0.6);
    color: var(--color-text-dark);
}

.theme-card[data-tema="tema-19"] .cover-script,
.theme-card[data-tema="tema-20"] .cover-script {
    color: var(--color-accent);
}
