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

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

.rk-section { padding: 88px 0; background: var(--rk-paper); }
.rk-section--paper { background: var(--rk-paper-2); }

.rk-section__title {
    font-size: clamp(28px, 4vw, 40px);
    margin: 0 0 14px;
    max-width: 620px;
}
.rk-section__lead {
    color: var(--rk-ink-soft);
    max-width: 560px;
    margin: 0 0 40px;
}
.rk-section__head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.rk-section__head .rk-section__title { margin-bottom: 0; }

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

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

.rk-hero {
    background: var(--rk-ink);
    color: #fff;
    padding: 88px 0 76px;
    position: relative;
    overflow: hidden;
}
/* Garis halus seperti serat kertas, sangat samar */
.rk-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image: repeating-linear-gradient(
        90deg,
        rgba(255, 255, 255, 0.022) 0 1px,
        transparent 1px 62px
    );
    pointer-events: none;
}
.rk-hero__grid {
    display: grid;
    grid-template-columns: 1.08fr 0.92fr;
    gap: 64px;
    align-items: center;
    position: relative;
    z-index: 1;
}
.rk-hero__title {
    font-size: clamp(34px, 5.2vw, 56px);
    line-height: 1.06;
    letter-spacing: -0.015em;
    color: #fff;
    margin: 0 0 20px;
}
.rk-hero__lead {
    font-size: 17.5px;
    line-height: 1.65;
    color: rgba(255,255,255,0.76);
    max-width: 470px;
    margin: 0 0 32px;
}
.rk-hero__cta {
    display: flex;
    gap: 13px;
    flex-wrap: wrap;
    margin-bottom: 48px;
}
.rk-hero__stats {
    display: flex;
    gap: 40px;
    flex-wrap: wrap;
    padding-top: 28px;
    border-top: 1px solid rgba(255,255,255,0.14);
}
.rk-stat__value {
    display: block;
    font-family: var(--rk-mono);
    font-size: 24px;
    font-weight: 700;
    color: var(--rk-gold);
    line-height: 1.1;
}
.rk-stat__label {
    display: block;
    font-size: 12.5px;
    color: rgba(255,255,255,0.6);
    margin-top: 5px;
}

