/* QRIS Absen — landing page styles (editorial / warm-paper theme) */

:root {
    --ink: #221a13;
    --paper: #fbf6ec;
    --paper-dim: #f2ead9;
    --line: #e6dac2;
    --brand: #4c2a8f;
    --terracotta: #c1502e;
}

html {
    scroll-behavior: smooth;
}

body {
    background-color: var(--paper);
    color: var(--ink);
}

/* Faint paper grain overlay — replaces the generic AI gradient-blob backdrop */
.paper-grain {
    position: fixed;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    opacity: 0.5;
    mix-blend-mode: multiply;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='matrix' values='0 0 0 0 0.13  0 0 0 0 0.10  0 0 0 0 0.08  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* Decorative dashed-ring accents used behind hero & CTA — hand-set, not blurred gradient blobs */
.editorial-bg {
    position: absolute;
    inset: 0;
    overflow: hidden;
    z-index: 0;
    pointer-events: none;
}

.editorial-bg .ring-1 {
    position: absolute;
    top: -4rem;
    right: -6rem;
    width: min(26rem, 70vw);
    height: min(26rem, 70vw);
    border: 1.5px dashed color-mix(in srgb, var(--brand) 35%, transparent);
    border-radius: 9999px;
}

.editorial-bg .ring-2 {
    position: absolute;
    bottom: -8rem;
    left: -5rem;
    width: min(20rem, 55vw);
    height: min(20rem, 55vw);
    border: 1.5px dashed color-mix(in srgb, var(--terracotta) 40%, transparent);
    border-radius: 9999px;
}

/* On small screens, pull the rings further into the corners so they stay
   decorative accents instead of crossing over hero/CTA text (min() alone
   still leaves them large enough to overlap short mobile viewports). */
@media (max-width: 640px) {
    .editorial-bg .ring-1 {
        top: -3rem;
        right: -5rem;
    }

    .editorial-bg .ring-2 {
        bottom: -5rem;
        left: -4rem;
    }
}

.editorial-bg .ring-1--cta {
    width: min(18rem, 55vw);
    height: min(18rem, 55vw);
    top: -4rem;
    right: 10%;
}

@media (max-width: 640px) {
    .editorial-bg .ring-1--cta {
        top: -3rem;
        right: -3rem;
    }
}

.editorial-bg .plus {
    position: absolute;
    font-family: var(--font-serif, serif);
    color: color-mix(in srgb, var(--terracotta) 55%, transparent);
    font-size: 1.75rem;
    line-height: 1;
}

/* Reveal-on-scroll utility, toggled by landing.js via IntersectionObserver */
.reveal {
    opacity: 0;
    transform: translateY(16px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
    opacity: 1;
    transform: translateY(0);
}

/* Sticky header gains a hairline + paper backdrop once scrolled */
#site-header {
    background-color: color-mix(in srgb, var(--paper) 92%, transparent);
    transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

#site-header.is-scrolled {
    backdrop-filter: blur(8px);
    border-color: var(--line);
    box-shadow: 0 1px 0 var(--line);
}

/* Offset-shadow "stamped" buttons — deliberately not a soft glowing pill */
.btn-stamp {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    border: 1.5px solid var(--ink);
    border-radius: 0.65rem;
    font-weight: 600;
    box-shadow: 4px 4px 0 var(--ink);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-stamp:hover {
    transform: translate(-2px, -2px);
    box-shadow: 6px 6px 0 var(--ink);
}

.btn-stamp:active {
    transform: translate(0, 0);
    box-shadow: 2px 2px 0 var(--ink);
}

/* Section kicker — small rotated square marker instead of a rounded pill badge */
.kicker {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.kicker::before {
    content: '';
    width: 0.5rem;
    height: 0.5rem;
    background: var(--terracotta);
    transform: rotate(45deg);
    flex-shrink: 0;
}

/* Ticket-style ID card mockup in the hero */
.id-card {
    position: relative;
    background: var(--paper);
    border: 1.5px solid var(--ink);
    border-radius: 1rem;
    box-shadow: 8px 8px 0 color-mix(in srgb, var(--brand) 85%, black);
}

.id-card .perforation {
    display: flex;
    gap: 6px;
    justify-content: center;
    padding: 0.6rem 0;
    border-top: 1.5px dashed var(--line);
    border-bottom: 1.5px dashed var(--line);
}

.id-card .perforation span {
    width: 4px;
    height: 4px;
    border-radius: 9999px;
    background: var(--line);
}

/* Numbered feature rows — replaces rounded icon-badge grid */
.feature-row {
    border-top: 1px solid var(--line);
    transition: background-color 0.25s ease;
}

.feature-row:last-child {
    border-bottom: 1px solid var(--line);
}

.feature-row:hover {
    background-color: color-mix(in srgb, var(--terracotta) 5%, transparent);
}

.feature-row .num {
    font-family: var(--font-serif, serif);
    font-style: italic;
}

/* Cara kerja timeline connector */
.timeline-step {
    position: relative;
}

.timeline-step:not(:last-child)::after {
    content: '';
    position: absolute;
    top: 0.9rem;
    left: calc(100% - 0.5rem);
    width: calc(2rem + 1px);
    height: 1.5px;
    background-image: linear-gradient(to right, color-mix(in srgb, var(--paper) 45%, transparent) 0 6px, transparent 6px 12px);
    background-size: 12px 1.5px;
    display: none;
}

@media (min-width: 1024px) {
    .timeline-step:not(:last-child)::after {
        display: block;
    }
}

/* Pricing */
.pricing-card {
    position: relative;
    border-radius: 1rem;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
}

.pricing-card.is-featured {
    background: var(--ink);
}

.pricing-divider {
    border-top: 1.5px dashed var(--line);
}

.pricing-card.is-featured .pricing-divider {
    border-top-color: rgba(251, 246, 236, 0.2);
}

.marquee-track {
    animation: marquee 28s linear infinite;
}

@keyframes marquee {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1;
        transform: none;
        transition: none;
    }
    .marquee-track {
        animation: none;
    }
}
