:root {
    --lo-ink: #111;
    --lo-muted: #62666d;
    --lo-orange: #ff8a24;
    --lo-orange-deep: #df5a00;
    --lo-orange-soft: #fff1e4;
    --lo-cream: #faf8f4;
    --lo-line: #dedbd5;
    --lo-bg-light: #f7f9fa;
    --lo-radius: 12px;
}

.lo-core-page-wrapper {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    color: var(--lo-ink);
    line-height: 1.6;
    background: #fff;
}

.lo-core-page-wrapper, .lo-core-page-wrapper * {
    box-sizing: border-box;
}

.lo-core-page-wrapper h1, .lo-core-page-wrapper h2, .lo-core-page-wrapper h3 {
    margin: 0;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -0.02em;
    overflow-wrap: break-word;
}

.lo-core-page-wrapper p { margin: 0; overflow-wrap: break-word; }
.lo-core-page-wrapper a { text-decoration: none; color: inherit; }

/* Sections */
.lo-core-page-wrapper section {
    padding: 48px 24px;
    max-width: 1024px;
    margin: 0 auto;
}

/* Geometric Hero */
.lo-core-hero {
    position: relative;
    padding: 80px 24px 64px !important;
    text-align: center;
    background: var(--lo-ink);
    color: #fff;
    overflow: hidden;
    margin-bottom: 32px;
    width: 100%; max-width: 800px;
    border-radius: 0 0 24px 24px;
    margin-inline: auto;
}
.lo-core-hero::before {
    content: '';
    position: absolute;
    top: -50%; left: -10%;
    width: 300px; height: 300px;
    background: var(--lo-orange);
    border-radius: 50%;
    opacity: 0.1;
    z-index: 0;
}
.lo-core-hero::after {
    content: '';
    position: absolute;
    bottom: -20%; right: -5%;
    width: 200px; height: 200px;
    background: var(--lo-orange-deep);
    transform: rotate(45deg);
    opacity: 0.15;
    z-index: 0;
}
.lo-core-hero > * {
    position: relative;
    z-index: 1;
}

.lo-core-kicker {
    font-size: 0.875rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.05em; color: var(--lo-orange);
    margin-bottom: 16px !important;
}

.lo-core-hero h1 {
    font-size: clamp(2rem, 5vw, 3rem); margin-bottom: 24px; color: #fff;
}

.lo-core-lead {
    font-size: 1.125rem; color: #f0f0f0;
    margin-bottom: 32px !important; width: 100%; max-width: 600px;
    margin-inline: auto;
}

.lo-core-hero-actions { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; }

