/* ==========================================
   Japanese Learning System — style.css
   Design: Matcha Gen Z Friendly
   ========================================== */

/* ---------- CSS VARIABLES ---------- */
:root {
    /* =========================================
       WARNA UTAMA - Matcha
       ========================================= */
    --brand-50:  #f4f6f0;
    --brand-100: #e8ede1;
    --brand-200: #d6dfca;
    --brand-300: #b9c7a9;
    --brand-400: #8fa07e;
    --brand-500: #6f815f;
    --brand-600: #596b4c;
    --brand-700: #435239;

    /* =========================================
       WARNA NETRAL - Cream & Ink
       ========================================= */
    --white:    #ffffff;
    --gray-50:  #fcfaf5;
    --gray-100: #f7f4eb;
    --gray-200: #ebe7dc;
    --gray-300: #d8d4c9;
    --gray-400: #aaa79e;
    --gray-500: #77766f;
    --gray-600: #5c5c56;
    --gray-700: #41423e;
    --gray-800: #2e302c;
    --gray-900: #20221f;

    /* =========================================
       WARNA AKSEN TAMBAHAN
       ========================================= */
    --success: #6f815f;
    --warning: #c49a52;
    --gold: #b59652;

    /* =========================================
       GRADIEN
       ========================================= */
    --gradient-brand:
        linear-gradient(135deg, #6f815f 0%, #435239 100%);

    /* Darker span of the same ramp, for large surfaces that carry white text
       across their whole area. */
    --gradient-surface:
        linear-gradient(160deg, #596b4c 0%, #435239 100%);

    /* Text on the brand gradient. */
    --on-brand: #ffffff;
    --on-brand-muted: rgba(255, 255, 255, 0.9);

    --gradient-soft:
        linear-gradient(135deg, #e8ede1 0%, #d6dfca 100%);

    --gradient-hero:
        linear-gradient(
            160deg,
            #fcfaf5 0%,
            #f7f4eb 45%,
            #f4f6f0 100%
        );

    /* =========================================
       BAYANGAN
       ========================================= */
    --shadow-sm:
        0 1px 3px rgba(32, 34, 31, 0.06);

    --shadow-md:
        0 4px 16px rgba(67, 82, 57, 0.10);

    --shadow-lg:
        0 8px 32px rgba(67, 82, 57, 0.14);

    --shadow-xl:
        0 16px 48px rgba(67, 82, 57, 0.18);

    /* =========================================
       RADIUS
       ========================================= */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 20px;
    --radius-xl: 28px;
    --radius-full: 9999px;

    /* =========================================
       TRANSISI
       ========================================= */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s cubic-bezier(0.4, 0, 0.2, 1);

    /* =========================================
       FONT
       ========================================= */
    --font-primary:
        'Plus Jakarta Sans',
        -apple-system,
        BlinkMacSystemFont,
        'Segoe UI',
        Roboto,
        sans-serif;

    /* =========================================
       SPACING
       ========================================= */
    --section-padding: 80px 0;
    --container-max: 1200px;

    /* =========================================
       STICKY HEADER OFFSET
       Height reserved when an in-page anchor is followed, so the
       target section is not hidden behind the sticky header. These
       values are the fallback for a page without scripting; script.js
       replaces them with the measured header height.
       ========================================= */
    --sticky-offset: 112px;
}

@media (max-width: 640px) {
    :root {
        /* Promo bar wraps to more lines here. Fallback only: script.js
           measures the real header height and overrides this. */
        --sticky-offset: 148px;
    }
}
/* ---------- RESET & BASE ---------- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
} 

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--sticky-offset); /* offset untuk sticky header */
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-primary);
    font-size: 16px;
    line-height: 1.7;
    color: var(--gray-700);
    background-color: var(--white);
    overflow-x: hidden;
    letter-spacing: 0.01em;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* ---------- IMAGE SLOTS ----------
   Every image placement is an <img> with explicit width/height attributes
   inside a wrapper that reserves the box. If the file is absent, the
   wrapper keeps its dimensions and shows this background instead of
   collapsing the layout around it. */
.img-slot {
    position: relative;
    overflow: hidden;
    background: var(--gray-100);
    aspect-ratio: 4 / 3;
}

.img-slot > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.img-slot--portrait  { aspect-ratio: 3 / 4; }
.img-slot--square    { aspect-ratio: 1 / 1; }
.img-slot--spread    { aspect-ratio: 4 / 3; }
.img-slot--photo     { aspect-ratio: 3 / 2; }

/* ---------- ICONS ----------
   One hidden <symbol> block in the document feeds every icon through
   <use>. Geometry lives in the symbol; appearance is set here and
   cascades into the shadow content, so an icon always inherits the
   colour of whatever it sits in. */
.icon-sprite {
    position: absolute;
    width: 0;
    height: 0;
    overflow: hidden;
}

.icon {
    width: 24px;
    height: 24px;
    display: block;
    flex-shrink: 0;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.icon--filled {
    fill: currentColor;
    stroke: none;
}

.icon--xs {
    width: 14px;
    height: 14px;
}

.icon--sm {
    width: 18px;
    height: 18px;
}

/* Tiles that hold a card's leading icon. */
.pain-icon,
.feature-icon,
.benefit-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    margin-bottom: 18px;
    border-radius: var(--radius-md);
    background: var(--brand-100);
    color: var(--brand-700);
}

.pain-icon .icon,
.feature-icon .icon,
.benefit-icon .icon {
    width: 26px;
    height: 26px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul {
    list-style: none;
}

/* ---------- CONTAINER ---------- */
.container {
    width: 100%;
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- TYPOGRAPHY ---------- */
h1, h2, h3, h4, h5, h6 {
    font-weight: 800;
    line-height: 1.25;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
}

h2 {
    font-size: 2.25rem;
    margin-bottom: 0.5rem;
}

h3 {
    font-size: 1.35rem;
    margin-bottom: 0.5rem;
}

p {
    margin-bottom: 1rem;
}

.highlight {
    color: var(--brand-600);
    position: relative;
}

.highlight::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 0;
    right: 0;
    height: 8px;
    background: var(--brand-200);
    border-radius: 4px;
    z-index: -1;
    opacity: 0.6;
}

/* ---------- SECTION HEADER ---------- */
.section-header {
    text-align: center;
    margin-bottom: 48px;
}

.section-label {
    display: inline-block;
    padding: 6px 16px;
    background: var(--brand-100);
    color: var(--brand-600);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    margin-bottom: 12px;
}

.section-title {
    font-size: 2.5rem;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.section-subtitle {
    font-size: 1.1rem;
    color: var(--gray-600);
    max-width: 640px;
    margin: 0 auto;
    line-height: 1.6;
}

/* ---------- BUTTONS ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 24px;
    font-size: 0.95rem;
    font-weight: 700;
    font-family: var(--font-primary);
    border-radius: var(--radius-full);
    border: none;
    cursor: pointer;
    transition: all var(--transition-base);
    letter-spacing: 0.02em;
    text-decoration: none;
    line-height: 1.4;
    white-space: normal;
    text-align: center;
}

.btn-primary {
    background: var(--gradient-brand);
    color: var(--white);
    box-shadow: var(--shadow-md);
}

.btn-primary:hover {
    background: var(--brand-600);
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    color: var(--white);
}

.btn-primary:active {
    transform: translateY(0);
    box-shadow: var(--shadow-sm);
}

.btn-outline {
    background: var(--white);
    color: var(--brand-600);
    border: 2px solid var(--brand-300);
    box-shadow: none;
}

.btn-outline:hover {
    background: var(--brand-50);
    border-color: var(--brand-400);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.btn-lg {
    padding: 16px 32px;
    font-size: 1.05rem;
}

.btn-xl {
    padding: 18px 40px;
    font-size: 1.1rem;
    letter-spacing: 0.03em;
}

.btn-block {
    display: flex;
    width: 100%;
}

/* Every interactive element keeps a visible focus ring for keyboard users. */
:focus-visible {
    outline: 3px solid var(--brand-500);
    outline-offset: 2px;
}

/* ---------- PROMO BAR & HEADER ---------- */
.promo-bar {
    background: var(--gradient-surface);
    color: var(--on-brand);
    text-align: center;
    padding: 10px 16px;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
}

.promo-bar strong {
    font-weight: 800;
    color: #ffe066;
}

/* The global paragraph margin would leave 16px of empty space inside this
   bar, so the text sat 10px from the top and 26px from the bottom and the
   sticky header was taller than it looked. */
.promo-bar p {
    margin-bottom: 0;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(252, 250, 245, 0.85);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(235, 231, 220, 0.6);
}

.header-main {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 24px;
    max-width: var(--container-max);
    margin: 0 auto;
}

.header-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--gray-900);
    display: flex;
    align-items: center;
    gap: 8px;
    letter-spacing: -0.02em;
    min-height: 44px; /* thumb-sized tap area around the 41px logo box */
}

.header-logo span {
    color: var(--brand-600);
}

.header-logo:hover {
    color: var(--brand-600);
}

/* Hamburger button. Keeps the 44px minimum tap target, which the icon alone
   does not reach (40x34). */
.hamburger {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 5px;
    min-width: 44px;
    min-height: 44px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.hamburger:hover {
    background: var(--brand-50);
}

.hamburger span {
    display: block;
    width: 24px;
    height: 2.5px;
    background: var(--gray-800);
    border-radius: 2px;
    transition: all var(--transition-base);
}

.hamburger:hover span {
    background: var(--brand-600);
}

/* ==========================================
   SIDEBAR / HAMBURGER MENU
   ========================================== */
.sidebar-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    z-index: 200;
    opacity: 0;
    visibility: hidden;
    transition: opacity var(--transition-base), visibility var(--transition-base);
}

.sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

.sidebar {
    position: fixed;
    top: 0;
    right: -100%;
    width: 320px;
    max-width: 85vw;
    height: 100vh;               /* fallback */
    height: 100dvh;              /* real visible height on mobile */
    background: var(--white);
    z-index: 300;
    padding: 24px 20px calc(24px + env(safe-area-inset-bottom, 0px));
    display: flex;
    flex-direction: column;
    gap: 16px;
    transition: right var(--transition-slow);
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.1);
    border-radius: 24px 0 0 24px;
    overflow: hidden;            /* was overflow-y: auto */
}

.sidebar.open {
    right: 0;
}

.sidebar-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--brand-600);
}

