
/* Round 9: page texture, header nav, slider control, empty result state, PDF button, About page. */

/* ---------- Page canvas: soft green wash + faint grid (same language as the hero) ---------- */
body { background-color: #eef5f1; }
#root .bg-fintatif-softBg { background: transparent; }
body::before, body::after { content: ""; position: fixed; inset: 0; z-index: -1; pointer-events: none; }
body::before {
    background:
        radial-gradient(900px 560px at 100% -5%, rgb(16 185 129 / 14%), transparent 65%),
        radial-gradient(760px 520px at -5% 105%, rgb(6 182 212 / 9%), transparent 65%),
        radial-gradient(700px 460px at 35% 45%, rgb(63 217 160 / 6%), transparent 70%),
        linear-gradient(180deg, #f3f9f6 0%, #e9f3ee 100%);
}
body::after {
    background-image:
        linear-gradient(rgb(0 106 71 / 7%) 1px, transparent 1px),
        linear-gradient(90deg, rgb(0 106 71 / 7%) 1px, transparent 1px);
    background-size: 48px 48px;
    -webkit-mask-image: radial-gradient(ellipse 65% 55% at 92% 6%, #000 10%, transparent 72%), radial-gradient(ellipse 55% 45% at 4% 96%, #000 5%, transparent 72%);
    mask-image: radial-gradient(ellipse 65% 55% at 92% 6%, #000 10%, transparent 72%), radial-gradient(ellipse 55% 45% at 4% 96%, #000 5%, transparent 72%);
}

/* ---------- Header: underline nav + one mint action ---------- */
#root .site-header .site-nav { gap: 2px; padding: 0; background: transparent; border: 0; border-radius: 0; box-shadow: none; }
#root .site-header .site-nav-link {
    position: relative; min-height: 44px; padding: 10px 13px; margin: 0; border: 0; border-radius: 10px;
    font-size: 14px; font-weight: 550; letter-spacing: -.01em; color: #a9bdc8; background: transparent; box-shadow: none;
    transition: color 160ms ease;
}
#root .site-header .site-nav-link::after {
    content: ""; position: absolute; left: 13px; right: 13px; bottom: 4px; height: 2px; border-radius: 2px;
    background: var(--fr-mint); transform: scaleX(0); opacity: 0;
    transition: transform 260ms var(--fr-ease), opacity 200ms ease;
}
#root .site-header nav button.site-nav-link:not(.is-active):hover { color: #fff; background: transparent; }
#root .site-header nav button.site-nav-link:not(.is-active):hover::after { transform: scaleX(.35); opacity: .6; }
#root .site-header .site-nav-link.is-active { color: #fff; font-weight: 650; background: transparent; box-shadow: none; animation: none; }
#root .site-header .site-nav-link.is-active::after { transform: scaleX(1); opacity: 1; box-shadow: 0 0 12px rgb(63 217 160 / 65%); }
#root .site-header .header-cta {
    display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 8px 14px 8px 12px; border-radius: 999px;
    background: var(--fr-mint); border: 1px solid var(--fr-mint); color: var(--fr-navy);
    font-size: 13px; font-weight: 700; letter-spacing: -.01em; white-space: nowrap;
    box-shadow: 0 8px 22px -12px rgb(63 217 160 / 85%);
}
#root .site-header .header-cta svg { width: 17px; height: 17px; color: currentColor; stroke-width: 1.8; }
#root .site-header .header-cta .header-cta-arrow { width: 14px; height: 14px; opacity: 1; }
@media (hover: hover) {
    #root .site-header .header-cta:hover { background: var(--fr-mint-2); border-color: var(--fr-mint-2); }
}
@media (min-width: 1024px) {
    #root .site-header .header-actions { display: none; }
    #root .site-header .site-nav { margin-left: auto; margin-right: -13px; gap: 6px; }
}
@media (max-width: 1023px) { #root .site-header .header-cta { display: none; } }
#root .mobile-navigation .mobile-nav-cta svg:last-child { width: 15px; height: 15px; }

/* ---------- Home: no eyebrow above the simulator heading, tighter spacing ---------- */
#root .home-page > .tool-section { margin-top: 48px; }
#root .tool-section > div:first-child p { margin-top: 8px; }
#root .tool-section > .grid { margin-top: 24px; }
@media (max-width: 767px) {
    #root .home-page > .tool-section { margin-top: 34px; }
    #root .tool-section > .grid { margin-top: 18px; }
}

/* ---------- Hero slider: one pill for the current slide + one next arrow ---------- */
#root .hc-controls-in { justify-content: flex-end; gap: 10px; }
#root .hc-current {
    position: relative; overflow: hidden; display: inline-flex; align-items: center; gap: 12px;
    justify-content: center; height: 44px; min-width: 172px; padding: 0 20px; border-radius: 999px;
    border: 1px solid rgb(63 217 160 / 34%); background: rgb(63 217 160 / 10%);
    color: #fff; font-size: 13px; font-weight: 600; line-height: 1;
}
#root .hc-count { display: inline-flex; align-items: baseline; gap: 1px; padding-right: 12px; border-right: 1px solid rgb(255 255 255 / 16%); color: var(--fr-mint); font-size: 12.5px; font-weight: 800; letter-spacing: .03em; font-variant-numeric: tabular-nums; }
#root .hc-count small { color: #7f98a6; font-size: 11px; font-weight: 700; }
#root .hc-label { white-space: nowrap; }
#root .hc-current .hc-dot-bar { position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--fr-mint); }
#root .hero-carousel.is-playing .hc-current .hc-dot-bar { width: 0; animation: hc-progress 5s linear forwards; }
#root .hc-next {
    display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 999px;
    border: 1px solid rgb(63 217 160 / 34%); background: rgb(63 217 160 / 10%); color: var(--fr-mint);
    transition: background-color 180ms ease, color 180ms ease, border-color 180ms ease;
}
#root .hc-next svg { width: 18px; height: 18px; stroke-width: 2; transition: transform 220ms var(--fr-ease); }
@media (hover: hover) {
    #root .hc-next:hover { background: var(--fr-mint); border-color: var(--fr-mint); color: var(--fr-navy); }
    #root .hc-next:hover svg { transform: translateX(2px); }
}
@keyframes hc-label-in { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) { #root .hc-label { animation: hc-label-in 420ms var(--fr-ease); } }
@media (max-width: 767px) {
    #root .hc-current { height: 40px; min-width: 160px; padding: 0 18px; font-size: 12.5px; gap: 10px; }
    #root .hc-count { padding-right: 10px; font-size: 12px; }
    #root .hc-next { width: 40px; height: 40px; }
}

/* ---------- Empty result state: plain surface with a faint Fintatif mark ---------- */
#root .simulator-panel .min-h-\[320px\] {
    position: relative; isolation: isolate; overflow: hidden;
    background: radial-gradient(120% 90% at 50% 28%, #f3faf6 0%, #fbfcfc 72%);
    border-color: #cadad3;
}
#root .simulator-panel .min-h-\[320px\] > div:first-child { display: none; }
#root .simulator-panel .min-h-\[320px\]::before {
    content: ""; display: block; flex: none; width: 260px; height: 128px; margin-bottom: 4px; pointer-events: none;
    background: url("https://iili.io/CZD1Jn4.md.png") center / 260px 260px no-repeat; filter: brightness(0); opacity: .09;
}
@media (max-width: 767px) {
    #root .simulator-panel .min-h-\[320px\]::before { width: 210px; height: 104px; background-size: 210px 210px; }
}