.lo-core-button {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 12px 24px; font-weight: 600; border-radius: 8px;
    transition: transform 0.2s, box-shadow 0.2s; font-size: 1rem;
    max-width: 100%; white-space: normal; text-align: center;
}
.lo-core-button:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
.lo-core-button-primary { background: var(--lo-orange-deep); color: #fff !important; }
.lo-core-button-secondary { background: #fff; color: var(--lo-ink) !important; }

/* Journey / Alur Belajar */
.lo-core-steps { padding-top: 24px !important; }
.lo-core-steps h2 { text-align: center; margin-bottom: 40px; font-size: 2rem; }
.lo-core-journey {
    display: flex; flex-direction: column; gap: 32px;
    position: relative; max-width: 800px; margin: 0 auto;
}
@media (min-width: 768px) {
    .lo-core-journey { flex-direction: row; align-items: flex-start; gap: 24px; }
}
.lo-core-journey::before {
    content: ''; position: absolute; left: 16px; top: 0; bottom: 0;
    width: 2px; background: var(--lo-line); z-index: 0;
}
@media (min-width: 768px) {
    .lo-core-journey::before {
        top: 16px; left: 0; right: 0; bottom: auto; height: 2px; width: 100%;
    }
}
.lo-core-journey-item {
    position: relative; z-index: 1; display: flex; gap: 16px; flex: 1;
}
@media (min-width: 768px) {
    .lo-core-journey-item { flex-direction: column; gap: 12px; }
}
.lo-core-journey-marker {
    width: 34px; height: 34px; background: var(--lo-ink); color: #fff;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 0.875rem; font-weight: 700; flex-shrink: 0;
}
.lo-core-journey-content h3 { font-size: 1.125rem; margin-bottom: 8px; }
.lo-core-journey-content p { color: var(--lo-muted); font-size: 0.9375rem; }

/* Tabs / Compare */
.lo-core-compare { padding: 64px 24px !important; background: var(--lo-cream); border-radius: 24px; margin: 24px auto !important; max-width: 960px !important; }
.lo-core-compare h2 { text-align: center; margin-bottom: 32px; font-size: 2rem; }
.lo-core-tabs { display: flex; gap: 8px; justify-content: center; margin-bottom: 24px; }
.lo-core-tab-button {
    background: transparent; border: 2px solid var(--lo-line); padding: 10px 24px;
    border-radius: 30px; font-weight: 600; cursor: pointer; color: var(--lo-muted);
    font-size: 1rem; transition: all 0.2s; font-family: inherit;
}
.lo-core-tab-button[aria-selected="true"] { background: var(--lo-ink); border-color: var(--lo-ink); color: #fff; }
.lo-core-tab-button:focus-visible { outline: 3px solid var(--lo-orange); outline-offset: 2px; }

/* JS Fallback (No JS = panels show sequentially, tabs visible if unhidden by JS) */
.lo-core-tab-panel {
    margin-bottom: 32px;
}
/* When hidden is present on panel (via JS), keep it hidden */
.lo-core-tab-panel[hidden] {
    display: none;
}
.lo-core-tab-panel:not([hidden]) {
    animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

.lo-core-format-grid {
    display: grid; grid-template-columns: 1fr; gap: 16px;
    max-width: 900px; margin: 0 auto;
}
@media (min-width: 768px) {
    .lo-core-format-grid { grid-template-columns: repeat(3, 1fr); }
}
.lo-core-format-card {
    background: #fff; padding: 24px; border-radius: var(--lo-radius);
    border: 1px solid var(--lo-line); box-shadow: 0 4px 24px rgba(0,0,0,0.03);
    display: flex; flex-direction: column; gap: 12px;
}
.lo-core-format-card svg { color: var(--lo-orange-deep); flex-shrink: 0; }
.lo-core-format-card h4 { font-size: 1.125rem; margin: 0; color: var(--lo-ink); }
.lo-core-format-card p { font-size: 0.9375rem; color: var(--lo-muted); margin: 0; }

/* Support Band (Cara Belajar) */
.lo-core-support h2, .lo-core-benefits h2 { text-align: center; margin-bottom: 32px; font-size: 2rem; }
.lo-core-support-list {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px; background: var(--lo-bg-light); padding: 16px; border-radius: var(--lo-radius);
    list-style: none; margin: 0;
}
@media (min-width: 768px) {
    .lo-core-support-list { padding: 24px; }
}
.lo-core-support-list li {
    display: flex; align-items: center; gap: 12px; padding: 12px;
    background: #fff; border-radius: 8px; border: 1px solid var(--lo-line);
}
@media (min-width: 768px) {
    .lo-core-support-list li { gap: 16px; padding: 16px; }
}
.lo-core-support-list svg { color: var(--lo-orange-deep); flex-shrink: 0; width: 24px; height: 24px; }
.lo-core-support-list span { font-weight: 500; font-size: 0.9375rem; }
.lo-core-support-list a { color: var(--lo-orange-deep); font-weight: 600; text-decoration: underline; }

/* Benefits Band (Gratis Mengulang) */
.lo-core-benefit-band {
    display: grid;
    grid-template-columns: 1fr;
    gap: 16px;
    list-style: none;
    padding: 0; margin: 0;
}
@media (min-width: 768px) {
    .lo-core-benefit-band {
        grid-template-columns: 2fr 1fr;
        grid-template-rows: auto auto;
    }
    .lo-core-benefit-band .lo-core-benefit-stat:nth-child(1) { grid-column: 1 / 2; grid-row: 1 / 3; }
    .lo-core-benefit-band .lo-core-benefit-stat:nth-child(2) { grid-column: 2 / 3; grid-row: 1 / 2; }
    .lo-core-benefit-band .lo-core-benefit-stat:nth-child(3) { grid-column: 2 / 3; grid-row: 2 / 3; }
    .lo-core-benefit-band .lo-core-benefit-stat:nth-child(4) { grid-column: 1 / 3; grid-row: 3 / 4; display: flex; flex-direction: row; align-items: center; justify-content: center; text-align: center;}
}
.lo-core-benefit-stat {
    padding: 32px;
    border-radius: var(--lo-radius);
    display: flex; flex-direction: column; gap: 12px;
    border: 1px solid var(--lo-line);
}
.lo-core-benefit-stat:nth-child(1) { background: var(--lo-ink); color: #fff; border-color: var(--lo-ink); }
.lo-core-benefit-stat:nth-child(1) .lo-core-stat-number { font-size: 3rem; color: var(--lo-orange); }
.lo-core-benefit-stat:nth-child(2) { background: var(--lo-orange); color: #fff; border-color: var(--lo-orange); }
.lo-core-benefit-stat:nth-child(2) .lo-core-stat-number { color: #fff; }
.lo-core-benefit-stat:nth-child(3) { background: var(--lo-orange-soft); color: var(--lo-ink); border-color: transparent; }
.lo-core-benefit-stat:nth-child(3) svg { color: var(--lo-orange-deep); }
.lo-core-benefit-stat:nth-child(4) { background: var(--lo-cream); color: var(--lo-ink); }
.lo-core-benefit-stat:nth-child(4) svg { color: var(--lo-orange-deep); }
.lo-core-stat-number { font-size: 2rem; font-weight: 800; color: var(--lo-orange-deep); line-height: 1; }
.lo-core-benefit-stat span:not(.lo-core-stat-number) { font-size: 1.125rem; font-weight: 500; }

/* Rules */
.lo-core-rules { padding-top: 48px !important; }
.lo-core-rules-grid {
    display: grid; grid-template-columns: 1fr; gap: 32px;
}
@media (min-width: 768px) { .lo-core-rules-grid { grid-template-columns: 3fr 2fr; align-items: start; } }
.lo-core-rules h2 { font-size: 1.5rem; margin-bottom: 24px; }
.lo-core-rule-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 16px; }
.lo-core-rule-list li { display: flex; gap: 12px; align-items: flex-start; }
.lo-core-rule-icon { color: var(--lo-orange-deep); font-weight: 700; width: 20px; flex-shrink: 0; margin-top: 2px; }
.lo-core-rule-list strong { color: var(--lo-ink); }

.lo-core-rules-deposit {
    background: var(--lo-orange-soft); padding: 24px; border-radius: var(--lo-radius);
    border: 1px solid #ffd0a6;
}
.lo-core-callout-header { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; }
.lo-core-callout-header svg { color: var(--lo-orange-deep); width: 24px; height: 24px; }
.lo-core-callout-header h3 { font-size: 1.125rem; color: var(--lo-orange-deep); margin: 0; }
.lo-core-rules-deposit p { color: var(--lo-ink); margin-bottom: 12px; font-size: 0.9375rem; }
.lo-core-rules-deposit p:last-child { margin-bottom: 0; }

/* Timeline Stepper */
.lo-core-flow h2 { text-align: center; margin-bottom: 32px; font-size: 2rem; }
.lo-core-stepper { display: flex; flex-direction: column; gap: 24px; max-width: 600px; margin: 0 auto; position: relative; }
.lo-core-stepper::before {
    content: ''; position: absolute; left: 15px; top: 0; bottom: 0; width: 2px; background: var(--lo-line); z-index: 0;
}
.lo-core-stepper-item { display: flex; gap: 16px; position: relative; z-index: 1; align-items: center; }
.lo-core-stepper-dot {
    width: 32px; height: 32px; background: var(--lo-ink); color: #fff; border-radius: 50%;
    display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.875rem; flex-shrink: 0;
}
.lo-core-stepper-text { font-size: 1rem; color: var(--lo-muted); }
.lo-core-stepper-text strong { color: var(--lo-ink); }

/* FAQ */
.lo-core-faq-container { padding: 48px 24px 80px; max-width: 1024px; margin: 0 auto; }
.lo-core-faq-layout { display: grid; grid-template-columns: 1fr; gap: 32px; }
.lo-core-faq-layout > * { min-width: 0; }
@media (min-width: 768px) { .lo-core-faq-layout { grid-template-columns: 240px 1fr; align-items: start; } }

.lo-core-faq-sidebar { position: relative; }
.lo-core-faq-categories {
    display: flex; flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 12px;
    -ms-overflow-style: none; scrollbar-width: none;
    scroll-snap-type: x mandatory;
}
.lo-core-faq-categories::-webkit-scrollbar { display: none; }
@media (min-width: 768px) {
    .lo-core-faq-categories { flex-direction: column; overflow-x: visible; padding-bottom: 0; position: sticky; top: 32px; scroll-snap-type: none; }
}

.lo-core-faq-cat-button {
    background: transparent; border: 1px solid var(--lo-line); padding: 10px 16px;
    border-radius: 20px; font-weight: 600; cursor: pointer; color: var(--lo-muted);
    font-size: 0.9375rem; transition: all 0.2s; white-space: nowrap; font-family: inherit; text-align: left;
    flex-shrink: 0; scroll-snap-align: start;
}
@media (min-width: 768px) {
    .lo-core-faq-cat-button { border: none; border-radius: 8px; padding: 12px 16px; white-space: normal; border-left: 3px solid transparent; border-radius: 0 8px 8px 0; }
}
.lo-core-faq-cat-button[aria-selected="true"] { background: var(--lo-ink); color: #fff; border-color: var(--lo-ink); }
@media (min-width: 768px) {
    .lo-core-faq-cat-button[aria-selected="true"] { background: var(--lo-orange-soft); color: var(--lo-orange-deep); border-left-color: var(--lo-orange-deep); }
    .lo-core-faq-cat-button:hover:not([aria-selected="true"]) { background: var(--lo-bg-light); color: var(--lo-ink); }
}
.lo-core-faq-cat-button:focus-visible { outline: 3px solid var(--lo-orange); outline-offset: -1px; }

.lo-core-faq-panel { margin-bottom: 48px; }
.lo-core-faq-panel[hidden] { display: none; }
.lo-core-faq-panel:not([hidden]) { animation: fadeIn 0.3s ease; }
.lo-core-faq-panel h2 { font-size: 1.5rem; margin-bottom: 24px; }

.lo-core-accordion { display: flex; flex-direction: column; gap: 12px; }
.lo-core-faq-item {
    background: #fff; border: 1px solid var(--lo-line); border-radius: var(--lo-radius);
    overflow: hidden;
}
.lo-core-faq-item[open] { border-color: var(--lo-orange-deep); box-shadow: 0 4px 12px rgba(0,0,0,0.03); }
.lo-core-faq-item summary {
    padding: 20px; font-weight: 600; font-size: 1rem; cursor: pointer; list-style: none;
    display: flex; justify-content: space-between; align-items: center; outline: none;
}
.lo-core-faq-item summary::-webkit-details-marker { display: none; }
.lo-core-faq-item summary:focus-visible { box-shadow: inset 0 0 0 3px var(--lo-orange-soft); }
.lo-core-faq-item summary::after {
    content: "+"; font-size: 1.5rem; color: var(--lo-orange-deep); line-height: 1; font-weight: 400;
}
.lo-core-faq-item[open] summary::after { content: "−"; }
.lo-core-faq-content { padding: 0 20px 20px; color: var(--lo-muted); font-size: 0.9375rem; }

/* Small fixes */
@media (max-width: 480px) {
    .lo-core-hero-actions { flex-direction: column; align-items: stretch; }
    .lo-core-button { width: 100%; }
}

/* Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    .lo-core-page-wrapper *,
    .lo-core-page-wrapper *::before,
    .lo-core-page-wrapper *::after {
        animation: none !important;
        transition: none !important;
        transform: none !important;
    }
}