.sidebar-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--radius-sm);
    color: var(--gray-500);
    transition: all var(--transition-fast);
}

.sidebar-close:hover {
    background: var(--brand-50);
    color: var(--brand-600);
}

.sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1 1 auto;
    min-height: 0;               /* lets the flex child shrink so it can scroll */
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.sidebar-link {
    padding: 14px 16px;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    color: var(--gray-700);
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    gap: 8px;
}

.sidebar-link:hover {
    background: var(--brand-50);
    color: var(--brand-600);
    padding-left: 20px;
}

.sidebar-cta {
    flex-shrink: 0;              /* add */
    padding: 20px;
    border-radius: var(--radius-lg);
    background: var(--gradient-surface);
    color: var(--on-brand);
    text-align: center;
}

.sidebar-header {
    flex-shrink: 0;              /* add */
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--gray-200);
}

.sidebar-cta .btn-primary {
    background: var(--white);
    color: var(--brand-700);
    box-shadow: var(--shadow-md);
}

.sidebar-cta .btn-primary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-700);
}

.sidebar-note {
    margin-top: 10px;
    margin-bottom: 0;
    font-size: 0.85rem;
    color: var(--on-brand-muted);
    font-weight: 600;
}

@media (max-height: 600px) {
    .sidebar { padding-top: 16px; gap: 10px; }
    .sidebar-link { padding: 10px 14px; }
    .sidebar-cta { padding: 14px; }
}

