/* ==========================================================
   Rakmanis — landing.css
   Hanya dimuat di halaman depan.
   Token warna & font diwarisi dari main.css.
   ========================================================== */

.rm-landing {
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
    overflow-x: clip;
}

.rm-section { padding: 92px 0; background: var(--rm-paper); }
.rm-section--pink { background: var(--rm-paper-2); }

.rm-section__title {
    font-size: clamp(30px, 4vw, 44px);
    margin: 0 0 14px;
    max-width: 640px;
}
.rm-section__lead {
    color: var(--rm-ink-soft);
    max-width: 580px;
    margin: 0 0 42px;
    font-size: 16.5px;
}
.rm-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 38px;
    flex-wrap: wrap;
}
.rm-section__head .rm-section__title { margin-bottom: 0; }

.rm-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 56px;
    align-items: start;
}

/* ---------- HERO ---------- */

.rm-hero {
    background: linear-gradient(158deg, #FFE3EF 0%, var(--rm-candy) 58%, #FF86B8 100%);
    color: var(--rm-ink);
    padding: 92px 0 84px;
    position: relative;
    overflow: hidden;
}
/* Taburan gula halus di latar hero */
.rm-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle, rgba(255, 255, 255, 0.58) 2.5px, transparent 3px),
        radial-gradient(circle, rgba(255, 255, 255, 0.34) 2px, transparent 2.5px);
    background-size: 68px 68px, 104px 104px;
    background-position: 0 0, 34px 48px;
    pointer-events: none;
}
.rm-hero__grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.rm-hero .rm-eyebrow {
    background: rgba(255, 255, 255, 0.75);
    color: var(--rm-pink);
}
.rm-hero .rm-eyebrow--krim { background: var(--rm-krim); color: var(--rm-ink); }
.rm-hero__title {
    font-size: clamp(36px, 5.2vw, 58px);
    line-height: 1.08;
    letter-spacing: -0.015em;
    color: var(--rm-ink);
    margin: 0 0 20px;
}
.rm-hero__lead {
    font-size: 17.5px;
    line-height: 1.7;
    color: var(--rm-ink-2);
    max-width: 480px;
    margin: 0 0 34px;
}
.rm-hero__cta {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.rm-hero__stats {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
}
.rm-stat {
    background: rgba(255, 255, 255, 0.72);
    border-radius: var(--rm-radius);
    padding: 14px 22px;
    min-width: 122px;
}
.rm-stat__value {
    display: block;
    font-family: var(--rm-display);
    font-size: 26px;
    font-weight: 800;
    color: var(--rm-pink);
    line-height: 1.15;
}
.rm-stat__label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--rm-ink-soft);
    margin-top: 2px;
}

/* Kartu pesanan manis — elemen visual utama hero */
.rm-hero__visual { position: relative; }
.rm-treatcard {
    background: var(--rm-white);
    color: var(--rm-ink);
    max-width: 380px;
    margin-left: auto;
    border-radius: 4px;
    box-shadow: var(--rm-shadow-lg);
    transform: rotate(-1.4deg);
}
/* Tepi bergelombang atas & bawah, seperti krim di pinggir kue */
.rm-treatcard__scallop {
    height: 13px;
    background: radial-gradient(circle at 9px 13px, var(--rm-white) 9px, transparent 9.5px) 0 0 / 18px 13px repeat-x;
}
.rm-treatcard__scallop--bottom { transform: scaleY(-1); }
.rm-treatcard__body { padding: 14px 28px 30px; }
.rm-treatcard__ribbon {
    display: block;
    margin: 0 -28px 18px;
    padding: 11px 28px;
    background: linear-gradient(135deg, var(--rm-candy), var(--rm-pink));
    color: #fff;
    text-align: center;
}
.rm-treatcard__brand {
    display: block;
    font-family: var(--rm-display);
    font-size: 19px;
    font-weight: 700;
    line-height: 1.2;
}
.rm-treatcard__sub {
    display: block;
    font-family: var(--rm-label);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
    margin-top: 2px;
}
.rm-treatcard__line,
.rm-treatcard__total {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-family: var(--rm-label);
    font-variant-numeric: tabular-nums;
    font-size: 13.5px;
    font-weight: 700;
    padding: 9px 0;
    border-bottom: 2px dotted var(--rm-line);
}
.rm-treatcard__line span:first-child { color: var(--rm-ink-soft); font-weight: 600; }
.rm-treatcard__total {
    border-bottom: none;
    margin-top: 10px;
    padding: 14px 18px;
    background: var(--rm-paper-2);
    border-radius: var(--rm-radius-sm);
    font-size: 17px;
    font-weight: 800;
}
.rm-treatcard__total span:last-child { color: var(--rm-pink); }
/* Stempel hati miring */
.rm-treatcard__stamp {
    margin: 20px auto 0;
    padding: 8px 16px;
    border: 2.5px solid var(--rm-candy);
    border-radius: var(--rm-pill);
    color: var(--rm-pink);
    font-family: var(--rm-label);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-align: center;
    transform: rotate(-4deg);
    width: fit-content;
}
.rm-treatcard__stamp::before { content: '\2665  '; }

