/* ============================================================
   KakPintar — Brand stylesheet (public site)
   Identity: primary #2563EB, accent amber #F59E0B, ink #0F172A
   Font : Plus Jakarta Sans (heading) / Inter (body)
   ============================================================ */

:root {
    --primary: #2563EB;
    --primary-600: #1D4ED8;
    --primary-700: #1E40AF;
    --indigo: #4F46E5;
    --amber: #F59E0B;
    --ink: #0F172A;
    --ink-soft: #1E293B;
    --slate: #475569;
    --slate-soft: #64748C;
    --slate-line: #E2E8F0;
    --surface: #F8FAFC;
    --white: #FFFFFF;
    --grad-brand: linear-gradient(135deg, #2563EB 0%, #4F46E5 55%, #7C3AED 100%);
    --grad-hero: linear-gradient(160deg, #0B1220 0%, #14213F 40%, #1D2B5E 75%, #283B80 100%);
    --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .08);
    --shadow-md: 0 6px 16px rgba(15, 23, 42, .08), 0 2px 6px rgba(15, 23, 42, .06);
    --shadow-lg: 0 20px 45px rgba(15, 23, 42, .14), 0 6px 16px rgba(15, 23, 42, .08);
    --shadow-primary: 0 12px 28px rgba(37, 99, 235, .32);
    --radius: 16px;
    --radius-lg: 24px;
    --nav-h: 76px;
    --font-head: "Plus Jakarta Sans", "Segoe UI", Arial, sans-serif;
    --font-body: "Inter", "Segoe UI", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); }

body {
    margin: 0;
    font-family: var(--font-body);
    color: var(--ink);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
    overflow-x: hidden;
    line-height: 1.65;
}

img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
h1, h2, h3, h4, h5 { font-family: var(--font-head); color: var(--ink); margin: 0 0 .5em; line-height: 1.22; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: 1180px; margin-inline: auto; padding-inline: 24px; }

.d-lg-none { display: none; }
.text-primary { color: var(--primary); }
.text-gradient { background: linear-gradient(90deg, #60A5FA, #A5B4FC); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; color: transparent; }

/* ---------------- Navbar ---------------- */
.site-nav {
    position: fixed;
    inset: 0 0 auto 0;
    height: var(--nav-h);
    z-index: 90;
    display: flex;
    align-items: center;
    transition: background .3s ease, box-shadow .3s ease, height .3s ease;
}
.site-nav.scrolled {
    background: rgba(255, 255, 255, .85);
    -webkit-backdrop-filter: blur(14px);
    backdrop-filter: blur(14px);
    box-shadow: 0 6px 24px rgba(15, 23, 42, .08);
    height: calc(var(--nav-h) - 8px);
}
.page-home:not(.admin) .site-nav:not(.scrolled) { background: transparent; }
.page-home .site-nav:not(.scrolled) .nav-link:not(.d-lg-none) { color: #E2E8F0; }
.page-home .site-nav:not(.scrolled) .brand-logo { filter: drop-shadow(0 0 10px rgba(37,99,235,.6)); }

.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; width: 100%; }
.brand { display: inline-flex; align-items: center; }
.brand-logo { height: 44px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-link {
    padding: 8px 14px;
    border-radius: 10px;
    font-weight: 500;
    font-size: .95rem;
    color: var(--ink-soft);
    transition: background .2s ease, color .2s ease;
}
.nav-link:hover { background: rgba(37, 99, 235, .08); color: var(--primary); }

.nav-cta { display: flex; align-items: center; gap: 10px; }
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 0;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: .95rem;
    padding: 12px 22px;
    border-radius: 12px;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease, color .18s ease;
    text-decoration: none;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn-primary { background: var(--grad-brand); color: var(--white); box-shadow: var(--shadow-primary); }
.btn-primary:hover { background: linear-gradient(135deg, #1D4ED8, #4338CA 60%, #6D28D9); color: var(--white); box-shadow: 0 16px 34px rgba(37, 99, 235, .4); transform: translateY(-2px); }
.btn-ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--slate-line); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px var(--primary); color: var(--primary); }
.btn-light { background: var(--white); color: var(--primary-700); box-shadow: var(--shadow-md); }
.btn-light:hover { color: var(--primary); transform: translateY(-2px); }
.btn-lg { padding: 15px 30px; font-size: 1.02rem; border-radius: 14px; }

#navToggle { display: none; padding: 8px 10px; font-size: 1.4rem; }

/* ---------------- Section scaffolding ---------------- */
.section { padding: clamp(64px, 8vw, 104px) 0; position: relative; }
.section-head { max-width: 720px; margin: 0 auto clamp(40px, 5vw, 56px); text-align: center; }
.section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--primary);
    background: rgba(37, 99, 235, .08);
    padding: 8px 16px;
    border-radius: 999px;
    margin-bottom: 18px;
}
.section h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); letter-spacing: -0.03em; }
.section-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; }
.section-head p { color: var(--slate); font-size: 1.05rem; margin-bottom: 0; }
.bg-surface { background: var(--surface); }
.bg-white { background: var(--white); }