/* ==========================================
   HERO SECTION
   ========================================== */
.hero {
    background: var(--gradient-hero);
    padding: var(--section-padding);
    position: relative;
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -100px;
    right: -100px;
    width: 400px;
    height: 400px;
    background: var(--brand-200);
    border-radius: 50%;
    opacity: 0.4;
    pointer-events: none;
}

.hero::after {
    content: '';
    position: absolute;
    bottom: -80px;
    left: -60px;
    width: 300px;
    height: 300px;
    background: var(--brand-100);
    border-radius: 50%;
    opacity: 0.6;
    pointer-events: none;
}

.hero-inner {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    min-width: 0;
}

/* Two columns only from the large breakpoint up; below it the hero stacks. */
@media (min-width: 1024px) {
    .hero-inner {
        grid-template-columns: 1.05fr 0.95fr;
        gap: 56px;
    }
}

.hero-badge {
    display: inline-block;
    padding: 8px 16px;
    background: var(--white);
    color: var(--brand-600);
    border-radius: var(--radius-full);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 20px;
    box-shadow: var(--shadow-sm);
}

.hero-title {
    font-size: 3.2rem;
    font-weight: 800;
    line-height: 1.15;
    color: var(--gray-900);
    margin-bottom: 16px;
    letter-spacing: -0.03em;
}