/* ---------- TRUST BAR ---------- */

.rm-trustbar {
    background: var(--rm-krim);
    color: var(--rm-ink);
    padding: 16px 0;
    overflow: hidden;
}
.rm-trustbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px 34px;
    flex-wrap: wrap;
    font-family: var(--rm-label);
    font-size: 12.5px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}
.rm-trustbar__inner span { position: relative; }
.rm-trustbar__inner span:not(:last-child)::after {
    content: '\2665';
    position: absolute;
    right: -22px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 10px;
    color: var(--rm-pink);
}

/* ---------- KEUNGGULAN (kartu manis bernomor) ---------- */

.rm-tagcard {
    position: relative;
    background: var(--rm-white);
    border: 1.5px solid var(--rm-line-soft);
    border-radius: var(--rm-radius);
    padding: 28px 24px 26px;
    box-shadow: var(--rm-shadow-soft);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.rm-tagcard:hover { transform: translateY(-4px); box-shadow: var(--rm-shadow); }
.rm-section--pink .rm-tagcard { border-color: var(--rm-white); }
.rm-tagcard__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--rm-candy), var(--rm-pink));
    color: #fff;
    font-family: var(--rm-display);
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 16px;
    box-shadow: 0 6px 14px rgba(201, 59, 120, 0.26);
}
.rm-tagcard h3 { font-size: 19px; margin: 0 0 9px; }
.rm-tagcard p { font-size: 14.5px; line-height: 1.65; color: var(--rm-ink-soft); margin: 0; }

/* ---------- KATEGORI ---------- */

.rm-catgrid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.rm-catcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
    padding: 24px 12px 20px;
    background: var(--rm-white);
    border: 1.5px solid var(--rm-line-soft);
    border-radius: var(--rm-radius);
    text-decoration: none;
    color: var(--rm-ink);
    box-shadow: var(--rm-shadow-soft);
    transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}
.rm-catcard:hover {
    transform: translateY(-4px);
    border-color: var(--rm-candy);
    box-shadow: var(--rm-shadow);
}
.rm-catcard__img {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--rm-paper-2), var(--rm-line));
    overflow: hidden;
    display: block;
    box-shadow: 0 5px 14px rgba(201, 59, 120, 0.14);
}
.rm-catcard__img img { width: 100%; height: 100%; object-fit: cover; }
.rm-catcard__name { font-size: 14.5px; font-weight: 700; line-height: 1.3; }
.rm-catcard__count {
    font-family: var(--rm-label);
    font-size: 11.5px;
    font-weight: 700;
    color: var(--rm-ink-soft);
}

/* ---------- CARA ORDER ---------- */

