:root {
    --red: #DC1928;
    --maroon: #351216;
    --brown: #4a1515;
    --wine: #852520;
    --cream: #FBEFD5;
    --paper: #fdf8eb;
    --yellow: #E6A817;
    --slate: #5C7A8E;
    --orange: #d36831;
    --dark-border: #3A0B0B;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    scroll-padding-top: 24px;
}

body {
    margin: 0;
    font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
    color: var(--brown);
    background: var(--red);
    -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
    font-family: 'Inter Tight', 'Plus Jakarta Sans', sans-serif;
    letter-spacing: -0.03em;
    margin: 0;
}

p {
    margin: 0;
}

.skip-link {
    position: absolute;
    left: 16px;
    top: -100px;
    z-index: 100;
    padding: 10px 18px;
    background: white;
    color: var(--brown);
    border: 2px solid var(--dark-border);
    border-radius: 999px;
    font-weight: 700;
}

.skip-link:focus {
    top: 16px;
}

:focus-visible {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.grid-red {
    background-color: var(--red);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.12) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
    background-size: 70px 70px;
}

.top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    padding: 24px clamp(16px, 5vw, 48px);
}

.logo {
    display: flex;
    align-items: center;
    width: 132px;
}

.logo img {
    display: block;
    height: auto;
    min-width: 0;
}

.logo img+img {
    margin-left: -2%;
}

.logo img:nth-child(1) { width: 43.83%; }

.logo img:nth-child(2) { width: 32.12%; }

.logo img:nth-child(3) { width: 24.05%; }

.pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 24px;
    background: white;
    color: #851c1c;
    border: 2px solid var(--dark-border);
    border-radius: 999px;
    box-shadow: 4px 4px 0 var(--dark-border);
    font: 700 1rem/1.2 'Plus Jakarta Sans', sans-serif;
    text-decoration: none;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease;
}

.pill:hover {
    transform: translate(2px, 2px);
    box-shadow: 2px 2px 0 var(--dark-border);
}

.pill:active {
    transform: translate(4px, 4px);
    box-shadow: 0 0 0 var(--dark-border);
}

.pill--red {
    background: var(--red);
    color: white;
}

.pill[disabled] {
    opacity: .45;
    cursor: not-allowed;
    transform: none;
    box-shadow: 4px 4px 0 var(--dark-border);
}

.pill svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

main {
    padding: 8px 16px 96px;
}

.card {
    position: relative;
    width: 100%;
    max-width: 880px;
    margin: 0 auto;
    padding: clamp(24px, 5vw, 48px);
    background: var(--cream);
    border: 4px solid var(--dark-border);
    border-radius: 28px;
    box-shadow: 10px 10px 0 var(--dark-border);
}

.eyebrow {
    display: inline-block;
    margin-bottom: 12px;
    padding: 6px 14px;
    background: white;
    border: 2px solid var(--dark-border);
    border-radius: 999px;
    color: var(--red);
    font-weight: 800;
    font-size: .85rem;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.title {
    font-size: clamp(1.8rem, 5vw, 2.8rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--red);
}

.lead {
    margin-top: 16px;
    max-width: 56ch;
    font-size: clamp(1rem, 2vw, 1.15rem);
    font-weight: 600;
    line-height: 1.55;
}

[hidden] {
    display: none !important;
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: none; }
}

.enter {
    animation: fadeUp .45s cubic-bezier(.22, 1, .36, 1);
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
    }
}

::-webkit-scrollbar {
    width: 8px;
}

@supports not selector(::-webkit-scrollbar) {
    html {
        scrollbar-width: thin;
        scrollbar-color: #aa322f transparent;
    }
}

.footer-page-content {
    position: relative;
    z-index: 1;
    display: flow-root;
    overflow-x: clip;
}

.facts {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 24px 0 32px;
    padding: 0;
    list-style: none;
}

.facts li {
    padding: 8px 14px;
    background: var(--paper);
    border: 2px dashed var(--wine);
    border-radius: 12px;
    font-weight: 700;
    font-size: .95rem;
}

.box {
    margin-top: 20px;
    padding: clamp(18px, 3vw, 28px);
    background: white;
    border: 3px solid var(--dark-border);
    border-radius: 20px;
    box-shadow: 5px 5px 0 var(--dark-border);
}

.box h3 {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 1.3rem;
    color: var(--red);
}

.box h3 svg {
    width: 26px;
    height: 26px;
    flex-shrink: 0;
}

.tips {
    margin: 0;
    padding-left: 1.2em;
    display: grid;
    gap: 10px;
    font-weight: 600;
    line-height: 1.55;
}

.note {
    margin-top: 12px;
    font-size: .9rem;
    font-weight: 600;
    opacity: .8;
}

.result-actions {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 36px;
}

@media (max-width: 520px) {
    .actions .pill,
    .result-actions .pill {
        width: 100%;
    }

    .card {
        box-shadow: 6px 6px 0 var(--dark-border);
    }
}

.hint {
    min-height: 1.5em;
    font-weight: 700;
    color: var(--wine);
}

.field {
    margin-bottom: 20px;
}

.field label {
    display: block;
    margin-bottom: 8px;
    font-weight: 800;
}

.field .note {
    margin-top: 8px;
}

#hasil-title:focus {
    outline: none;
}

.money {
    display: flex;
    align-items: center;
    background: white;
    border: 3px solid var(--dark-border);
    border-radius: 20px;
    box-shadow: 5px 5px 0 var(--dark-border);
    overflow: hidden;
}

.money:focus-within {
    outline: 3px solid var(--yellow);
    outline-offset: 3px;
}