/* Struk — elemen visual utama hero */
.rk-hero__visual { position: relative; }
.rk-receipt {
    background: var(--rk-paper);
    color: var(--rk-ink);
    max-width: 380px;
    margin-left: auto;
    box-shadow: var(--rk-shadow-lg);
    transform: rotate(-1.2deg);
}
/* Tepi bergerigi atas & bawah, meniru struk yang disobek */
.rk-receipt__perf {
    height: 10px;
    background-image: radial-gradient(circle at 7px 0, var(--rk-ink) 7px, transparent 7.5px);
    background-size: 14px 10px;
    background-repeat: repeat-x;
}
.rk-receipt__perf--bottom { transform: scaleY(-1); }
.rk-receipt__body { padding: 22px 26px 26px; }
.rk-receipt__brand {
    font-family: var(--rk-display);
    font-size: 18px;
    font-weight: 600;
    text-align: center;
    margin: 0 0 2px;
}
.rk-receipt__sub {
    font-family: var(--rk-mono);
    font-size: 10.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    text-align: center;
    color: var(--rk-ink-soft);
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid var(--rk-ink);
}
.rk-receipt__line,
.rk-receipt__total {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-family: var(--rk-mono);
    font-variant-numeric: tabular-nums;
    font-size: 13.5px;
    padding: 8px 0;
    border-bottom: 1px dashed var(--rk-line);
}
.rk-receipt__line span:first-child { color: var(--rk-ink-soft); }
.rk-receipt__total {
    border-bottom: none;
    border-top: 2px solid var(--rk-ink);
    margin-top: 8px;
    padding-top: 12px;
    font-size: 16px;
    font-weight: 700;
}
.rk-receipt__total span:last-child { color: var(--rk-seal); }
/* Cap stempel miring */
.rk-receipt__stamp {
    margin: 22px 0 0;
    padding: 7px 12px;
    border: 2px solid var(--rk-seal);
    border-radius: 3px;
    color: var(--rk-seal);
    font-family: var(--rk-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-align: center;
    transform: rotate(-4deg);
    opacity: 0.85;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

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

.rk-trustbar {
    background: var(--rk-gold);
    color: var(--rk-ink);
    padding: 14px 0;
    overflow: hidden;
}
.rk-trustbar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px 32px;
    flex-wrap: wrap;
    font-family: var(--rk-mono);
    font-size: 11.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    font-weight: 500;
}
.rk-trustbar__inner span { position: relative; }
.rk-trustbar__inner span:not(:last-child)::after {
    content: '';
    position: absolute;
    right: -17px;
    top: 50%;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: currentColor;
    opacity: 0.5;
    transform: translateY(-50%);
}

/* ---------- KEUNGGULAN (kartu label harga) ---------- */

.rk-tagcard {
    position: relative;
    background: var(--rk-white);
    border: 1.5px dashed var(--rk-line);
    border-radius: var(--rk-radius);
    padding: 26px 22px 24px;
}
.rk-tagcard__num {
    display: inline-block;
    font-family: var(--rk-mono);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: var(--rk-seal);
    padding-bottom: 12px;
    margin-bottom: 12px;
    border-bottom: 2px solid var(--rk-seal);
}
.rk-tagcard h3 { font-size: 18px; margin: 0 0 9px; }
.rk-tagcard p { font-size: 14.5px; line-height: 1.6; color: var(--rk-ink-soft); margin: 0; }

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

.rk-catgrid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
}
.rk-catcard {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 20px 12px;
    background: var(--rk-white);
    border: 1px solid var(--rk-line);
    border-radius: var(--rk-radius);
    text-decoration: none;
    color: var(--rk-ink);
    transition: transform 0.16s ease, border-color 0.16s ease;
}
.rk-catcard:hover { transform: translateY(-3px); border-color: var(--rk-ink); }
.rk-catcard__img {
    width: 62px;
    height: 62px;
    border-radius: 50%;
    background: var(--rk-paper-2);
    overflow: hidden;
    display: block;
}
.rk-catcard__img img { width: 100%; height: 100%; object-fit: cover; }
.rk-catcard__name { font-size: 14px; font-weight: 600; line-height: 1.3; }
.rk-catcard__count {
    font-family: var(--rk-mono);
    font-size: 11px;
    color: var(--rk-ink-soft);
}

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

.rk-steps {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 28px;
    counter-reset: rk-step;
}
.rk-steps__item {
    position: relative;
    padding-top: 22px;
    border-top: 2.5px solid var(--rk-seal);
}
/* Garis putus-putus penghubung antar langkah */
.rk-steps__item:not(:last-child)::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -20px;
    width: 14px;
    border-top: 2.5px dotted var(--rk-line);
}
.rk-steps__num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 27px;
    height: 27px;
    border-radius: 50%;
    background: var(--rk-seal);
    color: #fff;
    font-family: var(--rk-mono);
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
.rk-steps__item h3 { font-size: 17.5px; margin: 0 0 8px; }
.rk-steps__item p { font-size: 14.5px; color: var(--rk-ink-soft); line-height: 1.6; margin: 0; }

/* ---------- BIAYA: INVOICE & FAQ ---------- */

.rk-invoice {
    background: var(--rk-white);
    border: 1.5px dashed var(--rk-line);
    border-radius: var(--rk-radius);
    padding: 22px 24px;
    font-family: var(--rk-mono);
    font-variant-numeric: tabular-nums;
}
.rk-invoice__row {
    display: flex;
    align-items: baseline;
    gap: 8px;
    padding: 11px 0;
    font-size: 13.5px;
}
.rk-invoice__row + .rk-invoice__row { border-top: 1px dotted var(--rk-line); }
.rk-invoice__label { color: var(--rk-ink-soft); white-space: nowrap; }
.rk-invoice__dots { flex: 1; border-bottom: 1px dotted var(--rk-line); margin-bottom: 4px; }
.rk-invoice__value { font-weight: 700; color: var(--rk-seal); white-space: nowrap; text-align: right; }

