/* =================================================================
   HitungYuk — Design System
   Mobile-first vanilla CSS. No build step required.
   ================================================================= */

/* ---- Google Fonts ---- */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

/* ---- Design Tokens ---- */
:root {
    --primary: #C0392B;
    --primary-dark: #A93226;
    --primary-light: #FDECEA;
    --primary-muted: #F5B7B1;

    --text-dark: #111827;
    --text-body: #374151;
    --text-muted: #6B7280;
    --text-light: #9CA3AF;

    --bg: #FFFFFF;
    --bg-subtle: #F9FAFB;
    --bg-card: #FFFFFF;

    --border: #E5E7EB;
    --border-focus: #C0392B;

    --success: #059669;
    --success-light: #ECFDF5;
    --warning: #D97706;
    --warning-light: #FFFBEB;
    --error: #DC2626;
    --error-light: #FEF2F2;

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-xl: 20px;

    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08), 0 2px 4px rgba(0, 0, 0, 0.04);
    --shadow-card: 0 1px 4px rgba(0, 0, 0, 0.06);

    --font: 'Inter', ui-sans-serif, system-ui, sans-serif;

    --container: 1100px;
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;
    --space-10: 40px;
    --space-12: 48px;
    --space-16: 64px;
}

/* ---- Reset ---- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    -webkit-text-size-adjust: 100%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-body);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img,
svg {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input,
select,
textarea {
    font-family: inherit;
    font-size: inherit;
}

ul,
ol {
    list-style: none;
}

/* ---- Layout ---- */
.container {
    width: 100%;
    max-width: var(--container);
    margin-left: auto;
    margin-right: auto;
    padding-left: var(--space-4);
    padding-right: var(--space-4);
}

@media (min-width: 768px) {
    .container {
        padding-left: var(--space-6);
        padding-right: var(--space-6);
    }
}

/* ---- Header ---- */
.site-header {
    background: #fff;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
}

.site-header .container {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    height: 60px;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    flex-shrink: 0;
    text-decoration: none;
}

.header-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.header-logo .logo-icon svg {
    width: 18px;
    height: 18px;
}

.header-logo .logo-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
}

.header-logo .logo-name span {
    color: var(--primary);
}

.header-nav {
    display: none;
    gap: var(--space-1);
    align-items: center;
}

@media (min-width: 900px) {
    .header-nav {
        display: flex;
    }
}

.header-nav a {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-body);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-sm);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
}

.header-nav a:hover {
    background: var(--bg-subtle);
    color: var(--text-dark);
}

.header-nav a.active {
    color: var(--primary);
    background: var(--primary-light);
}

.header-right {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.header-search-wrap {
    position: relative;
    display: none;
}

@media (min-width: 640px) {
    .header-search-wrap {
        display: block;
    }
}

.header-search-input {
    height: 38px;
    width: 200px;
    padding: 0 var(--space-4) 0 36px;
    border: 1px solid var(--border);
    border-radius: 99px;
    background: var(--bg-subtle);
    font-size: 14px;
    color: var(--text-dark);
    outline: none;
    transition: border-color 0.15s, width 0.2s, box-shadow 0.15s;
}

.header-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
    width: 260px;
    background: #fff;
}

.header-search-input::placeholder {
    color: var(--text-light);
}

.header-search-icon {
    position: absolute;
    left: 11px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.btn-mobile-search {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 0;
}

@media (min-width: 640px) {
    .btn-mobile-search {
        display: none;
    }
}

.btn-mobile-search:hover {
    background: var(--bg-subtle);
    color: var(--text-dark);
}

.btn-hamburger {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border: none;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    border-radius: var(--radius-sm);
    padding: 0;
}

@media (min-width: 900px) {
    .btn-hamburger {
        display: none;
    }
}

.btn-hamburger:hover {
    background: var(--bg-subtle);
}

/* Mobile menu */
.mobile-menu {
    border-top: 1px solid var(--border);
    background: #fff;
    padding: var(--space-3) var(--space-4);
}

.mobile-menu a {
    display: block;
    padding: var(--space-3) var(--space-3);
    font-size: 15px;
    font-weight: 500;
    color: var(--text-body);
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}

.mobile-menu a:hover {
    background: var(--bg-subtle);
}

.mobile-menu a.active {
    color: var(--primary);
}

/* Search dropdown */
.search-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-md);
    z-index: 200;
    overflow: hidden;
    min-width: 320px;
}