.hero-subtitle {
    font-size: 1.15rem;
    color: var(--gray-600);
    line-height: 1.6;
    margin-bottom: 28px;
    max-width: 520px;
}

.hero-cta {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 28px;
}

/* Slot counter */
.slot-counter {
    background: var(--white);
    padding: 20px 24px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    margin-bottom: 20px;
    border: 1px solid var(--brand-100);
}

.slot-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}

.slot-label {
    font-weight: 600;
    color: var(--gray-700);
    font-size: 0.95rem;
}

.slot-numbers {
    font-size: 0.95rem;
    color: var(--gray-500);
}

.slot-numbers strong {
    font-size: 1.5rem;
    color: var(--brand-600);
    font-weight: 800;
}

.slot-bar {
    width: 100%;
    height: 10px;
    background: var(--brand-100);
    border-radius: var(--radius-full);
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(67, 82, 57, 0.12);
}

.slot-bar-fill {
    height: 100%;
    background: var(--gradient-brand);
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
    width: 2%;
}

.hero-trust {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
    font-size: 0.9rem;
    color: var(--gray-600);
    font-weight: 500;
}

.hero-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    min-width: 0;
}

.hero-photo {
    position: relative;
    width: 100%;
    max-width: 560px;
}

.hero-photo .img-slot {
    border-radius: var(--radius-xl);
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-xl);
}

/* Price card. In normal flow below the photo by default, so it can never
   cover the headline, the subtitle, or the calls to action. */
.hero-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: fit-content;
    max-width: 100%;
    margin: 16px auto 0;
    padding: 16px 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-100);
    box-shadow: var(--shadow-lg);
    text-align: center;
}

.hero-card-label {
    font-size: 1rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.hero-card-note {
    font-size: 0.8rem;
    color: var(--gray-500);
    font-weight: 600;
}

.hero-card-price {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 6px;
}

.hero-card-save {
    margin-top: 4px;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    color: var(--brand-700);
    background: var(--brand-100);
    border-radius: var(--radius-full);
    padding: 3px 12px;
}

/* Layered over the photo only where there is room for it. */
@media (min-width: 1024px) {
    .hero-card {
        position: absolute;
        right: -16px;
        bottom: 24px;
        margin: 0;
        align-items: flex-start;
        text-align: left;
        box-shadow: var(--shadow-xl);
    }
}

.old-price {
    font-size: 0.9rem;
    color: var(--gray-500);
    text-decoration: line-through;
}

.new-price {
    font-size: 1.8rem;
    font-weight: 800;
    color: var(--brand-600);
}

/* ==========================================
   PAIN POINTS SECTION
   ========================================== */
.pain-points {
    padding: var(--section-padding);
    background: var(--white);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.pain-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
}

.pain-card:hover {
    background: var(--brand-50);
    border-color: var(--brand-300);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.pain-card h3 {
    font-size: 1.2rem;
    color: var(--gray-900);
    margin-bottom: 12px;
}

.pain-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

.future-regret {
    background: var(--gradient-soft);
    border-radius: var(--radius-xl);
    padding: 40px 32px;
    text-align: center;
    border: 1px solid var(--brand-200);
}

.future-regret h3 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: var(--gray-900);
}

.regret-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
    text-align: left;
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
}

.regret-list span {
    background: var(--white);
    padding: 12px 20px;
    border-radius: var(--radius-md);
    font-weight: 500;
    color: var(--gray-700);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
}

.regret-list span:hover {
    background: var(--brand-50);
    transform: translateX(4px);
}

.regret-cta {
    margin-bottom: 0;
    color: var(--gray-600);
    font-size: 1.05rem;
}

.regret-cta strong {
    color: var(--brand-600);
}