/* ---------------- Hero ---------------- */
.hero {
    position: relative;
    color: var(--white);
    background: var(--grad-hero);
    padding: calc(var(--nav-h) + clamp(48px, 7vw, 84px)) 0 clamp(40px, 5vw, 64px);
    overflow: hidden;
    isolation: isolate;
}
.hero::before, .hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    filter: blur(10px);
    z-index: -1;
}
.hero::before {
    width: 620px; height: 620px;
    top: -180px; right: -160px;
    background: radial-gradient(circle, rgba(99, 102, 241, .5), transparent 65%);
}
.hero::after {
    width: 520px; height: 520px;
    bottom: -220px; left: -160px;
    background: radial-gradient(circle, rgba(37, 99, 235, .45), transparent 65%);
}
.hero-grid-lines {
    position: absolute;
    inset: 0;
    z-index: -1;
    opacity: .35;
    background-image:
        linear-gradient(rgba(148, 163, 184, .18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(148, 163, 184, .18) 1px, transparent 1px);
    background-size: 64px 64px;
    -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000, transparent 75%);
    mask-image: radial-gradient(ellipse 90% 70% at 50% 30%, #000, transparent 75%);
}
.hero-inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    font-size: .86rem;
    font-weight: 500;
    color: #DBEAFE;
    margin-bottom: 22px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 4px rgba(52, 211, 153, .2); }