.search-dropdown-item {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    cursor: pointer;
    transition: background 0.12s;
    text-decoration: none;
    color: var(--text-dark);
}

.search-dropdown-item:hover {
    background: var(--bg-subtle);
}

.search-dropdown-item:not(:last-child) {
    border-bottom: 1px solid var(--border);
}

.search-dropdown-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.search-dropdown-text {
    min-width: 0;
}

.search-dropdown-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.search-dropdown-desc {
    font-size: 12px;
    color: var(--text-muted);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-empty {
    padding: var(--space-4);
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
}

/* ---- Hero Section ---- */
.hero {
    background: var(--bg);
    padding: var(--space-12) 0 var(--space-8);
    text-align: center;
}

@media (min-width: 768px) {
    .hero {
        padding: var(--space-16) 0 var(--space-12);
    }
}

.hero h1 {
    font-size: 28px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.5px;
    line-height: 1.25;
    margin-bottom: var(--space-3);
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 40px;
    }
}

.hero-sub {
    font-size: 16px;
    color: var(--text-muted);
    max-width: 500px;
    margin: 0 auto var(--space-6);
    line-height: 1.6;
}

@media (min-width: 768px) {
    .hero-sub {
        font-size: 18px;
    }
}

/* Hero search */
.hero-search {
    max-width: 600px;
    margin: 0 auto var(--space-8);
    position: relative;
}

.hero-search-input {
    width: 100%;
    height: 54px;
    border: 1.5px solid var(--border);
    border-radius: 99px;
    padding: 0 var(--space-5) 0 52px;
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg-subtle);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-shadow: var(--shadow-sm);
}

.hero-search-input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(192, 57, 43, 0.1);
    background: #fff;
}

.hero-search-input::placeholder {
    color: var(--text-light);
}

.hero-search-icon {
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    pointer-events: none;
}

.hero-search-btn {
    position: absolute;
    right: 6px;
    top: 50%;
    transform: translateY(-50%);
    height: 42px;
    padding: 0 var(--space-5);
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 99px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.hero-search-btn:hover {
    background: var(--primary-dark);
}

/* Hero categories chips */
.hero-cats {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    justify-content: center;
}

.hero-cat-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 6px var(--space-3);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
    background: #fff;
    cursor: pointer;
    text-decoration: none;
    transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.hero-cat-chip:hover {
    border-color: var(--primary-muted);
    background: var(--primary-light);
    color: var(--primary);
}

.hero-cat-chip.active {
    border-color: var(--primary);
    background: var(--primary-light);
    color: var(--primary);
}

/* ---- Section ---- */
.section {
    padding: var(--space-8) 0;
}

@media (min-width: 768px) {
    .section {
        padding: var(--space-12) 0;
    }
}

.section-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -0.3px;
    margin-bottom: var(--space-5);
}

@media (min-width: 768px) {
    .section-title {
        font-size: 22px;
    }
}

.section-title-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-5);
    gap: var(--space-4);
    flex-wrap: wrap;
}

.section-title-row .section-title {
    margin-bottom: 0;
}

.section-link {
    font-size: 14px;
    font-weight: 500;
    color: var(--primary);
    text-decoration: none;
    white-space: nowrap;
}

.section-link:hover {
    text-decoration: underline;
}

/* ---- Tool Card Grid ---- */
.tools-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
}

@media (min-width: 640px) {
    .tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .tools-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: var(--space-4);
    }
}

@media (min-width: 1100px) {
    .tools-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

/* ---- Tool Card ---- */
.tool-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    text-decoration: none;
    color: var(--text-dark);
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s;
    cursor: pointer;
}

.tool-card:hover {
    border-color: var(--primary-muted);
    box-shadow: var(--shadow-md);
    transform: translateY(-1px);
}

.tool-card-icon {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-md);
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.tool-card-icon svg {
    width: 20px;
    height: 20px;
}

.tool-card-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    line-height: 1.4;
}