/* ==========================================
   SOLUTION SECTION
   ========================================== */
.solution {
    padding: var(--section-padding);
    background: var(--brand-50);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.feature-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--brand-100);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--gradient-brand);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-4px);
    border-color: var(--brand-300);
}

.feature-card:hover::before {
    opacity: 1;
}

.feature-card h3 {
    font-size: 1.15rem;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.feature-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Preview spreads in the solution section. */
.preview-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-top: 48px;
}

.preview-item {
    margin: 0;
}

.preview-item .img-slot {
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-100);
    box-shadow: var(--shadow-sm);
}

.preview-item figcaption {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--gray-600);
    text-align: center;
}

/* ==========================================
   BENEFITS / CAREER SECTION
   ========================================== */
.benefits {
    padding: var(--section-padding);
    background: var(--white);
}

.benefit-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.benefit-card {
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 32px 28px;
    border: 1px solid var(--gray-200);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-base);
    position: relative;
}

.benefit-card:hover {
    background: var(--brand-50);
    border-color: var(--brand-300);
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.benefit-highlight {
    background: var(--gradient-soft);
    border: 2px solid var(--brand-300);
    box-shadow: var(--shadow-md);
}

.benefit-highlight:hover {
    box-shadow: var(--shadow-lg);
    border-color: var(--brand-400);
}

.popular-badge {
    position: absolute;
    top: -12px;
    right: 20px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--gold);
    color: var(--gray-900);
    padding: 6px 16px;
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    box-shadow: var(--shadow-sm);
}

.benefit-icon {
    background: var(--white);
    color: var(--brand-600);
}

.benefit-card h3 {
    font-size: 1.15rem;
    color: var(--gray-900);
    margin-bottom: 10px;
}

.benefit-card p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 16px;
}

.benefit-salary {
    display: inline-block;
    background: var(--white);
    padding: 8px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    color: var(--brand-600);
    font-size: 0.9rem;
    box-shadow: var(--shadow-sm);
}

.benefit-salary small {
    font-weight: 400;
    color: var(--gray-500);
    font-size: 0.8rem;
}

.benefit-note {
    text-align: center;
    font-size: 1.05rem;
    color: var(--gray-600);
    max-width: 700px;
    margin: 0 auto;
    padding: 20px 24px;
    background: var(--brand-50);
    border-radius: var(--radius-md);
    border: 1px dashed var(--brand-300);
}

/* ==========================================
   COMPARISON TABLE SECTION
   ========================================== */
.comparison {
    padding: var(--section-padding);
    background: var(--brand-50);
}

.comparison-table-wrapper {
    overflow-x: auto;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    background: var(--white);
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 560px;
}

.comparison-table th {
    background: var(--gradient-surface);
    color: var(--on-brand);
    padding: 16px 20px;
    text-align: left;
    font-weight: 700;
    font-size: 0.9rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}

.comparison-table td {
    padding: 14px 20px;
    border-bottom: 1px solid var(--gray-200);
    font-size: 0.95rem;
    color: var(--gray-700);
}

.comparison-table tbody tr:last-child td {
    border-bottom: none;
}

.comparison-table tbody tr:hover td {
    background: var(--brand-50);
}

.highlight-col {
    background: var(--brand-50);
    color: var(--brand-700) !important;
}

.comparison-table th.highlight-col {
    background: var(--brand-600);
    color: var(--on-brand) !important;
}

.comparison-table td.highlight-col {
    background: var(--brand-50);
    font-weight: 700;
    color: var(--brand-600) !important;
}

/* Below the tablet breakpoint the table stops being a grid of columns and
   becomes one card per row. The element roles are declared in the markup,
   so the table semantics survive the display change. */
