/* public.css — tema Notion untuk halaman publik (landing, login, daftar).
 * Token SAMA dengan notion.css di dashboard, jadi warna & dark mode senada.
 * Tema dibaca dari localStorage 'theme' (sama dengan dashboard).
 */
:root {
    --bg-primary:   #FFFFFF;
    --bg-sidebar:   #F7F6F3;
    --bg-callout:   #F1F1EF;
    --text-primary: #2F2F2F;
    --text-muted:   #787774;
    --border-color: rgba(55, 53, 47, 0.09);
    --border-solid: #E9E9E8;
    --hover-bg:     rgba(55, 53, 47, 0.06);
    --active-bg:    rgba(55, 53, 47, 0.08);
    --row-hover:    rgba(55, 53, 47, 0.035);
    --input-bg:     rgba(242, 241, 238, 0.6);
    --focus-color:  #2383E2;
    --focus-ring:   rgba(35, 131, 226, 0.25);
    --shadow-pop:   0 8px 24px rgba(15, 15, 15, 0.10);

    --tag-blue-bg:   #D3E5EF; --tag-blue-fg:   #183347;
    --tag-yellow-bg: #FDECC8; --tag-yellow-fg: #402C1B;
    --tag-green-bg:  #DBEDDB; --tag-green-fg:  #1C3829;
    --tag-red-bg:    #FFE2DD; --tag-red-fg:    #5D1715;
    --tag-gray-bg:   #E3E2E0; --tag-gray-fg:   #32302C;

    --font: 'Inter', ui-sans-serif, -apple-system, 'Segoe UI', system-ui, sans-serif;
    --ease: cubic-bezier(0.2, 0.6, 0.2, 1);
}
[data-theme="dark"] {
    --bg-primary: #191919; --bg-sidebar: #202020; --bg-callout: #252525;
    --text-primary: #EBEBEA; --text-muted: #9B9B9B;
    --border-color: rgba(255, 255, 255, 0.09); --border-solid: #2F2F2F;
    --hover-bg: rgba(255, 255, 255, 0.07); --active-bg: rgba(255, 255, 255, 0.10);
    --row-hover: rgba(255, 255, 255, 0.04); --input-bg: #252525;
    --shadow-pop: 0 8px 24px rgba(0, 0, 0, 0.45);
    --tag-blue-bg: #243B4A;   --tag-blue-fg: #BFD9EA;
    --tag-yellow-bg: #4A3B1F; --tag-yellow-fg: #F1D9A0;
    --tag-green-bg: #223D2F;  --tag-green-fg: #B5DDC3;
    --tag-red-bg: #4A2824;    --tag-red-fg: #F2B7AE;
    --tag-gray-bg: #373737;   --tag-gray-fg: #D4D4D3;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 64px; }
body {
    background: var(--bg-primary); color: var(--text-primary);
    font-family: var(--font); font-size: 15px; line-height: 1.7;
    -webkit-font-smoothing: antialiased; min-height: 100vh;
    transition: background 0.15s ease, color 0.15s ease;
}
a { color: inherit; }
:focus { outline: none; }
:focus-visible { box-shadow: 0 0 0 2px var(--focus-ring); border-radius: 4px; }

/* ---------- Logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; font-size: 15px; letter-spacing: 0.01em; text-decoration: none; }
.logo-mark {
    width: 26px; height: 26px; border-radius: 5px; display: inline-flex; align-items: center; justify-content: center;
    background: var(--text-primary); color: var(--bg-primary); font-size: 15px;
}

/* ---------- Tombol ---------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    height: 34px; padding: 0 14px; border-radius: 4px; border: 1px solid transparent;
    font: inherit; font-size: 14px; font-weight: 500; line-height: 1; text-decoration: none; cursor: pointer; white-space: nowrap;
    transition: background 0.1s ease, transform 0.1s ease, opacity 0.1s ease;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: var(--text-primary); color: var(--bg-primary); }
.btn-primary:hover { opacity: 0.88; }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.btn-ghost { background: transparent; color: var(--text-primary); border-color: var(--border-solid); }
.btn-ghost:hover { background: var(--hover-bg); }
.btn-text { background: transparent; color: var(--text-muted); }
.btn-text:hover { background: var(--hover-bg); color: var(--text-primary); }
.btn-lg { height: 40px; padding: 0 18px; font-size: 15px; }
.btn i { font-size: 16px; transition: transform 0.15s ease; }
.btn-primary:hover i.ph-arrow-right, .btn-ghost:hover i.ph-arrow-right { transform: translateX(3px); }
.btn-ghost:hover i.ph-arrow-down { transform: translateY(3px); }

.icon-btn {
    width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center;
    background: transparent; border: none; border-radius: 4px; color: var(--text-muted); font-size: 17px; cursor: pointer;
    transition: background 0.1s ease, transform 0.1s ease, color 0.1s ease;
}
.icon-btn:hover { background: var(--hover-bg); color: var(--text-primary); }
.icon-btn:active { transform: scale(0.96); }
.icon-btn i { transition: transform 0.25s var(--ease); }
.icon-btn:hover i { transform: rotate(18deg); }

/* ---------- Tag pastel ---------- */
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 1px 10px; border-radius: 999px; font-size: 13px; line-height: 1.6; background: var(--tag-gray-bg); color: var(--tag-gray-fg); }
.tag.blue   { background: var(--tag-blue-bg);   color: var(--tag-blue-fg); }
.tag.green  { background: var(--tag-green-bg);  color: var(--tag-green-fg); }
.tag.yellow { background: var(--tag-yellow-bg); color: var(--tag-yellow-fg); }
.tag.red    { background: var(--tag-red-bg);    color: var(--tag-red-fg); }
.tag .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.tag .dot.pulse { animation: dotPulse 1.6s ease-in-out infinite; }

/* ---------- Motion ---------- */
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes dotPulse { 0%, 100% { opacity: 1; } 50% { opacity: 0.35; } }
@keyframes spin { to { transform: rotate(360deg); } }

/* muncul berurutan saat halaman dibuka: style="--i:0,1,2..." */
.anim { opacity: 0; animation: fadeUp 0.5s var(--ease) forwards; animation-delay: calc(var(--i, 0) * 70ms); }

/* muncul saat di-scroll (diaktifkan JS lewat class .in) */
.js .reveal { opacity: 0; transform: translateY(10px); transition: opacity 0.5s ease, transform 0.5s var(--ease); transition-delay: calc(var(--i, 0) * 70ms); }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .anim, .js .reveal { opacity: 1 !important; transform: none !important; }
}