.tool-card-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.tool-card-cta {
    font-size: 13px;
    font-weight: 600;
    color: var(--primary);
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

/* ---- Category Filter Chips ---- */
.category-chips {
    display: flex;
    flex-wrap: nowrap;
    gap: var(--space-2);
    overflow-x: auto;
    padding-bottom: var(--space-2);
    margin-bottom: var(--space-5);
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.category-chips::-webkit-scrollbar {
    display: none;
}

.category-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 7px var(--space-3);
    border: 1px solid var(--border);
    border-radius: 99px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-body);
    background: #fff;
    cursor: pointer;
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.15s;
    flex-shrink: 0;
}

.category-chip:hover {
    border-color: var(--primary-muted);
    background: var(--primary-light);
    color: var(--primary);
}

.category-chip.active {
    border-color: var(--primary);
    background: var(--primary);
    color: #fff;
}

/* ---- Calculator Page ---- */
.calc-page {
    padding: var(--space-6) 0 var(--space-12);
}

.calc-breadcrumb {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    font-size: 13px;
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    flex-wrap: wrap;
}

.calc-breadcrumb a {
    color: var(--text-muted);
    text-decoration: none;
}

.calc-breadcrumb a:hover {
    color: var(--primary);
    text-decoration: underline;
}

.calc-breadcrumb svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.calc-layout {
    display: grid;
    grid-template-columns: 1fr;
    gap: var(--space-5);
}

@media (min-width: 768px) {
    .calc-layout {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-6);
        align-items: start;
    }
}

@media (min-width: 900px) {
    .calc-layout {
        grid-template-columns: 1.1fr 0.9fr;
    }
}

/* ---- Card ---- */
.card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: var(--space-6);
    box-shadow: var(--shadow-card);
}

.card-title {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-1);
    letter-spacing: -0.2px;
}

.card-subtitle {
    font-size: 14px;
    color: var(--text-muted);
    margin-bottom: var(--space-5);
    line-height: 1.5;
}

/* ---- Form Inputs ---- */
.form-group {
    margin-bottom: var(--space-4);
}

.form-label {
    display: block;
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin-bottom: var(--space-2);
}

.form-label .form-hint {
    font-size: 12px;
    font-weight: 400;
    color: var(--text-muted);
    margin-left: var(--space-1);
}

.form-input,
.form-select {
    width: 100%;
    height: 48px;
    padding: 0 var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    color: var(--text-dark);
    background: var(--bg);
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    appearance: none;
    -webkit-appearance: none;
}

.form-input:focus,
.form-select:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.1);
}

.form-input.error,
.form-select.error {
    border-color: var(--error);
}

.form-input::placeholder {
    color: var(--text-light);
}

.form-select-wrap {
    position: relative;
}

.form-select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 6px solid var(--text-muted);
    pointer-events: none;
}

.form-input-prefix {
    position: relative;
}

.form-input-prefix .prefix {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    pointer-events: none;
}

.form-input-prefix .form-input {
    padding-left: 42px;
}

.form-input-suffix {
    position: relative;
}

.form-input-suffix .suffix {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-muted);
    pointer-events: none;
}

.form-error {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    margin-top: var(--space-1);
    font-size: 12px;
    color: var(--error);
}

/* ---- Buttons ---- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    height: 48px;
    padding: 0 var(--space-6);
    border-radius: var(--radius-md);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.15s;
    text-decoration: none;
    white-space: nowrap;
}

.btn-primary {
    background: var(--primary);
    color: #fff;
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-primary:active {
    transform: scale(0.98);
}

.btn-outline {
    background: transparent;
    color: var(--primary);
    border: 1.5px solid var(--primary);
}

.btn-outline:hover {
    background: var(--primary-light);
}

.btn-ghost {
    background: var(--bg-subtle);
    color: var(--text-body);
    border: 1px solid var(--border);
}

.btn-ghost:hover {
    background: var(--border);
}

.btn-full {
    width: 100%;
}

.btn-sm {
    height: 38px;
    padding: 0 var(--space-4);
    font-size: 13px;
}

.btn-actions {
    display: flex;
    gap: var(--space-3);
    flex-wrap: wrap;
    margin-top: var(--space-5);
}

/* ---- Result Card ---- */
.result-card {
    background: var(--bg-card);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.result-card-header {
    background: var(--bg-subtle);
    padding: var(--space-4) var(--space-6);
    border-bottom: 1px solid var(--border);
}

.result-card-header .label {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: var(--text-muted);
}

.result-card-body {
    padding: var(--space-6);
}

.result-main {
    display: flex;
    align-items: baseline;
    gap: var(--space-2);
    margin-bottom: var(--space-4);
}

.result-number {
    font-size: 52px;
    font-weight: 700;
    color: var(--text-dark);
    letter-spacing: -2px;
    line-height: 1;
}

.result-unit {
    font-size: 18px;
    font-weight: 500;
    color: var(--text-muted);
}

.result-details {
    border-top: 1px solid var(--border);
    padding-top: var(--space-4);
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.result-detail-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
}

.result-detail-label {
    font-size: 13px;
    color: var(--text-muted);
}

.result-detail-value {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: right;
}

.result-disclaimer {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-4);
    background: var(--bg-subtle);
    border-radius: var(--radius-sm);
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.5;
    border-left: 3px solid var(--border);
}