.rm-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
}
.rm-steps__item {
    position: relative;
    background: var(--rm-white);
    border-radius: var(--rm-radius);
    padding: 26px 22px 24px;
    box-shadow: var(--rm-shadow-soft);
}
/* Titik-titik penghubung antar langkah */
.rm-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 46px;
    right: -22px;
    width: 16px;
    border-top: 3px dotted var(--rm-candy);
}
.rm-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: linear-gradient(150deg, var(--rm-candy), var(--rm-pink));
    color: #fff;
    font-family: var(--rm-display);
    font-size: 17px;
    font-weight: 800;
    margin-bottom: 14px;
    box-shadow: 0 6px 14px rgba(201, 59, 120, 0.26);
}
.rm-steps__item h3 { font-size: 18px; margin: 0 0 8px; }
.rm-steps__item p { font-size: 14.5px; color: var(--rm-ink-soft); line-height: 1.65; margin: 0; }

/* ---------- BIAYA: RINCIAN & FAQ ---------- */

.rm-invoice {
    background: var(--rm-white);
    border: 1.5px solid var(--rm-line-soft);
    border-radius: var(--rm-radius);
    padding: 24px 26px;
    box-shadow: var(--rm-shadow-soft);
    font-family: var(--rm-label);
    font-variant-numeric: tabular-nums;
}
.rm-invoice__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 12px 0;
    font-size: 13.5px;
}
.rm-invoice__row + .rm-invoice__row { border-top: 2px dotted var(--rm-line-soft); }
.rm-invoice__label { color: var(--rm-ink-soft); font-weight: 600; white-space: nowrap; }
.rm-invoice__dots { flex: 1; border-bottom: 2px dotted var(--rm-line); margin-bottom: 4px; }
.rm-invoice__value { font-weight: 800; color: var(--rm-pink); white-space: nowrap; text-align: right; }

/* Kalkulator */
.rm-calc {
    margin-top: 24px;
    background: linear-gradient(150deg, var(--rm-pink), #A82C63);
    color: #fff;
    border-radius: var(--rm-radius);
    padding: 26px;
    box-shadow: var(--rm-shadow);
}
.rm-calc__title {
    font-family: var(--rm-label);
    font-size: 11.5px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rm-krim);
    margin: 0 0 16px;
}
.rm-calc__field label {
    display: block;
    font-size: 13.5px;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.86);
    margin-bottom: 9px;
}
.rm-calc__input {
    display: flex;
    align-items: stretch;
    border-radius: var(--rm-pill);
    overflow: hidden;
    background: var(--rm-white);
}
.rm-calc__prefix {
    display: flex;
    align-items: center;
    padding: 0 18px;
    background: var(--rm-paper-2);
    color: var(--rm-pink);
    font-family: var(--rm-label);
    font-size: 17px;
    font-weight: 800;
}
.rm-calc__input input {
    flex: 1;
    border: none;
    padding: 14px 18px;
    font-family: var(--rm-label);
    font-size: 16px;
    font-weight: 700;
    background: transparent;
    color: var(--rm-ink);
    width: 100%;
    min-width: 0;
}
.rm-calc__input input:focus { outline: none; }
.rm-calc__out {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 2px dotted rgba(255, 255, 255, 0.4);
    font-family: var(--rm-label);
    font-variant-numeric: tabular-nums;
}
.rm-calc__line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 13.5px;
    font-weight: 600;
    padding: 6px 0;
    color: rgba(255, 255, 255, 0.86);
}
.rm-calc__line--total {
    margin-top: 10px;
    padding: 12px 18px;
    background: rgba(255, 255, 255, 0.16);
    border-radius: var(--rm-radius-sm);
    font-size: 17px;
    font-weight: 800;
    color: #fff;
}
.rm-calc__line--total span:last-child { color: var(--rm-krim); }
.rm-calc__note {
    font-family: var(--rm-body);
    font-size: 12.5px;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.68);
    margin: 16px 0 0;
}