.hero h1 { color: #F8FAFC; font-size: clamp(2.3rem, 5vw, 3.55rem); font-weight: 800; letter-spacing: -0.03em; }
.hero-sub { color: #C7D2FE; font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 540px; margin: 18px 0 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-stats {
    display: flex;
    flex-wrap: wrap;
    gap: clamp(20px, 4vw, 44px);
    margin-top: clamp(34px, 5vw, 56px);
    padding-top: clamp(26px, 4vw, 40px);
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.hero-stat .num { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.4rem, 2.6vw, 2rem); color: var(--white); }
.hero-stat .num span { color: var(--amber); }
.hero-stat .lbl { font-size: .85rem; color: #94A3B8; }

/* Hero visual: mockup ponsel + kartu melayang */
.hero-visual { position: relative; }
.reveal-scale { opacity: 0; transform: scale(.6); }
.phone-mockup {
    width: min(320px, 78vw);
    margin-inline: auto;
    aspect-ratio: 9 / 18.6;
    background: #0B1120;
    border-radius: 44px;
    padding: 12px;
    border: 2px solid rgba(148, 163, 184, .25);
    box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
    position: relative;
    z-index: 2;
}
.phone-screen {
    width: 100%; height: 100%;
    border-radius: 34px;
    overflow: hidden;
    color: var(--ink-soft);
    font-size: .78rem;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #DBEAFE 0%, #EFF6FF 30%, #F8FAFC 100%);
}
.phone-notch { height: 26px; background: #0B1120; border-bottom-left-radius: 18px; border-bottom-right-radius: 18px; position: relative; }
.phone-notch::after { content: ""; position: absolute; left: 50%; top: 8px; translate: -50%; width: 90px; height: 6px; border-radius: 99px; background: #1E293B; }
.phone-appbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px 6px; }
.phone-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--grad-brand); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: .8rem; }
.phone-appbar .who { font-weight: 700; font-size: .82rem; }
.phone-appbar .status { font-size: .68rem; color: var(--slate); }
.phone-appbar .spacer { flex: 1; }
.bubble { border-radius: 14px; padding: 9px 12px; font-size: .76rem; line-height: 1.5; box-shadow: var(--shadow-sm); }
.bubble-ai { background: #fff; border-bottom-left-radius: 4px; align-self: flex-start; color: var(--ink-soft); }
.bubble-me { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.bubble-row { display: flex; padding: 4px 14px; max-width: 84%; }
.bubble-me-photo { background: #fff; border-radius: 16px; padding: 8px; box-shadow: var(--shadow-sm); align-self: flex-end; }
.phone-chat { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; }
.sol-card { background: #fff; border-radius: 16px; margin: 2px 14px 8px; padding: 10px 12px; box-shadow: var(--shadow-md); }
.sol-card .head { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: .78rem; margin-bottom: 6px; }
.sol-card .head i { color: var(--amber); }
.process-bar { height: 6px; border-radius: 99px; background: #E2E8F0; overflow: hidden; margin-top: 4px; }
.process-bar i { display: block; height: 100%; width: 72%; border-radius: 99px; background: var(--grad-brand); }
.phone-scores { display: flex; justify-content: space-between; padding: 10px 14px 12px; }
.score-item { background: #fff; border-radius: 12px; padding: 8px 10px; box-shadow: var(--shadow-sm); text-align: center; flex: 1; }
.score-item + .score-item { margin-left: 8px; }
.score-item .v { font-family: var(--font-head); font-weight: 800; font-size: .95rem; color: var(--primary-700); }
.score-item .k { font-size: .64rem; color: var(--slate); }

.float-card {
    position: absolute;
    z-index: 3;
    background: #fff;
    border-radius: 16px;
    padding: 14px 16px;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: .82rem;
    font-weight: 500;
    color: var(--ink-soft);
    animation: floaty 5.5s ease-in-out infinite;
}
.float-card .ic {
    width: 40px; height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    font-size: 1.3rem;
}
.float-card .sm { display: block; font-weight: 400; font-size: .72rem; color: var(--slate); }
.float-card.fc-1 { top: 14%; left: -26px; animation-delay: 0s; }
.float-card.fc-1 .ic { background: rgba(245, 158, 11, .12); color: var(--amber); }
.float-card.fc-2 { bottom: 20%; right: -14px; animation-delay: 1.4s; }
.float-card.fc-2 .ic { background: rgba(37, 99, 235, .1); color: var(--primary); }
.float-card.fc-3 { bottom: 4%; left: -6px; animation-delay: 2.6s; }
.float-card.fc-3 .ic { background: rgba(16, 185, 129, .12); color: #059669; }
@keyframes floaty {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}

/* ---------------- Trust strip ---------------- */
.trust-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 18px 12px;
    background: var(--white);
    border: 1px solid var(--slate-line);
    border-radius: 14px;
    font-family: var(--font-head);
    font-weight: 600;
    color: var(--slate-soft);
    font-size: .9rem;
}
.trust-item i { font-size: 1.25rem; color: var(--primary); }

/* ---------------- Feature cards ---------------- */
.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.feature-card {
    background: var(--white);
    border: 1px solid var(--slate-line);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: relative;
    overflow: hidden;
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.feature-card::after {
    content: "";
    position: absolute;
    inset: auto -30% -55% auto;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(37, 99, 235, .12), transparent 70%);
    opacity: 0;
    transition: opacity .25s ease;
    pointer-events: none;
}
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: rgba(37, 99, 235, .3); }
.feature-card:hover::after { opacity: 1; }
.feature-icon {
    width: 54px; height: 54px;
    border-radius: 16px;
    display: grid;
    place-items: center;
    font-size: 1.6rem;
    color: var(--primary);
    background: rgba(37, 99, 235, .1);
    margin-bottom: 20px;
}
.feature-card:nth-child(2n) .feature-icon { color: var(--amber); background: rgba(245, 158, 11, .12); }
.feature-card h3 { font-size: 1.12rem; }
.feature-card p { color: var(--slate); font-size: .94rem; margin-bottom: 0; }

/* ---------------- Materi / subtes ---------------- */
.materi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.materi-group {
    background: var(--white);
    border: 1px solid var(--slate-line);
    border-radius: var(--radius-lg);
    padding: 26px;
}
.materi-group .group-head { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.materi-group .group-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; background: var(--grad-brand); color: #fff; }
.materi-group h3 { margin: 0; font-size: 1.05rem; }
.materi-group .group-sub { font-size: .78rem; color: var(--slate-soft); }
.subtes-item { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-top: 1px dashed var(--slate-line); }
.subtes-item:first-of-type { border-top: 0; }
.subtes-code {
    min-width: 46px;
    text-align: center;
    font-family: var(--font-head);
    font-weight: 700;
    font-size: .7rem;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--primary-700);
    background: rgba(37, 99, 235, .08);
    border-radius: 8px;
    padding: 6px 4px;
}
.subtes-item .nm { font-weight: 600; font-size: .92rem; }
.subtes-item .ct { font-size: .76rem; color: var(--slate-soft); }
.subtes-duration { margin-left: auto; font-size: .72rem; font-weight: 600; color: var(--slate); white-space: nowrap; }
.materi-note { text-align: center; margin-top: 34px; color: var(--slate); font-size: .92rem; }

/* ---------------- Cara kerja / steps ---------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; position: relative; }
.step {
    position: relative;
    background: var(--white);
    border: 1px solid var(--slate-line);
    border-radius: var(--radius-lg);
    padding: 34px 28px 28px;
    text-align: center;
    transition: transform .25s ease, box-shadow .25s ease;
}
.step:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.step-num {
    counter-increment: step;
    display: grid;
    place-items: center;
    width: 64px; height: 64px;
    margin: 0 auto 18px;
    border-radius: 50%;
    font-family: var(--font-head);
    font-weight: 800;
    font-size: 1.4rem;
    color: var(--primary);
    background: rgba(37, 99, 235, .1);
    border: 2px dashed rgba(37, 99, 235, .4);
}
.step::after {
    content: "";
    position: absolute;
    top: 47px; right: -26px;
    width: 28px; height: 2px;
    background: repeating-linear-gradient(90deg, var(--primary) 0 6px, transparent 6px 12px);
    opacity: .35;
}
.step:last-child::after { display: none; }
.step h3 { font-size: 1.12rem; }
.step p { color: var(--slate); font-size: .92rem; margin-bottom: 0; }

/* ---------------- Testimonials ---------------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testi-card {
    background: var(--white);
    border: 1px solid var(--slate-line);
    border-radius: var(--radius-lg);
    padding: 26px;
    display: flex;
    flex-direction: column;
    transition: transform .25s ease, box-shadow .25s ease;
}
.testi-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.testi-stars { color: var(--amber); font-size: 1rem; margin-bottom: 12px; letter-spacing: 2px; }
.testi-card blockquote { margin: 0 0 18px; color: var(--slate); font-size: .94rem; flex: 1; }
.testi-who { display: flex; align-items: center; gap: 12px; }
.testi-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testi-who .nm { font-weight: 700; font-size: .9rem; }
.testi-who .rg { font-size: .78rem; color: var(--slate-soft); }

/* ---------------- Pricing ---------------- */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.price-card {
    display: flex;
    flex-direction: column;
    background: var(--white);
    border: 1px solid var(--slate-line);
    border-radius: var(--radius-lg);
    padding: 30px 28px;
    position: relative;
    transition: transform .25s ease, box-shadow .25s ease;
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.price-card.popular { border: 2px solid var(--primary); box-shadow: var(--shadow-lg); }
.price-badge {
    position: absolute;
    top: -13px;
    left: 50%;
    translate: -50%;
    background: var(--grad-brand);
    color: #fff;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 6px 16px;
    border-radius: 999px;
    box-shadow: var(--shadow-md);
    white-space: nowrap;
}
.price-name { font-weight: 700; color: var(--slate-soft); text-transform: uppercase; letter-spacing: .08em; font-size: .82rem; }
.price-amount { font-family: var(--font-head); font-size: 2.1rem; font-weight: 800; margin: 10px 0 2px; }
.price-amount small { font-size: .95rem; font-weight: 600; color: var(--slate-soft); }
.price-desc { color: var(--slate); font-size: .88rem; margin-bottom: 20px; }
.price-list { list-style: none; margin: 0 0 26px; padding: 0; display: flex; flex-direction: column; gap: 11px; flex: 1; }
.price-list li { display: flex; gap: 10px; font-size: .92rem; color: var(--ink-soft); }
.price-list li i { color: #10B981; font-size: 1.05rem; flex-shrink: 0; margin-top: 2px; }
.price-list li.off { color: #B6C2D4; text-decoration: line-through; }
.price-list li.off i { color: #CBD5E1; }
.price-card .btn { width: 100%; }

/* ---------------- FAQ ---------------- */
.faq-max { max-width: 780px; margin-inline: auto; }
.faq-item { background: var(--white); border: 1px solid var(--slate-line); border-radius: 16px; margin-bottom: 12px; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq-item.open { border-color: rgba(37, 99, 235, .4); box-shadow: var(--shadow-sm); }
.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 18px 22px;
    background: none;
    border: 0;
    cursor: pointer;
    font-family: var(--font-head);
    font-weight: 600;
    font-size: 1rem;
    text-align: left;
    color: var(--ink);
}
.faq-q i { transition: transform .25s ease; color: var(--primary); font-size: 1.2rem; }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner { padding: 0 22px 20px; color: var(--slate); font-size: .94rem; }

/* ---------------- CTA band ---------------- */
.cta-band { background: var(--grad-hero); position: relative; overflow: hidden; isolation: isolate; }
.cta-band::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background:
        radial-gradient(circle at 15% 110%, rgba(245, 158, 11, .28), transparent 38%),
        radial-gradient(circle at 90% -20%, rgba(99, 102, 241, .42), transparent 45%);
}
.cta-inner { text-align: center; color: var(--white); padding: clamp(56px, 6vw, 84px) 0; }
.cta-inner h2 { color: var(--white); font-size: clamp(1.7rem, 3.4vw, 2.5rem); letter-spacing: -0.02em; }
.cta-inner p { color: #C7D2FE; font-size: 1.05rem; max-width: 560px; margin: 10px auto 30px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink); color: #94A3B8; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 44px; }
.footer-logo { height: 44px; width: auto; margin-bottom: 16px; }
.footer-desc { font-size: .9rem; max-width: 320px; }
.footer-social { display: flex; gap: 10px; margin-top: 18px; }
.social-link {
    width: 38px; height: 38px;
    display: grid;
    place-items: center;
    border-radius: 10px;
    background: rgba(148, 163, 184, .12);
    color: #CBD5E1;
    font-size: 1.1rem;
    transition: background .2s ease, color .2s ease, transform .2s ease;
}
.social-link:hover { background: var(--primary); color: #fff; transform: translateY(-3px); }
.footer-title { color: var(--white); font-size: .95rem; font-weight: 700; margin-bottom: 16px; }
.footer-link { display: block; color: #94A3B8; font-size: .9rem; padding: 5px 0; transition: color .2s ease; }
.footer-link:hover { color: #60A5FA; }
.footer-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    border-top: 1px solid rgba(148, 163, 184, .18);
    padding: 20px 24px;
    font-size: .84rem;
}
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { color: #94A3B8; }
.footer-bottom-links a:hover { color: #60A5FA; }

/* ============================================================
   Legal pages (TOS / Privacy)
   ============================================================ */
.legal-hero {
    background: var(--grad-hero);
    color: var(--white);
    padding: calc(var(--nav-h) + 44px) 0 44px;
    position: relative;
    overflow: hidden;
    isolation: isolate;
}
.legal-hero::before {
    content: "";
    position: absolute; inset: 0;
    z-index: -1;
    background: radial-gradient(circle at 85% 0%, rgba(99, 102, 241, .35), transparent 45%);
}
.legal-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: #BFDBFE;
    margin-bottom: 14px;
}
.legal-hero h1 { color: var(--white); font-size: clamp(1.9rem, 4vw, 2.8rem); letter-spacing: -0.02em; margin-bottom: 8px; }
.legal-hero .updated {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: .86rem;
    color: #94A3B8;
    background: rgba(255, 255, 255, .08);
    border: 1px solid rgba(255, 255, 255, .14);
    padding: 7px 14px;
    border-radius: 999px;
    margin-top: 4px;
}
.legal-layout { display: grid; grid-template-columns: 260px 1fr; gap: 48px; align-items: start; }
.legal-toc {
    position: sticky;
    top: calc(var(--nav-h) + 20px);
    background: var(--surface);
    border: 1px solid var(--slate-line);
    border-radius: 16px;
    padding: 20px;
    max-height: calc(100vh - var(--nav-h) - 40px);
    overflow: auto;
}
.legal-toc .toc-title { font-family: var(--font-head); font-size: .76rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--slate-soft); margin-bottom: 12px; }
.legal-toc a { display: block; color: var(--slate); font-size: .86rem; padding: 6px 8px; border-radius: 8px; transition: background .15s ease, color .15s ease; }
.legal-toc a:hover { color: var(--primary-600); background: rgba(37, 99, 235, .07); }
.legal-toc a.active { color: var(--primary-700); background: rgba(37, 99, 235, .1); font-weight: 600; }
.legal-doc { max-width: 820px; }
.legal-doc .doc-intro { color: var(--slate); font-size: 1.02rem; padding: 22px; background: var(--surface); border: 1px solid var(--slate-line); border-radius: 16px; margin-bottom: 34px; }
.legal-clause { margin-bottom: 30px; scroll-margin-top: calc(var(--nav-h) + 18px); }
.legal-clause h2 {
    font-size: 1.3rem;
    letter-spacing: -0.01em;
    display: flex;
    align-items: baseline;
    gap: 12px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--slate-line);
    margin-bottom: 14px;
}
.legal-clause h2 .n { color: var(--primary); font-weight: 800; min-width: 34px; }
.legal-clause h3 { font-size: 1.02rem; margin: 18px 0 8px; }
.legal-clause p, .legal-clause li { color: var(--slate); font-size: .95rem; }
.legal-clause ul, .legal-clause ol { padding-left: 22px; margin: 0 0 1rem; }
.legal-clause li { margin-bottom: 6px; }
.legal-clause strong { color: var(--ink-soft); }
.legal-callout {
    background: rgba(37, 99, 235, .06);
    border-left: 4px solid var(--primary);
    border-radius: 10px;
    padding: 14px 18px;
    margin: 16px 0;
    color: var(--ink-soft);
    font-size: .92rem;
}
.legal-callout i { color: var(--primary); margin-right: 6px; }
.legal-contact { background: var(--surface); border: 1px solid var(--slate-line); border-radius: 16px; padding: 22px; margin-top: 8px; }
.legal-contact p { margin-bottom: 4px; font-size: .95rem; color: var(--slate); }
.legal-contact strong { color: var(--ink-soft); }

/* ---------------- Reveal animation ---------------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.reveal-scale.visible { transform: scale(1); }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1023px) {
    .hero-inner { grid-template-columns: 1fr; gap: 48px; }
    .hero-visual { order: 2; margin-top: 10px; }
    .feature-grid, .materi-grid, .steps, .testi-grid, .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .step::after { display: none; }
    .float-card.fc-1 { left: 4%; }
    .float-card.fc-2 { right: 4%; }
    .legal-layout { grid-template-columns: 1fr; }
    .legal-toc { position: static; max-height: none; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
    .feature-grid, .materi-grid, .steps, .testi-grid, .pricing-grid { grid-template-columns: 1fr; }
    #navToggle { display: inline-flex; }
    .nav-cta .btn-primary { display: none; }
    .nav-links {
        position: fixed;
        inset: var(--nav-h) 12px auto 12px;
        flex-direction: column;
        align-items: stretch;
        gap: 6px;
        background: var(--white);
        border: 1px solid var(--slate-line);
        border-radius: 18px;
        box-shadow: var(--shadow-lg);
        padding: 14px;
        transform: translateY(-16px);
        opacity: 0;
        pointer-events: none;
        transition: transform .25s ease, opacity .25s ease;
    }
    .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
    .nav-link { padding: 12px 14px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; }
    .footer-bottom { justify-content: center; text-align: center; }
}
@media (max-width: 480px) {
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta .btn { width: 100%; }
    .float-card.fc-3 { display: none; }
}