/* Empty result state */
.result-empty {
    padding: var(--space-8) var(--space-6);
    text-align: center;
    color: var(--text-muted);
}

.result-empty-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--bg-subtle);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-3);
    color: var(--text-light);
}

.result-empty p {
    font-size: 14px;
}

/* Alert badge: success/warning */
.badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-1);
    padding: 4px var(--space-3);
    border-radius: 99px;
    font-size: 12px;
    font-weight: 600;
}

.badge-success {
    background: var(--success-light);
    color: var(--success);
}

.badge-warning {
    background: var(--warning-light);
    color: var(--warning);
}

.badge-danger {
    background: var(--error-light);
    color: var(--error);
}

/* ---- Inline Alert ---- */
.alert {
    padding: var(--space-3) var(--space-4);
    border-radius: var(--radius-md);
    font-size: 14px;
    margin-bottom: var(--space-4);
    display: flex;
    gap: var(--space-2);
    align-items: flex-start;
}

.alert-error {
    background: var(--error-light);
    color: #991B1B;
    border: 1px solid #FECACA;
}

.alert-success {
    background: var(--success-light);
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.alert svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    margin-top: 2px;
}

/* ---- SEO Content Section ---- */
.content-section {
    border-top: 1px solid var(--border);
    margin-top: var(--space-12);
    padding-top: var(--space-10);
}

.content-section h2 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: var(--space-4);
    letter-spacing: -0.3px;
}

@media (min-width: 768px) {
    .content-section h2 {
        font-size: 26px;
    }
}

.content-section p {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: var(--space-4);
}

.content-section ul {
    list-style: disc;
    padding-left: var(--space-5);
    margin-bottom: var(--space-4);
}

.content-section ul li {
    font-size: 15px;
    color: var(--text-body);
    line-height: 1.75;
    margin-bottom: var(--space-1);
}

.content-section h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-dark);
    margin: var(--space-8) 0 var(--space-3);
}

/* ---- FAQ Accordion ---- */
.faq-list {
    margin-top: var(--space-5);
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-2);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    padding: var(--space-4) var(--space-5);
    background: var(--bg-card);
    font-size: 15px;
    font-weight: 600;
    color: var(--text-dark);
    text-align: left;
    cursor: pointer;
    border: none;
    transition: background 0.12s;
}

.faq-question:hover {
    background: var(--bg-subtle);
}

.faq-question .icon {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.2s;
}

.faq-question[aria-expanded="true"] .icon {
    transform: rotate(180deg);
}

.faq-answer {
    padding: 0 var(--space-5) var(--space-4);
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.7;
    border-top: 1px solid var(--border);
}

.faq-answer p {
    margin-top: var(--space-3);
}

/* ---- Footer ---- */
.site-footer {
    background: var(--text-dark);
    color: #D1D5DB;
    padding: var(--space-12) 0 var(--space-6);
    margin-top: var(--space-16);
}

.footer-top {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    margin-bottom: var(--space-10);
}