/* ---------- Calculate & PDF buttons: one tidy row each, icon + label centred ---------- */
#root .simulator-panel .space-y-3.pt-2 > button {
    display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%;
    min-height: 50px; padding: 12px 18px; line-height: 1.35; text-align: center; white-space: normal;
}
#root .simulator-panel .space-y-3.pt-2 > button > * { margin: 0 !important; }
#root .simulator-panel .space-y-3.pt-2 > button > svg { flex: 0 0 18px; width: 18px; height: 18px; }
#root .simulator-panel .space-y-3.pt-2 > button > span { min-width: 0; text-wrap: balance; }
#root .simulator-panel .space-y-3.pt-2 > button.bg-slate-900 { border: 1px solid var(--fr-navy); }
@media (max-width: 639px) {
    #root .simulator-panel .space-y-3.pt-2 > button { min-height: 52px; padding: 13px 16px; font-size: 13.5px; border-radius: 13px; }
}

/* ---------- About page ---------- */
#root .about-body { padding: 48px 56px; }
#root .about-body > .about-block { max-width: 68ch; margin-inline: auto; }
#root .about-body > .about-block + .about-block { margin-top: 40px; padding-top: 36px; border-top: 1px solid var(--ft-line); }
#root .about-block h2 { margin: 0 0 16px; padding-left: 12px; border-left: 3px solid var(--ft-green); font-size: 22px; line-height: 1.35; font-weight: 800; letter-spacing: -.025em; color: var(--ft-ink); }
#root .about-block p { margin: 0 0 14px; font-size: 16px; line-height: 1.85; color: var(--ft-body); }
#root .about-block p:last-child { margin-bottom: 0; }
#root .about-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 22px 0 8px; }
#root .about-stats > div { padding: 18px; border: 1px solid var(--ft-line); border-top: 3px solid var(--ft-green); border-radius: 14px; background: #f6fbf8; }
#root .about-stats > div.is-low { border-top-color: #d6961e; background: #fffaf0; }
#root .about-stats b { display: block; font-size: 32px; line-height: 1.1; font-weight: 800; letter-spacing: -.035em; color: var(--ft-ink); font-variant-numeric: tabular-nums; }
#root .about-stats span { display: block; margin-top: 6px; font-size: 13px; line-height: 1.55; color: var(--ft-muted); }
#root .about-body p.about-note { margin-bottom: 20px; font-size: 12px; line-height: 1.6; color: var(--ft-subtle); text-align: left; }
#root .about-founder { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 16px; margin: 0; padding: 20px 22px; border-radius: 16px; background: var(--fr-navy); color: #fff; }
#root .about-founder::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(360px 200px at 100% 0%, rgb(16 185 129 / 28%), transparent 70%), linear-gradient(rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 32px 32px, linear-gradient(90deg, rgb(255 255 255 / 4%) 1px, transparent 1px) 0 0 / 32px 32px; }
#root .about-avatar { display: grid; place-items: center; flex: none; width: 58px; height: 58px; border-radius: 16px; background: rgb(63 217 160 / 15%); border: 1px solid rgb(63 217 160 / 35%); color: var(--fr-mint); font-size: 19px; font-weight: 800; letter-spacing: .02em; }
#root .about-founder b { display: block; font-size: 17px; line-height: 1.3; font-weight: 800; letter-spacing: -.02em; }
#root .about-founder > div > span { display: block; margin-top: 2px; font-size: 12.5px; color: #a7f3d0; }
#root .about-founder ul { display: flex; flex-wrap: wrap; gap: 6px; margin: 12px 0 0; padding: 0; list-style: none; }
#root .about-body .about-founder li { padding: 4px 11px; border-radius: 999px; background: rgb(255 255 255 / 7%); border: 1px solid rgb(255 255 255 / 12%); font-size: 12px; line-height: 1.5; color: #d6e2e9; text-align: left; hyphens: manual; }
#root .about-offers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
#root .about-offer { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; text-align: left; border: 1px solid var(--ft-line); border-radius: 16px; background: #fff; transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease; }
#root .about-offer-icon { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 4px; border-radius: 12px; background: var(--ft-tint); color: var(--ft-green); transition: background-color 180ms ease, color 180ms ease; }
#root .about-offer-icon svg { width: 20px; height: 20px; }
#root .about-offer b { font-size: 15px; line-height: 1.4; font-weight: 750; letter-spacing: -.015em; color: var(--ft-ink); }
#root .about-offer-text { font-size: 13px; line-height: 1.6; color: var(--ft-muted); }
#root .about-offer-cta { display: inline-flex; align-items: center; gap: 6px; margin-top: auto; padding-top: 8px; font-size: 12.5px; font-weight: 700; color: var(--ft-green); }
#root .about-offer-cta svg { width: 15px; height: 15px; }
/* Jumlah kartu ganjil: kartu terakhir selebar dua kolom. */
#root .about-offer:last-child:nth-child(odd) { grid-column: 1 / -1; }
@media (hover: hover) {
    #root .about-offer:hover { border-color: #9fd3bc; box-shadow: 0 18px 36px -26px rgb(11 34 49 / 45%); transform: translateY(-2px); }
    #root .about-offer:hover .about-offer-icon { background: var(--ft-green); color: #fff; }
}
#root .about-principles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 0; padding: 0; list-style: none; }
#root .about-body .about-principles li { display: grid; grid-template-columns: 30px minmax(0, 1fr); align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--ft-line); border-radius: 14px; background: #f7faf9; text-align: left; line-height: 1.6; }
#root .about-principle-num { font-size: 20px; line-height: 1.25; font-weight: 800; letter-spacing: -.02em; color: var(--ft-green); font-variant-numeric: tabular-nums; }
#root .about-principles b { display: block; margin: 0; font-size: 14.5px; line-height: 1.4; font-weight: 750; color: var(--ft-ink); }
@media (max-width: 767px) { #root .about-principles { grid-template-columns: minmax(0, 1fr); } }
#root .about-principles li span { display: block; font-size: 13.5px; line-height: 1.65; color: var(--ft-body); }
#root .about-cta { position: relative; isolation: isolate; overflow: hidden; display: flex; flex-wrap: wrap; align-items: center; gap: 18px 24px; padding: 24px; border-radius: 18px; background: var(--fr-navy); color: #cddae2; }
#root .about-cta::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(420px 240px at 100% 0%, rgb(16 185 129 / 26%), transparent 70%); }
#root .about-cta > div:first-child { flex: 1 1 280px; }
#root .about-cta b { display: block; margin-bottom: 4px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: #fff; }
#root .about-cta > div:first-child span { display: block; font-size: 14px; line-height: 1.7; text-align: justify; text-align-last: left; text-justify: inter-word; -webkit-hyphens: auto; hyphens: auto; }
#root .about-cta-actions { display: flex; flex-wrap: wrap; gap: 10px; }
#root .about-cta-actions button { min-height: 46px; padding: 11px 18px; border-radius: 12px; font-size: 13.5px; font-weight: 700; }
#root .about-cta-actions button:first-child { background: var(--fr-mint); border: 1px solid var(--fr-mint); color: var(--fr-navy); }
#root .about-cta-actions button:last-child { background: rgb(255 255 255 / 6%); border: 1px solid rgb(255 255 255 / 20%); color: #eef5f2; }
@media (hover: hover) {
    #root .about-cta-actions button:first-child:hover { background: var(--fr-mint-2); border-color: var(--fr-mint-2); }
    #root .about-cta-actions button:last-child:hover { background: rgb(255 255 255 / 12%); }
}
#root .about-body p.about-signoff { margin-top: 20px; font-size: 15px; color: var(--ft-ink); text-align: center; text-align-last: center; }
@media (max-width: 767px) {
    #root .about-body { padding: 24px 18px; }
    #root .about-body > .about-block + .about-block { margin-top: 30px; padding-top: 28px; }
    #root .about-block h2 { font-size: 20px; }
    #root .about-block p { font-size: 15px; line-height: 1.8; }
    #root .about-stats { gap: 10px; }
    #root .about-stats > div { padding: 14px; }
    #root .about-stats b { font-size: 25px; }
    #root .about-stats span { font-size: 12px; }
    #root .about-founder { align-items: flex-start; padding: 16px; }
    #root .about-avatar { width: 48px; height: 48px; font-size: 16px; border-radius: 14px; }
    #root .about-offers { grid-template-columns: minmax(0, 1fr); }
    #root .about-cta { padding: 20px; }
    #root .about-cta-actions, #root .about-cta-actions button { width: 100%; }
}

/* Page heads: compact box sized to its text, description on one line on wide screens. */
#root .articles-page > div:first-child, #root .about-page > div:first-child { padding: 26px 32px; border-radius: 22px; }
#root .articles-page > div:first-child > *, #root .about-page > div:first-child > * { margin-top: 0; margin-bottom: 0; }
#root .articles-page h1, #root .about-page h1 { margin-top: 8px; font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; }
#root .articles-page > div:first-child p, #root .about-page > div:first-child p { margin-top: 8px; max-width: none; font-size: 15px; line-height: 1.6; }
@media (min-width: 1024px) {
    #root .articles-page > div:first-child p, #root .about-page > div:first-child p { white-space: nowrap; }
}
@media (max-width: 767px) {
    #root .articles-page > div:first-child, #root .about-page > div:first-child { padding: 20px 18px; border-radius: 18px; }
    #root .articles-page > div:first-child p { font-size: 13.5px; }
}