@media (max-width: 768px) {
    .comparison-table-wrapper {
        overflow-x: visible;
        background: none;
        box-shadow: none;
        border-radius: 0;
    }

    .comparison-table {
        min-width: 0;
    }

    .comparison-table thead {
        position: absolute;
        width: 1px;
        height: 1px;
        overflow: hidden;
        clip-path: inset(50%);
        white-space: nowrap;
    }

    .comparison-table tbody tr {
        display: block;
        margin-bottom: 12px;
        background: var(--white);
        border: 1px solid var(--gray-200);
        border-radius: var(--radius-lg);
        box-shadow: var(--shadow-sm);
        overflow: hidden;
    }

    .comparison-table td {
        display: flex;
        align-items: baseline;
        justify-content: space-between;
        gap: 16px;
        padding: 12px 16px;
    }

    .comparison-table td::before {
        content: attr(data-label);
        flex-shrink: 0;
        font-size: 0.75rem;
        font-weight: 700;
        letter-spacing: 0.04em;
        text-transform: uppercase;
        color: var(--gray-500);
    }

    .comparison-table td:first-child {
        background: var(--brand-50);
        font-size: 1rem;
        font-weight: 800;
        color: var(--gray-900);
    }

    .comparison-table td:first-child::before {
        content: none;
    }

    .comparison-table td:last-child {
        border-bottom: none;
    }
}

/* ==========================================
   TESTIMONIALS SECTION
   ========================================== */
.testimonials {
    padding: var(--section-padding);
    background: var(--white);
}

.testimonial-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    flex-wrap: wrap;
    margin-bottom: 40px;
}

.stat-item {
    text-align: center;
    background: var(--brand-50);
    border-radius: var(--radius-md);
    padding: 20px 28px;
    min-width: 140px;
    border: 1px solid var(--brand-100);
    transition: all var(--transition-fast);
}

.stat-item:hover {
    background: var(--brand-100);
    transform: scale(1.05);
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-600);
    line-height: 1.2;
}

.stat-item span {
    font-size: 0.85rem;
    color: var(--gray-600);
    font-weight: 500;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    max-width: 900px;
    margin: 0 auto;
}

.testimonial-card {
    position: relative;
    background: var(--gray-50);
    border-radius: var(--radius-lg);
    padding: 28px;
    display: flex;
    gap: 20px;
    border: 1px solid var(--gray-200);
    transition: all var(--transition-base);
}

.testimonial-quote {
    position: absolute;
    top: 22px;
    right: 24px;
    width: 28px;
    height: 28px;
    color: var(--brand-200);
}

.testimonial-card:hover {
    background: var(--brand-50);
    border-color: var(--brand-200);
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.testimonial-avatar {
    position: relative;
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--gradient-brand);
    color: var(--white);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1.2rem;
    overflow: hidden;
}

/* Supplied portrait covers the letter; a missing file renders nothing and
   the letter stays as the fallback. */
.testimonial-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.testimonial-text {
    font-style: italic;
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 12px;
}

.testimonial-author strong {
    display: block;
    color: var(--gray-900);
    font-size: 0.95rem;
}

.testimonial-author span {
    color: var(--gray-600);
    font-size: 0.85rem;
}

.testimonial-stars {
    margin-top: 8px;
    font-size: 0.9rem;
}

/* ==========================================
   FAQ SECTION
   ========================================== */
.faq {
    padding: var(--section-padding);
    background: var(--brand-50);
}

.faq-list {
    max-width: 720px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius-lg);
    border: 1px solid var(--brand-100);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: all var(--transition-base);
}

.faq-item:hover {
    border-color: var(--brand-300);
    box-shadow: var(--shadow-sm);
}

.faq-item.active {
    border-color: var(--brand-400);
    box-shadow: var(--shadow-md);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
    font-family: var(--font-primary);
    font-size: 1rem;
    font-weight: 700;
    color: var(--gray-800);
    transition: color var(--transition-fast);
}

.faq-question-label {
    display: flex;
    align-items: center;
    gap: 12px;
}

.faq-question-label .icon {
    color: var(--brand-600);
}

.faq-question:hover {
    color: var(--brand-600);
}

.faq-toggle {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--brand-50);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    color: var(--brand-600);
    transition: all var(--transition-base);
    font-weight: 400;
}