@media (min-width: 640px) {
    .footer-top {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 900px) {
    .footer-top {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand {
    grid-column: 1 / -1;
}

@media (min-width: 900px) {
    .footer-brand {
        grid-column: auto;
    }
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.footer-logo .logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
}

.footer-logo .logo-icon svg {
    width: 18px;
    height: 18px;
}

.footer-logo .logo-name {
    font-size: 18px;
    font-weight: 700;
    color: #fff;
}

.footer-logo .logo-name span {
    color: var(--primary-muted);
}

.footer-tagline {
    font-size: 13px;
    color: #6B7280;
    line-height: 1.5;
    max-width: 220px;
}

.footer-col h4 {
    font-size: 13px;
    font-weight: 600;
    color: #F9FAFB;
    text-transform: uppercase;
    letter-spacing: 0.6px;
    margin-bottom: var(--space-4);
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-col ul a {
    font-size: 14px;
    color: #9CA3AF;
    text-decoration: none;
    transition: color 0.12s;
}

.footer-col ul a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid #1F2937;
    padding-top: var(--space-5);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-4);
    flex-wrap: wrap;
}

.footer-copy {
    font-size: 13px;
    color: #6B7280;
}

/* ---- Divider ---- */
.divider {
    border: none;
    border-top: 1px solid var(--border);
    margin: var(--space-6) 0;
}

/* ---- Utility ---- */
.text-primary {
    color: var(--primary);
}

.text-muted {
    color: var(--text-muted);
}

.text-center {
    text-align: center;
}

.mt-1 {
    margin-top: var(--space-1);
}

.mt-2 {
    margin-top: var(--space-2);
}

.mt-4 {
    margin-top: var(--space-4);
}

.mt-6 {
    margin-top: var(--space-6);
}

.mt-8 {
    margin-top: var(--space-8);
}

.mb-2 {
    margin-bottom: var(--space-2);
}

.mb-4 {
    margin-bottom: var(--space-4);
}

.flex {
    display: flex;
}

.flex-center {
    display: flex;
    align-items: center;
    justify-content: center;
}

.gap-2 {
    gap: var(--space-2);
}

.gap-3 {
    gap: var(--space-3);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ---- Comparison result ---- */
.compare-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3);
    margin-bottom: var(--space-4);
}

.compare-box {
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    padding: var(--space-4);
    text-align: center;
    background: var(--bg-subtle);
}

.compare-box.winner {
    border-color: var(--success);
    background: var(--success-light);
}

.compare-box-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-bottom: var(--space-1);
    font-weight: 500;
}

.compare-box-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-2);
}

.compare-box-price {
    font-size: 22px;
    font-weight: 700;
    color: var(--text-dark);
}

.compare-box-unit {
    font-size: 11px;
    color: var(--text-muted);
}

.compare-winner-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    font-weight: 600;
    color: var(--success);
    background: var(--success-light);
    padding: 2px 8px;
    border-radius: 99px;
    margin-top: var(--space-2);
}

/* ── Phase 2 additions ─────────────────────────────────────────── */

/* "Baru" badge on tool cards */
.tool-card-new-badge {
    display: inline-flex;
    align-items: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    color: var(--primary);
    background: var(--primary-light);
    border: 1px solid var(--primary-muted);
    padding: 2px 7px;
    border-radius: 99px;
    margin-left: var(--space-2);
    vertical-align: middle;
}

/* Related tools section */
.related-tools {
    margin-top: var(--space-8);
    padding-top: var(--space-6);
    border-top: 1px solid var(--border);
}

.related-tools-title {
    font-size: 26px;
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: var(--space-3);
}

.related-tools-grid {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
}

.related-tool-card {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    border: 1.5px solid var(--border);
    border-radius: var(--radius-md);
    background: var(--bg-subtle);
    transition: border-color 0.15s, background 0.15s;
    text-decoration: none;
}

.related-tool-card:hover {
    border-color: var(--primary-muted);
    background: var(--primary-light);
}

.related-tool-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--bg);
    border: 1px solid var(--border);
    flex-shrink: 0;
    color: var(--primary);
}

.related-tool-name {
    font-size: 14px;
    font-weight: 600;
    color: var(--text-dark);
}

.related-tool-desc {
    font-size: 12px;
    color: var(--text-muted);
    line-height: 1.4;
}

.related-tool-arrow {
    margin-left: auto;
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.15s;
}

.related-tool-card:hover .related-tool-arrow {
    transform: translateX(3px);
    color: var(--primary);
}

@media (min-width: 600px) {
    .related-tools-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 900px) {
    .related-tools-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Alert success */
.alert-success {
    background: #F0FDF4;
    border: 1px solid #86EFAC;
    color: #166534;
    border-radius: var(--radius-md);
    padding: var(--space-3) var(--space-4);
    font-size: 13px;
}