.rm-faq__item {
    background: var(--rm-white);
    border: 1.5px solid var(--rm-line-soft);
    border-radius: var(--rm-radius-sm);
    padding: 18px 22px;
    margin-bottom: 10px;
    transition: border-color 0.16s ease;
}
.rm-faq__item[open] { border-color: var(--rm-candy); }
.rm-faq__item summary {
    cursor: pointer;
    font-weight: 700;
    font-size: 15.5px;
    list-style: none;
    position: relative;
    padding-right: 34px;
}
.rm-faq__item summary::-webkit-details-marker { display: none; }
.rm-faq__item summary::after {
    content: '';
    position: absolute;
    right: 6px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-right: 2.5px solid var(--rm-pink);
    border-bottom: 2.5px solid var(--rm-pink);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
.rm-faq__item[open] summary::after { transform: rotate(-135deg); top: 12px; }
.rm-faq__item p {
    margin: 12px 0 0;
    font-size: 14.5px;
    line-height: 1.7;
    color: var(--rm-ink-soft);
    max-width: 52ch;
}

/* ---------- JADWAL TRIP (kupon manis) ---------- */

.rm-voucher {
    display: flex;
    background: var(--rm-white);
    border-radius: var(--rm-radius);
    overflow: hidden;
    box-shadow: var(--rm-shadow-soft);
}
.rm-voucher__main { flex: 1; padding: 22px 22px 20px; min-width: 0; }
.rm-voucher__label {
    font-family: var(--rm-label);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rm-candy);
}
.rm-voucher__dest {
    font-size: 22px;
    margin: 4px 0 6px;
    line-height: 1.22;
}
.rm-voucher__note {
    font-size: 13.5px;
    color: var(--rm-ink-soft);
    margin: 0 0 14px;
    padding-bottom: 14px;
    border-bottom: 2px dotted var(--rm-line);
}
.rm-voucher__rows {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(108px, 1fr));
    gap: 12px 10px;
}
.rm-voucher__rows p {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: var(--rm-label);
    margin: 0;
}
.rm-voucher__rows p:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rm-voucher__rows p span:first-child {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rm-ink-soft);
}
.rm-voucher__rows p span:last-child {
    font-size: 13.5px;
    font-weight: 800;
    color: var(--rm-ink);
}

/* Sobekan kupon: garis putus vertikal + takik lingkaran */
.rm-voucher__stub {
    position: relative;
    width: 134px;
    flex-shrink: 0;
    background: rgba(255, 158, 196, 0.28);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 20px 12px;
    text-align: center;
    border-left: 2.5px dashed var(--rm-line);
}
.rm-voucher__stub .rm-btn { white-space: nowrap; padding: 9px 14px; font-size: 13px; }
.rm-voucher__stub::before,
.rm-voucher__stub::after {
    content: '';
    position: absolute;
    left: -11px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: var(--rm-paper);
}
.rm-voucher__stub::before { top: -11px; }
.rm-voucher__stub::after { bottom: -11px; }
.rm-section--pink .rm-voucher__stub::before,
.rm-section--pink .rm-voucher__stub::after { background: var(--rm-paper-2); }