.money span {
    padding: 0 4px 0 18px;
    font-weight: 800;
    color: var(--wine);
}

.money input {
    flex: 1;
    min-width: 0;
    padding: 14px 18px 14px 6px;
    border: 0;
    background: transparent;
    font: 700 1.25rem/1.2 'Plus Jakarta Sans', sans-serif;
    color: var(--brown);
}

.money input:focus {
    outline: none;
}

.money input[aria-invalid="true"] {
    background: #fde8e9;
}

.section-title {
    font-size: clamp(1.7rem, 4.5vw, 2.5rem);
    font-weight: 800;
    line-height: 1.1;
    color: var(--red);
}

.stats {
    margin: 20px 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr));
    gap: 12px;
}

.stats li {
    padding: 16px;
    background: white;
    border: 3px solid var(--dark-border);
    border-radius: 18px;
    font-weight: 700;
    overflow-wrap: anywhere;
}

.stats strong {
    display: block;
    margin-top: 4px;
    font-family: 'Inter Tight', sans-serif;
    font-size: 1.7rem;
    line-height: 1.15;
    color: var(--red);
}

.body {
    margin-top: 12px;
    max-width: 60ch;
    font-weight: 600;
    line-height: 1.6;
}

.table {
    width: 100%;
    margin-top: 20px;
    border-collapse: separate;
    border-spacing: 0;
    background: white;
    border: 3px solid var(--dark-border);
    border-radius: 18px;
    overflow: hidden;
}

.table caption {
    padding-bottom: 10px;
    text-align: left;
    font-weight: 800;
}

.table th,
.table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 2px solid var(--paper);
    line-height: 1.45;
}

.table thead th {
    background: var(--maroon);
    color: var(--cream);
}

.table td.num {
    font-family: 'Inter Tight', sans-serif;
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--red);
    white-space: nowrap;
}

@media (max-width: 640px) {
    .table,
    .table tbody,
    .table tr,
    .table td,
    .table th {
        display: block;
    }

    .table {
        border: 0;
        background: none;
    }

    .table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip: rect(0 0 0 0);
    }

    .table tr {
        margin-bottom: 12px;
        background: white;
        border: 3px solid var(--dark-border);
        border-radius: 16px;
        overflow: hidden;
    }

    .table th[scope="row"] {
        background: var(--maroon);
        color: var(--cream);
    }

    .table td[data-label] {
        display: flex;
        justify-content: space-between;
        gap: 12px;
    }

    .table td[data-label]::before {
        content: attr(data-label);
        font: 700 .95rem 'Plus Jakarta Sans', sans-serif;
        color: var(--brown);
    }
}

.byline {
    margin-top: 16px;
    font-size: .9rem;
    font-weight: 700;
    opacity: .75;
}

.refs li:target {
    background: var(--yellow);
}

.hl {
    padding: 0 3px;
    font-weight: 800;
    color: var(--maroon);
    background: linear-gradient(transparent 52%, rgba(230, 168, 23, .6) 52%) no-repeat 0 0 / 100% 100%;
    -webkit-box-decoration-break: clone;
    box-decoration-break: clone;
    transition: background-size .9s cubic-bezier(.22, 1, .36, 1);
}

.js-hl .hl {
    background-size: 0% 100%;
}

.js-hl .hl.is-lit {
    background-size: 100% 100%;
}

.article .pull {
    margin: 28px 0 8px;
    padding: 20px 24px;
    background: white;
    border: 3px solid var(--dark-border);
    border-left: 10px solid var(--red);
    border-radius: 18px;
    box-shadow: 5px 5px 0 var(--dark-border);
    font-family: 'Inter Tight', sans-serif;
    font-size: clamp(1.3rem, 3.5vw, 1.7rem);
    font-weight: 800;
    line-height: 1.25;
    letter-spacing: -0.02em;
    color: var(--red);
}

.pull span {
    color: var(--brown);
}

:root {
    --orange-deep: #BF5625;
    --yellow-soft: #FBE3A6;
    --slate-soft: #DCE6EC;
    --orange-soft: #F7D2BD;
}

.eyebrow {
    background: var(--yellow);
    color: var(--brown);
}

.card~.card .eyebrow {
    background: var(--slate);
    color: white;
}

.stats li,
.alts li {
    border: 3px solid var(--dark-border);
    box-shadow: 4px 4px 0 var(--dark-border);
}

.stats li:nth-child(3n+1),
.alts li:nth-child(3n+1) {
    background: var(--yellow);
    color: var(--brown);
}

.stats li:nth-child(3n+2),
.alts li:nth-child(3n+2) {
    background: var(--slate);
    color: white;
}

.stats li:nth-child(3n),
.alts li:nth-child(3n) {
    background: var(--orange-deep);
    color: white;
}

.stats li strong,
.alts li strong {
    color: inherit;
}

.facts li {
    border: 2px solid var(--dark-border);
    color: var(--brown);
}

.facts li:nth-child(3n+1) {
    background: var(--yellow-soft);
}

.facts li:nth-child(3n+2) {
    background: var(--slate-soft);
}

.facts li:nth-child(3n) {
    background: var(--orange-soft);
}

.box {
    border-top-width: 10px;
}

.box:nth-of-type(3n+1) {
    border-top-color: var(--yellow);
}

.box:nth-of-type(3n+2) {
    border-top-color: var(--slate);
}

.box:nth-of-type(3n) {
    border-top-color: var(--orange-deep);
}

.tips li::marker {
    color: var(--orange-deep);
}

.note {
    max-width: 60ch;
}

.money {
    max-width: 320px;
}