.faq-item.active .faq-toggle {
    background: var(--brand-600);
    color: var(--white);
    transform: rotate(45deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
    padding: 0 22px;
}

.faq-item.active .faq-answer {
    max-height: 600px;
    padding: 0 22px 18px;
}

.faq-answer p {
    color: var(--gray-600);
    font-size: 0.95rem;
    line-height: 1.6;
    margin-bottom: 0;
}

/* ==========================================
   PRICING SECTION
   ========================================== */
.pricing {
    padding: var(--section-padding);
    background: var(--gradient-hero);
}

/* Countdown Timer */
.countdown-wrapper {
    text-align: center;
    margin-bottom: 40px;
}

.countdown-label {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 12px;
}

.countdown-timer {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-bottom: 12px;
}

.countdown-unit {
    background: var(--gradient-surface);
    color: var(--on-brand);
    padding: 16px 20px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    min-width: 80px;
    transition: all var(--transition-fast);
}

.countdown-unit:hover {
    transform: translateY(-2px);
}

.countdown-number {
    display: block;
    font-size: 2.2rem;
    font-weight: 800;
    color: var(--on-brand);
    line-height: 1;
}

.countdown-text {
    font-size: 0.8rem;
    color: var(--on-brand-muted);
    font-weight: 600;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.countdown-separator {
    font-size: 2rem;
    font-weight: 800;
    color: var(--brand-500);
    animation: blink 1s ease-in-out infinite;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

.countdown-slot {
    font-size: 1rem;
    color: var(--gray-600);
    font-weight: 500;
}

.countdown-slot strong {
    color: var(--brand-600);
    font-size: 1.3rem;
    font-weight: 800;
}

/* Pricing Card */
.pricing-card {
    background: var(--gradient-surface);
    border-radius: var(--radius-xl);
    padding: 40px 36px;
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    box-shadow: var(--shadow-xl);
    color: var(--on-brand);
    position: relative;
    transition: all var(--transition-base);
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

.pricing-badge {
    display: inline-block;
    background: rgba(0, 0, 0, 0.14);
    color: var(--on-brand);
    padding: 8px 20px;
    border-radius: var(--radius-full);
    font-weight: 800;
    font-size: 0.8rem;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.pricing-product {
    font-size: 1.5rem;
    color: var(--on-brand);
    margin-bottom: 4px;
}

.pricing-subtitle {
    color: var(--on-brand-muted);
    font-size: 1rem;
    margin-bottom: 20px;
}

.pricing-price {
    display: flex;
    flex-direction: column;
    gap: 6px;
    margin-bottom: 24px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.14);
    border-radius: var(--radius-md);
}

.price-normal {
    font-size: 0.9rem;
    color: var(--on-brand-muted);
}

.price-normal del {
    color: var(--on-brand-muted);
}

.price-today {
    font-size: 1.1rem;
    color: var(--on-brand);
}

.price-today strong {
    font-size: 2rem;
    color: var(--on-brand);
    font-weight: 800;
    white-space: nowrap;
}

.price-save {
    display: inline-block;
    background: var(--gold);
    color: var(--gray-900);
    padding: 6px 14px;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.85rem;
    align-self: center;
    margin-top: 4px;
}

.pricing-features {
    text-align: left;
    margin-bottom: 24px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(0, 0, 0, 0.14);
    border-radius: var(--radius-sm);
    font-size: 0.95rem;
    font-weight: 500;
    color: var(--on-brand);
    transition: all var(--transition-fast);
}

.pricing-features li .icon {
    color: var(--brand-200);
}

.pricing-features li:hover {
    background: rgba(0, 0, 0, 0.22);
    padding-left: 20px;
}

.pricing-card .btn-primary {
    background: var(--white);
    color: var(--brand-700);
    box-shadow: var(--shadow-lg);
}

.pricing-card .btn-primary:hover {
    background: rgba(255, 255, 255, 0.92);
    color: var(--brand-700);
}

.pricing-trust {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-top: 16px;
    font-size: 0.8rem;
    color: var(--on-brand-muted);
    font-weight: 500;
}

.pricing-trust span {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pricing-trust .icon {
    color: var(--brand-200);
}

/* Guarantee banner */
.guarantee-banner {
    display: flex;
    align-items: center;
    gap: 24px;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px 28px;
    max-width: 520px;
    margin: 32px auto 0;
    border: 1px solid var(--brand-100);
    box-shadow: var(--shadow-sm);
}

.guarantee-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 64px;
    height: 64px;
    border-radius: var(--radius-md);
    background: var(--brand-100);
    color: var(--brand-700);
}

.guarantee-icon .icon {
    width: 30px;
    height: 30px;
}

.guarantee-text h3 {
    font-size: 1.1rem;
    color: var(--gray-900);
    margin-bottom: 4px;
}

.guarantee-text p {
    font-size: 0.9rem;
    color: var(--gray-600);
    line-height: 1.5;
    margin-bottom: 0;
}

.guarantee-text strong {
    color: var(--brand-600);
}

/* ==========================================
   FOOTER
   ========================================== */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: 40px 0 20px;
}

.footer-brand {
    text-align: center;
    margin-bottom: 24px;
}

.footer-logo {
    font-size: 1.3rem;
    font-weight: 800;
    color: var(--white);
    display: block;
    margin-bottom: 8px;
}

.footer-brand p {
    font-size: 0.9rem;
    max-width: 480px;
    margin: 0 auto;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid var(--gray-700);
    flex-wrap: wrap;
    gap: 12px;
    font-size: 0.85rem;
}

.footer-links {
    display: flex;
    gap: 16px;
}

/* Footer links are inline text, so the hit area is grown to 44px instead of
   leaving a 23px-tall target. */
.footer-links a {
    color: var(--gray-400);
    transition: color var(--transition-fast);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

.footer-links a:hover {
    color: var(--brand-300);
}

/* ==========================================
   SCROLL REVEAL
   Armed only when JavaScript sets .js on the root element, so the page
   never hides content it cannot bring back.
   ========================================== */
.js .reveal {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.js .reveal.visible {
    opacity: 1;
    transform: none;
}

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

    html {
        scroll-behavior: auto;
    }

    .countdown-separator {
        animation: none;
    }
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */

/* Tablet (max-width: 1024px) */
@media (max-width: 1023px) {
    :root {
        --section-padding: 60px 0;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.9rem;
    }

    .section-title {
        font-size: 2rem;
    }

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

    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero-cta {
        justify-content: center;
    }

    .slot-counter {
        max-width: 420px;
        margin-left: auto;
        margin-right: auto;
    }

    .hero-trust {
        justify-content: center;
    }

    .hero-visual {
        width: 100%;
    }

    .pain-grid,
    .feature-grid,
    .benefit-grid,
    .preview-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    :root {
        --section-padding: 48px 0;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.6rem;
    }

    .section-title {
        font-size: 1.7rem;
    }

    .hero-title {
        font-size: 2.2rem;
    }

    .hero-subtitle {
        font-size: 1rem;
    }

    .hero-cta {
        flex-direction: column;
        align-items: center;
    }

    .btn-lg {
        width: 100%;
        max-width: 300px;
    }

    .pain-grid,
    .feature-grid,
    .benefit-grid,
    .preview-grid,
    .testimonial-grid {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .testimonial-avatar {
        margin-bottom: 12px;
    }

    .benefit-card {
        padding: 24px 20px;
    }

    .countdown-unit {
        padding: 12px 14px;
        min-width: 60px;
    }

    .countdown-number {
        font-size: 1.6rem;
    }

    .countdown-timer {
        gap: 8px;
    }

    .pricing-card {
        padding: 28px 20px;
    }

    .guarantee-banner {
        flex-direction: column;
        text-align: center;
        padding: 20px;
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        gap: 8px;
    }

    .footer-links {
        justify-content: center;
    }
}

/* Mobile kecil (max-width: 480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 16px;
    }

    /* The two sticky bars drop to a smaller register here: the header keeps
       the same 16px gutter as the sections, and the promo bar takes less of
       the screen than a three-line bar would. */
    .promo-bar {
        padding: 8px 16px;
        font-size: 0.8rem;
    }

    .header-main {
        padding: 12px 16px;
    }

    .hero-title {
        font-size: 1.8rem;
    }

    .hero-badge {
        font-size: 0.75rem;
        padding: 6px 12px;
    }

    .hero-trust {
        gap: 12px;
        font-size: 0.8rem;
    }

    .section-label {
        font-size: 0.75rem;
        padding: 4px 12px;
    }

    .section-title {
        font-size: 1.4rem;
    }

    .pricing-product {
        font-size: 1.2rem;
    }

    .countdown-number {
        font-size: 1.3rem;
    }

    .countdown-text {
        font-size: 0.7rem;
    }

    .stat-item {
        min-width: 100px;
        padding: 14px 16px;
    }

    .stat-item strong {
        font-size: 1.4rem;
    }
}