.rm-voucher__status {
    font-family: var(--rm-label);
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: 0.1em;
    color: var(--rm-ok);
}
.rm-voucher--terbatas .rm-voucher__status { color: #B4802A; }
.rm-voucher--penuh .rm-voucher__status { color: var(--rm-ink-soft); }
.rm-voucher--penuh { opacity: 0.65; }
.rm-voucher__closed {
    font-family: var(--rm-label);
    font-size: 12.5px;
    font-weight: 700;
    color: var(--rm-ink-soft);
}

/* ---------- TESTIMONI (balon percakapan) ---------- */

.rm-quote {
    position: relative;
    background: var(--rm-white);
    border: 1.5px solid var(--rm-line-soft);
    border-radius: var(--rm-radius);
    padding: 28px 26px 24px;
    margin: 0 0 16px;
    box-shadow: var(--rm-shadow-soft);
}
/* Ekor balon percakapan */
.rm-quote::after {
    content: '';
    position: absolute;
    left: 36px;
    bottom: -14px;
    width: 0;
    height: 0;
    border-left: 18px solid transparent;
    border-top: 15px solid var(--rm-white);
    filter: drop-shadow(1.5px 1px 0 var(--rm-line-soft));
}
.rm-quote::before {
    content: '\201C';
    position: absolute;
    top: 2px;
    right: 20px;
    font-family: var(--rm-display);
    font-size: 66px;
    line-height: 1;
    color: var(--rm-line-soft);
}
.rm-quote blockquote {
    margin: 0 0 18px;
    padding: 0;
    border: none;
    background: none;
    font-family: var(--rm-body);
    font-size: 15.5px;
    font-weight: 500;
    line-height: 1.7;
    color: var(--rm-ink);
    position: relative;
    z-index: 1;
}
.rm-quote figcaption { padding-top: 14px; border-top: 2px dotted var(--rm-line); }
.rm-quote__name { display: block; font-size: 14.5px; font-weight: 700; }
.rm-quote__meta {
    display: block;
    font-family: var(--rm-label);
    font-size: 12px;
    font-weight: 700;
    color: var(--rm-candy);
    margin-top: 2px;
}
.rm-quote--contoh { border-style: dashed; border-color: var(--rm-line); }

/* ---------- CTA AKHIR ---------- */

.rm-cta {
    background: linear-gradient(145deg, var(--rm-pink), #A82C63);
    color: #fff;
    text-align: center;
    padding: 96px 0;
    position: relative;
    overflow: hidden;
}
.rm-cta::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, 0.16) 2.5px, transparent 3px);
    background-size: 72px 72px;
    pointer-events: none;
}
.rm-cta > * { position: relative; z-index: 1; }
.rm-cta .rm-eyebrow--krim { background: var(--rm-krim); color: var(--rm-ink); }
.rm-cta h2 {
    font-size: clamp(30px, 4.2vw, 46px);
    color: #fff;
    margin: 0 0 16px;
}
.rm-cta p {
    max-width: 500px;
    margin: 0 auto 34px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 16.5px;
}

/* ---------- REVEAL SAAT SCROLL ---------- */

.rm-reveal {
    opacity: 0;
    transform: translateY(18px);
    transition: opacity 0.65s ease, transform 0.65s ease;
}
.rm-reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    .rm-reveal { opacity: 1; transform: none; transition: none; }
    .rm-treatcard { transform: none; }
    .rm-treatcard__stamp { transform: none; }
}

/* ---------- RESPONSIF ---------- */

@media (max-width: 1024px) {
    .rm-catgrid { grid-template-columns: repeat(3, 1fr); }
    .rm-steps { grid-template-columns: repeat(2, 1fr); }
    .rm-steps__item:not(:last-child)::after { display: none; }
}

@media (max-width: 860px) {
    .rm-hero { padding: 64px 0 60px; }
    .rm-hero__grid { grid-template-columns: 1fr; gap: 44px; }
    .rm-treatcard { margin-left: 0; max-width: 420px; }
    .rm-split { grid-template-columns: 1fr; gap: 40px; }
    .rm-section { padding: 68px 0; }
}

@media (max-width: 560px) {
    .rm-hero__cta { flex-direction: column; align-items: stretch; }
    .rm-hero__cta .rm-btn { width: 100%; }
    .rm-hero__stats { gap: 10px; }
    .rm-stat { flex: 1 1 42%; min-width: 0; padding: 12px 16px; }
    .rm-catgrid { grid-template-columns: repeat(2, 1fr); }
    .rm-steps { grid-template-columns: 1fr; }
    .rm-voucher { flex-direction: column; }
    .rm-voucher__stub {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        border-left: none;
        border-top: 2.5px dashed var(--rm-line);
    }
    .rm-voucher__stub::before { top: -11px; left: -11px; }
    .rm-voucher__stub::after { bottom: auto; top: -11px; left: auto; right: -11px; }
    .rm-section { padding: 56px 0; }
    .rm-trustbar__inner { font-size: 11.5px; gap: 10px 26px; }
    .rm-trustbar__inner span:not(:last-child)::after { right: -17px; }
}