/* Kalkulator */
.rk-calc {
    margin-top: 24px;
    background: var(--rk-ink);
    color: #fff;
    border-radius: var(--rk-radius);
    padding: 24px;
}
.rk-calc__title {
    font-family: var(--rk-mono);
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: var(--rk-gold);
    margin: 0 0 16px;
}
.rk-calc__field label {
    display: block;
    font-size: 13.5px;
    color: rgba(255,255,255,0.72);
    margin-bottom: 8px;
}
.rk-calc__input {
    display: flex;
    align-items: stretch;
    border-radius: var(--rk-radius);
    overflow: hidden;
    background: var(--rk-paper);
}
.rk-calc__prefix {
    display: flex;
    align-items: center;
    padding: 0 14px;
    background: var(--rk-paper-2);
    color: var(--rk-ink);
    font-family: var(--rk-mono);
    font-size: 16px;
    font-weight: 700;
    border-right: 1px solid var(--rk-line);
}
.rk-calc__input input {
    flex: 1;
    border: none;
    padding: 13px 14px;
    font-family: var(--rk-mono);
    font-size: 16px;
    background: transparent;
    color: var(--rk-ink);
    width: 100%;
    min-width: 0;
}
.rk-calc__input input:focus { outline: none; }
.rk-calc__out {
    margin-top: 18px;
    padding-top: 16px;
    border-top: 1px dashed rgba(255,255,255,0.25);
    font-family: var(--rk-mono);
    font-variant-numeric: tabular-nums;
}
.rk-calc__line {
    display: flex;
    justify-content: space-between;
    gap: 14px;
    font-size: 13.5px;
    padding: 6px 0;
    color: rgba(255,255,255,0.72);
}
.rk-calc__line--total {
    margin-top: 8px;
    padding-top: 12px;
    border-top: 2px solid rgba(255,255,255,0.3);
    font-size: 17px;
    font-weight: 700;
    color: #fff;
}
.rk-calc__line--total span:last-child { color: var(--rk-gold); }
.rk-calc__note {
    font-family: var(--rk-body);
    font-size: 12px;
    line-height: 1.55;
    color: rgba(255,255,255,0.5);
    margin: 16px 0 0;
}

.rk-faq__item {
    border-bottom: 1px solid var(--rk-line);
    padding: 18px 0;
}
.rk-faq__item:first-child { border-top: 1px solid var(--rk-line); }
.rk-faq__item summary {
    cursor: pointer;
    font-weight: 600;
    font-size: 15.5px;
    list-style: none;
    position: relative;
    padding-right: 32px;
}
.rk-faq__item summary::-webkit-details-marker { display: none; }
.rk-faq__item summary::after {
    content: '';
    position: absolute;
    right: 4px;
    top: 8px;
    width: 9px;
    height: 9px;
    border-right: 2px solid var(--rk-seal);
    border-bottom: 2px solid var(--rk-seal);
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}
.rk-faq__item[open] summary::after { transform: rotate(-135deg); top: 12px; }
.rk-faq__item p {
    margin: 12px 0 0;
    font-size: 14.5px;
    line-height: 1.65;
    color: var(--rk-ink-soft);
    max-width: 52ch;
}

/* ---------- JADWAL TRIP (tiket) ---------- */

.rk-ticket {
    display: flex;
    background: var(--rk-white);
    border: 1.5px solid var(--rk-line);
    border-radius: var(--rk-radius);
    overflow: hidden;
}
.rk-ticket__main { flex: 1; padding: 20px 20px 18px; min-width: 0; }
.rk-ticket__label {
    font-family: var(--rk-mono);
    font-size: 10px;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--rk-ink-soft);
}
.rk-ticket__dest {
    font-size: 21px;
    margin: 3px 0 6px;
    line-height: 1.2;
}
.rk-ticket__note {
    font-size: 13px;
    color: var(--rk-ink-soft);
    margin: 0 0 12px;
    padding-bottom: 12px;
    border-bottom: 1px dashed var(--rk-line);
}
.rk-ticket__rows {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px 10px;
}
.rk-ticket__rows p {
    display: flex;
    flex-direction: column;
    gap: 3px;
    font-family: var(--rk-mono);
    margin: 0;
}
.rk-ticket__rows p:last-child:nth-child(odd) { grid-column: 1 / -1; }
.rk-ticket__rows p span:first-child {
    font-size: 9.5px;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--rk-ink-soft);
}
.rk-ticket__rows p span:last-child {
    font-size: 13px;
    font-weight: 600;
    color: var(--rk-ink);
}

/* Sobekan tiket: garis putus vertikal + takik lingkaran */
.rk-ticket__stub {
    position: relative;
    width: 122px;
    flex-shrink: 0;
    background: var(--rk-paper-2);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 18px 12px;
    text-align: center;
    border-left: 2px dashed var(--rk-line);
}
.rk-ticket__stub::before,
.rk-ticket__stub::after {
    content: '';
    position: absolute;
    left: -9px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--rk-paper-2);
    border: 1.5px solid var(--rk-line);
}
.rk-ticket__stub::before { top: -9px; }
.rk-ticket__stub::after { bottom: -9px; }
.rk-section--paper .rk-ticket__stub::before,
.rk-section--paper .rk-ticket__stub::after { background: var(--rk-paper-2); }

.rk-ticket__status {
    font-family: var(--rk-mono);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--rk-ok);
}
.rk-ticket--terbatas .rk-ticket__status { color: var(--rk-gold); }
.rk-ticket--penuh .rk-ticket__status { color: var(--rk-ink-soft); }
.rk-ticket--penuh { opacity: 0.62; }
.rk-ticket__closed {
    font-family: var(--rk-mono);
    font-size: 12px;
    color: var(--rk-ink-soft);
}

/* ---------- TESTIMONI ---------- */

.rk-quote {
    background: var(--rk-white);
    border: 1px solid var(--rk-line);
    border-radius: var(--rk-radius);
    padding: 26px 24px 22px;
    margin: 0;
    position: relative;
}
.rk-quote::before {
    content: '\201C';
    position: absolute;
    top: 6px;
    right: 18px;
    font-family: var(--rk-display);
    font-size: 62px;
    line-height: 1;
    color: var(--rk-line);
}
.rk-quote blockquote {
    margin: 0 0 18px;
    padding: 0;
    border: none;
    font-family: var(--rk-display);
    font-size: 16.5px;
    line-height: 1.55;
    color: var(--rk-ink);
    position: relative;
    z-index: 1;
}
.rk-quote figcaption { padding-top: 14px; border-top: 1px dashed var(--rk-line); }
.rk-quote__name { display: block; font-size: 14px; font-weight: 600; }
.rk-quote__meta {
    display: block;
    font-family: var(--rk-mono);
    font-size: 11.5px;
    color: var(--rk-ink-soft);
    margin-top: 2px;
}
.rk-quote--contoh { border-style: dashed; }

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

.rk-cta {
    background: var(--rk-seal);
    color: #fff;
    text-align: center;
    padding: 90px 0;
}
.rk-cta .rk-eyebrow--gold { color: rgba(255,255,255,0.8); }
.rk-cta h2 {
    font-size: clamp(28px, 4.2vw, 44px);
    color: #fff;
    margin: 0 0 16px;
}
.rk-cta p {
    max-width: 480px;
    margin: 0 auto 32px;
    color: rgba(255,255,255,0.88);
    font-size: 16.5px;
}

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

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

@media (prefers-reduced-motion: reduce) {
    .rk-reveal { opacity: 1; transform: none; transition: none; }
    .rk-receipt { transform: none; }
    .rk-receipt__stamp { transform: none; }
}

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

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

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

@media (max-width: 560px) {
    .rk-hero__cta { flex-direction: column; align-items: stretch; }
    .rk-hero__cta .rk-btn { width: 100%; }
    .rk-hero__stats { gap: 24px; }
    .rk-stat { flex: 1 1 40%; }
    .rk-catgrid { grid-template-columns: repeat(2, 1fr); }
    .rk-steps { grid-template-columns: 1fr; }
    .rk-ticket { flex-direction: column; }
    .rk-ticket__stub {
        width: 100%;
        flex-direction: row;
        justify-content: space-between;
        border-left: none;
        border-top: 2px dashed var(--rk-line);
    }
    .rk-ticket__stub::before { top: -9px; left: -9px; }
    .rk-ticket__stub::after { bottom: auto; top: -9px; left: auto; right: -9px; }
    .rk-section { padding: 52px 0; }
    .rk-trustbar__inner { font-size: 10.5px; gap: 10px 22px; }
    .rk-trustbar__inner span:not(:last-child)::after { right: -12px; }
}
